@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.
- package/dist/{MonacoYamlDiffEditor-7505595f.js → MonacoYamlDiffEditor-b459d49b.js} +1 -1
- package/dist/{index-d02782c8.js → index-432360ef.js} +106 -104
- package/dist/refine.js +100 -99
- package/dist/refine.umd.cjs +7 -5
- package/lib/src/App.js +2 -0
- package/lib/src/i18n.js +2 -6
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -0
- package/lib/src/locales/index.d.ts +115 -2
- package/lib/src/locales/index.js +6 -2
- package/package.json +1 -1
|
@@ -337,7 +337,7 @@ const dovetail$1 = {
|
|
|
337
337
|
edit_resource: edit_resource$1,
|
|
338
338
|
status: status$1
|
|
339
339
|
};
|
|
340
|
-
const
|
|
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
|
|
522
|
+
const D2LocalesZH = {
|
|
523
523
|
dovetail
|
|
524
524
|
};
|
|
525
|
-
const
|
|
526
|
-
"en-US":
|
|
527
|
-
"zh-CN":
|
|
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-
|
|
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
|
-
|
|
19327
|
+
YamlEditorComponent as $,
|
|
19327
19328
|
AgeColumnRenderer as A,
|
|
19328
19329
|
Breadcrumb as B,
|
|
19329
19330
|
CommonSorter as C,
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
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
|
-
|
|
19337
|
+
ResourceList as J,
|
|
19337
19338
|
KeyValueListWidget as K,
|
|
19338
|
-
|
|
19339
|
+
ResourceShow as L,
|
|
19339
19340
|
MetadataForm as M,
|
|
19340
19341
|
NameColumnRenderer as N,
|
|
19341
|
-
|
|
19342
|
+
ResourceForm as O,
|
|
19342
19343
|
PodWorkloadColumnRenderer as P,
|
|
19343
|
-
|
|
19344
|
+
ResourceCRUD as Q,
|
|
19344
19345
|
ReplicasColumnRenderer as R,
|
|
19345
19346
|
StateDisplayColumnRenderer as S,
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19347
|
+
WorkloadPodsTable as T,
|
|
19348
|
+
CronJobDropdown as U,
|
|
19349
|
+
ResourceUsageBar as V,
|
|
19349
19350
|
WorkloadImageColumnRenderer as W,
|
|
19350
|
-
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19351
|
+
WorkloadReplicas as X,
|
|
19352
|
+
CronjobJobsTable as Y,
|
|
19353
|
+
KeyValue as Z,
|
|
19354
|
+
Separator as _,
|
|
19354
19355
|
useDeleteModal as a,
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
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
|
-
|
|
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
|
-
|
|
19427
|
-
|
|
19428
|
+
DurationColumnRenderer as h,
|
|
19429
|
+
ServiceTypeColumnRenderer as i,
|
|
19428
19430
|
jsxRuntimeExports as j,
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
|
|
19435
|
-
|
|
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
|
-
|
|
19438
|
-
|
|
19439
|
+
dnsSubDomainRules as s,
|
|
19440
|
+
rfc1123LabelRules as t,
|
|
19439
19441
|
useSchema as u,
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
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 {
|
|
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
|
-
|
|
18
|
+
ar as ALL_NS,
|
|
19
19
|
A as AgeColumnRenderer,
|
|
20
|
-
|
|
20
|
+
ay as BASE_INIT_VALUE,
|
|
21
21
|
B as Breadcrumb,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
a1 as Layout,
|
|
65
|
+
aj as ListPage,
|
|
66
|
+
am as Menu,
|
|
66
67
|
M as MetadataForm,
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
aH as NETWORK_POLICY_INIT_VALUE,
|
|
69
|
+
aq as NS_STORE_KEY,
|
|
69
70
|
N as NameColumnRenderer,
|
|
70
|
-
|
|
71
|
+
q as NameInputWidget,
|
|
71
72
|
b as NameSpaceColumnRenderer,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
w as NamespaceSelectWidget,
|
|
74
|
+
at as NamespacesFilter,
|
|
75
|
+
aR as NetworkPolicyModel,
|
|
76
|
+
ax as NetworkPolicyRulesTable,
|
|
76
77
|
e as NodeNameColumnRenderer,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
aT as WorkloadModel,
|
|
119
|
+
T as WorkloadPodsTable,
|
|
120
|
+
X as WorkloadReplicas,
|
|
120
121
|
c as WorkloadRestartsColumnRenderer,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
aJ as WorkloadState,
|
|
123
|
+
$ as YamlEditorComponent,
|
|
124
|
+
s as dnsSubDomainRules,
|
|
124
125
|
d as dovetailRefineI18n,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
x as namespaceRules,
|
|
127
|
+
v as rfc1035LabelRules,
|
|
128
|
+
t as rfc1123LabelRules,
|
|
128
129
|
r as routerProvider,
|
|
129
130
|
a as useDeleteModal,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
};
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -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
|
|
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
|
|
528
|
+
const D2LocalesZH = {
|
|
529
529
|
dovetail
|
|
530
530
|
};
|
|
531
|
-
const
|
|
532
|
-
"en-US":
|
|
533
|
-
"zh-CN":
|
|
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
|
|
4
|
-
|
|
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,
|
package/lib/src/index.d.ts
CHANGED
package/lib/src/index.js
CHANGED
|
@@ -1,2 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
};
|
package/lib/src/locales/index.js
CHANGED