@lvce-editor/extension-detail-view 5.10.0 → 5.11.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.
|
@@ -2656,7 +2656,7 @@ const getCacheInternal = async (cacheName, bucketName) => {
|
|
|
2656
2656
|
// @ts-ignore
|
|
2657
2657
|
const bucket = await navigator.storageBuckets.open(bucketName, {
|
|
2658
2658
|
expires: Date.now() + twoWeeks,
|
|
2659
|
-
quota:
|
|
2659
|
+
quota: 100 * 1024 * 1024 // 100MB
|
|
2660
2660
|
});
|
|
2661
2661
|
const cache = await bucket.caches.open(cacheName);
|
|
2662
2662
|
return cache;
|
|
@@ -4336,12 +4336,23 @@ const getRepositoryLink = extension => {
|
|
|
4336
4336
|
const validLink = ensureValidLink(raw);
|
|
4337
4337
|
return validLink;
|
|
4338
4338
|
};
|
|
4339
|
+
const getIssuesLink = extension => {
|
|
4340
|
+
const repositoryLink = getRepositoryLink(extension);
|
|
4341
|
+
if (!repositoryLink) {
|
|
4342
|
+
return '';
|
|
4343
|
+
}
|
|
4344
|
+
if (repositoryLink && repositoryLink.startsWith('https://github.com')) {
|
|
4345
|
+
return `${repositoryLink}/issues`;
|
|
4346
|
+
}
|
|
4347
|
+
return '';
|
|
4348
|
+
};
|
|
4339
4349
|
|
|
4340
4350
|
const getResources = (isBuiltin, extension) => {
|
|
4341
4351
|
if (isBuiltin) {
|
|
4342
4352
|
return [];
|
|
4343
4353
|
}
|
|
4344
4354
|
const repositoryLink = getRepositoryLink(extension);
|
|
4355
|
+
const issueLink = getIssuesLink(extension);
|
|
4345
4356
|
const licenseLink = getLicenseLink();
|
|
4346
4357
|
// TODO
|
|
4347
4358
|
return [{
|
|
@@ -4351,7 +4362,7 @@ const getResources = (isBuiltin, extension) => {
|
|
|
4351
4362
|
}, {
|
|
4352
4363
|
icon: 'LinkExternal',
|
|
4353
4364
|
label: issues(),
|
|
4354
|
-
url:
|
|
4365
|
+
url: issueLink
|
|
4355
4366
|
}, {
|
|
4356
4367
|
icon: 'Repo',
|
|
4357
4368
|
label: repository(),
|
|
@@ -4774,7 +4785,7 @@ const getAdditionalDetailsVirtualDom = (showAdditionalDetails, firstHeading, ent
|
|
|
4774
4785
|
}, {
|
|
4775
4786
|
childCount: 4,
|
|
4776
4787
|
className: AdditionalDetails,
|
|
4777
|
-
|
|
4788
|
+
onContextMenu: HandleAdditionalDetailContextMenu,
|
|
4778
4789
|
tabIndex: 0,
|
|
4779
4790
|
type: Div
|
|
4780
4791
|
}, ...getAdditionalDetailsEntryVirtualDom(firstHeading, entries, getMoreInfoVirtualDom), ...getAdditionalDetailsEntryVirtualDom(secondHeading, secondEntries, getMoreInfoVirtualDom), ...getAdditionalDetailsEntryVirtualDom(thirdHeading, categories, getCategoriesDom), ...getAdditionalDetailsEntryVirtualDom(fourthHeading, resources, getResourcesVirtualDom)];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/extension-detail-view",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"description": "Extension Detail View Worker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/extensionDetailViewWorkerMain.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lvce-editor/constants": "^1.
|
|
14
|
+
"@lvce-editor/constants": "^1.41.0"
|
|
15
15
|
}
|
|
16
16
|
}
|