Implement Knowledge City platform, organizer and DAV integration

Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
This commit is contained in:
Anya Tokugawa committed 2026-09-27 14:44:43 +09:00
1 parent 288e6e94ac
commit c1175d389f
699 files changed
+110197 -4117

No files matched your search

+39 -51
View File
@@ -27,6 +27,8 @@ async function renderMarkdownPreview() {
body: JSON.stringify({
markdown:
editor.value,
path: window.PagesWikiCurrentPath || location.pathname,
projection: true,
}),
},
)
@@ -44,7 +46,8 @@ async function restoreRevision(
const res = await fetch(
"/_/api/v1/revisions/restore?revision="
+ revisionUUID,
+ encodeURIComponent(revisionUUID),
{ method: "POST" },
)
if (!res.ok) {
@@ -56,57 +59,42 @@ async function restoreRevision(
}
async function openRevisionDialog() {
const objectUUID =
document.getElementById(
"object-uuid",
).value
const res = await fetch(
"/_/api/v1/revisions/list?uuid="
+ objectUUID,
)
const revisions =
await res.json()
const root =
document.getElementById(
"revision-list",
)
root.innerHTML = ""
revisions.forEach((r) => {
const div =
document.createElement("div")
div.className =
"revision-item"
const ts =
new Date(
r.created_at * 1000,
)
div.innerHTML =
"<code>"
+ r.uuid
+ "</code><br>"
+ ts.toLocaleString()
+ "<br>"
+ r.message
+ "<br><button onclick=\"restoreRevision('"
+ r.uuid
+ "')\">Restore</button>"
root.appendChild(div)
const objectUUID = document.getElementById("object-uuid")?.value
const root = document.getElementById("revision-list")
const dialog = document.getElementById("revision-dialog")
if (!objectUUID || !root || !dialog) return
const ja = document.documentElement.lang.startsWith("ja")
const res = await fetch("/_/api/v1/revisions/list?uuid=" + encodeURIComponent(objectUUID))
if (!res.ok) {
root.textContent = ja ? "履歴を取得できませんでした。" : "Revision history is unavailable."
dialog.showModal()
return
}
const revisions = await res.json()
root.replaceChildren()
revisions.forEach((revision) => {
const item = document.createElement("div")
item.className = "revision-item"
const id = document.createElement("code")
id.textContent = revision.uuid
const time = document.createElement("div")
time.textContent = new Date(revision.created_at * 1000).toLocaleString()
const message = document.createElement("p")
message.textContent = revision.message
const restore = document.createElement("button")
restore.type = "button"
restore.textContent = ja ? "復元" : "Restore"
restore.addEventListener("click", () => restoreRevision(revision.uuid))
item.append(id, time, message, restore)
root.append(item)
})
document.getElementById(
"revision-dialog",
).showModal()
if (res.headers.get("X-Next-Cursor")) {
const more = document.createElement("a")
more.href = "/r/history/" + encodeURIComponent(objectUUID)
more.textContent = ja ? "すべての履歴を表示" : "Browse revision history"
root.append(more)
}
dialog.showModal()
}
window.addEventListener(