@dovetail-v2/refine 0.0.26 → 0.0.28

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.
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports } from "./index-d02782c8.js";
1
+ import { j as jsxRuntimeExports } from "./index-432360ef.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -337,7 +337,7 @@ const dovetail$1 = {
337
337
  edit_resource: edit_resource$1,
338
338
  status: status$1
339
339
  };
340
- const EN = {
340
+ const D2LocalesEN = {
341
341
  dovetail: dovetail$1
342
342
  };
343
343
  const copy = "复制";
@@ -519,13 +519,14 @@ const dovetail = {
519
519
  ingress_rule_type,
520
520
  port
521
521
  };
522
- const ZH = {
522
+ const D2LocalesZH = {
523
523
  dovetail
524
524
  };
525
- const resources = {
526
- "en-US": EN,
527
- "zh-CN": ZH
525
+ const D2Locales = {
526
+ "en-US": D2LocalesEN,
527
+ "zh-CN": D2LocalesZH
528
528
  };
529
+ const resources = D2Locales;
529
530
  i18n.use(initReactI18next).init({
530
531
  supportedLngs: ["en-US", "zh-CN"],
531
532
  resources,
@@ -9858,7 +9859,7 @@ const ErrorMsgStyle = "eh2qjnl";
9858
9859
  const ErrorWrapperStyle = "e19q2bnp";
9859
9860
  const YamlEditorStyle = "y16u5v3w";
9860
9861
  const MonacoYamlEditor$2 = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
9861
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-7505595f.js"));
9862
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-b459d49b.js"));
9862
9863
  const YamlEditorComponent = forwardRef(
9863
9864
  function YamlEditorComponent2(props, ref) {
9864
9865
  const {
@@ -19323,123 +19324,124 @@ const relationPlugin = new RelationPlugin();
19323
19324
  const ProviderPlugins = [relationPlugin, modelPlugin];
19324
19325
  const dovetailRefineI18n = i18n;
19325
19326
  export {
19326
- DeleteButton as $,
19327
+ YamlEditorComponent as $,
19327
19328
  AgeColumnRenderer as A,
19328
19329
  Breadcrumb as B,
19329
19330
  CommonSorter as C,
19330
- DurationColumnRenderer as D,
19331
- WorkloadDropdown as E,
19332
- CreateButton as F,
19333
- ImageNames as G,
19334
- ResourceList as H,
19331
+ D2Locales as D,
19332
+ PodContainersTable as E,
19333
+ WorkloadDropdown as F,
19334
+ CreateButton as G,
19335
+ ImageNames as H,
19335
19336
  IngressRulesColumnRenderer as I,
19336
- ResourceShow as J,
19337
+ ResourceList as J,
19337
19338
  KeyValueListWidget as K,
19338
- ResourceForm as L,
19339
+ ResourceShow as L,
19339
19340
  MetadataForm as M,
19340
19341
  NameColumnRenderer as N,
19341
- ResourceCRUD as O,
19342
+ ResourceForm as O,
19342
19343
  PodWorkloadColumnRenderer as P,
19343
- WorkloadPodsTable as Q,
19344
+ ResourceCRUD as Q,
19344
19345
  ReplicasColumnRenderer as R,
19345
19346
  StateDisplayColumnRenderer as S,
19346
- CronJobDropdown as T,
19347
- ResourceUsageBar as U,
19348
- WorkloadReplicas as V,
19347
+ WorkloadPodsTable as T,
19348
+ CronJobDropdown as U,
19349
+ ResourceUsageBar as V,
19349
19350
  WorkloadImageColumnRenderer as W,
19350
- CronjobJobsTable as X,
19351
- KeyValue as Y,
19352
- Separator as Z,
19353
- YamlEditorComponent as _,
19351
+ WorkloadReplicas as X,
19352
+ CronjobJobsTable as Y,
19353
+ KeyValue as Z,
19354
+ Separator as _,
19354
19355
  useDeleteModal as a,
19355
- StatefulSetModel as a$,
19356
- Layout as a0,
19357
- ImageField as a1,
19358
- ReplicaField as a2,
19359
- ConditionsField as a3,
19360
- PodsField as a4,
19361
- JobsField as a5,
19362
- DataField as a6,
19363
- SecretDataField as a7,
19364
- StartTimeField as a8,
19365
- ServiceTypeField as a9,
19366
- DAEMONSET_INIT_VALUE as aA,
19367
- JOB_INIT_VALUE as aB,
19368
- STATEFULSET_INIT_VALUE as aC,
19369
- POD_INIT_VALUE as aD,
19370
- SERVICE_INIT_VALUE as aE,
19371
- INGRESS_INIT_VALUE as aF,
19372
- NETWORK_POLICY_INIT_VALUE as aG,
19373
- TIMESTAMP_LABEL as aH,
19374
- WorkloadState as aI,
19375
- Dovetail as aJ,
19376
- RESOURCE_GROUP as aK,
19377
- FormType as aL,
19378
- ComponentContext as aM,
19379
- GlobalStoreContext as aN,
19380
- ConfigsContext as aO,
19381
- IngressModel as aP,
19382
- NetworkPolicyModel as aQ,
19383
- JobModel as aR,
19384
- WorkloadModel as aS,
19385
- WorkloadBaseModel as aT,
19386
- PodModel as aU,
19387
- PodMetricsModel as aV,
19388
- ResourceModel as aW,
19389
- CronJobModel as aX,
19390
- EventModel as aY,
19391
- DeploymentModel as aZ,
19392
- DaemonSetModel as a_,
19393
- ClusterIpField as aa,
19394
- SessionAffinityField as ab,
19395
- ServicePodsField as ac,
19396
- IngressRulesTableTabField as ad,
19397
- EventsTableTabField as ae,
19398
- ShowContent as af,
19399
- SchemaStrategy as ag,
19400
- DeleteManyButton as ah,
19401
- ListPage as ai,
19402
- StateTag as aj,
19403
- DrawerShow as ak,
19404
- Menu as al,
19405
- EditButton as am,
19406
- ReferenceLink as an,
19407
- ResourceLink as ao,
19408
- NS_STORE_KEY as ap,
19409
- ALL_NS as aq,
19410
- useNamespacesFilter as ar,
19411
- NamespacesFilter as as,
19412
- Tags as at,
19413
- PodLog as au,
19414
- FormModal as av,
19415
- NetworkPolicyRulesTable as aw,
19416
- BASE_INIT_VALUE as ax,
19417
- DEPLOYMENT_INIT_VALUE as ay,
19418
- CRONJOB_INIT_VALUE as az,
19356
+ DaemonSetModel as a$,
19357
+ DeleteButton as a0,
19358
+ Layout as a1,
19359
+ ImageField as a2,
19360
+ ReplicaField as a3,
19361
+ ConditionsField as a4,
19362
+ PodsField as a5,
19363
+ JobsField as a6,
19364
+ DataField as a7,
19365
+ SecretDataField as a8,
19366
+ StartTimeField as a9,
19367
+ CRONJOB_INIT_VALUE as aA,
19368
+ DAEMONSET_INIT_VALUE as aB,
19369
+ JOB_INIT_VALUE as aC,
19370
+ STATEFULSET_INIT_VALUE as aD,
19371
+ POD_INIT_VALUE as aE,
19372
+ SERVICE_INIT_VALUE as aF,
19373
+ INGRESS_INIT_VALUE as aG,
19374
+ NETWORK_POLICY_INIT_VALUE as aH,
19375
+ TIMESTAMP_LABEL as aI,
19376
+ WorkloadState as aJ,
19377
+ Dovetail as aK,
19378
+ RESOURCE_GROUP as aL,
19379
+ FormType as aM,
19380
+ ComponentContext as aN,
19381
+ GlobalStoreContext as aO,
19382
+ ConfigsContext as aP,
19383
+ IngressModel as aQ,
19384
+ NetworkPolicyModel as aR,
19385
+ JobModel as aS,
19386
+ WorkloadModel as aT,
19387
+ WorkloadBaseModel as aU,
19388
+ PodModel as aV,
19389
+ PodMetricsModel as aW,
19390
+ ResourceModel as aX,
19391
+ CronJobModel as aY,
19392
+ EventModel as aZ,
19393
+ DeploymentModel as a_,
19394
+ ServiceTypeField as aa,
19395
+ ClusterIpField as ab,
19396
+ SessionAffinityField as ac,
19397
+ ServicePodsField as ad,
19398
+ IngressRulesTableTabField as ae,
19399
+ EventsTableTabField as af,
19400
+ ShowContent as ag,
19401
+ SchemaStrategy as ah,
19402
+ DeleteManyButton as ai,
19403
+ ListPage as aj,
19404
+ StateTag as ak,
19405
+ DrawerShow as al,
19406
+ Menu as am,
19407
+ EditButton as an,
19408
+ ReferenceLink as ao,
19409
+ ResourceLink as ap,
19410
+ NS_STORE_KEY as aq,
19411
+ ALL_NS as ar,
19412
+ useNamespacesFilter as as,
19413
+ NamespacesFilter as at,
19414
+ Tags as au,
19415
+ PodLog as av,
19416
+ FormModal as aw,
19417
+ NetworkPolicyRulesTable as ax,
19418
+ BASE_INIT_VALUE as ay,
19419
+ DEPLOYMENT_INIT_VALUE as az,
19419
19420
  NameSpaceColumnRenderer as b,
19420
- ProviderPlugins as b0,
19421
+ StatefulSetModel as b0,
19422
+ ProviderPlugins as b1,
19421
19423
  WorkloadRestartsColumnRenderer as c,
19422
19424
  dovetailRefineI18n as d,
19423
19425
  NodeNameColumnRenderer as e,
19424
19426
  RestartCountColumnRenderer as f,
19425
19427
  CompletionsCountColumnRenderer as g,
19426
- ServiceTypeColumnRenderer as h,
19427
- IngressDefaultBackendColumnRenderer as i,
19428
+ DurationColumnRenderer as h,
19429
+ ServiceTypeColumnRenderer as i,
19428
19430
  jsxRuntimeExports as j,
19429
- ColumnKeys as k,
19430
- useEagleTable as l,
19431
- useDownloadYAML as m,
19432
- useEdit as n,
19433
- useGlobalStore as o,
19434
- NameInputWidget as p,
19435
- dnsSubDomainRules as q,
19431
+ IngressDefaultBackendColumnRenderer as k,
19432
+ ColumnKeys as l,
19433
+ useEagleTable as m,
19434
+ useDownloadYAML as n,
19435
+ useEdit as o,
19436
+ useGlobalStore as p,
19437
+ NameInputWidget as q,
19436
19438
  routerProvider as r,
19437
- rfc1123LabelRules as s,
19438
- rfc1035LabelRules as t,
19439
+ dnsSubDomainRules as s,
19440
+ rfc1123LabelRules as t,
19439
19441
  useSchema as u,
19440
- NamespaceSelectWidget as v,
19441
- namespaceRules as w,
19442
- PageShow as x,
19443
- ConditionsTable as y,
19444
- PodContainersTable as z
19442
+ rfc1035LabelRules as v,
19443
+ NamespaceSelectWidget as w,
19444
+ namespaceRules as x,
19445
+ PageShow as y,
19446
+ ConditionsTable as z
19445
19447
  };
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aq, A, ax, B, az, aa, k, C, g, aM, a3, y, aO, F, T, aX, X, aA, ay, a_, a6, $, ah, aZ, aJ, ak, D, am, aY, ae, av, aL, aN, aF, a1, G, i, aP, I, ad, aB, aR, a5, Y, K, a0, ai, al, M, aG, ap, N, p, b, v, as, aQ, aw, e, aD, x, z, au, aV, aU, P, a4, b0, aK, an, a2, R, O, L, ao, H, aW, J, U, f, aE, aC, ag, a7, Z, ac, h, a9, ab, af, a8, S, aj, a$, aH, at, aT, E, W, aS, Q, V, c, aI, _, q, d, w, t, s, r, a, m, l, n, o, ar, u } from "./index-d02782c8.js";
1
+ import { ar, A, ay, B, aA, ab, l, C, g, aN, a4, z, aP, G, U, aY, Y, D, aB, az, a$, a7, a0, ai, a_, aK, al, h, an, aZ, af, aw, aM, aO, aG, a2, H, k, aQ, I, ae, aC, aS, a6, Z, K, a1, aj, am, M, aH, aq, N, q, b, w, at, aR, ax, e, aE, y, E, av, aW, aV, P, a5, b1, aL, ao, a3, R, Q, O, ap, J, aX, L, V, f, aF, aD, ah, a8, _, ad, i, aa, ac, ag, a9, S, ak, b0, aI, au, aU, F, W, aT, T, X, c, aJ, $, s, d, x, v, t, r, a, n, m, o, p, as, u } from "./index-432360ef.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "js-yaml";
@@ -15,122 +15,123 @@ import "react-dom";
15
15
  import "antd";
16
16
  import "k8s-api-provider";
17
17
  export {
18
- aq as ALL_NS,
18
+ ar as ALL_NS,
19
19
  A as AgeColumnRenderer,
20
- ax as BASE_INIT_VALUE,
20
+ ay as BASE_INIT_VALUE,
21
21
  B as Breadcrumb,
22
- az as CRONJOB_INIT_VALUE,
23
- aa as ClusterIpField,
24
- k as ColumnKeys,
22
+ aA as CRONJOB_INIT_VALUE,
23
+ ab as ClusterIpField,
24
+ l as ColumnKeys,
25
25
  C as CommonSorter,
26
26
  g as CompletionsCountColumnRenderer,
27
- aM as ComponentContext,
28
- a3 as ConditionsField,
29
- y as ConditionsTable,
30
- aO as ConfigsContext,
31
- F as CreateButton,
32
- T as CronJobDropdown,
33
- aX as CronJobModel,
34
- X as CronjobJobsTable,
35
- aA as DAEMONSET_INIT_VALUE,
36
- ay as DEPLOYMENT_INIT_VALUE,
37
- a_ as DaemonSetModel,
38
- a6 as DataField,
39
- $ as DeleteButton,
40
- ah as DeleteManyButton,
41
- aZ as DeploymentModel,
42
- aJ as Dovetail,
43
- ak as DrawerShow,
44
- D as DurationColumnRenderer,
45
- am as EditButton,
46
- aY as EventModel,
47
- ae as EventsTableTabField,
48
- av as FormModal,
49
- aL as FormType,
50
- aN as GlobalStoreContext,
51
- aF as INGRESS_INIT_VALUE,
52
- a1 as ImageField,
53
- G as ImageNames,
54
- i as IngressDefaultBackendColumnRenderer,
55
- aP as IngressModel,
27
+ aN as ComponentContext,
28
+ a4 as ConditionsField,
29
+ z as ConditionsTable,
30
+ aP as ConfigsContext,
31
+ G as CreateButton,
32
+ U as CronJobDropdown,
33
+ aY as CronJobModel,
34
+ Y as CronjobJobsTable,
35
+ D as D2Locales,
36
+ aB as DAEMONSET_INIT_VALUE,
37
+ az as DEPLOYMENT_INIT_VALUE,
38
+ a$ as DaemonSetModel,
39
+ a7 as DataField,
40
+ a0 as DeleteButton,
41
+ ai as DeleteManyButton,
42
+ a_ as DeploymentModel,
43
+ aK as Dovetail,
44
+ al as DrawerShow,
45
+ h as DurationColumnRenderer,
46
+ an as EditButton,
47
+ aZ as EventModel,
48
+ af as EventsTableTabField,
49
+ aw as FormModal,
50
+ aM as FormType,
51
+ aO as GlobalStoreContext,
52
+ aG as INGRESS_INIT_VALUE,
53
+ a2 as ImageField,
54
+ H as ImageNames,
55
+ k as IngressDefaultBackendColumnRenderer,
56
+ aQ as IngressModel,
56
57
  I as IngressRulesColumnRenderer,
57
- ad as IngressRulesTableTabField,
58
- aB as JOB_INIT_VALUE,
59
- aR as JobModel,
60
- a5 as JobsField,
61
- Y as KeyValue,
58
+ ae as IngressRulesTableTabField,
59
+ aC as JOB_INIT_VALUE,
60
+ aS as JobModel,
61
+ a6 as JobsField,
62
+ Z as KeyValue,
62
63
  K as KeyValueListWidget,
63
- a0 as Layout,
64
- ai as ListPage,
65
- al as Menu,
64
+ a1 as Layout,
65
+ aj as ListPage,
66
+ am as Menu,
66
67
  M as MetadataForm,
67
- aG as NETWORK_POLICY_INIT_VALUE,
68
- ap as NS_STORE_KEY,
68
+ aH as NETWORK_POLICY_INIT_VALUE,
69
+ aq as NS_STORE_KEY,
69
70
  N as NameColumnRenderer,
70
- p as NameInputWidget,
71
+ q as NameInputWidget,
71
72
  b as NameSpaceColumnRenderer,
72
- v as NamespaceSelectWidget,
73
- as as NamespacesFilter,
74
- aQ as NetworkPolicyModel,
75
- aw as NetworkPolicyRulesTable,
73
+ w as NamespaceSelectWidget,
74
+ at as NamespacesFilter,
75
+ aR as NetworkPolicyModel,
76
+ ax as NetworkPolicyRulesTable,
76
77
  e as NodeNameColumnRenderer,
77
- aD as POD_INIT_VALUE,
78
- x as PageShow,
79
- z as PodContainersTable,
80
- au as PodLog,
81
- aV as PodMetricsModel,
82
- aU as PodModel,
78
+ aE as POD_INIT_VALUE,
79
+ y as PageShow,
80
+ E as PodContainersTable,
81
+ av as PodLog,
82
+ aW as PodMetricsModel,
83
+ aV as PodModel,
83
84
  P as PodWorkloadColumnRenderer,
84
- a4 as PodsField,
85
- b0 as ProviderPlugins,
86
- aK as RESOURCE_GROUP,
87
- an as ReferenceLink,
88
- a2 as ReplicaField,
85
+ a5 as PodsField,
86
+ b1 as ProviderPlugins,
87
+ aL as RESOURCE_GROUP,
88
+ ao as ReferenceLink,
89
+ a3 as ReplicaField,
89
90
  R as ReplicasColumnRenderer,
90
- O as ResourceCRUD,
91
- L as ResourceForm,
92
- ao as ResourceLink,
93
- H as ResourceList,
94
- aW as ResourceModel,
95
- J as ResourceShow,
96
- U as ResourceUsageBar,
91
+ Q as ResourceCRUD,
92
+ O as ResourceForm,
93
+ ap as ResourceLink,
94
+ J as ResourceList,
95
+ aX as ResourceModel,
96
+ L as ResourceShow,
97
+ V as ResourceUsageBar,
97
98
  f as RestartCountColumnRenderer,
98
- aE as SERVICE_INIT_VALUE,
99
- aC as STATEFULSET_INIT_VALUE,
100
- ag as SchemaStrategy,
101
- a7 as SecretDataField,
102
- Z as Separator,
103
- ac as ServicePodsField,
104
- h as ServiceTypeColumnRenderer,
105
- a9 as ServiceTypeField,
106
- ab as SessionAffinityField,
107
- af as ShowContent,
108
- a8 as StartTimeField,
99
+ aF as SERVICE_INIT_VALUE,
100
+ aD as STATEFULSET_INIT_VALUE,
101
+ ah as SchemaStrategy,
102
+ a8 as SecretDataField,
103
+ _ as Separator,
104
+ ad as ServicePodsField,
105
+ i as ServiceTypeColumnRenderer,
106
+ aa as ServiceTypeField,
107
+ ac as SessionAffinityField,
108
+ ag as ShowContent,
109
+ a9 as StartTimeField,
109
110
  S as StateDisplayColumnRenderer,
110
- aj as StateTag,
111
- a$ as StatefulSetModel,
112
- aH as TIMESTAMP_LABEL,
113
- at as Tags,
114
- aT as WorkloadBaseModel,
115
- E as WorkloadDropdown,
111
+ ak as StateTag,
112
+ b0 as StatefulSetModel,
113
+ aI as TIMESTAMP_LABEL,
114
+ au as Tags,
115
+ aU as WorkloadBaseModel,
116
+ F as WorkloadDropdown,
116
117
  W as WorkloadImageColumnRenderer,
117
- aS as WorkloadModel,
118
- Q as WorkloadPodsTable,
119
- V as WorkloadReplicas,
118
+ aT as WorkloadModel,
119
+ T as WorkloadPodsTable,
120
+ X as WorkloadReplicas,
120
121
  c as WorkloadRestartsColumnRenderer,
121
- aI as WorkloadState,
122
- _ as YamlEditorComponent,
123
- q as dnsSubDomainRules,
122
+ aJ as WorkloadState,
123
+ $ as YamlEditorComponent,
124
+ s as dnsSubDomainRules,
124
125
  d as dovetailRefineI18n,
125
- w as namespaceRules,
126
- t as rfc1035LabelRules,
127
- s as rfc1123LabelRules,
126
+ x as namespaceRules,
127
+ v as rfc1035LabelRules,
128
+ t as rfc1123LabelRules,
128
129
  r as routerProvider,
129
130
  a as useDeleteModal,
130
- m as useDownloadYAML,
131
- l as useEagleTable,
132
- n as useEdit,
133
- o as useGlobalStore,
134
- ar as useNamespacesFilter,
131
+ n as useDownloadYAML,
132
+ m as useEagleTable,
133
+ o as useEdit,
134
+ p as useGlobalStore,
135
+ as as useNamespacesFilter,
135
136
  u as useSchema
136
137
  };
@@ -343,7 +343,7 @@ var __publicField = (obj, key, value) => {
343
343
  edit_resource: edit_resource$1,
344
344
  status: status$1
345
345
  };
346
- const EN = {
346
+ const D2LocalesEN = {
347
347
  dovetail: dovetail$1
348
348
  };
349
349
  const copy = "复制";
@@ -525,13 +525,14 @@ var __publicField = (obj, key, value) => {
525
525
  ingress_rule_type,
526
526
  port
527
527
  };
528
- const ZH = {
528
+ const D2LocalesZH = {
529
529
  dovetail
530
530
  };
531
- const resources = {
532
- "en-US": EN,
533
- "zh-CN": ZH
531
+ const D2Locales = {
532
+ "en-US": D2LocalesEN,
533
+ "zh-CN": D2LocalesZH
534
534
  };
535
+ const resources = D2Locales;
535
536
  i18n.use(initReactI18next).init({
536
537
  supportedLngs: ["en-US", "zh-CN"],
537
538
  resources,
@@ -19385,6 +19386,7 @@ var __publicField = (obj, key, value) => {
19385
19386
  exports2.CronJobDropdown = CronJobDropdown;
19386
19387
  exports2.CronJobModel = CronJobModel;
19387
19388
  exports2.CronjobJobsTable = CronjobJobsTable;
19389
+ exports2.D2Locales = D2Locales;
19388
19390
  exports2.DAEMONSET_INIT_VALUE = DAEMONSET_INIT_VALUE;
19389
19391
  exports2.DEPLOYMENT_INIT_VALUE = DEPLOYMENT_INIT_VALUE;
19390
19392
  exports2.DaemonSetModel = DaemonSetModel;
package/lib/src/App.js CHANGED
@@ -21,6 +21,8 @@ import { ServicesConfig } from './pages/services';
21
21
  import { StatefulSetShow, StatefulSetList, StatefulSetForm } from './pages/statefulsets';
22
22
  import { ProviderPlugins } from './plugins';
23
23
  import { RESOURCE_GROUP, FormType } from './types';
24
+ import * as resources from './locales';
25
+ console.log('resources', resources);
24
26
  function App() {
25
27
  const histroy = createBrowserHistory();
26
28
  const resourcesConfig = useMemo(() => {
package/lib/src/i18n.js CHANGED
@@ -1,11 +1,7 @@
1
1
  import i18n from 'i18next';
2
2
  import { initReactI18next } from 'react-i18next';
3
- import EN from 'src/locales/en-US';
4
- import ZH from 'src/locales/zh-CN';
5
- export const resources = {
6
- 'en-US': EN,
7
- 'zh-CN': ZH,
8
- };
3
+ import { D2Locales } from 'src/locales';
4
+ export const resources = D2Locales;
9
5
  i18n.use(initReactI18next).init({
10
6
  supportedLngs: ['en-US', 'zh-CN'],
11
7
  resources,
@@ -1,4 +1,5 @@
1
1
  export declare const dovetailRefineI18n: import("i18next").i18n;
2
+ export { D2Locales } from './locales';
2
3
  export * from './providers';
3
4
  export * from './hooks';
4
5
  export * from './components';
package/lib/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import i18n from './i18n';
2
2
  export const dovetailRefineI18n = i18n;
3
+ export { D2Locales } from './locales';
3
4
  export * from './providers';
4
5
  export * from './hooks';
5
6
  export * from './components';
@@ -1,2 +1,115 @@
1
- import './en-US';
2
- import './zh-CN';
1
+ export declare const D2Locales: {
2
+ 'en-US': {
3
+ dovetail: {
4
+ copy: string;
5
+ reset_arguments: string;
6
+ view_changes: string;
7
+ back_to_edit: string;
8
+ configure_file: string;
9
+ yaml_format_wrong: string;
10
+ yaml_value_wrong: string;
11
+ edit_yaml: string;
12
+ copied: string;
13
+ already_reset: string;
14
+ fetch_schema_fail: string;
15
+ obtain_data_error: string;
16
+ retry: string;
17
+ create_resource: string;
18
+ edit_resource: string;
19
+ status: string;
20
+ };
21
+ };
22
+ 'zh-CN': {
23
+ dovetail: {
24
+ copy: string;
25
+ reset_arguments: string;
26
+ view_changes: string;
27
+ back_to_edit: string;
28
+ configure_file: string;
29
+ yaml_format_wrong: string;
30
+ yaml_value_wrong: string;
31
+ edit_yaml: string;
32
+ copied: string;
33
+ already_reset: string;
34
+ cancel: string;
35
+ delete: string;
36
+ create: string;
37
+ confirm_delete_text: string;
38
+ edit: string;
39
+ namespace: string;
40
+ name: string;
41
+ state: string;
42
+ status: string;
43
+ phase: string;
44
+ image: string;
45
+ replicas: string;
46
+ created_time: string;
47
+ label: string;
48
+ annotation: string;
49
+ type: string;
50
+ event: string;
51
+ reason: string;
52
+ object: string;
53
+ note: string;
54
+ condition: string;
55
+ download_yaml: string;
56
+ detail: string;
57
+ node_name: string;
58
+ restarts: string;
59
+ updated_time: string;
60
+ message: string;
61
+ save: string;
62
+ more: string;
63
+ workload: string;
64
+ all_namespaces: string;
65
+ empty: string;
66
+ schedule: string;
67
+ lastScheduleTime: string;
68
+ duration: string;
69
+ completions: string;
70
+ started: string;
71
+ init_container: string;
72
+ container: string;
73
+ redeploy: string;
74
+ data: string;
75
+ suspend: string;
76
+ resume: string;
77
+ cluster: string;
78
+ storage: string;
79
+ network: string;
80
+ clusterIp: string;
81
+ sessionAffinity: string;
82
+ log: string;
83
+ select_container: string;
84
+ wrap: string;
85
+ resume_log: string;
86
+ log_new_lines: string;
87
+ fetch_schema_fail: string;
88
+ obtain_data_error: string;
89
+ retry: string;
90
+ ready: string;
91
+ updating: string;
92
+ completed: string;
93
+ failed: string;
94
+ suspended: string;
95
+ running: string;
96
+ terminating: string;
97
+ succeeded: string;
98
+ unknown: string;
99
+ pending: string;
100
+ waiting: string;
101
+ create_resource: string;
102
+ edit_resource: string;
103
+ sec: string;
104
+ min: string;
105
+ hr: string;
106
+ day: string;
107
+ expand: string;
108
+ fold: string;
109
+ rule: string;
110
+ default_backend: string;
111
+ ingress_rule_type: string;
112
+ port: string;
113
+ };
114
+ };
115
+ };
@@ -1,2 +1,6 @@
1
- import './en-US';
2
- import './zh-CN';
1
+ import D2LocalesEN from './en-US';
2
+ import D2LocalesZH from './zh-CN';
3
+ export const D2Locales = {
4
+ 'en-US': D2LocalesEN,
5
+ 'zh-CN': D2LocalesZH,
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",