@venizia/ardor-admin 0.1.1-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/LICENSE.md +97 -0
- package/README.md +39 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +3 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/locales/en.d.ts +207 -0
- package/dist/common/locales/en.d.ts.map +1 -0
- package/dist/common/locales/en.js +207 -0
- package/dist/common/locales/en.js.map +1 -0
- package/dist/common/locales/index.d.ts +3 -0
- package/dist/common/locales/index.d.ts.map +1 -0
- package/dist/common/locales/index.js +3 -0
- package/dist/common/locales/index.js.map +1 -0
- package/dist/common/locales/vi.d.ts +3 -0
- package/dist/common/locales/vi.d.ts.map +1 -0
- package/dist/common/locales/vi.js +207 -0
- package/dist/common/locales/vi.js.map +1 -0
- package/dist/common/types.d.ts +55 -0
- package/dist/common/types.d.ts.map +1 -0
- package/dist/common/types.js +2 -0
- package/dist/common/types.js.map +1 -0
- package/dist/components/application.d.ts +4 -0
- package/dist/components/application.d.ts.map +1 -0
- package/dist/components/application.js +36 -0
- package/dist/components/application.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +5 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-notify-error.d.ts +6 -0
- package/dist/hooks/use-notify-error.d.ts.map +1 -0
- package/dist/hooks/use-notify-error.js +13 -0
- package/dist/hooks/use-notify-error.js.map +1 -0
- package/dist/hooks/use-refresh-token.d.ts +4 -0
- package/dist/hooks/use-refresh-token.d.ts.map +1 -0
- package/dist/hooks/use-refresh-token.js +22 -0
- package/dist/hooks/use-refresh-token.js.map +1 -0
- package/dist/hooks/use-request-header-locale.d.ts +4 -0
- package/dist/hooks/use-request-header-locale.d.ts.map +1 -0
- package/dist/hooks/use-request-header-locale.js +16 -0
- package/dist/hooks/use-request-header-locale.js.map +1 -0
- package/dist/hooks/use-translate.d.ts +9 -0
- package/dist/hooks/use-translate.d.ts.map +1 -0
- package/dist/hooks/use-translate.js +11 -0
- package/dist/hooks/use-translate.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/auth.d.ts +19 -0
- package/dist/providers/auth.d.ts.map +1 -0
- package/dist/providers/auth.js +117 -0
- package/dist/providers/auth.js.map +1 -0
- package/dist/providers/count-rest-data.d.ts +20 -0
- package/dist/providers/count-rest-data.d.ts.map +1 -0
- package/dist/providers/count-rest-data.js +30 -0
- package/dist/providers/count-rest-data.js.map +1 -0
- package/dist/providers/i18n.d.ts +10 -0
- package/dist/providers/i18n.d.ts.map +1 -0
- package/dist/providers/i18n.js +41 -0
- package/dist/providers/i18n.js.map +1 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +5 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/rest-data.d.ts +72 -0
- package/dist/providers/rest-data.d.ts.map +1 -0
- package/dist/providers/rest-data.js +441 -0
- package/dist/providers/rest-data.js.map +1 -0
- package/dist/services/crud.d.ts +34 -0
- package/dist/services/crud.d.ts.map +1 -0
- package/dist/services/crud.js +153 -0
- package/dist/services/crud.js.map +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -0
- package/package.json +142 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# ARDOR Framework License
|
|
2
|
+
|
|
3
|
+
ARDOR is a TypeScript frontend application framework built on [IGNIS](https://ignis.venizia.ai) and
|
|
4
|
+
[React](https://react.dev/).
|
|
5
|
+
|
|
6
|
+
## MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2025 VENIZIA Ltd. Co.
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Packages
|
|
31
|
+
|
|
32
|
+
This monorepo contains the following packages, all licensed under MIT:
|
|
33
|
+
|
|
34
|
+
| Package | Description |
|
|
35
|
+
|---------|-------------|
|
|
36
|
+
| `@venizia/ardor` | Umbrella entry point over the framework packages |
|
|
37
|
+
| `@venizia/ardor-kernel` | Isomorphic core - application base, services, network layer, utilities |
|
|
38
|
+
| `@venizia/ardor-react` | React bindings - application context, injectable and UI hooks |
|
|
39
|
+
| `@venizia/ardor-admin` | react-admin adapter - data, auth and i18n providers |
|
|
40
|
+
| `@venizia/ardor-ui-kit` | Design system - Tailwind and Radix components, design tokens |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Third-Party Dependencies
|
|
45
|
+
|
|
46
|
+
ARDOR uses the following open-source libraries. We are grateful to the authors and contributors of
|
|
47
|
+
these projects.
|
|
48
|
+
|
|
49
|
+
### Core Dependencies
|
|
50
|
+
|
|
51
|
+
| Library | License | Description |
|
|
52
|
+
|---------|---------|-------------|
|
|
53
|
+
| [IGNIS](https://github.com/VENIZIA-AI/ignis) | MIT | Inversion of control container and query filter vocabulary |
|
|
54
|
+
| [React](https://github.com/facebook/react) | MIT | User interface library |
|
|
55
|
+
| [react-admin](https://github.com/marmelab/react-admin) (`ra-core`) | MIT | Admin application framework |
|
|
56
|
+
| [reflect-metadata](https://github.com/rbuckton/reflect-metadata) | Apache-2.0 | Metadata reflection API |
|
|
57
|
+
|
|
58
|
+
### Data and State Dependencies
|
|
59
|
+
|
|
60
|
+
| Library | License | Description |
|
|
61
|
+
|---------|---------|-------------|
|
|
62
|
+
| [Redux Toolkit](https://github.com/reduxjs/redux-toolkit) | MIT | State container |
|
|
63
|
+
| [React Redux](https://github.com/reduxjs/react-redux) | MIT | React bindings for Redux |
|
|
64
|
+
| [TanStack Query](https://github.com/TanStack/query) | MIT | Asynchronous state management |
|
|
65
|
+
| [React Router](https://github.com/remix-run/react-router) | MIT | Routing |
|
|
66
|
+
| [Axios](https://github.com/axios/axios) | MIT | HTTP client |
|
|
67
|
+
| [Socket.IO Client](https://github.com/socketio/socket.io) | MIT | Real-time bidirectional communication |
|
|
68
|
+
| [Lodash](https://github.com/lodash/lodash) | MIT | Utility library |
|
|
69
|
+
| [node-polyglot](https://github.com/airbnb/polyglot.js) (`ra-i18n-polyglot`) | BSD-2-Clause | Internationalisation |
|
|
70
|
+
|
|
71
|
+
### UI Kit Dependencies
|
|
72
|
+
|
|
73
|
+
| Library | License | Description |
|
|
74
|
+
|---------|---------|-------------|
|
|
75
|
+
| [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) | MIT | Utility-first CSS framework |
|
|
76
|
+
| [Radix UI](https://github.com/radix-ui/primitives) | MIT | Unstyled, accessible component primitives |
|
|
77
|
+
| [Lucide](https://github.com/lucide-icons/lucide) | ISC | Icon set |
|
|
78
|
+
| [Day.js](https://github.com/iamkun/dayjs) | MIT | Date manipulation library |
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Acknowledgments
|
|
83
|
+
|
|
84
|
+
ARDOR is inspired by and built upon the work of many open-source projects:
|
|
85
|
+
|
|
86
|
+
- **[IGNIS](https://ignis.venizia.ai)** - The backend framework ARDOR is the frontend sibling of
|
|
87
|
+
- **[react-admin](https://marmelab.com/react-admin/)** by Marmelab - The admin framework ARDOR adapts
|
|
88
|
+
- **[LoopBack 4](https://loopback.io/)** by IBM/StrongLoop - Inspiration for the binding-key and provider patterns
|
|
89
|
+
- **[shadcn/ui](https://ui.shadcn.com/)** - Inspiration and source for the UI kit component layer
|
|
90
|
+
|
|
91
|
+
We thank all the maintainers and contributors of these projects for their excellent work.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Contributing
|
|
96
|
+
|
|
97
|
+
By contributing to ARDOR, you agree that your contributions will be licensed under the MIT License.
|
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @venizia/ardor-admin
|
|
2
|
+
|
|
3
|
+
The [react-admin](https://marmelab.com/react-admin/) adapter of
|
|
4
|
+
[ARDOR](https://github.com/VENIZIA-AI/ardor): every place the framework touches `ra-core`.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
bun add @venizia/ardor-admin @venizia/ardor-kernel @venizia/ardor-react ra-core
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Most applications install [`@venizia/ardor`](https://www.npmjs.com/package/@venizia/ardor) instead,
|
|
11
|
+
which re-exports this package.
|
|
12
|
+
|
|
13
|
+
## What is in it
|
|
14
|
+
|
|
15
|
+
| Area | Exports |
|
|
16
|
+
|---|---|
|
|
17
|
+
| Data | `DefaultRestDataProvider`, `CountRestDataProvider`, `BaseCrudService` |
|
|
18
|
+
| Auth | `DefaultAuthProvider` |
|
|
19
|
+
| i18n | `DefaultI18nProvider`, `englishMessages`, `vietnameseMessages` |
|
|
20
|
+
| Component | `ArdorApplication` - the `CoreAdmin` root, wired from the container |
|
|
21
|
+
| Hooks | `useTranslate`, `useNotifyError`, `useRefreshToken`, `useRequestHeaderLocale` |
|
|
22
|
+
| Types | `IDataProvider`, `IAuthProvider`, `II18nProviderOptions`, `IApplication`, `TUseTranslateKeys` |
|
|
23
|
+
|
|
24
|
+
The data provider speaks the `@venizia/ignis-filter` vocabulary - react-admin pagination, sort and
|
|
25
|
+
filter are mapped onto `{ where, order, limit, skip, fields, include }`.
|
|
26
|
+
|
|
27
|
+
## Typing your own message keys
|
|
28
|
+
|
|
29
|
+
`IUseTranslateKeysOverrides` is declared here, so augment this package:
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
declare module '@venizia/ardor-admin' {
|
|
33
|
+
interface IUseTranslateKeysOverrides extends Record<TFullPaths<typeof messages>, unknown> {}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT - see [LICENSE.md](./LICENSE.md).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export declare const englishMessages: {
|
|
2
|
+
ra: {
|
|
3
|
+
action: {
|
|
4
|
+
add_filter: string;
|
|
5
|
+
add: string;
|
|
6
|
+
back: string;
|
|
7
|
+
bulk_actions: string;
|
|
8
|
+
cancel: string;
|
|
9
|
+
clear_array_input: string;
|
|
10
|
+
clear_input_value: string;
|
|
11
|
+
clone: string;
|
|
12
|
+
confirm: string;
|
|
13
|
+
create: string;
|
|
14
|
+
create_item: string;
|
|
15
|
+
delete: string;
|
|
16
|
+
edit: string;
|
|
17
|
+
export: string;
|
|
18
|
+
list: string;
|
|
19
|
+
refresh: string;
|
|
20
|
+
remove_filter: string;
|
|
21
|
+
remove_all_filters: string;
|
|
22
|
+
remove: string;
|
|
23
|
+
reset: string;
|
|
24
|
+
save: string;
|
|
25
|
+
search: string;
|
|
26
|
+
search_columns: string;
|
|
27
|
+
select_all: string;
|
|
28
|
+
select_all_button: string;
|
|
29
|
+
select_row: string;
|
|
30
|
+
show: string;
|
|
31
|
+
sort: string;
|
|
32
|
+
undo: string;
|
|
33
|
+
unselect: string;
|
|
34
|
+
expand: string;
|
|
35
|
+
close: string;
|
|
36
|
+
open_menu: string;
|
|
37
|
+
close_menu: string;
|
|
38
|
+
update: string;
|
|
39
|
+
move_up: string;
|
|
40
|
+
move_down: string;
|
|
41
|
+
open: string;
|
|
42
|
+
toggle_theme: string;
|
|
43
|
+
select_columns: string;
|
|
44
|
+
update_application: string;
|
|
45
|
+
};
|
|
46
|
+
boolean: {
|
|
47
|
+
true: string;
|
|
48
|
+
false: string;
|
|
49
|
+
null: string;
|
|
50
|
+
};
|
|
51
|
+
page: {
|
|
52
|
+
create: string;
|
|
53
|
+
dashboard: string;
|
|
54
|
+
edit: string;
|
|
55
|
+
error: string;
|
|
56
|
+
list: string;
|
|
57
|
+
loading: string;
|
|
58
|
+
not_found: string;
|
|
59
|
+
show: string;
|
|
60
|
+
empty: string;
|
|
61
|
+
invite: string;
|
|
62
|
+
access_denied: string;
|
|
63
|
+
authentication_error: string;
|
|
64
|
+
};
|
|
65
|
+
input: {
|
|
66
|
+
file: {
|
|
67
|
+
upload_several: string;
|
|
68
|
+
upload_single: string;
|
|
69
|
+
};
|
|
70
|
+
image: {
|
|
71
|
+
upload_several: string;
|
|
72
|
+
upload_single: string;
|
|
73
|
+
};
|
|
74
|
+
references: {
|
|
75
|
+
all_missing: string;
|
|
76
|
+
many_missing: string;
|
|
77
|
+
single_missing: string;
|
|
78
|
+
};
|
|
79
|
+
password: {
|
|
80
|
+
toggle_visible: string;
|
|
81
|
+
toggle_hidden: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
message: {
|
|
85
|
+
about: string;
|
|
86
|
+
are_you_sure: string;
|
|
87
|
+
auth_error: string;
|
|
88
|
+
bulk_delete_content: string;
|
|
89
|
+
bulk_delete_title: string;
|
|
90
|
+
bulk_update_content: string;
|
|
91
|
+
bulk_update_title: string;
|
|
92
|
+
clear_array_input: string;
|
|
93
|
+
delete_content: string;
|
|
94
|
+
delete_title: string;
|
|
95
|
+
details: string;
|
|
96
|
+
error: string;
|
|
97
|
+
invalid_form: string;
|
|
98
|
+
loading: string;
|
|
99
|
+
no: string;
|
|
100
|
+
not_found: string;
|
|
101
|
+
yes: string;
|
|
102
|
+
unsaved_changes: string;
|
|
103
|
+
access_denied: string;
|
|
104
|
+
authentication_error: string;
|
|
105
|
+
select_all_limit_reached: string;
|
|
106
|
+
placeholder_data_warning: string;
|
|
107
|
+
};
|
|
108
|
+
navigation: {
|
|
109
|
+
clear_filters: string;
|
|
110
|
+
no_filtered_results: string;
|
|
111
|
+
no_results: string;
|
|
112
|
+
no_more_results: string;
|
|
113
|
+
page_out_of_boundaries: string;
|
|
114
|
+
page_out_from_end: string;
|
|
115
|
+
page_out_from_begin: string;
|
|
116
|
+
page_range_info: string;
|
|
117
|
+
partial_page_range_info: string;
|
|
118
|
+
current_page: string;
|
|
119
|
+
page: string;
|
|
120
|
+
first: string;
|
|
121
|
+
last: string;
|
|
122
|
+
next: string;
|
|
123
|
+
previous: string;
|
|
124
|
+
page_rows_per_page: string;
|
|
125
|
+
skip_nav: string;
|
|
126
|
+
};
|
|
127
|
+
sort: {
|
|
128
|
+
sort_by: string;
|
|
129
|
+
ASC: string;
|
|
130
|
+
DESC: string;
|
|
131
|
+
};
|
|
132
|
+
auth: {
|
|
133
|
+
auth_check_error: string;
|
|
134
|
+
user_menu: string;
|
|
135
|
+
username: string;
|
|
136
|
+
password: string;
|
|
137
|
+
email: string;
|
|
138
|
+
sign_in: string;
|
|
139
|
+
sign_in_error: string;
|
|
140
|
+
logout: string;
|
|
141
|
+
};
|
|
142
|
+
notification: {
|
|
143
|
+
updated: string;
|
|
144
|
+
created: string;
|
|
145
|
+
deleted: string;
|
|
146
|
+
bad_item: string;
|
|
147
|
+
item_doesnt_exist: string;
|
|
148
|
+
http_error: string;
|
|
149
|
+
data_provider_error: string;
|
|
150
|
+
i18n_error: string;
|
|
151
|
+
canceled: string;
|
|
152
|
+
logged_out: string;
|
|
153
|
+
not_authorized: string;
|
|
154
|
+
application_update_available: string;
|
|
155
|
+
offline: string;
|
|
156
|
+
};
|
|
157
|
+
validation: {
|
|
158
|
+
required: string;
|
|
159
|
+
minLength: string;
|
|
160
|
+
maxLength: string;
|
|
161
|
+
minValue: string;
|
|
162
|
+
maxValue: string;
|
|
163
|
+
number: string;
|
|
164
|
+
email: string;
|
|
165
|
+
oneOf: string;
|
|
166
|
+
regex: string;
|
|
167
|
+
unique: string;
|
|
168
|
+
};
|
|
169
|
+
saved_queries: {
|
|
170
|
+
label: string;
|
|
171
|
+
query_name: string;
|
|
172
|
+
new_label: string;
|
|
173
|
+
new_dialog_title: string;
|
|
174
|
+
remove_label: string;
|
|
175
|
+
remove_label_with_name: string;
|
|
176
|
+
remove_dialog_title: string;
|
|
177
|
+
remove_message: string;
|
|
178
|
+
help: string;
|
|
179
|
+
};
|
|
180
|
+
configurable: {
|
|
181
|
+
customize: string;
|
|
182
|
+
configureMode: string;
|
|
183
|
+
inspector: {
|
|
184
|
+
title: string;
|
|
185
|
+
content: string;
|
|
186
|
+
reset: string;
|
|
187
|
+
hideAll: string;
|
|
188
|
+
showAll: string;
|
|
189
|
+
};
|
|
190
|
+
Datagrid: {
|
|
191
|
+
title: string;
|
|
192
|
+
unlabeled: string;
|
|
193
|
+
};
|
|
194
|
+
SimpleForm: {
|
|
195
|
+
title: string;
|
|
196
|
+
unlabeled: string;
|
|
197
|
+
};
|
|
198
|
+
SimpleList: {
|
|
199
|
+
title: string;
|
|
200
|
+
primaryText: string;
|
|
201
|
+
secondaryText: string;
|
|
202
|
+
tertiaryText: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/common/locales/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmN3B,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export const englishMessages = {
|
|
2
|
+
ra: {
|
|
3
|
+
action: {
|
|
4
|
+
add_filter: 'Add filter',
|
|
5
|
+
add: 'Add',
|
|
6
|
+
back: 'Go Back',
|
|
7
|
+
bulk_actions: '1 item selected |||| %{smart_count} items selected',
|
|
8
|
+
cancel: 'Cancel',
|
|
9
|
+
clear_array_input: 'Clear the list',
|
|
10
|
+
clear_input_value: 'Clear value',
|
|
11
|
+
clone: 'Clone',
|
|
12
|
+
confirm: 'Confirm',
|
|
13
|
+
create: 'Create',
|
|
14
|
+
create_item: 'Create %{item}',
|
|
15
|
+
delete: 'Delete',
|
|
16
|
+
edit: 'Edit',
|
|
17
|
+
export: 'Export',
|
|
18
|
+
list: 'List',
|
|
19
|
+
refresh: 'Refresh',
|
|
20
|
+
remove_filter: 'Remove this filter',
|
|
21
|
+
remove_all_filters: 'Remove all filters',
|
|
22
|
+
remove: 'Remove',
|
|
23
|
+
reset: 'Reset',
|
|
24
|
+
save: 'Save',
|
|
25
|
+
search: 'Search',
|
|
26
|
+
search_columns: 'Search columns',
|
|
27
|
+
select_all: 'Select all',
|
|
28
|
+
select_all_button: 'Select all',
|
|
29
|
+
select_row: 'Select this row',
|
|
30
|
+
show: 'Show',
|
|
31
|
+
sort: 'Sort',
|
|
32
|
+
undo: 'Undo',
|
|
33
|
+
unselect: 'Unselect',
|
|
34
|
+
expand: 'Expand',
|
|
35
|
+
close: 'Close',
|
|
36
|
+
open_menu: 'Open menu',
|
|
37
|
+
close_menu: 'Close menu',
|
|
38
|
+
update: 'Update',
|
|
39
|
+
move_up: 'Move up',
|
|
40
|
+
move_down: 'Move down',
|
|
41
|
+
open: 'Open',
|
|
42
|
+
toggle_theme: 'Toggle light/dark mode',
|
|
43
|
+
select_columns: 'Columns',
|
|
44
|
+
update_application: 'Reload Application',
|
|
45
|
+
},
|
|
46
|
+
boolean: {
|
|
47
|
+
true: 'Yes',
|
|
48
|
+
false: 'No',
|
|
49
|
+
null: ' ',
|
|
50
|
+
},
|
|
51
|
+
page: {
|
|
52
|
+
create: 'Create %{name}',
|
|
53
|
+
dashboard: 'Dashboard',
|
|
54
|
+
edit: '%{name} %{recordRepresentation}',
|
|
55
|
+
error: 'Something went wrong',
|
|
56
|
+
list: '%{name}',
|
|
57
|
+
loading: 'Loading',
|
|
58
|
+
not_found: 'Not Found',
|
|
59
|
+
show: '%{name} %{recordRepresentation}',
|
|
60
|
+
empty: 'No %{name} yet.',
|
|
61
|
+
invite: 'Do you want to add one?',
|
|
62
|
+
access_denied: 'Access denied',
|
|
63
|
+
authentication_error: 'Authentication error',
|
|
64
|
+
},
|
|
65
|
+
input: {
|
|
66
|
+
file: {
|
|
67
|
+
upload_several: 'Drop some files to upload, or click to select one.',
|
|
68
|
+
upload_single: 'Drop a file to upload, or click to select it.',
|
|
69
|
+
},
|
|
70
|
+
image: {
|
|
71
|
+
upload_several: 'Drop some pictures to upload, or click to select one.',
|
|
72
|
+
upload_single: 'Drop a picture to upload, or click to select it.',
|
|
73
|
+
},
|
|
74
|
+
references: {
|
|
75
|
+
all_missing: 'Unable to find references data.',
|
|
76
|
+
many_missing: 'At least one of the associated references no longer appears to be available.',
|
|
77
|
+
single_missing: 'Associated reference no longer appears to be available.',
|
|
78
|
+
},
|
|
79
|
+
password: {
|
|
80
|
+
toggle_visible: 'Hide password',
|
|
81
|
+
toggle_hidden: 'Show password',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
message: {
|
|
85
|
+
about: 'About',
|
|
86
|
+
are_you_sure: 'Are you sure?',
|
|
87
|
+
auth_error: 'An error occurred while validating the authentication token.',
|
|
88
|
+
bulk_delete_content: 'Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?',
|
|
89
|
+
bulk_delete_title: 'Delete %{name} |||| Delete %{smart_count} %{name}',
|
|
90
|
+
bulk_update_content: 'Are you sure you want to update this %{name}? |||| Are you sure you want to update these %{smart_count} items?',
|
|
91
|
+
bulk_update_title: 'Update %{name} |||| Update %{smart_count} %{name}',
|
|
92
|
+
clear_array_input: 'Are you sure you want to clear the whole list?',
|
|
93
|
+
delete_content: 'Are you sure you want to delete this item?',
|
|
94
|
+
delete_title: 'Delete %{name} #%{id}',
|
|
95
|
+
details: 'Details',
|
|
96
|
+
error: "A client error occurred and your request couldn't be completed.",
|
|
97
|
+
invalid_form: 'The form is not valid. Please check for errors',
|
|
98
|
+
loading: 'Please wait',
|
|
99
|
+
no: 'No',
|
|
100
|
+
not_found: 'Either you typed a wrong URL, or you followed a bad link.',
|
|
101
|
+
yes: 'Yes',
|
|
102
|
+
unsaved_changes: "Some of your changes weren't saved. Are you sure you want to ignore them?",
|
|
103
|
+
access_denied: "You don't have the right permissions to access this page",
|
|
104
|
+
authentication_error: 'The authentication server returned an error and your credentials could not be checked.',
|
|
105
|
+
select_all_limit_reached: 'There are too many elements to select them all. Only the first %{max} elements were selected.',
|
|
106
|
+
placeholder_data_warning: 'Network issue: Data refresh failed.',
|
|
107
|
+
},
|
|
108
|
+
navigation: {
|
|
109
|
+
clear_filters: 'Clear filters',
|
|
110
|
+
no_filtered_results: 'No %{name} found using the current filters.',
|
|
111
|
+
no_results: 'No %{name} found',
|
|
112
|
+
no_more_results: 'The page number %{page} is out of boundaries. Try the previous page.',
|
|
113
|
+
page_out_of_boundaries: 'Page number %{page} out of boundaries',
|
|
114
|
+
page_out_from_end: 'Cannot go after last page',
|
|
115
|
+
page_out_from_begin: 'Cannot go before page 1',
|
|
116
|
+
page_range_info: '%{offsetBegin}-%{offsetEnd} of %{total}',
|
|
117
|
+
partial_page_range_info: '%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}',
|
|
118
|
+
current_page: 'Page %{page}',
|
|
119
|
+
page: 'Go to page %{page}',
|
|
120
|
+
first: 'Go to first page',
|
|
121
|
+
last: 'Go to last page',
|
|
122
|
+
next: 'Go to next page',
|
|
123
|
+
previous: 'Go to previous page',
|
|
124
|
+
page_rows_per_page: 'Rows per page:',
|
|
125
|
+
skip_nav: 'Skip to content',
|
|
126
|
+
},
|
|
127
|
+
sort: {
|
|
128
|
+
sort_by: 'Sort by %{field_lower_first} %{order}',
|
|
129
|
+
ASC: 'ascending',
|
|
130
|
+
DESC: 'descending',
|
|
131
|
+
},
|
|
132
|
+
auth: {
|
|
133
|
+
auth_check_error: 'Please login to continue',
|
|
134
|
+
user_menu: 'Profile',
|
|
135
|
+
username: 'Username',
|
|
136
|
+
password: 'Password',
|
|
137
|
+
email: 'Email',
|
|
138
|
+
sign_in: 'Sign in',
|
|
139
|
+
sign_in_error: 'Authentication failed, please retry',
|
|
140
|
+
logout: 'Logout',
|
|
141
|
+
},
|
|
142
|
+
notification: {
|
|
143
|
+
updated: 'Element updated |||| %{smart_count} elements updated',
|
|
144
|
+
created: 'Element created',
|
|
145
|
+
deleted: 'Element deleted |||| %{smart_count} elements deleted',
|
|
146
|
+
bad_item: 'Incorrect element',
|
|
147
|
+
item_doesnt_exist: 'Element does not exist',
|
|
148
|
+
http_error: 'Server communication error',
|
|
149
|
+
data_provider_error: 'dataProvider error. Check the console for details.',
|
|
150
|
+
i18n_error: 'Cannot load the translations for the specified language',
|
|
151
|
+
canceled: 'Action cancelled',
|
|
152
|
+
logged_out: 'Your session has ended, please reconnect.',
|
|
153
|
+
not_authorized: "You're not authorized to access this resource.",
|
|
154
|
+
application_update_available: 'A new version is available.',
|
|
155
|
+
offline: 'No network connection',
|
|
156
|
+
},
|
|
157
|
+
validation: {
|
|
158
|
+
required: 'Required',
|
|
159
|
+
minLength: 'Must be %{min} characters at least',
|
|
160
|
+
maxLength: 'Must be %{max} characters or less',
|
|
161
|
+
minValue: 'Must be at least %{min}',
|
|
162
|
+
maxValue: 'Must be %{max} or less',
|
|
163
|
+
number: 'Must be a number',
|
|
164
|
+
email: 'Must be a valid email',
|
|
165
|
+
oneOf: 'Must be one of: %{options}',
|
|
166
|
+
regex: 'Must match a specific format (regexp): %{pattern}',
|
|
167
|
+
unique: 'Must be unique',
|
|
168
|
+
},
|
|
169
|
+
saved_queries: {
|
|
170
|
+
label: 'Saved queries',
|
|
171
|
+
query_name: 'Query name',
|
|
172
|
+
new_label: 'Save current query...',
|
|
173
|
+
new_dialog_title: 'Save current query as',
|
|
174
|
+
remove_label: 'Remove saved query',
|
|
175
|
+
remove_label_with_name: 'Remove query "%{name}"',
|
|
176
|
+
remove_dialog_title: 'Remove saved query?',
|
|
177
|
+
remove_message: 'Are you sure you want to remove that item from your list of saved queries?',
|
|
178
|
+
help: 'Filter the list and save this query for later',
|
|
179
|
+
},
|
|
180
|
+
configurable: {
|
|
181
|
+
customize: 'Customize',
|
|
182
|
+
configureMode: 'Configure this page',
|
|
183
|
+
inspector: {
|
|
184
|
+
title: 'Inspector',
|
|
185
|
+
content: 'Hover the application UI elements to configure them',
|
|
186
|
+
reset: 'Reset Settings',
|
|
187
|
+
hideAll: 'Hide All',
|
|
188
|
+
showAll: 'Show All',
|
|
189
|
+
},
|
|
190
|
+
Datagrid: {
|
|
191
|
+
title: 'Datagrid',
|
|
192
|
+
unlabeled: 'Unlabeled column #%{column}',
|
|
193
|
+
},
|
|
194
|
+
SimpleForm: {
|
|
195
|
+
title: 'Form',
|
|
196
|
+
unlabeled: 'Unlabeled input #%{input}',
|
|
197
|
+
},
|
|
198
|
+
SimpleList: {
|
|
199
|
+
title: 'List',
|
|
200
|
+
primaryText: 'Primary text',
|
|
201
|
+
secondaryText: 'Secondary text',
|
|
202
|
+
tertiaryText: 'Tertiary text',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
//# sourceMappingURL=en.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/common/locales/en.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,EAAE,EAAE;QACF,MAAM,EAAE;YACN,UAAU,EAAE,YAAY;YACxB,GAAG,EAAE,KAAK;YACV,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,oDAAoD;YAClE,MAAM,EAAE,QAAQ;YAChB,iBAAiB,EAAE,gBAAgB;YACnC,iBAAiB,EAAE,aAAa;YAChC,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,gBAAgB;YAC7B,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,aA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AChD,mBAAmB,EAAE,qBAAqB;YAC1C,cAAc,EAAE,4EAA4E;YAC5F,IAAI,EAAE,+CAA+C;SACtD;QACD,YAAY,EAAE;YACZ,SAAS,EAAE,WAAW;YACtB,aAAa,EAAE,qBAAqB;YACpC,SAAS,EAAE;gBACT,KAAK,EAAE,WAAW;gBAClB,OAAO,EAAE,qDAAqD;gBAC9D,KAAK,EAAE,gBAAgB;gBACvB,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,UAAU;aACpB;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,SAAS,EAAE,6BAA6B;aACzC;YACD,UAAU,EAAE;gBACV,KAAK,EAAE,MAAM;gBACb,SAAS,EAAE,2BAA2B;aACvC;YACD,UAAU,EAAE;gBACV,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,cAAc;gBAC3B,aAAa,EAAE,gBAAgB;gBAC/B,YAAY,EAAE,eAAe;aAC9B;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/locales/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/locales/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vi.d.ts","sourceRoot":"","sources":["../../../src/common/locales/vi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,kBAAkB,EAAE,mBAmNhC,CAAC"}
|