react-toolkits 2.19.1 → 2.20.0
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/CHANGELOG.md +12 -0
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +338 -60
- package/lib/index.js +1349 -2
- package/lib/index.js.map +1 -0
- package/locale/context.js +9 -1
- package/locale/context.js.map +1 -0
- package/locale/en_GB.js +96 -1
- package/locale/en_GB.js.map +1 -0
- package/locale/hooks.js +15812 -1
- package/locale/hooks.js.map +1 -0
- package/locale/index.js +15812 -1
- package/locale/index.js.map +1 -0
- package/locale/ja_JP.js +96 -1
- package/locale/ja_JP.js.map +1 -0
- package/locale/ko_KR.js +96 -1
- package/locale/ko_KR.js.map +1 -0
- package/locale/zh_CN.js +96 -1
- package/locale/zh_CN.js.map +1 -0
- package/package.json +5 -5
package/locale/context.js
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
import {createContext}from'react';
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/components/locale/context.ts
|
|
4
|
+
var LocaleContext = createContext(void 0);
|
|
5
|
+
var context_default = LocaleContext;
|
|
6
|
+
|
|
7
|
+
export { context_default as default };
|
|
8
|
+
//# sourceMappingURL=context.js.map
|
|
9
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/locale/context.ts"],"names":[],"mappings":";;;AAKA,IAAM,aAAA,GAAgB,cAA8C,KAAS,CAAA,CAAA;AAE7E,IAAO,eAAQ,GAAA","file":"context.js","sourcesContent":["import { createContext } from 'react'\nimport type { Locale } from '.'\n\nexport type LocaleContextProps = Locale\n\nconst LocaleContext = createContext<LocaleContextProps | undefined>(undefined)\n\nexport default LocaleContext\n"]}
|
package/locale/en_GB.js
CHANGED
|
@@ -1 +1,96 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/locale/en_GB.ts
|
|
2
|
+
var locale = {
|
|
3
|
+
global: {
|
|
4
|
+
noEntitlement: "No permission, please contact the administrator.",
|
|
5
|
+
name: "Name",
|
|
6
|
+
creationTime: "Creation Time",
|
|
7
|
+
operation: "Operation",
|
|
8
|
+
update: "Update",
|
|
9
|
+
edit: "Edit",
|
|
10
|
+
delete: "Delete",
|
|
11
|
+
selectAll: "Select All",
|
|
12
|
+
game: "Game",
|
|
13
|
+
user: "User",
|
|
14
|
+
role: "Role",
|
|
15
|
+
username: "Username",
|
|
16
|
+
password: "Password",
|
|
17
|
+
label: "Label",
|
|
18
|
+
method: "Method",
|
|
19
|
+
route: "Route",
|
|
20
|
+
request: "Request",
|
|
21
|
+
response: "Response",
|
|
22
|
+
add: "Add",
|
|
23
|
+
signIn: "Sign In",
|
|
24
|
+
projectGroup: "Project Group",
|
|
25
|
+
view: "View"
|
|
26
|
+
},
|
|
27
|
+
SignIn: {
|
|
28
|
+
title: "Sign In Method",
|
|
29
|
+
thirdParty: "Third party sign in",
|
|
30
|
+
signInWithIDass: "Sign in with IDass",
|
|
31
|
+
unregistered: "You are not yet registered on the platform, please contact the administrator",
|
|
32
|
+
welcome: "Welcome"
|
|
33
|
+
},
|
|
34
|
+
NotFound: {
|
|
35
|
+
subTitle: "The page you visited does not exist",
|
|
36
|
+
buttonText: "Return to homepage"
|
|
37
|
+
},
|
|
38
|
+
FilterFormWrapper: {
|
|
39
|
+
confirmText: "Search",
|
|
40
|
+
resetText: "Reset"
|
|
41
|
+
},
|
|
42
|
+
FormModal: {
|
|
43
|
+
confirmText: "Confirm",
|
|
44
|
+
cancelText: "Cancel"
|
|
45
|
+
},
|
|
46
|
+
GameSelect: {
|
|
47
|
+
label: "Current Game",
|
|
48
|
+
placeholder: "Please select a game"
|
|
49
|
+
},
|
|
50
|
+
RequireGame: {
|
|
51
|
+
description: "Please select a game"
|
|
52
|
+
},
|
|
53
|
+
UserWidget: {
|
|
54
|
+
signOutText: "Sign Out"
|
|
55
|
+
},
|
|
56
|
+
User: {
|
|
57
|
+
createTitle: "Create User",
|
|
58
|
+
createSuccessfully: "User created successfully",
|
|
59
|
+
updateTitle: "Update User",
|
|
60
|
+
updateSuccessfully: "User updated successfully",
|
|
61
|
+
deleteTitle: "Delete User",
|
|
62
|
+
deleteContent: "Are you sure you want to delete user <%= user %>?",
|
|
63
|
+
deleteSuccessfully: "User deleted successfully"
|
|
64
|
+
},
|
|
65
|
+
Role: {
|
|
66
|
+
createTitle: "Create Role",
|
|
67
|
+
createSuccessfully: "Role created successfully",
|
|
68
|
+
updateTitle: "Update Role",
|
|
69
|
+
updateSuccessfully: "Role updated successfully",
|
|
70
|
+
deleteTitle: "Delete Role",
|
|
71
|
+
deleteContent: "Are you sure you want to delete role <%= role %>?",
|
|
72
|
+
deleteSuccessfully: "Role deleted successfully"
|
|
73
|
+
},
|
|
74
|
+
PermissionList: {
|
|
75
|
+
failedDescription: "Failed to get permission list",
|
|
76
|
+
baseSectionTitle: "Platform Basic Permissions",
|
|
77
|
+
gameSectionTitle: "Game Permissions",
|
|
78
|
+
gameSectionDescription: "Please select a game first",
|
|
79
|
+
gameSelectPlaceholder: "Please select a game first",
|
|
80
|
+
removeText: "Remove",
|
|
81
|
+
addText: "Add Game Permissions"
|
|
82
|
+
},
|
|
83
|
+
RoleDetail: {
|
|
84
|
+
title: "Role Details"
|
|
85
|
+
},
|
|
86
|
+
InfiniteList: {
|
|
87
|
+
loadingText: "Loading...",
|
|
88
|
+
reachEndText: "You've reached the end",
|
|
89
|
+
loadMoreText: "Load more"
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
var en_GB_default = locale;
|
|
93
|
+
|
|
94
|
+
export { en_GB_default as default };
|
|
95
|
+
//# sourceMappingURL=en_GB.js.map
|
|
96
|
+
//# sourceMappingURL=en_GB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/locale/en_GB.ts"],"names":[],"mappings":";AAEA,IAAM,MAAiB,GAAA;AAAA,EACrB,MAAQ,EAAA;A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AA,EACA,UAAY,EAAA;AAAA,IACV,WAAa,EAAA;AAAA,GACf;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,WAAa,EAAA,aAAA;AAAA,IACb,kBAAoB,EAAA,2BAAA;AAAA,IACpB,WAAa,EAAA,aAAA;AAAA,IACb,kBAAoB,EAAA,2BAAA;AAAA,IACpB,WAAa,EAAA,aAAA;AAAA,IACb,aAAe,EAAA,mDAAA;AAAA,IACf,kBAAoB,EAAA;AAAA,GACtB;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,WAAa,EAAA,aAAA;AAAA,IACb,kBAAoB,EAAA,2BAAA;AAAA,IACpB,WAAa,EAAA,aAAA;AAAA,IACb,kBAAoB,EAAA,2BAAA;AAAA,IACpB,WAAa,EAAA,aAAA;AAAA,IACb,aAAe,EAAA,mDAAA;AAAA,IACf,kBAAoB,EAAA;AAAA,GACtB;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,iBAAmB,EAAA,+BAAA;AAAA,IACnB,gBAAkB,EAAA,4BAAA;AAAA,IAClB,gBAAkB,EAAA,kBAAA;AAAA,IAClB,sBAAwB,EAAA,4BAAA;AAAA,IACxB,qBAAuB,EAAA,4BAAA;AAAA,IACvB,UAAY,EAAA,QAAA;AAAA,IACZ,OAAS,EAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,KAAO,EAAA;AAAA,GACT;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,WAAa,EAAA,YAAA;AAAA,IACb,YAAc,EAAA,wBAAA;AAAA,IACd,YAAc,EAAA;AAAA;AAElB,CAAA;AAEA,IAAO,aAAQ,GAAA","file":"en_GB.js","sourcesContent":["import type { Locale } from '.'\n\nconst locale: Locale = {\n global: {\n noEntitlement: 'No permission, please contact the administrator.',\n name: 'Name',\n creationTime: 'Creation Time',\n operation: 'Operation',\n update: 'Update',\n edit: 'Edit',\n delete: 'Delete',\n selectAll: 'Select All',\n game: 'Game',\n user: 'User',\n role: 'Role',\n username: 'Username',\n password: 'Password',\n label: 'Label',\n method: 'Method',\n route: 'Route',\n request: 'Request',\n response: 'Response',\n add: 'Add',\n signIn: 'Sign In',\n projectGroup: 'Project Group',\n view: 'View',\n },\n SignIn: {\n title: 'Sign In Method',\n thirdParty: 'Third party sign in',\n signInWithIDass: 'Sign in with IDass',\n unregistered: 'You are not yet registered on the platform, please contact the administrator',\n welcome: 'Welcome',\n },\n NotFound: {\n subTitle: 'The page you visited does not exist',\n buttonText: 'Return to homepage',\n },\n FilterFormWrapper: {\n confirmText: 'Search',\n resetText: 'Reset',\n },\n FormModal: {\n confirmText: 'Confirm',\n cancelText: 'Cancel',\n },\n GameSelect: {\n label: 'Current Game',\n placeholder: 'Please select a game',\n },\n RequireGame: {\n description: 'Please select a game',\n },\n UserWidget: {\n signOutText: 'Sign Out',\n },\n User: {\n createTitle: 'Create User',\n createSuccessfully: 'User created successfully',\n updateTitle: 'Update User',\n updateSuccessfully: 'User updated successfully',\n deleteTitle: 'Delete User',\n deleteContent: 'Are you sure you want to delete user <%= user %>?',\n deleteSuccessfully: 'User deleted successfully',\n },\n Role: {\n createTitle: 'Create Role',\n createSuccessfully: 'Role created successfully',\n updateTitle: 'Update Role',\n updateSuccessfully: 'Role updated successfully',\n deleteTitle: 'Delete Role',\n deleteContent: 'Are you sure you want to delete role <%= role %>?',\n deleteSuccessfully: 'Role deleted successfully',\n },\n PermissionList: {\n failedDescription: 'Failed to get permission list',\n baseSectionTitle: 'Platform Basic Permissions',\n gameSectionTitle: 'Game Permissions',\n gameSectionDescription: 'Please select a game first',\n gameSelectPlaceholder: 'Please select a game first',\n removeText: 'Remove',\n addText: 'Add Game Permissions',\n },\n RoleDetail: {\n title: 'Role Details',\n },\n InfiniteList: {\n loadingText: 'Loading...',\n reachEndText: \"You've reached the end\",\n loadMoreText: 'Load more',\n },\n}\n\nexport default locale\n"]}
|