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,83 +0,0 @@
|
|
|
1
|
-
<div class="notes-plugin-wrap" style="padding: 24px; max-width: 1200px;">
|
|
2
|
-
|
|
3
|
-
<!-- Toolbar -->
|
|
4
|
-
<div class="notes-toolbar" style="display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px;">
|
|
5
|
-
<h2 style="margin:0;flex:0 0 auto;font-size:1.4rem;">
|
|
6
|
-
<span data-icon="file-text" data-icon-size="20" style="margin-right:8px;"></span>Notes
|
|
7
|
-
</h2>
|
|
8
|
-
<input
|
|
9
|
-
id="notes-search"
|
|
10
|
-
type="search"
|
|
11
|
-
class="form-input"
|
|
12
|
-
placeholder="Search notes…"
|
|
13
|
-
style="flex:1;min-width:180px;max-width:320px;"
|
|
14
|
-
/>
|
|
15
|
-
<button id="new-note-btn" class="btn btn-primary" style="flex-shrink:0;">
|
|
16
|
-
<span data-icon="plus" data-icon-size="15" style="margin-right:6px;"></span>New Note
|
|
17
|
-
</button>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<!-- Category filter -->
|
|
21
|
-
<div id="category-filter" style="display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px;"></div>
|
|
22
|
-
|
|
23
|
-
<!-- Notes table -->
|
|
24
|
-
<div id="notes-table"></div>
|
|
25
|
-
|
|
26
|
-
<!-- Editor overlay -->
|
|
27
|
-
<div
|
|
28
|
-
id="note-editor"
|
|
29
|
-
style="display:none;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,0.45);
|
|
30
|
-
align-items:center;justify-content:center;padding:20px;"
|
|
31
|
-
>
|
|
32
|
-
<div class="card" style="width:100%;max-width:640px;max-height:90vh;display:flex;flex-direction:column;">
|
|
33
|
-
<div class="card-header" style="display:flex;align-items:center;justify-content:space-between;padding:16px 20px;">
|
|
34
|
-
<strong style="font-size:1rem;">Edit Note</strong>
|
|
35
|
-
<button id="cancel-note-btn" class="btn btn-sm btn-secondary" title="Close">
|
|
36
|
-
<span data-icon="x" data-icon-size="15"></span>
|
|
37
|
-
</button>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="card-body" style="flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:14px;">
|
|
40
|
-
<div>
|
|
41
|
-
<label for="note-title" class="form-label" style="font-weight:500;margin-bottom:4px;display:block;">Title</label>
|
|
42
|
-
<input
|
|
43
|
-
id="note-title"
|
|
44
|
-
type="text"
|
|
45
|
-
class="form-input"
|
|
46
|
-
placeholder="Note title…"
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
<div style="flex:1;display:flex;flex-direction:column;">
|
|
50
|
-
<label for="note-content" class="form-label" style="font-weight:500;margin-bottom:4px;display:block;">Content</label>
|
|
51
|
-
<textarea
|
|
52
|
-
id="note-content"
|
|
53
|
-
class="form-input"
|
|
54
|
-
placeholder="Write your note here… (Ctrl+Enter to save)"
|
|
55
|
-
style="flex:1;min-height:220px;resize:vertical;font-family:inherit;"
|
|
56
|
-
></textarea>
|
|
57
|
-
</div>
|
|
58
|
-
<div>
|
|
59
|
-
<label for="note-categories" class="form-label" style="font-weight:500;margin-bottom:4px;display:block;">Categories</label>
|
|
60
|
-
<input
|
|
61
|
-
id="note-categories"
|
|
62
|
-
type="text"
|
|
63
|
-
class="form-input"
|
|
64
|
-
placeholder="Comma-separated, e.g. work, ideas, personal"
|
|
65
|
-
/>
|
|
66
|
-
<small style="opacity:0.6;margin-top:4px;display:block;">Separate multiple categories with commas.</small>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="card-footer" style="display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;">
|
|
70
|
-
<button id="delete-note-btn" class="btn btn-danger btn-sm" style="display:none;">
|
|
71
|
-
<span data-icon="trash" data-icon-size="13" style="margin-right:5px;"></span>Delete
|
|
72
|
-
</button>
|
|
73
|
-
<div style="display:flex;gap:8px;margin-left:auto;">
|
|
74
|
-
<button id="cancel-note-btn-footer" class="btn btn-secondary btn-sm">Cancel</button>
|
|
75
|
-
<button id="save-note-btn" class="btn btn-primary btn-sm">
|
|
76
|
-
<span data-icon="save" data-icon-size="13" style="margin-right:5px;"></span>Save
|
|
77
|
-
</button>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
</div>
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
// ============================================================
|
|
2
|
-
// Notes plugin admin view
|
|
3
|
-
// Uses auth-aware api() helper for all API calls
|
|
4
|
-
// Uses T.create() for table rendering (Domma Table component)
|
|
5
|
-
// ============================================================
|
|
6
|
-
|
|
7
|
-
const esc = (str) => String(str ?? '')
|
|
8
|
-
.replace(/&/g, '&')
|
|
9
|
-
.replace(/</g, '<')
|
|
10
|
-
.replace(/>/g, '>')
|
|
11
|
-
.replace(/"/g, '"')
|
|
12
|
-
.replace(/'/g, ''');
|
|
13
|
-
|
|
14
|
-
function debounce(fn, delay) {
|
|
15
|
-
let timer;
|
|
16
|
-
return (...args) => {
|
|
17
|
-
clearTimeout(timer);
|
|
18
|
-
timer = setTimeout(() => fn(...args), delay);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
async function api(url, method = 'GET', body) {
|
|
23
|
-
const opts = {method, headers: {'Authorization': 'Bearer ' + (S.get('auth_token') || '')}};
|
|
24
|
-
if (body !== undefined) {
|
|
25
|
-
opts.headers['Content-Type'] = 'application/json';
|
|
26
|
-
opts.body = JSON.stringify(body);
|
|
27
|
-
}
|
|
28
|
-
const res = await fetch(url, opts);
|
|
29
|
-
if (!res.ok) {
|
|
30
|
-
const err = await res.json().catch(() => ({error: res.statusText}));
|
|
31
|
-
throw new Error(err.error || res.statusText);
|
|
32
|
-
}
|
|
33
|
-
const text = await res.text();
|
|
34
|
-
return text ? JSON.parse(text) : {};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const notesView = {
|
|
38
|
-
templateUrl: '/plugins/notes/admin/templates/notes.html',
|
|
39
|
-
|
|
40
|
-
async onMount($container) {
|
|
41
|
-
// ---- State ----
|
|
42
|
-
let notes = [];
|
|
43
|
-
let categories = [];
|
|
44
|
-
let activeCategory = '';
|
|
45
|
-
let searchQuery = '';
|
|
46
|
-
let editingNoteId = null;
|
|
47
|
-
|
|
48
|
-
// ---- DOM refs ----
|
|
49
|
-
const editorEl = $container.find('#note-editor').get(0);
|
|
50
|
-
const titleInput = $container.find('#note-title').get(0);
|
|
51
|
-
const contentInput = $container.find('#note-content').get(0);
|
|
52
|
-
const catsInput = $container.find('#note-categories').get(0);
|
|
53
|
-
const deleteBtnEl = $container.find('#delete-note-btn').get(0);
|
|
54
|
-
const catFilterEl = $container.find('#category-filter').get(0);
|
|
55
|
-
|
|
56
|
-
// ---- Fetch ----
|
|
57
|
-
async function loadNotes() {
|
|
58
|
-
try {
|
|
59
|
-
const params = new URLSearchParams();
|
|
60
|
-
if (searchQuery) params.set('q', searchQuery);
|
|
61
|
-
if (activeCategory) params.set('category', activeCategory);
|
|
62
|
-
const qs = params.toString();
|
|
63
|
-
const url = '/api/plugins/notes/items' + (qs ? '?' + qs : '');
|
|
64
|
-
const res = await api(url);
|
|
65
|
-
notes = Array.isArray(res) ? res : (res.data ?? []);
|
|
66
|
-
} catch {
|
|
67
|
-
E.toast('Failed to load notes', { type: 'error' });
|
|
68
|
-
notes = [];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
async function loadCategories() {
|
|
73
|
-
try {
|
|
74
|
-
const res = await api('/api/plugins/notes/categories');
|
|
75
|
-
categories = Array.isArray(res) ? res : [];
|
|
76
|
-
} catch {
|
|
77
|
-
categories = [];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// ---- Render table ----
|
|
82
|
-
function renderTable() {
|
|
83
|
-
const wrap = $container.find('#notes-table').get(0);
|
|
84
|
-
if (!wrap) return;
|
|
85
|
-
|
|
86
|
-
T.create(wrap, {
|
|
87
|
-
data: notes,
|
|
88
|
-
columns: [
|
|
89
|
-
{
|
|
90
|
-
key: 'title',
|
|
91
|
-
title: 'Title',
|
|
92
|
-
sortable: true,
|
|
93
|
-
render: (v) => `<strong>${esc(v || 'Untitled')}</strong>`
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
key: 'content',
|
|
97
|
-
title: 'Content',
|
|
98
|
-
sortable: false,
|
|
99
|
-
render: (v) => {
|
|
100
|
-
const preview = (v || '').slice(0, 100);
|
|
101
|
-
const ellipsis = v && v.length > 100 ? '\u2026' : '';
|
|
102
|
-
return preview
|
|
103
|
-
? `<span style="font-size:0.87rem;opacity:0.8;">${esc(preview)}${ellipsis}</span>`
|
|
104
|
-
: '<span style="opacity:0.35;">-</span>';
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
key: 'categories',
|
|
109
|
-
title: 'Categories',
|
|
110
|
-
sortable: false,
|
|
111
|
-
render: (v) => {
|
|
112
|
-
if (!Array.isArray(v) || v.length === 0) return '<span style="opacity:0.35;">-</span>';
|
|
113
|
-
return v.map((c) =>
|
|
114
|
-
`<span class="badge badge-outline notes-cat-tag" data-cat="${esc(c)}" `
|
|
115
|
-
+ `style="font-size:0.7rem;margin-right:2px;cursor:pointer;">${esc(c)}</span>`
|
|
116
|
-
).join('');
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
key: 'updatedAt',
|
|
121
|
-
title: 'Updated',
|
|
122
|
-
sortable: true,
|
|
123
|
-
render: (v) => v
|
|
124
|
-
? `<span title="${esc(D(v).format('DD MMM YYYY HH:mm'))}">${esc(D(v).fromNow())}</span>`
|
|
125
|
-
: '-'
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
key: 'id',
|
|
129
|
-
title: 'Actions',
|
|
130
|
-
sortable: false,
|
|
131
|
-
render: (id) =>
|
|
132
|
-
`<div style="display:flex;gap:.4rem;">` +
|
|
133
|
-
`<button class="btn btn-sm btn-outline note-edit-btn" data-id="${esc(id)}">Edit</button>` +
|
|
134
|
-
`<button class="btn btn-sm btn-danger note-delete-btn" data-id="${esc(id)}">Delete</button>` +
|
|
135
|
-
`</div>`
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
emptyMessage: 'No notes yet. Click New Note to get started.'
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
wrap.querySelectorAll('.note-edit-btn').forEach((btn) => {
|
|
142
|
-
btn.addEventListener('click', () => {
|
|
143
|
-
const note = notes.find((n) => n.id === btn.dataset.id);
|
|
144
|
-
if (note) openEditor(note);
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
wrap.querySelectorAll('.note-delete-btn').forEach((btn) => {
|
|
149
|
-
btn.addEventListener('click', () => deleteNote(btn.dataset.id));
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
wrap.querySelectorAll('.notes-cat-tag').forEach((tag) => {
|
|
153
|
-
tag.addEventListener('click', () => {
|
|
154
|
-
activeCategory = tag.dataset.cat;
|
|
155
|
-
renderCategoryFilter();
|
|
156
|
-
loadNotes().then(renderTable);
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
Domma.icons.scan(wrap);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// ---- Render category filter bar (DOM methods - no innerHTML with user data) ----
|
|
164
|
-
function renderCategoryFilter() {
|
|
165
|
-
catFilterEl.textContent = '';
|
|
166
|
-
|
|
167
|
-
const makeBtn = (label, cat) => {
|
|
168
|
-
const btn = document.createElement('button');
|
|
169
|
-
btn.className = 'btn btn-sm cat-filter-btn ' + (activeCategory === cat ? 'btn-primary' : 'btn-secondary');
|
|
170
|
-
btn.dataset.cat = cat;
|
|
171
|
-
btn.style.marginRight = '4px';
|
|
172
|
-
btn.textContent = label;
|
|
173
|
-
return btn;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
catFilterEl.appendChild(makeBtn('All', ''));
|
|
177
|
-
for (const c of categories) {
|
|
178
|
-
catFilterEl.appendChild(makeBtn(c, c));
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// ---- Full reload ----
|
|
183
|
-
async function reload() {
|
|
184
|
-
await Promise.all([loadNotes(), loadCategories()]);
|
|
185
|
-
renderTable();
|
|
186
|
-
renderCategoryFilter();
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// ---- Editor helpers ----
|
|
190
|
-
function openEditor(note = null) {
|
|
191
|
-
editingNoteId = note ? note.id : null;
|
|
192
|
-
titleInput.value = note ? (note.title || '') : '';
|
|
193
|
-
contentInput.value = note ? (note.content || '') : '';
|
|
194
|
-
catsInput.value = note && Array.isArray(note.categories) ? note.categories.join(', ') : '';
|
|
195
|
-
deleteBtnEl.style.display = note ? 'inline-flex' : 'none';
|
|
196
|
-
editorEl.style.display = 'flex';
|
|
197
|
-
titleInput.focus();
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
function closeEditor() {
|
|
201
|
-
editorEl.style.display = 'none';
|
|
202
|
-
editingNoteId = null;
|
|
203
|
-
titleInput.value = '';
|
|
204
|
-
contentInput.value = '';
|
|
205
|
-
catsInput.value = '';
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function parseCategoriesInput() {
|
|
209
|
-
return catsInput.value.split(',').map((c) => c.trim()).filter(Boolean);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// ---- Save (create or update) ----
|
|
213
|
-
async function saveNote() {
|
|
214
|
-
const title = titleInput.value.trim();
|
|
215
|
-
const content = contentInput.value.trim();
|
|
216
|
-
const cats = parseCategoriesInput();
|
|
217
|
-
|
|
218
|
-
try {
|
|
219
|
-
if (editingNoteId) {
|
|
220
|
-
await api('/api/plugins/notes/items/' + editingNoteId, 'PUT', {title, content, categories: cats});
|
|
221
|
-
E.toast('Note updated', { type: 'success' });
|
|
222
|
-
} else {
|
|
223
|
-
await api('/api/plugins/notes/items', 'POST', {title, content, categories: cats});
|
|
224
|
-
E.toast('Note created', { type: 'success' });
|
|
225
|
-
}
|
|
226
|
-
closeEditor();
|
|
227
|
-
await reload();
|
|
228
|
-
} catch {
|
|
229
|
-
E.toast('Failed to save note', { type: 'error' });
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// ---- Delete ----
|
|
234
|
-
async function deleteNote(id) {
|
|
235
|
-
const confirmed = await E.confirm('Delete this note?');
|
|
236
|
-
if (!confirmed) return;
|
|
237
|
-
|
|
238
|
-
try {
|
|
239
|
-
await api('/api/plugins/notes/items/' + id, 'DELETE');
|
|
240
|
-
E.toast('Note deleted', { type: 'success' });
|
|
241
|
-
if (editingNoteId === id) closeEditor();
|
|
242
|
-
await reload();
|
|
243
|
-
} catch {
|
|
244
|
-
E.toast('Failed to delete note', { type: 'error' });
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// ---- Event bindings ----
|
|
249
|
-
|
|
250
|
-
$container.find('#new-note-btn').get(0).addEventListener('click', () => openEditor());
|
|
251
|
-
$container.find('#save-note-btn').get(0).addEventListener('click', saveNote);
|
|
252
|
-
$container.find('#cancel-note-btn').get(0).addEventListener('click', closeEditor);
|
|
253
|
-
$container.find('#cancel-note-btn-footer').get(0).addEventListener('click', closeEditor);
|
|
254
|
-
deleteBtnEl.addEventListener('click', () => {
|
|
255
|
-
if (editingNoteId) deleteNote(editingNoteId);
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
$container.find('#notes-search').get(0).addEventListener('input', debounce(async (e) => {
|
|
259
|
-
searchQuery = e.target.value.trim();
|
|
260
|
-
await loadNotes();
|
|
261
|
-
renderTable();
|
|
262
|
-
}, 300));
|
|
263
|
-
|
|
264
|
-
catFilterEl.addEventListener('click', async (e) => {
|
|
265
|
-
const btn = e.target.closest('.cat-filter-btn');
|
|
266
|
-
if (!btn) return;
|
|
267
|
-
activeCategory = btn.dataset.cat;
|
|
268
|
-
renderCategoryFilter();
|
|
269
|
-
await loadNotes();
|
|
270
|
-
renderTable();
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
editorEl.addEventListener('keydown', (e) => {
|
|
274
|
-
if ((e.ctrlKey || e.metaKey) && e.key === 'Enter') saveNote();
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
// ---- Initial load ----
|
|
278
|
-
await reload();
|
|
279
|
-
Domma.icons.scan($container.get(0));
|
|
280
|
-
}
|
|
281
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"slug": "notes-notes",
|
|
3
|
-
"title": "Notes",
|
|
4
|
-
"description": "Notes managed by the Notes plugin.",
|
|
5
|
-
"plugin": "notes",
|
|
6
|
-
"fields": [
|
|
7
|
-
{
|
|
8
|
-
"name": "title",
|
|
9
|
-
"label": "Title",
|
|
10
|
-
"type": "text",
|
|
11
|
-
"required": false
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "content",
|
|
15
|
-
"label": "Content",
|
|
16
|
-
"type": "textarea",
|
|
17
|
-
"required": false
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "categories",
|
|
21
|
-
"label": "Categories",
|
|
22
|
-
"type": "text",
|
|
23
|
-
"required": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "userId",
|
|
27
|
-
"label": "User ID",
|
|
28
|
-
"type": "text",
|
|
29
|
-
"required": false
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"api": {
|
|
33
|
-
"create": {
|
|
34
|
-
"enabled": true,
|
|
35
|
-
"access": "admin"
|
|
36
|
-
},
|
|
37
|
-
"read": {
|
|
38
|
-
"enabled": true,
|
|
39
|
-
"access": "admin"
|
|
40
|
-
},
|
|
41
|
-
"update": {
|
|
42
|
-
"enabled": false,
|
|
43
|
-
"access": "admin"
|
|
44
|
-
},
|
|
45
|
-
"delete": {
|
|
46
|
-
"enabled": false,
|
|
47
|
-
"access": "admin"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"storage": {
|
|
51
|
-
"adapter": "mongodb",
|
|
52
|
-
"connection": "default"
|
|
53
|
-
}
|
|
54
|
-
}
|
package/plugins/notes/config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[]
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "notes",
|
|
3
|
-
"displayName": "Notes",
|
|
4
|
-
"version": "1.0.0",
|
|
5
|
-
"description": "Rich note-taking with categories, search, and markdown content.",
|
|
6
|
-
"author": "Darryl Waterhouse",
|
|
7
|
-
"date": "2026-03-24",
|
|
8
|
-
"icon": "file-text",
|
|
9
|
-
"admin": {
|
|
10
|
-
"sidebar": [
|
|
11
|
-
{
|
|
12
|
-
"id": "notes",
|
|
13
|
-
"text": "Notes",
|
|
14
|
-
"icon": "file-text",
|
|
15
|
-
"url": "#/plugins/notes",
|
|
16
|
-
"section": "#/plugins/notes"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"routes": [
|
|
20
|
-
{
|
|
21
|
-
"path": "/plugins/notes",
|
|
22
|
-
"view": "plugin-notes",
|
|
23
|
-
"title": "Notes - Domma CMS"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"views": {
|
|
27
|
-
"plugin-notes": {
|
|
28
|
-
"entry": "notes/admin/views/notes.js?v=1010cfca",
|
|
29
|
-
"exportName": "notesView"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Site Search Plugin - Admin Settings View
|
|
3
|
-
*/
|
|
4
|
-
import {apiRequest} from '/admin/js/api.js';
|
|
5
|
-
|
|
6
|
-
export const siteSearchView = {
|
|
7
|
-
templateUrl: '/plugins/site-search/admin/templates/site-search.html',
|
|
8
|
-
|
|
9
|
-
async onMount($container) {
|
|
10
|
-
let settings = {};
|
|
11
|
-
try {
|
|
12
|
-
settings = await apiRequest('/plugins/site-search/settings');
|
|
13
|
-
} catch {
|
|
14
|
-
E.toast('Could not load settings.', {type: 'error'});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// ---- Basic settings ----
|
|
18
|
-
$container.find('#field-placeholder').val(settings.placeholder || 'Search pages...');
|
|
19
|
-
$container.find('#field-keyboard-shortcut').prop('checked', settings.keyboardShortcut !== false);
|
|
20
|
-
$container.find('#field-max-results').val(settings.maxResults ?? 10);
|
|
21
|
-
$container.find('#field-min-query-length').val(settings.minQueryLength ?? 2);
|
|
22
|
-
$container.find('#field-debounce-ms').val(settings.debounceMs ?? 300);
|
|
23
|
-
|
|
24
|
-
// ---- Position settings ----
|
|
25
|
-
const displayMode = settings.displayMode || 'navbar';
|
|
26
|
-
const fieldMode = document.getElementById('field-display-mode');
|
|
27
|
-
const fieldPos = document.getElementById('field-position');
|
|
28
|
-
const fieldOffX = document.getElementById('field-offset-x');
|
|
29
|
-
const fieldOffY = document.getElementById('field-offset-y');
|
|
30
|
-
const fieldIconOnly = document.getElementById('field-icon-only');
|
|
31
|
-
const posSection = document.getElementById('ss-pos-section');
|
|
32
|
-
const posGrid = document.getElementById('ss-pos-grid');
|
|
33
|
-
const modeBar = document.getElementById('ss-display-mode');
|
|
34
|
-
|
|
35
|
-
if (fieldMode) fieldMode.value = displayMode;
|
|
36
|
-
if (fieldPos) fieldPos.value = settings.position ?? 'bottom-right';
|
|
37
|
-
if (fieldOffX) fieldOffX.value = settings.offsetX ?? 32;
|
|
38
|
-
if (fieldOffY) fieldOffY.value = settings.offsetY ?? 32;
|
|
39
|
-
if (fieldIconOnly) fieldIconOnly.checked = settings.iconOnly !== false;
|
|
40
|
-
|
|
41
|
-
function applyMode(mode) {
|
|
42
|
-
if (fieldMode) fieldMode.value = mode;
|
|
43
|
-
if (posSection) posSection.style.display = mode === 'floating' ? '' : 'none';
|
|
44
|
-
if (modeBar) {
|
|
45
|
-
modeBar.querySelectorAll('.ss-mode-btn').forEach(function (btn) {
|
|
46
|
-
const active = btn.getAttribute('data-mode') === mode;
|
|
47
|
-
btn.classList.toggle('btn-primary', active);
|
|
48
|
-
btn.classList.toggle('btn-secondary', !active);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function updatePosBtns(pos) {
|
|
54
|
-
document.querySelectorAll('.ss-pos-btn').forEach(function (btn) {
|
|
55
|
-
const active = btn.getAttribute('data-pos') === pos;
|
|
56
|
-
btn.style.background = active ? 'var(--dm-primary, #5b8cff)' : '';
|
|
57
|
-
btn.style.color = active ? '#fff' : '';
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
applyMode(displayMode);
|
|
62
|
-
updatePosBtns(settings.position || 'bottom-right');
|
|
63
|
-
|
|
64
|
-
// Mode toggle buttons
|
|
65
|
-
if (modeBar) {
|
|
66
|
-
modeBar.addEventListener('click', function (e) {
|
|
67
|
-
const btn = e.target.closest('.ss-mode-btn');
|
|
68
|
-
if (!btn) return;
|
|
69
|
-
applyMode(btn.getAttribute('data-mode'));
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Position grid
|
|
74
|
-
if (posGrid) {
|
|
75
|
-
posGrid.addEventListener('click', function (e) {
|
|
76
|
-
const btn = e.target.closest('[data-pos]');
|
|
77
|
-
if (!btn) return;
|
|
78
|
-
const pos = btn.getAttribute('data-pos');
|
|
79
|
-
if (fieldPos) fieldPos.value = pos;
|
|
80
|
-
updatePosBtns(pos);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// ---- Save ----
|
|
85
|
-
$container.find('#save-settings-btn').off('click').on('click', async () => {
|
|
86
|
-
const data = {
|
|
87
|
-
placeholder: $container.find('#field-placeholder').val() || 'Search pages...',
|
|
88
|
-
keyboardShortcut: $container.find('#field-keyboard-shortcut').prop('checked'),
|
|
89
|
-
maxResults: parseInt($container.find('#field-max-results').val(), 10) || 10,
|
|
90
|
-
minQueryLength: parseInt($container.find('#field-min-query-length').val(), 10) || 2,
|
|
91
|
-
debounceMs: parseInt($container.find('#field-debounce-ms').val(), 10) || 300,
|
|
92
|
-
displayMode: fieldMode ? fieldMode.value : 'navbar',
|
|
93
|
-
position: fieldPos ? fieldPos.value : 'bottom-right',
|
|
94
|
-
offsetX: fieldOffX ? (parseInt(fieldOffX.value, 10) || 32) : 32,
|
|
95
|
-
offsetY: fieldOffY ? (parseInt(fieldOffY.value, 10) || 32) : 32,
|
|
96
|
-
iconOnly: fieldIconOnly ? fieldIconOnly.checked : true
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
try {
|
|
100
|
-
await apiRequest('/plugins/site-search/settings', {
|
|
101
|
-
method: 'PUT',
|
|
102
|
-
body: JSON.stringify(data)
|
|
103
|
-
});
|
|
104
|
-
E.toast('Settings saved.', {type: 'success'});
|
|
105
|
-
} catch {
|
|
106
|
-
E.toast('Failed to save settings.', {type: 'error'});
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
// Initialise tabs
|
|
111
|
-
const tabsEl = $container.find('#ss-settings-tabs').get(0);
|
|
112
|
-
if (tabsEl) E.tabs(tabsEl);
|
|
113
|
-
|
|
114
|
-
Domma.icons.scan();
|
|
115
|
-
}
|
|
116
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Site Search Plugin - Default Configuration
|
|
3
|
-
*/
|
|
4
|
-
export default {
|
|
5
|
-
placeholder: 'Search pages...',
|
|
6
|
-
keyboardShortcut: true,
|
|
7
|
-
maxResults: 10,
|
|
8
|
-
minQueryLength: 2,
|
|
9
|
-
debounceMs: 300,
|
|
10
|
-
displayMode: 'navbar',
|
|
11
|
-
position: 'bottom-right',
|
|
12
|
-
offsetX: 32,
|
|
13
|
-
offsetY: 32,
|
|
14
|
-
iconOnly: true
|
|
15
|
-
};
|