@module-federation/devtools 0.22.1 → 0.23.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/dist/es/App.css +6 -5
- package/dist/es/App.js +191 -59
- package/dist/es/App.module.js +1 -1
- package/dist/es/App_module.css +38 -36
- package/dist/es/component/DependencyGraph/index.js +10 -11
- package/dist/es/component/DependencyGraph/index_module.css +20 -17
- package/dist/es/component/DependencyGraphItem/index.js +5 -3
- package/dist/es/component/DependencyGraphItem/index_module.css +7 -7
- package/dist/es/component/Form/index.js +24 -31
- package/dist/es/component/Form/index.module.js +1 -1
- package/dist/es/component/Form/index_module.css +22 -25
- package/dist/es/component/LanguageSwitch.js +50 -0
- package/dist/es/component/Layout/index.js +6 -10
- package/dist/es/component/Layout/index_module.css +7 -7
- package/dist/es/component/ModuleInfo/index.js +65 -41
- package/dist/es/component/ModuleInfo/index_module.css +12 -11
- package/dist/es/component/SharedDepsExplorer/FocusResultDisplay.js +5 -3
- package/dist/es/component/SharedDepsExplorer/FocusResultDisplay_module.css +5 -5
- package/dist/es/component/SharedDepsExplorer/index.js +64 -75
- package/dist/es/component/SharedDepsExplorer/index_module.css +12 -2
- package/dist/es/component/ThemeToggle.js +19 -0
- package/dist/es/component/ThemeToggle.module.js +5 -0
- package/dist/es/component/ThemeToggle_module.css +12 -0
- package/dist/es/hooks/useDevtoolsTheme.js +77 -0
- package/dist/es/i18n/index.js +506 -0
- package/dist/lib/App.css +6 -5
- package/dist/lib/App.js +189 -59
- package/dist/lib/App.module.js +1 -1
- package/dist/lib/App_module.css +38 -36
- package/dist/lib/component/DependencyGraph/index.js +10 -11
- package/dist/lib/component/DependencyGraph/index_module.css +20 -17
- package/dist/lib/component/DependencyGraphItem/index.js +5 -3
- package/dist/lib/component/DependencyGraphItem/index_module.css +7 -7
- package/dist/lib/component/Form/index.js +24 -31
- package/dist/lib/component/Form/index.module.js +1 -1
- package/dist/lib/component/Form/index_module.css +22 -25
- package/dist/lib/component/LanguageSwitch.js +80 -0
- package/dist/lib/component/Layout/index.js +6 -10
- package/dist/lib/component/Layout/index_module.css +7 -7
- package/dist/lib/component/ModuleInfo/index.js +65 -41
- package/dist/lib/component/ModuleInfo/index_module.css +12 -11
- package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay.js +5 -3
- package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay_module.css +5 -5
- package/dist/lib/component/SharedDepsExplorer/index.js +64 -75
- package/dist/lib/component/SharedDepsExplorer/index_module.css +12 -2
- package/dist/lib/component/ThemeToggle.js +49 -0
- package/dist/lib/component/ThemeToggle.module.js +25 -0
- package/dist/lib/component/ThemeToggle_module.css +12 -0
- package/dist/lib/hooks/useDevtoolsTheme.js +101 -0
- package/dist/lib/i18n/index.js +540 -0
- package/dist/types/src/component/LanguageSwitch.d.ts +2 -0
- package/dist/types/src/component/ThemeToggle.d.ts +8 -0
- package/dist/types/src/hooks/useDevtoolsTheme.d.ts +2 -0
- package/dist/types/src/i18n/index.d.ts +5 -0
- package/package.json +10 -8
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
.summaryTitle_084ab {
|
|
24
24
|
font-size: 16px;
|
|
25
25
|
font-weight: 600;
|
|
26
|
-
color: #1f2937;
|
|
26
|
+
color: var(--color-text-1, #1f2937);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.summaryHint_084ab {
|
|
30
30
|
font-size: 12px;
|
|
31
|
-
color: #4b5563;
|
|
31
|
+
color: var(--color-text-2, #4b5563);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.chipGroup_084ab {
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
padding: 6px 10px;
|
|
45
45
|
border-radius: 12px;
|
|
46
46
|
border: 1px solid rgba(228, 228, 231, 0.5);
|
|
47
|
-
background: rgba(255, 255, 255, 0.9);
|
|
47
|
+
background: var(--color-bg-1, rgba(255, 255, 255, 0.9));
|
|
48
48
|
font-size: 12px;
|
|
49
|
-
color: #1f2937;
|
|
49
|
+
color: var(--color-text-1, #1f2937);
|
|
50
50
|
letter-spacing: 0.02em;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.chipPlaceholder_084ab {
|
|
54
54
|
border-style: dashed;
|
|
55
|
-
color: #4b5563;
|
|
56
|
-
background: rgba(255, 255, 255, 0.9);
|
|
55
|
+
color: var(--color-text-2, #4b5563);
|
|
56
|
+
background: var(--color-bg-1, rgba(255, 255, 255, 0.9));
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.moreChip_084ab {
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
.formSection_084ab {
|
|
65
65
|
padding: 22px 24px;
|
|
66
66
|
border: 1px solid rgba(228, 228, 231, 0.5);
|
|
67
|
-
background: rgba(255, 255, 255, 0.9);
|
|
67
|
+
background: var(--color-bg-1, rgba(255, 255, 255, 0.9));
|
|
68
68
|
}
|
|
@@ -34,6 +34,7 @@ module.exports = __toCommonJS(ModuleInfo_exports);
|
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react = require("react");
|
|
36
36
|
var import_web_react = require("@arco-design/web-react");
|
|
37
|
+
var import_react_i18next = require("react-i18next");
|
|
37
38
|
var import_index = __toESM(require("./index.module"));
|
|
38
39
|
const renderValue = (value) => {
|
|
39
40
|
if (value === void 0 || value === null) {
|
|
@@ -76,6 +77,7 @@ const renderValue = (value) => {
|
|
|
76
77
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_index.default.valueText, children: String(value) });
|
|
77
78
|
};
|
|
78
79
|
const RemotesTable = ({ data }) => {
|
|
80
|
+
const { t } = (0, import_react_i18next.useTranslation)();
|
|
79
81
|
if (!data || Object.keys(data).length === 0) {
|
|
80
82
|
return null;
|
|
81
83
|
}
|
|
@@ -87,10 +89,13 @@ const RemotesTable = ({ data }) => {
|
|
|
87
89
|
scmVersion: val.scmVersion || val.buildVersion || "-"
|
|
88
90
|
}));
|
|
89
91
|
const columns = [
|
|
90
|
-
{ title: "
|
|
91
|
-
{ title: "
|
|
92
|
-
{ title: "
|
|
93
|
-
{
|
|
92
|
+
{ title: t("moduleInfo.tables.remotes.name"), dataIndex: "name" },
|
|
93
|
+
{ title: t("moduleInfo.tables.remotes.type"), dataIndex: "type" },
|
|
94
|
+
{ title: t("moduleInfo.tables.remotes.version"), dataIndex: "version" },
|
|
95
|
+
{
|
|
96
|
+
title: t("moduleInfo.tables.remotes.scmVersion"),
|
|
97
|
+
dataIndex: "scmVersion"
|
|
98
|
+
}
|
|
94
99
|
];
|
|
95
100
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
101
|
import_web_react.Table,
|
|
@@ -105,6 +110,7 @@ const RemotesTable = ({ data }) => {
|
|
|
105
110
|
);
|
|
106
111
|
};
|
|
107
112
|
const ExposesTable = ({ data }) => {
|
|
113
|
+
const { t } = (0, import_react_i18next.useTranslation)();
|
|
108
114
|
if (!Array.isArray(data) || data.length === 0) {
|
|
109
115
|
return null;
|
|
110
116
|
}
|
|
@@ -112,12 +118,15 @@ const ExposesTable = ({ data }) => {
|
|
|
112
118
|
key: index,
|
|
113
119
|
name: item.name || item.moduleName || item.expose || "-",
|
|
114
120
|
path: item.path || item.file || "-",
|
|
115
|
-
shared: Array.isArray(item.requires) ? item.requires.join(", ") : item.requires || "
|
|
121
|
+
shared: Array.isArray(item.requires) ? item.requires.join(", ") : item.requires || t("moduleInfo.tables.exposes.noShared")
|
|
116
122
|
}));
|
|
117
123
|
const columns = [
|
|
118
|
-
{ title: "
|
|
119
|
-
{ title: "
|
|
120
|
-
{
|
|
124
|
+
{ title: t("moduleInfo.tables.exposes.moduleName"), dataIndex: "name" },
|
|
125
|
+
{ title: t("moduleInfo.tables.exposes.filePath"), dataIndex: "path" },
|
|
126
|
+
{
|
|
127
|
+
title: t("moduleInfo.tables.exposes.sharedDependencies"),
|
|
128
|
+
dataIndex: "shared"
|
|
129
|
+
}
|
|
121
130
|
];
|
|
122
131
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
132
|
import_web_react.Table,
|
|
@@ -132,6 +141,7 @@ const ExposesTable = ({ data }) => {
|
|
|
132
141
|
);
|
|
133
142
|
};
|
|
134
143
|
const ConsumersTable = ({ data }) => {
|
|
144
|
+
const { t } = (0, import_react_i18next.useTranslation)();
|
|
135
145
|
if (!Array.isArray(data) || data.length === 0) {
|
|
136
146
|
return null;
|
|
137
147
|
}
|
|
@@ -145,12 +155,15 @@ const ConsumersTable = ({ data }) => {
|
|
|
145
155
|
time: item.time || "-"
|
|
146
156
|
}));
|
|
147
157
|
const columns = [
|
|
148
|
-
{ title: "
|
|
149
|
-
{ title: "
|
|
150
|
-
{ title: "
|
|
151
|
-
{
|
|
152
|
-
|
|
153
|
-
|
|
158
|
+
{ title: t("moduleInfo.tables.consumers.name"), dataIndex: "name" },
|
|
159
|
+
{ title: t("moduleInfo.tables.consumers.type"), dataIndex: "type" },
|
|
160
|
+
{ title: t("moduleInfo.tables.consumers.version"), dataIndex: "version" },
|
|
161
|
+
{
|
|
162
|
+
title: t("moduleInfo.tables.consumers.moduleName"),
|
|
163
|
+
dataIndex: "moduleName"
|
|
164
|
+
},
|
|
165
|
+
{ title: t("moduleInfo.tables.consumers.usedIn"), dataIndex: "usedIn" },
|
|
166
|
+
{ title: t("moduleInfo.tables.consumers.time"), dataIndex: "time" }
|
|
154
167
|
];
|
|
155
168
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
169
|
import_web_react.Table,
|
|
@@ -167,20 +180,30 @@ const ConsumersTable = ({ data }) => {
|
|
|
167
180
|
const SharedTable = ({
|
|
168
181
|
data
|
|
169
182
|
}) => {
|
|
183
|
+
const { t } = (0, import_react_i18next.useTranslation)();
|
|
170
184
|
if (!data || Array.isArray(data) && data.length === 0) {
|
|
171
185
|
return null;
|
|
172
186
|
}
|
|
173
|
-
const dataSource = Object.entries(data).map(([key, val]) =>
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
187
|
+
const dataSource = Object.entries(data).map(([key, val]) => {
|
|
188
|
+
var _a, _b, _c;
|
|
189
|
+
return {
|
|
190
|
+
key,
|
|
191
|
+
name: val.sharedName,
|
|
192
|
+
version: val.version || "-",
|
|
193
|
+
requiredVersion: (_a = val.shareConfig) == null ? void 0 : _a.requiredVersion,
|
|
194
|
+
singleton: (_b = val.shareConfig) == null ? void 0 : _b.singleton,
|
|
195
|
+
eager: (_c = val.shareConfig) == null ? void 0 : _c.eager
|
|
196
|
+
};
|
|
197
|
+
});
|
|
178
198
|
const columns = [
|
|
179
|
-
{ title: "
|
|
180
|
-
{ title: "
|
|
181
|
-
{
|
|
182
|
-
|
|
183
|
-
|
|
199
|
+
{ title: t("moduleInfo.tables.shared.dependencyName"), dataIndex: "name" },
|
|
200
|
+
{ title: t("moduleInfo.tables.shared.version"), dataIndex: "version" },
|
|
201
|
+
{
|
|
202
|
+
title: t("moduleInfo.tables.shared.requiredVersion"),
|
|
203
|
+
dataIndex: "requiredVersion"
|
|
204
|
+
},
|
|
205
|
+
{ title: t("moduleInfo.tables.shared.singleton"), dataIndex: "singleton" },
|
|
206
|
+
{ title: t("moduleInfo.tables.shared.eager"), dataIndex: "eager" }
|
|
184
207
|
];
|
|
185
208
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
186
209
|
import_web_react.Table,
|
|
@@ -202,49 +225,50 @@ const extractDetailSections = (moduleSnapshot) => {
|
|
|
202
225
|
const remoteEntry = moduleSnapshot.remoteEntry || moduleSnapshot.entry || moduleSnapshot.version;
|
|
203
226
|
if (remoteEntry) {
|
|
204
227
|
sections.push({
|
|
205
|
-
|
|
228
|
+
key: "remoteEntry",
|
|
206
229
|
value: remoteEntry
|
|
207
230
|
});
|
|
208
231
|
}
|
|
209
232
|
if (moduleSnapshot.version) {
|
|
210
233
|
sections.push({
|
|
211
|
-
|
|
234
|
+
key: "version",
|
|
212
235
|
value: moduleSnapshot.version
|
|
213
236
|
});
|
|
214
237
|
}
|
|
215
238
|
if (moduleSnapshot.consumerList) {
|
|
216
239
|
sections.push({
|
|
217
|
-
|
|
240
|
+
key: "consumers",
|
|
218
241
|
value: moduleSnapshot.consumerList
|
|
219
242
|
});
|
|
220
243
|
}
|
|
221
244
|
if (moduleSnapshot.modules) {
|
|
222
245
|
sections.push({
|
|
223
|
-
|
|
246
|
+
key: "exposes",
|
|
224
247
|
value: moduleSnapshot.modules
|
|
225
248
|
});
|
|
226
249
|
}
|
|
227
250
|
if (moduleSnapshot.remotesInfo) {
|
|
228
251
|
sections.push({
|
|
229
|
-
|
|
252
|
+
key: "remotes",
|
|
230
253
|
value: moduleSnapshot.remotesInfo
|
|
231
254
|
});
|
|
232
255
|
}
|
|
233
256
|
if (moduleSnapshot.shared) {
|
|
234
257
|
sections.push({
|
|
235
|
-
|
|
258
|
+
key: "shared",
|
|
236
259
|
value: moduleSnapshot.shared
|
|
237
260
|
});
|
|
238
261
|
}
|
|
239
262
|
if (!sections.length) {
|
|
240
263
|
sections.push({
|
|
241
|
-
|
|
264
|
+
key: "snapshot",
|
|
242
265
|
value: moduleSnapshot
|
|
243
266
|
});
|
|
244
267
|
}
|
|
245
268
|
return sections;
|
|
246
269
|
};
|
|
247
270
|
const Home = (props) => {
|
|
271
|
+
const { t } = (0, import_react_i18next.useTranslation)();
|
|
248
272
|
const { moduleInfo, selectedModuleId, onSelectModule } = props;
|
|
249
273
|
const moduleEntries = (0, import_react.useMemo)(
|
|
250
274
|
() => Object.entries(moduleInfo || {}).filter(([key]) => key !== "extendInfos"),
|
|
@@ -262,21 +286,21 @@ const Home = (props) => {
|
|
|
262
286
|
[currentSnapshot]
|
|
263
287
|
);
|
|
264
288
|
if (!moduleEntries.length || !currentModuleId) {
|
|
265
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.emptyState, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Empty, { description: "
|
|
289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.emptyState, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Empty, { description: t("moduleInfo.empty.noModuleInfo") }) });
|
|
266
290
|
}
|
|
267
291
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_index.default.home, children: [
|
|
268
292
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
269
293
|
import_web_react.Select,
|
|
270
294
|
{
|
|
271
295
|
className: import_index.default.moduleSelect,
|
|
272
|
-
placeholder: "
|
|
296
|
+
placeholder: t("moduleInfo.selector.placeholder"),
|
|
273
297
|
style: { width: "100%" },
|
|
274
298
|
allowClear: true,
|
|
275
299
|
showSearch: true,
|
|
276
300
|
autoWidth: true,
|
|
277
301
|
onChange: onSelectModule,
|
|
278
302
|
children: moduleEntries.map(([moduleId, snapshot]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_web_react.Select.Option, { value: moduleId, children: [
|
|
279
|
-
snapshot && "remotesInfo" in snapshot && Object.keys(snapshot.remotesInfo).length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { color: "pinkpurple", children: "
|
|
303
|
+
snapshot && "remotesInfo" in snapshot && Object.keys(snapshot.remotesInfo).length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { color: "pinkpurple", children: t("moduleInfo.selector.consumerTag") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { color: "cyan", children: t("moduleInfo.selector.providerTag") }),
|
|
280
304
|
" ",
|
|
281
305
|
moduleId
|
|
282
306
|
] }, moduleId))
|
|
@@ -289,17 +313,17 @@ const Home = (props) => {
|
|
|
289
313
|
] }) }),
|
|
290
314
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailBody, children: detailSections.map((section) => {
|
|
291
315
|
let content;
|
|
292
|
-
switch (section.
|
|
293
|
-
case "
|
|
316
|
+
switch (section.key) {
|
|
317
|
+
case "remotes":
|
|
294
318
|
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RemotesTable, { data: section.value });
|
|
295
319
|
break;
|
|
296
|
-
case "
|
|
320
|
+
case "exposes":
|
|
297
321
|
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExposesTable, { data: section.value });
|
|
298
322
|
break;
|
|
299
|
-
case "
|
|
323
|
+
case "consumers":
|
|
300
324
|
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConsumersTable, { data: section.value });
|
|
301
325
|
break;
|
|
302
|
-
case "
|
|
326
|
+
case "shared":
|
|
303
327
|
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SharedTable, { data: section.value });
|
|
304
328
|
break;
|
|
305
329
|
default:
|
|
@@ -309,9 +333,9 @@ const Home = (props) => {
|
|
|
309
333
|
return null;
|
|
310
334
|
}
|
|
311
335
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_index.default.detailRow, children: [
|
|
312
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailLabel, children: section.
|
|
336
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailLabel, children: t(`moduleInfo.detail.${section.key}`) }),
|
|
313
337
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailValue, children: content })
|
|
314
|
-
] }, section.
|
|
338
|
+
] }, section.key);
|
|
315
339
|
}) })
|
|
316
340
|
] }) })
|
|
317
341
|
] });
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
max-width: 40%;
|
|
18
18
|
padding: 12px;
|
|
19
19
|
border-radius: 16px;
|
|
20
|
-
border: 1px solid rgba(96, 165, 250, 0.3);
|
|
21
|
-
background: rgba(255, 255, 255, 0.9);
|
|
20
|
+
border: 1px solid var(--color-border-1, rgba(96, 165, 250, 0.3));
|
|
21
|
+
background: var(--color-bg-2, rgba(255, 255, 255, 0.9));
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
gap: 8px;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
border-radius: 12px;
|
|
31
31
|
padding: 10px 12px;
|
|
32
32
|
background: rgba(243, 244, 246, 0.4);
|
|
33
|
-
color: #1f2937;
|
|
33
|
+
color: var(--color-text-1, #1f2937);
|
|
34
34
|
font-size: 13px;
|
|
35
35
|
text-align: left;
|
|
36
36
|
cursor: pointer;
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
min-height: 0;
|
|
63
63
|
padding: 16px 20px;
|
|
64
64
|
border-radius: 20px;
|
|
65
|
-
border: 1px solid rgba(228, 228, 231, 0.5);
|
|
66
|
-
background: rgba(255, 255, 255, 0.9);
|
|
65
|
+
border: 1px solid var(--color-border-2, rgba(228, 228, 231, 0.5));
|
|
66
|
+
background: var(--color-bg-1, rgba(255, 255, 255, 0.9));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.detailHeader_cde89 {
|
|
@@ -76,8 +76,9 @@
|
|
|
76
76
|
.detailTitle_cde89 {
|
|
77
77
|
font-size: 16px;
|
|
78
78
|
font-weight: 600;
|
|
79
|
-
color: #1f2937;
|
|
79
|
+
color: var(--color-text-1, #1f2937);
|
|
80
80
|
word-break: break-word;
|
|
81
|
+
margin-right: 10px;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
.detailBody_cde89 {
|
|
@@ -102,12 +103,12 @@
|
|
|
102
103
|
font-size: 12px;
|
|
103
104
|
letter-spacing: 0.08em;
|
|
104
105
|
text-transform: uppercase;
|
|
105
|
-
color: #4b5563;
|
|
106
|
+
color: var(--color-text-2, #4b5563);
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
.detailValue_cde89 {
|
|
109
110
|
font-size: 13px;
|
|
110
|
-
color: #1f2937;
|
|
111
|
+
color: var(--color-text-1, #1f2937);
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
.valueText_cde89 {
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
background: rgba(243, 244, 246, 0.4);
|
|
127
128
|
border: 1px solid rgba(96, 165, 250, 0.3);
|
|
128
129
|
font-size: 11px;
|
|
129
|
-
color: #1f2937;
|
|
130
|
+
color: var(--color-text-1, #1f2937);
|
|
130
131
|
max-width: 100%;
|
|
131
132
|
text-overflow: ellipsis;
|
|
132
133
|
overflow: hidden;
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
background: rgba(243, 244, 246, 0.4);
|
|
140
141
|
border: 1px solid rgba(96, 165, 250, 0.3);
|
|
141
142
|
font-size: 12px;
|
|
142
|
-
color: #1f2937;
|
|
143
|
+
color: var(--color-text-1, #1f2937);
|
|
143
144
|
overflow-x: auto;
|
|
144
145
|
}
|
|
145
146
|
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
justify-content: center;
|
|
151
152
|
border-radius: 18px;
|
|
152
153
|
border: 1px dashed rgba(96, 165, 250, 0.3);
|
|
153
|
-
background: rgba(255, 255, 255, 0.9);
|
|
154
|
+
background: var(--color-bg-2, rgba(255, 255, 255, 0.9));
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
@media (max-width: 960px) {
|
|
@@ -33,12 +33,14 @@ __export(FocusResultDisplay_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(FocusResultDisplay_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_web_react = require("@arco-design/web-react");
|
|
36
|
+
var import_react_i18next = require("react-i18next");
|
|
36
37
|
var import_FocusResultDisplay = __toESM(require("./FocusResultDisplay.module"));
|
|
37
38
|
const FocusResultDisplay = ({
|
|
38
39
|
focusResult,
|
|
39
40
|
hasData,
|
|
40
41
|
loadedStatusLabel
|
|
41
42
|
}) => {
|
|
43
|
+
const { t } = (0, import_react_i18next.useTranslation)();
|
|
42
44
|
if (focusResult) {
|
|
43
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_FocusResultDisplay.default.container, children: [
|
|
44
46
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_FocusResultDisplay.default.header, children: [
|
|
@@ -50,14 +52,14 @@ const FocusResultDisplay = ({
|
|
|
50
52
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { size: "small", className: "loaded-status-tag", children: loadedStatusLabel(focusResult.status) })
|
|
51
53
|
] }),
|
|
52
54
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_FocusResultDisplay.default.providers, children: [
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_FocusResultDisplay.default.label, children: "
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_FocusResultDisplay.default.label, children: t("sharedDeps.focusResult.providerLabel") }),
|
|
54
56
|
focusResult.providers.map((p) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_FocusResultDisplay.default.providerTag, children: p }, p))
|
|
55
57
|
] })
|
|
56
58
|
] });
|
|
57
59
|
}
|
|
58
60
|
if (hasData) {
|
|
59
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: "
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: t("sharedDeps.messages.noFocusMatch") });
|
|
60
62
|
}
|
|
61
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: "
|
|
63
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: t("sharedDeps.messages.noData") });
|
|
62
64
|
};
|
|
63
65
|
var FocusResultDisplay_default = FocusResultDisplay;
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
gap: 4px;
|
|
24
24
|
font-size: 11px;
|
|
25
|
-
color: #374151; /* text-zinc-700 */
|
|
25
|
+
color: var(--color-text-1, #374151); /* text-zinc-700 */
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.label_ee3c9 {
|
|
29
|
-
color: #71717a; /* text-zinc-500 */
|
|
29
|
+
color: var(--color-text-2, #71717a); /* text-zinc-500 */
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.providerTag_ee3c9 {
|
|
33
33
|
border-radius: 4px;
|
|
34
|
-
background-color:
|
|
34
|
+
background-color: var(--color-bg-1, #ffffff);
|
|
35
35
|
padding: 2px 6px;
|
|
36
36
|
font-weight: 500;
|
|
37
|
-
color: #27272a; /* text-zinc-800 */
|
|
37
|
+
color: var(--color-text-1, #27272a); /* text-zinc-800 */
|
|
38
38
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.emptyText_ee3c9 {
|
|
42
42
|
font-size: 11px;
|
|
43
|
-
color: #71717a; /* text-zinc-500 */
|
|
43
|
+
color: var(--color-text-2, #71717a); /* text-zinc-500 */
|
|
44
44
|
margin: 0;
|
|
45
45
|
}
|