@raketa-cloud/admin 0.0.23 → 0.0.24
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/package.json +1 -1
- package/src/Adapter.js +49 -4
- package/src/views/article_revisions/codes/edit_form.ejs +2 -2
- package/src/views/article_revisions/general/edit_form.ejs +2 -2
- package/src/views/article_revisions/meta/edit_form.ejs +2 -2
- package/src/views/article_revisions/publishes/create_form.ejs +1 -2
- package/src/views/article_revisions/tags/edit_form.ejs +2 -2
- package/src/views/article_revisions/visuals/edit_form.ejs +2 -2
- package/src/views/articles/create_form.ejs +1 -1
- package/src/views/articles/edit_form.ejs +1 -1
- package/src/views/articles/translations/create_form.ejs +1 -1
- package/src/views/event_revisions/codes/edit_form.ejs +2 -2
- package/src/views/event_revisions/general/edit_form.ejs +2 -2
- package/src/views/event_revisions/meta/edit_form.ejs +2 -2
- package/src/views/event_revisions/publishes/create_form.ejs +1 -2
- package/src/views/event_revisions/tags/edit_form.ejs +2 -2
- package/src/views/event_revisions/visuals/edit_form.ejs +2 -2
- package/src/views/events/create_form.ejs +1 -1
- package/src/views/events/edit_form.ejs +1 -1
- package/src/views/events/translations/create_form.ejs +1 -1
- package/src/views/page_revisions/codes/edit_form.ejs +2 -2
- package/src/views/page_revisions/general/edit_form.ejs +2 -2
- package/src/views/page_revisions/meta/edit_form.ejs +2 -2
- package/src/views/page_revisions/publishes/create_form.ejs +1 -1
- package/src/views/page_revisions/tags/edit_form.ejs +2 -2
- package/src/views/page_revisions/visuals/edit_form.ejs +2 -2
- package/src/views/pages/create_form.ejs +1 -1
- package/src/views/pages/edit_form.ejs +1 -1
- package/src/views/pages/translations/create_form.ejs +1 -1
- package/src/views/redirects/create_form.ejs +1 -1
- package/src/views/redirects/edit_form.ejs +2 -2
- package/src/views/settings/general/edit_form.ejs +2 -2
- package/src/views/settings/layout/edit_form.ejs +1 -1
- package/src/views/settings/meta/edit_form.ejs +2 -2
- package/src/views/tags/create_form.ejs +2 -2
- package/src/views/tags/edit_form.ejs +2 -2
package/package.json
CHANGED
package/src/Adapter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { existsSync } from "node:fs";
|
|
1
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
2
|
import ejs from "ejs";
|
|
3
|
+
import currentPath from "./currentPath.cjs";
|
|
4
4
|
import FormBuilder from "./helpers/FormBuilder";
|
|
5
5
|
import HTMLBuilder from "./helpers/HTMLBuilder";
|
|
6
6
|
import form_for from "./helpers/form_for";
|
|
@@ -88,6 +88,13 @@ function putIn(result, key, value) {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
function getPartialPath(partialPath) {
|
|
92
|
+
const packagePath = `${currentPath}/views/${partialPath}`;
|
|
93
|
+
const appPath = `${process.cwd()}/src/views/${partialPath}`;
|
|
94
|
+
|
|
95
|
+
return existsSync(appPath) ? appPath : packagePath;
|
|
96
|
+
}
|
|
97
|
+
|
|
91
98
|
export default class Adapter {
|
|
92
99
|
constructor(router) {
|
|
93
100
|
this.router = router;
|
|
@@ -138,13 +145,51 @@ export default class Adapter {
|
|
|
138
145
|
});
|
|
139
146
|
}
|
|
140
147
|
|
|
148
|
+
renderPartial(assigns) {
|
|
149
|
+
return function render(relativePath, localAssigns) {
|
|
150
|
+
const partialPath = getPartialPath(relativePath);
|
|
151
|
+
try {
|
|
152
|
+
// Synchronously read the partial file as ejs does not support async/await
|
|
153
|
+
const partialTemplate = readFileSync(partialPath, "utf8");
|
|
154
|
+
const rendered = ejs.render(
|
|
155
|
+
partialTemplate,
|
|
156
|
+
{
|
|
157
|
+
...assigns,
|
|
158
|
+
...localAssigns,
|
|
159
|
+
},
|
|
160
|
+
{ filename: partialPath }
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
return rendered;
|
|
164
|
+
} catch (e) {
|
|
165
|
+
const error = `Error rendering:\n ${partialPath}`;
|
|
166
|
+
Logger.error(`${error}\n\n${e.stack}`);
|
|
167
|
+
|
|
168
|
+
return renderError(error, e.stack);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
141
173
|
async renderAction({ views, action, assigns }, viewHelpersConfig = {}) {
|
|
142
174
|
const fullTemplatePath = this.getActionPath(views, action);
|
|
143
175
|
const renderAssigns = { ...this.getHelpers(viewHelpersConfig), ...assigns };
|
|
176
|
+
const renderPartialHelper = this.renderPartial(renderAssigns);
|
|
144
177
|
|
|
145
178
|
try {
|
|
146
|
-
|
|
147
|
-
const
|
|
179
|
+
// Synchronously read the full template file
|
|
180
|
+
const template = readFileSync(fullTemplatePath, "utf8");
|
|
181
|
+
|
|
182
|
+
// Render the full template with synchronous partial rendering
|
|
183
|
+
const rendered = ejs.render(
|
|
184
|
+
template,
|
|
185
|
+
{
|
|
186
|
+
...renderAssigns,
|
|
187
|
+
render_partial: renderPartialHelper,
|
|
188
|
+
},
|
|
189
|
+
{ filename: fullTemplatePath }
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
const fullPage = this.renderLayout(renderAssigns, rendered);
|
|
148
193
|
|
|
149
194
|
return fullPage;
|
|
150
195
|
} catch (e) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Code customizations</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('article_revisions/_nav.ejs', { settings: code_settings, active: 'codes' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<div>
|
|
26
26
|
<div class="help">
|
|
27
|
-
<div class="
|
|
27
|
+
<div class="flex items-center gap-1 mb-2">
|
|
28
28
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
29
29
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
30
30
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / General</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('article_revisions/_nav.ejs', { settings: general_settings, active: 'general' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
<div>
|
|
31
31
|
<div class="help">
|
|
32
|
-
<div class="
|
|
32
|
+
<div class="flex items-center gap-1 mb-2">
|
|
33
33
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
34
34
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
35
35
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Open graph & meta tags</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('article_revisions/_nav.ejs', { settings: meta_settings, active: 'meta' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<div>
|
|
28
28
|
<div class="help">
|
|
29
|
-
<div class="
|
|
29
|
+
<div class="flex items-center gap-1 mb-2">
|
|
30
30
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
31
31
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
32
32
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Content tags</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('article_revisions/_nav.ejs', { settings: tag_settings, active: 'tags' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div>
|
|
25
25
|
<div class="help">
|
|
26
|
-
<div class="
|
|
26
|
+
<div class="flex items-center gap-1 mb-2">
|
|
27
27
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
28
28
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
29
29
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Visuals</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('article_revisions/_nav.ejs', { settings: visual_settings, active: 'visuals' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<div>
|
|
29
29
|
<div class="help">
|
|
30
|
-
<div class="
|
|
30
|
+
<div class="flex items-center gap-1 mb-2">
|
|
31
31
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
32
32
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
33
33
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Code customizations</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('event_revisions/_nav.ejs', { settings: code_settings, active: 'codes' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<div>
|
|
26
26
|
<div class="help">
|
|
27
|
-
<div class="
|
|
27
|
+
<div class="flex items-center gap-1 mb-2">
|
|
28
28
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
29
29
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
30
30
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / General</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('event_revisions/_nav.ejs', { settings: general_settings, active: 'general' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
<div>
|
|
33
33
|
<div class="help">
|
|
34
|
-
<div class="
|
|
34
|
+
<div class="flex items-center gap-1 mb-2">
|
|
35
35
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
36
36
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
37
37
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Open graph & meta tags</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('event_revisions/_nav.ejs', { settings: meta_settings, active: 'meta' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<div>
|
|
28
28
|
<div class="help">
|
|
29
|
-
<div class="
|
|
29
|
+
<div class="flex items-center gap-1 mb-2">
|
|
30
30
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
31
31
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
32
32
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Content tags</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('event_revisions/_nav.ejs', { settings: tag_settings, active: 'tags' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div>
|
|
25
25
|
<div class="help">
|
|
26
|
-
<div class="
|
|
26
|
+
<div class="flex items-center gap-1 mb-2">
|
|
27
27
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
28
28
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
29
29
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Visuals</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('event_revisions/_nav.ejs', { settings: visual_settings, active: 'visuals' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<div>
|
|
29
29
|
<div class="help">
|
|
30
|
-
<div class="
|
|
30
|
+
<div class="flex items-center gap-1 mb-2">
|
|
31
31
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
32
32
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
33
33
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Code customizations</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('page_revisions/_nav.ejs', { settings: code_settings, active: 'codes' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<div>
|
|
26
26
|
<div class="help">
|
|
27
|
-
<div class="
|
|
27
|
+
<div class="flex items-center gap-1 mb-2">
|
|
28
28
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
29
29
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
30
30
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / General</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('page_revisions/_nav.ejs', { settings: general_settings, active: 'general' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
<div>
|
|
30
30
|
<div class="help">
|
|
31
|
-
<div class="
|
|
31
|
+
<div class="flex items-center gap-1 mb-2">
|
|
32
32
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
33
33
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
34
34
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Open graph & meta tags</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('page_revisions/_nav.ejs', { settings: meta_settings, active: 'meta' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<div>
|
|
28
28
|
<div class="help">
|
|
29
|
-
<div class="
|
|
29
|
+
<div class="flex items-center gap-1 mb-2">
|
|
30
30
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
31
31
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
32
32
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Content tags</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('page_revisions/_nav.ejs', { settings: tag_settings, active: 'tags' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div>
|
|
25
25
|
<div class="help">
|
|
26
|
-
<div class="
|
|
26
|
+
<div class="flex items-center gap-1 mb-2">
|
|
27
27
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
28
28
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
29
29
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Edit revision / Visuals</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('page_revisions/_nav.ejs', { settings: visual_settings, active: 'visuals' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<div>
|
|
29
29
|
<div class="help">
|
|
30
|
-
<div class="
|
|
30
|
+
<div class="flex items-center gap-1 mb-2">
|
|
31
31
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
32
32
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
33
33
|
</svg>
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
<h1 class="heading-1">General</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('settings/_nav.ejs', { active: 'general' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<div></div>
|
|
10
10
|
|
|
11
11
|
<div>
|
|
12
12
|
<div class="help">
|
|
13
|
-
<div class="
|
|
13
|
+
<div class="flex items-center gap-1 mb-2">
|
|
14
14
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
15
15
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
16
16
|
</svg>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<h1 class="heading-1">Meta and OpenGraph</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
<%-
|
|
6
|
+
<%- render_partial('settings/_nav.ejs', { active: 'meta' }) %>
|
|
7
7
|
|
|
8
8
|
<div class="grid gap-4 md:grid-cols-3">
|
|
9
9
|
<% form_for({ meta_settings }, errors, (f) => { %>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div>
|
|
25
25
|
<div class="help">
|
|
26
|
-
<div class="
|
|
26
|
+
<div class="flex items-center gap-1 mb-2">
|
|
27
27
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
|
|
28
28
|
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" />
|
|
29
29
|
</svg>
|