@zlooks.cn/password-auth-server 1.1.0 → 1.1.2
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/.hile-rsc/{build-mu41ll5m-02df9102/client-browser/chunks/chunk-ZV6MPT36.js → build-mufa0hs2-66eec166/client-browser/chunks/chunk-PQL3UQJE.js} +6 -4
- package/.hile-rsc/{build-mu41ll5m-02df9102/client-browser/src-plugin-page-frame-07c4de56a6-24L24OGL.js → build-mufa0hs2-66eec166/client-browser/src-plugin-page-frame-07c4de56a6-KRXZZE3G.js} +1 -1
- package/.hile-rsc/{build-mu41ll5m-02df9102/client-browser/src-plugin-password-form-3bd63d69e5-MO3JJSBS.js → build-mufa0hs2-66eec166/client-browser/src-plugin-password-form-3bd63d69e5-NJA6JFAJ.js} +1 -1
- package/.hile-rsc/{build-mu41ll5m-02df9102/client-ssr/chunks/chunk-EWBYMJX4.js → build-mufa0hs2-66eec166/client-ssr/chunks/chunk-6INOW6JR.js} +7 -5
- package/.hile-rsc/{build-mu41ll5m-02df9102/client-ssr/src-plugin-page-frame-07c4de56a6-LN2W67ZP.js → build-mufa0hs2-66eec166/client-ssr/src-plugin-page-frame-07c4de56a6-OBBHTHYO.js} +1 -1
- package/.hile-rsc/{build-mu41ll5m-02df9102/client-ssr/src-plugin-password-form-3bd63d69e5-MWQ7H3E5.js → build-mufa0hs2-66eec166/client-ssr/src-plugin-password-form-3bd63d69e5-3SDOG3YJ.js} +1 -1
- package/.hile-rsc/{build-mu41ll5m-02df9102 → build-mufa0hs2-66eec166}/plugin.json +26 -23
- package/.hile-rsc/{build-mu41ll5m-02df9102 → build-mufa0hs2-66eec166}/server-rsc/index.js +61 -34
- package/package.json +8 -8
- /package/.hile-rsc/{build-mu41ll5m-02df9102 → build-mufa0hs2-66eec166}/client-browser/src-plugin-page-frame-07c4de56a6-3F24AYCH.css +0 -0
- /package/.hile-rsc/{build-mu41ll5m-02df9102 → build-mufa0hs2-66eec166}/client-browser/src-plugin-password-form-3bd63d69e5-TRYMJX4F.css +0 -0
- /package/.hile-rsc/{build-mu41ll5m-02df9102 → build-mufa0hs2-66eec166}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
|
@@ -317,7 +317,7 @@ var useSyncExternalStore = React.useSyncExternalStore;
|
|
|
317
317
|
var useTransition = React.useTransition;
|
|
318
318
|
var version = React.version;
|
|
319
319
|
|
|
320
|
-
// ../../node_modules/.pnpm/@hile+rsc@1.0.
|
|
320
|
+
// ../../node_modules/.pnpm/@hile+rsc@1.0.25_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._94b1190eb6087133b24826edb352d50c/node_modules/@hile/rsc/dist/client/navigation-internals.js
|
|
321
321
|
function resolveRscNavigationUrl(href, currentHref) {
|
|
322
322
|
try {
|
|
323
323
|
const destination = new URL(href, currentHref);
|
|
@@ -335,7 +335,7 @@ function shouldHandleRscNavigationClick(event, anchor, currentHref) {
|
|
|
335
335
|
return current !== void 0 && destination !== void 0 && destination.origin === current.origin;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
// ../../node_modules/.pnpm/@hile+rsc@1.0.
|
|
338
|
+
// ../../node_modules/.pnpm/@hile+rsc@1.0.25_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._94b1190eb6087133b24826edb352d50c/node_modules/@hile/rsc/dist/client/navigation-runtime.js
|
|
339
339
|
var runtimeStateKey = /* @__PURE__ */ Symbol.for("@hile/rsc/client/navigation/runtime");
|
|
340
340
|
function runtimeState() {
|
|
341
341
|
const scope = globalThis;
|
|
@@ -345,7 +345,7 @@ function getRscNavigationRuntime() {
|
|
|
345
345
|
return runtimeState().installations.at(-1)?.navigation;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
// ../../node_modules/.pnpm/@hile+rsc@1.0.
|
|
348
|
+
// ../../node_modules/.pnpm/@hile+rsc@1.0.25_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._94b1190eb6087133b24826edb352d50c/node_modules/@hile/rsc/dist/client/navigation.js
|
|
349
349
|
function browserLocation() {
|
|
350
350
|
return typeof window === "undefined" ? void 0 : window.location;
|
|
351
351
|
}
|
|
@@ -15009,10 +15009,12 @@ config(en_default());
|
|
|
15009
15009
|
|
|
15010
15010
|
// ../browser-api/dist/index.js
|
|
15011
15011
|
var BROWSER_API_CONTROLLER_PREFIX = "/-";
|
|
15012
|
+
var BROWSER_API_REQUEST_STREAM_LIMIT_MIN_BYTES = 64 * 1024;
|
|
15012
15013
|
var namespace = external_exports.string().regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)+$/);
|
|
15014
|
+
var pluginId = external_exports.string().min(1).max(64).regex(/^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/);
|
|
15013
15015
|
var absolutePath = external_exports.string().min(1).max(2048).regex(/^\/(?!\/)[^?#\s]*$/);
|
|
15014
15016
|
var instant = external_exports.iso.datetime({ offset: true });
|
|
15015
|
-
var cookieName = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9_
|
|
15017
|
+
var cookieName = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,127}$/);
|
|
15016
15018
|
var httpMethod = external_exports.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
15017
15019
|
var httpHeaderValue = external_exports.string().max(8192);
|
|
15018
15020
|
var successSchema = external_exports.strictObject({
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
useSyncExternalStore,
|
|
74
74
|
useZlooksApp,
|
|
75
75
|
warning_default
|
|
76
|
-
} from "./chunks/chunk-
|
|
76
|
+
} from "./chunks/chunk-PQL3UQJE.js";
|
|
77
77
|
|
|
78
78
|
// ../../node_modules/.pnpm/@ant-design+icons-svg@4.5.0/node_modules/@ant-design/icons-svg/lib/asn/EditOutlined.js
|
|
79
79
|
var require_EditOutlined = __commonJS({
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
version,
|
|
121
121
|
warning_default,
|
|
122
122
|
zoomIn
|
|
123
|
-
} from "./chunks/chunk-
|
|
123
|
+
} from "./chunks/chunk-PQL3UQJE.js";
|
|
124
124
|
|
|
125
125
|
// ../../node_modules/.pnpm/@ant-design+icons-svg@4.5.0/node_modules/@ant-design/icons-svg/lib/asn/SearchOutlined.js
|
|
126
126
|
var require_SearchOutlined = __commonJS({
|
|
@@ -21286,10 +21286,10 @@ var require_CopyOutlined = __commonJS({
|
|
|
21286
21286
|
}
|
|
21287
21287
|
});
|
|
21288
21288
|
|
|
21289
|
-
// ../../node_modules/.pnpm/@hile+rsc@1.0.
|
|
21289
|
+
// ../../node_modules/.pnpm/@hile+rsc@1.0.25_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._94b1190eb6087133b24826edb352d50c/node_modules/@hile/rsc/dist/client/navigation.js
|
|
21290
21290
|
init_react();
|
|
21291
21291
|
|
|
21292
|
-
// ../../node_modules/.pnpm/@hile+rsc@1.0.
|
|
21292
|
+
// ../../node_modules/.pnpm/@hile+rsc@1.0.25_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._94b1190eb6087133b24826edb352d50c/node_modules/@hile/rsc/dist/client/navigation-internals.js
|
|
21293
21293
|
function resolveRscNavigationUrl(href, currentHref) {
|
|
21294
21294
|
try {
|
|
21295
21295
|
const destination = new URL(href, currentHref);
|
|
@@ -21307,7 +21307,7 @@ function shouldHandleRscNavigationClick(event, anchor, currentHref) {
|
|
|
21307
21307
|
return current !== void 0 && destination !== void 0 && destination.origin === current.origin;
|
|
21308
21308
|
}
|
|
21309
21309
|
|
|
21310
|
-
// ../../node_modules/.pnpm/@hile+rsc@1.0.
|
|
21310
|
+
// ../../node_modules/.pnpm/@hile+rsc@1.0.25_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._94b1190eb6087133b24826edb352d50c/node_modules/@hile/rsc/dist/client/navigation-runtime.js
|
|
21311
21311
|
var runtimeStateKey = /* @__PURE__ */ Symbol.for("@hile/rsc/client/navigation/runtime");
|
|
21312
21312
|
function runtimeState() {
|
|
21313
21313
|
const scope = globalThis;
|
|
@@ -21317,7 +21317,7 @@ function getRscNavigationRuntime() {
|
|
|
21317
21317
|
return runtimeState().installations.at(-1)?.navigation;
|
|
21318
21318
|
}
|
|
21319
21319
|
|
|
21320
|
-
// ../../node_modules/.pnpm/@hile+rsc@1.0.
|
|
21320
|
+
// ../../node_modules/.pnpm/@hile+rsc@1.0.25_react-dom@19.2.8_react@19.2.8__react@19.2.8_webpack@5.109.2_esbuild@0._94b1190eb6087133b24826edb352d50c/node_modules/@hile/rsc/dist/client/navigation.js
|
|
21321
21321
|
function browserLocation() {
|
|
21322
21322
|
return typeof window === "undefined" ? void 0 : window.location;
|
|
21323
21323
|
}
|
|
@@ -35984,10 +35984,12 @@ config(en_default());
|
|
|
35984
35984
|
|
|
35985
35985
|
// ../browser-api/dist/index.js
|
|
35986
35986
|
var BROWSER_API_CONTROLLER_PREFIX = "/-";
|
|
35987
|
+
var BROWSER_API_REQUEST_STREAM_LIMIT_MIN_BYTES = 64 * 1024;
|
|
35987
35988
|
var namespace = external_exports.string().regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)+$/);
|
|
35989
|
+
var pluginId = external_exports.string().min(1).max(64).regex(/^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/);
|
|
35988
35990
|
var absolutePath = external_exports.string().min(1).max(2048).regex(/^\/(?!\/)[^?#\s]*$/);
|
|
35989
35991
|
var instant = external_exports.iso.datetime({ offset: true });
|
|
35990
|
-
var cookieName = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9_
|
|
35992
|
+
var cookieName = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,127}$/);
|
|
35991
35993
|
var httpMethod = external_exports.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
35992
35994
|
var httpHeaderValue = external_exports.string().max(8192);
|
|
35993
35995
|
var successSchema = external_exports.strictObject({
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
useState,
|
|
55
55
|
useSyncExternalStore,
|
|
56
56
|
useZlooksApp
|
|
57
|
-
} from "./chunks/chunk-
|
|
57
|
+
} from "./chunks/chunk-6INOW6JR.js";
|
|
58
58
|
|
|
59
59
|
// ../../node_modules/.pnpm/antd@6.6.1_luxon@3.7.2_moment@2.30.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/antd/es/app/App.js
|
|
60
60
|
init_react();
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
useRequest,
|
|
75
75
|
useRscNavigation,
|
|
76
76
|
useState
|
|
77
|
-
} from "./chunks/chunk-
|
|
77
|
+
} from "./chunks/chunk-6INOW6JR.js";
|
|
78
78
|
|
|
79
79
|
// ../../node_modules/.pnpm/antd@6.6.1_luxon@3.7.2_moment@2.30.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/antd/lib/_util/getReactMajorVersionCanDelMe.js
|
|
80
80
|
var require_getReactMajorVersionCanDelMe = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocolVersion": 1,
|
|
3
3
|
"pluginId": "auth.password",
|
|
4
|
-
"buildId": "build-
|
|
4
|
+
"buildId": "build-mufa0hs2-66eec166",
|
|
5
5
|
"runtime": {
|
|
6
6
|
"react": "19.2.8",
|
|
7
7
|
"reactDom": "19.2.8",
|
|
@@ -9,32 +9,32 @@
|
|
|
9
9
|
},
|
|
10
10
|
"server": {
|
|
11
11
|
"entry": "server-rsc/index.js",
|
|
12
|
-
"integrity": "sha256-
|
|
13
|
-
"size":
|
|
12
|
+
"integrity": "sha256-oVtr7FR9iLXMIScQZIIuFAQ1djZwXHlfcIPdrstoU0g=",
|
|
13
|
+
"size": 595431
|
|
14
14
|
},
|
|
15
15
|
"serverFunctions": [],
|
|
16
16
|
"clients": [
|
|
17
17
|
{
|
|
18
18
|
"id": "auth.password/src/plugin/page-frame#default",
|
|
19
|
-
"module": "client-browser/src-plugin-page-frame-07c4de56a6-
|
|
20
|
-
"ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-
|
|
19
|
+
"module": "client-browser/src-plugin-page-frame-07c4de56a6-KRXZZE3G.js",
|
|
20
|
+
"ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-OBBHTHYO.js",
|
|
21
21
|
"exportName": "default",
|
|
22
22
|
"chunks": [
|
|
23
23
|
{
|
|
24
|
-
"path": "client-browser/chunks/chunk-
|
|
25
|
-
"integrity": "sha256-
|
|
26
|
-
"size":
|
|
24
|
+
"path": "client-browser/chunks/chunk-PQL3UQJE.js",
|
|
25
|
+
"integrity": "sha256-YSzMbHU9ymegvLWih0t22lPIPZ9Id8Pu1iWh5QxdbMc=",
|
|
26
|
+
"size": 1454698
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
"ssrChunks": [
|
|
30
30
|
{
|
|
31
|
-
"path": "client-ssr/chunks/chunk-
|
|
32
|
-
"integrity": "sha256-
|
|
33
|
-
"size":
|
|
31
|
+
"path": "client-ssr/chunks/chunk-6INOW6JR.js",
|
|
32
|
+
"integrity": "sha256-Y74jkDxXd0z3+WGSure7fiFZFNOJko318nD+oW1eXT0=",
|
|
33
|
+
"size": 1382540
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"integrity": "sha256-
|
|
37
|
-
"ssrIntegrity": "sha256-
|
|
36
|
+
"integrity": "sha256-v53yM8XWq7jU5pSNrxGvye6ENnXLxwvhBLoQ04ksMtk=",
|
|
37
|
+
"ssrIntegrity": "sha256-K0pwwJLyB+1SbqHNw6o+O5mB4HpaRj1vxSDOgEJSfPo=",
|
|
38
38
|
"size": 81661,
|
|
39
39
|
"ssrSize": 525253,
|
|
40
40
|
"styles": [
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"id": "auth.password/src/plugin/password-form#default",
|
|
46
|
-
"module": "client-browser/src-plugin-password-form-3bd63d69e5-
|
|
47
|
-
"ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-
|
|
46
|
+
"module": "client-browser/src-plugin-password-form-3bd63d69e5-NJA6JFAJ.js",
|
|
47
|
+
"ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-3SDOG3YJ.js",
|
|
48
48
|
"exportName": "default",
|
|
49
49
|
"chunks": [
|
|
50
50
|
{
|
|
51
|
-
"path": "client-browser/chunks/chunk-
|
|
52
|
-
"integrity": "sha256-
|
|
53
|
-
"size":
|
|
51
|
+
"path": "client-browser/chunks/chunk-PQL3UQJE.js",
|
|
52
|
+
"integrity": "sha256-YSzMbHU9ymegvLWih0t22lPIPZ9Id8Pu1iWh5QxdbMc=",
|
|
53
|
+
"size": 1454698
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
"ssrChunks": [
|
|
57
57
|
{
|
|
58
|
-
"path": "client-ssr/chunks/chunk-
|
|
59
|
-
"integrity": "sha256-
|
|
60
|
-
"size":
|
|
58
|
+
"path": "client-ssr/chunks/chunk-6INOW6JR.js",
|
|
59
|
+
"integrity": "sha256-Y74jkDxXd0z3+WGSure7fiFZFNOJko318nD+oW1eXT0=",
|
|
60
|
+
"size": 1382540
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
"integrity": "sha256-
|
|
64
|
-
"ssrIntegrity": "sha256
|
|
63
|
+
"integrity": "sha256-3fUWYJ/qOxqzorQsuEE+XUZYEkt0GUA9ASf8wJeAtkY=",
|
|
64
|
+
"ssrIntegrity": "sha256-9+6MWg5/+FuKtNMjra4Ym0wKpmmFJIQHH1VUSvBVUOk=",
|
|
65
65
|
"size": 173584,
|
|
66
66
|
"ssrSize": 4801433,
|
|
67
67
|
"styles": [
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
{
|
|
94
94
|
"path": "/login",
|
|
95
95
|
"entry": "LoginPage",
|
|
96
|
+
"metadataEntry": "LoginMetadata",
|
|
96
97
|
"prefetch": "assets",
|
|
97
98
|
"clientReferences": [
|
|
98
99
|
"auth.password/src/plugin/page-frame#default",
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
{
|
|
103
104
|
"path": "/register",
|
|
104
105
|
"entry": "RegistrationPage",
|
|
106
|
+
"metadataEntry": "RegistrationMetadata",
|
|
105
107
|
"prefetch": "assets",
|
|
106
108
|
"clientReferences": [
|
|
107
109
|
"auth.password/src/plugin/page-frame#default",
|
|
@@ -111,6 +113,7 @@
|
|
|
111
113
|
{
|
|
112
114
|
"path": "/recovery",
|
|
113
115
|
"entry": "RecoveryPage",
|
|
116
|
+
"metadataEntry": "RecoveryMetadata",
|
|
114
117
|
"prefetch": "assets",
|
|
115
118
|
"clientReferences": [
|
|
116
119
|
"auth.password/src/plugin/page-frame#default",
|
|
@@ -14763,10 +14763,12 @@ function parseGlobalConfigRscSnapshot(input) {
|
|
|
14763
14763
|
|
|
14764
14764
|
// ../browser-api/dist/index.js
|
|
14765
14765
|
var BROWSER_API_CONTROLLER_PREFIX = "/-";
|
|
14766
|
+
var BROWSER_API_REQUEST_STREAM_LIMIT_MIN_BYTES = 64 * 1024;
|
|
14766
14767
|
var namespace = external_exports.string().regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)+$/);
|
|
14768
|
+
var pluginId = external_exports.string().min(1).max(64).regex(/^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/);
|
|
14767
14769
|
var absolutePath = external_exports.string().min(1).max(2048).regex(/^\/(?!\/)[^?#\s]*$/);
|
|
14768
14770
|
var instant = external_exports.iso.datetime({ offset: true });
|
|
14769
|
-
var cookieName = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9_
|
|
14771
|
+
var cookieName = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,127}$/);
|
|
14770
14772
|
var httpMethod = external_exports.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
14771
14773
|
var httpHeaderValue = external_exports.string().max(8192);
|
|
14772
14774
|
var successSchema = external_exports.strictObject({
|
|
@@ -15481,19 +15483,41 @@ function parseShellUserView(input) {
|
|
|
15481
15483
|
|
|
15482
15484
|
// ../ui/dist/seo.js
|
|
15483
15485
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
+
var canonicalPathSchema = external_exports.string().trim().min(1).max(2048).refine((value) => value.startsWith("/") && !value.startsWith("//") && !value.includes("#") && !/[\\\s]/.test(value), "canonicalPath must be an absolute same-origin path without a fragment");
|
|
15487
|
+
var documentImageUrlSchema = external_exports.string().trim().min(1).max(2048).refine((value) => {
|
|
15488
|
+
if (value.startsWith("/") && !value.startsWith("//") && !/[\\\s]/.test(value))
|
|
15489
|
+
return true;
|
|
15490
|
+
try {
|
|
15491
|
+
return /^https?:$/.test(new URL(value).protocol);
|
|
15492
|
+
} catch {
|
|
15493
|
+
return false;
|
|
15494
|
+
}
|
|
15495
|
+
}, "imageUrl must be a same-origin path or an HTTP(S) URL");
|
|
15496
|
+
var zlooksDocumentMetadataSchema = external_exports.strictObject({
|
|
15497
|
+
title: external_exports.string().trim().min(1).max(200),
|
|
15498
|
+
description: external_exports.string().trim().min(1).max(500),
|
|
15499
|
+
canonicalPath: canonicalPathSchema,
|
|
15500
|
+
siteName: external_exports.string().trim().min(1).max(100),
|
|
15501
|
+
robots: external_exports.enum(["index, follow", "noindex, nofollow"]),
|
|
15502
|
+
openGraph: external_exports.strictObject({
|
|
15503
|
+
type: external_exports.enum(["website", "article"]),
|
|
15504
|
+
imageUrl: documentImageUrlSchema.optional(),
|
|
15505
|
+
publishedTime: external_exports.iso.datetime({ offset: true }).optional(),
|
|
15506
|
+
modifiedTime: external_exports.iso.datetime({ offset: true }).optional()
|
|
15507
|
+
})
|
|
15508
|
+
});
|
|
15509
|
+
function parseZlooksDocumentMetadata(value) {
|
|
15510
|
+
return zlooksDocumentMetadataSchema.parse(value);
|
|
15511
|
+
}
|
|
15512
|
+
function createZlooksPageDocumentMetadata(input) {
|
|
15513
|
+
return parseZlooksDocumentMetadata({
|
|
15486
15514
|
title: input.title === input.siteName ? input.title : `${input.title} | ${input.siteName}`,
|
|
15487
15515
|
description: input.description,
|
|
15488
|
-
|
|
15516
|
+
canonicalPath: input.canonicalPath,
|
|
15489
15517
|
siteName: input.siteName,
|
|
15490
15518
|
robots: input.index ? "index, follow" : "noindex, nofollow",
|
|
15491
15519
|
openGraph: { type: "website" }
|
|
15492
|
-
};
|
|
15493
|
-
}
|
|
15494
|
-
function ZlooksSeo({ seo }) {
|
|
15495
|
-
const imageUrl = seo.openGraph.imageUrl;
|
|
15496
|
-
return _jsxs(_Fragment, { children: [_jsx("title", { children: seo.title }), _jsx("meta", { name: "application-name", content: seo.siteName }), _jsx("meta", { name: "description", content: seo.description }), _jsx("meta", { name: "robots", content: seo.robots }), _jsx("meta", { name: "googlebot", content: seo.robots }), _jsx("link", { rel: "canonical", href: seo.canonicalUrl }), _jsx("meta", { property: "og:locale", content: "zh_CN" }), _jsx("meta", { property: "og:type", content: seo.openGraph.type }), _jsx("meta", { property: "og:site_name", content: seo.siteName }), _jsx("meta", { property: "og:title", content: seo.title }), _jsx("meta", { property: "og:description", content: seo.description }), _jsx("meta", { property: "og:url", content: seo.canonicalUrl }), imageUrl ? _jsx("meta", { property: "og:image", content: imageUrl }) : null, seo.openGraph.publishedTime ? _jsx("meta", { property: "article:published_time", content: seo.openGraph.publishedTime }) : null, seo.openGraph.modifiedTime ? _jsx("meta", { property: "article:modified_time", content: seo.openGraph.modifiedTime }) : null, _jsx("meta", { name: "twitter:card", content: imageUrl ? "summary_large_image" : "summary" }), _jsx("meta", { name: "twitter:title", content: seo.title }), _jsx("meta", { name: "twitter:description", content: seo.description }), imageUrl ? _jsx("meta", { name: "twitter:image", content: imageUrl }) : null] });
|
|
15520
|
+
});
|
|
15497
15521
|
}
|
|
15498
15522
|
|
|
15499
15523
|
// hile-rsc-client-reference:/Users/evioshen/code/github/cevio/www.zlooks.cn/packages/password-auth-server/src/plugin/password-form.tsx
|
|
@@ -15505,7 +15529,7 @@ var __hileRemoteClientBoundary = __hileRegisterClientReference(function() {
|
|
|
15505
15529
|
function __hileDefault(props) {
|
|
15506
15530
|
return React.createElement(__hileRemoteClientBoundary, {
|
|
15507
15531
|
pluginId: "auth.password",
|
|
15508
|
-
buildId: "build-
|
|
15532
|
+
buildId: "build-mufa0hs2-66eec166",
|
|
15509
15533
|
referenceId: "auth.password/src/plugin/password-form#default",
|
|
15510
15534
|
exportName: "default",
|
|
15511
15535
|
props
|
|
@@ -15522,7 +15546,7 @@ var __hileRemoteClientBoundary2 = __hileRegisterClientReference2(function() {
|
|
|
15522
15546
|
function __hileDefault2(props) {
|
|
15523
15547
|
return React2.createElement(__hileRemoteClientBoundary2, {
|
|
15524
15548
|
pluginId: "auth.password",
|
|
15525
|
-
buildId: "build-
|
|
15549
|
+
buildId: "build-mufa0hs2-66eec166",
|
|
15526
15550
|
referenceId: "auth.password/src/plugin/page-frame#default",
|
|
15527
15551
|
exportName: "default",
|
|
15528
15552
|
props
|
|
@@ -15531,43 +15555,43 @@ function __hileDefault2(props) {
|
|
|
15531
15555
|
var page_frame_default = __hileDefault2;
|
|
15532
15556
|
|
|
15533
15557
|
// src/plugin/page.tsx
|
|
15534
|
-
import {
|
|
15558
|
+
import { jsx } from "react/jsx-runtime";
|
|
15535
15559
|
function LoginPage(props) {
|
|
15536
15560
|
const transactionId = readTransactionId(props);
|
|
15537
15561
|
const shell = readShellContext(props);
|
|
15538
15562
|
const site = readSiteConfig(props);
|
|
15539
|
-
return /* @__PURE__ */ jsx(
|
|
15563
|
+
return /* @__PURE__ */ jsx(page_frame_default, { shell, site, children: /* @__PURE__ */ jsx(password_form_default, { intent: "login", ...transactionId ? { transactionId } : {} }) });
|
|
15540
15564
|
}
|
|
15541
15565
|
function RegistrationPage(props) {
|
|
15542
15566
|
const transactionId = readTransactionId(props);
|
|
15543
15567
|
const shell = readShellContext(props);
|
|
15544
15568
|
const site = readSiteConfig(props);
|
|
15545
|
-
return /* @__PURE__ */ jsx(
|
|
15569
|
+
return /* @__PURE__ */ jsx(page_frame_default, { shell, site, children: /* @__PURE__ */ jsx(password_form_default, { intent: "registration", ...transactionId ? { transactionId } : {} }) });
|
|
15546
15570
|
}
|
|
15547
15571
|
function RecoveryPage(props) {
|
|
15548
15572
|
const transactionId = readTransactionId(props);
|
|
15549
15573
|
const shell = readShellContext(props);
|
|
15550
15574
|
const site = readSiteConfig(props);
|
|
15551
|
-
return /* @__PURE__ */ jsx(
|
|
15552
|
-
}
|
|
15553
|
-
function
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
return
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15575
|
+
return /* @__PURE__ */ jsx(page_frame_default, { shell, site, children: /* @__PURE__ */ jsx(password_form_default, { intent: "recovery", ...transactionId ? { transactionId } : {} }) });
|
|
15576
|
+
}
|
|
15577
|
+
function LoginMetadata(props) {
|
|
15578
|
+
return createMetadata(props, "\u5BC6\u7801\u767B\u5F55", "\u4F7F\u7528\u5BC6\u7801\u6216\u90AE\u7BB1\u9A8C\u8BC1\u7801\u767B\u5F55\u3002", "/auth.password/login");
|
|
15579
|
+
}
|
|
15580
|
+
function RegistrationMetadata(props) {
|
|
15581
|
+
return createMetadata(props, "\u5BC6\u7801\u6CE8\u518C", "\u9A8C\u8BC1\u90AE\u7BB1\u5E76\u521B\u5EFA\u8D26\u6237\u3002", "/auth.password/register");
|
|
15582
|
+
}
|
|
15583
|
+
function RecoveryMetadata(props) {
|
|
15584
|
+
return createMetadata(props, "\u627E\u56DE\u5BC6\u7801", "\u9A8C\u8BC1\u90AE\u7BB1\u540E\u91CD\u7F6E\u8D26\u6237\u5BC6\u7801\u3002", "/auth.password/recovery");
|
|
15585
|
+
}
|
|
15586
|
+
function createMetadata(props, title2, description2, canonicalPath) {
|
|
15587
|
+
const site = readSiteConfig(props);
|
|
15588
|
+
return createZlooksPageDocumentMetadata({
|
|
15589
|
+
title: title2,
|
|
15590
|
+
description: description2,
|
|
15591
|
+
canonicalPath,
|
|
15592
|
+
siteName: site.value.identity.name,
|
|
15593
|
+
index: false
|
|
15594
|
+
});
|
|
15571
15595
|
}
|
|
15572
15596
|
function readShellContext(props) {
|
|
15573
15597
|
return parseZlooksRscShellContext(props.params[ZLOOKS_RSC_SHELL_CONTEXT_PARAM]);
|
|
@@ -15580,7 +15604,10 @@ function readTransactionId(props) {
|
|
|
15580
15604
|
return Array.isArray(value) ? value[0] : value;
|
|
15581
15605
|
}
|
|
15582
15606
|
export {
|
|
15607
|
+
LoginMetadata,
|
|
15583
15608
|
LoginPage,
|
|
15609
|
+
RecoveryMetadata,
|
|
15584
15610
|
RecoveryPage,
|
|
15611
|
+
RegistrationMetadata,
|
|
15585
15612
|
RegistrationPage
|
|
15586
15613
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zlooks.cn/password-auth-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@hile/redis-lock": "4.0.2",
|
|
53
53
|
"@hile/redis-rate-limit": "4.0.5",
|
|
54
54
|
"@hile/reloader": "3.0.4",
|
|
55
|
-
"@hile/rsc": "1.0.
|
|
56
|
-
"@hile/rsc-discovery-hile": "1.0.
|
|
55
|
+
"@hile/rsc": "1.0.25",
|
|
56
|
+
"@hile/rsc-discovery-hile": "1.0.22",
|
|
57
57
|
"@hile/typeorm": "4.0.3",
|
|
58
58
|
"@node-rs/argon2": "2.1.0",
|
|
59
59
|
"@zlooks.cn/auth-extension-contract": "1.0.2",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@zlooks.cn/global-config-shared": "1.0.2",
|
|
63
63
|
"@zlooks.cn/infrastructure": "1.0.0",
|
|
64
64
|
"@zlooks.cn/registry-config": "1.0.1",
|
|
65
|
-
"@zlooks.cn/service-command": "1.0.
|
|
66
|
-
"@zlooks.cn/ui": "1.1.
|
|
67
|
-
"@zlooks.cn/user-shared": "1.1.
|
|
65
|
+
"@zlooks.cn/service-command": "1.0.4",
|
|
66
|
+
"@zlooks.cn/ui": "1.1.2",
|
|
67
|
+
"@zlooks.cn/user-shared": "1.1.1",
|
|
68
68
|
"@zlooks.cn/utils": "1.0.0",
|
|
69
69
|
"antd": "6.6.1",
|
|
70
70
|
"detect-port": "2.1.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@hile/cli": "4.0.9",
|
|
82
|
-
"@hile/rsc-build": "1.0.
|
|
82
|
+
"@hile/rsc-build": "1.0.22",
|
|
83
83
|
"@types/node": "26.2.0",
|
|
84
84
|
"@types/nodemailer": "8.0.1",
|
|
85
85
|
"@types/react": "19.2.18",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"typescript": "7.0.2",
|
|
90
90
|
"vitest": "4.1.11"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "5f1145d32518a984162fd8b12b726a4132f6207c"
|
|
93
93
|
}
|
|
File without changes
|
|
File without changes
|