erweiterte ansicht
This commit is contained in:
151
public/app.js
151
public/app.js
@@ -200,6 +200,9 @@ let rootPaths = [] // all shown projects folders
|
||||
let roots = [] // registered projects folders [{ id, name, path }]
|
||||
let activeRoots = [] // ids of the shown ones (several possible)
|
||||
const multiRoot = () => activeRoots.length > 1
|
||||
// optional features (Einstellungen → Allgemein → Funktionen)
|
||||
let FEATURES = { itch: false }
|
||||
const itchOn = () => !!FEATURES.itch
|
||||
|
||||
async function load() {
|
||||
const res = await fetch(`/api/projects?target=${encodeURIComponent(curTargetId())}`)
|
||||
@@ -213,6 +216,8 @@ async function load() {
|
||||
roots = data.roots ?? []
|
||||
activeRoots = data.activeRoots ?? (data.activeRoot ? [data.activeRoot] : [])
|
||||
BACKUP_FRESH_DAYS = data.remindDays ?? 7
|
||||
FEATURES = data.features ?? { itch: false }
|
||||
document.body.classList.toggle('no-itch', !itchOn())
|
||||
renderRootPicker()
|
||||
if (editing) editing = projects.find((p) => p.name === editing.name) ?? editing
|
||||
render()
|
||||
@@ -544,7 +549,9 @@ async function openSettings(setup) {
|
||||
syncAuto()
|
||||
renderAutoStatus()
|
||||
document.getElementById('fItchProfile').value = s.itchProfile ?? ''
|
||||
loadItchStatus()
|
||||
document.getElementById('fFeatItch').checked = !!s.features?.itch
|
||||
syncFeatures()
|
||||
if (s.features?.itch) loadItchStatus()
|
||||
document.getElementById('spData').innerHTML = s.dataDir
|
||||
? `<div>Einstellungen</div><div><code>${escapeHtml(s.dataDir)}</code></div>
|
||||
<div>Scan- & Backup-Stand</div><div>im selben Ordner (<code>scan.json</code>, <code>backup.json</code>)</div>
|
||||
@@ -611,6 +618,7 @@ async function saveSettings() {
|
||||
target: document.getElementById('fAutoTarget').value || 'all',
|
||||
},
|
||||
itchProfile: document.getElementById('fItchProfile').value,
|
||||
features: { itch: document.getElementById('fFeatItch').checked },
|
||||
}
|
||||
const btn = document.getElementById('spSave')
|
||||
btn.disabled = true
|
||||
@@ -662,6 +670,18 @@ function renderAutoStatus() {
|
||||
}
|
||||
|
||||
/* settings tabs, dirty marker, Ctrl+S */
|
||||
// the itch.io tab follows the switch right away (saved with "Speichern")
|
||||
function syncFeatures() {
|
||||
const on = document.getElementById('fFeatItch').checked
|
||||
const btn = document.querySelector('#spTabs button[data-stab="itch"]')
|
||||
btn.style.display = on ? '' : 'none'
|
||||
if (!on && btn.classList.contains('active')) setSettingsTab('general')
|
||||
}
|
||||
document.getElementById('fFeatItch').addEventListener('change', () => {
|
||||
syncFeatures()
|
||||
if (document.getElementById('fFeatItch').checked) loadItchStatus()
|
||||
})
|
||||
|
||||
function setSettingsTab(tab) {
|
||||
for (const b of document.querySelectorAll('#spTabs button')) b.classList.toggle('active', b.dataset.stab === tab)
|
||||
for (const p of document.querySelectorAll('#spanel [data-spane]')) p.hidden = p.dataset.spane !== tab
|
||||
@@ -998,8 +1018,8 @@ const QUICK = [
|
||||
{ key: 'install', label: 'npm install', icon: 'download', test: (p) => p.tech?.needsInstall },
|
||||
{ key: 'noicon', label: 'Ohne Icon', icon: 'image-off', test: (p) => !p.hasIcon },
|
||||
{ key: 'gencopy', label: 'Generator-Kopie', icon: 'copy', test: (p) => p.tools?.generators?.some((g) => g.kind === 'copy') },
|
||||
{ key: 'itch', label: 'itch.io', icon: 'rocket', test: (p) => !!p.published },
|
||||
{ key: 'noitch', label: 'Fertig, nicht auf itch', icon: 'circle-off', test: (p) => p.status === 'done' && !p.published },
|
||||
{ key: 'itch', label: 'itch.io', icon: 'rocket', feature: 'itch', test: (p) => !!p.published },
|
||||
{ key: 'noitch', label: 'Fertig, nicht auf itch', icon: 'circle-off', feature: 'itch', test: (p) => p.status === 'done' && !p.published },
|
||||
]
|
||||
|
||||
function matchesSearch(p) {
|
||||
@@ -1055,7 +1075,9 @@ function renderKpis() {
|
||||
|
||||
function renderQuickFilters() {
|
||||
const base = projects.filter(matchesSearch)
|
||||
document.getElementById('chipfilters').innerHTML = QUICK.map((q) => {
|
||||
// a filter of a switched-off feature (Einstellungen → Allgemein) is gone; if it was active: back to "Alle"
|
||||
if (QUICK.some((q) => q.key === quickFilter && q.feature && !FEATURES[q.feature])) quickFilter = 'all'
|
||||
document.getElementById('chipfilters').innerHTML = QUICK.filter((q) => !q.feature || FEATURES[q.feature]).map((q) => {
|
||||
const n = base.filter(q.test).length
|
||||
if (q.key !== 'all' && n === 0 && quickFilter !== q.key) return ''
|
||||
return `<button class="fchip ${quickFilter === q.key ? 'active' : ''}" data-q="${q.key}" title="${q.label}">${ic(q.icon, 'sm')}<span class="fl">${q.label}</span><span class="n">${n}</span></button>`
|
||||
@@ -1069,6 +1091,7 @@ function render() {
|
||||
renderKpis()
|
||||
renderQuickFilters()
|
||||
updateToolbarForView()
|
||||
renderHome()
|
||||
renderBoard()
|
||||
renderGallery()
|
||||
renderList()
|
||||
@@ -1314,13 +1337,92 @@ function renderList() {
|
||||
|
||||
// views with their own header (no project KPIs / filter toolbar)
|
||||
const WIDE_VIEWS = ['storage', 'activity']
|
||||
/* ── simple / advanced view (switch in the header) ────────────────────── */
|
||||
|
||||
// simple: calm tiles, only the essentials; advanced: everything. Stored per
|
||||
// browser (dash.mode). Default: advanced for an existing setup (a view was
|
||||
// stored before), simple for a fresh one.
|
||||
let uiMode = 'advanced'
|
||||
function lastAdvView() {
|
||||
try { const v = localStorage.getItem('dash.advView'); if (['board', 'gallery', 'list'].includes(v)) return v } catch {}
|
||||
return 'board'
|
||||
}
|
||||
function initUiMode() {
|
||||
let m = null
|
||||
try { m = localStorage.getItem('dash.mode') ?? (localStorage.getItem('dash.view') ? 'advanced' : 'simple') } catch {}
|
||||
m = new URLSearchParams(location.search).get('ui') ?? m
|
||||
applyUiMode(m === 'simple' ? 'simple' : 'advanced')
|
||||
}
|
||||
function applyUiMode(m) {
|
||||
uiMode = m
|
||||
document.body.classList.toggle('simple', m === 'simple')
|
||||
for (const b of document.querySelectorAll('#modeSeg button')) b.classList.toggle('active', b.dataset.ui === m)
|
||||
}
|
||||
function setUiMode(m) {
|
||||
applyUiMode(m)
|
||||
try { localStorage.setItem('dash.mode', m) } catch {}
|
||||
setView(m === 'simple' ? (ADV_VIEWS.includes(activeView) ? 'home' : activeView) : (activeView === 'home' ? lastAdvView() : activeView))
|
||||
render()
|
||||
if (editing) { openEditor(editing); }
|
||||
}
|
||||
for (const b of document.querySelectorAll('#modeSeg button')) b.onclick = () => setUiMode(b.dataset.ui)
|
||||
|
||||
// "Projekte" page of the simple view: status pills + tiles, newest first
|
||||
let homeStatus = 'all'
|
||||
const HOME_PILLS = [
|
||||
{ key: 'all', label: 'Alle', test: (p) => p.status !== 'archived' },
|
||||
{ key: 'active', label: 'Aktiv' }, { key: 'idea', label: 'Ideen' }, { key: 'paused', label: 'Pausiert' },
|
||||
{ key: 'done', label: 'Fertig' }, { key: 'archived', label: 'Archiv' },
|
||||
]
|
||||
const pillTest = (q) => q.test ?? ((p) => p.status === q.key)
|
||||
function renderHome() {
|
||||
const base = projects.filter(matchesSearch)
|
||||
document.getElementById('homeBar').innerHTML = HOME_PILLS.map((q) => {
|
||||
const n = base.filter(pillTest(q)).length
|
||||
if (q.key !== 'all' && !n && homeStatus !== q.key) return ''
|
||||
return `<button type="button" class="hpill ${homeStatus === q.key ? 'active' : ''}" data-hs="${q.key}">${q.label}<span class="n">${n}</span></button>`
|
||||
}).join('')
|
||||
for (const b of document.querySelectorAll('#homeBar .hpill')) b.onclick = () => { homeStatus = b.dataset.hs; renderHome() }
|
||||
const pill = HOME_PILLS.find((q) => q.key === homeStatus) ?? HOME_PILLS[0]
|
||||
const items = base.filter(pillTest(pill)).sort((a, b) => new Date(lastActivity(b)) - new Date(lastActivity(a)))
|
||||
const grid = document.getElementById('homeGrid')
|
||||
if (!items.length) { grid.innerHTML = `<div class="empty">${ic('search-x', 'xl')}<div>Keine Projekte gefunden.</div></div>`; return }
|
||||
grid.innerHTML = ''
|
||||
for (const p of items) {
|
||||
const desc = (p.description || p.notes || '').split(/\r?\n/).map((x) => x.trim()).find(Boolean) ?? ''
|
||||
const due = backupDue(p)
|
||||
const tile = document.createElement('div')
|
||||
tile.className = 'htile'
|
||||
tile.innerHTML = `
|
||||
<div class="hhead">
|
||||
<div class="hicon" style="--c:${nameColor(p.name)}">${escapeHtml(initialsOf(p.name))}<img loading="lazy" src="${thumbUrl(p.name)}" alt="" onerror="this.remove()"></div>
|
||||
<div style="min-width:0;flex:1">
|
||||
<div class="hname" title="${escapeHtml(p.name)}">${escapeHtml(p.name)}</div>
|
||||
<div class="hsub">${statusHtml(p.status)}${rootTag(p, true)}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hdesc ${desc ? '' : 'none'}" title="${escapeHtml(desc)}">${desc ? escapeHtml(desc) : 'Keine Beschreibung'}</div>
|
||||
<div class="hfoot">
|
||||
${due ? `<span class="hdue" title="${escapeHtml(cloudInfo(p).label)}"></span>` : ''}
|
||||
<span class="when" title="${escapeHtml(changeTitle(p))}">${timeAgo(lastActivity(p))}</span>
|
||||
${qsGroup(p, false, true)}
|
||||
</div>`
|
||||
wireQuickStart(tile, p)
|
||||
tile.onclick = () => openEditor(p)
|
||||
grid.appendChild(tile)
|
||||
}
|
||||
}
|
||||
|
||||
const ADV_VIEWS = ['board', 'gallery', 'list']
|
||||
function setView(view) {
|
||||
if (uiMode === 'simple' && ADV_VIEWS.includes(view)) view = 'home'
|
||||
if (uiMode === 'advanced' && view === 'home') view = lastAdvView()
|
||||
activeView = view
|
||||
for (const el of document.querySelectorAll('.view')) el.classList.toggle('active', el.id === view)
|
||||
for (const btn of document.querySelectorAll('#tabs button')) btn.classList.toggle('active', btn.dataset.view === view)
|
||||
document.body.classList.toggle('view-wide', WIDE_VIEWS.includes(view))
|
||||
updateToolbarForView()
|
||||
try { localStorage.setItem('dash.view', view) } catch {}
|
||||
try { localStorage.setItem('dash.view', view); if (ADV_VIEWS.includes(view)) localStorage.setItem('dash.advView', view) } catch {}
|
||||
if (view === 'storage') loadStorage()
|
||||
if (view === 'activity') loadActivity()
|
||||
}
|
||||
@@ -1928,7 +2030,7 @@ const inProject = (p, folder) => {
|
||||
|
||||
// opts: { id } for jump targets, { right } html at the end of the heading
|
||||
function section(icon, title, body, opts = {}) {
|
||||
return `<div class="card-sec"${opts.id ? ` id="${opts.id}"` : ''}><h4>${ic(icon)}${title}${opts.right ? `<span class="h4r">${opts.right}</span>` : ''}</h4>${body}</div>`
|
||||
return `<div class="card-sec${opts.adv ? ' adv' : ''}"${opts.id ? ` id="${opts.id}"` : ''}><h4>${ic(icon)}${title}${opts.right ? `<span class="h4r">${opts.right}</span>` : ''}</h4>${body}</div>`
|
||||
}
|
||||
// "→ in Aktionen": switches the tab and scrolls to the section
|
||||
const jumpLink = (id, label = 'Aktionen') => `<a href="#" class="jump" data-jump="${id}">${label}${ic('arrow-right', 'sm')}</a>`
|
||||
@@ -1949,7 +2051,7 @@ function renderInfo(name, d) {
|
||||
const c = cloudInfo(p)
|
||||
const overview = `<div class="kv">
|
||||
<div>Ordner</div><div><code>${escapeHtml(d.path)}</code></div>
|
||||
<div>Status</div><div>${statusHtml(p.status)} <span class="hint">· Priorität ${PRIO_LABEL[p.priority] ?? '–'}</span></div>
|
||||
<div class="adv">Status</div><div class="adv">${statusHtml(p.status)} <span class="hint">· Priorität ${PRIO_LABEL[p.priority] ?? '–'}</span></div>
|
||||
<div>Geändert</div><div title="${escapeHtml(changeTitle(p))}">${fmtDate(lastActivity(p))} · ${timeAgo(lastActivity(p))}${p.lastChange?.file ? ` <span class="hint">· ${escapeHtml(p.lastChange.file)}</span>` : ''}</div>
|
||||
<div>Backup</div><div title="${escapeHtml(c.label)}"><span class="bk ${c.level}">${ic('hard-drive', 'sm')}${escapeHtml(c.short)}</span>${backupDue(p) ? ' <span class="chip warn">fällig</span>' : ''}</div>
|
||||
<div>Größe</div><div>${s ? `<b>${fmtMB(s.sizeMB)}</b> <span class="hint">· gescannt ${timeAgo(s.at)}${del >= 1 ? ` · ${fmtMB(del)} aufräumbar` : ''}</span>` : '<span class="hint">noch nicht gescannt</span>'}</div>
|
||||
@@ -2012,14 +2114,14 @@ function renderInfo(name, d) {
|
||||
el.innerHTML =
|
||||
section('notebook-text', 'Beschreibung', `<div class="pdesc-view">${descBody}</div>${descEdit}`,
|
||||
{ id: 'info-desc', right: `<a href="#" class="jump" id="btnDescEdit">${ic('pencil', 'sm')}${desc ? 'Ändern' : 'Schreiben'}</a>` }) +
|
||||
section('info', 'Übersicht', overview, { right: del >= 1 ? jumpLink('act-clean', 'Aufräumen') : '' }) +
|
||||
section('git-branch', 'Git', gitBody, { right: jumpLink('act-git', g.isRepo ? 'Push & Remote' : 'Einrichten') }) +
|
||||
(name === '_Tools' ? '' : section('rocket', 'itch.io', itchBody, { right: jumpLink('act-itch', ip.exists ? 'Ansehen' : 'Erzeugen') })) +
|
||||
section('cpu', 'Technik', `<div class="chips">${techChips(d.tech.types) || '<span class="hint">nicht erkannt</span>'}${d.tech.needsInstall ? `<span class="chip warn">${ic('download', 'sm')}npm install nötig</span>` : ''}</div>`) +
|
||||
section('info', 'Übersicht', overview, { right: del >= 1 ? `<span class="adv">${jumpLink('act-clean', 'Aufräumen')}</span>` : '' }) +
|
||||
section('git-branch', 'Git', gitBody, { adv: true, right: jumpLink('act-git', g.isRepo ? 'Push & Remote' : 'Einrichten') }) +
|
||||
(name === '_Tools' || !itchOn() ? '' : section('rocket', 'itch.io', itchBody, { adv: true, right: jumpLink('act-itch', ip.exists ? 'Ansehen' : 'Erzeugen') })) +
|
||||
section('cpu', 'Technik', `<div class="chips">${techChips(d.tech.types) || '<span class="hint">nicht erkannt</span>'}${d.tech.needsInstall ? `<span class="chip warn">${ic('download', 'sm')}npm install nötig</span>` : ''}</div>`, { adv: true }) +
|
||||
`<div class="card-sec"><h4>${ic('activity')}Aktivität <span class="hint" style="font-weight:400;margin:0 0 0 auto" id="actMiniInfo"></span></h4><div id="actMini" class="hmini"><span class="hint">wird geladen…</span></div></div>` +
|
||||
section('file-archive', 'Release-Archive', arcBody, { right: jumpLink('act-zip', 'ZIP erstellen') }) +
|
||||
section('wand-sparkles', 'Generator', genBody) +
|
||||
section('image', 'App-Icon', iconBody)
|
||||
section('file-archive', 'Release-Archive', arcBody, { adv: true, right: jumpLink('act-zip', 'ZIP erstellen') }) +
|
||||
section('wand-sparkles', 'Generator', genBody, { adv: true }) +
|
||||
section('image', 'App-Icon', iconBody, { adv: true })
|
||||
bindJumps(el)
|
||||
bindDescription(name, d, el)
|
||||
loadProjectActivity(name)
|
||||
@@ -2174,7 +2276,7 @@ function renderActions(name, d) {
|
||||
}).join('')}</div>`
|
||||
: `<div class="hint" style="margin-top:0">Keine fertige exe oder HTML-Seite im Projekt gefunden.${hasBuild ? ' Unter „Bauen“ erzeugen, dann hier starten.' : ''}</div>`)
|
||||
+ (prog?.missing ? `<div class="hint warn">${ic('triangle-alert', 'sm')} Festgelegte Datei fehlt: <b>${escapeHtml(prog.rel)}</b> – neu wählen oder zurücksetzen.</div>` : '')
|
||||
+ `<details class="progset"${prog?.missing ? ' open' : ''}>
|
||||
+ `<details class="progset adv"${prog?.missing ? ' open' : ''}>
|
||||
<summary>${ic('pin', 'sm')}Für ▶ starten festlegen${prog ? `: <b>${escapeHtml(prog.rel)}</b>` : ' (automatisch)'}</summary>
|
||||
<div class="pickrow">
|
||||
<input type="text" id="fProgram" placeholder="z. B. release\\Spiel.exe oder game\\index.html" value="${escapeHtml(prog?.rel ?? '')}">
|
||||
@@ -2187,7 +2289,7 @@ function renderActions(name, d) {
|
||||
|
||||
const btnGroup = (g) => groups[g]
|
||||
? section(ACTION_ICON[g], g, `<div class="actgroup">${groups[g].map((a) =>
|
||||
`<button class="btn act ${g === 'Starten' || g === 'Einrichten' ? 'primary' : ''}" data-id="${escapeHtml(a.id)}" ${a.detail ? `title="${escapeHtml(a.detail)}"` : ''}>${ic(ACT_ICON(a))}${escapeHtml(a.label)}</button>`).join('')}</div>`)
|
||||
`<button class="btn act ${g === 'Starten' || g === 'Einrichten' ? 'primary' : ''}" data-id="${escapeHtml(a.id)}" ${a.detail ? `title="${escapeHtml(a.detail)}"` : ''}>${ic(ACT_ICON(a))}${escapeHtml(a.label)}</button>`).join('')}</div>`, { adv: !['Starten', 'Öffnen'].includes(g) })
|
||||
: ''
|
||||
const head = (icon, title) => `<div class="agroup-h">${ic(icon, 'sm')}${title}</div>`
|
||||
const tools = name === '_Tools'
|
||||
@@ -2200,15 +2302,15 @@ function renderActions(name, d) {
|
||||
+ section('app-window', 'Programm', progHtml)
|
||||
+ btnGroup('Starten') + btnGroup('Einrichten') + btnGroup('Bauen')
|
||||
+ head('shield-check', 'Sichern & Versionieren')
|
||||
+ section('git-branch', 'Git', gitActionsHtml(name, d), { id: 'act-git' })
|
||||
+ section('git-branch', 'Git', gitActionsHtml(name, d), { id: 'act-git', adv: true })
|
||||
+ (tools ? '' : section('hard-drive-upload', 'Backup', '<div id="pbackupBody"></div>', { id: 'act-backup' }))
|
||||
+ head('rocket', 'Veröffentlichen')
|
||||
+ section('file-archive', 'Release-ZIP', archiveHtml(name, d), { id: 'act-zip' })
|
||||
+ (tools ? '' : section('rocket', 'itch.io-Seite', itchActionHtml(name, d), { id: 'act-itch' }))
|
||||
+ section('file-archive', 'Release-ZIP', archiveHtml(name, d), { id: 'act-zip', adv: true })
|
||||
+ (tools || !itchOn() ? '' : section('rocket', 'itch.io-Seite', itchActionHtml(name, d), { id: 'act-itch', adv: true }))
|
||||
+ head('brush-cleaning', 'Aufräumen')
|
||||
+ section('hard-drive', 'Speicher', cleanHtml(d), { id: 'act-clean' })
|
||||
+ section('hard-drive', 'Speicher', cleanHtml(d), { id: 'act-clean', adv: true })
|
||||
+ (groups['Werkzeuge'] || groups['Öffnen'] ? head('wrench', 'Werkzeuge') + btnGroup('Werkzeuge') + btnGroup('Öffnen') : '')
|
||||
+ `<div class="hint" style="margin-top:12px">${ic('shield-check', 'sm')} Programme starten direkt, Befehle und .bat laufen sichtbar in einem eigenen Konsolenfenster. Eigenen Start-Befehl unter „Bearbeiten“ festlegen.</div>`
|
||||
+ `<div class="hint adv" style="margin-top:12px">${ic('shield-check', 'sm')} Programme starten direkt, Befehle und .bat laufen sichtbar in einem eigenen Konsolenfenster. Eigenen Start-Befehl unter „Bearbeiten“ festlegen.</div>`
|
||||
|
||||
for (const btn of el.querySelectorAll('.act')) btn.onclick = () => runAction(name, btn.dataset.id)
|
||||
for (const btn of el.querySelectorAll('.pin')) btn.onclick = () => setProgram(name, btn.dataset.rel)
|
||||
@@ -2673,7 +2775,7 @@ function openEditor(p) {
|
||||
editingTasks = (p.tasks ?? []).map((t) => ({ ...t }))
|
||||
document.getElementById('pAvatar').innerHTML = avatar(p, 'lg')
|
||||
document.getElementById('panelTitle').textContent = p.name
|
||||
document.getElementById('panelSub').innerHTML = `${statusHtml(p.status)}${gitHtml(p.git, true)}${techChips(p.tech?.types)}${pubChip(p)}`
|
||||
document.getElementById('panelSub').innerHTML = uiMode === 'simple' ? `${statusHtml(p.status)}${rootTag(p)}` : `${statusHtml(p.status)}${gitHtml(p.git, true)}${techChips(p.tech?.types)}${pubChip(p)}`
|
||||
document.getElementById('fStatus').value = p.status
|
||||
document.getElementById('fPriority').value = p.priority
|
||||
document.getElementById('fTags').value = (p.tags ?? []).join(', ')
|
||||
@@ -2972,10 +3074,13 @@ document.addEventListener('keydown', (e) => {
|
||||
|
||||
// Deep links: #gallery, #list, #board/<Projekt> (opens the panel), #list/<Projekt>/info
|
||||
const [hashView, hashProject, hashSec] = decodeURIComponent(location.hash.slice(1)).split('/')
|
||||
const VIEWS = ['board', 'gallery', 'list', 'tasks', 'storage', 'activity']
|
||||
const VIEWS = ['home', 'board', 'gallery', 'list', 'tasks', 'storage', 'activity']
|
||||
initTheme()
|
||||
initUiMode()
|
||||
if (VIEWS.includes(hashView)) setView(hashView)
|
||||
else try { const v = localStorage.getItem('dash.view'); if (VIEWS.includes(v)) setView(v) } catch {}
|
||||
// nothing stored (first start): the simple view starts on its tile page
|
||||
if (uiMode === 'simple' && ADV_VIEWS.includes(activeView)) setView('home')
|
||||
function openFromHash(project, sec) {
|
||||
const p = project && projects.find((x) => x.name === project)
|
||||
if (p) { openEditor(p); if (sec) setSection(sec) }
|
||||
|
||||
Reference in New Issue
Block a user