@raketa-cloud/admin 0.0.47 → 0.0.49
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/index.js +0 -1
- package/src/routeSettings.js +0 -2
- package/src/views/layouts/application.ejs +8 -1
- package/src/views/redirects/_form.ejs +2 -2
- package/src/views/settings/_nav.ejs +1 -7
- package/src/handlers/settings/GeneralHandler.js +0 -13
- package/src/views/settings/general/edit_form.ejs +0 -26
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -49,7 +49,6 @@ export { default as PageTranslationsHandler } from "./handlers/pages/Translation
|
|
|
49
49
|
export { default as PageURLsHandler } from "./handlers/pages/URLsHandler";
|
|
50
50
|
export { default as PagesHandler } from "./handlers/pages/PagesHandler";
|
|
51
51
|
|
|
52
|
-
export { default as SettingsGeneralHandler } from "./handlers/settings/GeneralHandler";
|
|
53
52
|
export { default as SettingsLayoutHandler } from "./handlers/settings/LayoutHandler";
|
|
54
53
|
export { default as SettingsMetaHandler } from "./handlers/settings/MetaHandler";
|
|
55
54
|
|
package/src/routeSettings.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import routeMember from "./routeMember";
|
|
2
2
|
import LayoutHandler from "./handlers/settings/LayoutHandler";
|
|
3
3
|
import MetaHandler from "./handlers/settings/MetaHandler";
|
|
4
|
-
import GeneralHandler from "./handlers/settings/GeneralHandler";
|
|
5
4
|
|
|
6
5
|
function routeSettings(adapter) {
|
|
7
|
-
routeMember(adapter, "settings/general", GeneralHandler);
|
|
8
6
|
routeMember(adapter, "settings/meta", MetaHandler);
|
|
9
7
|
routeMember(adapter, "settings/layout", LayoutHandler);
|
|
10
8
|
}
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>
|
|
7
|
+
<title>Raketa Admin</title>
|
|
8
|
+
|
|
9
|
+
<link rel="icon" type="image/png" href="/static/favicon-96x96.png" sizes="96x96" />
|
|
10
|
+
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
|
|
11
|
+
<link rel="shortcut icon" href="/static/favicon.ico" />
|
|
12
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png" />
|
|
13
|
+
<meta name="apple-mobile-web-app-title" content="Raketa Admin" />
|
|
14
|
+
<link rel="manifest" href="/static/site.webmanifest" />
|
|
8
15
|
|
|
9
16
|
<link rel="stylesheet" href="/static/application.css" />
|
|
10
17
|
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<form action="<%= redirect?.id ? `/${_context.locale}/redirects/${redirect.id}` : `/${_context.locale}/redirects` %>" method="post" class="form">
|
|
3
3
|
<%- f.field('redirect.url') %>
|
|
4
4
|
<%- f.field('redirect.destination') %>
|
|
5
|
-
<%- f.field('redirect.httpResponseCode') %>
|
|
5
|
+
<%- f.field('redirect.httpResponseCode', { type: 'number' }) %>
|
|
6
6
|
<%- f.field('redirect.note') %>
|
|
7
7
|
|
|
8
8
|
<div class="form-actions">
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
|
|
38
38
|
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore nostrum fugit sint sunt distinctio ut cum, corrupti ad error, quo labore minima. Reprehenderit quasi maxime repudiandae voluptatum commodi saepe molestiae?</p>
|
|
39
39
|
</div>
|
|
40
|
-
</div>
|
|
40
|
+
</div>
|
|
@@ -6,12 +6,6 @@
|
|
|
6
6
|
<div class="flex w-full pb-4">
|
|
7
7
|
<div class="flex items-center justify-between mb-4">
|
|
8
8
|
<div class="flex items-center border-b-2">
|
|
9
|
-
<div class=" <%= active === 'general' ? activeClass : inactiveClass %>">
|
|
10
|
-
<a href="<%= `/${_context.locale}/settings/general/edit` %>" class="text-raketa-primary font-semibold">
|
|
11
|
-
General
|
|
12
|
-
</a>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
9
|
<div class="<%= active === 'meta' ? activeClass : inactiveClass %>">
|
|
16
10
|
<a href="<%= `/${_context.locale}/settings/meta/edit` %>" class="text-raketa-primary font-semibold">
|
|
17
11
|
Meta and OpenGraph
|
|
@@ -25,4 +19,4 @@
|
|
|
25
19
|
</div>
|
|
26
20
|
</div>
|
|
27
21
|
</div>
|
|
28
|
-
</div>
|
|
22
|
+
</div>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<div class="page-wrapper">
|
|
2
|
-
<div class="page-title">
|
|
3
|
-
<h1 class="heading-1">General</h1>
|
|
4
|
-
</div>
|
|
5
|
-
|
|
6
|
-
<%- render_partial('../_nav.ejs', { active: 'general' }) %>
|
|
7
|
-
|
|
8
|
-
<div class="grid gap-4 md:grid-cols-3">
|
|
9
|
-
<div></div>
|
|
10
|
-
|
|
11
|
-
<div>
|
|
12
|
-
<div class="help">
|
|
13
|
-
<div class="flex items-center gap-1 mb-2">
|
|
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
|
-
<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
|
-
</svg>
|
|
17
|
-
|
|
18
|
-
<h3 class="heading-3">Contextual help</h3>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore nostrum fugit sint sunt distinctio ut cum, corrupti ad error, quo labore minima. Reprehenderit quasi maxime repudiandae voluptatum commodi saepe molestiae?</p>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
</div>
|