Comments are now threads: replies hang off a thread's first comment, which alone points at text and can be resolved. Authors can edit their own comments, and anyone who can comment can react with an emoji. Resolved threads stop lighting text in the editor and fold away in the panel. Comments can @mention people. People watch the pages they create or comment on, and can watch or mute a page from its menu. Muting is remembered. The inbox collects comments on watched pages, replies in your threads, mentions (in comments and in page text), pages shared with you and resolved threads. It shows an unread badge in the sidebar, polled every minute, and links straight to the thread. Nobody hears about their own actions or about pages they cannot open, and a notification hides its text once access is lost. Unread notifications are emailed as a digest every few minutes unless the person turns that off. Read ones are pruned after 90 days. The jobs registry can now run jobs on a timer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93 lines
4.3 KiB
TypeScript
93 lines
4.3 KiB
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
/**
|
|
* Docwell's own outline icons: a 24-unit grid, 1.75 stroke, round caps and
|
|
* joins, drawn in currentColor. The first group is the design system's set
|
|
* (Design/docwell-all/3-design-system); the rest extend it on the same grid.
|
|
*/
|
|
export const iconPaths = {
|
|
page: ["M6 3h8l4 4v14H6z", "M14 3v4h4", "M9 12h6", "M9 16h6"],
|
|
"chevron-right": ["M10 6l6 6-6 6"],
|
|
"chevron-down": ["M6 10l6 6 6-6"],
|
|
plus: ["M12 5v14", "M5 12h14"],
|
|
search: ["M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14z", "M16.5 16.5L20 20"],
|
|
more: ["M6 12h.01", "M12 12h.01", "M18 12h.01"],
|
|
drop: ["M12 4h7v7a7 7 0 1 1-7-7z"],
|
|
info: ["M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z", "M12 11v5", "M12 8h.01"],
|
|
check: ["M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z", "M8 12.5l2.5 2.5L16 9.5"],
|
|
alert: ["M12 4l9 16H3z", "M12 10v4", "M12 17h.01"],
|
|
error: ["M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z", "M9 9l6 6", "M15 9l-6 6"],
|
|
text: ["M5 6h14", "M12 6v13"],
|
|
heading: ["M6 5v14", "M18 5v14", "M6 12h12"],
|
|
list: ["M9 6h11", "M9 12h11", "M9 18h11", "M4.5 6h.01", "M4.5 12h.01", "M4.5 18h.01"],
|
|
todo: ["M4 4h7v7H4z", "M5.5 7.5l1.5 1.5 2.5-2.5", "M14 7h6", "M4 14h7v7H4z", "M14 17h6"],
|
|
code: ["M9 7l-5 5 5 5", "M15 7l5 5-5 5"],
|
|
quote: ["M6 6v12", "M10 8h9", "M10 12h9", "M10 16h6"],
|
|
image: ["M4 5h16v14H4z", "M4 16l5-5 4 4 2-2 5 5", "M15.5 8.5h.01"],
|
|
table: ["M4 5h16v14H4z", "M4 10h16", "M4 15h16", "M10 5v14"],
|
|
// Extensions for the app shell.
|
|
lock: ["M6 11h12v9H6z", "M8.5 11V8a3.5 3.5 0 0 1 7 0v3"],
|
|
trash: ["M4 7h16", "M10 4h4", "M6 7l1 13h10l1-13", "M10 11v6", "M14 11v6"],
|
|
settings: ["M4 7h9", "M17 7h3", "M15 5v4", "M4 17h3", "M11 17h9", "M9 15v4"],
|
|
menu: ["M4 7h16", "M4 12h16", "M4 17h16"],
|
|
close: ["M6 6l12 12", "M18 6L6 18"],
|
|
open: ["M8 16L16 8", "M9 8h7v7"],
|
|
restore: ["M4.5 13a7.5 7.5 0 1 0 2.2-6.3", "M5 4v4h4"],
|
|
"sign-out": ["M14 4h5v16h-5", "M10 8l-4 4 4 4", "M6 12h9"],
|
|
sidebar: ["M4 5h16v14H4z", "M9.5 5v14"],
|
|
home: ["M4 11l8-7 8 7", "M6 9.5V20h12V9.5", "M10 20v-5h4v5"],
|
|
sun: [
|
|
"M12 8a4 4 0 1 0 0 8a4 4 0 1 0 0-8z",
|
|
"M12 3v1.5",
|
|
"M12 19.5V21",
|
|
"M3 12h1.5",
|
|
"M19.5 12H21",
|
|
"M5.6 5.6l1.1 1.1",
|
|
"M17.3 17.3l1.1 1.1",
|
|
"M5.6 18.4l1.1-1.1",
|
|
"M17.3 6.7l1.1-1.1",
|
|
],
|
|
moon: ["M19.5 14.5A8 8 0 0 1 9.5 4.5a8 8 0 1 0 10 10z"],
|
|
monitor: ["M4 5h16v11H4z", "M9 20h6", "M12 16v4"],
|
|
selector: ["M8 9l4-4 4 4", "M8 15l4 4 4-4"],
|
|
// Phase 1: favorites, sharing, files, comments and editor formatting.
|
|
star: ["M12 4l2.5 5.2 5.5.8-4 3.9.9 5.6L12 16.9l-4.9 2.6.9-5.6-4-3.9 5.5-.8z"],
|
|
clock: ["M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z", "M12 7v5l3 2"],
|
|
share: ["M12 4v11", "M8 8l4-4 4 4", "M6 13v7h12v-7"],
|
|
link: ["M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1", "M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"],
|
|
upload: ["M12 16V4", "M7 9l5-5 5 5", "M4 20h16"],
|
|
download: ["M12 4v12", "M7 11l5 5 5-5", "M4 20h16"],
|
|
file: ["M6 3h8l4 4v14H6z", "M14 3v4h4"],
|
|
paperclip: ["M18 11.5l-6.4 6.4a4.2 4.2 0 0 1-6-6l7-7a2.8 2.8 0 0 1 4 4l-7 7a1.4 1.4 0 0 1-2-2l6.4-6.4"],
|
|
comment: ["M5 5h14v10H9l-4 4z"],
|
|
at: ["M12 8a4 4 0 1 0 0 8a4 4 0 1 0 0-8z", "M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.1"],
|
|
bold: ["M7 5h6a3.5 3.5 0 0 1 0 7H7z", "M7 12h7a3.5 3.5 0 0 1 0 7H7z"],
|
|
italic: ["M10 5h8", "M6 19h8", "M14 5l-4 14"],
|
|
strike: [
|
|
"M5 12h14",
|
|
"M16 7.5A3.5 3 0 0 0 12.5 5h-1A3.5 3 0 0 0 8 8c0 4 8 3 8 7.5a3.5 3.5 0 0 1-3.5 3.5h-1A3.5 3 0 0 1 8 16.5",
|
|
],
|
|
underline: ["M7 4v7a5 5 0 0 0 10 0V4", "M5 20h14"],
|
|
"list-ordered": ["M10 6h10", "M10 12h10", "M10 18h10", "M4 5l1.5-1v5", "M4 15.5a1.5 1.5 0 0 1 3 .5L4 19h3"],
|
|
divider: ["M4 12h16"],
|
|
globe: [
|
|
"M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z",
|
|
"M3 12h18",
|
|
"M12 3c2.5 2.5 3.5 5.5 3.5 9s-1 6.5-3.5 9",
|
|
"M12 3C9.5 5.5 8.5 8.5 8.5 12s1 6.5 3.5 9",
|
|
],
|
|
bell: ["M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z", "M10 20a2 2 0 0 0 4 0"],
|
|
"bell-off": ["M6 16V11a6 6 0 0 1 9.5-4.9", "M18 11v5l1.5 2H8", "M10 20a2 2 0 0 0 4 0", "M4 4l16 16"],
|
|
smile: ["M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z", "M8.5 14a4 4 0 0 0 7 0", "M9 9.5h.01", "M15 9.5h.01"],
|
|
reply: ["M9 7L4 12l5 5", "M4 12h10a6 6 0 0 1 6 6v1"],
|
|
pencil: ["M15 5l4 4L8 20H4v-4z"],
|
|
users: [
|
|
"M9 11a3.5 3.5 0 1 0 0-7a3.5 3.5 0 1 0 0 7z",
|
|
"M3 20a6 6 0 0 1 12 0",
|
|
"M16 4.5a3.5 3.5 0 0 1 0 6.5",
|
|
"M18 14a6 6 0 0 1 3 6",
|
|
],
|
|
} as const;
|
|
|
|
export type IconName = keyof typeof iconPaths;
|