add dashboard
This commit is contained in:
920
public/app.js
920
public/app.js
File diff suppressed because it is too large
Load Diff
@@ -16,6 +16,10 @@
|
||||
--shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
|
||||
--shadow-lg: 0 12px 32px rgba(16,24,40,.14);
|
||||
--radius: 12px;
|
||||
/* storage page: what a folder is (validated categorical slots blue/orange/aqua) */
|
||||
--t-cache: #eb6834; --t-release: #2a78d6; --t-output: #1baf7a; --t-rest: #e7eaf1; --t-rest-ink: #151823;
|
||||
/* activity heatmap: one hue, near-zero recedes to the surface */
|
||||
--h0: #eef0f4; --h1: #b7d3f6; --h2: #6da7ec; --h3: #2a78d6; --h4: #184f95;
|
||||
color-scheme: light;
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
@@ -26,6 +30,8 @@
|
||||
--red: #f87171; --red-soft: #3b1717; --blue: #60a5fa; --blue-soft: #172a4a;
|
||||
--violet: #a78bfa; --violet-soft: #2a1f47; --cyan: #67e8f9; --cyan-soft: #0f2e35;
|
||||
--shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 16px 40px rgba(0,0,0,.5);
|
||||
--t-cache: #d95926; --t-release: #3987e5; --t-output: #199e70; --t-rest: #272c39; --t-rest-ink: #e8eaf1;
|
||||
--h0: #1e222d; --h1: #104281; --h2: #256abf; --h3: #3987e5; --h4: #86b6ef;
|
||||
color-scheme: dark;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
@@ -45,6 +51,10 @@
|
||||
.brand .logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 12px rgba(99,102,241,.35); }
|
||||
.brand h1 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
|
||||
.brand .count { color: var(--muted); font-size: 12px; }
|
||||
.updbanner { display: flex; align-items: center; gap: 10px; padding: 8px 22px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; border-top: 1px solid var(--border); }
|
||||
.updbanner[hidden] { display: none; }
|
||||
.updbanner span { flex: 1; min-width: 0; }
|
||||
.updbanner .btn { padding: 5px 12px; }
|
||||
.rootpick { position: relative; }
|
||||
#rootBtn { display: flex; align-items: center; gap: 5px; border: none; background: none; padding: 2px 6px; margin: -2px -6px; border-radius: 7px; cursor: pointer; max-width: 260px; }
|
||||
#rootBtn h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
@@ -63,7 +73,8 @@
|
||||
.rootmenu .rmbox[aria-checked="true"] { color: var(--accent-text); }
|
||||
.rootmenu .rmbox .i { width: 16px; height: 16px; }
|
||||
.rtag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; margin-left: 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
|
||||
.card .sub .rtag { margin-left: 0; }
|
||||
.card .rootline { margin-top: 6px; }
|
||||
.card .rootline .rtag { margin-left: 0; max-width: 100%; }
|
||||
.rootmenu .sep { height: 1px; background: var(--border); margin: 5px 2px; }
|
||||
.seg { display: flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 10px; border: 1px solid var(--border); }
|
||||
.seg button { border: none; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; }
|
||||
@@ -273,6 +284,94 @@
|
||||
.toolbar { padding: 10px 22px 0; }
|
||||
main { flex: 1 1 auto; min-height: 0; padding: 10px 22px 14px; overflow: hidden; container-type: inline-size; container-name: main; }
|
||||
.view.active { height: 100%; }
|
||||
/* activity page */
|
||||
#activity.active { overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
|
||||
.heatscroll { overflow-x: auto; padding-bottom: 4px; }
|
||||
.heat { display: grid; grid-template-columns: 26px repeat(53, 13px); grid-template-rows: 16px repeat(7, 13px); gap: 3px; width: max-content; font-size: 10px; color: var(--muted); }
|
||||
.heat .ml { grid-row: 1; white-space: nowrap; }
|
||||
.heat .dl { grid-column: 1; line-height: 13px; }
|
||||
.hc { width: 13px; height: 13px; border-radius: 3px; background: var(--h0); cursor: pointer; padding: 0; border: none; }
|
||||
.hc[data-l="1"] { background: var(--h1); } .hc[data-l="2"] { background: var(--h2); } .hc[data-l="3"] { background: var(--h3); } .hc[data-l="4"] { background: var(--h4); }
|
||||
.hc.future { visibility: hidden; }
|
||||
.hc:hover, .hc:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
|
||||
.hc.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
|
||||
.hleg { display: inline-flex; gap: 3px; align-items: center; }
|
||||
.hleg .hc { cursor: default; width: 11px; height: 11px; }
|
||||
.acgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
||||
@container main (max-width: 900px) { .acgrid { grid-template-columns: 1fr; } }
|
||||
.aclist { display: flex; flex-direction: column; gap: 2px; }
|
||||
.aclist button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: none; background: none; padding: 6px 8px; margin: 0 -8px; border-radius: 7px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
|
||||
.aclist button:hover { background: var(--surface-2); }
|
||||
.aclist b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.aclist .m { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
||||
.hmini { overflow-x: auto; overflow-y: hidden; }
|
||||
/* the Info card sits on surface-2 - empty days need a step that stays visible there */
|
||||
.hmini .hc[data-l="0"] { background: var(--surface-3); }
|
||||
.hmini .heat { grid-template-columns: 22px repeat(26, 11px); grid-template-rows: 14px repeat(7, 11px); gap: 2px; }
|
||||
.hmini .hc { width: 11px; height: 11px; border-radius: 2px; cursor: default; }
|
||||
.hmini .dl { line-height: 11px; }
|
||||
/* storage page */
|
||||
#storage.active { overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
|
||||
body.view-wide .kpis, body.view-wide .toolbar { display: none; }
|
||||
.stwrap { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
|
||||
.stkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
|
||||
.stkpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
|
||||
.stkpi .lbl { font-size: 12px; color: var(--muted); }
|
||||
.stkpi .val { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
|
||||
.stkpi .sub { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
.stkpi .btn { align-self: flex-start; }
|
||||
.stbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-3); gap: 2px; }
|
||||
.stbar > span { display: block; height: 100%; min-width: 2px; }
|
||||
.stgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; }
|
||||
@container main (max-width: 1100px) { .stgrid { grid-template-columns: 1fr; } .stkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
.stcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; position: relative; }
|
||||
.sthead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
|
||||
.sth { margin: 0; font-size: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
|
||||
.stside .sth { margin-bottom: 10px; }
|
||||
.stcrumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; font-weight: 600; min-width: 0; flex: 1; }
|
||||
.stcrumbs button { border: none; background: none; padding: 3px 6px; border-radius: 6px; color: var(--accent-text); cursor: pointer; font: inherit; }
|
||||
.stcrumbs button:hover { background: var(--surface-2); }
|
||||
.stcrumbs .cur { padding: 3px 6px; }
|
||||
.stcrumbs .sep { color: var(--muted); }
|
||||
.stlegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
|
||||
.stlegend span { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.stlegend i, .sttier i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
|
||||
.treemap { position: relative; height: clamp(320px, 52vh, 620px); border-radius: 8px; overflow: hidden; background: var(--surface); }
|
||||
.tm { position: absolute; box-sizing: border-box; border: 1px solid var(--surface); border-radius: 4px; overflow: hidden; background: var(--t-rest); color: var(--t-rest-ink); cursor: pointer; padding: 6px 7px; display: flex; flex-direction: column; gap: 1px; transition: filter .12s; }
|
||||
.tm:hover, .tm:focus-visible { filter: brightness(1.08); outline: 2px solid var(--accent); outline-offset: -2px; z-index: 2; }
|
||||
.tm.flat { cursor: default; }
|
||||
.tm.flat:hover { outline: none; }
|
||||
.tm.t-Cache { background: var(--t-cache); color: #fff; }
|
||||
.tm.t-Release { background: var(--t-release); color: #fff; }
|
||||
.tm.t-Output { background: var(--t-output); color: #fff; }
|
||||
.tm .n { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.tm .v { font-size: 11px; opacity: .8; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
||||
.tm .dl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 5px; gap: 2px; }
|
||||
.tm .dl span { display: block; height: 100%; }
|
||||
.tmgroup { position: absolute; box-sizing: border-box; border-radius: 6px; }
|
||||
.tmgroup > .gl { position: absolute; left: 4px; top: 2px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 4px; }
|
||||
.sttip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 12px; max-width: 280px; color: var(--text); }
|
||||
.sttip b { display: block; font-size: 13px; margin-bottom: 2px; overflow-wrap: anywhere; }
|
||||
.sttip .r { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); }
|
||||
.sttip .r span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
|
||||
.stempty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
|
||||
.sttop { display: flex; flex-direction: column; gap: 8px; }
|
||||
.sttop button { display: flex; flex-direction: column; gap: 4px; border: none; background: none; padding: 4px 6px; margin: 0 -6px; border-radius: 7px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
|
||||
.sttop button:hover { background: var(--surface-2); }
|
||||
.sttop .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
|
||||
.sttop .row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.sttop .row span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.sttop .track { display: flex; height: 8px; gap: 2px; }
|
||||
.sttop .track span { display: block; height: 100%; border-radius: 0; }
|
||||
.sttop .track span:first-child { border-radius: 4px 0 0 4px; }
|
||||
.sttop .track span:last-child { border-radius: 0 4px 4px 0; }
|
||||
.sttop .track span:only-child { border-radius: 4px; }
|
||||
.sttop .track .rest { background: var(--border-strong); }
|
||||
.stdel { display: flex; align-items: center; gap: 10px; margin-left: auto; }
|
||||
.sttable td.num { font-variant-numeric: tabular-nums; text-align: right; }
|
||||
.sttable td.path { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; white-space: normal; }
|
||||
.sttable input { accent-color: var(--red); }
|
||||
.sttier { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
|
||||
#gallery.active { overflow-y: auto; overflow-x: hidden; padding: 2px 4px 8px 2px; }
|
||||
#list.active .tablewrap { max-height: 100%; overflow-y: auto; overflow-x: hidden; }
|
||||
|
||||
@@ -434,16 +533,13 @@
|
||||
.hint.warn { color: var(--danger, #c0392b); margin-top: 8px; }
|
||||
|
||||
/* ── settings panel ─────────────────────────────────────────────────── */
|
||||
#spanel { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .22s ease; z-index: 22; display: flex; flex-direction: column; }
|
||||
#spanel { position: fixed; top: 0; right: 0; bottom: 0; width: 720px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .22s ease; z-index: 22; display: flex; flex-direction: column; }
|
||||
#spanel.open { transform: none; }
|
||||
#spanel.setup #btnCloseSettings, #spanel.setup #spCancel { display: none; }
|
||||
.pickrow { display: flex; gap: 6px; }
|
||||
.pickrow input { flex: 1; min-width: 0; }
|
||||
.pickrow .btn { flex: 0 0 auto; }
|
||||
body.no-picker .pickbtn { display: none; }
|
||||
.trow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; gap: 6px; margin-bottom: 6px; align-items: center; }
|
||||
.trow input { min-width: 0; }
|
||||
body.no-picker .trow { grid-template-columns: 130px minmax(0, 1fr) auto; }
|
||||
.dlg { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; width: 480px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
|
||||
.dlg::backdrop { background: rgba(15, 23, 42, .45); }
|
||||
.dlg select, .dlg > form > input[type=text] { width: 100%; }
|
||||
@@ -451,10 +547,83 @@
|
||||
.dlg .hint { margin-top: 8px; }
|
||||
body.no-picker #rdPick { display: none; }
|
||||
.dlgfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
|
||||
.rrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto auto; gap: 6px; margin-bottom: 6px; align-items: center; }
|
||||
.rrow input { min-width: 0; }
|
||||
body.no-picker .rrow { grid-template-columns: 130px minmax(0, 1fr) auto auto; }
|
||||
.rrow.active .tname { border-color: var(--accent); }
|
||||
/* settings panel: tabs, lists of folders/targets, chips, footer */
|
||||
#spanel .phead { padding-bottom: 12px; }
|
||||
.sptabs { padding: 0 20px 12px; border-bottom: 1px solid var(--border); overflow-x: auto; }
|
||||
.sptabs .seg { width: max-content; }
|
||||
.sptabs .tabn { font-size: 10px; background: var(--surface-3); color: var(--muted); padding: 0 6px; border-radius: 9px; line-height: 16px; }
|
||||
.sptabs .tabn:empty { display: none; }
|
||||
.sptabs button.active .tabn { background: var(--accent-soft); color: var(--accent-text); }
|
||||
.sptabs button.has-err { color: var(--red); }
|
||||
.sptabs button.has-err::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
|
||||
#spanel .pbody { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
|
||||
.spane { display: flex; flex-direction: column; gap: 12px; }
|
||||
.spane[hidden] { display: none; }
|
||||
.sphead h4 { margin: 0; font-size: 14px; }
|
||||
.sphead p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
|
||||
.slist { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
|
||||
.slist:empty { display: none; }
|
||||
.sitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; background: var(--surface); }
|
||||
.sitem + .sitem { border-top: 1px solid var(--border); }
|
||||
.sitem:hover { background: var(--surface-2); }
|
||||
.sitem .fico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); border: 1px solid var(--border); }
|
||||
.sitem:hover .fico { background: var(--surface); }
|
||||
.sitem .smeta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
|
||||
.sitem .snm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
||||
.sitem input { border: 1px solid transparent; border-radius: 6px; padding: 1px 5px; margin-left: -6px; background: transparent; min-width: 0; outline: none; }
|
||||
.sitem .tname { font-weight: 650; font-size: 14px; max-width: 100%; }
|
||||
.spfield input[type=text], #fImport input[type=text] { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--surface); outline: none; }
|
||||
.spfield input[type=text]:focus, #fImport input[type=text]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
||||
.sitem .tpath { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 12px; color: var(--muted); width: 100%; text-overflow: ellipsis; }
|
||||
.sitem input:hover { border-color: var(--border); }
|
||||
.sitem input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
|
||||
.sbadge { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
|
||||
.sbadge .i { width: 11px; height: 11px; }
|
||||
.sbadge.main { background: var(--accent-soft); color: var(--accent-text); }
|
||||
.sbadge.on { background: var(--green-soft); color: var(--green); }
|
||||
.sbadge.warn { background: var(--yellow-soft); color: var(--yellow); }
|
||||
.sbadge.ok { background: var(--green-soft); color: var(--green); }
|
||||
.sstat { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
.sacts { display: flex; gap: 4px; }
|
||||
.ibtn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
|
||||
.ibtn:hover { color: var(--accent-text); border-color: var(--accent); }
|
||||
.ibtn.rm:hover { color: var(--red); border-color: var(--red); }
|
||||
.ibtn:disabled { opacity: .35; cursor: default; border-color: var(--border); color: var(--muted); }
|
||||
body.no-picker .ibtn.pickbtn { display: none; }
|
||||
.spfield { display: flex; flex-direction: column; gap: 6px; }
|
||||
.spfield > label { font-size: 12px; font-weight: 600; color: var(--muted); }
|
||||
.remindrow { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
||||
.remindrow input { width: 64px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; outline: none; }
|
||||
.remindrow input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
||||
.remindrow input[type=time] { width: auto; }
|
||||
.remindrow > span { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.remindrow > span[hidden] { display: none; }
|
||||
.autosel { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; outline: none; }
|
||||
.autosel:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
||||
.xchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: text; }
|
||||
.xchips:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
||||
.xchip { display: inline-flex; align-items: center; gap: 4px; font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 2px 4px 2px 8px; }
|
||||
.xchip button { border: none; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 4px; }
|
||||
.xchip button:hover { color: var(--red); background: var(--red-soft); }
|
||||
.xchips input { border: none; outline: none; background: none; flex: 1; min-width: 14ch; font-size: 12px; font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; padding: 2px; }
|
||||
details.more { font-size: 12px; color: var(--muted); }
|
||||
details.more summary { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-weight: 600; list-style: none; }
|
||||
details.more summary::-webkit-details-marker { display: none; }
|
||||
details.more > div { margin-top: 6px; padding: 10px 12px; background: var(--surface-2); border-radius: 9px; line-height: 1.55; }
|
||||
.spstatus { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
|
||||
.spstatus:empty { display: none; }
|
||||
.spstatus.ok { background: var(--green-soft); color: var(--green); }
|
||||
.spstatus.err { background: var(--red-soft); color: var(--red); }
|
||||
.spstatus a { color: inherit; font-weight: 600; }
|
||||
#spanel .kv { grid-template-columns: 150px minmax(0, 1fr); }
|
||||
#spError { margin: 0 20px 10px; }
|
||||
#spanel .pfoot { align-items: center; }
|
||||
#spanel .pfoot .btn { flex: 0 0 auto; padding: 8px 14px; }
|
||||
.spdirty { font-size: 12px; color: var(--yellow); display: flex; align-items: center; gap: 6px; visibility: hidden; }
|
||||
.spdirty::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
||||
#spanel.dirty .spdirty { visibility: visible; }
|
||||
.kbd { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
|
||||
@media (max-width: 560px) { .sitem .fico, .kbd { display: none; } .sitem { grid-template-columns: minmax(0, 1fr) auto; } }
|
||||
.rowbtns { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
.importbox { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-top: 8px; background: var(--surface-2); }
|
||||
.importbox[hidden] { display: none; }
|
||||
@@ -523,6 +692,8 @@
|
||||
<button data-view="gallery" title="Galerie"><svg class="i"><use href="/icons.svg#layout-grid"/></svg><span class="tl">Galerie</span></button>
|
||||
<button data-view="list" title="Liste"><svg class="i"><use href="/icons.svg#list"/></svg><span class="tl">Liste</span></button>
|
||||
<button data-view="tasks" title="Aufgaben"><svg class="i"><use href="/icons.svg#list-checks"/></svg><span class="tl">Aufgaben</span><span class="tabn" id="taskCount"></span></button>
|
||||
<button data-view="activity" title="Woran wurde wann gearbeitet"><svg class="i"><use href="/icons.svg#activity"/></svg><span class="tl">Aktivität</span></button>
|
||||
<button data-view="storage" title="Speicherplatz: wer belegt wie viel"><svg class="i"><use href="/icons.svg#hard-drive"/></svg><span class="tl">Speicher</span></button>
|
||||
</div>
|
||||
<div class="searchbox">
|
||||
<svg class="i"><use href="/icons.svg#search"/></svg>
|
||||
@@ -537,6 +708,11 @@
|
||||
<button data-mode="dark" title="Dunkel"><svg class="i"><use href="/icons.svg#moon"/></svg><span>Dunkel</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="updbanner" id="updBanner" hidden>
|
||||
<svg class="i"><use href="/icons.svg#refresh-cw"/></svg>
|
||||
<span id="updText"></span>
|
||||
<button class="btn primary" type="button" id="updBtn"></button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="kpis" id="kpis"></section>
|
||||
@@ -573,6 +749,54 @@
|
||||
<div id="board" class="view active"></div>
|
||||
<div id="gallery" class="view"><div id="galleryGrid"></div></div>
|
||||
<div id="list" class="view"><div class="tablewrap"><table class="list" id="listTable"></table></div></div>
|
||||
<div id="activity" class="view">
|
||||
<div class="stwrap">
|
||||
<div class="stkpis" id="acKpis"></div>
|
||||
<section class="stcard">
|
||||
<div class="sthead">
|
||||
<h4 class="sth">Aktivität im letzten Jahr <span class="hint" style="font-weight:400;margin:0" id="acPending"></span></h4>
|
||||
<div class="stlegend" id="acLegend"></div>
|
||||
</div>
|
||||
<div class="heatscroll"><div class="heat" id="acHeat" role="grid" aria-label="Aktive Projekte pro Tag"></div></div>
|
||||
<div class="hint">Ein Tag zählt, wenn an ihm Dateien zuletzt geändert oder Commits gemacht wurden. Dateien zeigen nur ihre <i>letzte</i> Änderung – Commits ergänzen die Geschichte.</div>
|
||||
<div class="sttip" id="acTip" hidden></div>
|
||||
</section>
|
||||
<div class="acgrid">
|
||||
<section class="stcard"><h4 class="sth" id="acDayTitle">Tag</h4><div id="acDay"></div></section>
|
||||
<section class="stcard"><h4 class="sth">Zuletzt aktiv</h4>
|
||||
<div class="seg" id="acRange" style="width:max-content;margin-bottom:10px">
|
||||
<button data-range="7" class="active">7 Tage</button><button data-range="30">30 Tage</button><button data-range="90">90 Tage</button>
|
||||
</div>
|
||||
<div id="acTop"></div></section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="storage" class="view">
|
||||
<div class="stwrap">
|
||||
<div class="stkpis" id="stKpis"></div>
|
||||
<div class="stgrid">
|
||||
<section class="stcard stmapcard">
|
||||
<div class="sthead">
|
||||
<nav class="stcrumbs" id="stCrumbs" aria-label="Ebene"></nav>
|
||||
<div class="stlegend" id="stLegend"></div>
|
||||
</div>
|
||||
<div class="treemap" id="stTree" role="img" aria-label="Treemap der Projektgrößen"></div>
|
||||
<div class="sttip" id="stTip" hidden></div>
|
||||
</section>
|
||||
<section class="stcard stside">
|
||||
<h4 class="sth">Größte Projekte</h4>
|
||||
<div id="stTop"></div>
|
||||
</section>
|
||||
</div>
|
||||
<section class="stcard">
|
||||
<div class="sthead">
|
||||
<h4 class="sth">Größte Speicherfresser <span class="hint" style="font-weight:400;margin:0">– Ordner, die sich neu erzeugen lassen</span></h4>
|
||||
<div class="stdel"><span id="stSel" class="hint" style="margin:0"></span><button class="btn danger" id="stDelete" type="button" disabled><svg class="i"><use href="/icons.svg#trash"/></svg>Ausgewählte löschen</button></div>
|
||||
</div>
|
||||
<div class="tablewrap"><table class="list sttable" id="stHogs"></table></div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tasks" class="view">
|
||||
<div class="taskbarTop">
|
||||
<div class="seg" id="taskMode">
|
||||
@@ -604,6 +828,7 @@
|
||||
<button class="btn" id="btnOpenFolder"><svg class="i"><use href="/icons.svg#folder-open"/></svg>Explorer</button>
|
||||
<button class="btn" id="btnVsCode"><svg class="i"><use href="/icons.svg#code-xml"/></svg>VS Code</button>
|
||||
<button class="btn" id="btnClone" title="Kopie dieses Projekts als neues Projekt anlegen"><svg class="i"><use href="/icons.svg#copy-plus"/></svg>Klonen</button>
|
||||
<button class="btn" id="btnMove" title="Projektordner umbenennen oder in einen anderen Projektordner verschieben"><svg class="i"><use href="/icons.svg#folder-pen"/></svg>Umbenennen…</button>
|
||||
</div>
|
||||
<div class="seg" id="ptabs">
|
||||
<button data-sec="edit" class="active"><svg class="i"><use href="/icons.svg#pencil"/></svg>Bearbeiten</button>
|
||||
@@ -676,51 +901,103 @@
|
||||
<div class="avatar lg" style="--c:linear-gradient(135deg,#6366f1,#8b5cf6)"><svg class="i xl"><use href="/icons.svg#settings"/></svg></div>
|
||||
<div style="min-width:0">
|
||||
<h3 id="spTitle">Einstellungen</h3>
|
||||
<div class="sub hint" id="spSub">Projektordner und Backup-Ziele</div>
|
||||
<div class="sub hint" id="spSub">Gilt für das ganze Dashboard</div>
|
||||
</div>
|
||||
<button class="iconbtn close" id="btnCloseSettings" title="Schließen (Esc)"><svg class="i"><use href="/icons.svg#x"/></svg></button>
|
||||
</div>
|
||||
<div class="pbody field">
|
||||
<div id="spWelcome" class="msg info" style="display:none">
|
||||
<div class="sptabs"><div class="seg" id="spTabs" role="tablist">
|
||||
<button class="active" data-stab="folders" role="tab"><svg class="i"><use href="/icons.svg#folders"/></svg>Projektordner<span class="tabn" id="spnFolders"></span></button>
|
||||
<button data-stab="backup" role="tab"><svg class="i"><use href="/icons.svg#hard-drive-upload"/></svg>Backup<span class="tabn" id="spnTargets"></span></button>
|
||||
<button data-stab="itch" role="tab"><svg class="i"><use href="/icons.svg#rocket"/></svg>itch.io</button>
|
||||
<button data-stab="general" role="tab"><svg class="i"><use href="/icons.svg#sliders-horizontal"/></svg>Allgemein</button>
|
||||
</div></div>
|
||||
<div class="pbody">
|
||||
<div id="spWelcome" class="msg info" style="display:none;margin:0">
|
||||
<svg class="i lg"><use href="/icons.svg#sparkles"/></svg>
|
||||
<div><b>Willkommen!</b> Wähle den Ordner, in dem alle deine Projekte liegen – jeder Unterordner wird ein Projekt.
|
||||
Mehrere solche Ordner sind möglich; oben neben dem Logo wechselst du zwischen ihnen.
|
||||
Ein Backup-Ziel (z. B. externe Platte oder NAS) kannst du jetzt oder später festlegen.</div>
|
||||
Ein Backup-Ziel kannst du jetzt oder später im Reiter „Backup“ festlegen.</div>
|
||||
</div>
|
||||
<label><svg class="i sm"><use href="/icons.svg#folders"/></svg>Projektordner (mindestens einer)</label>
|
||||
<div id="fRoots"></div>
|
||||
<div class="rowbtns">
|
||||
<button class="btn" id="fAddRoot" type="button"><svg class="i"><use href="/icons.svg#plus"/></svg>Ordner hinzufügen</button>
|
||||
<button class="btn" id="fImportOpen" type="button"><svg class="i"><use href="/icons.svg#folder-plus"/></svg>Mehrere einlesen…</button>
|
||||
</div>
|
||||
<div class="importbox" id="fImport" hidden>
|
||||
<div class="hint" style="margin:0 0 6px">Übergeordneten Ordner wählen – seine Unterordner werden als Projektordner angeboten.</div>
|
||||
<div class="pickrow">
|
||||
<input type="text" id="fImportPath" placeholder="z. B. D:\Arbeit">
|
||||
<button class="btn pickbtn" data-for="fImportPath" data-title="Übergeordneten Ordner wählen"><svg class="i"><use href="/icons.svg#folder-search"/></svg>Durchsuchen…</button>
|
||||
<button class="btn" type="button" id="fImportList"><svg class="i"><use href="/icons.svg#list"/></svg>Anzeigen</button>
|
||||
|
||||
<section class="spane" data-spane="folders">
|
||||
<div class="sphead"><h4>Projektordner</h4><p>Ordner, deren Unterordner als Projekte erscheinen. Mindestens einer.</p></div>
|
||||
<div class="slist" id="fRoots"></div>
|
||||
<div class="rowbtns">
|
||||
<button class="btn" id="fAddRoot" type="button"><svg class="i"><use href="/icons.svg#plus"/></svg>Ordner hinzufügen</button>
|
||||
<button class="btn" id="fImportOpen" type="button"><svg class="i"><use href="/icons.svg#folder-plus"/></svg>Mehrere einlesen…</button>
|
||||
</div>
|
||||
<div id="fImportBody"></div>
|
||||
</div>
|
||||
<div class="hint">Jeder Unterordner eines Projektordners ist ein Projekt. Der markierte ist gerade aktiv; wechseln geht oben neben dem Logo.</div>
|
||||
<label><svg class="i sm"><use href="/icons.svg#hard-drive-upload"/></svg>Backup-Ziele (optional, mehrere möglich)</label>
|
||||
<div id="fTargets"></div>
|
||||
<button class="btn" id="fAddTarget" type="button"><svg class="i"><use href="/icons.svg#plus"/></svg>Ziel hinzufügen</button>
|
||||
<div class="hint">Jedes Projekt landet dort in einem gleichnamigen Unterordner. Bei mehreren Projektordnern geht der erste direkt ins Ziel, jeder weitere in einen Unterordner mit seinem Namen. Jedes Ziel hat seinen eigenen Backup-Stand; <code>backup-projekte.bat</code> sichert auf das erste. Im Backup wird nie etwas gelöscht.</div>
|
||||
<label><svg class="i sm"><use href="/icons.svg#folder-x"/></svg>Nicht sichern (Ordnernamen, mit Komma getrennt)</label>
|
||||
<input type="text" id="fExDirs">
|
||||
<div class="hint">Werden überall im Projekt übersprungen, weil sie sich neu erzeugen lassen.</div>
|
||||
<label><svg class="i sm"><use href="/icons.svg#rocket"/></svg>itch.io-Profil (für „veröffentlicht“)</label>
|
||||
<div class="pickrow">
|
||||
<input type="text" id="fItchProfile" placeholder="https://name.itch.io">
|
||||
<button class="btn" type="button" id="btnItchRefresh" title="Profil jetzt neu lesen"><svg class="i"><use href="/icons.svg#refresh-cw"/></svg></button>
|
||||
</div>
|
||||
<div class="hint" id="spItch"></div>
|
||||
<div class="hint" id="spData" style="margin-top:16px"></div>
|
||||
<div class="msg err" id="spError" style="display:none"></div>
|
||||
<div class="importbox" id="fImport" hidden>
|
||||
<div class="hint" style="margin:0 0 6px">Übergeordneten Ordner wählen – seine Unterordner werden als Projektordner angeboten.</div>
|
||||
<div class="pickrow">
|
||||
<input type="text" id="fImportPath" placeholder="z. B. D:\Arbeit">
|
||||
<button class="btn pickbtn" data-for="fImportPath" data-title="Übergeordneten Ordner wählen"><svg class="i"><use href="/icons.svg#folder-search"/></svg>Durchsuchen…</button>
|
||||
<button class="btn" type="button" id="fImportList"><svg class="i"><use href="/icons.svg#list"/></svg>Anzeigen</button>
|
||||
</div>
|
||||
<div id="fImportBody"></div>
|
||||
</div>
|
||||
<details class="more"><summary><svg class="i sm"><use href="/icons.svg#info"/></svg>Wie funktioniert das?</summary><div>Jeder Unterordner eines Projektordners ist ein Projekt. Welche Ordner gerade angezeigt werden, wählst du oben links neben dem Logo. Der erste Ordner ist der Hauptordner: er wird direkt ins Backup-Ziel gesichert, jeder weitere in einen Unterordner mit seinem Namen. Entfernen nimmt den Ordner nur aus der Liste – auf der Platte wird nichts gelöscht.</div></details>
|
||||
</section>
|
||||
|
||||
<section class="spane" data-spane="backup" hidden>
|
||||
<div class="sphead"><h4>Backup-Ziele</h4><p>Externe Platte, NAS oder anderes Laufwerk – optional, mehrere möglich.</p></div>
|
||||
<div class="slist" id="fTargets"></div>
|
||||
<div class="rowbtns"><button class="btn" id="fAddTarget" type="button"><svg class="i"><use href="/icons.svg#plus"/></svg>Ziel hinzufügen</button></div>
|
||||
<div class="spfield">
|
||||
<label for="fExInput">Nicht sichern</label>
|
||||
<div class="xchips" id="fExDirs"><input id="fExInput" placeholder="Ordnername + Enter" autocomplete="off"></div>
|
||||
<div class="hint" style="margin:0">Werden überall übersprungen, weil sie sich neu erzeugen lassen.</div>
|
||||
</div>
|
||||
<div class="spfield">
|
||||
<label for="fRemind">Erinnerung</label>
|
||||
<div class="remindrow">Backup fällig, wenn ein Projekt geändert wurde und das letzte Backup älter ist als
|
||||
<input type="number" id="fRemind" min="1" max="365" step="1"> Tage</div>
|
||||
<div class="hint" style="margin:0">Solche Projekte zeigt der Filter „Backup fällig“; einmal am Tag erscheint ein Hinweis.</div>
|
||||
</div>
|
||||
<div class="spfield">
|
||||
<label for="fAutoInt">Automatisch sichern</label>
|
||||
<div class="remindrow">
|
||||
<select id="fAutoInt" class="autosel">
|
||||
<option value="off">Aus</option>
|
||||
<option value="start">Bei jedem Start</option>
|
||||
<option value="hourly">Stündlich</option>
|
||||
<option value="daily">Täglich</option>
|
||||
<option value="weekly">Wöchentlich</option>
|
||||
</select>
|
||||
<span id="fAutoDayWrap">am <select id="fAutoDay" class="autosel">
|
||||
<option value="1">Montag</option><option value="2">Dienstag</option><option value="3">Mittwoch</option><option value="4">Donnerstag</option>
|
||||
<option value="5">Freitag</option><option value="6">Samstag</option><option value="0">Sonntag</option></select></span>
|
||||
<span id="fAutoTimeWrap">um <input type="time" id="fAutoTime"> Uhr</span>
|
||||
<span id="fAutoTargetWrap">auf <select id="fAutoTarget" class="autosel"></select></span>
|
||||
</div>
|
||||
<div class="spstatus" id="spAuto"></div>
|
||||
<div class="hint" style="margin:0">Sichert alle Projektordner – nur, solange das Dashboard geöffnet ist. Ein verpasster Termin (PC aus) wird beim nächsten Öffnen nachgeholt; ist das Ziel nicht erreichbar, folgt nach 30 Minuten ein neuer Versuch.</div>
|
||||
</div>
|
||||
<details class="more"><summary><svg class="i sm"><use href="/icons.svg#info"/></svg>Wohin wird gesichert?</summary><div>Jedes Projekt landet im Ziel in einem gleichnamigen Unterordner. Der Hauptordner geht direkt ins Ziel, jeder weitere Projektordner in einen Unterordner mit seinem Namen. Jedes Ziel hat seinen eigenen Backup-Stand; <code>backup-projekte.bat</code> sichert auf das erste. Im Backup wird nie etwas gelöscht.</div></details>
|
||||
</section>
|
||||
|
||||
<section class="spane" data-spane="itch" hidden>
|
||||
<div class="sphead"><h4>itch.io</h4><p>Für die Anzeige „veröffentlicht“ auf den Karten. Leer lassen = keine itch.io-Anzeige.</p></div>
|
||||
<div class="spfield">
|
||||
<label for="fItchProfile">Öffentliches Profil</label>
|
||||
<div class="pickrow">
|
||||
<input type="text" id="fItchProfile" placeholder="https://name.itch.io">
|
||||
<button class="btn" type="button" id="btnItchRefresh" title="Profil jetzt neu lesen"><svg class="i"><use href="/icons.svg#refresh-cw"/></svg>Neu lesen</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="spstatus" id="spItch"></div>
|
||||
</section>
|
||||
|
||||
<section class="spane" data-spane="general" hidden>
|
||||
<div class="sphead"><h4>Allgemein</h4><p>Wo das Dashboard seine Daten ablegt.</p></div>
|
||||
<div class="kv" id="spData"></div>
|
||||
<div class="rowbtns"><button class="btn" type="button" id="spOpenData"><svg class="i"><use href="/icons.svg#folder-open"/></svg>Datenordner öffnen</button></div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="msg err" id="spError" style="display:none"></div>
|
||||
<div class="pfoot">
|
||||
<button class="btn" id="spCancel">Abbrechen</button>
|
||||
<span class="spdirty" id="spDirty">Ungespeicherte Änderungen</span>
|
||||
<span style="flex:1"></span>
|
||||
<span class="kbd" title="Tastenkürzel">Strg+S</span>
|
||||
<button class="btn ghost" id="spCancel">Abbrechen</button>
|
||||
<button class="btn primary" id="spSave"><svg class="i"><use href="/icons.svg#save"/></svg>Speichern</button>
|
||||
</div>
|
||||
</aside>
|
||||
@@ -741,6 +1018,28 @@
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
<dialog id="moveDlg" class="dlg">
|
||||
<form method="dialog" class="field" id="moveForm">
|
||||
<h3 style="margin:0 0 4px;display:flex;gap:8px;align-items:center"><svg class="i lg"><use href="/icons.svg#folder-pen"/></svg>Umbenennen / verschieben</h3>
|
||||
<div class="hint" id="mvFrom"></div>
|
||||
<label><svg class="i sm"><use href="/icons.svg#type"/></svg>Neuer Name (Ordnername)</label>
|
||||
<input type="text" id="mvName" maxlength="80" autocomplete="off">
|
||||
<label><svg class="i sm"><use href="/icons.svg#folders"/></svg>Projektordner</label>
|
||||
<select id="mvRoot"></select>
|
||||
<div class="msg info" id="mvCopy" hidden style="margin-top:10px">
|
||||
<svg class="i"><use href="/icons.svg#triangle-alert"/></svg>
|
||||
<div>Das Ziel liegt auf einem anderen Laufwerk: Der Ordner wird komplett kopiert, geprüft und erst danach am alten Ort gelöscht. Bei großen Projekten dauert das.
|
||||
<label class="chk" style="margin-top:6px"><input type="checkbox" id="mvCopyOk"> Verstanden – kopieren und Original danach löschen</label></div>
|
||||
</div>
|
||||
<div class="hint">Das bisherige Backup bleibt unter dem alten Namen liegen; beim nächsten Backup entsteht der neue Ordner. VS Code, Konsolen und Programme aus dem Projekt vorher schließen.</div>
|
||||
<div class="msg err" id="mvError" style="display:none"></div>
|
||||
<div class="dlgfoot">
|
||||
<button class="btn" type="button" id="mvCancel">Abbrechen</button>
|
||||
<button class="btn primary" type="submit" id="mvOk"><svg class="i"><use href="/icons.svg#check"/></svg><span>Übernehmen</span></button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<dialog id="newDlg" class="dlg">
|
||||
<form method="dialog" class="field" id="newForm">
|
||||
<h3 style="margin:0 0 4px;display:flex;gap:8px;align-items:center"><svg class="i lg"><use href="/icons.svg#folder-plus"/></svg><span id="newTitle">Neues Projekt</span></h3>
|
||||
|
||||
Reference in New Issue
Block a user