@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.
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +3 -3
- package/dist/index.js +4 -4
- package/package.json +5 -5
package/dist/client/index.js
CHANGED
|
@@ -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(
|
|
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"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@tachybase/client": "1.3.
|
|
3
|
-
"@tachybase/server": "1.3.
|
|
4
|
-
"@tachybase/module-auth": "1.3.
|
|
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
|
|
30
|
-
__export(
|
|
29
|
+
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
31
|
default: () => import_server.default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
__reExport(
|
|
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.
|
|
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.
|
|
17
|
-
"@tachybase/module-auth": "1.3.
|
|
18
|
-
"@tachybase/
|
|
19
|
-
"@tachybase/
|
|
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": "认证页面",
|