@innovatorved/code-lab 0.1.0 → 0.1.1
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/README.md +3 -3
- package/dist/code-lab.css +209 -1
- package/dist/code-lab.esm.js +253 -16
- package/dist/code-lab.js +253 -16
- package/dist/shell.esm.js +52 -1
- package/dist/shell.js +52 -1
- package/package.json +2 -2
- package/src/code-lab.css +209 -1
- package/src/shell.js +52 -1
- package/src/shell.ts +28 -1
- package/src/workbench.js +201 -15
- package/src/workbench.ts +201 -15
package/src/workbench.ts
CHANGED
|
@@ -1171,6 +1171,8 @@ declare module 'bun:sqlite' {
|
|
|
1171
1171
|
this.completedSteps = new Set(this.savedState.completedSteps || []);
|
|
1172
1172
|
this.folders = new Set(this.savedState?.folders || []);
|
|
1173
1173
|
this.collapsedFolders = new Set(this.savedState?.collapsedFolders || []);
|
|
1174
|
+
this.explorerFolder = this.savedState?.explorerFolder || ''; // '' = workspace root, else folder path scope
|
|
1175
|
+
this.folderSwitcherOpen = false;
|
|
1174
1176
|
this.creatingItem = null; // { type: 'file' | 'folder', parentFolder: string } | null
|
|
1175
1177
|
this.renamingItem = null;
|
|
1176
1178
|
this._draggedFile = null;
|
|
@@ -1506,7 +1508,8 @@ declare module 'bun:sqlite' {
|
|
|
1506
1508
|
openTabs: Array.isArray(this.openTabs) ? [...this.openTabs] : undefined,
|
|
1507
1509
|
activeFile: this.activeFile,
|
|
1508
1510
|
folders: Array.from(this.folders || []),
|
|
1509
|
-
collapsedFolders: Array.from(this.collapsedFolders || [])
|
|
1511
|
+
collapsedFolders: Array.from(this.collapsedFolders || []),
|
|
1512
|
+
explorerFolder: this.explorerFolder || ''
|
|
1510
1513
|
};
|
|
1511
1514
|
this.savedState = state;
|
|
1512
1515
|
if (this.options && this.options.persistState === false) {
|
|
@@ -1950,23 +1953,59 @@ declare module 'bun:sqlite' {
|
|
|
1950
1953
|
</button>
|
|
1951
1954
|
` : '';
|
|
1952
1955
|
|
|
1953
|
-
|
|
1956
|
+
const folderOptions = this._listWorkspaceFolders();
|
|
1957
|
+
const scope = this.explorerFolder || '';
|
|
1958
|
+
const scopeLabel = scope ? scope.split('/').pop() : 'workspace';
|
|
1959
|
+
|
|
1960
|
+
const switcherHtml = `
|
|
1961
|
+
<div class="codelab-folder-switcher ${this.folderSwitcherOpen ? 'is-open' : ''}">
|
|
1962
|
+
<button type="button" class="codelab-folder-switcher__toggle ${scope ? 'is-scoped' : ''}" data-cl-action="toggle-folder-switcher" aria-haspopup="true" aria-expanded="${this.folderSwitcherOpen ? 'true' : 'false'}" title="Switch workspace folder">
|
|
1963
|
+
${CL_ICONS.folder}
|
|
1964
|
+
<span class="codelab-folder-switcher__label">${escapeHtml(scopeLabel)}</span>
|
|
1965
|
+
${CL_ICONS.chevronDown}
|
|
1966
|
+
</button>
|
|
1967
|
+
${this.folderSwitcherOpen ? `
|
|
1968
|
+
<div class="codelab-folder-switcher__menu" role="menu" aria-label="Workspace folders">
|
|
1969
|
+
<div class="codelab-folder-switcher__section">Switch Folder</div>
|
|
1970
|
+
<button type="button" role="menuitem" class="codelab-folder-switcher__option ${!scope ? 'active' : ''}" data-cl-folder-option="">
|
|
1971
|
+
<span class="codelab-folder-switcher__icon">${CL_ICONS.folder}</span>
|
|
1972
|
+
<span class="codelab-folder-switcher__name">workspace</span>
|
|
1973
|
+
<span class="codelab-folder-switcher__path">/</span>
|
|
1974
|
+
</button>
|
|
1975
|
+
${folderOptions.map(f => {
|
|
1976
|
+
const fDepth = f.split('/').length;
|
|
1977
|
+
const fName = f.split('/').pop();
|
|
1978
|
+
return `
|
|
1979
|
+
<button type="button" role="menuitem" class="codelab-folder-switcher__option ${scope === f ? 'active' : ''}" data-cl-folder-option="${escapeHtml(f)}" style="padding-left:${10 + (fDepth - 1) * 12}px;">
|
|
1980
|
+
<span class="codelab-folder-switcher__icon">${CL_ICONS.folder}</span>
|
|
1981
|
+
<span class="codelab-folder-switcher__name">${escapeHtml(fName)}</span>
|
|
1982
|
+
<span class="codelab-folder-switcher__path">${escapeHtml(f)}</span>
|
|
1983
|
+
</button>
|
|
1984
|
+
`;
|
|
1985
|
+
}).join('')}
|
|
1986
|
+
${folderOptions.length ? '' : '<div class="codelab-folder-switcher__empty">No subfolders yet</div>'}
|
|
1987
|
+
</div>
|
|
1988
|
+
` : ''}
|
|
1989
|
+
</div>
|
|
1990
|
+
`;
|
|
1991
|
+
|
|
1992
|
+
let pathHtml = `<button type="button" class="codelab-breadcrumbs__item codelab-breadcrumbs__item--root" data-action="command-palette-files" data-cl-action="command-palette-files" title="Quick Open File (⌘P)">workspace</button>`;
|
|
1954
1993
|
|
|
1955
1994
|
if (this.activeFile) {
|
|
1956
1995
|
const segments = this.activeFile.split('/');
|
|
1957
1996
|
for (let i = 0; i < segments.length - 1; i++) {
|
|
1958
1997
|
const folderPath = segments.slice(0, i + 1).join('/');
|
|
1959
|
-
pathHtml += `<span class="codelab-
|
|
1960
|
-
pathHtml += `<button type="button" class="codelab-
|
|
1998
|
+
pathHtml += `<span class="codelab-breadcrumbs__sep" aria-hidden="true">›</span>`;
|
|
1999
|
+
pathHtml += `<button type="button" class="codelab-breadcrumbs__item codelab-breadcrumbs__item--folder" data-cl-breadcrumb-folder="${escapeHtml(folderPath)}" data-folder="${escapeHtml(folderPath)}" title="Scope explorer to ${escapeHtml(folderPath)}">${escapeHtml(segments[i])}</button>`;
|
|
1961
2000
|
}
|
|
1962
2001
|
const fileName = segments[segments.length - 1];
|
|
1963
|
-
pathHtml += `<span class="codelab-
|
|
1964
|
-
pathHtml += `<button type="button" class="codelab-
|
|
2002
|
+
pathHtml += `<span class="codelab-breadcrumbs__sep" aria-hidden="true">›</span>`;
|
|
2003
|
+
pathHtml += `<button type="button" class="codelab-breadcrumbs__item codelab-breadcrumbs__item--file active" data-cl-breadcrumb-file="${escapeHtml(this.activeFile)}" data-file="${escapeHtml(this.activeFile)}">${escapeHtml(fileName)}</button>`;
|
|
1965
2004
|
|
|
1966
2005
|
const symbol = this._detectActiveSymbol(this.activeFile);
|
|
1967
2006
|
if (symbol) {
|
|
1968
|
-
pathHtml += `<span class="codelab-
|
|
1969
|
-
pathHtml += `<span class="codelab-
|
|
2007
|
+
pathHtml += `<span class="codelab-breadcrumbs__sep" aria-hidden="true">›</span>`;
|
|
2008
|
+
pathHtml += `<span class="codelab-breadcrumbs__item codelab-breadcrumbs__item--symbol" data-cl-breadcrumb-symbol="${escapeHtml(symbol)}">ƒ ${escapeHtml(symbol)}</span>`;
|
|
1970
2009
|
}
|
|
1971
2010
|
}
|
|
1972
2011
|
|
|
@@ -1987,7 +2026,10 @@ declare module 'bun:sqlite' {
|
|
|
1987
2026
|
|
|
1988
2027
|
host.innerHTML = `
|
|
1989
2028
|
${expandBtnHtml}
|
|
1990
|
-
<div class="codelab-
|
|
2029
|
+
<div class="codelab-breadcrumbs__left">
|
|
2030
|
+
${switcherHtml}
|
|
2031
|
+
<div class="codelab-breadcrumbs__path">${pathHtml}</div>
|
|
2032
|
+
</div>
|
|
1991
2033
|
<div class="codelab-breadcrumbs__actions">
|
|
1992
2034
|
${diffBtnHtml}
|
|
1993
2035
|
<button type="button" class="codelab-breadcrumb__btn" data-action="command-palette" data-cl-action="command-palette" title="Open Command Palette (⌘⇧P)">
|
|
@@ -2230,6 +2272,36 @@ declare module 'bun:sqlite' {
|
|
|
2230
2272
|
return rootNode;
|
|
2231
2273
|
}
|
|
2232
2274
|
|
|
2275
|
+
_listWorkspaceFolders() {
|
|
2276
|
+
const set = new Set();
|
|
2277
|
+
if (this.folders) {
|
|
2278
|
+
for (const f of this.folders) {
|
|
2279
|
+
if (f) set.add(f);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
for (const filePath of this._orderedFileNames()) {
|
|
2283
|
+
const idx = filePath.lastIndexOf('/');
|
|
2284
|
+
if (idx <= 0) continue;
|
|
2285
|
+
const parts = filePath.slice(0, idx).split('/');
|
|
2286
|
+
let running = '';
|
|
2287
|
+
for (const p of parts) {
|
|
2288
|
+
running = running ? `${running}/${p}` : p;
|
|
2289
|
+
set.add(running);
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
return Array.from(set).sort((a, b) => a.localeCompare(b));
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
_resolveFolderNode(rootNode, folderPath) {
|
|
2296
|
+
if (!rootNode || !folderPath) return null;
|
|
2297
|
+
let current = rootNode;
|
|
2298
|
+
for (const seg of folderPath.split('/')) {
|
|
2299
|
+
if (!current || !current.folders || !current.folders.has(seg)) return null;
|
|
2300
|
+
current = current.folders.get(seg);
|
|
2301
|
+
}
|
|
2302
|
+
return current || null;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2233
2305
|
_renderFileLists() {
|
|
2234
2306
|
const explorerEl = this.container.querySelector('#cl-explorer-list');
|
|
2235
2307
|
const tabsEl = this.container.querySelector('#cl-file-tabs');
|
|
@@ -2238,6 +2310,12 @@ declare module 'bun:sqlite' {
|
|
|
2238
2310
|
if (!explorerEl || !tabsEl) return;
|
|
2239
2311
|
|
|
2240
2312
|
const treeRoot = this._buildFileTree();
|
|
2313
|
+
if (this.explorerFolder && !this._resolveFolderNode(treeRoot, this.explorerFolder)) {
|
|
2314
|
+
this.explorerFolder = '';
|
|
2315
|
+
}
|
|
2316
|
+
const scope = this.explorerFolder || '';
|
|
2317
|
+
const renderRoot = scope ? this._resolveFolderNode(treeRoot, scope) : treeRoot;
|
|
2318
|
+
const rootParent = scope;
|
|
2241
2319
|
let treeHtml = '';
|
|
2242
2320
|
|
|
2243
2321
|
const renderNode = (node, depth) => {
|
|
@@ -2292,7 +2370,7 @@ declare module 'bun:sqlite' {
|
|
|
2292
2370
|
}
|
|
2293
2371
|
};
|
|
2294
2372
|
|
|
2295
|
-
if (this.creatingItem && this.creatingItem.parentFolder ===
|
|
2373
|
+
if (this.creatingItem && this.creatingItem.parentFolder === rootParent) {
|
|
2296
2374
|
treeHtml += `
|
|
2297
2375
|
<div class="codelab-tree-create-row" style="padding-left: 10px;">
|
|
2298
2376
|
<span class="codelab-tree-create-icon">${this.creatingItem.type === 'folder' ? CL_ICONS.folder : CL_ICONS.file}</span>
|
|
@@ -2301,7 +2379,16 @@ declare module 'bun:sqlite' {
|
|
|
2301
2379
|
`;
|
|
2302
2380
|
}
|
|
2303
2381
|
|
|
2304
|
-
|
|
2382
|
+
if (scope) {
|
|
2383
|
+
treeHtml += `
|
|
2384
|
+
<button type="button" class="codelab-scope-up" data-cl-folder-option="" title="Back to workspace root">
|
|
2385
|
+
<span class="codelab-scope-up__arrow">←</span>
|
|
2386
|
+
<span class="codelab-scope-up__label">workspace</span>
|
|
2387
|
+
</button>
|
|
2388
|
+
`;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
renderNode(renderRoot, 0);
|
|
2305
2392
|
explorerEl.innerHTML = treeHtml;
|
|
2306
2393
|
|
|
2307
2394
|
// Attach file drag events
|
|
@@ -3862,6 +3949,29 @@ declare module 'bun:sqlite' {
|
|
|
3862
3949
|
this._portToasts.delete(p);
|
|
3863
3950
|
}
|
|
3864
3951
|
|
|
3952
|
+
_showToast(message, kind = 'info') {
|
|
3953
|
+
const toastHost = this.container ? this.container.querySelector('#cl-toast-container') : null;
|
|
3954
|
+
if (!toastHost || typeof document === 'undefined') return;
|
|
3955
|
+
const toast = document.createElement('div');
|
|
3956
|
+
toast.className = `codelab-toast codelab-toast--${kind === 'error' ? 'error' : 'info'}`;
|
|
3957
|
+
const icon = kind === 'error' ? (CL_ICONS.x || '⚠') : (CL_ICONS.externalLink || CL_ICONS.radio || '');
|
|
3958
|
+
toast.innerHTML = `
|
|
3959
|
+
<div class="codelab-toast__icon">${icon}</div>
|
|
3960
|
+
<div class="codelab-toast__body">
|
|
3961
|
+
<div class="codelab-toast__meta">${escapeHtml(message)}</div>
|
|
3962
|
+
</div>
|
|
3963
|
+
<button type="button" class="codelab-toast__close" aria-label="Dismiss notification">${CL_ICONS.x || '×'}</button>
|
|
3964
|
+
`;
|
|
3965
|
+
const closeBtn = toast.querySelector('.codelab-toast__close');
|
|
3966
|
+
const remove = () => {
|
|
3967
|
+
if (typeof toast.remove === 'function') toast.remove();
|
|
3968
|
+
else if (toast.parentNode) toast.parentNode.removeChild(toast);
|
|
3969
|
+
};
|
|
3970
|
+
if (closeBtn) closeBtn.addEventListener('click', remove);
|
|
3971
|
+
toastHost.appendChild(toast);
|
|
3972
|
+
setTimeout(remove, 5000);
|
|
3973
|
+
}
|
|
3974
|
+
|
|
3865
3975
|
_registerPreviewServiceWorker() {
|
|
3866
3976
|
if (typeof navigator === 'undefined' || !navigator.serviceWorker || typeof navigator.serviceWorker.register !== 'function') return;
|
|
3867
3977
|
const url = (this.options && this.options.previewSwUrl) || 'preview-sw.js';
|
|
@@ -3952,9 +4062,53 @@ declare module 'bun:sqlite' {
|
|
|
3952
4062
|
_previewGo(urlOrPath) {
|
|
3953
4063
|
let url = String(urlOrPath || '').trim();
|
|
3954
4064
|
if (!url) return Promise.resolve();
|
|
4065
|
+
|
|
4066
|
+
const loopbackPort = this.previewState.port || this._firstListeningPort() || 3000;
|
|
4067
|
+
const localHostRe = /^(localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1\])(:\d+)?(\/.*)?$/i;
|
|
4068
|
+
|
|
4069
|
+
// Normalize the input into an absolute URL.
|
|
3955
4070
|
if (!/^https?:\/\//i.test(url)) {
|
|
3956
|
-
|
|
4071
|
+
if (localHostRe.test(url)) {
|
|
4072
|
+
url = `http://${url}`;
|
|
4073
|
+
} else if (/^[a-z0-9-]+(\.[a-z0-9-]+)+(:\d+)?([/?#].*)?$/i.test(url)) {
|
|
4074
|
+
// Bare public domain, e.g. "google.com" or "example.com/path".
|
|
4075
|
+
url = `https://${url}`;
|
|
4076
|
+
} else {
|
|
4077
|
+
url = `http://127.0.0.1:${loopbackPort}${url.startsWith('/') ? '' : '/'}${url}`;
|
|
4078
|
+
}
|
|
3957
4079
|
}
|
|
4080
|
+
|
|
4081
|
+
// Public (non-loopback) URLs cannot be served by the virtual loopback Service
|
|
4082
|
+
// Worker, so open them in a real browser tab instead of the in-browser frame.
|
|
4083
|
+
let isExternal = false;
|
|
4084
|
+
try {
|
|
4085
|
+
const u = new URL(url);
|
|
4086
|
+
const host = (u.hostname || '').toLowerCase();
|
|
4087
|
+
isExternal = !(host === 'localhost' || host === '127.0.0.1' || host === '0.0.0.0' || host === '::1' || host === '[::1]');
|
|
4088
|
+
} catch (_) { isExternal = false; }
|
|
4089
|
+
|
|
4090
|
+
if (isExternal) {
|
|
4091
|
+
let opened = false;
|
|
4092
|
+
if (typeof window !== 'undefined' && typeof window.open === 'function') {
|
|
4093
|
+
try {
|
|
4094
|
+
const win = window.open(url, '_blank');
|
|
4095
|
+
if (win) {
|
|
4096
|
+
try { win.opener = null; } catch (_) {}
|
|
4097
|
+
opened = true;
|
|
4098
|
+
}
|
|
4099
|
+
} catch (_) { opened = false; }
|
|
4100
|
+
}
|
|
4101
|
+
if (typeof this._showToast === 'function') {
|
|
4102
|
+
this._showToast(
|
|
4103
|
+
opened ? `Opened ${url} in a new tab` : `Could not open ${url} — allow pop-ups and try again`,
|
|
4104
|
+
opened ? 'info' : 'error'
|
|
4105
|
+
);
|
|
4106
|
+
}
|
|
4107
|
+
const inputEl = this.container.querySelector('#cl-preview-url-input');
|
|
4108
|
+
if (inputEl) inputEl.value = this.previewState.url || inputEl.value;
|
|
4109
|
+
return Promise.resolve();
|
|
4110
|
+
}
|
|
4111
|
+
|
|
3958
4112
|
let port = this.previewState.port;
|
|
3959
4113
|
let path = '/';
|
|
3960
4114
|
try {
|
|
@@ -4064,7 +4218,7 @@ declare module 'bun:sqlite' {
|
|
|
4064
4218
|
<button type="button" class="codelab-preview-btn" data-cl-action="preview-reload" title="Reload">${CL_ICONS.refresh || '⟳'}</button>
|
|
4065
4219
|
</div>
|
|
4066
4220
|
<select class="codelab-preview-port-select" data-cl-action="preview-port-change" aria-label="Preview port">${portOptions}</select>
|
|
4067
|
-
<input type="text" class="codelab-preview-url-input" id="cl-preview-url-input" value="${escapeHtml(this.previewState.url)}" placeholder="
|
|
4221
|
+
<input type="text" class="codelab-preview-url-input" id="cl-preview-url-input" value="${escapeHtml(this.previewState.url)}" placeholder="127.0.0.1:3000/ or https://example.com" aria-label="Preview URL" title="Localhost/virtual ports load in-frame; public URLs open in a new tab" />
|
|
4068
4222
|
<div class="codelab-preview-modes">
|
|
4069
4223
|
<button type="button" class="codelab-preview-btn ${this.previewState.frameMode === 'desktop' ? 'active' : ''}" data-cl-action="preview-mode" data-mode="desktop" title="Desktop">${CL_ICONS.monitor || '▭'}</button>
|
|
4070
4224
|
<button type="button" class="codelab-preview-btn ${this.previewState.frameMode === 'tablet' ? 'active' : ''}" data-cl-action="preview-mode" data-mode="tablet" title="Tablet">${CL_ICONS.tablet || '▢'}</button>
|
|
@@ -4683,6 +4837,11 @@ declare module 'bun:sqlite' {
|
|
|
4683
4837
|
this._previewGo(previewInput.value);
|
|
4684
4838
|
return;
|
|
4685
4839
|
}
|
|
4840
|
+
if (e.key === 'Escape' && this.folderSwitcherOpen) {
|
|
4841
|
+
this.folderSwitcherOpen = false;
|
|
4842
|
+
this._renderBreadcrumbs();
|
|
4843
|
+
return;
|
|
4844
|
+
}
|
|
4686
4845
|
if (e.key === 'F1' || ((e.metaKey || e.ctrlKey) && e.shiftKey && keyLower === 'p')) {
|
|
4687
4846
|
e.preventDefault();
|
|
4688
4847
|
this.openCommandPalette('commands');
|
|
@@ -4883,12 +5042,39 @@ declare module 'bun:sqlite' {
|
|
|
4883
5042
|
return;
|
|
4884
5043
|
}
|
|
4885
5044
|
|
|
5045
|
+
const fsToggle = e.target.closest('[data-cl-action="toggle-folder-switcher"]');
|
|
5046
|
+
if (fsToggle) {
|
|
5047
|
+
e.stopPropagation();
|
|
5048
|
+
this.folderSwitcherOpen = !this.folderSwitcherOpen;
|
|
5049
|
+
this._renderBreadcrumbs();
|
|
5050
|
+
return;
|
|
5051
|
+
}
|
|
5052
|
+
|
|
5053
|
+
const fsOption = e.target.closest('[data-cl-folder-option]');
|
|
5054
|
+
if (fsOption) {
|
|
5055
|
+
e.stopPropagation();
|
|
5056
|
+
const scopeVal = fsOption.dataset.clFolderOption || '';
|
|
5057
|
+
this.explorerFolder = scopeVal;
|
|
5058
|
+
if (scopeVal) this.collapsedFolders.delete(scopeVal);
|
|
5059
|
+
this.folderSwitcherOpen = false;
|
|
5060
|
+
this._renderFileLists();
|
|
5061
|
+
this._renderBreadcrumbs();
|
|
5062
|
+
return;
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
if (this.folderSwitcherOpen && !e.target.closest('.codelab-folder-switcher')) {
|
|
5066
|
+
this.folderSwitcherOpen = false;
|
|
5067
|
+
this._renderBreadcrumbs();
|
|
5068
|
+
}
|
|
5069
|
+
|
|
4886
5070
|
const bcFolder = e.target.closest('[data-cl-breadcrumb-folder]');
|
|
4887
5071
|
if (bcFolder) {
|
|
4888
5072
|
const folder = bcFolder.dataset.clBreadcrumbFolder;
|
|
4889
5073
|
if (folder) {
|
|
4890
5074
|
this.collapsedFolders.delete(folder);
|
|
5075
|
+
this.explorerFolder = folder;
|
|
4891
5076
|
this._renderFileLists();
|
|
5077
|
+
this._renderBreadcrumbs();
|
|
4892
5078
|
}
|
|
4893
5079
|
return;
|
|
4894
5080
|
}
|
|
@@ -5023,10 +5209,10 @@ declare module 'bun:sqlite' {
|
|
|
5023
5209
|
this.isCreatingFile = true;
|
|
5024
5210
|
this._renderFileLists();
|
|
5025
5211
|
} else if (action === 'new-file-root') {
|
|
5026
|
-
this.creatingItem = { type: 'file', parentFolder: '' };
|
|
5212
|
+
this.creatingItem = { type: 'file', parentFolder: this.explorerFolder || '' };
|
|
5027
5213
|
this._renderFileLists();
|
|
5028
5214
|
} else if (action === 'new-folder-root') {
|
|
5029
|
-
this.creatingItem = { type: 'folder', parentFolder: '' };
|
|
5215
|
+
this.creatingItem = { type: 'folder', parentFolder: this.explorerFolder || '' };
|
|
5030
5216
|
this._renderFileLists();
|
|
5031
5217
|
} else if (action === 'new-file-folder') {
|
|
5032
5218
|
const folder = actionBtn.dataset.clFolder || '';
|