@velocity-astro/cms-admin 0.1.0-beta.1 → 0.1.0-beta.11
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/app-dist/assets/{RichTextEditor-Ci93Tlgw.js → RichTextEditor-UA2kIIOw.js} +1 -1
- package/app-dist/assets/index-DkDHhCG6.css +2 -0
- package/app-dist/assets/index-DovlPZTn.js +80 -0
- package/app-dist/index.html +16 -2
- package/dist/app/AdminApp.d.ts.map +1 -1
- package/dist/app/AdminApp.js +4 -1
- package/dist/app/AdminApp.js.map +1 -1
- package/dist/app/AdminLayout.d.ts.map +1 -1
- package/dist/app/AdminLayout.js +108 -53
- package/dist/app/AdminLayout.js.map +1 -1
- package/dist/app/RequestState.d.ts.map +1 -1
- package/dist/app/RequestState.js +4 -0
- package/dist/app/RequestState.js.map +1 -1
- package/dist/app/RouteError.d.ts +9 -0
- package/dist/app/RouteError.d.ts.map +1 -0
- package/dist/app/RouteError.js +16 -0
- package/dist/app/RouteError.js.map +1 -0
- package/dist/app/paths.d.ts +9 -0
- package/dist/app/paths.d.ts.map +1 -1
- package/dist/app/paths.js +8 -0
- package/dist/app/paths.js.map +1 -1
- package/dist/app/routes.d.ts.map +1 -1
- package/dist/app/routes.js +32 -17
- package/dist/app/routes.js.map +1 -1
- package/dist/client/admin-client.d.ts +22 -1
- package/dist/client/admin-client.d.ts.map +1 -1
- package/dist/client/http-client.d.ts +12 -1
- package/dist/client/http-client.d.ts.map +1 -1
- package/dist/client/http-client.js +33 -0
- package/dist/client/http-client.js.map +1 -1
- package/dist/client/queries.d.ts +20 -1
- package/dist/client/queries.d.ts.map +1 -1
- package/dist/client/queries.js +115 -7
- package/dist/client/queries.js.map +1 -1
- package/dist/fields/BlocksControl.d.ts +6 -0
- package/dist/fields/BlocksControl.d.ts.map +1 -1
- package/dist/fields/BlocksControl.js +353 -31
- package/dist/fields/BlocksControl.js.map +1 -1
- package/dist/fields/FieldGrid.d.ts +14 -2
- package/dist/fields/FieldGrid.d.ts.map +1 -1
- package/dist/fields/FieldGrid.js +16 -10
- package/dist/fields/FieldGrid.js.map +1 -1
- package/dist/fields/FieldSetEditor.js +1 -1
- package/dist/fields/FieldSetEditor.js.map +1 -1
- package/dist/fields/SiteImagePicker.d.ts +22 -0
- package/dist/fields/SiteImagePicker.d.ts.map +1 -0
- package/dist/fields/SiteImagePicker.js +42 -0
- package/dist/fields/SiteImagePicker.js.map +1 -0
- package/dist/fields/block-icons.d.ts.map +1 -1
- package/dist/fields/block-icons.js +3 -1
- package/dist/fields/block-icons.js.map +1 -1
- package/dist/fields/carry.d.ts +19 -0
- package/dist/fields/carry.d.ts.map +1 -0
- package/dist/fields/carry.js +61 -0
- package/dist/fields/carry.js.map +1 -0
- package/dist/fields/controls.d.ts.map +1 -1
- package/dist/fields/controls.js +117 -46
- package/dist/fields/controls.js.map +1 -1
- package/dist/fields/field-control.d.ts +98 -0
- package/dist/fields/field-control.d.ts.map +1 -1
- package/dist/fields/field-control.js.map +1 -1
- package/dist/fields/page-focus.d.ts +61 -2
- package/dist/fields/page-focus.d.ts.map +1 -1
- package/dist/fields/page-focus.js +92 -2
- package/dist/fields/page-focus.js.map +1 -1
- package/dist/fields/settings.d.ts.map +1 -1
- package/dist/fields/settings.js +7 -0
- package/dist/fields/settings.js.map +1 -1
- package/dist/lib/boot.d.ts +25 -0
- package/dist/lib/boot.d.ts.map +1 -0
- package/dist/lib/boot.js +87 -0
- package/dist/lib/boot.js.map +1 -0
- package/dist/lib/load-fresh.d.ts +8 -0
- package/dist/lib/load-fresh.d.ts.map +1 -0
- package/dist/lib/load-fresh.js +51 -0
- package/dist/lib/load-fresh.js.map +1 -0
- package/dist/lib/open-site.d.ts +6 -0
- package/dist/lib/open-site.d.ts.map +1 -0
- package/dist/lib/open-site.js +8 -0
- package/dist/lib/open-site.js.map +1 -0
- package/dist/lib/prepare-image.d.ts.map +1 -1
- package/dist/lib/prepare-image.js +1 -3
- package/dist/lib/prepare-image.js.map +1 -1
- package/dist/lib/rich-from-html.d.ts +9 -0
- package/dist/lib/rich-from-html.d.ts.map +1 -0
- package/dist/lib/rich-from-html.js +129 -0
- package/dist/lib/rich-from-html.js.map +1 -0
- package/dist/lib/sittings.d.ts +16 -0
- package/dist/lib/sittings.d.ts.map +1 -0
- package/dist/lib/sittings.js +29 -0
- package/dist/lib/sittings.js.map +1 -0
- package/dist/lib/small-image.d.ts +7 -0
- package/dist/lib/small-image.d.ts.map +1 -0
- package/dist/lib/small-image.js +6 -0
- package/dist/lib/small-image.js.map +1 -0
- package/dist/lib/use-command-key.d.ts +16 -0
- package/dist/lib/use-command-key.d.ts.map +1 -0
- package/dist/lib/use-command-key.js +30 -0
- package/dist/lib/use-command-key.js.map +1 -0
- package/dist/lib/use-escapes.d.ts +7 -0
- package/dist/lib/use-escapes.d.ts.map +1 -0
- package/dist/lib/use-escapes.js +19 -0
- package/dist/lib/use-escapes.js.map +1 -0
- package/dist/lib/use-history.d.ts +24 -0
- package/dist/lib/use-history.d.ts.map +1 -0
- package/dist/lib/use-history.js +48 -0
- package/dist/lib/use-history.js.map +1 -0
- package/dist/lib/use-narrow.d.ts +5 -0
- package/dist/lib/use-narrow.d.ts.map +1 -0
- package/dist/lib/use-narrow.js +19 -0
- package/dist/lib/use-narrow.js.map +1 -0
- package/dist/lib/use-panel-sizes.d.ts +7 -0
- package/dist/lib/use-panel-sizes.d.ts.map +1 -0
- package/dist/lib/use-panel-sizes.js +33 -0
- package/dist/lib/use-panel-sizes.js.map +1 -0
- package/dist/lib/use-save-key.d.ts +15 -0
- package/dist/lib/use-save-key.d.ts.map +1 -0
- package/dist/lib/use-save-key.js +27 -0
- package/dist/lib/use-save-key.js.map +1 -0
- package/dist/lib/use-undo-keys.d.ts +14 -0
- package/dist/lib/use-undo-keys.d.ts.map +1 -0
- package/dist/lib/use-undo-keys.js +46 -0
- package/dist/lib/use-undo-keys.js.map +1 -0
- package/dist/messages/en.d.ts +269 -3
- package/dist/messages/en.d.ts.map +1 -1
- package/dist/messages/en.js +242 -3
- package/dist/messages/en.js.map +1 -1
- package/dist/page-bridge/index.d.ts +7 -0
- package/dist/page-bridge/index.d.ts.map +1 -0
- package/dist/page-bridge/index.js +7 -0
- package/dist/page-bridge/index.js.map +1 -0
- package/dist/page-bridge/preview-bridge.d.ts +35 -0
- package/dist/page-bridge/preview-bridge.d.ts.map +1 -0
- package/dist/page-bridge/preview-bridge.js +1821 -0
- package/dist/page-bridge/preview-bridge.js.map +1 -0
- package/dist/plugins/plugin-editor.d.ts +2 -0
- package/dist/plugins/plugin-editor.d.ts.map +1 -1
- package/dist/plugins/plugin-editor.js.map +1 -1
- package/dist/screens/Contact/ContactDeals.js +1 -1
- package/dist/screens/Contact/ContactDeals.js.map +1 -1
- package/dist/screens/Contact/ContactScreen.js +14 -2
- package/dist/screens/Contact/ContactScreen.js.map +1 -1
- package/dist/screens/Contacts/ContactsScreen.js +16 -10
- package/dist/screens/Contacts/ContactsScreen.js.map +1 -1
- package/dist/screens/Contacts/StagesDialog.d.ts.map +1 -1
- package/dist/screens/Contacts/StagesDialog.js +4 -1
- package/dist/screens/Contacts/StagesDialog.js.map +1 -1
- package/dist/screens/ContentList/ContentListScreen.d.ts.map +1 -1
- package/dist/screens/ContentList/ContentListScreen.js +13 -6
- package/dist/screens/ContentList/ContentListScreen.js.map +1 -1
- package/dist/screens/ContentType/ContentTypeScreen.js +10 -3
- package/dist/screens/ContentType/ContentTypeScreen.js.map +1 -1
- package/dist/screens/ContentTypes/ContentTypesScreen.js +3 -3
- package/dist/screens/ContentTypes/ContentTypesScreen.js.map +1 -1
- package/dist/screens/Deals/DealsScreen.d.ts.map +1 -1
- package/dist/screens/Deals/DealsScreen.js +28 -4
- package/dist/screens/Deals/DealsScreen.js.map +1 -1
- package/dist/screens/EntryEditor/EntryEditorScreen.d.ts.map +1 -1
- package/dist/screens/EntryEditor/EntryEditorScreen.js +8 -3
- package/dist/screens/EntryEditor/EntryEditorScreen.js.map +1 -1
- package/dist/screens/EntryEditor/EntryForm.d.ts +5 -1
- package/dist/screens/EntryEditor/EntryForm.d.ts.map +1 -1
- package/dist/screens/EntryEditor/EntryForm.js +226 -25
- package/dist/screens/EntryEditor/EntryForm.js.map +1 -1
- package/dist/screens/EntryEditor/HistoryDialog.d.ts +2 -1
- package/dist/screens/EntryEditor/HistoryDialog.d.ts.map +1 -1
- package/dist/screens/EntryEditor/HistoryDialog.js +24 -5
- package/dist/screens/EntryEditor/HistoryDialog.js.map +1 -1
- package/dist/screens/EntryEditor/PagePane.d.ts +32 -2
- package/dist/screens/EntryEditor/PagePane.d.ts.map +1 -1
- package/dist/screens/EntryEditor/PagePane.js +63 -6
- package/dist/screens/EntryEditor/PagePane.js.map +1 -1
- package/dist/screens/EntryEditor/SectionOutline.d.ts +11 -0
- package/dist/screens/EntryEditor/SectionOutline.d.ts.map +1 -0
- package/dist/screens/EntryEditor/SectionOutline.js +46 -0
- package/dist/screens/EntryEditor/SectionOutline.js.map +1 -0
- package/dist/screens/EntryEditor/ThemeCard.d.ts +32 -0
- package/dist/screens/EntryEditor/ThemeCard.d.ts.map +1 -0
- package/dist/screens/EntryEditor/ThemeCard.js +71 -0
- package/dist/screens/EntryEditor/ThemeCard.js.map +1 -0
- package/dist/screens/Form/FormScreen.js +10 -2
- package/dist/screens/Form/FormScreen.js.map +1 -1
- package/dist/screens/Form/Submissions.js +1 -1
- package/dist/screens/Form/Submissions.js.map +1 -1
- package/dist/screens/Forms/FormsScreen.d.ts.map +1 -1
- package/dist/screens/Forms/FormsScreen.js +6 -3
- package/dist/screens/Forms/FormsScreen.js.map +1 -1
- package/dist/screens/Home/FollowUps.d.ts.map +1 -1
- package/dist/screens/Home/FollowUps.js +3 -3
- package/dist/screens/Home/FollowUps.js.map +1 -1
- package/dist/screens/Home/HomeScreen.d.ts +1 -1
- package/dist/screens/Home/HomeScreen.d.ts.map +1 -1
- package/dist/screens/Home/HomeScreen.js +111 -22
- package/dist/screens/Home/HomeScreen.js.map +1 -1
- package/dist/screens/Media/MediaScreen.d.ts.map +1 -1
- package/dist/screens/Media/MediaScreen.js +3 -2
- package/dist/screens/Media/MediaScreen.js.map +1 -1
- package/dist/screens/People/PeopleScreen.js +1 -1
- package/dist/screens/People/PeopleScreen.js.map +1 -1
- package/dist/screens/Settings/EmailSettings.d.ts +3 -0
- package/dist/screens/Settings/EmailSettings.d.ts.map +1 -0
- package/dist/screens/Settings/EmailSettings.js +76 -0
- package/dist/screens/Settings/EmailSettings.js.map +1 -0
- package/dist/screens/Settings/FormsSettings.d.ts +3 -0
- package/dist/screens/Settings/FormsSettings.d.ts.map +1 -0
- package/dist/screens/Settings/FormsSettings.js +91 -0
- package/dist/screens/Settings/FormsSettings.js.map +1 -0
- package/dist/screens/Settings/GeneralSettings.d.ts +3 -0
- package/dist/screens/Settings/GeneralSettings.d.ts.map +1 -0
- package/dist/screens/Settings/GeneralSettings.js +42 -0
- package/dist/screens/Settings/GeneralSettings.js.map +1 -0
- package/dist/screens/Settings/SettingsPage.d.ts +9 -0
- package/dist/screens/Settings/SettingsPage.d.ts.map +1 -0
- package/dist/screens/Settings/SettingsPage.js +42 -0
- package/dist/screens/Settings/SettingsPage.js.map +1 -0
- package/dist/screens/Settings/SettingsScreen.d.ts +7 -0
- package/dist/screens/Settings/SettingsScreen.d.ts.map +1 -0
- package/dist/screens/Settings/SettingsScreen.js +53 -0
- package/dist/screens/Settings/SettingsScreen.js.map +1 -0
- package/dist/screens/Settings/StorageSettings.d.ts +3 -0
- package/dist/screens/Settings/StorageSettings.d.ts.map +1 -0
- package/dist/screens/Settings/StorageSettings.js +82 -0
- package/dist/screens/Settings/StorageSettings.js.map +1 -0
- package/dist/screens/Trash/TrashScreen.js +2 -2
- package/dist/screens/Trash/TrashScreen.js.map +1 -1
- package/dist/testing/admin-client-contract.d.ts.map +1 -1
- package/dist/testing/admin-client-contract.js +44 -0
- package/dist/testing/admin-client-contract.js.map +1 -1
- package/dist/testing/http-server.d.ts.map +1 -1
- package/dist/testing/http-server.js +5 -0
- package/dist/testing/http-server.js.map +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/memory-client.d.ts +25 -1
- package/dist/testing/memory-client.d.ts.map +1 -1
- package/dist/testing/memory-client.js +49 -1
- package/dist/testing/memory-client.js.map +1 -1
- package/dist/testing/memory-mail.d.ts +48 -0
- package/dist/testing/memory-mail.d.ts.map +1 -0
- package/dist/testing/memory-mail.js +74 -0
- package/dist/testing/memory-mail.js.map +1 -0
- package/dist/testing/sample-content.d.ts +6 -0
- package/dist/testing/sample-content.d.ts.map +1 -1
- package/dist/testing/sample-content.js +33 -0
- package/dist/testing/sample-content.js.map +1 -1
- package/package.json +9 -5
- package/app-dist/assets/index-CczBKhBz.css +0 -2
- package/app-dist/assets/index-DOIcFJow.js +0 -80
package/app-dist/index.html
CHANGED
|
@@ -6,10 +6,24 @@
|
|
|
6
6
|
<meta name="robots" content="noindex, nofollow" />
|
|
7
7
|
<!--velocity-cms-->
|
|
8
8
|
<title>Editor</title>
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
<!--
|
|
10
|
+
What is seen from the first byte of the page: the Velocity mark in the middle, its facets arriving
|
|
11
|
+
in grey and taking their colour, on a clearing in the grid, as LoadingMark draws it. It stays over the
|
|
12
|
+
editor until its first screen is ready (src/lib/boot.ts), so it is one animation to the end, then fades.
|
|
13
|
+
-->
|
|
14
|
+
<style>.cms-boot{z-index:2147483000;--boot-bg:var(--background,#fff);--boot-line:var(--border,#e5e5e5);background-color:var(--boot-bg);background-image:radial-gradient(closest-side, transparent 30%, var(--boot-bg) 100%), linear-gradient(to bottom, var(--boot-line) 1px, transparent 1px), linear-gradient(to right, var(--boot-line) 1px, transparent 1px);background-position:50%;background-size:100% 100%,1.5rem 1.5rem,1.5rem 1.5rem;flex-direction:column;justify-content:center;align-items:center;gap:1.25rem;transition:opacity .3s;display:flex;position:fixed;inset:0}.cms-boot p{font:500 .875rem/1.25rem var(--font-ui,system-ui, sans-serif);color:var(--foreground-subtle,#737373);margin:0}.cms-boot[data-ending=true]{opacity:0;pointer-events:none}.cms-boot svg{width:4rem;height:auto;overflow:visible}.cms-boot .grey{fill:var(--border,#e5e5e5)}.cms-boot .top{fill:var(--brand-fill,#ee4000)}.cms-boot .body{fill:var(--foreground,#171717)}.cms-boot g{transform-box:fill-box;animation:2.8s cubic-bezier(.16,1,.3,1) infinite backwards cms-boot-arrive}.cms-boot .colour{animation:2.8s cubic-bezier(.2,0,0,1) infinite backwards cms-boot-colour}.cms-boot .p1{--x:0px;--y:-18px}.cms-boot .p2,.cms-boot .p2 .colour{--x:-18px;--y:10px;animation-delay:.14s}.cms-boot .p3,.cms-boot .p3 .colour{--x:18px;--y:10px;animation-delay:.28s}@keyframes cms-boot-arrive{0%{opacity:0;transform:translate(var(--x), var(--y))}22%,82%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(0)}}@keyframes cms-boot-colour{0%,30%{opacity:0}46%,to{opacity:1}}@media (prefers-color-scheme:dark){.cms-boot{--boot-bg:var(--gray-950,#0a0a0a);--boot-line:var(--gray-800,#262626)}.cms-boot p{color:gray;color:lab(53.6% 0 0)}.cms-boot .grey{fill:var(--gray-800,#262626)}.cms-boot .body{fill:var(--gray-50,#fafafa)}}@media (prefers-reduced-motion:reduce){.cms-boot g,.cms-boot .colour{animation:none}.cms-boot{transition:none}}</style>
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-DovlPZTn.js"></script>
|
|
16
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DkDHhCG6.css">
|
|
11
17
|
</head>
|
|
12
18
|
<body>
|
|
19
|
+
<div id="cms-boot" class="cms-boot" aria-hidden="true">
|
|
20
|
+
<svg viewBox="0 0 90 101">
|
|
21
|
+
<g class="p1"><path class="grey" d="M35.1288 23.8398L45.1667 49.4151L56.2482 23.8398H87.1082C86.5647 23.3764 85.9776 22.9637 85.3616 22.5944L48.6165 0.704798C46.377 -0.0699896 43.4273 -0.439281 41.2675 0.842377L3.36286 23.3692C3.13819 23.5067 2.92801 23.666 2.72508 23.8326H35.1288V23.8398Z" /><path class="colour top" d="M35.1288 23.8398L45.1667 49.4151L56.2482 23.8398H87.1082C86.5647 23.3764 85.9776 22.9637 85.3616 22.5944L48.6165 0.704798C46.377 -0.0699896 43.4273 -0.439281 41.2675 0.842377L3.36286 23.3692C3.13819 23.5067 2.92801 23.666 2.72508 23.8326H35.1288V23.8398Z" /></g>
|
|
22
|
+
<g class="p2"><path class="grey" d="M0.144951 28.8578C0.079723 29.2851 0.0434853 29.7123 0.0434853 30.1323L0 72.036C0 76.1778 1.95684 78.3936 5.26172 80.3631L39.4919 100.703L0.144951 28.8578Z" /><path class="colour body" d="M0.144951 28.8578C0.079723 29.2851 0.0434853 29.7123 0.0434853 30.1323L0 72.036C0 76.1778 1.95684 78.3936 5.26172 80.3631L39.4919 100.703L0.144951 28.8578Z" /></g>
|
|
23
|
+
<g class="p3"><path class="grey" d="M89.9203 28.7058L50.0588 101L86.6661 79.1539C88.7027 77.9374 90 75.0265 90 72.6442L89.9783 29.6037C89.9783 29.2923 89.9493 28.9954 89.913 28.6985L89.9203 28.7058Z" /><path class="colour body" d="M89.9203 28.7058L50.0588 101L86.6661 79.1539C88.7027 77.9374 90 75.0265 90 72.6442L89.9783 29.6037C89.9783 29.2923 89.9493 28.9954 89.913 28.6985L89.9203 28.7058Z" /></g>
|
|
24
|
+
</svg>
|
|
25
|
+
<p>Opening the editor</p>
|
|
26
|
+
</div>
|
|
13
27
|
<div id="root"></div>
|
|
14
28
|
</body>
|
|
15
29
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminApp.d.ts","sourceRoot":"","sources":["../../src/app/AdminApp.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAG7D,OAAO,EAA8C,KAAK,aAAa,EAA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1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClientProvider } from '@tanstack/react-query';
|
|
3
|
-
import { useState } from 'react';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
4
|
import { createBrowserRouter, createMemoryRouter, RouterProvider } from 'react-router';
|
|
5
5
|
import { ClientProvider } from '../client/client-context.js';
|
|
6
6
|
import { createQueryCache } from '../client/queries.js';
|
|
7
7
|
import { createFieldControls, FieldControlsProvider } from '../fields/index.js';
|
|
8
8
|
import { MessagesProvider } from '../messages/messages-context.js';
|
|
9
9
|
import { PluginExtensions, PluginExtensionsProvider, sitePluginEditors } from '../plugins/plugin-editor.js';
|
|
10
|
+
import { bootDrawn } from '../lib/boot.js';
|
|
10
11
|
import { createRoutes } from './routes.js';
|
|
11
12
|
/** The whole editor. Render one, give it a client, and it does the rest. */
|
|
12
13
|
export function AdminApp({ client, siteName, basePath = '/admin', messages, locale, fieldControls, pluginEditors, initialPath }) {
|
|
@@ -21,6 +22,8 @@ export function AdminApp({ client, siteName, basePath = '/admin', messages, loca
|
|
|
21
22
|
? createBrowserRouter(routes, { basename: basePath })
|
|
22
23
|
: createMemoryRouter(routes, { initialEntries: [initialPath] });
|
|
23
24
|
});
|
|
25
|
+
// The page's own mark, shown while the script was on its way, fades once the first screen is drawn.
|
|
26
|
+
useEffect(bootDrawn, []);
|
|
24
27
|
return (_jsx(QueryClientProvider, { client: queries, children: _jsx(ClientProvider, { client: client, children: _jsx(MessagesProvider, { ...(messages && { messages }), ...(locale !== undefined && { locale }), children: _jsx(FieldControlsProvider, { controls: controls, children: _jsx(PluginExtensionsProvider, { extensions: extensions, loader: loader, children: _jsx(RouterProvider, { router: router }) }) }) }) }) }));
|
|
25
28
|
}
|
|
26
29
|
//# sourceMappingURL=AdminApp.js.map
|
package/dist/app/AdminApp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminApp.js","sourceRoot":"","sources":["../../src/app/AdminApp.t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,CAAC,GAAG,EAAE,CAAC,aAAa,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,mEAAmE;IACnE,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC7B,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;QACtC,OAAO,WAAW,KAAK,SAAS;YAC9B,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;YACrD,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,EAAE,cAAc,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,oGAAoG;IACpG,SAAS,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAEzB,OAAO,CACL,KAAC,mBAAmB,IAAC,MAAM,EAAE,OAAO,YAClC,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,YAC5B,KAAC,gBAAgB,OAAK,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAM,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC,YACxF,KAAC,qBAAqB,IAAC,QAAQ,EAAE,QAAQ,YACvC,KAAC,wBAAwB,IAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAC9D,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI,GACT,GACL,GACP,GACJ,GACG,CACvB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminLayout.d.ts","sourceRoot":"","sources":["../../src/app/AdminLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdminLayout.d.ts","sourceRoot":"","sources":["../../src/app/AdminLayout.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAsMzD"}
|
package/dist/app/AdminLayout.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AppShell,
|
|
3
|
-
import { Blocks, Contact, HandCoins, House, Images, Inbox, KeyRound, LogOut, Puzzle, Shapes, Trash2, Users } from 'lucide-react';
|
|
2
|
+
import { AppShell, CommandPalette, LoadingMark, dismissToasts, toast } from '@velocity-astro/cms-ui';
|
|
3
|
+
import { Blocks, Contact, HandCoins, House, Images, Inbox, KeyRound, Layers, LogOut, Plus, Puzzle, Settings, Shapes, Trash2, Users } from 'lucide-react';
|
|
4
4
|
import { useEffect, useRef, useState } from 'react';
|
|
5
5
|
import { Navigate, Outlet, useLocation } from 'react-router';
|
|
6
6
|
import { useGo } from './use-go.js';
|
|
7
7
|
import { useContentTypes, useSession, useSignOut } from '../client/queries.js';
|
|
8
8
|
import { localized } from '../lib/content.js';
|
|
9
|
+
import { hasCommandKey, useCommandKey } from '../lib/use-command-key.js';
|
|
9
10
|
import { typeIcon } from '../lib/type-icon.js';
|
|
10
11
|
import { useLocale, useMessages } from '../messages/messages-context.js';
|
|
12
|
+
import { holdBoot } from '../lib/boot.js';
|
|
11
13
|
import { useLoadPluginEditors, usePluginExtensions } from '../plugins/plugin-editor.js';
|
|
12
14
|
import { paths } from './paths.js';
|
|
13
|
-
import { ErrorState
|
|
15
|
+
import { ErrorState } from './RequestState.js';
|
|
14
16
|
import { PasskeysDialog } from './PasskeysDialog.js';
|
|
15
17
|
/** The frame around every signed-in screen. Sends anyone who is not signed in to the sign-in screen. */
|
|
16
18
|
export function AdminLayout({ siteName }) {
|
|
@@ -22,6 +24,8 @@ export function AdminLayout({ siteName }) {
|
|
|
22
24
|
const types = useContentTypes();
|
|
23
25
|
const signOut = useSignOut();
|
|
24
26
|
const [isShowingPasskeys, setShowingPasskeys] = useState(false);
|
|
27
|
+
const [isSearching, setSearching] = useState(false);
|
|
28
|
+
useCommandKey(() => setSearching(true));
|
|
25
29
|
// Someone who was signed in and no longer is, without having asked: the session ran out, or
|
|
26
30
|
// an owner took their access away. They are told why the sign-in screen is back.
|
|
27
31
|
const wasSignedIn = useRef(false);
|
|
@@ -37,68 +41,116 @@ export function AdminLayout({ siteName }) {
|
|
|
37
41
|
// screen is drawn before a plugin's control for one of its fields is there.
|
|
38
42
|
const hasPlugins = useLoadPluginEditors(isSignedIn);
|
|
39
43
|
const { screens } = usePluginExtensions();
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
// Until then the editor has no screen to draw: the mark, which keeps the page's own up over it.
|
|
45
|
+
const isOpening = session.isPending || (isSignedIn && !hasPlugins);
|
|
46
|
+
useEffect(() => (isOpening ? holdBoot() : undefined), [isOpening]);
|
|
47
|
+
if (isOpening)
|
|
48
|
+
return _jsx(LoadingMark, { label: messages.app.opening });
|
|
42
49
|
if (session.isError)
|
|
43
50
|
return _jsx(ErrorState, { error: session.error, onRetry: () => void session.refetch() });
|
|
44
51
|
if (session.data === null)
|
|
45
52
|
return _jsx(Navigate, { to: paths.signIn, replace: true });
|
|
46
|
-
const
|
|
53
|
+
const role = session.data.role;
|
|
54
|
+
const at = (href) => location.pathname === href || location.pathname.startsWith(`${href}/`);
|
|
55
|
+
// A page that is part of the settings is reached from there, so the menu has one way to it.
|
|
56
|
+
const settingsPages = (types.data ?? []).filter((type) => type.inSettings === true);
|
|
57
|
+
const contentTypes = (types.data ?? []).filter((type) => type.inSettings !== true);
|
|
58
|
+
const typeNav = contentTypes.map((type) => {
|
|
47
59
|
const href = paths.contentList(type.key);
|
|
48
|
-
return {
|
|
49
|
-
id: type.id,
|
|
50
|
-
label: localized(type.label, locale),
|
|
51
|
-
href,
|
|
52
|
-
icon: typeIcon(type.key),
|
|
53
|
-
isCurrent: location.pathname === href || location.pathname.startsWith(`${href}/`),
|
|
54
|
-
};
|
|
60
|
+
return { id: type.id, label: localized(type.label, locale), href, icon: typeIcon(type.key), isCurrent: at(href) };
|
|
55
61
|
});
|
|
62
|
+
// Where content is looked after, beside the content itself: the types, for owners, and the trash.
|
|
63
|
+
const workspaceNav = [
|
|
64
|
+
...(role === 'owner' ? [{ id: 'types', label: messages.app.types, href: paths.types, icon: Shapes, isCurrent: at(paths.types) }] : []),
|
|
65
|
+
{ id: 'trash', label: messages.app.trash, href: paths.trash, icon: Trash2, isCurrent: at(paths.trash) },
|
|
66
|
+
];
|
|
67
|
+
const contentChildren = [
|
|
68
|
+
...(typeNav.length > 0 ? [{ id: 'collections', label: messages.app.collectionsGroup, items: typeNav }] : []),
|
|
69
|
+
{ id: 'workspace', label: messages.app.workspaceGroup, items: workspaceNav },
|
|
70
|
+
];
|
|
71
|
+
// Content leads to a list: a single page would open its entry, with no column to choose another from.
|
|
72
|
+
const firstList = contentTypes.find((type) => type.kind !== 'single') ?? contentTypes[0];
|
|
73
|
+
// An entry being edited has the width to itself: the column of places comes back with the list.
|
|
74
|
+
const isInEntry = /^\/content\/[^/]+\/[^/]+/.test(location.pathname);
|
|
75
|
+
const content = {
|
|
76
|
+
id: 'content',
|
|
77
|
+
label: messages.app.contentGroup,
|
|
78
|
+
href: firstList === undefined ? (workspaceNav[0]?.href ?? paths.trash) : paths.contentList(firstList.key),
|
|
79
|
+
icon: Layers,
|
|
80
|
+
isCurrent: location.pathname.startsWith('/content/') || at(paths.types) || at(paths.trash),
|
|
81
|
+
...(!isInEntry && { children: contentChildren }),
|
|
82
|
+
};
|
|
83
|
+
// Plugins have a section of their own: the screens they added, for everyone (what each may do
|
|
84
|
+
// there is the server's to say), then the way to manage them, for owners. With neither, there is no section.
|
|
56
85
|
const pluginNav = [
|
|
57
86
|
...screens.map((screen) => {
|
|
58
87
|
const href = paths.pluginScreen(screen.plugin, screen.id);
|
|
59
88
|
return { id: `plugin:${screen.plugin}:${screen.id}`, label: screen.label, href, icon: Blocks, isCurrent: location.pathname === href };
|
|
60
89
|
}),
|
|
61
|
-
...(
|
|
62
|
-
|
|
90
|
+
...(role === 'owner' ? [{ id: 'plugins', label: messages.app.plugins, href: paths.plugins, icon: Puzzle, isCurrent: location.pathname === paths.plugins }] : []),
|
|
91
|
+
];
|
|
92
|
+
const plugins = pluginNav.length === 0
|
|
93
|
+
? []
|
|
94
|
+
: [
|
|
95
|
+
{
|
|
96
|
+
id: 'plugins',
|
|
97
|
+
label: messages.app.pluginsGroup,
|
|
98
|
+
href: pluginNav[0]?.href ?? paths.plugins,
|
|
99
|
+
icon: Puzzle,
|
|
100
|
+
isCurrent: location.pathname.startsWith('/plugins'),
|
|
101
|
+
...(screens.length > 0 && { children: [{ id: 'plugins', items: pluginNav }] }),
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
const nav = [
|
|
105
|
+
{ id: 'top', items: [{ id: 'home', label: messages.app.home, href: paths.home, icon: House, isCurrent: location.pathname === paths.home }] },
|
|
106
|
+
{ id: 'site', label: messages.app.siteGroup, items: [content, { id: 'media', label: messages.app.media, href: paths.media, icon: Images, isCurrent: at(paths.media) }] },
|
|
107
|
+
// What visitors send is read by owners and editors, so they are shown the way to it.
|
|
108
|
+
...(role === 'owner' || role === 'editor'
|
|
109
|
+
? [
|
|
110
|
+
{
|
|
111
|
+
id: 'audience',
|
|
112
|
+
label: messages.app.audienceGroup,
|
|
113
|
+
items: [
|
|
114
|
+
{ id: 'forms', label: messages.app.forms, href: paths.forms, icon: Inbox, isCurrent: at(paths.forms) },
|
|
115
|
+
{ id: 'contacts', label: messages.app.contacts, href: paths.contacts, icon: Contact, isCurrent: at(paths.contacts) },
|
|
116
|
+
{ id: 'deals', label: messages.app.deals, href: paths.deals, icon: HandCoins, isCurrent: at(paths.deals) },
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
]
|
|
63
120
|
: []),
|
|
121
|
+
{
|
|
122
|
+
id: 'admin',
|
|
123
|
+
place: 'end',
|
|
124
|
+
items: [
|
|
125
|
+
// Only owners manage people.
|
|
126
|
+
...(role === 'owner' ? [{ id: 'people', label: messages.app.people, href: paths.people, icon: Users, isCurrent: at(paths.people) }] : []),
|
|
127
|
+
...plugins,
|
|
128
|
+
// Owners set the site up. Everyone else comes here only for the pages a template keeps in the settings.
|
|
129
|
+
...(role === 'owner' || settingsPages.length > 0
|
|
130
|
+
? [{ id: 'settings', label: messages.app.settings, href: '/settings', icon: Settings, isCurrent: location.pathname.startsWith('/settings') }]
|
|
131
|
+
: []),
|
|
132
|
+
],
|
|
133
|
+
},
|
|
64
134
|
];
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
id: 'types',
|
|
86
|
-
label: messages.app.types,
|
|
87
|
-
href: paths.types,
|
|
88
|
-
icon: Shapes,
|
|
89
|
-
isCurrent: location.pathname === paths.types || location.pathname.startsWith(`${paths.types}/`),
|
|
90
|
-
},
|
|
91
|
-
{ id: 'people', label: messages.app.people, href: paths.people, icon: Users, isCurrent: location.pathname === paths.people },
|
|
92
|
-
]
|
|
93
|
-
: []),
|
|
94
|
-
{ id: 'trash', label: messages.app.trash, href: paths.trash, icon: Trash2, isCurrent: location.pathname === paths.trash },
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
// Plugins have a section of their own: the screens they added, for everyone (what each
|
|
98
|
-
// may do there is the server's to say), then the way to manage them, for owners. With
|
|
99
|
-
// neither, the section is left out.
|
|
100
|
-
...(pluginNav.length > 0 ? [{ id: 'plugins', label: messages.app.pluginsGroup, items: pluginNav }] : []),
|
|
101
|
-
], account: {
|
|
135
|
+
// What can be made from anywhere: an entry of each type that has more than one.
|
|
136
|
+
const creatable = contentTypes.filter((type) => type.kind !== 'single');
|
|
137
|
+
// Everything the menu leads to, and everything that can be made, found by typing.
|
|
138
|
+
const places = nav.flatMap((group) => group.items.flatMap((item) => [
|
|
139
|
+
...(item.children === undefined ? [{ id: `go:${item.href}`, label: item.label, ...(item.icon && { icon: item.icon }) }] : []),
|
|
140
|
+
...(item.children ?? []).flatMap((child) => child.items.map((place) => ({ id: `go:${place.href}`, label: place.label, detail: item.label, ...(place.icon && { icon: place.icon }) }))),
|
|
141
|
+
]));
|
|
142
|
+
const creations = creatable.map((type) => ({ id: `new:${type.key}`, label: messages.app.createIn(localized(type.label, locale)), icon: Plus }));
|
|
143
|
+
const command = (id) => {
|
|
144
|
+
if (id.startsWith('go:'))
|
|
145
|
+
go(id.slice('go:'.length));
|
|
146
|
+
else if (id.startsWith('new:'))
|
|
147
|
+
go(paths.newEntry(id.slice('new:'.length)));
|
|
148
|
+
};
|
|
149
|
+
return (_jsxs(_Fragment, { children: [_jsx(AppShell, { logoLabel: messages.app.product, siteName: siteName, siteDetail: window.location.host, navLabel: messages.app.mainNavigation, menuLabel: messages.app.openMenu, skipLabel: messages.app.skipToContent, nav: nav, search: {
|
|
150
|
+
label: messages.app.search,
|
|
151
|
+
shortcut: hasCommandKey() ? messages.app.searchShortcutCommand : messages.app.searchShortcutControl,
|
|
152
|
+
onPress: () => setSearching(true),
|
|
153
|
+
}, account: {
|
|
102
154
|
name: session.data.name,
|
|
103
155
|
detail: session.data.email,
|
|
104
156
|
label: messages.app.accountMenu,
|
|
@@ -123,6 +175,9 @@ export function AdminLayout({ siteName }) {
|
|
|
123
175
|
},
|
|
124
176
|
});
|
|
125
177
|
},
|
|
126
|
-
}, children: _jsx(Outlet, {}) }),
|
|
178
|
+
}, children: _jsx(Outlet, {}) }), _jsx(CommandPalette, { isOpen: isSearching, onOpenChange: setSearching, label: messages.app.searchTitle, placeholder: messages.app.searchPlaceholder, emptyText: messages.app.searchEmpty, groups: [
|
|
179
|
+
{ id: 'go', label: messages.app.goToGroup, items: places },
|
|
180
|
+
{ id: 'create', label: messages.app.createGroup, items: creations },
|
|
181
|
+
], onAction: command }), isShowingPasskeys && _jsx(PasskeysDialog, { onClose: () => setShowingPasskeys(false) })] }));
|
|
127
182
|
}
|
|
128
183
|
//# sourceMappingURL=AdminLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminLayout.js","sourceRoot":"","sources":["../../src/app/AdminLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAwB,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACjI,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACn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ACD,iBAAiB,IAAI,KAAC,cAAc,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,GAAI,IACjF,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestState.d.ts","sourceRoot":"","sources":["../../src/app/RequestState.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestState.d.ts","sourceRoot":"","sources":["../../src/app/RequestState.tsx"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;CAC/B;AAoFD,kGAAkG;AAClG,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,KAAc,EAAE,EAAE,iBAAiB,+BAaxE;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,0GAA0G;AAC1G,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,eAAe,+BAc7D"}
|
package/dist/app/RequestState.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Button, Card, EmptyState, Grid, Inline, Skeleton, SkeletonGroup, Spinner, Stack } from '@velocity-astro/cms-ui';
|
|
3
|
+
import { useEffect } from 'react';
|
|
3
4
|
import { CircleAlert } from 'lucide-react';
|
|
5
|
+
import { holdBootForScreen } from '../lib/boot.js';
|
|
4
6
|
import { useMessages } from '../messages/messages-context.js';
|
|
5
7
|
const ROWS = [0, 1, 2, 3, 4];
|
|
6
8
|
/** A list of things on the way: rows with a name, a line under it and two short columns. */
|
|
@@ -19,6 +21,8 @@ const SHAPES = {
|
|
|
19
21
|
/** What a screen shows while its content is on the way: grey shapes laid out like the content. */
|
|
20
22
|
export function LoadingState({ label, shape = 'page' }) {
|
|
21
23
|
const messages = useMessages();
|
|
24
|
+
// While the editor is opening, its mark stays up a moment longer instead of these shapes.
|
|
25
|
+
useEffect(holdBootForScreen, []);
|
|
22
26
|
const words = label ?? messages.app.loading;
|
|
23
27
|
if (shape === 'spinner') {
|
|
24
28
|
return (_jsx(Box, { padding: 8, children: _jsx(Spinner, { label: words, showLabel: true }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestState.js","sourceRoot":"","sources":["../../src/app/RequestState.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"RequestState.js","sourceRoot":"","sources":["../../src/app/RequestState.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC9H,OAAO,EAAE,SAAS,EAAkB,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAe9D,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC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CAAC;IAC/B,0FAA0F;IAC1F,SAAS,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,KAAK,IAAI,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC;IAC5C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,CACL,KAAC,GAAG,IAAC,OAAO,EAAE,CAAC,YACb,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,SAAG,GAC/B,CACP,CAAC;IACJ,CAAC;IACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,YAAG,MAAM,CAAC,KAAK,CAAC,EAAE,GAAiB,CAAC;AACxE,CAAC;AAOD,0GAA0G;AAC1G,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAmB;IAC5D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,kBAAkB,EACtC,WAAW,EAAE,KAAK,CAAC,OAAO,EAC1B,MAAM,EACJ,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,OAAO,YACzC,QAAQ,CAAC,GAAG,CAAC,QAAQ,GACf,GAEX,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a screen shows when it could not be drawn, in place of the router's own page: what went
|
|
3
|
+
* wrong, and a way to try again, which loads the editor afresh. Inside the frame, so the way to
|
|
4
|
+
* every other screen stays.
|
|
5
|
+
*/
|
|
6
|
+
export declare function RouteError({ isNotFound }: {
|
|
7
|
+
readonly isNotFound?: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=RouteError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteError.d.ts","sourceRoot":"","sources":["../../src/app/RouteError.tsx"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,UAAkB,EAAE,EAAE;IAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,+BAKnF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { isRouteErrorResponse, useRouteError } from 'react-router';
|
|
3
|
+
import { useMessages } from '../messages/messages-context.js';
|
|
4
|
+
import { ErrorState } from './RequestState.js';
|
|
5
|
+
/**
|
|
6
|
+
* What a screen shows when it could not be drawn, in place of the router's own page: what went
|
|
7
|
+
* wrong, and a way to try again, which loads the editor afresh. Inside the frame, so the way to
|
|
8
|
+
* every other screen stays.
|
|
9
|
+
*/
|
|
10
|
+
export function RouteError({ isNotFound = false }) {
|
|
11
|
+
const messages = useMessages();
|
|
12
|
+
const error = useRouteError();
|
|
13
|
+
const shown = isNotFound || (isRouteErrorResponse(error) && error.status === 404) ? new Error(messages.app.screenNotFound) : error instanceof Error ? error : new Error(messages.app.screenFailed);
|
|
14
|
+
return _jsx(ErrorState, { error: shown, onRetry: () => window.location.reload() });
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=RouteError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteError.js","sourceRoot":"","sources":["../../src/app/RouteError.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,UAAU,GAAG,KAAK,EAAqC;IAClF,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;IAC9B,MAAM,KAAK,GAAG,UAAU,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACnM,OAAO,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAI,CAAC;AAC/E,CAAC"}
|
package/dist/app/paths.d.ts
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
export declare const NEW_ENTRY = "new";
|
|
4
4
|
/** The name the address of a group's fields carries each holding field's id under. */
|
|
5
5
|
export declare const WITHIN = "in";
|
|
6
|
+
/** The parts of the site's settings, in the order of their tabs. */
|
|
7
|
+
export declare const SETTINGS_AREAS: readonly ["general", "email", "storage", "forms"];
|
|
8
|
+
export type SettingsAreaId = (typeof SETTINGS_AREAS)[number];
|
|
6
9
|
export declare const paths: {
|
|
7
10
|
readonly home: "/";
|
|
8
11
|
readonly signIn: "/sign-in";
|
|
@@ -19,11 +22,17 @@ export declare const paths: {
|
|
|
19
22
|
readonly plugins: "/plugins";
|
|
20
23
|
/** A screen a plugin added. */
|
|
21
24
|
readonly pluginScreen: (plugin: string, screen: string) => string;
|
|
25
|
+
/** The site's settings, at one of their parts. */
|
|
26
|
+
readonly settings: (area?: SettingsAreaId) => string;
|
|
27
|
+
/** A single page that is part of the settings, shown as one of their parts. */
|
|
28
|
+
readonly settingsPage: (typeKey: string) => string;
|
|
22
29
|
readonly types: "/types";
|
|
23
30
|
/** A content type's fields, or with `within` (field ids from the top down) the fields a group holds. */
|
|
24
31
|
readonly type: (typeKey: string, within?: readonly string[]) => string;
|
|
25
32
|
readonly contentList: (typeKey: string) => string;
|
|
26
33
|
readonly entry: (typeKey: string, entryId: string) => string;
|
|
34
|
+
/** An entry with its page given the whole window: the visual editor. */
|
|
35
|
+
readonly visualEntry: (typeKey: string, entryId: string) => string;
|
|
27
36
|
readonly newEntry: (typeKey: string) => string;
|
|
28
37
|
};
|
|
29
38
|
//# sourceMappingURL=paths.d.ts.map
|
package/dist/app/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/app/paths.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,mGAAmG;AACnG,eAAO,MAAM,SAAS,QAAQ,CAAC;AAE/B,sFAAsF;AACtF,eAAO,MAAM,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,KAAK;;;;;;;IAOhB,kDAAkD;4BACnC,MAAM;;IAErB,6DAA6D;kCACxC,MAAM;;;IAG3B,+BAA+B;oCACR,MAAM,UAAU,MAAM;;
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/app/paths.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,mGAAmG;AACnG,eAAO,MAAM,SAAS,QAAQ,CAAC;AAE/B,sFAAsF;AACtF,eAAO,MAAM,MAAM,OAAO,CAAC;AAE3B,oEAAoE;AACpE,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAChF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,eAAO,MAAM,KAAK;;;;;;;IAOhB,kDAAkD;4BACnC,MAAM;;IAErB,6DAA6D;kCACxC,MAAM;;;IAG3B,+BAA+B;oCACR,MAAM,UAAU,MAAM;IAC7C,kDAAkD;+BACjC,cAAc;IAC/B,+EAA+E;qCACvD,MAAM;;IAE9B,wGAAwG;6BACxF,MAAM,WAAU,SAAS,MAAM,EAAE;oCAE1B,MAAM;8BACZ,MAAM,WAAW,MAAM;IACxC,wEAAwE;oCACjD,MAAM,WAAW,MAAM;iCAC1B,MAAM;CAClB,CAAC"}
|
package/dist/app/paths.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export const NEW_ENTRY = 'new';
|
|
4
4
|
/** The name the address of a group's fields carries each holding field's id under. */
|
|
5
5
|
export const WITHIN = 'in';
|
|
6
|
+
/** The parts of the site's settings, in the order of their tabs. */
|
|
7
|
+
export const SETTINGS_AREAS = ['general', 'email', 'storage', 'forms'];
|
|
6
8
|
export const paths = {
|
|
7
9
|
home: '/',
|
|
8
10
|
signIn: '/sign-in',
|
|
@@ -19,11 +21,17 @@ export const paths = {
|
|
|
19
21
|
plugins: '/plugins',
|
|
20
22
|
/** A screen a plugin added. */
|
|
21
23
|
pluginScreen: (plugin, screen) => `/plugins/${encodeURIComponent(plugin)}/${encodeURIComponent(screen)}`,
|
|
24
|
+
/** The site's settings, at one of their parts. */
|
|
25
|
+
settings: (area = SETTINGS_AREAS[0]) => `/settings/${area}`,
|
|
26
|
+
/** A single page that is part of the settings, shown as one of their parts. */
|
|
27
|
+
settingsPage: (typeKey) => `/settings/page/${encodeURIComponent(typeKey)}`,
|
|
22
28
|
types: '/types',
|
|
23
29
|
/** A content type's fields, or with `within` (field ids from the top down) the fields a group holds. */
|
|
24
30
|
type: (typeKey, within = []) => `/types/${encodeURIComponent(typeKey)}${within.length > 0 ? `?${new URLSearchParams(within.map((id) => [WITHIN, id]))}` : ''}`,
|
|
25
31
|
contentList: (typeKey) => `/content/${encodeURIComponent(typeKey)}`,
|
|
26
32
|
entry: (typeKey, entryId) => `/content/${encodeURIComponent(typeKey)}/${encodeURIComponent(entryId)}`,
|
|
33
|
+
/** An entry with its page given the whole window: the visual editor. */
|
|
34
|
+
visualEntry: (typeKey, entryId) => `/content/${encodeURIComponent(typeKey)}/${encodeURIComponent(entryId)}?view=visual`,
|
|
27
35
|
newEntry: (typeKey) => `/content/${encodeURIComponent(typeKey)}/${NEW_ENTRY}`,
|
|
28
36
|
};
|
|
29
37
|
//# sourceMappingURL=paths.js.map
|
package/dist/app/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/app/paths.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,mGAAmG;AACnG,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;AAE/B,sFAAsF;AACtF,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;AAE3B,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,GAAG;IACT,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,kDAAkD;IAClD,IAAI,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,UAAU,kBAAkB,CAAC,MAAM,CAAC,EAAE;IAChE,QAAQ,EAAE,WAAW;IACrB,6DAA6D;IAC7D,OAAO,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,aAAa,kBAAkB,CAAC,SAAS,CAAC,EAAE;IAC5E,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,UAAU;IACnB,+BAA+B;IAC/B,YAAY,EAAE,CAAC,MAAc,EAAE,MAAc,EAAE,EAAE,CAAC,YAAY,kBAAkB,CAAC,MAAM,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE;IACxH,KAAK,EAAE,QAAQ;IACf,wGAAwG;IACxG,IAAI,EAAE,CAAC,OAAe,EAAE,SAA4B,EAAE,EAAE,EAAE,CACxD,UAAU,kBAAkB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MA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ourceRoot":"","sources":["../../src/app/routes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/app/routes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAsBhD,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,EAAE,CA4C5D"}
|
package/dist/app/routes.js
CHANGED
|
@@ -13,37 +13,52 @@ import { MediaScreen } from '../screens/Media/MediaScreen.js';
|
|
|
13
13
|
import { PluginScreenScreen } from '../screens/PluginScreen/PluginScreenScreen.js';
|
|
14
14
|
import { PluginsScreen } from '../screens/Plugins/PluginsScreen.js';
|
|
15
15
|
import { PeopleScreen } from '../screens/People/PeopleScreen.js';
|
|
16
|
+
import { SettingsScreen } from '../screens/Settings/SettingsScreen.js';
|
|
16
17
|
import { TrashScreen } from '../screens/Trash/TrashScreen.js';
|
|
17
18
|
import { SignInScreen } from '../screens/SignIn/SignInScreen.js';
|
|
18
19
|
import { AdminLayout } from './AdminLayout.js';
|
|
19
20
|
import { NavigationBridge } from './NavigationBridge.js';
|
|
21
|
+
import { RouteError } from './RouteError.js';
|
|
20
22
|
/** Every screen and its address. A new screen is added here and in `paths.ts`. */
|
|
21
23
|
export function createRoutes(siteName) {
|
|
22
24
|
return [
|
|
23
25
|
{
|
|
24
26
|
element: _jsx(NavigationBridge, {}),
|
|
27
|
+
// A fault in the frame itself: the screen says so rather than the router's own page.
|
|
28
|
+
errorElement: _jsx(RouteError, {}),
|
|
25
29
|
children: [
|
|
26
30
|
{ path: 'sign-in', element: _jsx(SignInScreen, { siteName: siteName }) },
|
|
27
31
|
{
|
|
28
32
|
element: _jsx(AdminLayout, { siteName: siteName }),
|
|
29
33
|
children: [
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
{
|
|
35
|
+
// A screen that cannot be drawn says so inside the frame, so the way to every other screen stays.
|
|
36
|
+
errorElement: _jsx(RouteError, {}),
|
|
37
|
+
children: [
|
|
38
|
+
{ index: true, element: _jsx(HomeScreen, { siteName: siteName }) },
|
|
39
|
+
{ path: 'people', element: _jsx(PeopleScreen, {}) },
|
|
40
|
+
{ path: 'media', element: _jsx(MediaScreen, {}) },
|
|
41
|
+
{ path: 'trash', element: _jsx(TrashScreen, {}) },
|
|
42
|
+
{ path: 'forms', element: _jsx(FormsScreen, {}) },
|
|
43
|
+
{ path: 'forms/:formId', element: _jsx(FormScreen, {}) },
|
|
44
|
+
{ path: 'contacts', element: _jsx(ContactsScreen, {}) },
|
|
45
|
+
{ path: 'contacts/:contactId', element: _jsx(ContactScreen, {}) },
|
|
46
|
+
{ path: 'deals', element: _jsx(DealsScreen, {}) },
|
|
47
|
+
{ path: 'plugins', element: _jsx(PluginsScreen, {}) },
|
|
48
|
+
{ path: 'plugins/:pluginName/:screenId', element: _jsx(PluginScreenScreen, {}) },
|
|
49
|
+
{ path: 'settings', element: _jsx(SettingsScreen, {}) },
|
|
50
|
+
{ path: 'settings/:area', element: _jsx(SettingsScreen, {}) },
|
|
51
|
+
{ path: 'settings/page/:typeKey', element: _jsx(SettingsScreen, {}) },
|
|
52
|
+
{ path: 'types', element: _jsx(ContentTypesScreen, {}) },
|
|
53
|
+
{ path: 'types/:typeKey', element: _jsx(ContentTypeScreen, {}) },
|
|
54
|
+
{ path: 'content/:typeKey', element: _jsx(ContentListScreen, {}) },
|
|
55
|
+
// A new entry has this address too, with `NEW_ENTRY` as its id, so saving it for the
|
|
56
|
+
// first time changes the address without starting the screen again.
|
|
57
|
+
{ path: 'content/:typeKey/:entryId', element: _jsx(EntryEditorScreen, {}) },
|
|
58
|
+
// An address the editor has no screen for.
|
|
59
|
+
{ path: '*', element: _jsx(RouteError, { isNotFound: true }) },
|
|
60
|
+
],
|
|
61
|
+
},
|
|
47
62
|
],
|
|
48
63
|
},
|
|
49
64
|
],
|
package/dist/app/routes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/app/routes.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,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