@tachybase/plugin-auth-pages 1.3.15 → 1.3.17

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.
@@ -5,4 +5,4 @@
5
5
  align-items: center;
6
6
  font-size: 15px;
7
7
  cursor: pointer;
8
- `})),J=()=>{var A;const{styles:s}=S(),{i18n:E}=e.useTranslation(),I=e.useAPIClient(),{data:n}=e.useSystemSettings(),h=r.useMemo(()=>{var u;return((u=n==null?void 0:n.data)==null?void 0:u.enabledLanguages)||[]},[(A=n==null?void 0:n.data)==null?void 0:A.enabledLanguages]),C=r.useMemo(()=>Object.keys(e.locale).filter(u=>h.includes(u)).map(u=>({label:e.locale[u].label,value:u})),[e.locale,h]),B=u=>U(this,null,function*(){yield I.auth.setLocale(u),window.location.reload()});return o.jsx(e.SelectWithTitle,{title:o.jsx(p,{}),defaultValue:E.language,options:C,onChange:B})},F=()=>{const{title:s,authenticators:E}=k(),{i18n:I}=e.useTranslation(),n=I.language==="zh-CN"?d:c;return o.jsxs(i.Row,{className:a["custom-authLayout"],children:[o.jsxs(i.Col,{xs:{span:0},md:{span:14},children:[o.jsx("a",{className:a["account-logo"],href:"https://www.tachybase.com",target:"_self",children:o.jsx("img",{className:a["logo-img"],src:n,alt:""})}),o.jsx("div",{className:a["account-bg"]})]}),o.jsxs(i.Col,{className:a["account-wrapper"],xs:{span:24},md:{span:10},children:[o.jsx("div",{className:a["account-languagetoggle"],children:o.jsx(J,{})}),o.jsxs("div",{className:a["account-container"],children:[o.jsx("h1",{children:s}),o.jsx(g.AuthenticatorsContext.Provider,{value:E,children:o.jsx(l.Outlet,{})})]}),o.jsx("div",{className:a["account-poweredby"],children:o.jsx(e.PoweredBy,{})})]})]})};class y extends e.Plugin{afterLoad(){return U(this,null,function*(){this.app.addComponents({AuthLayout:F})})}}t.default=y,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
8
+ `})),J=()=>{var A;const{styles:s}=S(),{i18n:E}=e.useTranslation(),I=e.useAPIClient(),{data:n}=e.useSystemSettings(),h=r.useMemo(()=>{var u;return((u=n==null?void 0:n.data)==null?void 0:u.enabledLanguages)||[]},[(A=n==null?void 0:n.data)==null?void 0:A.enabledLanguages]),C=r.useMemo(()=>Object.keys(e.locale).filter(u=>h.includes(u)).map(u=>({label:e.locale[u].label,value:u})),[e.locale,h]),B=u=>U(null,null,function*(){yield I.auth.setLocale(u),window.location.reload()});return o.jsx(e.SelectWithTitle,{title:o.jsx(p,{}),defaultValue:E.language,options:C,onChange:B})},F=()=>{const{title:s,authenticators:E}=k(),{i18n:I}=e.useTranslation(),n=I.language==="zh-CN"?d:c;return o.jsxs(i.Row,{className:a["custom-authLayout"],children:[o.jsxs(i.Col,{xs:{span:0},md:{span:14},children:[o.jsx("a",{className:a["account-logo"],href:"https://www.tachybase.com",target:"_self",children:o.jsx("img",{className:a["logo-img"],src:n,alt:""})}),o.jsx("div",{className:a["account-bg"]})]}),o.jsxs(i.Col,{className:a["account-wrapper"],xs:{span:24},md:{span:10},children:[o.jsx("div",{className:a["account-languagetoggle"],children:o.jsx(J,{})}),o.jsxs("div",{className:a["account-container"],children:[o.jsx("h1",{children:s}),o.jsx(g.AuthenticatorsContext.Provider,{value:E,children:o.jsx(l.Outlet,{})})]}),o.jsx("div",{className:a["account-poweredby"],children:o.jsx(e.PoweredBy,{})})]})]})};class y extends e.Plugin{afterLoad(){return U(this,null,function*(){this.app.addComponents({AuthLayout:F})})}}t.default=y,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.3.15",
3
- "@tachybase/server": "1.3.15",
4
- "@tachybase/module-auth": "1.3.15",
2
+ "@tachybase/client": "1.3.17",
3
+ "@tachybase/server": "1.3.17",
4
+ "@tachybase/module-auth": "1.3.17",
5
5
  "antd": "5.22.5",
6
6
  "react-router-dom": "6.28.1",
7
7
  "react": "18.3.1"
package/dist/index.js CHANGED
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var src_exports = {};
30
- __export(src_exports, {
29
+ var index_exports = {};
30
+ __export(index_exports, {
31
31
  default: () => import_server.default
32
32
  });
33
- module.exports = __toCommonJS(src_exports);
34
- __reExport(src_exports, require("./server"), module.exports);
33
+ module.exports = __toCommonJS(index_exports);
34
+ __reExport(index_exports, require("./server"), module.exports);
35
35
  var import_server = __toESM(require("./server"));
36
36
  // Annotate the CommonJS export names for ESM import in node:
37
37
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-auth-pages",
3
3
  "displayName": "Auth: Pages",
4
- "version": "1.3.15",
4
+ "version": "1.3.17",
5
5
  "description": "Pages for auth",
6
6
  "keywords": [
7
7
  "Authentication"
@@ -13,10 +13,10 @@
13
13
  "react-router-dom": "6.28.1"
14
14
  },
15
15
  "peerDependencies": {
16
- "@tachybase/server": "1.3.15",
17
- "@tachybase/module-auth": "1.3.15",
18
- "@tachybase/client": "1.3.15",
19
- "@tachybase/test": "1.3.15"
16
+ "@tachybase/server": "1.3.17",
17
+ "@tachybase/module-auth": "1.3.17",
18
+ "@tachybase/test": "1.3.17",
19
+ "@tachybase/client": "1.3.17"
20
20
  },
21
21
  "description.zh-CN": "认证:页面",
22
22
  "displayName.zh-CN": "认证页面",