@lvce-editor/running-extensions-view 1.10.0 → 1.12.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/runningExtensionsViewMain.js +122 -41
- package/package.json +1 -1
|
@@ -1117,7 +1117,7 @@ const createMockRpc = ({
|
|
|
1117
1117
|
};
|
|
1118
1118
|
|
|
1119
1119
|
const rpcs = Object.create(null);
|
|
1120
|
-
const set$
|
|
1120
|
+
const set$6 = (id, rpc) => {
|
|
1121
1121
|
rpcs[id] = rpc;
|
|
1122
1122
|
};
|
|
1123
1123
|
const get$1 = id => {
|
|
@@ -1150,7 +1150,7 @@ const create$2 = rpcId => {
|
|
|
1150
1150
|
const mockRpc = createMockRpc({
|
|
1151
1151
|
commandMap
|
|
1152
1152
|
});
|
|
1153
|
-
set$
|
|
1153
|
+
set$6(rpcId, mockRpc);
|
|
1154
1154
|
// @ts-ignore
|
|
1155
1155
|
mockRpc[Symbol.dispose] = () => {
|
|
1156
1156
|
remove(rpcId);
|
|
@@ -1159,7 +1159,7 @@ const create$2 = rpcId => {
|
|
|
1159
1159
|
return mockRpc;
|
|
1160
1160
|
},
|
|
1161
1161
|
set(rpc) {
|
|
1162
|
-
set$
|
|
1162
|
+
set$6(rpcId, rpc);
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
1165
|
};
|
|
@@ -1343,28 +1343,38 @@ const Electron = 2;
|
|
|
1343
1343
|
|
|
1344
1344
|
const ClipBoardWorker = 3400;
|
|
1345
1345
|
const ExtensionManagementWorker = 9006;
|
|
1346
|
+
const MainProcess = -5;
|
|
1346
1347
|
const RendererWorker = 1;
|
|
1348
|
+
const SharedProcess = 1492;
|
|
1347
1349
|
|
|
1348
1350
|
const SetCss = 'Viewlet.setCss';
|
|
1349
1351
|
const SetDom2 = 'Viewlet.setDom2';
|
|
1350
1352
|
|
|
1351
1353
|
const {
|
|
1352
|
-
invoke: invoke$
|
|
1353
|
-
set: set$
|
|
1354
|
+
invoke: invoke$3,
|
|
1355
|
+
set: set$5
|
|
1354
1356
|
} = create$2(ClipBoardWorker);
|
|
1355
1357
|
const writeText = async text => {
|
|
1356
|
-
return invoke$
|
|
1358
|
+
return invoke$3('ClipBoard.writeText', text);
|
|
1357
1359
|
};
|
|
1358
1360
|
|
|
1359
1361
|
const {
|
|
1360
|
-
invoke: invoke$
|
|
1361
|
-
set: set$
|
|
1362
|
+
invoke: invoke$2,
|
|
1363
|
+
set: set$4
|
|
1362
1364
|
} = create$2(ExtensionManagementWorker);
|
|
1365
|
+
const disable2 = (id, platform) => {
|
|
1366
|
+
return invoke$2(`Extensions.disable2`, id, platform);
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
const {
|
|
1370
|
+
invoke: invoke$1,
|
|
1371
|
+
set: set$3
|
|
1372
|
+
} = create$2(MainProcess);
|
|
1363
1373
|
|
|
1364
1374
|
const {
|
|
1365
1375
|
invoke,
|
|
1366
|
-
invokeAndTransfer,
|
|
1367
|
-
set: set$
|
|
1376
|
+
invokeAndTransfer: invokeAndTransfer$1,
|
|
1377
|
+
set: set$2
|
|
1368
1378
|
} = create$2(RendererWorker);
|
|
1369
1379
|
const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
1370
1380
|
number(uid);
|
|
@@ -1375,15 +1385,19 @@ const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
|
1375
1385
|
};
|
|
1376
1386
|
const sendMessagePortToClipBoardWorker = async (port, rpcId) => {
|
|
1377
1387
|
const command = 'ClipBoard.handleMessagePort';
|
|
1378
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToClipBoardWorker', port, command, rpcId);
|
|
1388
|
+
await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToClipBoardWorker', port, command, rpcId);
|
|
1379
1389
|
};
|
|
1380
1390
|
const confirm = async (message, options) => {
|
|
1381
1391
|
const result = await invoke('ConfirmPrompt.prompt', message, options);
|
|
1382
1392
|
return result;
|
|
1383
1393
|
};
|
|
1394
|
+
const sendMessagePortToSharedProcess = async port => {
|
|
1395
|
+
const command = 'HandleElectronMessagePort.handleElectronMessagePort';
|
|
1396
|
+
await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, 0);
|
|
1397
|
+
};
|
|
1384
1398
|
const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
|
|
1385
1399
|
const command = 'Extensions.handleMessagePort';
|
|
1386
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
1400
|
+
await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
1387
1401
|
};
|
|
1388
1402
|
const getWindowId = async () => {
|
|
1389
1403
|
return invoke('GetWindowId.getWindowId');
|
|
@@ -1395,14 +1409,20 @@ const openUrl = async uri => {
|
|
|
1395
1409
|
await invoke('Open.openUrl', uri);
|
|
1396
1410
|
};
|
|
1397
1411
|
|
|
1412
|
+
const {
|
|
1413
|
+
invokeAndTransfer,
|
|
1414
|
+
set: set$1
|
|
1415
|
+
} = create$2(SharedProcess);
|
|
1416
|
+
|
|
1398
1417
|
const copyId$1 = async (state, index) => {
|
|
1399
1418
|
const {
|
|
1400
1419
|
extensions
|
|
1401
1420
|
} = state;
|
|
1402
1421
|
const extension = extensions[index];
|
|
1403
|
-
if (extension) {
|
|
1404
|
-
|
|
1422
|
+
if (!extension) {
|
|
1423
|
+
return state;
|
|
1405
1424
|
}
|
|
1425
|
+
await writeText(extension.id);
|
|
1406
1426
|
return state;
|
|
1407
1427
|
};
|
|
1408
1428
|
|
|
@@ -1665,6 +1685,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
|
|
|
1665
1685
|
assetDir,
|
|
1666
1686
|
extensions: [],
|
|
1667
1687
|
focusedIndex: -1,
|
|
1688
|
+
focusOutline: false,
|
|
1668
1689
|
height,
|
|
1669
1690
|
itemHeight: 72,
|
|
1670
1691
|
loaded: false,
|
|
@@ -1679,7 +1700,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
|
|
|
1679
1700
|
};
|
|
1680
1701
|
|
|
1681
1702
|
const isDomEqual = (oldState, newState) => {
|
|
1682
|
-
return oldState.extensions === newState.extensions && oldState.focusedIndex === newState.focusedIndex && oldState.loaded === newState.loaded && oldState.selectedIndex === newState.selectedIndex;
|
|
1703
|
+
return oldState.extensions === newState.extensions && oldState.focusedIndex === newState.focusedIndex && oldState.focusOutline === newState.focusOutline && oldState.loaded === newState.loaded && oldState.selectedIndex === newState.selectedIndex;
|
|
1683
1704
|
};
|
|
1684
1705
|
const isCssEqual = (oldState, newState) => {
|
|
1685
1706
|
return oldState.width === newState.width && oldState.height === newState.height;
|
|
@@ -1699,7 +1720,7 @@ const disable$1 = async (state, index) => {
|
|
|
1699
1720
|
} = state;
|
|
1700
1721
|
const extension = extensions[index];
|
|
1701
1722
|
if (extension) {
|
|
1702
|
-
await
|
|
1723
|
+
await disable2(extension.id, platform);
|
|
1703
1724
|
}
|
|
1704
1725
|
return state;
|
|
1705
1726
|
};
|
|
@@ -1710,7 +1731,7 @@ const disableWorkspace$1 = async (state, index) => {
|
|
|
1710
1731
|
} = state;
|
|
1711
1732
|
const extension = extensions[index];
|
|
1712
1733
|
if (extension) {
|
|
1713
|
-
await invoke$
|
|
1734
|
+
await invoke$2('Extensions.disableWorkspace', extension.id);
|
|
1714
1735
|
}
|
|
1715
1736
|
return state;
|
|
1716
1737
|
};
|
|
@@ -1864,15 +1885,27 @@ const getMenuEntryIds = () => {
|
|
|
1864
1885
|
return [RunningExtensions$1];
|
|
1865
1886
|
};
|
|
1866
1887
|
|
|
1888
|
+
const handleBlur = state => {
|
|
1889
|
+
return {
|
|
1890
|
+
...state,
|
|
1891
|
+
focusOutline: false
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
const getIndex = (eventY, y, itemHeight) => {
|
|
1896
|
+
const index = Math.floor((eventY - y) / itemHeight);
|
|
1897
|
+
return index;
|
|
1898
|
+
};
|
|
1867
1899
|
const handleClickAt = (state, eventY) => {
|
|
1868
1900
|
const {
|
|
1869
1901
|
extensions,
|
|
1870
1902
|
itemHeight,
|
|
1871
1903
|
y
|
|
1872
1904
|
} = state;
|
|
1873
|
-
const index =
|
|
1905
|
+
const index = getIndex(eventY, y, itemHeight);
|
|
1874
1906
|
return {
|
|
1875
1907
|
...state,
|
|
1908
|
+
focusOutline: false,
|
|
1876
1909
|
selectedIndex: extensions[index] ? index : -1
|
|
1877
1910
|
};
|
|
1878
1911
|
};
|
|
@@ -1892,7 +1925,8 @@ const handleContextMenu = async (state, index, x = 0, y = 0) => {
|
|
|
1892
1925
|
}
|
|
1893
1926
|
const newState = {
|
|
1894
1927
|
...state,
|
|
1895
|
-
focusedIndex
|
|
1928
|
+
focusedIndex,
|
|
1929
|
+
focusOutline: true
|
|
1896
1930
|
};
|
|
1897
1931
|
set(uid, state, newState);
|
|
1898
1932
|
await show(uid, RunningExtensions$1, x, y, {
|
|
@@ -1902,7 +1936,7 @@ const handleContextMenu = async (state, index, x = 0, y = 0) => {
|
|
|
1902
1936
|
};
|
|
1903
1937
|
|
|
1904
1938
|
const getRunningExtensions = async (assetDir, platform) => {
|
|
1905
|
-
return invoke$
|
|
1939
|
+
return invoke$2('Extensions.getRunningExtensions', assetDir, platform);
|
|
1906
1940
|
};
|
|
1907
1941
|
|
|
1908
1942
|
const loadContent = async state => {
|
|
@@ -1928,6 +1962,7 @@ const renderCss = (oldState, newState) => {
|
|
|
1928
1962
|
uid,
|
|
1929
1963
|
width
|
|
1930
1964
|
} = newState;
|
|
1965
|
+
// TODO this is not needed
|
|
1931
1966
|
const css = getCss(width, height);
|
|
1932
1967
|
return [SetCss, uid, css];
|
|
1933
1968
|
};
|
|
@@ -1972,6 +2007,7 @@ const RunningExtensionVersion = 'RunningExtensionVersion';
|
|
|
1972
2007
|
|
|
1973
2008
|
const HandleContextMenu = 3;
|
|
1974
2009
|
const HandleClick = 4;
|
|
2010
|
+
const HandleBlur = 5;
|
|
1975
2011
|
|
|
1976
2012
|
const getIconVirtualDom = (extension, index) => {
|
|
1977
2013
|
if (extension.icon) {
|
|
@@ -2016,10 +2052,7 @@ const getRemoteAuthorityVirtualDom = (remoteAuthority, index) => {
|
|
|
2016
2052
|
type: Div
|
|
2017
2053
|
}, text(ssh(host))];
|
|
2018
2054
|
};
|
|
2019
|
-
const
|
|
2020
|
-
const displayName = extension.name || extension.id;
|
|
2021
|
-
const activationReasonDom = getActivationReasonVirtualDom(extension.activationEvent, index);
|
|
2022
|
-
const remoteAuthorityDom = getRemoteAuthorityVirtualDom(extension.remoteAuthority, index);
|
|
2055
|
+
const getClassName = (focused, selected) => {
|
|
2023
2056
|
let className = RunningExtension;
|
|
2024
2057
|
if (focused) {
|
|
2025
2058
|
className = mergeClassNames(className, FocusOutline);
|
|
@@ -2027,6 +2060,13 @@ const getExtensionVirtualDom = (extension, index, focused = false, selected = fa
|
|
|
2027
2060
|
if (selected) {
|
|
2028
2061
|
className = mergeClassNames(className, ExtensionActive);
|
|
2029
2062
|
}
|
|
2063
|
+
return className;
|
|
2064
|
+
};
|
|
2065
|
+
const getExtensionVirtualDom = (extension, index, focused = false, selected = false) => {
|
|
2066
|
+
const displayName = extension.name || extension.id;
|
|
2067
|
+
const activationReasonDom = getActivationReasonVirtualDom(extension.activationEvent, index);
|
|
2068
|
+
const remoteAuthorityDom = getRemoteAuthorityVirtualDom(extension.remoteAuthority, index);
|
|
2069
|
+
const className = getClassName(focused, selected);
|
|
2030
2070
|
return [{
|
|
2031
2071
|
childCount: 3,
|
|
2032
2072
|
className,
|
|
@@ -2071,40 +2111,50 @@ const getExtensionVirtualDom = (extension, index, focused = false, selected = fa
|
|
|
2071
2111
|
}, text(activationTime(Math.round(extension.activationTime))), ...activationReasonDom];
|
|
2072
2112
|
};
|
|
2073
2113
|
|
|
2114
|
+
const Focusable = 0;
|
|
2115
|
+
|
|
2074
2116
|
const emptyNode = {
|
|
2075
2117
|
childCount: 1,
|
|
2076
2118
|
className: RunningExtensionsEmpty,
|
|
2077
2119
|
type: Div
|
|
2078
2120
|
};
|
|
2079
|
-
const
|
|
2121
|
+
const getMessage = loaded => {
|
|
2080
2122
|
const message = loaded ? noRunningExtensions() : loadingRunningExtensions();
|
|
2123
|
+
return message;
|
|
2124
|
+
};
|
|
2125
|
+
const getRunningExtensionsEmptyDom = loaded => {
|
|
2126
|
+
const message = getMessage(loaded);
|
|
2081
2127
|
return [{
|
|
2082
2128
|
childCount: 1,
|
|
2083
2129
|
className: mergeClassNames(RunningExtensions, Grow),
|
|
2130
|
+
onBlur: HandleBlur,
|
|
2084
2131
|
onClick: HandleClick,
|
|
2085
2132
|
onContextMenu: HandleContextMenu,
|
|
2086
2133
|
role: List,
|
|
2134
|
+
tabIndex: Focusable,
|
|
2087
2135
|
type: Div
|
|
2088
2136
|
}, emptyNode, text(message)];
|
|
2089
2137
|
};
|
|
2090
2138
|
|
|
2091
|
-
const getRunningExtensionsVirtualDom = (extensions, loaded, focusedIndex = -1, selectedIndex = -1) => {
|
|
2139
|
+
const getRunningExtensionsVirtualDom = (extensions, loaded, focusedIndex = -1, selectedIndex = -1, focusOutline = false) => {
|
|
2092
2140
|
if (extensions.length === 0) {
|
|
2093
2141
|
return getRunningExtensionsEmptyDom(loaded);
|
|
2094
2142
|
}
|
|
2095
|
-
const children = extensions.flatMap((extension, index) => getExtensionVirtualDom(extension, index, index === focusedIndex, index === selectedIndex));
|
|
2096
2143
|
return [{
|
|
2097
2144
|
childCount: extensions.length,
|
|
2098
2145
|
className: mergeClassNames(RunningExtensions, Grow),
|
|
2146
|
+
onBlur: HandleBlur,
|
|
2099
2147
|
onClick: HandleClick,
|
|
2100
2148
|
onContextMenu: HandleContextMenu,
|
|
2101
2149
|
role: List,
|
|
2150
|
+
tabIndex: Focusable,
|
|
2102
2151
|
type: Div
|
|
2103
|
-
}, ...
|
|
2152
|
+
}, ...extensions.flatMap((extension, index) => getExtensionVirtualDom(extension, index, focusOutline && index === focusedIndex, index === selectedIndex))];
|
|
2104
2153
|
};
|
|
2105
2154
|
|
|
2106
2155
|
const renderDom = (oldState, newState) => {
|
|
2107
|
-
|
|
2156
|
+
// TODO incremental rendering
|
|
2157
|
+
return [SetDom2, newState.uid, getRunningExtensionsVirtualDom(newState.extensions, newState.loaded, newState.focusedIndex, newState.selectedIndex, newState.focusOutline)];
|
|
2108
2158
|
};
|
|
2109
2159
|
|
|
2110
2160
|
const getRenderer = diffType => {
|
|
@@ -2135,12 +2185,15 @@ const renderEventListeners = () => {
|
|
|
2135
2185
|
name: HandleClick,
|
|
2136
2186
|
params: ['handleClickAt', ClientY],
|
|
2137
2187
|
preventDefault: true
|
|
2188
|
+
}, {
|
|
2189
|
+
name: HandleBlur,
|
|
2190
|
+
params: ['handleBlur']
|
|
2138
2191
|
}];
|
|
2139
2192
|
};
|
|
2140
2193
|
|
|
2141
2194
|
const gitSuffixRegex = /\.git$/;
|
|
2142
2195
|
const getIssuesUrl = repository => {
|
|
2143
|
-
if (typeof repository !== 'string') {
|
|
2196
|
+
if (typeof repository !== 'string' || !URL.canParse(repository)) {
|
|
2144
2197
|
return '';
|
|
2145
2198
|
}
|
|
2146
2199
|
let url;
|
|
@@ -2200,23 +2253,28 @@ const startProfile = async state => {
|
|
|
2200
2253
|
return state;
|
|
2201
2254
|
};
|
|
2202
2255
|
|
|
2256
|
+
const canTakeHeapSnapshot = (platform, extension) => {
|
|
2257
|
+
return !(!extension || platform !== Electron || !extension.isolated);
|
|
2258
|
+
};
|
|
2203
2259
|
const takeHeapSnapshot = async (state, index) => {
|
|
2204
2260
|
const {
|
|
2205
2261
|
extensions,
|
|
2206
2262
|
platform
|
|
2207
2263
|
} = state;
|
|
2208
2264
|
const extension = extensions[index];
|
|
2209
|
-
if (!
|
|
2265
|
+
if (!canTakeHeapSnapshot(platform, extension)) {
|
|
2210
2266
|
return state;
|
|
2211
2267
|
}
|
|
2212
2268
|
const windowId = await getWindowId();
|
|
2213
2269
|
const workerName = extension.workerName || extensionApiElectron(extension.id);
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
await
|
|
2270
|
+
try {
|
|
2271
|
+
const uri = await invoke$1('ElectronDeveloper.takeWorkerHeapSnapshot', windowId, workerName);
|
|
2272
|
+
await invoke('Main.openUri', uri);
|
|
2273
|
+
} catch (error) {
|
|
2274
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
2275
|
+
await confirm(message);
|
|
2217
2276
|
return state;
|
|
2218
2277
|
}
|
|
2219
|
-
await invoke('Main.openUri', result.uri);
|
|
2220
2278
|
return state;
|
|
2221
2279
|
};
|
|
2222
2280
|
|
|
@@ -2230,6 +2288,7 @@ const commandMap = {
|
|
|
2230
2288
|
'RunningExtensions.getCommandIds': getCommandIds,
|
|
2231
2289
|
'RunningExtensions.getMenuEntries': wrapGetter(getMenuEntries),
|
|
2232
2290
|
'RunningExtensions.getMenuEntryIds': getMenuEntryIds,
|
|
2291
|
+
'RunningExtensions.handleBlur': wrapCommand(handleBlur),
|
|
2233
2292
|
'RunningExtensions.handleClickAt': wrapCommand(handleClickAt),
|
|
2234
2293
|
'RunningExtensions.handleContextMenu': wrapCommand(handleContextMenu),
|
|
2235
2294
|
'RunningExtensions.loadContent': wrapCommand(loadContent),
|
|
@@ -2242,10 +2301,32 @@ const commandMap = {
|
|
|
2242
2301
|
'RunningExtensions.takeHeapSnapshot': wrapCommand(takeHeapSnapshot)
|
|
2243
2302
|
};
|
|
2244
2303
|
|
|
2245
|
-
const send$
|
|
2304
|
+
const send$3 = async port => {
|
|
2246
2305
|
await sendMessagePortToClipBoardWorker(port, 0);
|
|
2247
2306
|
};
|
|
2248
2307
|
const initializeClipBoardWorker = async () => {
|
|
2308
|
+
const rpc = await create$4({
|
|
2309
|
+
commandMap: {},
|
|
2310
|
+
send: send$3
|
|
2311
|
+
});
|
|
2312
|
+
set$5(rpc);
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
const send$2 = async port => {
|
|
2316
|
+
await sendMessagePortToExtensionManagementWorker(port, 0);
|
|
2317
|
+
};
|
|
2318
|
+
const initializeExtensionManagementWorker = async () => {
|
|
2319
|
+
const rpc = await create$4({
|
|
2320
|
+
commandMap: {},
|
|
2321
|
+
send: send$2
|
|
2322
|
+
});
|
|
2323
|
+
set$4(rpc);
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
const send$1 = async port => {
|
|
2327
|
+
await invokeAndTransfer('TemporaryMessagePort.sendToElectron', port, MainProcess, 0);
|
|
2328
|
+
};
|
|
2329
|
+
const initializeMainProcess = async () => {
|
|
2249
2330
|
const rpc = await create$4({
|
|
2250
2331
|
commandMap: {},
|
|
2251
2332
|
send: send$1
|
|
@@ -2254,14 +2335,14 @@ const initializeClipBoardWorker = async () => {
|
|
|
2254
2335
|
};
|
|
2255
2336
|
|
|
2256
2337
|
const send = async port => {
|
|
2257
|
-
await
|
|
2338
|
+
await sendMessagePortToSharedProcess(port);
|
|
2258
2339
|
};
|
|
2259
|
-
const
|
|
2340
|
+
const initializeSharedProcess = async () => {
|
|
2260
2341
|
const rpc = await create$4({
|
|
2261
2342
|
commandMap: {},
|
|
2262
2343
|
send
|
|
2263
2344
|
});
|
|
2264
|
-
set$
|
|
2345
|
+
set$1(rpc);
|
|
2265
2346
|
};
|
|
2266
2347
|
|
|
2267
2348
|
const listen = async () => {
|
|
@@ -2269,8 +2350,8 @@ const listen = async () => {
|
|
|
2269
2350
|
const rpc = await create$3({
|
|
2270
2351
|
commandMap: commandMap
|
|
2271
2352
|
});
|
|
2272
|
-
set$
|
|
2273
|
-
await Promise.all([initializeClipBoardWorker(), initializeExtensionManagementWorker()]);
|
|
2353
|
+
set$2(rpc);
|
|
2354
|
+
await Promise.all([initializeClipBoardWorker(), initializeExtensionManagementWorker(), initializeMainProcess(), initializeSharedProcess()]);
|
|
2274
2355
|
};
|
|
2275
2356
|
|
|
2276
2357
|
const main = async () => {
|