@cloudtower/parrot 0.27.10 → 0.27.12

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.
@@ -0,0 +1,497 @@
1
+ import i18next from 'i18next';
2
+ import merge from 'lodash.merge';
3
+
4
+ var _action_$1 = "Action";
5
+ var action$1 = "Action";
6
+ var all$1 = "All";
7
+ var cancel$1 = "Cancel";
8
+ var clear_query$1 = "Clear the filter criteria";
9
+ var close$1 = "Close";
10
+ var contains$3 = "Contains";
11
+ var confirm$1 = "Confirm";
12
+ var empty$3 = "No ";
13
+ var enable$1 = "Enable";
14
+ var disable$1 = "Disable";
15
+ var error$1 = "Error";
16
+ var next_step$1 = "Next";
17
+ var not_contains$3 = "Not Contains";
18
+ var not_enable$1 = "Not enabled";
19
+ var prev_step$1 = "Previous";
20
+ var io$1 = "Total I/O";
21
+ var load_failed$1 = "Failed to load";
22
+ var param$1 = "Parameter";
23
+ var no$1 = "No";
24
+ var message$1 = "Message";
25
+ var architecture$1 = "CPU Architecture";
26
+ var calculation$1 = "Computing";
27
+ var on$1 = "On";
28
+ var error_message$1 = "Error Message";
29
+ var retry$1 = "Retry";
30
+ var week_abbreviation$1 = "week";
31
+ var day_abbreviation$1 = "day";
32
+ var hour_abbreviation$1 = "h";
33
+ var minute_abbreviation$1 = "min";
34
+ var second_abbreviation$1 = "sec";
35
+ var week$1 = "Week";
36
+ var day$1 = "Day";
37
+ var hour$1 = "Hour";
38
+ var minute$1 = "Minute";
39
+ var second$1 = "Second";
40
+ var monday$1 = "Monday";
41
+ var tuesday$1 = "Tuesday";
42
+ var wednesday$1 = "Wednesday";
43
+ var thursday$1 = "Thursday";
44
+ var friday$1 = "Friday";
45
+ var saturday$1 = "Saturday";
46
+ var sunday$1 = "Sunday";
47
+ var month$1 = "Month";
48
+ var common$1 = {
49
+ _action_: _action_$1,
50
+ action: action$1,
51
+ all: all$1,
52
+ cancel: cancel$1,
53
+ clear_query: clear_query$1,
54
+ close: close$1,
55
+ contains: contains$3,
56
+ confirm: confirm$1,
57
+ empty: empty$3,
58
+ enable: enable$1,
59
+ disable: disable$1,
60
+ error: error$1,
61
+ next_step: next_step$1,
62
+ not_contains: not_contains$3,
63
+ not_enable: not_enable$1,
64
+ prev_step: prev_step$1,
65
+ io: io$1,
66
+ load_failed: load_failed$1,
67
+ param: param$1,
68
+ no: no$1,
69
+ message: message$1,
70
+ architecture: architecture$1,
71
+ calculation: calculation$1,
72
+ on: on$1,
73
+ error_message: error_message$1,
74
+ retry: retry$1,
75
+ week_abbreviation: week_abbreviation$1,
76
+ day_abbreviation: day_abbreviation$1,
77
+ hour_abbreviation: hour_abbreviation$1,
78
+ minute_abbreviation: minute_abbreviation$1,
79
+ second_abbreviation: second_abbreviation$1,
80
+ week: week$1,
81
+ day: day$1,
82
+ hour: hour$1,
83
+ minute: minute$1,
84
+ second: second$1,
85
+ monday: monday$1,
86
+ tuesday: tuesday$1,
87
+ wednesday: wednesday$1,
88
+ thursday: thursday$1,
89
+ friday: friday$1,
90
+ saturday: saturday$1,
91
+ sunday: sunday$1,
92
+ month: month$1
93
+ };
94
+
95
+ var contains$2 = "Contains";
96
+ var custom_column$1 = "Customize Columns & Order";
97
+ var not$1 = "Not";
98
+ var not_contains$2 = "Not Contains";
99
+ var or$1 = "or";
100
+ var previous_items$1 = "Previous {size} items";
101
+ var next_items$1 = "Next {size} items";
102
+ var push_to$1 = "Jump to";
103
+ var pagination_range$1 = "Item {range1} – {range2}";
104
+ var pagination_total$1 = "Item {range1} – {range2}, {total} in total";
105
+ var pagination_lots_total$1 = "{total} items in total";
106
+ var unknow_error$1 = "Unknown error";
107
+ var to$1 = "to";
108
+ var time_zone_select_placeholder$1 = "Enter city or time zone";
109
+ var browser_time_zone$1 = "Browser Time Zone";
110
+ var coordinated_universal_time$1 = "Coordinated Universal Time";
111
+ var Architecture_AARCH64$1 = "AArch64";
112
+ var Architecture_X86_64$1 = "x86_64";
113
+ var maximum_row_count_desc$1 = "At most {count} items.";
114
+ var remove$1 = "Remove";
115
+ var add$1 = "Add";
116
+ var prefix$1 = "Prefix";
117
+ var suffix$1 = "Suffix";
118
+ var as_day$1 = "By Day";
119
+ var count$1 = "";
120
+ var per_day_1$1 = "Repeat every";
121
+ var per_day_2$1 = "day(s) at";
122
+ var per_day_3$1 = "";
123
+ var execution_time$1 = "Execution Time: ";
124
+ var as_week$1 = "By Week";
125
+ var as_month$1 = "By Month";
126
+ var week_with_below_date$1 = "week(s), on the following day(s):";
127
+ var month_with_below_date$1 = "month(s), on the following days(s):";
128
+ var will_excute_at_last_day_with_date$1 = "If there is no {date} in the current month, it will be executed in the last day of the month.";
129
+ var retain_with_count$1 = "Retain {count} reports";
130
+ var start_date$1 = "Start Date";
131
+ var retain_date$1 = "Retain copies";
132
+ var next_generate_with_date$1 = "The next report will be generated on {date}";
133
+ var will_save_one_to_thirty_report$1 = "You can retain 1-30 copies of the most recently generated reports.";
134
+ var every_day_with_time$1 = "Every day at {time}";
135
+ var every_day_with_count_and_time$1 = "Every {count} days at {time}";
136
+ var every_week_with_time$1 = "Every week at {time}";
137
+ var every_week_with_day_and_time$1 = "Every week on {day} at {time}";
138
+ var every_weeks_with_count_and_time$1 = "Every {count} weeks at {time}";
139
+ var every_weeks_with_count_and_day_and_time$1 = "Every {count} weeks on {day} at {time}";
140
+ var every_month_with_time$1 = "Every month at {time}";
141
+ var every_month_with_day_and_time$1 = "Every month on the day of {day} at {time}";
142
+ var every_months_with_count_and_time$1 = "Every {count} months at {time}";
143
+ var every_months_with_count_and_day_and_time$1 = "Every {count} months on the day of {day} at {time}";
144
+ var generate_date_preview$1 = "Generate Date Preview";
145
+ var date_with_year_and_month$1 = "{month} {year}";
146
+ var will_generate_one_reporte_with_date_and_time$1 = "One report will be generated at {date} {time}";
147
+ var will_generate_report_will_date_and_count$1 = "{count} reports will be generated at {date}";
148
+ var components$1 = {
149
+ contains: contains$2,
150
+ custom_column: custom_column$1,
151
+ "in": "belongs to",
152
+ not: not$1,
153
+ not_contains: not_contains$2,
154
+ or: or$1,
155
+ previous_items: previous_items$1,
156
+ next_items: next_items$1,
157
+ push_to: push_to$1,
158
+ pagination_range: pagination_range$1,
159
+ pagination_total: pagination_total$1,
160
+ pagination_lots_total: pagination_lots_total$1,
161
+ unknow_error: unknow_error$1,
162
+ to: to$1,
163
+ time_zone_select_placeholder: time_zone_select_placeholder$1,
164
+ browser_time_zone: browser_time_zone$1,
165
+ coordinated_universal_time: coordinated_universal_time$1,
166
+ Architecture_AARCH64: Architecture_AARCH64$1,
167
+ Architecture_X86_64: Architecture_X86_64$1,
168
+ maximum_row_count_desc: maximum_row_count_desc$1,
169
+ remove: remove$1,
170
+ add: add$1,
171
+ prefix: prefix$1,
172
+ suffix: suffix$1,
173
+ as_day: as_day$1,
174
+ count: count$1,
175
+ per_day_1: per_day_1$1,
176
+ per_day_2: per_day_2$1,
177
+ per_day_3: per_day_3$1,
178
+ execution_time: execution_time$1,
179
+ as_week: as_week$1,
180
+ as_month: as_month$1,
181
+ week_with_below_date: week_with_below_date$1,
182
+ month_with_below_date: month_with_below_date$1,
183
+ will_excute_at_last_day_with_date: will_excute_at_last_day_with_date$1,
184
+ retain_with_count: retain_with_count$1,
185
+ start_date: start_date$1,
186
+ retain_date: retain_date$1,
187
+ next_generate_with_date: next_generate_with_date$1,
188
+ will_save_one_to_thirty_report: will_save_one_to_thirty_report$1,
189
+ every_day_with_time: every_day_with_time$1,
190
+ every_day_with_count_and_time: every_day_with_count_and_time$1,
191
+ every_week_with_time: every_week_with_time$1,
192
+ every_week_with_day_and_time: every_week_with_day_and_time$1,
193
+ every_weeks_with_count_and_time: every_weeks_with_count_and_time$1,
194
+ every_weeks_with_count_and_day_and_time: every_weeks_with_count_and_day_and_time$1,
195
+ every_month_with_time: every_month_with_time$1,
196
+ every_month_with_day_and_time: every_month_with_day_and_time$1,
197
+ every_months_with_count_and_time: every_months_with_count_and_time$1,
198
+ every_months_with_count_and_day_and_time: every_months_with_count_and_day_and_time$1,
199
+ generate_date_preview: generate_date_preview$1,
200
+ date_with_year_and_month: date_with_year_and_month$1,
201
+ will_generate_one_reporte_with_date_and_time: will_generate_one_reporte_with_date_and_time$1,
202
+ will_generate_report_will_date_and_count: will_generate_report_will_date_and_count$1
203
+ };
204
+
205
+ var current$1 = "Current value";
206
+ var empty$2 = "No data in this time range";
207
+ var max$1 = "Max";
208
+ var metric$1 = {
209
+ current: current$1,
210
+ empty: empty$2,
211
+ max: max$1
212
+ };
213
+
214
+ const locale$1 = {
215
+ common: common$1,
216
+ components: components$1,
217
+ metric: metric$1
218
+ };
219
+
220
+ var _action_ = "操作";
221
+ var action = "操作";
222
+ var all = "全部";
223
+ var cancel = "取消";
224
+ var clear_query = "清空筛选条件";
225
+ var close = "关闭";
226
+ var contains$1 = "包含";
227
+ var confirm = "确定";
228
+ var empty$1 = "无";
229
+ var enable = "启用";
230
+ var disable = "禁用";
231
+ var error = "错误";
232
+ var next_step = "下一步";
233
+ var not_contains$1 = "不包含";
234
+ var not_enable = "不启用";
235
+ var prev_step = "上一步";
236
+ var io = "I/O 总数";
237
+ var load_failed = "加载失败";
238
+ var param = "参数";
239
+ var no = "否";
240
+ var message = "信息";
241
+ var architecture = "CPU 架构";
242
+ var calculation = "计算中";
243
+ var on = "开启";
244
+ var error_message = "错误信息";
245
+ var retry = "重试";
246
+ var week_abbreviation = "周";
247
+ var day_abbreviation = "天";
248
+ var hour_abbreviation = "小时";
249
+ var minute_abbreviation = "分钟";
250
+ var second_abbreviation = "秒";
251
+ var week = "周";
252
+ var day = "天";
253
+ var hour = "小时";
254
+ var minute = "分钟";
255
+ var second = "秒";
256
+ var monday = "周一";
257
+ var tuesday = "周二";
258
+ var wednesday = "周三";
259
+ var thursday = "周四";
260
+ var friday = "周五";
261
+ var saturday = "周六";
262
+ var sunday = "周日";
263
+ var month = "月";
264
+ var common = {
265
+ _action_: _action_,
266
+ action: action,
267
+ all: all,
268
+ cancel: cancel,
269
+ clear_query: clear_query,
270
+ close: close,
271
+ contains: contains$1,
272
+ confirm: confirm,
273
+ empty: empty$1,
274
+ enable: enable,
275
+ disable: disable,
276
+ error: error,
277
+ next_step: next_step,
278
+ not_contains: not_contains$1,
279
+ not_enable: not_enable,
280
+ prev_step: prev_step,
281
+ io: io,
282
+ load_failed: load_failed,
283
+ param: param,
284
+ no: no,
285
+ message: message,
286
+ architecture: architecture,
287
+ calculation: calculation,
288
+ on: on,
289
+ error_message: error_message,
290
+ retry: retry,
291
+ week_abbreviation: week_abbreviation,
292
+ day_abbreviation: day_abbreviation,
293
+ hour_abbreviation: hour_abbreviation,
294
+ minute_abbreviation: minute_abbreviation,
295
+ second_abbreviation: second_abbreviation,
296
+ week: week,
297
+ day: day,
298
+ hour: hour,
299
+ minute: minute,
300
+ second: second,
301
+ monday: monday,
302
+ tuesday: tuesday,
303
+ wednesday: wednesday,
304
+ thursday: thursday,
305
+ friday: friday,
306
+ saturday: saturday,
307
+ sunday: sunday,
308
+ month: month
309
+ };
310
+
311
+ var contains = "包含";
312
+ var custom_column = "自定义列的展示和顺序";
313
+ var not = "不为";
314
+ var not_contains = "不包含";
315
+ var or = "或";
316
+ var previous_items = "前 {size} 项";
317
+ var next_items = "后 {size} 项";
318
+ var push_to = "跳转至";
319
+ var pagination_range = "第 {range1} – {range2} 项";
320
+ var pagination_total = "第 {range1} – {range2} 项,共 {total} 项";
321
+ var pagination_lots_total = "共 {total} 项";
322
+ var unknow_error = "未知错误";
323
+ var to = "至";
324
+ var time_zone_select_placeholder = "输入城市、时区";
325
+ var browser_time_zone = "浏览器时区";
326
+ var coordinated_universal_time = "协调世界时";
327
+ var Architecture_AARCH64 = "AArch64";
328
+ var Architecture_X86_64 = "x86_64";
329
+ var maximum_row_count_desc = "最多添加 {count} 项。";
330
+ var remove = "移除";
331
+ var add = "添加";
332
+ var prefix = "前缀";
333
+ var suffix = "后缀";
334
+ var as_day = "按天";
335
+ var count = "份";
336
+ var per_day_1 = "每";
337
+ var per_day_2 = "天,";
338
+ var per_day_3 = "生成。";
339
+ var execution_time = "生成时间:";
340
+ var as_week = "按周";
341
+ var as_month = "按月";
342
+ var week_with_below_date = "周的如下日期:";
343
+ var month_with_below_date = "个月的如下日期:";
344
+ var will_excute_at_last_day_with_date = "如果当月没有 {date} 号,则会提前至该月最后一天执行。";
345
+ var retain_with_count = "保留 {count} 份";
346
+ var start_date = "开始日期";
347
+ var retain_date = "保留份数";
348
+ var next_generate_with_date = "下次生成将会发生在:{date}";
349
+ var will_save_one_to_thirty_report = "可以保留 1~30 份最近自动生成的报表。";
350
+ var every_day_with_time = "每天的 {time}";
351
+ var every_day_with_count_and_time = "每 {count} 天的 {time}";
352
+ var every_week_with_time = "每周的 {time}";
353
+ var every_week_with_day_and_time = "每周的周{day} {time}";
354
+ var every_weeks_with_count_and_time = "每 {count} 周的 {time}";
355
+ var every_weeks_with_count_and_day_and_time = "每 {count} 周的周{day} {time}";
356
+ var every_month_with_time = "每月的 {time}";
357
+ var every_month_with_day_and_time = "每月的 {day} 号 {time}";
358
+ var every_months_with_count_and_time = "每 {count} 月的 {time}";
359
+ var every_months_with_count_and_day_and_time = "每 {count} 月的 {day} 号 {time}";
360
+ var generate_date_preview = "生成日期预览";
361
+ var date_with_year_and_month = "{year} 年 {month}";
362
+ var will_generate_one_reporte_with_date_and_time = "{ date } 将在 {time } 生成 1 份报表";
363
+ var will_generate_report_will_date_and_count = "{date} 将在如下时间生成 {count} 份报表:";
364
+ var components = {
365
+ contains: contains,
366
+ custom_column: custom_column,
367
+ "in": "属于",
368
+ not: not,
369
+ not_contains: not_contains,
370
+ or: or,
371
+ previous_items: previous_items,
372
+ next_items: next_items,
373
+ push_to: push_to,
374
+ pagination_range: pagination_range,
375
+ pagination_total: pagination_total,
376
+ pagination_lots_total: pagination_lots_total,
377
+ unknow_error: unknow_error,
378
+ to: to,
379
+ time_zone_select_placeholder: time_zone_select_placeholder,
380
+ browser_time_zone: browser_time_zone,
381
+ coordinated_universal_time: coordinated_universal_time,
382
+ Architecture_AARCH64: Architecture_AARCH64,
383
+ Architecture_X86_64: Architecture_X86_64,
384
+ maximum_row_count_desc: maximum_row_count_desc,
385
+ remove: remove,
386
+ add: add,
387
+ prefix: prefix,
388
+ suffix: suffix,
389
+ as_day: as_day,
390
+ count: count,
391
+ per_day_1: per_day_1,
392
+ per_day_2: per_day_2,
393
+ per_day_3: per_day_3,
394
+ execution_time: execution_time,
395
+ as_week: as_week,
396
+ as_month: as_month,
397
+ week_with_below_date: week_with_below_date,
398
+ month_with_below_date: month_with_below_date,
399
+ will_excute_at_last_day_with_date: will_excute_at_last_day_with_date,
400
+ retain_with_count: retain_with_count,
401
+ start_date: start_date,
402
+ retain_date: retain_date,
403
+ next_generate_with_date: next_generate_with_date,
404
+ will_save_one_to_thirty_report: will_save_one_to_thirty_report,
405
+ every_day_with_time: every_day_with_time,
406
+ every_day_with_count_and_time: every_day_with_count_and_time,
407
+ every_week_with_time: every_week_with_time,
408
+ every_week_with_day_and_time: every_week_with_day_and_time,
409
+ every_weeks_with_count_and_time: every_weeks_with_count_and_time,
410
+ every_weeks_with_count_and_day_and_time: every_weeks_with_count_and_day_and_time,
411
+ every_month_with_time: every_month_with_time,
412
+ every_month_with_day_and_time: every_month_with_day_and_time,
413
+ every_months_with_count_and_time: every_months_with_count_and_time,
414
+ every_months_with_count_and_day_and_time: every_months_with_count_and_day_and_time,
415
+ generate_date_preview: generate_date_preview,
416
+ date_with_year_and_month: date_with_year_and_month,
417
+ will_generate_one_reporte_with_date_and_time: will_generate_one_reporte_with_date_and_time,
418
+ will_generate_report_will_date_and_count: will_generate_report_will_date_and_count
419
+ };
420
+
421
+ var current = "当前值";
422
+ var empty = "该时间范围内没有数据";
423
+ var max = "最大值";
424
+ var metric = {
425
+ current: current,
426
+ empty: empty,
427
+ max: max
428
+ };
429
+
430
+ const locale = {
431
+ common,
432
+ components,
433
+ metric
434
+ };
435
+
436
+ const locales = {
437
+ "en-US": locale$1,
438
+ "zh-CN": locale
439
+ };
440
+
441
+ var __defProp = Object.defineProperty;
442
+ var __defProps = Object.defineProperties;
443
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
444
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
445
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
446
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
447
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
448
+ var __spreadValues = (a, b) => {
449
+ for (var prop in b || (b = {}))
450
+ if (__hasOwnProp.call(b, prop))
451
+ __defNormalProp(a, prop, b[prop]);
452
+ if (__getOwnPropSymbols)
453
+ for (var prop of __getOwnPropSymbols(b)) {
454
+ if (__propIsEnum.call(b, prop))
455
+ __defNormalProp(a, prop, b[prop]);
456
+ }
457
+ return a;
458
+ };
459
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
460
+ var ParrotLngs = /* @__PURE__ */ ((ParrotLngs2) => {
461
+ ParrotLngs2["zh"] = "zh-CN";
462
+ ParrotLngs2["en"] = "en-US";
463
+ return ParrotLngs2;
464
+ })(ParrotLngs || {});
465
+ const defaultOptions = {
466
+ lng: "zh-CN" /* zh */,
467
+ fallbackLng: ["zh-CN" /* zh */, "en-US" /* en */],
468
+ interpolation: {
469
+ prefix: "{",
470
+ suffix: "}"
471
+ },
472
+ resources: {
473
+ ["en-US" /* en */]: locales["en-US"],
474
+ ["zh-CN" /* zh */]: locales["zh-CN"]
475
+ },
476
+ nsSeparator: ".",
477
+ ns: Object.keys(locales["zh-CN"]),
478
+ react: {
479
+ useSuspense: false
480
+ }
481
+ };
482
+ const parrotI18n = i18next.createInstance(defaultOptions);
483
+ const initParrotI18n = (options, callback) => {
484
+ const finalResources = merge(defaultOptions.resources, options == null ? void 0 : options.resources) || {};
485
+ const finalNameSpaces = Object.keys(finalResources["zh-CN" /* zh */]);
486
+ if (!parrotI18n.isInitialized) {
487
+ parrotI18n.init(
488
+ __spreadProps(__spreadValues({}, merge(defaultOptions, options)), {
489
+ resources: finalResources,
490
+ ns: finalNameSpaces
491
+ }),
492
+ callback
493
+ );
494
+ }
495
+ };
496
+
497
+ export { ParrotLngs, initParrotI18n, locales, parrotI18n };