@nocobase/plugin-auth 0.13.0-alpha.4 → 0.13.0-alpha.6
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 +2 -744
- package/dist/index.js +36 -18
- package/dist/locale/zh-CN.js +22 -4
- package/dist/node_modules/cron/lib/cron.js +1 -1
- package/dist/node_modules/cron/package.json +1 -1
- package/dist/preset.js +32 -9
- package/dist/server/actions/auth.js +22 -4
- package/dist/server/actions/authenticators.js +25 -8
- package/dist/server/basic-auth.js +49 -22
- package/dist/server/collections/authenticators.js +22 -4
- package/dist/server/collections/token-blacklist.js +22 -4
- package/dist/server/collections/users-authenticators.js +22 -4
- package/dist/server/index.js +37 -19
- package/dist/server/locale/en-US.js +22 -4
- package/dist/server/locale/fr-FR.js +22 -4
- package/dist/server/locale/index.js +41 -24
- package/dist/server/locale/ja-JP.js +22 -4
- package/dist/server/locale/pt-BR.js +22 -4
- package/dist/server/locale/zh-CN.js +22 -4
- package/dist/server/migrations/20230506152253-basic-authenticator.js +27 -10
- package/dist/server/migrations/20230607174500-update-basic.js +26 -9
- package/dist/server/model/authenticator.js +28 -7
- package/dist/server/plugin.js +60 -36
- package/dist/server/token-blacklist.js +26 -4
- package/dist/swagger/index.js +22 -4
- package/package.json +2 -2
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var auth_exports = {};
|
|
19
|
+
__export(auth_exports, {
|
|
20
|
+
default: () => auth_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(auth_exports);
|
|
3
23
|
var auth_default = {
|
|
4
24
|
lostPassword: async (ctx, next) => {
|
|
5
25
|
ctx.body = await ctx.auth.lostPassword();
|
|
@@ -18,5 +38,3 @@ var auth_default = {
|
|
|
18
38
|
await next();
|
|
19
39
|
}
|
|
20
40
|
};
|
|
21
|
-
|
|
22
|
-
module.exports = auth_default;
|
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var authenticators_exports = {};
|
|
19
|
+
__export(authenticators_exports, {
|
|
20
|
+
default: () => authenticators_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(authenticators_exports);
|
|
23
|
+
var import_preset = require("../../preset");
|
|
5
24
|
async function checkCount(repository, id) {
|
|
6
25
|
const count = await repository.count({
|
|
7
26
|
filter: {
|
|
@@ -46,7 +65,7 @@ var authenticators_default = {
|
|
|
46
65
|
try {
|
|
47
66
|
await checkCount(repository, filterByTk);
|
|
48
67
|
} catch (err) {
|
|
49
|
-
ctx.throw(400, ctx.t(err.message, { ns:
|
|
68
|
+
ctx.throw(400, ctx.t(err.message, { ns: import_preset.namespace }));
|
|
50
69
|
}
|
|
51
70
|
const instance = await repository.destroy({
|
|
52
71
|
filter,
|
|
@@ -63,7 +82,7 @@ var authenticators_default = {
|
|
|
63
82
|
try {
|
|
64
83
|
await checkCount(repository, values.id);
|
|
65
84
|
} catch (err) {
|
|
66
|
-
ctx.throw(400, ctx.t(err.message, { ns:
|
|
85
|
+
ctx.throw(400, ctx.t(err.message, { ns: import_preset.namespace }));
|
|
67
86
|
}
|
|
68
87
|
}
|
|
69
88
|
ctx.body = await repository.update({
|
|
@@ -79,5 +98,3 @@ var authenticators_default = {
|
|
|
79
98
|
await next();
|
|
80
99
|
}
|
|
81
100
|
};
|
|
82
|
-
|
|
83
|
-
module.exports = authenticators_default;
|
|
@@ -1,14 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var basic_auth_exports = {};
|
|
29
|
+
__export(basic_auth_exports, {
|
|
30
|
+
BasicAuth: () => BasicAuth
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(basic_auth_exports);
|
|
33
|
+
var import_auth = require("@nocobase/auth");
|
|
34
|
+
var import_crypto = __toESM(require("crypto"));
|
|
35
|
+
var import_preset = require("../preset");
|
|
36
|
+
class BasicAuth extends import_auth.BaseAuth {
|
|
12
37
|
constructor(config) {
|
|
13
38
|
const userCollection = config.ctx.db.getCollection("users");
|
|
14
39
|
super({ ...config, userCollection });
|
|
@@ -25,7 +50,7 @@ class BasicAuth extends auth.BaseAuth {
|
|
|
25
50
|
}
|
|
26
51
|
} = ctx.action.params;
|
|
27
52
|
if (!account && !email) {
|
|
28
|
-
ctx.throw(400, ctx.t("Please enter your username or email", { ns:
|
|
53
|
+
ctx.throw(400, ctx.t("Please enter your username or email", { ns: import_preset.namespace }));
|
|
29
54
|
}
|
|
30
55
|
const filter = email ? { email } : {
|
|
31
56
|
$or: [{ username: account }, { email: account }]
|
|
@@ -34,12 +59,12 @@ class BasicAuth extends auth.BaseAuth {
|
|
|
34
59
|
filter
|
|
35
60
|
});
|
|
36
61
|
if (!user) {
|
|
37
|
-
ctx.throw(401, ctx.t("The username or email is incorrect, please re-enter", { ns:
|
|
62
|
+
ctx.throw(401, ctx.t("The username or email is incorrect, please re-enter", { ns: import_preset.namespace }));
|
|
38
63
|
}
|
|
39
64
|
const field = this.userCollection.getField("password");
|
|
40
65
|
const valid = await field.verify(password, user.password);
|
|
41
66
|
if (!valid) {
|
|
42
|
-
ctx.throw(401, ctx.t("The password is incorrect, please re-enter", { ns:
|
|
67
|
+
ctx.throw(401, ctx.t("The password is incorrect, please re-enter", { ns: import_preset.namespace }));
|
|
43
68
|
}
|
|
44
69
|
return user;
|
|
45
70
|
}
|
|
@@ -48,13 +73,13 @@ class BasicAuth extends auth.BaseAuth {
|
|
|
48
73
|
const ctx = this.ctx;
|
|
49
74
|
const options = ((_a = this.authenticator.options) == null ? void 0 : _a.public) || {};
|
|
50
75
|
if (!options.allowSignUp) {
|
|
51
|
-
ctx.throw(403, ctx.t("Not allowed to sign up", { ns:
|
|
76
|
+
ctx.throw(403, ctx.t("Not allowed to sign up", { ns: import_preset.namespace }));
|
|
52
77
|
}
|
|
53
78
|
const User = ctx.db.getRepository("users");
|
|
54
79
|
const { values } = ctx.action.params;
|
|
55
80
|
const { username } = values;
|
|
56
81
|
if (!/^[^@.<>"'/]{2,16}$/.test(username)) {
|
|
57
|
-
ctx.throw(400, ctx.t("Please enter a valid username", { ns:
|
|
82
|
+
ctx.throw(400, ctx.t("Please enter a valid username", { ns: import_preset.namespace }));
|
|
58
83
|
}
|
|
59
84
|
const user = await User.create({ values });
|
|
60
85
|
return user;
|
|
@@ -65,7 +90,7 @@ class BasicAuth extends auth.BaseAuth {
|
|
|
65
90
|
values: { email }
|
|
66
91
|
} = ctx.action.params;
|
|
67
92
|
if (!email) {
|
|
68
|
-
ctx.throw(400, ctx.t("Please fill in your email address", { ns:
|
|
93
|
+
ctx.throw(400, ctx.t("Please fill in your email address", { ns: import_preset.namespace }));
|
|
69
94
|
}
|
|
70
95
|
const user = await this.userRepository.findOne({
|
|
71
96
|
where: {
|
|
@@ -73,9 +98,9 @@ class BasicAuth extends auth.BaseAuth {
|
|
|
73
98
|
}
|
|
74
99
|
});
|
|
75
100
|
if (!user) {
|
|
76
|
-
ctx.throw(401, ctx.t("The email is incorrect, please re-enter", { ns:
|
|
101
|
+
ctx.throw(401, ctx.t("The email is incorrect, please re-enter", { ns: import_preset.namespace }));
|
|
77
102
|
}
|
|
78
|
-
user.resetToken =
|
|
103
|
+
user.resetToken = import_crypto.default.randomBytes(20).toString("hex");
|
|
79
104
|
await user.save();
|
|
80
105
|
return user;
|
|
81
106
|
}
|
|
@@ -129,12 +154,14 @@ class BasicAuth extends auth.BaseAuth {
|
|
|
129
154
|
const pwd = this.userCollection.getField("password");
|
|
130
155
|
const isValid = await pwd.verify(oldPassword, user.password);
|
|
131
156
|
if (!isValid) {
|
|
132
|
-
ctx.throw(401, ctx.t("The password is incorrect, please re-enter", { ns:
|
|
157
|
+
ctx.throw(401, ctx.t("The password is incorrect, please re-enter", { ns: import_preset.namespace }));
|
|
133
158
|
}
|
|
134
159
|
user.password = newPassword;
|
|
135
160
|
await user.save();
|
|
136
161
|
return currentUser;
|
|
137
162
|
}
|
|
138
163
|
}
|
|
139
|
-
|
|
140
|
-
exports
|
|
164
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
165
|
+
0 && (module.exports = {
|
|
166
|
+
BasicAuth
|
|
167
|
+
});
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var authenticators_exports = {};
|
|
19
|
+
__export(authenticators_exports, {
|
|
20
|
+
default: () => authenticators_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(authenticators_exports);
|
|
3
23
|
var authenticators_default = {
|
|
4
24
|
namespace: "auth.auth",
|
|
5
25
|
duplicator: "optional",
|
|
@@ -93,5 +113,3 @@ var authenticators_default = {
|
|
|
93
113
|
}
|
|
94
114
|
]
|
|
95
115
|
};
|
|
96
|
-
|
|
97
|
-
module.exports = authenticators_default;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var token_blacklist_exports = {};
|
|
19
|
+
__export(token_blacklist_exports, {
|
|
20
|
+
default: () => token_blacklist_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(token_blacklist_exports);
|
|
3
23
|
var token_blacklist_default = {
|
|
4
24
|
namespace: "auth.token-black",
|
|
5
25
|
duplicator: "optional",
|
|
@@ -17,5 +37,3 @@ var token_blacklist_default = {
|
|
|
17
37
|
}
|
|
18
38
|
]
|
|
19
39
|
};
|
|
20
|
-
|
|
21
|
-
module.exports = token_blacklist_default;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var users_authenticators_exports = {};
|
|
19
|
+
__export(users_authenticators_exports, {
|
|
20
|
+
default: () => users_authenticators_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(users_authenticators_exports);
|
|
3
23
|
var users_authenticators_default = {
|
|
4
24
|
namespace: "auth.auth",
|
|
5
25
|
duplicator: {
|
|
@@ -67,5 +87,3 @@ var users_authenticators_default = {
|
|
|
67
87
|
}
|
|
68
88
|
]
|
|
69
89
|
};
|
|
70
|
-
|
|
71
|
-
module.exports = users_authenticators_default;
|
package/dist/server/index.js
CHANGED
|
@@ -1,21 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var server_exports = {};
|
|
29
|
+
__export(server_exports, {
|
|
30
|
+
AuthModel: () => import_authenticator.AuthModel,
|
|
31
|
+
default: () => import_plugin.default
|
|
17
32
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
33
|
+
module.exports = __toCommonJS(server_exports);
|
|
34
|
+
var import_plugin = __toESM(require("./plugin"));
|
|
35
|
+
var import_authenticator = require("./model/authenticator");
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
AuthModel
|
|
21
39
|
});
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var en_US_exports = {};
|
|
19
|
+
__export(en_US_exports, {
|
|
20
|
+
default: () => en_US_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(en_US_exports);
|
|
3
23
|
var en_US_default = {
|
|
4
24
|
"The email is incorrect, please re-enter": "The email is incorrect, please re-enter",
|
|
5
25
|
"Please fill in your email address": "Please fill in your email address",
|
|
@@ -8,5 +28,3 @@ var en_US_default = {
|
|
|
8
28
|
"The phone number has been registered, please login directly": "The phone number has been registered, please login directly",
|
|
9
29
|
"The phone number is not registered, please register first": "The phone number is not registered, please register first"
|
|
10
30
|
};
|
|
11
|
-
|
|
12
|
-
module.exports = en_US_default;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var fr_FR_exports = {};
|
|
19
|
+
__export(fr_FR_exports, {
|
|
20
|
+
default: () => fr_FR_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(fr_FR_exports);
|
|
3
23
|
var fr_FR_default = {
|
|
4
24
|
"The email is incorrect, please re-enter": "L'email est incorrect, veuillez le saisir \xE0 nouveau",
|
|
5
25
|
"Please fill in your email address": "Veuillez remplir votre adresse e-mail",
|
|
@@ -8,5 +28,3 @@ var fr_FR_default = {
|
|
|
8
28
|
"The phone number has been registered, please login directly": "Le num\xE9ro de t\xE9l\xE9phone a \xE9t\xE9 enregistr\xE9, veuillez vous connecter directement",
|
|
9
29
|
"The phone number is not registered, please register first": "Le num\xE9ro de t\xE9l\xE9phone n'est pas enregistr\xE9, veuillez vous inscrire d'abord"
|
|
10
30
|
};
|
|
11
|
-
|
|
12
|
-
module.exports = fr_FR_default;
|
|
@@ -1,26 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var locale_exports = {};
|
|
29
|
+
__export(locale_exports, {
|
|
30
|
+
enUS: () => import_en_US.default,
|
|
31
|
+
ptBR: () => import_pt_BR.default,
|
|
32
|
+
zhCN: () => import_zh_CN.default
|
|
18
33
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
34
|
+
module.exports = __toCommonJS(locale_exports);
|
|
35
|
+
var import_en_US = __toESM(require("./en-US"));
|
|
36
|
+
var import_zh_CN = __toESM(require("./zh-CN"));
|
|
37
|
+
var import_pt_BR = __toESM(require("./pt-BR"));
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
enUS,
|
|
41
|
+
ptBR,
|
|
42
|
+
zhCN
|
|
26
43
|
});
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var ja_JP_exports = {};
|
|
19
|
+
__export(ja_JP_exports, {
|
|
20
|
+
default: () => ja_JP_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(ja_JP_exports);
|
|
3
23
|
var ja_JP_default = {
|
|
4
24
|
"Please fill in your email address": "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
5
25
|
"The password is incorrect, please re-enter": "\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002\u518D\u5EA6\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
|
|
6
26
|
};
|
|
7
|
-
|
|
8
|
-
module.exports = ja_JP_default;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var pt_BR_exports = {};
|
|
19
|
+
__export(pt_BR_exports, {
|
|
20
|
+
default: () => pt_BR_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(pt_BR_exports);
|
|
3
23
|
var pt_BR_default = {
|
|
4
24
|
"The email is incorrect, please re-enter": "O e-mail est\xE1 incorreto, por favor, digite novamente",
|
|
5
25
|
"Please fill in your email address": "Por favor, preencha o seu endere\xE7o de e-mail",
|
|
@@ -8,5 +28,3 @@ var pt_BR_default = {
|
|
|
8
28
|
"The phone number has been registered, please login directly": "O n\xFAmero de celular j\xE1 est\xE1 registrado, por favor, fa\xE7a login diretamente",
|
|
9
29
|
"The phone number is not registered, please register first": "O n\xFAmero de celular n\xE3o est\xE1 registrado, por favor, registre-se primeiro"
|
|
10
30
|
};
|
|
11
|
-
|
|
12
|
-
module.exports = pt_BR_default;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var zh_CN_exports = {};
|
|
19
|
+
__export(zh_CN_exports, {
|
|
20
|
+
default: () => zh_CN_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(zh_CN_exports);
|
|
3
23
|
var zh_CN_default = {
|
|
4
24
|
"The username or email is incorrect, please re-enter": "\u7528\u6237\u540D\u6216\u90AE\u7BB1\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165",
|
|
5
25
|
"The password is incorrect, please re-enter": "\u5BC6\u7801\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165",
|
|
@@ -10,5 +30,3 @@ var zh_CN_default = {
|
|
|
10
30
|
"Please enter your username or email": "\u8BF7\u8F93\u5165\u7528\u6237\u540D\u6216\u90AE\u7BB1",
|
|
11
31
|
"Please enter a valid username": "\u8BF7\u8F93\u5165\u6709\u6548\u7684\u7528\u6237\u540D"
|
|
12
32
|
};
|
|
13
|
-
|
|
14
|
-
module.exports = zh_CN_default;
|