@lvce-editor/extension-detail-view 5.2.0 → 5.3.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.
|
@@ -61,6 +61,7 @@ const SetColorTheme$1 = 'Set Color Theme';
|
|
|
61
61
|
const Settings$1 = 'Settings';
|
|
62
62
|
const Size = 'Size';
|
|
63
63
|
const Snippets = 'Snippets';
|
|
64
|
+
const Status = 'Status';
|
|
64
65
|
const StringMustNotBeEmpty = 'String must not be empty';
|
|
65
66
|
const Theme$1 = 'Theme';
|
|
66
67
|
const Uninstall$1 = 'Uninstall';
|
|
@@ -122,6 +123,9 @@ const fileMatch = () => {
|
|
|
122
123
|
const schema = () => {
|
|
123
124
|
return i18nString(Schema);
|
|
124
125
|
};
|
|
126
|
+
const status = () => {
|
|
127
|
+
return i18nString(Status);
|
|
128
|
+
};
|
|
125
129
|
const setColorTheme$3 = () => {
|
|
126
130
|
return i18nString(SetColorTheme$1);
|
|
127
131
|
};
|
|
@@ -2585,10 +2589,11 @@ const RendererWorker = {
|
|
|
2585
2589
|
writeClipBoardText: writeClipBoardText$1
|
|
2586
2590
|
};
|
|
2587
2591
|
|
|
2592
|
+
/* eslint-disable unicorn/prefer-export-from */
|
|
2593
|
+
|
|
2588
2594
|
const {
|
|
2589
2595
|
set: set$5,
|
|
2590
|
-
getRuntimeStatus: getRuntimeStatus$1
|
|
2591
|
-
} = ExtensionHost;
|
|
2596
|
+
getRuntimeStatus: getRuntimeStatus$1} = ExtensionHost;
|
|
2592
2597
|
|
|
2593
2598
|
const getRuntimeStatus = async extensionId => {
|
|
2594
2599
|
// @ts-ignore
|
|
@@ -2680,11 +2685,10 @@ const value = {
|
|
|
2680
2685
|
className: 'RuntimeStatusDefinitionListValue',
|
|
2681
2686
|
childCount: 1
|
|
2682
2687
|
};
|
|
2683
|
-
const getStatusVirtualDom = status => {
|
|
2684
|
-
const
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
value, text(`${statusString}`)];
|
|
2688
|
+
const getStatusVirtualDom = status$1 => {
|
|
2689
|
+
const statusKey = status();
|
|
2690
|
+
const statusValue = getStatusMessage(status$1);
|
|
2691
|
+
return [key, text(`${statusKey}: `), value, text(`${statusValue}`)];
|
|
2688
2692
|
};
|
|
2689
2693
|
|
|
2690
2694
|
const getChildCount$1 = (status, activationTime, importTime) => {
|
|
@@ -4915,8 +4919,19 @@ const resourceNode = {
|
|
|
4915
4919
|
};
|
|
4916
4920
|
const getResourceVirtualDom = resource => {
|
|
4917
4921
|
const {
|
|
4918
|
-
label
|
|
4922
|
+
label,
|
|
4923
|
+
url
|
|
4919
4924
|
} = resource;
|
|
4925
|
+
if (url && url !== '#') {
|
|
4926
|
+
return [{
|
|
4927
|
+
type: A,
|
|
4928
|
+
className: Resource,
|
|
4929
|
+
childCount: 1,
|
|
4930
|
+
target: '_blank',
|
|
4931
|
+
rel: 'noopener noreferrer',
|
|
4932
|
+
href: url
|
|
4933
|
+
}, text(label)];
|
|
4934
|
+
}
|
|
4920
4935
|
return [resourceNode, text(label)];
|
|
4921
4936
|
};
|
|
4922
4937
|
|