setIntroSettled(true)} />
Jinkendo
Tsumugu
Akten, Vorgänge und Fristen an einem Ort. Die erste Lieferung organisiert und verfolgt.
{bootstrap === undefined ? null : bootstrap?.available ? ( - ) : ( - )} {demo ? ( diff --git a/frontend/src/pages/Matters.jsx b/frontend/src/pages/Matters.jsx index 3acf724..32cb34d 100644 --- a/frontend/src/pages/Matters.jsx +++ b/frontend/src/pages/Matters.jsx @@ -280,14 +280,6 @@ export function MatterDetail() { }; }, [inherited?.kind, inherited?.id]); - useEffect(() => { - if (!record || record.id !== id || !entryId) return; - const binding = (record.bindings || []).find((item) => item.id === entryId); - if (!binding) return; - const nextChapter = binding.chapter_id || ""; - if ((chapterId || "") !== nextChapter) writeChapter(params, setParams, nextChapter); - }, [record, id, entryId, chapterId, params, setParams]); - useEffect(() => { if (entryId) return; restoreScroll(listRef.current, `tsumugu-scroll:${id}:${chapterId}`); @@ -308,8 +300,6 @@ export function MatterDetail() { rememberScroll(listRef.current, `tsumugu-scroll:${id}:${chapterId}`); const updated = new URLSearchParams(params); updated.set("eintrag", binding.id); - if (binding.chapter_id) updated.set("kapitel", binding.chapter_id); - else updated.delete("kapitel"); setParams(updated); setView("contents"); } @@ -462,10 +452,10 @@ export function MatterDetail() { }} onChange={load} itemHref={(binding) => { - const search = new URLSearchParams(query.replace(/^\?/, "")); + const search = new URLSearchParams(params); search.set("eintrag", binding.id); - if (binding.chapter_id) search.set("kapitel", binding.chapter_id); - return `/matters/${id}?${search}`; + const text = search.toString(); + return text ? `/matters/${id}?${text}` : `/matters/${id}`; }} /> ) : null} diff --git a/frontend/src/pages/Shell.jsx b/frontend/src/pages/Shell.jsx index a2ae13c..86cc2f8 100644 --- a/frontend/src/pages/Shell.jsx +++ b/frontend/src/pages/Shell.jsx @@ -32,6 +32,8 @@ export function Shell() { const [query, setQuery] = useState(""); const [more, setMore] = useState(false); const [width, setWidth] = useState(() => window.innerWidth); + const [markIntroDone, setMarkIntroDone] = useState(false); + const markMotion = markIntroDone ? "none" : "intro"; useEffect(() => { const onResize = () => setWidth(window.innerWidth); @@ -39,6 +41,34 @@ export function Shell() { return () => window.removeEventListener("resize", onResize); }, []); + // Desktop- und Mobilkopf teilen sich den Intro-Verbrauch. Wird die bisher + // verdeckte Darstellung sichtbar, setzt sie dieselbe Umdrehung fort. + useEffect(() => { + if (markIntroDone || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return undefined; + let carried = 0; + let frames = 0; + let frame = 0; + const tick = () => { + frames += 1; + for (const ring of document.querySelectorAll(".app-shell .jk-mark__ring")) { + if (ring.offsetParent === null) continue; + const anim = [...ring.getAnimations()].find((item) => item.animationName === "jk-enso-intro"); + if (!anim || typeof anim.currentTime !== "number") continue; + if (carried - anim.currentTime > 48) anim.currentTime = carried; + carried = Math.max(carried, anim.currentTime); + } + if (carried >= 2400) { + setMarkIntroDone(true); + return; + } + const playing = document.querySelector(".app-shell .jk-mark--intro"); + const waiting = document.querySelector('.app-shell .jk-mark[data-ready="false"]'); + if ((playing || waiting) && frames < 1800) frame = requestAnimationFrame(tick); + }; + frame = requestAnimationFrame(tick); + return () => cancelAnimationFrame(frame); + }, [markIntroDone]); + useEffect(() => { setMore(false); }, [location.pathname]); @@ -70,7 +100,9 @@ export function Shell() {Noch nichts in diesem Kapitel.
: null} @@ -769,6 +780,7 @@ export function ContentBoard({ const element = binding.element; const href = itemHref(binding); const text = blurb(element); + const sourceSymbol = contentSourceSymbol(element); return (
);
}
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index d102ad9..9878c23 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -150,7 +150,7 @@ label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(-
}
.login-card { width: min(28rem, 100%); display: grid; gap: 16px; }
.login-card h1 { color: var(--brand); letter-spacing: -0.02em; font-size: 28px; margin: 0; }
-.login-mark { color: var(--brand); display: grid; justify-content: center; }
+.login-mark { color: var(--brand); display: grid; justify-content: center; pointer-events: none; }
.app-shell {
display: flex;
@@ -446,15 +446,19 @@ label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(-
.content-row__title { font-weight: 650; }
.content-row__kind { color: var(--text3); font-size: 13px; }
.content-row__move { display: flex; gap: 4px; }
-.chapter-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 18px; }
+.chapter-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.chapter-head.is-movable { cursor: grab; touch-action: none; user-select: none; }
.chapter-head.is-movable:active { cursor: grabbing; }
.chapter-head.is-movable .chapter-date,
.chapter-head.is-movable .chapter-move { cursor: auto; touch-action: auto; user-select: auto; }
.chapter-title { margin: 22px 0 4px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text1); font-weight: 700; }
.chapter-head .chapter-title { margin: 0; flex: 1 1 8rem; }
-.chapter-date { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text3); font-size: 13px; }
+.chapter-date { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; color: var(--text2); font-size: 13px; }
+.chapter-date__label { font-weight: 700; color: var(--text3); }
+.chapter-date__value { font-variant-numeric: tabular-nums; }
.chapter-date input { width: auto; }
+.content-section--group { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border2); }
+.contents > .content-section--group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.chapter-move { display: flex; gap: 4px; }
.chapter-move button { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.content-section.is-dragging { opacity: 0.45; }
@@ -528,6 +532,8 @@ button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border:
.preview-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 18rem; color: inherit; text-decoration: none; }
.preview-row__main strong { font-size: 16px; line-height: 1.35; overflow-wrap: break-word; }
.preview-row__meta, .preview-row__origin { color: var(--text2); font-size: 13px; overflow-wrap: break-word; }
+.preview-row__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
+.source-mark { display: inline-flex; width: 16px; height: 16px; flex: none; }
.preview-row__actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; align-items: flex-start; }
.preview-row__text {
color: var(--text);
@@ -536,25 +542,32 @@ button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border:
-webkit-box-orient: vertical;
overflow: hidden;
}
-.thumb {
- width: 72px;
- height: 96px;
- flex: 0 0 72px;
- object-fit: cover;
+.entry-mark {
+ width: 40px;
+ height: 40px;
+ flex: 0 0 40px;
+ display: grid;
+ place-items: center;
+ position: relative;
border: 1px solid var(--border);
- border-radius: 6px;
- background: #fff;
+ border-radius: 10px;
+ background: var(--surface);
}
-.thumb--note, .thumb--empty {
- display: flex;
- align-items: center;
- justify-content: center;
- text-align: center;
- padding: 6px;
- font-size: 12px;
- color: var(--text2);
+.entry-mark--photo { width: 64px; height: 64px; flex-basis: 64px; overflow: hidden; }
+.entry-mark__photo { width: 100%; height: 100%; object-fit: cover; }
+.entry-mark__badge {
+ position: absolute;
+ right: 3px;
+ bottom: 3px;
+ width: 18px;
+ height: 18px;
+ display: grid;
+ place-items: center;
+ border-radius: 5px;
+ background: var(--surface);
}
-.thumb--pdf { pointer-events: none; }
+.type-glyph { display: block; }
+.type-glyph--dark { display: none; }
.handle {
display: inline-flex;
align-items: center;
@@ -646,7 +659,8 @@ button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border:
.preview-row { gap: 10px 12px; }
.preview-row__main { flex-basis: 12rem; }
.preview-row__actions { flex-basis: 100%; margin-left: 0; }
- .thumb { width: 56px; height: 74px; flex-basis: 56px; }
+ .entry-mark { width: 40px; height: 40px; flex-basis: 40px; }
+ .entry-mark--photo { width: 56px; height: 56px; flex-basis: 56px; }
}
@media (max-width: 899px) {
@@ -660,7 +674,8 @@ button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border:
@media (prefers-color-scheme: dark) {
button.danger { background: rgba(216, 90, 48, 0.16); }
.notice { color: var(--accent-2); }
- .thumb { background: #1c1c1c; }
+ .type-glyph--light { display: none; }
+ .type-glyph--dark { display: block; }
.preview-row.is-selected { background: #14382c; }
.reader-pane { background: #1a2420; }
}
@@ -876,12 +891,34 @@ button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border:
}
.preview-row.is-selected { background: var(--accent-light); }
.preview-row__main strong { font-size: 17px; }
-.thumb {
- width: 74px;
- height: 96px;
- flex-basis: 74px;
- border-radius: 8px;
- box-shadow: 0 1px 2px rgba(28, 27, 24, 0.08);
+.entry-mark { border-radius: 10px; }
+.app-header .jk-logo-frame--plain {
+ width: auto;
+ height: auto;
+ padding: 0;
+ border: 0;
+ background: transparent;
+ border-radius: 0;
+ overflow: visible;
+}
+.app-header .jk-logo-frame--plain > .jk-mark {
+ width: var(--jk-mark-size, 28px);
+ height: var(--jk-mark-size, 28px);
+}
+@media (prefers-color-scheme: dark) {
+ .app-header .jk-logo-frame--plain {
+ width: var(--jk-frame-size);
+ height: var(--jk-frame-size);
+ padding: calc(var(--jk-frame-size) / 16);
+ border: calc(var(--jk-frame-size) / 48) solid #5dcaa5;
+ border-radius: calc(var(--jk-frame-size) * 5 / 24);
+ background: #146b57;
+ overflow: hidden;
+ }
+ .app-header .jk-logo-frame--plain > .jk-mark {
+ width: calc(var(--jk-frame-size) * 5 / 6);
+ height: calc(var(--jk-frame-size) * 5 / 6);
+ }
}
.icon-button {
width: 44px;
+
setRingSource(source)}
+ onError={() => setFailedSource(source)}
+ onAnimationEnd={(event) => {
+ if (event.animationName === "jk-enso-intro") {
+ setIntroDone(true);
+ onIntroComplete?.();
+ }
+ }}
+ />
+
setSymbolSource(source)}
+ onError={() => setFailedSource(source)}
+ />
+