@raketa-cloud/admin 0.0.47 → 0.0.50

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "0.0.47",
3
+ "version": "0.0.50",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "dev": "npx tailwindcss -i ./src/styles/application.css -o ../../apps/admin/static/application.css --watch",
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
 
@@ -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>Administration</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>
@@ -1,16 +1,15 @@
1
1
  <header class="sticky top-0 z-10 flex items-center bg-raketa-background border-b border-mono-25 dark:border-neutral-700">
2
2
  <div class="flex items-center justify-center flex-none size-14">
3
3
  <a href="<%= `/${_context.locale}/pages` %>">
4
- <img src="/static/_assets/logo.svg" alt="Raketa" class="dark:invert" />
4
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="size-6 dark:invert">
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.77197 7.80835L11.5103 3.5V20.5H5.77197V7.80835Z" fill="#1C1C1E"/>
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18.2274 8.59039L17.4877 8.5507C15.1691 8.55498 12.8885 8.98891 12.5514 9.96694L12.2573 9.95802C12.5778 5.34308 15.1646 3.41033 18.2163 3.50318L18.2274 8.59039Z" fill="#1C1C1E"/>
7
+ </svg>
5
8
  </a>
6
9
  </div>
7
10
 
8
11
  <div class="flex items-center justify-between w-full p-4 pl-8">
9
- <div class="flex items-center gap-1 body-2">
10
- <a href="#" class="btn-text">Home</a>
11
- &#47;
12
- <div class="opacity-50">Pages</div>
13
- </div>
12
+ <div class="flex items-center gap-1 body-2"></div>
14
13
 
15
14
  <div class="flex items-center gap-4">
16
15
  <div class="relative flex items-center gap-1 group body-2">
@@ -45,4 +44,4 @@
45
44
  </div>
46
45
  </div>
47
46
  </div>
48
- </header>
47
+ </header>
@@ -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,13 +0,0 @@
1
- const edit_form = async (ctx) => {
2
- const settings = await ctx.client.settings.find(ctx.locale);
3
-
4
- return {
5
- assigns: {
6
- settings,
7
- },
8
- };
9
- };
10
-
11
- export default {
12
- edit_form,
13
- };
@@ -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>