sprof 0.0.99 → 0.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/classes/auth/AuthForm.d.ts +3 -1
- package/dist/core/classes/auth/FormAuth.test.d.ts +1 -0
- package/dist/core/index.d.ts +3 -1
- package/dist/core/store/AuthStore.d.ts +3 -1
- package/dist/sprof.js +5 -5
- package/dist/sprof.umd.cjs +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,9 @@ export default class AuthForm {
|
|
|
7
7
|
private status;
|
|
8
8
|
private selectedMethod;
|
|
9
9
|
Block(fn: () => Promise<void>): Promise<void>;
|
|
10
|
-
GetValues():
|
|
10
|
+
GetValues(): {
|
|
11
|
+
[k: string]: string;
|
|
12
|
+
};
|
|
11
13
|
Validate(): string[];
|
|
12
14
|
GetFields(): AuthField[];
|
|
13
15
|
GetMethods(): AuthMethods[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -6,7 +6,9 @@ export default abstract class PF {
|
|
|
6
6
|
static Auth: {
|
|
7
7
|
readonly Form: {
|
|
8
8
|
Block: (fn: () => Promise<void>) => Promise<void>;
|
|
9
|
-
GetValues: () =>
|
|
9
|
+
GetValues: () => {
|
|
10
|
+
[k: string]: string;
|
|
11
|
+
};
|
|
10
12
|
Validate: () => string[];
|
|
11
13
|
GetFields: () => import('./classes/auth/fields/AuthField').default[];
|
|
12
14
|
GetMethods: () => C.AuthMethods[];
|
package/dist/sprof.js
CHANGED
|
@@ -6423,8 +6423,8 @@ const Nd = ["id"], Ud = ["for"], Wd = { class: "left-field" }, jd = ["href", "do
|
|
|
6423
6423
|
}), Zd = /* @__PURE__ */ P(_d, [["__scopeId", "data-v-cacad4ae"]]), Jd = { class: "bg" }, Xd = /* @__PURE__ */ $({
|
|
6424
6424
|
__name: "AuthPage",
|
|
6425
6425
|
setup(t) {
|
|
6426
|
-
const e = () => {
|
|
6427
|
-
|
|
6426
|
+
const e = async () => {
|
|
6427
|
+
await M.S.Auth.Login();
|
|
6428
6428
|
};
|
|
6429
6429
|
return (i, n) => {
|
|
6430
6430
|
const s = E("AuthForm");
|
|
@@ -6432,12 +6432,12 @@ const Nd = ["id"], Ud = ["for"], Wd = { class: "left-field" }, jd = ["href", "do
|
|
|
6432
6432
|
A(s, {
|
|
6433
6433
|
width: "760px",
|
|
6434
6434
|
margin: "0 auto",
|
|
6435
|
-
|
|
6435
|
+
onSubmit: e
|
|
6436
6436
|
})
|
|
6437
6437
|
]);
|
|
6438
6438
|
};
|
|
6439
6439
|
}
|
|
6440
|
-
}), Ir = /* @__PURE__ */ P(Xd, [["__scopeId", "data-v-
|
|
6440
|
+
}), Ir = /* @__PURE__ */ P(Xd, [["__scopeId", "data-v-0f012ef7"]]), Yd = {}, Qd = { style: { "text-align": "center" } };
|
|
6441
6441
|
function Kd(t, e) {
|
|
6442
6442
|
return m(), b("div", Qd, e[0] || (e[0] = [
|
|
6443
6443
|
f("h1", null, "Страница не найдена", -1)
|
|
@@ -7865,7 +7865,7 @@ class If {
|
|
|
7865
7865
|
const e = this.GetFields(), i = /* @__PURE__ */ new Map();
|
|
7866
7866
|
return e.forEach((n) => {
|
|
7867
7867
|
n.value && i.set(n.name, n.value);
|
|
7868
|
-
}), i;
|
|
7868
|
+
}), Object.fromEntries(i);
|
|
7869
7869
|
}
|
|
7870
7870
|
Validate() {
|
|
7871
7871
|
return [];
|