sprof 0.0.98 → 0.0.100

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/sprof.js CHANGED
@@ -6004,16 +6004,14 @@ const pd = /* @__PURE__ */ P(hd, [["render", gd], ["__scopeId", "data-v-0ea9a95f
6004
6004
  emits: ["submit"],
6005
6005
  setup(t, { emit: e }) {
6006
6006
  const i = M.Auth.Form, n = z(!1), s = e, r = de(() => i.GetButtons()), o = async (l) => {
6007
- await M.Auth.Form.Block(async () => {
6008
- if (!l.submit)
6009
- return i.SetStatus(l.GetStatus());
6010
- const a = i.Validate();
6011
- if (a.length > 0) {
6012
- M.UI.Notify.Error(a.join(", "));
6013
- return;
6014
- }
6015
- s("submit");
6016
- });
6007
+ if (console.log(l), !l.submit)
6008
+ return i.SetStatus(l.GetStatus());
6009
+ const a = i.Validate();
6010
+ if (a.length > 0) {
6011
+ M.UI.Notify.Error(a.join(", "));
6012
+ return;
6013
+ }
6014
+ s("submit");
6017
6015
  };
6018
6016
  return On(() => {
6019
6017
  i.Reset();
@@ -6052,7 +6050,7 @@ const pd = /* @__PURE__ */ P(hd, [["render", gd], ["__scopeId", "data-v-0ea9a95f
6052
6050
  ], 4);
6053
6051
  };
6054
6052
  }
6055
- }), Od = /* @__PURE__ */ P(zd, [["__scopeId", "data-v-238616ff"]]), Ld = /* @__PURE__ */ $({
6053
+ }), Od = /* @__PURE__ */ P(zd, [["__scopeId", "data-v-cab1e7ef"]]), Ld = /* @__PURE__ */ $({
6056
6054
  __name: "PModal",
6057
6055
  props: {
6058
6056
  showCloseDialog: { type: Boolean, required: !1, default: !1 },
@@ -6425,8 +6423,8 @@ const Nd = ["id"], Ud = ["for"], Wd = { class: "left-field" }, jd = ["href", "do
6425
6423
  }), Zd = /* @__PURE__ */ P(_d, [["__scopeId", "data-v-cacad4ae"]]), Jd = { class: "bg" }, Xd = /* @__PURE__ */ $({
6426
6424
  __name: "AuthPage",
6427
6425
  setup(t) {
6428
- const e = () => {
6429
- M.Auth.Form.IsLogin() && M.H.Router.ToHome();
6426
+ const e = async () => {
6427
+ await M.S.Auth.Login();
6430
6428
  };
6431
6429
  return (i, n) => {
6432
6430
  const s = E("AuthForm");
@@ -6434,12 +6432,12 @@ const Nd = ["id"], Ud = ["for"], Wd = { class: "left-field" }, jd = ["href", "do
6434
6432
  A(s, {
6435
6433
  width: "760px",
6436
6434
  margin: "0 auto",
6437
- onAction: e
6435
+ onSubmit: e
6438
6436
  })
6439
6437
  ]);
6440
6438
  };
6441
6439
  }
6442
- }), Ir = /* @__PURE__ */ P(Xd, [["__scopeId", "data-v-c3e2f5bc"]]), Yd = {}, Qd = { style: { "text-align": "center" } };
6440
+ }), Ir = /* @__PURE__ */ P(Xd, [["__scopeId", "data-v-0f012ef7"]]), Yd = {}, Qd = { style: { "text-align": "center" } };
6443
6441
  function Kd(t, e) {
6444
6442
  return m(), b("div", Qd, e[0] || (e[0] = [
6445
6443
  f("h1", null, "Страница не найдена", -1)