@cloudtower/parrot 0.19.0 → 0.19.1
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/esm/index.js +237 -0
- package/dist/esm/stats1.html +6177 -0
- package/dist/umd/index.js +245 -0
- package/dist/umd/stats1.html +6177 -0
- package/package.json +17 -6
- package/.turbo/turbo-build.log +0 -3
- package/dist/index.js +0 -3
- package/dist/locales/en-US/common.json +0 -27
- package/dist/locales/en-US/components.json +0 -15
- package/dist/locales/en-US/index.js +0 -9
- package/dist/locales/en-US/metric.json +0 -5
- package/dist/locales/index.js +0 -7
- package/dist/locales/zh-CN/common.json +0 -27
- package/dist/locales/zh-CN/components.json +0 -15
- package/dist/locales/zh-CN/index.js +0 -9
- package/dist/locales/zh-CN/metric.json +0 -5
- package/dist/parrotI18n.js +0 -34
- package/src/index.ts +0 -3
- package/src/locales/en-US/common.json +0 -27
- package/src/locales/en-US/components.json +0 -15
- package/src/locales/en-US/index.ts +0 -11
- package/src/locales/en-US/metric.json +0 -5
- package/src/locales/index.ts +0 -9
- package/src/locales/zh-CN/common.json +0 -27
- package/src/locales/zh-CN/components.json +0 -15
- package/src/locales/zh-CN/index.ts +0 -11
- package/src/locales/zh-CN/metric.json +0 -5
- package/src/parrotI18n.ts +0 -31
- package/tools/index.mts +0 -47
- package/tools/templates/index.ejs +0 -9
- package/tsconfig.json +0 -10
@@ -0,0 +1,237 @@
|
|
1
|
+
import i18next from 'i18next';
|
2
|
+
|
3
|
+
var _action_$1 = "Action";
|
4
|
+
var action$1 = "Action";
|
5
|
+
var all$1 = "All";
|
6
|
+
var cancel$1 = "Cancel";
|
7
|
+
var clear_query$1 = "Clear the filter criteria";
|
8
|
+
var close$1 = "Close";
|
9
|
+
var contains$3 = "Contains";
|
10
|
+
var confirm$1 = "Confirm";
|
11
|
+
var empty$3 = "No ";
|
12
|
+
var enable$1 = "Enable";
|
13
|
+
var error$1 = "Error";
|
14
|
+
var next_step$1 = "Next";
|
15
|
+
var not_contains$3 = "Not Contains";
|
16
|
+
var not_enable$1 = "Not enabled";
|
17
|
+
var prev_step$1 = "Previous";
|
18
|
+
var io$1 = "Total I/O";
|
19
|
+
var load_failed$1 = "Failed to load";
|
20
|
+
var param$1 = "Parameter";
|
21
|
+
var no$1 = "No";
|
22
|
+
var message$1 = "Message";
|
23
|
+
var architecture$1 = "CPU Architecture";
|
24
|
+
var calculation$1 = "Computing";
|
25
|
+
var on$1 = "On";
|
26
|
+
var error_message$1 = "Error Message";
|
27
|
+
var retry$1 = "Retry";
|
28
|
+
var common$1 = {
|
29
|
+
_action_: _action_$1,
|
30
|
+
action: action$1,
|
31
|
+
all: all$1,
|
32
|
+
cancel: cancel$1,
|
33
|
+
clear_query: clear_query$1,
|
34
|
+
close: close$1,
|
35
|
+
contains: contains$3,
|
36
|
+
confirm: confirm$1,
|
37
|
+
empty: empty$3,
|
38
|
+
enable: enable$1,
|
39
|
+
error: error$1,
|
40
|
+
next_step: next_step$1,
|
41
|
+
not_contains: not_contains$3,
|
42
|
+
not_enable: not_enable$1,
|
43
|
+
prev_step: prev_step$1,
|
44
|
+
io: io$1,
|
45
|
+
load_failed: load_failed$1,
|
46
|
+
param: param$1,
|
47
|
+
no: no$1,
|
48
|
+
message: message$1,
|
49
|
+
architecture: architecture$1,
|
50
|
+
calculation: calculation$1,
|
51
|
+
on: on$1,
|
52
|
+
error_message: error_message$1,
|
53
|
+
retry: retry$1
|
54
|
+
};
|
55
|
+
|
56
|
+
var contains$2 = "Contains";
|
57
|
+
var custom_column$1 = "Customize Columns & Order";
|
58
|
+
var not$1 = "Not";
|
59
|
+
var not_contains$2 = "Not Contains";
|
60
|
+
var or$1 = "or";
|
61
|
+
var previous_items$1 = "Previous {size} items";
|
62
|
+
var next_items$1 = "Next {size} items";
|
63
|
+
var push_to$1 = "Jump to";
|
64
|
+
var pagination_range$1 = "Item {range1} – {range2}";
|
65
|
+
var pagination_total$1 = "Item {range1} – {range2}, {total} in total";
|
66
|
+
var unknow_error$1 = "Unknown error";
|
67
|
+
var to$1 = "to";
|
68
|
+
var components$1 = {
|
69
|
+
contains: contains$2,
|
70
|
+
custom_column: custom_column$1,
|
71
|
+
"in": "belongs to",
|
72
|
+
not: not$1,
|
73
|
+
not_contains: not_contains$2,
|
74
|
+
or: or$1,
|
75
|
+
previous_items: previous_items$1,
|
76
|
+
next_items: next_items$1,
|
77
|
+
push_to: push_to$1,
|
78
|
+
pagination_range: pagination_range$1,
|
79
|
+
pagination_total: pagination_total$1,
|
80
|
+
unknow_error: unknow_error$1,
|
81
|
+
to: to$1
|
82
|
+
};
|
83
|
+
|
84
|
+
var current$1 = "Current value";
|
85
|
+
var empty$2 = "No data in this time range";
|
86
|
+
var max$1 = "Max";
|
87
|
+
var metric$1 = {
|
88
|
+
current: current$1,
|
89
|
+
empty: empty$2,
|
90
|
+
max: max$1
|
91
|
+
};
|
92
|
+
|
93
|
+
const locale$1 = {
|
94
|
+
common: common$1,
|
95
|
+
components: components$1,
|
96
|
+
metric: metric$1
|
97
|
+
};
|
98
|
+
|
99
|
+
var _action_ = "操作";
|
100
|
+
var action = "操作";
|
101
|
+
var all = "全部";
|
102
|
+
var cancel = "取消";
|
103
|
+
var clear_query = "清空筛选条件";
|
104
|
+
var close = "关闭";
|
105
|
+
var contains$1 = "包含";
|
106
|
+
var confirm = "确定";
|
107
|
+
var empty$1 = "无";
|
108
|
+
var enable = "启用";
|
109
|
+
var error = "错误";
|
110
|
+
var next_step = "下一步";
|
111
|
+
var not_contains$1 = "不包含";
|
112
|
+
var not_enable = "不启用";
|
113
|
+
var prev_step = "上一步";
|
114
|
+
var io = "I/O 总数";
|
115
|
+
var load_failed = "加载失败";
|
116
|
+
var param = "参数";
|
117
|
+
var no = "否";
|
118
|
+
var message = "信息";
|
119
|
+
var architecture = "CPU 架构";
|
120
|
+
var calculation = "计算中";
|
121
|
+
var on = "开启";
|
122
|
+
var error_message = "错误信息";
|
123
|
+
var retry = "重试";
|
124
|
+
var common = {
|
125
|
+
_action_: _action_,
|
126
|
+
action: action,
|
127
|
+
all: all,
|
128
|
+
cancel: cancel,
|
129
|
+
clear_query: clear_query,
|
130
|
+
close: close,
|
131
|
+
contains: contains$1,
|
132
|
+
confirm: confirm,
|
133
|
+
empty: empty$1,
|
134
|
+
enable: enable,
|
135
|
+
error: error,
|
136
|
+
next_step: next_step,
|
137
|
+
not_contains: not_contains$1,
|
138
|
+
not_enable: not_enable,
|
139
|
+
prev_step: prev_step,
|
140
|
+
io: io,
|
141
|
+
load_failed: load_failed,
|
142
|
+
param: param,
|
143
|
+
no: no,
|
144
|
+
message: message,
|
145
|
+
architecture: architecture,
|
146
|
+
calculation: calculation,
|
147
|
+
on: on,
|
148
|
+
error_message: error_message,
|
149
|
+
retry: retry
|
150
|
+
};
|
151
|
+
|
152
|
+
var contains = "包含";
|
153
|
+
var custom_column = "自定义列的展示和顺序";
|
154
|
+
var not = "不为";
|
155
|
+
var not_contains = "不包含";
|
156
|
+
var or = "或";
|
157
|
+
var previous_items = "前 {size} 项";
|
158
|
+
var next_items = "后 {size} 项";
|
159
|
+
var push_to = "跳转至";
|
160
|
+
var pagination_range = "第 {range1} – {range2} 项";
|
161
|
+
var pagination_total = "第 {range1} – {range2} 项,共 {total} 项";
|
162
|
+
var unknow_error = "未知错误";
|
163
|
+
var to = "至";
|
164
|
+
var components = {
|
165
|
+
contains: contains,
|
166
|
+
custom_column: custom_column,
|
167
|
+
"in": "属于",
|
168
|
+
not: not,
|
169
|
+
not_contains: not_contains,
|
170
|
+
or: or,
|
171
|
+
previous_items: previous_items,
|
172
|
+
next_items: next_items,
|
173
|
+
push_to: push_to,
|
174
|
+
pagination_range: pagination_range,
|
175
|
+
pagination_total: pagination_total,
|
176
|
+
unknow_error: unknow_error,
|
177
|
+
to: to
|
178
|
+
};
|
179
|
+
|
180
|
+
var current = "当前值";
|
181
|
+
var empty = "该时间范围内没有数据";
|
182
|
+
var max = "最大值";
|
183
|
+
var metric = {
|
184
|
+
current: current,
|
185
|
+
empty: empty,
|
186
|
+
max: max
|
187
|
+
};
|
188
|
+
|
189
|
+
const locale = {
|
190
|
+
common,
|
191
|
+
components,
|
192
|
+
metric
|
193
|
+
};
|
194
|
+
|
195
|
+
const locales = {
|
196
|
+
"en-US": locale$1,
|
197
|
+
"zh-CN": locale
|
198
|
+
};
|
199
|
+
|
200
|
+
var __defProp = Object.defineProperty;
|
201
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
202
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
203
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
204
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
205
|
+
var __spreadValues = (a, b) => {
|
206
|
+
for (var prop in b || (b = {}))
|
207
|
+
if (__hasOwnProp.call(b, prop))
|
208
|
+
__defNormalProp(a, prop, b[prop]);
|
209
|
+
if (__getOwnPropSymbols)
|
210
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
211
|
+
if (__propIsEnum.call(b, prop))
|
212
|
+
__defNormalProp(a, prop, b[prop]);
|
213
|
+
}
|
214
|
+
return a;
|
215
|
+
};
|
216
|
+
const parrotI18n = i18next.createInstance({
|
217
|
+
lng: "zh-CN",
|
218
|
+
fallbackLng: "en-US",
|
219
|
+
debug: true,
|
220
|
+
interpolation: {
|
221
|
+
prefix: "{",
|
222
|
+
suffix: "}"
|
223
|
+
},
|
224
|
+
resources: {
|
225
|
+
"en-US": {
|
226
|
+
translation: __spreadValues({}, locales["en-US"])
|
227
|
+
},
|
228
|
+
"zh-CN": {
|
229
|
+
translation: __spreadValues({}, locales["zh-CN"])
|
230
|
+
}
|
231
|
+
}
|
232
|
+
});
|
233
|
+
const initParrotI18n = () => {
|
234
|
+
parrotI18n.init({});
|
235
|
+
};
|
236
|
+
|
237
|
+
export { initParrotI18n, locales, parrotI18n };
|