@lvce-editor/extension-detail-view 3.27.0 → 3.28.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.
|
@@ -935,8 +935,6 @@ const terminate = () => {
|
|
|
935
935
|
globalThis.close();
|
|
936
936
|
};
|
|
937
937
|
|
|
938
|
-
const assetDir = '';
|
|
939
|
-
|
|
940
938
|
const {
|
|
941
939
|
get: get$1,
|
|
942
940
|
set: set$1,
|
|
@@ -944,7 +942,7 @@ const {
|
|
|
944
942
|
wrapCommand
|
|
945
943
|
} = create$2();
|
|
946
944
|
|
|
947
|
-
const create$1 = (uid, uri, x, y, width, height, platform, assetDir
|
|
945
|
+
const create$1 = (uid, uri, x, y, width, height, platform, assetDir) => {
|
|
948
946
|
const state = {
|
|
949
947
|
description: '',
|
|
950
948
|
iconSrc: '',
|
|
@@ -964,7 +962,7 @@ const create$1 = (uid, uri, x, y, width, height, platform, assetDir$1) => {
|
|
|
964
962
|
baseUrl: '',
|
|
965
963
|
features: [],
|
|
966
964
|
folderSize: 0,
|
|
967
|
-
assetDir: assetDir
|
|
965
|
+
assetDir: assetDir || '',
|
|
968
966
|
platform,
|
|
969
967
|
settingsButtonEnabled: false
|
|
970
968
|
};
|
|
@@ -1485,6 +1483,7 @@ const handleTabsClick = (state, name) => {
|
|
|
1485
1483
|
|
|
1486
1484
|
const initialize = async () => {
|
|
1487
1485
|
// TODO create connection to file system worker
|
|
1486
|
+
// TODO create direct connection to markdown worker
|
|
1488
1487
|
};
|
|
1489
1488
|
|
|
1490
1489
|
const isLanguageBasicsExtension = extension => {
|
|
@@ -1582,6 +1581,26 @@ const getBaseUrl = (extensionPath, platform) => {
|
|
|
1582
1581
|
}
|
|
1583
1582
|
};
|
|
1584
1583
|
|
|
1584
|
+
const getCategories = () => {
|
|
1585
|
+
return [{
|
|
1586
|
+
id: 'themes',
|
|
1587
|
+
label: 'Themes'
|
|
1588
|
+
}];
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
const getEntries = () => {
|
|
1592
|
+
return [{
|
|
1593
|
+
key: 'Identifier',
|
|
1594
|
+
value: 'abc'
|
|
1595
|
+
}, {
|
|
1596
|
+
key: 'Version',
|
|
1597
|
+
value: '1.9.5'
|
|
1598
|
+
}, {
|
|
1599
|
+
key: 'Last Updated',
|
|
1600
|
+
value: 'n/a'
|
|
1601
|
+
}];
|
|
1602
|
+
};
|
|
1603
|
+
|
|
1585
1604
|
const getExtensionIdFromUri = uri => {
|
|
1586
1605
|
const id = uri.slice('extension-detail://'.length);
|
|
1587
1606
|
return id;
|
|
@@ -1640,6 +1659,32 @@ const getFolderSize = async uri => {
|
|
|
1640
1659
|
}
|
|
1641
1660
|
};
|
|
1642
1661
|
|
|
1662
|
+
const getResources = () => {
|
|
1663
|
+
return [{
|
|
1664
|
+
label: 'Marketplace',
|
|
1665
|
+
url: '#'
|
|
1666
|
+
}, {
|
|
1667
|
+
label: 'Issues',
|
|
1668
|
+
url: '#'
|
|
1669
|
+
}, {
|
|
1670
|
+
label: 'Repository',
|
|
1671
|
+
url: '#'
|
|
1672
|
+
}, {
|
|
1673
|
+
label: 'License',
|
|
1674
|
+
url: '#'
|
|
1675
|
+
}];
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1678
|
+
const getSecondEntries = () => {
|
|
1679
|
+
return [{
|
|
1680
|
+
key: 'Published',
|
|
1681
|
+
value: 'n/a'
|
|
1682
|
+
}, {
|
|
1683
|
+
key: 'Last Released',
|
|
1684
|
+
value: 'n/a'
|
|
1685
|
+
}];
|
|
1686
|
+
};
|
|
1687
|
+
|
|
1643
1688
|
const Small$1 = 1;
|
|
1644
1689
|
const Normal$1 = 2;
|
|
1645
1690
|
const Large$1 = 3;
|
|
@@ -1733,40 +1778,10 @@ const loadContent = async (state, platform, savedState) => {
|
|
|
1733
1778
|
const features = getFeatures(selectedFeature, extension);
|
|
1734
1779
|
const extensionUri = extension.uri || extension.path;
|
|
1735
1780
|
const folderSize = await getFolderSize(extensionUri);
|
|
1736
|
-
const entries =
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
key: 'Version',
|
|
1741
|
-
value: '1.9.5'
|
|
1742
|
-
}, {
|
|
1743
|
-
key: 'Last Updated',
|
|
1744
|
-
value: 'n/a'
|
|
1745
|
-
}];
|
|
1746
|
-
const secondEntries = [{
|
|
1747
|
-
key: 'Published',
|
|
1748
|
-
value: 'n/a'
|
|
1749
|
-
}, {
|
|
1750
|
-
key: 'Last Released',
|
|
1751
|
-
value: 'n/a'
|
|
1752
|
-
}];
|
|
1753
|
-
const categories = [{
|
|
1754
|
-
id: 'themes',
|
|
1755
|
-
label: 'Themes'
|
|
1756
|
-
}];
|
|
1757
|
-
const resources = [{
|
|
1758
|
-
label: 'Marketplace',
|
|
1759
|
-
url: '#'
|
|
1760
|
-
}, {
|
|
1761
|
-
label: 'Issues',
|
|
1762
|
-
url: '#'
|
|
1763
|
-
}, {
|
|
1764
|
-
label: 'Repository',
|
|
1765
|
-
url: '#'
|
|
1766
|
-
}, {
|
|
1767
|
-
label: 'License',
|
|
1768
|
-
url: '#'
|
|
1769
|
-
}];
|
|
1781
|
+
const entries = getEntries();
|
|
1782
|
+
const secondEntries = getSecondEntries();
|
|
1783
|
+
const categories = getCategories();
|
|
1784
|
+
const resources = getResources();
|
|
1770
1785
|
return {
|
|
1771
1786
|
...state,
|
|
1772
1787
|
selectedTab,
|
|
@@ -2161,13 +2176,6 @@ const getAdditionalDetailsVirtualDom = (showAdditionalDetails, firstHeading, ent
|
|
|
2161
2176
|
}, ...getAdditionalDetailsEntryVirtualDom(firstHeading, entries, getMoreInfoVirtualDom), ...getAdditionalDetailsEntryVirtualDom(secondHeading, secondEntries, getMoreInfoVirtualDom), ...getAdditionalDetailsEntryVirtualDom(thirdHeading, categories, getCategoriesDom), ...getAdditionalDetailsEntryVirtualDom(fourthHeading, resources, getResourcesVirtualDom)];
|
|
2162
2177
|
};
|
|
2163
2178
|
|
|
2164
|
-
const getCategories = () => {
|
|
2165
|
-
return [{
|
|
2166
|
-
id: 'themes',
|
|
2167
|
-
label: 'Themes'
|
|
2168
|
-
}];
|
|
2169
|
-
};
|
|
2170
|
-
|
|
2171
2179
|
const getInstallationEntries = (displaySize, extensionId, extensionVersion) => {
|
|
2172
2180
|
const entries = [{
|
|
2173
2181
|
key: 'Identifier',
|
|
@@ -2207,22 +2215,6 @@ const getMarketplaceEntries = () => {
|
|
|
2207
2215
|
}];
|
|
2208
2216
|
};
|
|
2209
2217
|
|
|
2210
|
-
const getResources = () => {
|
|
2211
|
-
return [{
|
|
2212
|
-
label: 'Marketplace',
|
|
2213
|
-
url: '#'
|
|
2214
|
-
}, {
|
|
2215
|
-
label: 'Issues',
|
|
2216
|
-
url: '#'
|
|
2217
|
-
}, {
|
|
2218
|
-
label: 'Repository',
|
|
2219
|
-
url: '#'
|
|
2220
|
-
}, {
|
|
2221
|
-
label: 'License',
|
|
2222
|
-
url: '#'
|
|
2223
|
-
}];
|
|
2224
|
-
};
|
|
2225
|
-
|
|
2226
2218
|
const getDetailsVirtualDom = async (sanitizedReadmeHtml, displaySize, extensionId, extensionVersion, width) => {
|
|
2227
2219
|
const firstHeading = installation();
|
|
2228
2220
|
const entries = getInstallationEntries(displaySize, extensionId, extensionVersion);
|