domma-cms 0.25.15 → 0.25.16

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.
Files changed (42) hide show
  1. package/admin/js/app.js +2 -2
  2. package/admin/js/templates/api-reference.html +68 -1233
  3. package/admin/js/templates/docs/api-actions.html +146 -0
  4. package/admin/js/templates/docs/api-authentication.html +202 -0
  5. package/admin/js/templates/docs/api-collections.html +347 -0
  6. package/admin/js/templates/docs/api-layouts.html +123 -0
  7. package/admin/js/templates/docs/api-media.html +158 -0
  8. package/admin/js/templates/docs/api-navigation.html +99 -0
  9. package/admin/js/templates/docs/api-pages.html +214 -0
  10. package/admin/js/templates/docs/api-plugins.html +136 -0
  11. package/admin/js/templates/docs/api-settings.html +148 -0
  12. package/admin/js/templates/docs/api-users.html +189 -0
  13. package/admin/js/templates/docs/api-views.html +142 -0
  14. package/admin/js/templates/docs/components-howto.html +175 -0
  15. package/admin/js/templates/docs/components-reference.html +259 -0
  16. package/admin/js/templates/docs/components-rules.html +167 -0
  17. package/admin/js/templates/docs/components-walkthrough.html +167 -0
  18. package/admin/js/templates/docs/tutorial-crud.html +344 -0
  19. package/admin/js/templates/docs/tutorial-forms.html +93 -0
  20. package/admin/js/templates/docs/tutorial-plugin.html +234 -0
  21. package/admin/js/templates/docs/usage-actions.html +122 -0
  22. package/admin/js/templates/docs/usage-cta-shortcode.html +124 -0
  23. package/admin/js/templates/docs/usage-dconfig.html +148 -0
  24. package/admin/js/templates/docs/usage-media.html +25 -0
  25. package/admin/js/templates/docs/usage-navigation.html +31 -0
  26. package/admin/js/templates/docs/usage-pages.html +68 -0
  27. package/admin/js/templates/docs/usage-plugins.html +36 -0
  28. package/admin/js/templates/docs/usage-shortcodes.html +810 -0
  29. package/admin/js/templates/docs/usage-site-settings.html +52 -0
  30. package/admin/js/templates/docs/usage-users-roles.html +84 -0
  31. package/admin/js/templates/docs/usage-views.html +105 -0
  32. package/admin/js/templates/documentation.html +60 -1522
  33. package/admin/js/templates/tutorials.html +46 -659
  34. package/admin/js/views/api-reference.js +1 -1
  35. package/admin/js/views/doc-pages.js +1 -0
  36. package/admin/js/views/documentation.js +1 -1
  37. package/admin/js/views/index.js +1 -1
  38. package/admin/js/views/tutorials.js +1 -1
  39. package/config/menus/admin-sidebar.json +76 -6
  40. package/package.json +1 -1
  41. package/server/server.js +3 -1
  42. package/server/services/sidebar-migration.js +145 -3
@@ -0,0 +1,31 @@
1
+ <div class="view-header">
2
+ <h1><span data-icon="book"></span> Navigation</h1>
3
+ <a href="#/documentation" class="btn btn-ghost btn-sm"><span data-icon="arrow-left"></span> All usage topics</a>
4
+ </div>
5
+
6
+ <div class="row">
7
+ <div class="col-12">
8
+ <div class="docs-body">
9
+
10
+ <p>The navigation tree is stored in <code>config/navigation.json</code> and injected into every public
11
+ page as
12
+ <code>window.__CMS_NAV__</code>.</p>
13
+
14
+ <h3>Dropdowns</h3>
15
+ <p>Nest items under a parent using the drag-and-drop tree in the Navigation editor. Child items are
16
+ stored under
17
+ the <code>items</code> key — the public navbar renders them as a dropdown.</p>
18
+
19
+ <h3>External links</h3>
20
+ <p>Set the URL to a full <code>https://</code> address to link outside the site. Leave blank for
21
+ section
22
+ headings.</p>
23
+
24
+ <h3>Icons</h3>
25
+ <p>Set the <code>icon</code> field to any registered icon name. Icons appear in the navbar link
26
+ alongside the
27
+ label.</p>
28
+
29
+ </div>
30
+ </div>
31
+ </div>
@@ -0,0 +1,68 @@
1
+ <div class="view-header">
2
+ <h1><span data-icon="book"></span> Pages</h1>
3
+ <a href="#/documentation" class="btn btn-ghost btn-sm"><span data-icon="arrow-left"></span> All usage topics</a>
4
+ </div>
5
+
6
+ <div class="row">
7
+ <div class="col-12">
8
+ <div class="docs-body">
9
+
10
+ <p>Pages are stored as Markdown files in <code>content/pages/</code>. Each file has a YAML frontmatter
11
+ block at
12
+ the top followed by the page body in Markdown.</p>
13
+
14
+ <h3>URL mapping</h3>
15
+ <table class="table table-sm">
16
+ <thead>
17
+ <tr>
18
+ <th>File path</th>
19
+ <th>Public URL</th>
20
+ </tr>
21
+ </thead>
22
+ <tbody>
23
+ <tr>
24
+ <td><code>content/pages/index.md</code></td>
25
+ <td><code>/</code></td>
26
+ </tr>
27
+ <tr>
28
+ <td><code>content/pages/about.md</code></td>
29
+ <td><code>/about</code></td>
30
+ </tr>
31
+ <tr>
32
+ <td><code>content/pages/blog/index.md</code></td>
33
+ <td><code>/blog</code></td>
34
+ </tr>
35
+ <tr>
36
+ <td><code>content/pages/blog/hello-world.md</code></td>
37
+ <td><code>/blog/hello-world</code></td>
38
+ </tr>
39
+ </tbody>
40
+ </table>
41
+
42
+ <h3>Frontmatter reference</h3>
43
+ <pre class="code-block"><code>---
44
+ title: My Page
45
+ description: A short description for SEO meta tags.
46
+ status: published # published | draft (draft pages return 404)
47
+ layout: default # layout name from config/presets.json
48
+ tags: [one, two] # optional taxonomy
49
+ updatedAt: 2026-03-01 # auto-set on save
50
+ ---
51
+
52
+ # Page heading
53
+
54
+ Your Markdown content goes here.</code></pre>
55
+
56
+ <h3>Drafts</h3>
57
+ <p>Pages with <code>status: draft</code> are never served on the public site — they return a 404.
58
+ Toggle status
59
+ in the Page Editor to publish.</p>
60
+
61
+ <h3>Layouts</h3>
62
+ <p>Layouts are defined in <code>config/presets.json</code> and apply CSS class wrappers around page
63
+ content.
64
+ Select a layout per-page in the editor, or change the default in Site Settings.</p>
65
+
66
+ </div>
67
+ </div>
68
+ </div>
@@ -0,0 +1,36 @@
1
+ <div class="view-header">
2
+ <h1><span data-icon="book"></span> Plugins</h1>
3
+ <a href="#/documentation" class="btn btn-ghost btn-sm"><span data-icon="arrow-left"></span> All usage topics</a>
4
+ </div>
5
+
6
+ <div class="row">
7
+ <div class="col-12">
8
+ <div class="docs-body">
9
+
10
+ <p>Plugins extend the CMS with new server routes, admin views, and public-site injection snippets.
11
+ Each plugin
12
+ is a directory under <code>plugins/</code>.</p>
13
+
14
+ <h3>Enabling and disabling</h3>
15
+ <p>Use the Plugins page in the admin to toggle plugins on or off. State is saved to
16
+ <code>config/plugins.json</code>. <strong>A server restart is required for changes to take
17
+ effect.</strong>
18
+ </p>
19
+
20
+ <h3>Plugin settings</h3>
21
+ <p>Plugins that expose a settings page will appear as a link in the sidebar under the Plugins section.
22
+ Settings
23
+ are merged with the plugin's defaults from <code>config.js</code> and saved to
24
+ <code>config/plugins.json</code>.</p>
25
+
26
+ <h3>Security</h3>
27
+ <p>Only files inside a plugin's <code>admin/</code> and <code>public/</code> subdirectories are served
28
+ statically. Server files (<code>plugin.js</code>, <code>config.js</code>, <code>data/</code>) are
29
+ blocked and
30
+ return 404.</p>
31
+
32
+ <p>See the <a href="#/tutorials">Tutorials</a> section for a guide to writing your own plugin.</p>
33
+
34
+ </div>
35
+ </div>
36
+ </div>