domma-cms 0.55.1 → 0.69.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +194 -3
- package/README.md +18 -14
- package/admin/css/admin.css +1 -1
- package/admin/css/contacts.css +1 -0
- package/admin/dist/domma/domma-tools.css +3 -3
- package/admin/dist/domma/domma-tools.min.js +3 -3
- package/admin/index.html +1 -0
- package/admin/js/api.js +1 -1
- package/admin/js/app.js +4 -4
- package/admin/js/lib/analytics-shape.js +1 -0
- package/admin/js/lib/contacts-arrange.js +1 -0
- package/admin/js/lib/help-popover.js +1 -0
- package/admin/js/lib/notes-arrange.js +1 -0
- package/admin/js/lib/page-picker.js +1 -0
- package/admin/js/lib/plugin-accent.js +1 -0
- package/admin/js/lib/plugin-chrome.js +1 -0
- package/admin/js/lib/shortcode-context-menu.js +2 -2
- package/admin/js/lib/sidebar-grouping.js +1 -1
- package/admin/js/lib/sidebar-grouping.test.js +1 -1
- package/admin/js/lib/sidebar-renderer.js +4 -4
- package/admin/js/lib/slideover-resizable.js +1 -0
- package/admin/js/lib/todo-arrange.js +1 -0
- package/admin/js/lib/tool-kit.js +1 -0
- package/admin/js/templates/analytics.html +138 -0
- package/admin/js/templates/contacts.html +156 -0
- package/admin/js/templates/context-menu-editor.html +212 -0
- package/admin/js/templates/context-menus.html +16 -0
- package/admin/js/templates/notes.html +137 -0
- package/admin/js/templates/plugin-code.html +1 -1
- package/admin/js/templates/plugin-marketplace.html +17 -4
- package/admin/js/templates/plugins.html +13 -7
- package/{plugins/site-search/admin/templates/site-search.html → admin/js/templates/search.html} +50 -4
- package/admin/js/templates/settings.html +16 -97
- package/admin/js/templates/theme.html +211 -0
- package/admin/js/templates/todo.html +113 -0
- package/admin/js/views/analytics.js +62 -0
- package/admin/js/views/contacts.js +174 -0
- package/admin/js/views/context-menu-editor.js +55 -0
- package/admin/js/views/context-menus.js +5 -0
- package/admin/js/views/form-editor.js +7 -7
- package/admin/js/views/index.js +1 -1
- package/admin/js/views/notes.js +104 -0
- package/admin/js/views/plugin-marketplace.js +1 -1
- package/admin/js/views/plugins.js +28 -24
- package/admin/js/views/search.js +1 -0
- package/admin/js/views/settings.js +3 -3
- package/admin/js/views/theme.js +1 -0
- package/admin/js/views/todo.js +96 -0
- package/bin/cli.js +6 -10
- package/bin/lib/plugin-version.js +28 -0
- package/bin/update.js +27 -2
- package/config/menus/admin-sidebar.json +129 -23
- package/config/plugins.json +5 -5
- package/config/search.json +13 -0
- package/config/server.json +3 -1
- package/package.json +14 -10
- package/plugins/_lib/admin/mail/compose-window.js +914 -0
- package/plugins/_lib/admin/mail/contacts.js +301 -0
- package/plugins/_lib/admin/mail/diagnostics-section.js +133 -0
- package/plugins/_lib/admin/mail/folder-tree.js +254 -0
- package/plugins/_lib/admin/mail/identity.js +480 -0
- package/plugins/_lib/admin/mail/image-senders-section.js +131 -0
- package/plugins/_lib/admin/mail/keyboard.js +136 -0
- package/plugins/_lib/admin/mail/mail.css +1 -0
- package/plugins/_lib/admin/mail/mail.html +71 -0
- package/plugins/_lib/admin/mail/panes.js +253 -0
- package/plugins/_lib/admin/mail/reader-view.js +4473 -0
- package/plugins/_lib/admin/mail/resizable.js +26 -0
- package/plugins/_lib/admin/mail/rules.js +343 -0
- package/plugins/_lib/admin/mail/scheduling.js +203 -0
- package/plugins/_lib/admin/mail/section-kit.js +277 -0
- package/plugins/_lib/admin/mail/templates.js +238 -0
- package/plugins/_lib/admin/mail/threads.js +200 -0
- package/plugins/_lib/admin/mail/vacation.js +269 -0
- package/plugins/_lib/admin/ui/help.css +1 -0
- package/plugins/_lib/admin/ui/help.js +174 -0
- package/plugins/_lib/admin/ui/resizable.js +151 -0
- package/plugins/_lib/dataStore.js +117 -0
- package/plugins/_lib/mail/accounts.js +919 -0
- package/plugins/_lib/mail/bodyTokens.js +101 -0
- package/plugins/_lib/mail/compose.js +256 -0
- package/plugins/_lib/mail/defaults.js +57 -0
- package/plugins/_lib/mail/diagnostics.js +154 -0
- package/plugins/_lib/mail/envelope.js +161 -0
- package/plugins/_lib/mail/folders.js +192 -0
- package/plugins/_lib/mail/handoff.js +274 -0
- package/plugins/_lib/mail/imapPool.js +293 -0
- package/plugins/_lib/mail/mbox.js +74 -0
- package/plugins/_lib/mail/pollSchedule.js +79 -0
- package/plugins/_lib/mail/poller.js +135 -0
- package/plugins/_lib/mail/priority.js +138 -0
- package/plugins/_lib/mail/readRoutes.js +680 -0
- package/plugins/_lib/mail/render.js +291 -0
- package/plugins/_lib/mail/ruleRunner.js +152 -0
- package/plugins/_lib/mail/scheduler.js +254 -0
- package/plugins/_lib/mail/secretbox.js +229 -0
- package/plugins/_lib/mail/send.js +396 -0
- package/plugins/_lib/mail/store.js +1022 -0
- package/plugins/_lib/mail/sync.js +292 -0
- package/plugins/_lib/mail/syncPlan.js +126 -0
- package/plugins/_lib/mail/syncSelection.js +82 -0
- package/plugins/_lib/mail/unsubscribe.js +183 -0
- package/plugins/_lib/mail/vacationRunner.js +114 -0
- package/plugins/_lib/mail/write.js +473 -0
- package/plugins/_lib/schemaSync.js +83 -0
- package/plugins/_template/admin/css/index.css +0 -0
- package/plugins/_template/admin/templates/index.html +4 -4
- package/plugins/_template/admin/views/index.js +7 -0
- package/plugins/blog/CLAUDE.md +237 -0
- package/plugins/blog/admin/css/index.css +178 -0
- package/plugins/blog/admin/templates/blog.html +35 -41
- package/plugins/blog/admin/templates/categories.html +19 -6
- package/plugins/blog/admin/templates/comments.html +26 -9
- package/plugins/blog/admin/templates/post-editor.html +63 -40
- package/plugins/blog/admin/templates/settings.html +3 -9
- package/plugins/blog/admin/views/blog.js +288 -159
- package/plugins/blog/admin/views/categories.js +212 -206
- package/plugins/blog/admin/views/comments.js +207 -158
- package/plugins/blog/admin/views/kit.js +372 -0
- package/plugins/blog/admin/views/post-editor.js +306 -39
- package/plugins/blog/admin/views/settings-cog.js +56 -0
- package/plugins/blog/admin/views/settings.js +16 -84
- package/plugins/blog/blocks/blog-card-compact.css +17 -0
- package/plugins/blog/blocks/blog-card-compact.html +8 -0
- package/plugins/blog/blocks/blog-card-row.css +22 -0
- package/plugins/blog/blocks/blog-card-row.html +11 -0
- package/plugins/blog/blocks/blog-card.css +35 -0
- package/plugins/blog/blocks/blog-card.html +16 -0
- package/plugins/blog/blocks/blog-post-classic.css +15 -0
- package/plugins/blog/blocks/blog-post-classic.html +28 -0
- package/plugins/blog/blocks/blog-post-feature.css +20 -0
- package/plugins/blog/blocks/blog-post-feature.html +30 -0
- package/plugins/blog/blocks/blog-post-minimal.css +10 -0
- package/plugins/blog/blocks/blog-post-minimal.html +23 -0
- package/plugins/blog/blocks/blog-post-sidebar.css +22 -0
- package/plugins/blog/blocks/blog-post-sidebar.html +36 -0
- package/plugins/blog/collections/categories/schema.json +7 -6
- package/plugins/blog/collections/comments/schema.json +11 -10
- package/plugins/blog/collections/posts/schema.json +16 -13
- package/plugins/blog/config.js +6 -0
- package/plugins/blog/lib/layouts.js +304 -0
- package/plugins/blog/lib/page.js +158 -0
- package/plugins/blog/lib/render.js +119 -0
- package/plugins/blog/lib/samples.js +234 -0
- package/plugins/blog/plugin.js +259 -26
- package/plugins/blog/plugin.json +21 -73
- package/plugins/blog/plugin.public.js +217 -0
- package/plugins/blog/public/blog.css +177 -0
- package/plugins/blog/public/blog.js +586 -0
- package/plugins/blog/public/samples/aurora.svg +7 -0
- package/plugins/blog/public/samples/dusk.svg +7 -0
- package/plugins/blog/public/samples/ember.svg +7 -0
- package/plugins/blog/public/samples/harbour.svg +7 -0
- package/plugins/blog/public/samples/meadow.svg +7 -0
- package/plugins/blog/public/samples/rosewood.svg +7 -0
- package/plugins/blog/templates/index.html +9 -8
- package/plugins/blog/templates/post.html +4 -17
- package/plugins/blog/tests/layouts.test.js +97 -0
- package/plugins/blog/tests/public.test.js +71 -0
- package/plugins/free-tier.lock.json +74 -0
- package/plugins/mail-reader/CLAUDE.md +78 -0
- package/plugins/mail-reader/admin/views/mail.js +19 -0
- package/plugins/mail-reader/config.js +7 -0
- package/plugins/mail-reader/plugin.js +48 -0
- package/plugins/mail-reader/plugin.json +34 -0
- package/public/css/forms.css +1 -1
- package/public/css/search.css +1 -0
- package/public/css/site.css +1 -1
- package/public/css/theme-switcher.css +1 -0
- package/public/js/analytics.js +1 -0
- package/public/js/collection-context.js +2 -2
- package/public/js/context-menus.js +1 -0
- package/public/js/form-logic-engine.js +1 -1
- package/public/js/forms.js +2 -2
- package/public/js/search.js +1 -0
- package/public/js/site.js +1 -1
- package/public/js/theme-switcher.js +1 -0
- package/scripts/build.js +77 -4
- package/scripts/copy-domma.js +48 -0
- package/scripts/run-tests.mjs +92 -0
- package/scripts/seed.js +1996 -0
- package/{plugins/analytics/plugin.js → server/routes/api/analytics.js} +89 -41
- package/server/routes/api/collections.js +34 -0
- package/server/routes/api/contacts.js +506 -0
- package/server/routes/api/context-menus.js +104 -0
- package/server/routes/api/dashboard.js +8 -2
- package/server/routes/api/forms.js +42 -3
- package/{plugins/notes/plugin.js → server/routes/api/notes.js} +61 -17
- package/server/routes/api/notifications.js +69 -19
- package/server/routes/api/plugin-marketplace.js +78 -23
- package/server/routes/api/plugins.js +198 -9
- package/server/routes/api/search.js +43 -0
- package/server/routes/api/theme.js +69 -0
- package/server/routes/api/todo.js +178 -0
- package/server/routes/public.js +42 -7
- package/server/server.js +135 -1
- package/server/services/adapters/FileAdapter.js +6 -1
- package/server/services/collections.js +13 -3
- package/server/services/content.js +26 -0
- package/server/services/contextMenus.js +477 -0
- package/server/services/managerClient.js +72 -136
- package/server/services/markdown.js +124 -10
- package/server/services/permissionRegistry.js +74 -0
- package/server/services/pluginEntitlement.js +171 -0
- package/server/services/pluginEnvelope.js +242 -0
- package/server/services/pluginFiles.js +52 -11
- package/server/services/pluginInstaller.js +246 -26
- package/server/services/pluginScaffold.js +5 -0
- package/server/services/plugins.js +340 -7
- package/server/services/presetCollections.js +344 -0
- package/server/services/promoted-plugins-migration.js +254 -0
- package/server/services/publicCors.js +46 -0
- package/server/services/renderer.js +224 -22
- package/server/services/roles.js +1 -1
- package/server/services/search-migration.js +82 -0
- package/server/services/search.js +413 -0
- package/server/services/sidebar-migration.js +1 -0
- package/server/services/sidebarBadges.js +37 -0
- package/server/services/siteGitignore.js +307 -0
- package/server/services/themeSettings.js +580 -0
- package/server/services/users.js +8 -0
- package/server/templates/page.html +4 -2
- package/plugins/analytics/admin/templates/analytics.html +0 -61
- package/plugins/analytics/admin/views/analytics.js +0 -176
- package/plugins/analytics/config.js +0 -14
- package/plugins/analytics/plugin.json +0 -57
- package/plugins/analytics/public/inject-body.html +0 -60
- package/plugins/analytics/public/inject-head.html +0 -1
- package/plugins/blog/templates/author.html +0 -9
- package/plugins/blog/templates/category.html +0 -9
- package/plugins/blog/templates/tag.html +0 -9
- package/plugins/contacts/admin/templates/contacts.html +0 -126
- package/plugins/contacts/admin/views/contacts.js +0 -710
- package/plugins/contacts/collections/user-contact-groups/schema.json +0 -35
- package/plugins/contacts/collections/user-contacts/schema.json +0 -71
- package/plugins/contacts/config.js +0 -6
- package/plugins/contacts/data/contacts.json +0 -20
- package/plugins/contacts/plugin.js +0 -291
- package/plugins/contacts/plugin.json +0 -33
- package/plugins/demo-viewer/config.js +0 -4
- package/plugins/demo-viewer/plugin.js +0 -36
- package/plugins/demo-viewer/plugin.json +0 -9
- package/plugins/invoice/admin/templates/editor.html +0 -129
- package/plugins/invoice/admin/templates/index.html +0 -43
- package/plugins/invoice/admin/templates/issuers.html +0 -5
- package/plugins/invoice/admin/templates/receivers.html +0 -5
- package/plugins/invoice/admin/views/editor.js +0 -267
- package/plugins/invoice/admin/views/index.js +0 -155
- package/plugins/invoice/admin/views/issuers.js +0 -23
- package/plugins/invoice/admin/views/party-view.js +0 -148
- package/plugins/invoice/admin/views/receivers.js +0 -22
- package/plugins/invoice/collections/invoice-issuers/schema.json +0 -16
- package/plugins/invoice/collections/invoice-receivers/schema.json +0 -15
- package/plugins/invoice/collections/invoices/schema.json +0 -27
- package/plugins/invoice/config.js +0 -16
- package/plugins/invoice/plugin.js +0 -283
- package/plugins/invoice/plugin.json +0 -85
- package/plugins/invoice/templates/invoice-print.html +0 -213
- package/plugins/notes/admin/templates/notes.html +0 -83
- package/plugins/notes/admin/views/notes.js +0 -281
- package/plugins/notes/collections/user-notes/schema.json +0 -54
- package/plugins/notes/config.js +0 -6
- package/plugins/notes/data/notes.json +0 -1
- package/plugins/notes/plugin.json +0 -33
- package/plugins/site-search/admin/views/site-search.js +0 -116
- package/plugins/site-search/config.js +0 -15
- package/plugins/site-search/plugin.js +0 -188
- package/plugins/site-search/plugin.json +0 -40
- package/plugins/site-search/public/inject-body.html +0 -17
- package/plugins/site-search/public/inject-head.html +0 -1
- package/plugins/site-search/public/search.css +0 -1
- package/plugins/site-search/public/search.js +0 -1
- package/plugins/surveys/admin/templates/audience.html +0 -47
- package/plugins/surveys/admin/templates/results.html +0 -58
- package/plugins/surveys/admin/templates/survey-editor.html +0 -141
- package/plugins/surveys/admin/templates/surveys.html +0 -25
- package/plugins/surveys/admin/views/audience.js +0 -301
- package/plugins/surveys/admin/views/results.js +0 -172
- package/plugins/surveys/admin/views/survey-editor.js +0 -211
- package/plugins/surveys/admin/views/surveys.js +0 -161
- package/plugins/surveys/collections/survey-contacts/schema.json +0 -13
- package/plugins/surveys/collections/survey-groups/schema.json +0 -11
- package/plugins/surveys/collections/survey-invites/schema.json +0 -16
- package/plugins/surveys/collections/surveys/schema.json +0 -23
- package/plugins/surveys/config.js +0 -8
- package/plugins/surveys/plugin.js +0 -174
- package/plugins/surveys/plugin.json +0 -65
- package/plugins/surveys/public/dist-shared.mjs +0 -1
- package/plugins/surveys/public/survey.css +0 -1
- package/plugins/surveys/public/survey.mjs +0 -1
- package/plugins/surveys/templates/survey-page.html +0 -63
- package/plugins/theme-switcher/admin/templates/theme-switcher.html +0 -86
- package/plugins/theme-switcher/admin/views/theme-switcher.js +0 -65
- package/plugins/theme-switcher/config.js +0 -10
- package/plugins/theme-switcher/plugin.js +0 -26
- package/plugins/theme-switcher/plugin.json +0 -74
- package/plugins/theme-switcher/public/inject-body.html +0 -153
- package/plugins/theme-switcher/public/inject-head.html +0 -260
- package/plugins/todo/admin/templates/todo.html +0 -158
- package/plugins/todo/admin/views/todo.js +0 -343
- package/plugins/todo/collections/todos/schema.json +0 -60
- package/plugins/todo/config.js +0 -7
- package/plugins/todo/data/todos.json +0 -1
- package/plugins/todo/plugin.js +0 -102
- package/plugins/todo/plugin.json +0 -33
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
/* ============================================================
|
|
3
|
-
Theme Switcher - Floating Disc
|
|
4
|
-
Position is applied inline by inject-body.html script.
|
|
5
|
-
============================================================ */
|
|
6
|
-
.dm-theme-switcher {
|
|
7
|
-
position: fixed;
|
|
8
|
-
z-index: 9998;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dm-ts-trigger {
|
|
12
|
-
width: 48px;
|
|
13
|
-
height: 48px;
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
border: 2px solid rgba(255, 255, 255, 0.25);
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
background: conic-gradient(
|
|
18
|
-
#0077b6 0deg 28deg,
|
|
19
|
-
#48cae4 28deg 56deg,
|
|
20
|
-
#2d6a4f 56deg 84deg,
|
|
21
|
-
#74c69d 84deg 112deg,
|
|
22
|
-
#c67b5c 112deg 140deg,
|
|
23
|
-
#4169e1 140deg 168deg,
|
|
24
|
-
#c9b458 168deg 196deg,
|
|
25
|
-
#708090 196deg 224deg,
|
|
26
|
-
#5cb875 224deg 252deg,
|
|
27
|
-
#9b59b6 252deg 280deg,
|
|
28
|
-
#00838f 280deg 308deg,
|
|
29
|
-
#2e9e6e 308deg 336deg,
|
|
30
|
-
#c5a55a 336deg 360deg
|
|
31
|
-
);
|
|
32
|
-
padding: 0;
|
|
33
|
-
transition: transform 0.18s ease, box-shadow 0.18s ease;
|
|
34
|
-
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.dm-ts-trigger:hover {
|
|
38
|
-
transform: scale(1.14);
|
|
39
|
-
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.dm-ts-options {
|
|
43
|
-
position: absolute;
|
|
44
|
-
display: grid;
|
|
45
|
-
grid-template-columns: repeat(2, 28px);
|
|
46
|
-
gap: 8px;
|
|
47
|
-
padding: 10px;
|
|
48
|
-
background: var(--dm-surface, #1e2030);
|
|
49
|
-
border: 1px solid var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
50
|
-
border-radius: 14px;
|
|
51
|
-
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
|
52
|
-
opacity: 0;
|
|
53
|
-
visibility: hidden;
|
|
54
|
-
transform: scale(0.92) translateY(6px);
|
|
55
|
-
transform-origin: bottom right;
|
|
56
|
-
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
|
|
57
|
-
pointer-events: none;
|
|
58
|
-
bottom: 56px;
|
|
59
|
-
right: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* Left-anchored: panel opens to the right */
|
|
63
|
-
.dm-theme-switcher.dm-ts-left .dm-ts-options {
|
|
64
|
-
right: auto;
|
|
65
|
-
left: 0;
|
|
66
|
-
transform-origin: bottom left;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* Top-anchored: panel opens downward */
|
|
70
|
-
.dm-theme-switcher.dm-ts-top .dm-ts-options {
|
|
71
|
-
bottom: auto;
|
|
72
|
-
top: 56px;
|
|
73
|
-
transform: scale(0.92) translateY(-6px);
|
|
74
|
-
transform-origin: top right;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.dm-theme-switcher.dm-ts-top.dm-ts-left .dm-ts-options {
|
|
78
|
-
transform-origin: top left;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.dm-theme-switcher:hover .dm-ts-options,
|
|
82
|
-
.dm-theme-switcher:focus-within .dm-ts-options {
|
|
83
|
-
opacity: 1;
|
|
84
|
-
visibility: visible;
|
|
85
|
-
transform: scale(1) translateY(0);
|
|
86
|
-
pointer-events: all;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Top-anchored open state uses same final transform */
|
|
90
|
-
.dm-theme-switcher.dm-ts-top:hover .dm-ts-options,
|
|
91
|
-
.dm-theme-switcher.dm-ts-top:focus-within .dm-ts-options {
|
|
92
|
-
transform: scale(1) translateY(0);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.dm-ts-dot {
|
|
96
|
-
width: 28px;
|
|
97
|
-
height: 28px;
|
|
98
|
-
border-radius: 50%;
|
|
99
|
-
border: 2px solid transparent;
|
|
100
|
-
cursor: pointer;
|
|
101
|
-
padding: 0;
|
|
102
|
-
position: relative;
|
|
103
|
-
transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
|
|
104
|
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
|
|
105
|
-
outline: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.dm-ts-dot:hover {
|
|
109
|
-
transform: scale(1.22);
|
|
110
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.dm-ts-dot.active {
|
|
114
|
-
border-color: #fff;
|
|
115
|
-
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* Tooltip */
|
|
119
|
-
.dm-ts-dot::after,
|
|
120
|
-
.dm-ts-trigger::after {
|
|
121
|
-
content: attr(data-tooltip);
|
|
122
|
-
position: absolute;
|
|
123
|
-
top: 50%;
|
|
124
|
-
transform: translateY(-50%);
|
|
125
|
-
background: rgba(10, 12, 20, 0.92);
|
|
126
|
-
color: #fff;
|
|
127
|
-
padding: 4px 9px;
|
|
128
|
-
border-radius: 5px;
|
|
129
|
-
font-size: 0.7rem;
|
|
130
|
-
font-family: system-ui, sans-serif;
|
|
131
|
-
white-space: nowrap;
|
|
132
|
-
opacity: 0;
|
|
133
|
-
pointer-events: none;
|
|
134
|
-
transition: opacity 0.15s ease;
|
|
135
|
-
z-index: 1;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/* Tooltip direction flips with anchor side */
|
|
139
|
-
.dm-theme-switcher:not(.dm-ts-left) .dm-ts-dot::after,
|
|
140
|
-
.dm-theme-switcher:not(.dm-ts-left) .dm-ts-trigger::after {
|
|
141
|
-
right: calc(100% + 7px);
|
|
142
|
-
left: auto;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.dm-theme-switcher.dm-ts-left .dm-ts-dot::after,
|
|
146
|
-
.dm-theme-switcher.dm-ts-left .dm-ts-trigger::after {
|
|
147
|
-
left: calc(100% + 7px);
|
|
148
|
-
right: auto;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.dm-ts-dot:hover::after,
|
|
152
|
-
.dm-ts-trigger:hover::after {
|
|
153
|
-
opacity: 1;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/* Dot colours */
|
|
157
|
-
.dm-ts-dot-ocean-dark {
|
|
158
|
-
background: linear-gradient(135deg, #023e8a, #0077b6);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.dm-ts-dot-ocean-light {
|
|
162
|
-
background: linear-gradient(135deg, #48cae4, #90e0ef);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.dm-ts-dot-forest-dark {
|
|
166
|
-
background: linear-gradient(135deg, #1b4332, #2d6a4f);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.dm-ts-dot-forest-light {
|
|
170
|
-
background: linear-gradient(135deg, #52b788, #95d5b2);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.dm-ts-dot-sunset-dark {
|
|
174
|
-
background: linear-gradient(135deg, #8b4513, #c67b5c);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.dm-ts-dot-sunset-light {
|
|
178
|
-
background: linear-gradient(135deg, #f4a261, #ffc09f);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.dm-ts-dot-royal-dark {
|
|
182
|
-
background: linear-gradient(135deg, #1e3a8a, #2b4c9e);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.dm-ts-dot-royal-light {
|
|
186
|
-
background: linear-gradient(135deg, #6495ed, #a3b8f2);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.dm-ts-dot-lemon-dark {
|
|
190
|
-
background: linear-gradient(135deg, #854d0e, #a89c3a);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.dm-ts-dot-lemon-light {
|
|
194
|
-
background: linear-gradient(135deg, #f9e44a, #fffbeb);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.dm-ts-dot-silver-dark {
|
|
198
|
-
background: linear-gradient(135deg, #2d3748, #4a5568);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.dm-ts-dot-silver-light {
|
|
202
|
-
background: linear-gradient(135deg, #e2e8f0, #a0aec0);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.dm-ts-dot-charcoal-dark {
|
|
206
|
-
background: linear-gradient(135deg, #1a202c, #2d3748);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.dm-ts-dot-charcoal-light {
|
|
210
|
-
background: linear-gradient(135deg, #718096, #cbd5e0);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.dm-ts-dot-christmas-dark {
|
|
214
|
-
background: linear-gradient(135deg, #0a1a10, #1a3020);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.dm-ts-dot-christmas-light {
|
|
218
|
-
background: linear-gradient(135deg, #228b22, #c41e3a);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.dm-ts-dot-unicorn-dark {
|
|
222
|
-
background: linear-gradient(135deg, #1a0e24, #4a2660);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.dm-ts-dot-unicorn-light {
|
|
226
|
-
background: linear-gradient(135deg, #e91e90, #9b59b6);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.dm-ts-dot-dreamy-dark {
|
|
230
|
-
background: linear-gradient(135deg, #1c1410, #4e342e);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.dm-ts-dot-dreamy-light {
|
|
234
|
-
background: linear-gradient(135deg, #d7ccc8, #8d6e63);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.dm-ts-dot-grayve-dark {
|
|
238
|
-
background: linear-gradient(135deg, #1a1e21, #343a40);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.dm-ts-dot-grayve-light {
|
|
242
|
-
background: linear-gradient(135deg, #b2ebf2, #00838f);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.dm-ts-dot-mint-dark {
|
|
246
|
-
background: linear-gradient(135deg, #1e3a2f, #2e6e52);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.dm-ts-dot-mint-light {
|
|
250
|
-
background: linear-gradient(135deg, #a8edcc, #2e9e6e);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.dm-ts-dot-wedding-dark {
|
|
254
|
-
background: linear-gradient(135deg, #12121f, #c5a55a);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.dm-ts-dot-wedding-light {
|
|
258
|
-
background: linear-gradient(135deg, #fffdf7, #c5a55a);
|
|
259
|
-
}
|
|
260
|
-
</style>
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
<div class="p-4">
|
|
2
|
-
<div class="card">
|
|
3
|
-
<div class="card-body">
|
|
4
|
-
|
|
5
|
-
<!-- Header -->
|
|
6
|
-
<div class="flex items-center justify-between mb-4">
|
|
7
|
-
<h2 class="text-lg font-semibold" style="margin:0;">
|
|
8
|
-
<span data-icon="check-square" data-icon-size="20" style="vertical-align:middle;margin-right:8px;"></span>
|
|
9
|
-
Todo
|
|
10
|
-
</h2>
|
|
11
|
-
<button id="clear-completed-btn" class="btn btn-sm btn-danger">
|
|
12
|
-
<span data-icon="trash" data-icon-size="14"></span>
|
|
13
|
-
Clear Completed
|
|
14
|
-
</button>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<!-- Add new todo row -->
|
|
18
|
-
<div class="flex gap-2 mb-4" style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;">
|
|
19
|
-
<input
|
|
20
|
-
type="text"
|
|
21
|
-
id="todo-input"
|
|
22
|
-
class="form-input"
|
|
23
|
-
placeholder="What needs to be done?"
|
|
24
|
-
autocomplete="off"
|
|
25
|
-
style="flex:1;min-width:200px;"
|
|
26
|
-
/>
|
|
27
|
-
<select id="priority-input" class="form-input" style="width:130px;">
|
|
28
|
-
<option value="highest">Highest</option>
|
|
29
|
-
<option value="high">High</option>
|
|
30
|
-
<option value="medium" selected>Medium</option>
|
|
31
|
-
<option value="low">Low</option>
|
|
32
|
-
<option value="lowest">Lowest</option>
|
|
33
|
-
</select>
|
|
34
|
-
<input type="date" id="due-date-input" class="form-input" title="Due date (optional)"
|
|
35
|
-
style="width:145px;"/>
|
|
36
|
-
<button id="add-todo-btn" class="btn btn-primary">
|
|
37
|
-
<span data-icon="plus" data-icon-size="14"></span>
|
|
38
|
-
Add
|
|
39
|
-
</button>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<!-- Filter bar -->
|
|
43
|
-
<div id="filter-bar" class="flex gap-2 mb-4" style="display:flex;gap:8px;flex-wrap:wrap;">
|
|
44
|
-
<button class="btn btn-sm filter-btn active" data-filter="all">All</button>
|
|
45
|
-
<button class="btn btn-sm filter-btn" data-filter="not-started">Not Started</button>
|
|
46
|
-
<button class="btn btn-sm filter-btn" data-filter="in-progress">In Progress</button>
|
|
47
|
-
<button class="btn btn-sm filter-btn" data-filter="completed">Completed</button>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<!-- Todo table -->
|
|
51
|
-
<div id="todo-table"></div>
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<style>
|
|
58
|
-
.todo-item {
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
gap: 10px;
|
|
62
|
-
padding: 9px 0;
|
|
63
|
-
border-bottom: 1px solid var(--dm-border);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.todo-item:last-child {
|
|
67
|
-
border-bottom: none;
|
|
68
|
-
}
|
|
69
|
-
.todo-item.completed .todo-text {
|
|
70
|
-
text-decoration: line-through;
|
|
71
|
-
opacity: 0.45;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.todo-checkbox {
|
|
75
|
-
flex-shrink: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.todo-text {
|
|
79
|
-
flex: 1;
|
|
80
|
-
min-width: 0;
|
|
81
|
-
word-break: break-word;
|
|
82
|
-
font-size: 0.9rem;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.todo-selects {
|
|
86
|
-
display: flex;
|
|
87
|
-
gap: 5px;
|
|
88
|
-
flex-shrink: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.todo-select-pill {
|
|
92
|
-
appearance: none;
|
|
93
|
-
-webkit-appearance: none;
|
|
94
|
-
border: none;
|
|
95
|
-
border-radius: 999px;
|
|
96
|
-
padding: 2px 10px 2px 8px;
|
|
97
|
-
font-size: 0.72rem;
|
|
98
|
-
font-weight: 500;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
outline: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.todo-select-pill:focus {
|
|
104
|
-
box-shadow: 0 0 0 2px var(--dm-primary-soft, rgba(99, 102, 241, .3));
|
|
105
|
-
}
|
|
106
|
-
.todo-actions {
|
|
107
|
-
display: flex;
|
|
108
|
-
gap: 3px;
|
|
109
|
-
flex-shrink: 0;
|
|
110
|
-
}
|
|
111
|
-
.filter-btn.active {
|
|
112
|
-
background: var(--dm-primary);
|
|
113
|
-
color: #fff;
|
|
114
|
-
border-color: var(--dm-primary);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/* Status pill colours */
|
|
118
|
-
.status-pill-not-started {
|
|
119
|
-
background: var(--dm-gray-200, #e5e7eb);
|
|
120
|
-
color: var(--dm-gray-700, #374151);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.status-pill-in-progress {
|
|
124
|
-
background: #dbeafe;
|
|
125
|
-
color: #2563eb;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.status-pill-completed {
|
|
129
|
-
background: #dcfce7;
|
|
130
|
-
color: #16a34a;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/* Priority pill colours */
|
|
134
|
-
.priority-pill-highest {
|
|
135
|
-
background: #fee2e2;
|
|
136
|
-
color: #b91c1c;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.priority-pill-high {
|
|
140
|
-
background: #ffedd5;
|
|
141
|
-
color: #c2410c;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.priority-pill-medium {
|
|
145
|
-
background: #fef9c3;
|
|
146
|
-
color: #a16207;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.priority-pill-low {
|
|
150
|
-
background: #dbeafe;
|
|
151
|
-
color: #1d4ed8;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.priority-pill-lowest {
|
|
155
|
-
background: #f3f4f6;
|
|
156
|
-
color: #6b7280;
|
|
157
|
-
}
|
|
158
|
-
</style>
|