@lvce-editor/extension-detail-view 3.55.0 → 3.56.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.
|
@@ -46,6 +46,19 @@ const Settings$1 = 'Settings';
|
|
|
46
46
|
const Theme$1 = 'Theme';
|
|
47
47
|
const Uninstall$1 = 'Uninstall';
|
|
48
48
|
const WebViews$1 = 'WebViews';
|
|
49
|
+
const ImportTime = 'Import Time: ';
|
|
50
|
+
const ActivationTime = 'Activation Time: ';
|
|
51
|
+
const UnsupportedFeature = 'Unsupported Feature';
|
|
52
|
+
const SelectedFeatureUnknownOrUnsupported = 'Selected feature is unknown or unsupported';
|
|
53
|
+
const Identifier = 'Identifier';
|
|
54
|
+
const Version = 'Version';
|
|
55
|
+
const LastUpdated = 'Last Updated';
|
|
56
|
+
const Size = 'Size';
|
|
57
|
+
const Published = 'Published';
|
|
58
|
+
const LastReleased = 'Last Released';
|
|
59
|
+
const Issues = 'Issues';
|
|
60
|
+
const Repository = 'Repository';
|
|
61
|
+
const License = 'License';
|
|
49
62
|
|
|
50
63
|
const installation = () => {
|
|
51
64
|
return i18nString(Installation);
|
|
@@ -155,6 +168,45 @@ const noReadmeFound = () => {
|
|
|
155
168
|
const emptyCommandsArray = () => {
|
|
156
169
|
return i18nString(EmptyCommandsArray);
|
|
157
170
|
};
|
|
171
|
+
const importTime = () => {
|
|
172
|
+
return i18nString(ImportTime);
|
|
173
|
+
};
|
|
174
|
+
const activationTime = () => {
|
|
175
|
+
return i18nString(ActivationTime);
|
|
176
|
+
};
|
|
177
|
+
const unsupportedFeature = () => {
|
|
178
|
+
return i18nString(UnsupportedFeature);
|
|
179
|
+
};
|
|
180
|
+
const selectedFeatureUnknownOrUnsupported = () => {
|
|
181
|
+
return i18nString(SelectedFeatureUnknownOrUnsupported);
|
|
182
|
+
};
|
|
183
|
+
const identifier = () => {
|
|
184
|
+
return i18nString(Identifier);
|
|
185
|
+
};
|
|
186
|
+
const version = () => {
|
|
187
|
+
return i18nString(Version);
|
|
188
|
+
};
|
|
189
|
+
const lastUpdated = () => {
|
|
190
|
+
return i18nString(LastUpdated);
|
|
191
|
+
};
|
|
192
|
+
const size = () => {
|
|
193
|
+
return i18nString(Size);
|
|
194
|
+
};
|
|
195
|
+
const published = () => {
|
|
196
|
+
return i18nString(Published);
|
|
197
|
+
};
|
|
198
|
+
const lastReleased = () => {
|
|
199
|
+
return i18nString(LastReleased);
|
|
200
|
+
};
|
|
201
|
+
const issues = () => {
|
|
202
|
+
return i18nString(Issues);
|
|
203
|
+
};
|
|
204
|
+
const repository = () => {
|
|
205
|
+
return i18nString(Repository);
|
|
206
|
+
};
|
|
207
|
+
const license = () => {
|
|
208
|
+
return i18nString(License);
|
|
209
|
+
};
|
|
158
210
|
|
|
159
211
|
const getActivationEventsDetails = async extension => {
|
|
160
212
|
const activationEvents = extension.activation || [];
|
|
@@ -565,10 +617,10 @@ const getFeatureUnsupportedVirtualDom = state => {
|
|
|
565
617
|
}, {
|
|
566
618
|
type: VirtualDomElements.H1,
|
|
567
619
|
childCount: 1
|
|
568
|
-
}, text(
|
|
620
|
+
}, text(unsupportedFeature()), {
|
|
569
621
|
type: VirtualDomElements.P,
|
|
570
622
|
childCount: 1
|
|
571
|
-
}, text(
|
|
623
|
+
}, text(selectedFeatureUnknownOrUnsupported())];
|
|
572
624
|
};
|
|
573
625
|
|
|
574
626
|
const features = Object.create(null);
|
|
@@ -642,9 +694,13 @@ const MarkdownWorker$1 = 300;
|
|
|
642
694
|
const {
|
|
643
695
|
invoke: invoke$9,
|
|
644
696
|
set: set$9} = create$7(ExtensionHostWorker);
|
|
697
|
+
const getRuntimeStatus$2 = async extensionId => {
|
|
698
|
+
// @ts-ignore
|
|
699
|
+
return invoke$9('ExtensionHost.getRuntimeStatus', extensionId);
|
|
700
|
+
};
|
|
645
701
|
const ExtensionHost = {
|
|
646
702
|
__proto__: null,
|
|
647
|
-
|
|
703
|
+
getRuntimeStatus: getRuntimeStatus$2,
|
|
648
704
|
set: set$9
|
|
649
705
|
};
|
|
650
706
|
const {
|
|
@@ -763,13 +819,12 @@ const RendererWorker = {
|
|
|
763
819
|
|
|
764
820
|
const {
|
|
765
821
|
set: set$5,
|
|
766
|
-
|
|
822
|
+
getRuntimeStatus: getRuntimeStatus$1
|
|
767
823
|
} = ExtensionHost;
|
|
768
824
|
|
|
769
825
|
const getRuntimeStatus = async extensionId => {
|
|
770
|
-
// TODO simplify api
|
|
771
826
|
// @ts-ignore
|
|
772
|
-
const status = await
|
|
827
|
+
const status = await getRuntimeStatus$1(extensionId);
|
|
773
828
|
// @ts-ignore
|
|
774
829
|
return status;
|
|
775
830
|
};
|
|
@@ -803,26 +858,22 @@ const formatTime = time => {
|
|
|
803
858
|
return time.toFixed(2) + 'ms';
|
|
804
859
|
};
|
|
805
860
|
|
|
806
|
-
const getActivationTimeVirtualDom = (importTime, activationTime) => {
|
|
807
|
-
if (!activationTime && !importTime) {
|
|
861
|
+
const getActivationTimeVirtualDom = (importTime$1, activationTime$1) => {
|
|
862
|
+
if (!activationTime$1 && !importTime$1) {
|
|
808
863
|
return [];
|
|
809
864
|
}
|
|
810
|
-
const formattedImportTime = formatTime(importTime);
|
|
811
|
-
const formattedTime = formatTime(activationTime);
|
|
865
|
+
const formattedImportTime = formatTime(importTime$1);
|
|
866
|
+
const formattedTime = formatTime(activationTime$1);
|
|
812
867
|
return [{
|
|
813
868
|
type: VirtualDomElements.Dt,
|
|
814
869
|
childCount: 1
|
|
815
|
-
}, text(
|
|
816
|
-
// i18n
|
|
817
|
-
{
|
|
870
|
+
}, text(importTime()), {
|
|
818
871
|
type: VirtualDomElements.Dd,
|
|
819
872
|
childCount: 1
|
|
820
873
|
}, text(formattedImportTime), {
|
|
821
874
|
type: VirtualDomElements.Dt,
|
|
822
875
|
childCount: 1
|
|
823
|
-
}, text(
|
|
824
|
-
// i18n
|
|
825
|
-
{
|
|
876
|
+
}, text(activationTime()), {
|
|
826
877
|
type: VirtualDomElements.Dd,
|
|
827
878
|
childCount: 1
|
|
828
879
|
}, text(formattedTime)];
|
|
@@ -3311,20 +3362,20 @@ const getFolderSize = async uri => {
|
|
|
3311
3362
|
|
|
3312
3363
|
const getInstallationEntries = (displaySize, extensionId, extensionVersion, extensionUri) => {
|
|
3313
3364
|
const entries = [{
|
|
3314
|
-
key:
|
|
3365
|
+
key: identifier(),
|
|
3315
3366
|
value: extensionId,
|
|
3316
3367
|
odd: true,
|
|
3317
3368
|
code: true
|
|
3318
3369
|
}, {
|
|
3319
|
-
key:
|
|
3370
|
+
key: version(),
|
|
3320
3371
|
value: extensionVersion,
|
|
3321
3372
|
code: true
|
|
3322
3373
|
}, {
|
|
3323
|
-
key:
|
|
3374
|
+
key: lastUpdated(),
|
|
3324
3375
|
value: 'n/a',
|
|
3325
3376
|
odd: true
|
|
3326
3377
|
}, {
|
|
3327
|
-
key:
|
|
3378
|
+
key: size(),
|
|
3328
3379
|
value: displaySize,
|
|
3329
3380
|
onClick: HandleClickSize,
|
|
3330
3381
|
title: extensionUri
|
|
@@ -3337,11 +3388,11 @@ const getMarketplaceEntries = isBuiltin => {
|
|
|
3337
3388
|
return [];
|
|
3338
3389
|
}
|
|
3339
3390
|
return [{
|
|
3340
|
-
key:
|
|
3391
|
+
key: published(),
|
|
3341
3392
|
value: 'n/a',
|
|
3342
3393
|
odd: true
|
|
3343
3394
|
}, {
|
|
3344
|
-
key:
|
|
3395
|
+
key: lastReleased(),
|
|
3345
3396
|
value: 'n/a'
|
|
3346
3397
|
}];
|
|
3347
3398
|
};
|
|
@@ -3352,16 +3403,16 @@ const getResources = isBuiltin => {
|
|
|
3352
3403
|
}
|
|
3353
3404
|
// TODO
|
|
3354
3405
|
return [{
|
|
3355
|
-
label:
|
|
3406
|
+
label: marketplace(),
|
|
3356
3407
|
url: '#'
|
|
3357
3408
|
}, {
|
|
3358
|
-
label:
|
|
3409
|
+
label: issues(),
|
|
3359
3410
|
url: '#'
|
|
3360
3411
|
}, {
|
|
3361
|
-
label:
|
|
3412
|
+
label: repository(),
|
|
3362
3413
|
url: '#'
|
|
3363
3414
|
}, {
|
|
3364
|
-
label:
|
|
3415
|
+
label: license(),
|
|
3365
3416
|
url: '#'
|
|
3366
3417
|
}];
|
|
3367
3418
|
};
|