studiocms 0.1.0-beta.27 → 0.1.0-beta.29
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/CHANGELOG.md +84 -0
- package/dist/cli/utils/effectBoxen.d.ts +1 -1
- package/dist/cli/utils/logger.d.ts +1 -1
- package/dist/cli/utils/useLibSQLDb.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/consts.d.ts +7 -14
- package/dist/consts.js +24 -16
- package/dist/db/config.d.ts +128 -112
- package/dist/db/config.js +36 -31
- package/dist/{components → frontend/components}/auth/OAuthButtonStack.astro +1 -1
- package/dist/{components → frontend/components}/dashboard/DashboardGrid.astro +1 -1
- package/{src → dist/frontend}/components/dashboard/DashboardGridItem.astro +14 -4
- package/dist/{components → frontend/components}/dashboard/DashboardPageHeader.astro +7 -90
- package/dist/{components → frontend/components}/dashboard/DoubleSidebar.astro +3 -5
- package/dist/{components → frontend/components}/dashboard/Footer.astro +1 -1
- package/{src → dist/frontend}/components/dashboard/LoginChecker.astro +1 -1
- package/dist/{components → frontend/components}/dashboard/MainSidebarContent.astro +42 -28
- package/dist/frontend/components/dashboard/SidebarModals.astro +13 -0
- package/dist/{components → frontend/components}/dashboard/SingleSidebar.astro +4 -6
- package/{src → dist/frontend}/components/dashboard/configuration/ConfigForm.astro +49 -9
- package/dist/{components → frontend/components}/dashboard/configuration/LoginPreview.astro +6 -20
- package/{src → dist/frontend}/components/dashboard/content-mgmt/CreateFolder.astro +1 -1
- package/dist/frontend/components/dashboard/content-mgmt/CreatePage.astro +522 -0
- package/dist/{components → frontend/components}/dashboard/content-mgmt/EditFolder.astro +1 -1
- package/dist/frontend/components/dashboard/content-mgmt/EditPage.astro +741 -0
- package/dist/{components → frontend/components}/dashboard/content-mgmt/InnerSidebarElement.astro +8 -2
- package/{src → dist/frontend}/components/dashboard/content-mgmt/PageHeader.astro +2 -2
- package/dist/{components → frontend/components}/dashboard/content-mgmt/runtime.d.ts +1 -1
- package/dist/{components → frontend/components}/dashboard/content-mgmt/runtime.js +2 -2
- package/dist/{components → frontend/components}/dashboard/content-mgmt/shared.js +2 -2
- package/dist/{components → frontend/components}/dashboard/profile/APITokens.astro +2 -2
- package/dist/{components → frontend/components}/dashboard/profile/BasicInfo.astro +1 -1
- package/{src → dist/frontend}/components/dashboard/profile/Notifications.astro +73 -24
- package/{src → dist/frontend}/components/dashboard/profile/SocialSignin.astro +1 -1
- package/{src → dist/frontend}/components/dashboard/profile/UpdatePassword.astro +1 -1
- package/dist/frontend/components/dashboard/sidebar/UserAccount.astro +61 -0
- package/dist/frontend/components/dashboard/sidebar/VersionCheck.astro +152 -0
- package/{src → dist/frontend}/components/dashboard/sidebar-modals/VersionModal.astro +62 -53
- package/dist/{components → frontend/components}/dashboard/sidebarConfig.js +1 -1
- package/dist/frontend/components/dashboard/smtp-config/TemplateEditor.astro +107 -0
- package/{src → dist/frontend}/components/dashboard/user-mgmt/InnerSidebarElement.astro +11 -4
- package/dist/{components → frontend/components}/dashboard/user-mgmt/RankCheck.astro +1 -1
- package/dist/{components → frontend/components}/dashboard/user-mgmt/SocialSignin.astro +1 -1
- package/dist/{components → frontend/components}/dashboard/user-mgmt/UserListItem.astro +31 -3
- package/dist/frontend/components/shared/SSRUser.astro +267 -0
- package/{src → dist/frontend}/components/shared/head/Favicons.astro +1 -1
- package/dist/{components → frontend/components}/shared/head/TitleTags.astro +1 -1
- package/dist/{components/auth → frontend/components/shared}/oAuthButtonProviders.d.ts +9 -0
- package/dist/{fonts/onest-font.css → frontend/fonts/css/onest-variable.css} +1 -1
- package/dist/{fonts/syntax-font.css → frontend/fonts/css/syntax.css} +1 -1
- package/dist/{layouts → frontend/layouts}/DashboardLayout.astro +17 -7
- package/dist/{middleware → frontend/middleware}/index.js +4 -3
- package/dist/{middleware → frontend/middleware}/utils.d.ts +3 -3
- package/dist/{middleware → frontend/middleware}/utils.js +2 -2
- package/dist/{routes/error-pages → frontend/pages}/404.astro +2 -2
- package/dist/{routes/dashboard → frontend/pages/[dashboard]}/[...pluginPage].astro +1 -1
- package/{src/routes/dashboard → dist/frontend/pages/[dashboard]}/content-management/diff.astro +7 -3
- package/dist/{routes/auth → frontend/pages/[dashboard]}/login.astro +4 -4
- package/dist/frontend/pages/[dashboard]/logout.astro +153 -0
- package/{src/routes/dashboard → dist/frontend/pages/[dashboard]}/password-reset.astro +1 -1
- package/{src/routes/dashboard → dist/frontend/pages/[dashboard]}/profile.astro +1 -4
- package/{src/routes/auth → dist/frontend/pages/[dashboard]}/signup.astro +2 -2
- package/dist/frontend/pages/[dashboard]/smtp-configuration.astro +753 -0
- package/dist/{routes/dashboard → frontend/pages/[dashboard]}/unverified-email.astro +1 -1
- package/{src/routes/dashboard → dist/frontend/pages/[dashboard]}/user-management/edit.astro +52 -44
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/_effects/index.d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/_effects/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/callback.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/forgot-password.js +9 -4
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/login.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/logout.js +4 -6
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/register.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/shared.d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/auth/shared.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/api-tokens.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/config.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/diff.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/folder.js +1 -1
- package/dist/frontend/pages/studiocms_api/dashboard/content/page.d.ts +1 -0
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/page.js +20 -79
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/create-reset-link.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user-invite.js +9 -4
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user.js +2 -2
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/email-notification-settings-site.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/check-email.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/config.d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/config.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/partials/Editor.astro +1 -5
- package/{src/routes/api → dist/frontend/pages/studiocms_api}/dashboard/partials/LiveRender.astro +2 -2
- package/{src/routes/api → dist/frontend/pages/studiocms_api}/dashboard/partials/UserListItems.astro +2 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/plugins/[plugin].js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/profile.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/resend-verify-email.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/reset-password.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/search-list.js +1 -1
- package/dist/frontend/pages/studiocms_api/dashboard/templates.js +64 -0
- package/dist/frontend/pages/studiocms_api/dashboard/update-user-notifications.d.ts +1 -0
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/update-user-notifications.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/users.js +2 -2
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-email.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-session.d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-session.js +3 -3
- package/{src/routes/api → dist/frontend/pages/studiocms_api/renderer}/render.astro +2 -2
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/utils/auth-token.d.ts +2 -2
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/utils/auth-token.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/[id].d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/[id].js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/index.d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/[diffid].js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/[id].js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/[id].js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/settings/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/[id].d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/[id].js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/index.d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/index.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/fallback-list-pages.json.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/full-changelog.json.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/list-pages.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/update-latest-version-cache.js +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/utils/changelog.d.ts +1 -1
- package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/utils/changelog.js +7 -1
- package/dist/frontend/routes.d.ts +79 -0
- package/dist/frontend/routes.js +364 -0
- package/dist/{components/auth/component-scripts → frontend/scripts/auth}/formListener.js +1 -1
- package/dist/frontend/scripts/dateTimeListener.d.ts +21 -0
- package/dist/frontend/scripts/dateWithTimeAndZone.d.ts +35 -0
- package/dist/frontend/scripts/formdata-utils.d.ts +142 -0
- package/dist/frontend/scripts/formdata-utils.js +53 -0
- package/dist/frontend/scripts/timeAgo.d.ts +41 -0
- package/{src/routes/firstTimeSetupRoutes → dist/frontend/setup-pages}/1-start.astro +3 -3
- package/dist/{routes/firstTimeSetupRoutes → frontend/setup-pages}/2-next.astro +3 -3
- package/dist/{routes/firstTimeSetupRoutes → frontend/setup-pages}/3-done.astro +6 -6
- package/dist/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-1.js +1 -1
- package/dist/frontend/setup-pages/studiocms_api/dashboard/step-2.d.ts +1 -0
- package/dist/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-2.js +2 -2
- package/dist/{styles → frontend/styles}/auth-layout.css +1 -1
- package/dist/{styles → frontend/styles}/code-component.css +1 -1
- package/dist/{styles → frontend/styles}/dashboard-base.css +4 -12
- package/dist/{styles → frontend/styles}/dashboard-diff.css +1 -1
- package/dist/frontend/types.d.ts +47 -0
- package/dist/frontend/utils.d.ts +65 -0
- package/dist/frontend/utils.js +130 -0
- package/dist/{components/default-grid-items → handlers/plugin-components}/Recently-created-pages.astro +9 -4
- package/{src/components/default-grid-items → dist/handlers/plugin-components}/Recently-signed-up.astro +8 -7
- package/{src/components/default-grid-items → dist/handlers/plugin-components}/Recently-updated-pages.astro +9 -4
- package/dist/{components/default-grid-items → handlers/plugin-components}/Totals.astro +8 -3
- package/dist/handlers/plugin-i18n/de.d.ts +22 -0
- package/dist/handlers/plugin-i18n/de.js +25 -0
- package/dist/handlers/plugin-i18n/en.d.ts +22 -0
- package/dist/handlers/plugin-i18n/en.js +25 -0
- package/dist/handlers/plugin-i18n/es.d.ts +22 -0
- package/dist/handlers/plugin-i18n/es.js +25 -0
- package/dist/handlers/plugin-i18n/fr.d.ts +22 -0
- package/dist/handlers/plugin-i18n/fr.js +25 -0
- package/dist/handlers/plugin-i18n/nl.d.ts +22 -0
- package/dist/handlers/plugin-i18n/nl.js +25 -0
- package/dist/handlers/plugin-i18n/no.d.ts +22 -0
- package/dist/handlers/plugin-i18n/no.js +25 -0
- package/dist/handlers/plugin-i18n/zh.d.ts +22 -0
- package/dist/handlers/plugin-i18n/zh.js +25 -0
- package/dist/handlers/pluginHandler.d.ts +5 -3
- package/dist/handlers/pluginHandler.js +158 -62
- package/dist/handlers/routeHandler.d.ts +23 -61
- package/dist/handlers/routeHandler.js +13 -387
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -12
- package/dist/integrations/webVitals/checkForWebVitalsPlugin.js +9 -8
- package/dist/integrations/webVitals/i18n/de.d.ts +24 -0
- package/dist/integrations/webVitals/i18n/de.js +27 -0
- package/dist/integrations/webVitals/i18n/en.d.ts +24 -0
- package/dist/integrations/webVitals/i18n/en.js +27 -0
- package/dist/integrations/webVitals/i18n/es.d.ts +24 -0
- package/dist/integrations/webVitals/i18n/es.js +27 -0
- package/dist/integrations/webVitals/i18n/fr.d.ts +24 -0
- package/dist/integrations/webVitals/i18n/fr.js +27 -0
- package/dist/integrations/webVitals/i18n/nl.d.ts +24 -0
- package/dist/integrations/webVitals/i18n/nl.js +27 -0
- package/dist/integrations/webVitals/i18n/no.d.ts +24 -0
- package/dist/integrations/webVitals/i18n/no.js +27 -0
- package/dist/integrations/webVitals/i18n/zh.d.ts +24 -0
- package/dist/integrations/webVitals/i18n/zh.js +27 -0
- package/dist/plugins.d.ts +28 -0
- package/dist/plugins.js +1 -0
- package/dist/schemas/config/index.d.ts +2 -2
- package/dist/schemas/plugins/i18n.d.ts +59 -0
- package/dist/schemas/plugins/i18n.js +7 -0
- package/dist/schemas/plugins/index.d.ts +371 -8
- package/dist/schemas/plugins/index.js +76 -1
- package/dist/schemas/plugins/shared.d.ts +34 -7
- package/dist/schemas/plugins/shared.js +34 -7
- package/dist/types.d.ts +79 -3
- package/dist/utils/lang-helper.d.ts +37 -0
- package/dist/utils/lang-helper.js +60 -0
- package/dist/virtual.d.ts +51 -4
- package/dist/virtuals/auth/core.d.ts +9 -9
- package/dist/virtuals/auth/getLabelForPermissionLevel.d.ts +4 -1
- package/dist/virtuals/auth/verify-email.js +8 -3
- package/dist/virtuals/components/Renderer.astro +34 -8
- package/dist/virtuals/components/renderFn.d.ts +33 -0
- package/dist/virtuals/components/renderFn.js +36 -0
- package/dist/virtuals/i18n/LanguageSelector.astro +53 -102
- package/dist/virtuals/i18n/client.d.ts +90 -0
- package/dist/virtuals/i18n/client.js +38 -1
- package/dist/virtuals/i18n/config.d.ts +92 -15
- package/dist/virtuals/i18n/config.js +10 -9
- package/dist/virtuals/i18n/overrides.d.ts +6 -0
- package/dist/virtuals/i18n/overrides.js +7 -0
- package/dist/virtuals/i18n/plugin.d.ts +37 -0
- package/dist/virtuals/i18n/plugin.js +69 -0
- package/dist/virtuals/i18n/server.d.ts +4 -0
- package/dist/virtuals/i18n/server.js +2 -1
- package/dist/virtuals/i18n/translations/de.json +83 -5
- package/dist/virtuals/i18n/translations/en.json +83 -5
- package/dist/virtuals/i18n/translations/es.json +83 -5
- package/dist/virtuals/i18n/translations/fr.json +83 -5
- package/dist/virtuals/i18n/translations/hi.json +4 -1
- package/dist/virtuals/i18n/translations/nl.json +374 -0
- package/dist/virtuals/i18n/translations/no.json +374 -0
- package/dist/virtuals/i18n/translations/zh.json +83 -5
- package/dist/virtuals/i18n/v-files.d.ts +19 -1
- package/dist/virtuals/i18n/v-files.js +8 -1
- package/dist/virtuals/lib/routeMap.d.ts +1 -0
- package/dist/virtuals/lib/routeMap.js +2 -1
- package/dist/virtuals/mailer/template.d.ts +1 -0
- package/dist/virtuals/notifier/index.d.ts +2 -0
- package/dist/virtuals/notifier/index.js +12 -6
- package/dist/virtuals/scripts/template-editor.d.ts +32 -0
- package/dist/virtuals/scripts/template-editor.js +244 -0
- package/dist/virtuals/scripts/user-quick-tools.d.ts +2 -0
- package/dist/virtuals/scripts/user-quick-tools.js +41 -4
- package/dist/virtuals/sdk/consts.d.ts +1 -0
- package/dist/virtuals/sdk/consts.js +2 -0
- package/dist/virtuals/sdk/effect/db.d.ts +1 -1
- package/dist/virtuals/sdk/modules/auth.d.ts +7 -7
- package/dist/virtuals/sdk/modules/config-types.d.ts +6 -0
- package/dist/virtuals/sdk/modules/config.d.ts +7 -2
- package/dist/virtuals/sdk/modules/config.js +27 -3
- package/dist/virtuals/sdk/modules/get.d.ts +27 -26
- package/dist/virtuals/sdk/modules/init.d.ts +1 -1
- package/dist/virtuals/sdk/modules/middlewares.d.ts +1 -1
- package/dist/virtuals/sdk/modules/middlewares.js +26 -7
- package/dist/virtuals/template-engine/default-templates.d.ts +33 -0
- package/dist/virtuals/template-engine/default-templates.js +218 -0
- package/dist/virtuals/template-engine/index.d.ts +63 -0
- package/dist/virtuals/template-engine/index.js +61 -0
- package/package.json +26 -23
- package/src/consts.ts +41 -27
- package/src/db/config.ts +68 -55
- package/src/{components → frontend/components}/auth/OAuthButtonStack.astro +1 -1
- package/src/{components → frontend/components}/dashboard/DashboardGrid.astro +1 -1
- package/{dist → src/frontend}/components/dashboard/DashboardGridItem.astro +14 -4
- package/src/{components → frontend/components}/dashboard/DashboardPageHeader.astro +7 -90
- package/src/{components → frontend/components}/dashboard/DoubleSidebar.astro +3 -5
- package/src/{components → frontend/components}/dashboard/Footer.astro +1 -1
- package/{dist → src/frontend}/components/dashboard/LoginChecker.astro +1 -1
- package/src/{components → frontend/components}/dashboard/MainSidebarContent.astro +42 -28
- package/src/frontend/components/dashboard/SidebarModals.astro +13 -0
- package/src/{components → frontend/components}/dashboard/SingleSidebar.astro +4 -6
- package/{dist → src/frontend}/components/dashboard/configuration/ConfigForm.astro +49 -9
- package/src/{components → frontend/components}/dashboard/configuration/LoginPreview.astro +6 -20
- package/{dist → src/frontend}/components/dashboard/content-mgmt/CreateFolder.astro +1 -1
- package/src/frontend/components/dashboard/content-mgmt/CreatePage.astro +522 -0
- package/src/{components → frontend/components}/dashboard/content-mgmt/EditFolder.astro +1 -1
- package/src/frontend/components/dashboard/content-mgmt/EditPage.astro +741 -0
- package/src/{components → frontend/components}/dashboard/content-mgmt/InnerSidebarElement.astro +8 -2
- package/{dist → src/frontend}/components/dashboard/content-mgmt/PageHeader.astro +2 -2
- package/src/{components → frontend/components}/dashboard/content-mgmt/runtime.ts +2 -2
- package/src/{components → frontend/components}/dashboard/content-mgmt/shared.ts +2 -2
- package/src/{components → frontend/components}/dashboard/profile/APITokens.astro +2 -2
- package/src/{components → frontend/components}/dashboard/profile/BasicInfo.astro +1 -1
- package/{dist → src/frontend}/components/dashboard/profile/Notifications.astro +73 -24
- package/{dist → src/frontend}/components/dashboard/profile/SocialSignin.astro +1 -1
- package/{dist → src/frontend}/components/dashboard/profile/UpdatePassword.astro +1 -1
- package/src/frontend/components/dashboard/sidebar/UserAccount.astro +61 -0
- package/src/frontend/components/dashboard/sidebar/VersionCheck.astro +152 -0
- package/{dist → src/frontend}/components/dashboard/sidebar-modals/VersionModal.astro +62 -53
- package/src/{components → frontend/components}/dashboard/sidebarConfig.ts +1 -1
- package/src/frontend/components/dashboard/smtp-config/TemplateEditor.astro +107 -0
- package/{dist → src/frontend}/components/dashboard/user-mgmt/InnerSidebarElement.astro +11 -4
- package/src/{components → frontend/components}/dashboard/user-mgmt/RankCheck.astro +1 -1
- package/src/{components → frontend/components}/dashboard/user-mgmt/SocialSignin.astro +1 -1
- package/src/{components → frontend/components}/dashboard/user-mgmt/UserListItem.astro +31 -3
- package/src/frontend/components/shared/SSRUser.astro +267 -0
- package/{dist → src/frontend}/components/shared/head/Favicons.astro +1 -1
- package/src/{components → frontend/components}/shared/head/TitleTags.astro +1 -1
- package/src/{components/auth → frontend/components/shared}/oAuthButtonProviders.ts +9 -0
- package/src/{fonts/onest-font.css → frontend/fonts/css/onest-variable.css} +1 -1
- package/src/{fonts/syntax-font.css → frontend/fonts/css/syntax.css} +1 -1
- package/src/{layouts → frontend/layouts}/DashboardLayout.astro +17 -7
- package/src/{middleware → frontend/middleware}/index.ts +5 -3
- package/src/{middleware → frontend/middleware}/utils.ts +4 -4
- package/src/{routes/error-pages → frontend/pages}/404.astro +2 -2
- package/src/{routes/dashboard → frontend/pages/[dashboard]}/[...pluginPage].astro +1 -1
- package/{dist/routes/dashboard → src/frontend/pages/[dashboard]}/content-management/diff.astro +7 -3
- package/src/{routes/auth → frontend/pages/[dashboard]}/login.astro +4 -4
- package/src/frontend/pages/[dashboard]/logout.astro +153 -0
- package/{dist/routes/dashboard → src/frontend/pages/[dashboard]}/password-reset.astro +1 -1
- package/{dist/routes/dashboard → src/frontend/pages/[dashboard]}/profile.astro +1 -4
- package/{dist/routes/auth → src/frontend/pages/[dashboard]}/signup.astro +2 -2
- package/src/frontend/pages/[dashboard]/smtp-configuration.astro +753 -0
- package/src/{routes/dashboard → frontend/pages/[dashboard]}/unverified-email.astro +1 -1
- package/{dist/routes/dashboard → src/frontend/pages/[dashboard]}/user-management/edit.astro +52 -44
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/_effects/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/callback.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/forgot-password.ts +10 -4
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/login.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/logout.ts +4 -10
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/register.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/auth/shared.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/api-tokens.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/config.ts +2 -2
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/content/diff.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/content/folder.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/content/page.ts +34 -116
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/create-reset-link.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user-invite.ts +10 -4
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user.ts +2 -2
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/email-notification-settings-site.ts +2 -2
- package/src/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/check-email.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/config.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/partials/Editor.astro +1 -5
- package/{dist/routes/api → src/frontend/pages/studiocms_api}/dashboard/partials/LiveRender.astro +2 -2
- package/{dist/routes/api → src/frontend/pages/studiocms_api}/dashboard/partials/UserListItems.astro +2 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/plugins/[plugin].ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/profile.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/resend-verify-email.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/reset-password.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/search-list.ts +1 -1
- package/src/frontend/pages/studiocms_api/dashboard/templates.ts +74 -0
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/update-user-notifications.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/users.ts +2 -2
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-email.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-session.ts +3 -3
- package/{dist/routes/api → src/frontend/pages/studiocms_api/renderer}/render.astro +2 -2
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/utils/auth-token.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/[id].ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/[diffid].ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/[id].ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/[id].ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/settings/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/[id].ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/index.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/sdk/fallback-list-pages.json.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/sdk/full-changelog.json.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/sdk/list-pages.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/sdk/update-latest-version-cache.ts +1 -1
- package/src/{routes/api → frontend/pages/studiocms_api}/sdk/utils/changelog.ts +7 -1
- package/src/frontend/routes.ts +481 -0
- package/src/{components/auth/component-scripts → frontend/scripts/auth}/formListener.ts +1 -1
- package/src/frontend/scripts/dateTimeListener.ts +28 -0
- package/src/frontend/scripts/dateWithTimeAndZone.ts +45 -0
- package/src/frontend/scripts/formdata-utils.ts +116 -0
- package/src/frontend/scripts/timeAgo.ts +66 -0
- package/{dist/routes/firstTimeSetupRoutes → src/frontend/setup-pages}/1-start.astro +3 -3
- package/src/{routes/firstTimeSetupRoutes → frontend/setup-pages}/2-next.astro +3 -3
- package/src/{routes/firstTimeSetupRoutes → frontend/setup-pages}/3-done.astro +6 -6
- package/src/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-1.ts +1 -1
- package/src/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-2.ts +2 -2
- package/src/{styles → frontend/styles}/auth-layout.css +1 -2
- package/src/{styles → frontend/styles}/code-component.css +1 -1
- package/src/{styles → frontend/styles}/dashboard-base.css +4 -14
- package/src/{styles → frontend/styles}/dashboard-diff.css +1 -1
- package/src/frontend/types.ts +50 -0
- package/src/frontend/utils.ts +166 -0
- package/src/{components/default-grid-items → handlers/plugin-components}/Recently-created-pages.astro +9 -4
- package/{dist/components/default-grid-items → src/handlers/plugin-components}/Recently-signed-up.astro +8 -7
- package/{dist/components/default-grid-items → src/handlers/plugin-components}/Recently-updated-pages.astro +9 -4
- package/src/{components/default-grid-items → handlers/plugin-components}/Totals.astro +8 -3
- package/src/handlers/plugin-i18n/de.ts +22 -0
- package/src/handlers/plugin-i18n/en.ts +23 -0
- package/src/handlers/plugin-i18n/es.ts +22 -0
- package/src/handlers/plugin-i18n/fr.ts +22 -0
- package/src/handlers/plugin-i18n/nl.ts +22 -0
- package/src/handlers/plugin-i18n/no.ts +22 -0
- package/src/handlers/plugin-i18n/zh.ts +22 -0
- package/src/handlers/pluginHandler.ts +252 -109
- package/src/handlers/routeHandler.ts +39 -488
- package/src/index.ts +28 -11
- package/src/integrations/webVitals/checkForWebVitalsPlugin.ts +11 -8
- package/src/integrations/webVitals/i18n/de.ts +24 -0
- package/src/integrations/webVitals/i18n/en.ts +25 -0
- package/src/integrations/webVitals/i18n/es.ts +24 -0
- package/src/integrations/webVitals/i18n/fr.ts +24 -0
- package/src/integrations/webVitals/i18n/nl.ts +24 -0
- package/src/integrations/webVitals/i18n/no.ts +24 -0
- package/src/integrations/webVitals/i18n/zh.ts +24 -0
- package/src/integrations/webVitals/webVitalsRouteSummary.ts +0 -1
- package/src/plugins.ts +39 -0
- package/src/schemas/plugins/i18n.ts +67 -0
- package/src/schemas/plugins/index.ts +116 -0
- package/src/schemas/plugins/shared.ts +34 -11
- package/src/test-utils.ts +2 -0
- package/src/types.ts +97 -1
- package/src/utils/lang-helper.ts +78 -0
- package/src/virtual.d.ts +51 -4
- package/src/virtuals/auth/getLabelForPermissionLevel.ts +3 -0
- package/src/virtuals/auth/verify-email.ts +9 -3
- package/src/virtuals/components/Renderer.astro +34 -8
- package/src/virtuals/components/renderFn.ts +101 -0
- package/src/virtuals/i18n/LanguageSelector.astro +53 -102
- package/src/virtuals/i18n/client.ts +49 -0
- package/src/virtuals/i18n/config.ts +31 -24
- package/src/virtuals/i18n/overrides.ts +10 -0
- package/src/virtuals/i18n/plugin.ts +105 -0
- package/src/virtuals/i18n/server.ts +18 -6
- package/src/virtuals/i18n/translations/de.json +83 -5
- package/src/virtuals/i18n/translations/en.json +83 -5
- package/src/virtuals/i18n/translations/es.json +83 -5
- package/src/virtuals/i18n/translations/fr.json +83 -5
- package/src/virtuals/i18n/translations/hi.json +4 -1
- package/src/virtuals/i18n/translations/nl.json +374 -0
- package/src/virtuals/i18n/translations/no.json +374 -0
- package/src/virtuals/i18n/translations/zh.json +83 -5
- package/src/virtuals/i18n/v-files.ts +32 -1
- package/src/virtuals/lib/routeMap.ts +2 -0
- package/src/virtuals/mailer/template.ts +1 -0
- package/src/virtuals/notifier/index.ts +16 -6
- package/src/virtuals/scripts/template-editor.ts +391 -0
- package/src/virtuals/scripts/user-quick-tools.ts +53 -4
- package/src/virtuals/sdk/consts.ts +2 -0
- package/src/virtuals/sdk/modules/config-types.ts +7 -0
- package/src/virtuals/sdk/modules/config.ts +33 -2
- package/src/virtuals/sdk/modules/middlewares.ts +31 -7
- package/src/virtuals/template-engine/default-templates.ts +215 -0
- package/src/virtuals/template-engine/index.ts +95 -0
- package/ui.d.ts +13 -5
- package/dist/components/dashboard/SidebarModals.astro +0 -13
- package/dist/components/dashboard/component-scripts/dateTimeListener.d.ts +0 -1
- package/dist/components/dashboard/component-scripts/dateWithTimeAndZone.d.ts +0 -2
- package/dist/components/dashboard/component-scripts/timeAgo.d.ts +0 -1
- package/dist/components/dashboard/content-mgmt/CreatePage.astro +0 -345
- package/dist/components/dashboard/content-mgmt/EditPage.astro +0 -383
- package/dist/components/dashboard/profile/oAuthButtonProviders.d.ts +0 -1
- package/dist/components/dashboard/profile/oAuthButtonProviders.js +0 -1
- package/dist/components/dashboard/shared.d.ts +0 -2
- package/dist/components/dashboard/sidebar/UserAccount.astro +0 -26
- package/dist/components/dashboard/sidebar/VersionCheck.astro +0 -131
- package/dist/components/shared/SSRUser.astro +0 -202
- package/dist/routes/api/auth/logout.d.ts +0 -6
- package/dist/routes/api/dashboard/content/page.d.ts +0 -2
- package/dist/routes/auth/logout.astro +0 -27
- package/dist/routes/dashboard/smtp-configuration.astro +0 -549
- package/src/components/dashboard/SidebarModals.astro +0 -13
- package/src/components/dashboard/component-scripts/dateTimeListener.ts +0 -8
- package/src/components/dashboard/component-scripts/dateWithTimeAndZone.ts +0 -12
- package/src/components/dashboard/component-scripts/timeAgo.ts +0 -26
- package/src/components/dashboard/content-mgmt/CreatePage.astro +0 -345
- package/src/components/dashboard/content-mgmt/EditPage.astro +0 -383
- package/src/components/dashboard/profile/oAuthButtonProviders.ts +0 -1
- package/src/components/dashboard/shared.ts +0 -3
- package/src/components/dashboard/sidebar/UserAccount.astro +0 -26
- package/src/components/dashboard/sidebar/VersionCheck.astro +0 -131
- package/src/components/shared/SSRUser.astro +0 -202
- package/src/routes/auth/logout.astro +0 -27
- package/src/routes/dashboard/smtp-configuration.astro +0 -549
- /package/dist/{components → frontend/components}/auth/FallbackCanvas.astro +0 -0
- /package/dist/{components → frontend/components}/auth/OAuthButton.astro +0 -0
- /package/dist/{components → frontend/components}/auth/StaticAuthCheck.astro +0 -0
- /package/dist/{components → frontend/components}/auth/StudioCMSLogoSVG.astro +0 -0
- /package/dist/{components → frontend/components}/auth/ThreeCanvasLoader.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/BaseHead.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/PageHeader.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/SidebarLink.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/SidebarPluginLink.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/StudioCMSLogo.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/UserName.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/PageEditorSwapper.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/PageList.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/PageTypeHandler.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/PluginFields.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/TreeRenderer.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarLink.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/content-mgmt/shared.d.ts +0 -0
- /package/dist/{components → frontend/components}/dashboard/plugins/SettingsRenderer.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/sidebar/VersionCheckChangelog.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/sidebar-modals/UserManagementModals.astro +0 -0
- /package/dist/{components → frontend/components}/dashboard/sidebarConfig.d.ts +0 -0
- /package/dist/{components → frontend/components}/first-time-setup/PageHeader.astro +0 -0
- /package/dist/{components → frontend/components}/shared/Code.astro +0 -0
- /package/dist/{components → frontend/components}/shared/ThemeManager.astro +0 -0
- /package/dist/{components → frontend/components}/shared/head/Global.astro +0 -0
- /package/dist/{components/auth → frontend/components/shared}/oAuthButtonProviders.js +0 -0
- /package/dist/{fonts/OnestFont.woff2 → frontend/fonts/woff2/onest-variable.woff2} +0 -0
- /package/dist/{fonts/SyntaxFont.woff2 → frontend/fonts/woff2/syntax.woff2} +0 -0
- /package/dist/{layouts → frontend/layouts}/AuthLayout.astro +0 -0
- /package/dist/{layouts → frontend/layouts}/FirstTimeSetupLayout.astro +0 -0
- /package/dist/{middleware → frontend/middleware}/index.d.ts +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/configuration.astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createfolder.astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createpage.astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editfolder.astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editpage.astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/index.astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/index.astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/plugins/[plugin].astro +0 -0
- /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/user-management/index.astro +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/callback.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/index.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/forgot-password.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/login.d.ts +0 -0
- /package/dist/{routes/api/auth/register.d.ts → frontend/pages/studiocms_api/auth/logout.d.ts} +0 -0
- /package/dist/{routes/api/dashboard/config.d.ts → frontend/pages/studiocms_api/auth/register.d.ts} +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/api-tokens.d.ts +0 -0
- /package/dist/{routes/api/dashboard/content/diff.d.ts → frontend/pages/studiocms_api/dashboard/config.d.ts} +0 -0
- /package/dist/{routes/api/dashboard/create-reset-link.d.ts → frontend/pages/studiocms_api/dashboard/content/diff.d.ts} +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/folder.d.ts +0 -0
- /package/dist/{routes/api/dashboard/create-user-invite.d.ts → frontend/pages/studiocms_api/dashboard/create-reset-link.d.ts} +0 -0
- /package/dist/{routes/api/dashboard/create-user.d.ts → frontend/pages/studiocms_api/dashboard/create-user-invite.d.ts} +0 -0
- /package/dist/{routes/api/dashboard/email-notification-settings-site.d.ts → frontend/pages/studiocms_api/dashboard/create-user.d.ts} +0 -0
- /package/dist/{routes/api/dashboard/plugins/[plugin].d.ts → frontend/pages/studiocms_api/dashboard/email-notification-settings-site.d.ts} +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/check-email.d.ts +0 -0
- /package/dist/{routes/api/dashboard/profile.d.ts → frontend/pages/studiocms_api/dashboard/plugins/[plugin].d.ts} +0 -0
- /package/dist/{routes/api/dashboard/resend-verify-email.d.ts → frontend/pages/studiocms_api/dashboard/profile.d.ts} +0 -0
- /package/dist/{routes/api/dashboard/reset-password.d.ts → frontend/pages/studiocms_api/dashboard/resend-verify-email.d.ts} +0 -0
- /package/dist/{routes/api/dashboard/update-user-notifications.d.ts → frontend/pages/studiocms_api/dashboard/reset-password.d.ts} +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/search-list.d.ts +0 -0
- /package/dist/{routes/firstTimeSetupRoutes/api/step-2.d.ts → frontend/pages/studiocms_api/dashboard/templates.d.ts} +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/users.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-email.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/[diffid].d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/index.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/index.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/index.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/[id].d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/index.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/[id].d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/index.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/settings/index.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/fallback-list-pages.json.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/full-changelog.json.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/list-pages.d.ts +0 -0
- /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/update-latest-version-cache.d.ts +0 -0
- /package/dist/{components/auth/component-scripts → frontend/scripts/auth}/formListener.d.ts +0 -0
- /package/dist/{components/dashboard/component-scripts → frontend/scripts}/dateTimeListener.js +0 -0
- /package/dist/{components/dashboard/component-scripts → frontend/scripts}/dateWithTimeAndZone.js +0 -0
- /package/dist/{components/dashboard/component-scripts → frontend/scripts}/timeAgo.js +0 -0
- /package/dist/{routes/firstTimeSetupRoutes → frontend/setup-pages}/index.astro +0 -0
- /package/dist/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-1.d.ts +0 -0
- /package/dist/{styles → frontend/styles}/404.css +0 -0
- /package/dist/{components/dashboard/shared.js → frontend/types.js} +0 -0
- /package/dist/{components/default-grid-items → handlers/plugin-components}/utils.d.ts +0 -0
- /package/dist/{components/default-grid-items → handlers/plugin-components}/utils.js +0 -0
- /package/src/{components → frontend/components}/auth/FallbackCanvas.astro +0 -0
- /package/src/{components → frontend/components}/auth/OAuthButton.astro +0 -0
- /package/src/{components → frontend/components}/auth/StaticAuthCheck.astro +0 -0
- /package/src/{components → frontend/components}/auth/StudioCMSLogoSVG.astro +0 -0
- /package/src/{components → frontend/components}/auth/ThreeCanvasLoader.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/BaseHead.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/PageHeader.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/SidebarLink.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/SidebarPluginLink.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/StudioCMSLogo.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/UserName.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/content-mgmt/PageEditorSwapper.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/content-mgmt/PageList.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/content-mgmt/PageTypeHandler.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/content-mgmt/PluginFields.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/content-mgmt/TreeRenderer.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarLink.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/plugins/SettingsRenderer.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/sidebar/VersionCheckChangelog.astro +0 -0
- /package/src/{components → frontend/components}/dashboard/sidebar-modals/UserManagementModals.astro +0 -0
- /package/src/{components → frontend/components}/first-time-setup/PageHeader.astro +0 -0
- /package/src/{components → frontend/components}/first-time-setup/snippets/opt1-astro.config.diff +0 -0
- /package/src/{components → frontend/components}/first-time-setup/snippets/opt2-astro.config.diff +0 -0
- /package/src/{components → frontend/components}/first-time-setup/snippets/opt2-studiocms.config.diff +0 -0
- /package/src/{components → frontend/components}/shared/Code.astro +0 -0
- /package/src/{components → frontend/components}/shared/ThemeManager.astro +0 -0
- /package/src/{components → frontend/components}/shared/head/Global.astro +0 -0
- /package/src/{fonts/OnestFont.woff2 → frontend/fonts/woff2/onest-variable.woff2} +0 -0
- /package/src/{fonts/SyntaxFont.woff2 → frontend/fonts/woff2/syntax.woff2} +0 -0
- /package/src/{layouts → frontend/layouts}/AuthLayout.astro +0 -0
- /package/src/{layouts → frontend/layouts}/FirstTimeSetupLayout.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/configuration.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createfolder.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createpage.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editfolder.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editpage.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/index.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/index.astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/plugins/[plugin].astro +0 -0
- /package/src/{routes/dashboard → frontend/pages/[dashboard]}/user-management/index.astro +0 -0
- /package/src/{routes/firstTimeSetupRoutes → frontend/setup-pages}/index.astro +0 -0
- /package/src/{styles → frontend/styles}/404.css +0 -0
- /package/src/{components/default-grid-items → handlers/plugin-components}/utils.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,89 @@
|
|
|
1
1
|
# studiocms
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#969](https://github.com/withstudiocms/studiocms/pull/969) [`7dd17fa`](https://github.com/withstudiocms/studiocms/commit/7dd17fa085bd747b500f920c53184f5b6f509abd) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
8
|
+
|
|
9
|
+
- [#973](https://github.com/withstudiocms/studiocms/pull/973) [`76f30aa`](https://github.com/withstudiocms/studiocms/commit/76f30aab37bd5b94f418717788acd96f2e3cc62c) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates StudioCMS UI and related Astro files to resolve Astro picocolor bug resulting in broken dev environments
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`79286bf`](https://github.com/withstudiocms/studiocms/commit/79286bf1c914e9bcf4712c2165ccb978ad3118fe)]:
|
|
12
|
+
- @withstudiocms/effect@0.1.0-beta.5
|
|
13
|
+
- @withstudiocms/auth-kit@0.1.0-beta.4
|
|
14
|
+
- @withstudiocms/component-registry@0.1.0-beta.5
|
|
15
|
+
|
|
16
|
+
## 0.1.0-beta.28
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#920](https://github.com/withstudiocms/studiocms/pull/920) [`5550673`](https://github.com/withstudiocms/studiocms/commit/55506739e3f96b690ad7999dbc1f9261ac63e644) Thanks [@ad1tyayadav](https://github.com/ad1tyayadav)! - Deprecates and hides the "Hide Index Page" setting from dashboard. Users who previously relied on this setting should migrate to another method.
|
|
21
|
+
|
|
22
|
+
- [#917](https://github.com/withstudiocms/studiocms/pull/917) [`7ef34d7`](https://github.com/withstudiocms/studiocms/commit/7ef34d7e553bb966e86bfddb4d63c622aad2dc83) Thanks [@Ananya44444](https://github.com/Ananya44444)! - Replaces custom CSS search icon with Input component icon prop and removes unused CSS.
|
|
23
|
+
|
|
24
|
+
- [#875](https://github.com/withstudiocms/studiocms/pull/875) [`74f9bf8`](https://github.com/withstudiocms/studiocms/commit/74f9bf8cb039d09e9e4589772734eb3a3012178c) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates to `@studiocms/ui@1.0.0-beta.2`
|
|
25
|
+
|
|
26
|
+
- [#862](https://github.com/withstudiocms/studiocms/pull/862) [`dc8ca3a`](https://github.com/withstudiocms/studiocms/commit/dc8ca3abfb92944b78d342414e63c3dabe7e77e6) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @iconify-json/simple-icons to ^1.2.53
|
|
27
|
+
|
|
28
|
+
- [#887](https://github.com/withstudiocms/studiocms/pull/887) [`cd03b94`](https://github.com/withstudiocms/studiocms/commit/cd03b945e27a459881474443b762e2ec3f427884) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency dotenv to ^17.2.3
|
|
29
|
+
|
|
30
|
+
- [#928](https://github.com/withstudiocms/studiocms/pull/928) [`a33c6df`](https://github.com/withstudiocms/studiocms/commit/a33c6df2e595f6867e0bdc82554017e003a01aed) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
31
|
+
|
|
32
|
+
- [#957](https://github.com/withstudiocms/studiocms/pull/957) [`df658d7`](https://github.com/withstudiocms/studiocms/commit/df658d7a91230426ec59480dbefbeb2b8e7c550b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
33
|
+
|
|
34
|
+
- [#905](https://github.com/withstudiocms/studiocms/pull/905) [`a53c830`](https://github.com/withstudiocms/studiocms/commit/a53c83017b02d589607874405b2c040474203716) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Introduces a new email template editor and preview feature
|
|
35
|
+
|
|
36
|
+
- [#950](https://github.com/withstudiocms/studiocms/pull/950) [`0954e8f`](https://github.com/withstudiocms/studiocms/commit/0954e8f60d539e7ab13c00b8e904851ccdc2d9e0) Thanks [@mvdve](https://github.com/mvdve)! - Fixes the form validation parsing of boolean select fields values by transforming the string values to boolean for content management pages.
|
|
37
|
+
|
|
38
|
+
- [#898](https://github.com/withstudiocms/studiocms/pull/898) [`c57463b`](https://github.com/withstudiocms/studiocms/commit/c57463bb5846a75fda0dfad8da3590145eb442a4) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Update `@studiocms/ui` to 1.0.0-beta.3 and cleanup now unneeded styles
|
|
39
|
+
|
|
40
|
+
- [#891](https://github.com/withstudiocms/studiocms/pull/891) [`437e45c`](https://github.com/withstudiocms/studiocms/commit/437e45c99e5e740b72a32836b6df48e7c461ef57) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates feedback button to point to GitHub (temporary measure until astro-feedback integration)
|
|
41
|
+
|
|
42
|
+
- [#909](https://github.com/withstudiocms/studiocms/pull/909) [`74b0b36`](https://github.com/withstudiocms/studiocms/commit/74b0b365090433a0c4185d4d32c9e91f5af50087) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #909)
|
|
43
|
+
|
|
44
|
+
- [#892](https://github.com/withstudiocms/studiocms/pull/892) [`07501ff`](https://github.com/withstudiocms/studiocms/commit/07501fff35c6777f7d08b9857eff3d827ed12e8b) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fixes missing translation
|
|
45
|
+
|
|
46
|
+
- [#946](https://github.com/withstudiocms/studiocms/pull/946) [`1717b71`](https://github.com/withstudiocms/studiocms/commit/1717b7194e3dd42b75fc51952860a3bd3e2f5f3f) Thanks [@mvdve](https://github.com/mvdve)! - Fixes zod error parsing for first-time setup api route responses.
|
|
47
|
+
|
|
48
|
+
- [#876](https://github.com/withstudiocms/studiocms/pull/876) [`9a5a360`](https://github.com/withstudiocms/studiocms/commit/9a5a360e68183693465d29ea5b6ca701ac54cc69) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Enables i18n support for StudioCMS dashboard.
|
|
49
|
+
|
|
50
|
+
- [#871](https://github.com/withstudiocms/studiocms/pull/871) [`872ba2e`](https://github.com/withstudiocms/studiocms/commit/872ba2e286248a79fa46df1c3f5ca354e36e0494) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates quick user tools, Logout page, and buttons to utilize POST requests.
|
|
51
|
+
|
|
52
|
+
- [#889](https://github.com/withstudiocms/studiocms/pull/889) [`e63f679`](https://github.com/withstudiocms/studiocms/commit/e63f679a89ddd50a363d5bbe1b9b0ea403b1292b) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements a better API route type `PluginAPIRoute` from the `studiocms/plugins` export for plugin onCreate, onEdit, and onDelete API handlers.
|
|
53
|
+
|
|
54
|
+
- [#882](https://github.com/withstudiocms/studiocms/pull/882) [`3b96046`](https://github.com/withstudiocms/studiocms/commit/3b96046aa0fe1eaeb9e472be6ceae1e24dfb78bc) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Optimizes middleware cache
|
|
55
|
+
|
|
56
|
+
- [#940](https://github.com/withstudiocms/studiocms/pull/940) [`f0ea2fb`](https://github.com/withstudiocms/studiocms/commit/f0ea2fb22f8f137190ad24cf6a9bdf219fb1285e) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #940)
|
|
57
|
+
|
|
58
|
+
- [#936](https://github.com/withstudiocms/studiocms/pull/936) [`a552fc6`](https://github.com/withstudiocms/studiocms/commit/a552fc658d7739bda594fb063075ae85c456709d) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements new rendering system, allowing plugins to augment the rendering pipeline with prefix, suffix, or simple component augmentation.
|
|
59
|
+
|
|
60
|
+
- [#866](https://github.com/withstudiocms/studiocms/pull/866) [`64b1515`](https://github.com/withstudiocms/studiocms/commit/64b15158ecc93177fac222f9cabe38b5387d5df5) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Deprecates the legacy StudioCMSSiteConfig, StudioCMSMailerConfig, and StudioCMSNotificationSettings tables to be fully removed in a future release.
|
|
61
|
+
|
|
62
|
+
Note: Users will need to run `astro db push --remote` to ensure their DB schemas are up-to-date.
|
|
63
|
+
|
|
64
|
+
- [#902](https://github.com/withstudiocms/studiocms/pull/902) [`a64cf64`](https://github.com/withstudiocms/studiocms/commit/a64cf64975778d7f0f127aa8bd9f56f777aaed91) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Reorganizes create and edit content pages, as well as SMTP config page.
|
|
65
|
+
|
|
66
|
+
- [#953](https://github.com/withstudiocms/studiocms/pull/953) [`000ea26`](https://github.com/withstudiocms/studiocms/commit/000ea26f1f9e302df6701d354a32f5b8b1c6c9d0) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors internal file structure of Astro frontend pages and api endpoints to simplify long-term maintenance
|
|
67
|
+
|
|
68
|
+
- [#929](https://github.com/withstudiocms/studiocms/pull/929) [`8840b69`](https://github.com/withstudiocms/studiocms/commit/8840b69300cf5aab9e47c4bd65f5fec67a346f3d) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #929)
|
|
69
|
+
|
|
70
|
+
- [#868](https://github.com/withstudiocms/studiocms/pull/868) [`503a25a`](https://github.com/withstudiocms/studiocms/commit/503a25a5da1c07afeb3d965b73ea5bb99a673ba4) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Improve page creation and edit data processing
|
|
71
|
+
|
|
72
|
+
- [#961](https://github.com/withstudiocms/studiocms/pull/961) [`a57c724`](https://github.com/withstudiocms/studiocms/commit/a57c724fac0553fd6eb88c6a1bf850450520c369) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #961)
|
|
73
|
+
|
|
74
|
+
- [#962](https://github.com/withstudiocms/studiocms/pull/962) [`6516cfa`](https://github.com/withstudiocms/studiocms/commit/6516cfa01ea0d5b35442e8cd455a86cc4b4ce260) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - cleans up internal code
|
|
75
|
+
|
|
76
|
+
- [#938](https://github.com/withstudiocms/studiocms/pull/938) [`9dce1e7`](https://github.com/withstudiocms/studiocms/commit/9dce1e7aa656cfd0e51587afe74e2009726759f4) Thanks [@ad1tyayadav](https://github.com/ad1tyayadav)! - Move avatar loading to client-side to eliminate render blocking
|
|
77
|
+
|
|
78
|
+
- [#874](https://github.com/withstudiocms/studiocms/pull/874) [`0326476`](https://github.com/withstudiocms/studiocms/commit/03264767111f8b4dbdef18eafe25fa2f28c3ceb5) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #874)
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [[`d3123fe`](https://github.com/withstudiocms/studiocms/commit/d3123febbb0acdfb8d79629e9c2b101dff8a2bc7), [`1d26adb`](https://github.com/withstudiocms/studiocms/commit/1d26adbce761f8856d4282d7d1b81d9570df32ac), [`58e8d06`](https://github.com/withstudiocms/studiocms/commit/58e8d0629ce039be239f17ef616256f53570901f), [`0407845`](https://github.com/withstudiocms/studiocms/commit/04078451befeda774e9b14a148464e895a269ca6), [`0f924e7`](https://github.com/withstudiocms/studiocms/commit/0f924e7a27f0e7480afe4f58061451499a5f6913), [`1306785`](https://github.com/withstudiocms/studiocms/commit/130678577bcd6a05403c208ca4f46f06e48b9ca4)]:
|
|
81
|
+
- @withstudiocms/effect@0.1.0-beta.4
|
|
82
|
+
- @withstudiocms/component-registry@0.1.0-beta.4
|
|
83
|
+
- @withstudiocms/template-lang@0.1.0-beta.1
|
|
84
|
+
- @withstudiocms/internal_helpers@0.1.0-beta.3
|
|
85
|
+
- @withstudiocms/auth-kit@0.1.0-beta.3
|
|
86
|
+
|
|
3
87
|
## 0.1.0-beta.27
|
|
4
88
|
|
|
5
89
|
### Patch Changes
|
|
@@ -37,4 +37,4 @@ console.log(message2);
|
|
|
37
37
|
//
|
|
38
38
|
```
|
|
39
39
|
*/
|
|
40
|
-
export declare const effectBoxen: <T>(fn: (boxen: typeof _boxen) => T) => Effect.Effect
|
|
40
|
+
export declare const effectBoxen: <T>(fn: (boxen: typeof _boxen) => T) => Effect.Effect<T, Error, never>;
|
|
@@ -9,4 +9,4 @@ export declare const logger: {
|
|
|
9
9
|
* @param debug - A boolean flag indicating whether debug logging is enabled.
|
|
10
10
|
* @returns An Effect-wrapped function that logs a debug message if debugging is enabled.
|
|
11
11
|
*/
|
|
12
|
-
export declare const buildDebugLogger: (debug: boolean) => Effect.Effect<(message: string) => Effect.Effect
|
|
12
|
+
export declare const buildDebugLogger: (debug: boolean) => Effect.Effect<(message: string) => Effect.Effect<void, import("effect/Cause").UnknownException, never>, never, never>;
|
|
@@ -271,6 +271,6 @@ export declare const Permissions: s.SQLiteTableWithColumns<{
|
|
|
271
271
|
* const result = yield* execute((db) => db.select(...));
|
|
272
272
|
*/
|
|
273
273
|
export declare const libSQLDrizzleClient: (url: string, authToken: string) => Effect.Effect<{
|
|
274
|
-
execute: <T>(fn: (client: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>> | import("@astrojs/db/runtime").Database) => Promise<T>) => Effect.Effect
|
|
274
|
+
execute: <T>(fn: (client: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>> | import("@astrojs/db/runtime").Database) => Promise<T>) => Effect.Effect<T, LibSQLClientError, never>;
|
|
275
275
|
makeQuery: <A, E, R, Input = never>(queryFn: (execute: import("@withstudiocms/effect/drizzle").ExecuteFn<Record<string, unknown>>, input: Input) => Effect.Effect<A, E, R>) => (...args: [Input] extends [never] ? [] : [input: Input]) => Effect.Effect<A, E, R>;
|
|
276
276
|
}, LibSQLClientError, never>;
|
package/dist/config.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export type { StudioCMSOptions } from './schemas/index.js';
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function defineStudioCMSConfig(config: StudioCMSOptions): {
|
|
29
29
|
plugins?: import("./plugins.js").StudioCMSPlugin[] | undefined;
|
|
30
|
-
logLevel?: "
|
|
30
|
+
logLevel?: "Error" | "All" | "Fatal" | "Warning" | "Info" | "Debug" | "Trace" | "None" | undefined;
|
|
31
31
|
dbStartPage?: boolean | undefined;
|
|
32
32
|
verbose?: boolean | undefined;
|
|
33
33
|
componentRegistry?: Record<string, string> | undefined;
|
package/dist/consts.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const Next_MailerConfigId: string;
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const CMSNotificationSettingsId: string;
|
|
20
20
|
export declare const Next_NotificationSettingsId: string;
|
|
21
|
+
export declare const TemplateConfigId: string;
|
|
21
22
|
/**
|
|
22
23
|
* The default lifetime for cached items.
|
|
23
24
|
* This value is used to determine how long an item should remain in the cache before it is considered expired.
|
|
@@ -39,6 +40,8 @@ export declare const currentRESTAPIVersions: readonly ["v1"];
|
|
|
39
40
|
export type CurrentRESTAPIVersions = (typeof currentRESTAPIVersions)[number];
|
|
40
41
|
/**
|
|
41
42
|
* REST API Directory
|
|
43
|
+
*
|
|
44
|
+
* @deprecated use new src/frontend/routes resolver functions instead
|
|
42
45
|
*/
|
|
43
46
|
export declare const routesDir: {
|
|
44
47
|
fts: (file: string) => string;
|
|
@@ -175,19 +178,6 @@ export declare const FAVICON_ASSETS: {
|
|
|
175
178
|
};
|
|
176
179
|
};
|
|
177
180
|
type UiOptions = Parameters<typeof uiIntegration>[0];
|
|
178
|
-
/**
|
|
179
|
-
* UI options configuration for StudioCMS.
|
|
180
|
-
*
|
|
181
|
-
* @remarks
|
|
182
|
-
* This constant defines the default UI options used throughout StudioCMS.
|
|
183
|
-
* It includes settings for CSS injection and icon sets.
|
|
184
|
-
*
|
|
185
|
-
* @property noInjectCSS - If true, StudioCMS UI will not inject its default CSS into all routes.
|
|
186
|
-
* @property icons - An object containing icon sets used in the UI.
|
|
187
|
-
* - `flatcoloricons`: Contains selected icons from the Flat Color Icons set (e.g., 'google').
|
|
188
|
-
* - `simpleicons`: Contains selected icons from the Simple Icons set (e.g., 'github', 'discord', 'auth0').
|
|
189
|
-
*/
|
|
190
|
-
export declare const STUDIOCMS_UI_OPTS: UiOptions;
|
|
191
181
|
/**
|
|
192
182
|
* Merges user-provided UI options with default StudioCMS UI options.
|
|
193
183
|
*
|
|
@@ -198,7 +188,10 @@ export declare const STUDIOCMS_UI_OPTS: UiOptions;
|
|
|
198
188
|
* - If a user option is provided, it takes precedence over the default.
|
|
199
189
|
* - The `icons` property is deeply merged, combining default and user-provided icons.
|
|
200
190
|
*/
|
|
201
|
-
export declare function getUiOpts(
|
|
191
|
+
export declare function getUiOpts(currentFlags: Array<{
|
|
192
|
+
key: string;
|
|
193
|
+
flag: `lang-${string}`;
|
|
194
|
+
}>, userOpts?: Partial<UiOptions>): UiOptions;
|
|
202
195
|
export declare const LinkNewOAuthCookieName = "link-new-o-auth";
|
|
203
196
|
export declare const AuthSessionCookieName = "auth_session";
|
|
204
197
|
export declare const ValidRanks: ReadonlySet<AvailablePermissionRanks>;
|
package/dist/consts.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { icons as circleFlags } from "@iconify-json/circle-flags";
|
|
1
2
|
import { icons as flatColorIcons } from "@iconify-json/flat-color-icons";
|
|
2
3
|
import { icons as simpleIcons } from "@iconify-json/simple-icons";
|
|
3
4
|
import {
|
|
@@ -12,6 +13,7 @@ const CMSMailerConfigId = "1";
|
|
|
12
13
|
const Next_MailerConfigId = "SCMS_MAILER_CONFIG_1";
|
|
13
14
|
const CMSNotificationSettingsId = "1";
|
|
14
15
|
const Next_NotificationSettingsId = "SCMS_NOTIFICATION_SETTINGS_1";
|
|
16
|
+
const TemplateConfigId = "SCMS_EMAIL_TEMPLATES_1";
|
|
15
17
|
const defaultCacheLifeTime = "5m";
|
|
16
18
|
const OneDay = 1e3 * 60 * 60 * 24;
|
|
17
19
|
const versionCacheLifetime = OneDay * 7;
|
|
@@ -122,21 +124,27 @@ const FAVICON_ASSETS = {
|
|
|
122
124
|
dark: `${STUDIOCMS_CDN_URL}/favicon-dark.png`
|
|
123
125
|
}
|
|
124
126
|
};
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
127
|
+
function getDefaultUiOpts(currentFlags) {
|
|
128
|
+
return {
|
|
129
|
+
noInjectCSS: true,
|
|
130
|
+
icons: {
|
|
131
|
+
flatcoloricons: stripIconify({
|
|
132
|
+
src: flatColorIcons,
|
|
133
|
+
icons: ["google"]
|
|
134
|
+
}),
|
|
135
|
+
simpleicons: stripIconify({
|
|
136
|
+
src: simpleIcons,
|
|
137
|
+
icons: ["github", "discord", "auth0"]
|
|
138
|
+
}),
|
|
139
|
+
"lang-flags": stripIconify({
|
|
140
|
+
src: circleFlags,
|
|
141
|
+
icons: currentFlags.map(({ flag }) => flag)
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function getUiOpts(currentFlags, userOpts) {
|
|
147
|
+
const base = { ...getDefaultUiOpts(currentFlags) };
|
|
140
148
|
const merged = {
|
|
141
149
|
...base,
|
|
142
150
|
...userOpts,
|
|
@@ -164,9 +172,9 @@ export {
|
|
|
164
172
|
STUDIOCMS_CDN_URL,
|
|
165
173
|
STUDIOCMS_EDITOR_CSRF_COOKIE_NAME,
|
|
166
174
|
STUDIOCMS_THEME_COLOR,
|
|
167
|
-
STUDIOCMS_UI_OPTS,
|
|
168
175
|
StudioCMSDefaultRobotsConfig,
|
|
169
176
|
StudioCMSMarkdownDefaults,
|
|
177
|
+
TemplateConfigId,
|
|
170
178
|
ValidRanks,
|
|
171
179
|
authAPIRoute,
|
|
172
180
|
currentRESTAPIVersions,
|
package/dist/db/config.d.ts
CHANGED
|
@@ -661,6 +661,13 @@ export declare const tsPageData: import("@astrojs/db/runtime").Table<"StudioCMSP
|
|
|
661
661
|
optional: true;
|
|
662
662
|
};
|
|
663
663
|
};
|
|
664
|
+
augments: {
|
|
665
|
+
type: "json";
|
|
666
|
+
schema: {
|
|
667
|
+
default: never[];
|
|
668
|
+
optional: true;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
664
671
|
}>;
|
|
665
672
|
export declare const tsDiffTracking: import("@astrojs/db/runtime").Table<"StudioCMSDiffTracking", {
|
|
666
673
|
id: {
|
|
@@ -1042,6 +1049,121 @@ export declare const tsPageContent: import("@astrojs/db/runtime").Table<"StudioC
|
|
|
1042
1049
|
};
|
|
1043
1050
|
};
|
|
1044
1051
|
}>;
|
|
1052
|
+
export declare const tsEmailVerificationTokens: import("@astrojs/db/runtime").Table<"StudioCMSEmailVerificationTokens", {
|
|
1053
|
+
id: {
|
|
1054
|
+
type: "text";
|
|
1055
|
+
schema: {
|
|
1056
|
+
readonly primaryKey: true;
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
userId: {
|
|
1060
|
+
type: "text";
|
|
1061
|
+
schema: {
|
|
1062
|
+
readonly references: () => {
|
|
1063
|
+
type: "text";
|
|
1064
|
+
schema: {
|
|
1065
|
+
readonly primaryKey: true;
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1070
|
+
token: {
|
|
1071
|
+
type: "text";
|
|
1072
|
+
schema: ({
|
|
1073
|
+
name?: string | undefined;
|
|
1074
|
+
label?: string | undefined;
|
|
1075
|
+
unique?: boolean | undefined;
|
|
1076
|
+
deprecated?: boolean | undefined;
|
|
1077
|
+
collection?: string | undefined;
|
|
1078
|
+
default?: string | import("drizzle-orm").SQL<any> | undefined;
|
|
1079
|
+
multiline?: boolean | undefined;
|
|
1080
|
+
enum?: [string, ...string[]] | undefined;
|
|
1081
|
+
} & ({
|
|
1082
|
+
optional?: boolean | undefined;
|
|
1083
|
+
primaryKey?: false | undefined;
|
|
1084
|
+
} | {
|
|
1085
|
+
primaryKey: true;
|
|
1086
|
+
optional?: false | undefined;
|
|
1087
|
+
})) & {
|
|
1088
|
+
references?: () => {
|
|
1089
|
+
type: "text";
|
|
1090
|
+
schema: ({
|
|
1091
|
+
name?: string | undefined;
|
|
1092
|
+
label?: string | undefined;
|
|
1093
|
+
unique?: boolean | undefined;
|
|
1094
|
+
deprecated?: boolean | undefined;
|
|
1095
|
+
collection?: string | undefined;
|
|
1096
|
+
default?: string | import("drizzle-orm").SQL<any> | undefined;
|
|
1097
|
+
multiline?: boolean | undefined;
|
|
1098
|
+
enum?: [string, ...string[]] | undefined;
|
|
1099
|
+
} & ({
|
|
1100
|
+
optional?: boolean | undefined;
|
|
1101
|
+
primaryKey?: false | undefined;
|
|
1102
|
+
} | {
|
|
1103
|
+
primaryKey: true;
|
|
1104
|
+
optional?: false | undefined;
|
|
1105
|
+
})) & {
|
|
1106
|
+
references?: () => /*elided*/ any;
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
expiresAt: {
|
|
1112
|
+
type: "date";
|
|
1113
|
+
schema: {
|
|
1114
|
+
name?: string | undefined;
|
|
1115
|
+
label?: string | undefined;
|
|
1116
|
+
optional?: boolean | undefined;
|
|
1117
|
+
unique?: boolean | undefined;
|
|
1118
|
+
deprecated?: boolean | undefined;
|
|
1119
|
+
collection?: string | undefined;
|
|
1120
|
+
default?: Date | import("drizzle-orm").SQL<any> | undefined;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
}>;
|
|
1124
|
+
export declare const tsPluginData: import("@astrojs/db/runtime").Table<"StudioCMSPluginData", {
|
|
1125
|
+
id: {
|
|
1126
|
+
type: "text";
|
|
1127
|
+
schema: {
|
|
1128
|
+
readonly primaryKey: true;
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
data: {
|
|
1132
|
+
type: "json";
|
|
1133
|
+
schema: {
|
|
1134
|
+
name?: string | undefined;
|
|
1135
|
+
label?: string | undefined;
|
|
1136
|
+
optional?: boolean | undefined;
|
|
1137
|
+
unique?: boolean | undefined;
|
|
1138
|
+
deprecated?: boolean | undefined;
|
|
1139
|
+
collection?: string | undefined;
|
|
1140
|
+
default?: unknown;
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
}>;
|
|
1144
|
+
export declare const tsDynamicConfigSettings: import("@astrojs/db/runtime").Table<"StudioCMSDynamicConfigSettings", {
|
|
1145
|
+
id: {
|
|
1146
|
+
type: "text";
|
|
1147
|
+
schema: {
|
|
1148
|
+
readonly primaryKey: true;
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
data: {
|
|
1152
|
+
type: "json";
|
|
1153
|
+
schema: {
|
|
1154
|
+
name?: string | undefined;
|
|
1155
|
+
label?: string | undefined;
|
|
1156
|
+
optional?: boolean | undefined;
|
|
1157
|
+
unique?: boolean | undefined;
|
|
1158
|
+
deprecated?: boolean | undefined;
|
|
1159
|
+
collection?: string | undefined;
|
|
1160
|
+
default?: unknown;
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
}>;
|
|
1164
|
+
/**
|
|
1165
|
+
* @deprecated
|
|
1166
|
+
*/
|
|
1045
1167
|
export declare const tsSiteConfig: import("@astrojs/db/runtime").Table<"StudioCMSSiteConfig", {
|
|
1046
1168
|
id: {
|
|
1047
1169
|
type: "number";
|
|
@@ -1186,6 +1308,9 @@ export declare const tsSiteConfig: import("@astrojs/db/runtime").Table<"StudioCM
|
|
|
1186
1308
|
};
|
|
1187
1309
|
};
|
|
1188
1310
|
}>;
|
|
1311
|
+
/**
|
|
1312
|
+
* @deprecated
|
|
1313
|
+
*/
|
|
1189
1314
|
export declare const tsMailerConfig: import("@astrojs/db/runtime").Table<"StudioCMSMailerConfig", {
|
|
1190
1315
|
id: {
|
|
1191
1316
|
type: "text";
|
|
@@ -1357,6 +1482,9 @@ export declare const tsMailerConfig: import("@astrojs/db/runtime").Table<"Studio
|
|
|
1357
1482
|
};
|
|
1358
1483
|
};
|
|
1359
1484
|
}>;
|
|
1485
|
+
/**
|
|
1486
|
+
* @deprecated
|
|
1487
|
+
*/
|
|
1360
1488
|
export declare const tsNotificationSettings: import("@astrojs/db/runtime").Table<"StudioCMSNotificationSettings", {
|
|
1361
1489
|
id: {
|
|
1362
1490
|
type: "text";
|
|
@@ -1389,115 +1517,3 @@ export declare const tsNotificationSettings: import("@astrojs/db/runtime").Table
|
|
|
1389
1517
|
};
|
|
1390
1518
|
};
|
|
1391
1519
|
}>;
|
|
1392
|
-
export declare const tsEmailVerificationTokens: import("@astrojs/db/runtime").Table<"StudioCMSEmailVerificationTokens", {
|
|
1393
|
-
id: {
|
|
1394
|
-
type: "text";
|
|
1395
|
-
schema: {
|
|
1396
|
-
readonly primaryKey: true;
|
|
1397
|
-
};
|
|
1398
|
-
};
|
|
1399
|
-
userId: {
|
|
1400
|
-
type: "text";
|
|
1401
|
-
schema: {
|
|
1402
|
-
readonly references: () => {
|
|
1403
|
-
type: "text";
|
|
1404
|
-
schema: {
|
|
1405
|
-
readonly primaryKey: true;
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
token: {
|
|
1411
|
-
type: "text";
|
|
1412
|
-
schema: ({
|
|
1413
|
-
name?: string | undefined;
|
|
1414
|
-
label?: string | undefined;
|
|
1415
|
-
unique?: boolean | undefined;
|
|
1416
|
-
deprecated?: boolean | undefined;
|
|
1417
|
-
collection?: string | undefined;
|
|
1418
|
-
default?: string | import("drizzle-orm").SQL<any> | undefined;
|
|
1419
|
-
multiline?: boolean | undefined;
|
|
1420
|
-
enum?: [string, ...string[]] | undefined;
|
|
1421
|
-
} & ({
|
|
1422
|
-
optional?: boolean | undefined;
|
|
1423
|
-
primaryKey?: false | undefined;
|
|
1424
|
-
} | {
|
|
1425
|
-
primaryKey: true;
|
|
1426
|
-
optional?: false | undefined;
|
|
1427
|
-
})) & {
|
|
1428
|
-
references?: () => {
|
|
1429
|
-
type: "text";
|
|
1430
|
-
schema: ({
|
|
1431
|
-
name?: string | undefined;
|
|
1432
|
-
label?: string | undefined;
|
|
1433
|
-
unique?: boolean | undefined;
|
|
1434
|
-
deprecated?: boolean | undefined;
|
|
1435
|
-
collection?: string | undefined;
|
|
1436
|
-
default?: string | import("drizzle-orm").SQL<any> | undefined;
|
|
1437
|
-
multiline?: boolean | undefined;
|
|
1438
|
-
enum?: [string, ...string[]] | undefined;
|
|
1439
|
-
} & ({
|
|
1440
|
-
optional?: boolean | undefined;
|
|
1441
|
-
primaryKey?: false | undefined;
|
|
1442
|
-
} | {
|
|
1443
|
-
primaryKey: true;
|
|
1444
|
-
optional?: false | undefined;
|
|
1445
|
-
})) & {
|
|
1446
|
-
references?: () => /*elided*/ any;
|
|
1447
|
-
};
|
|
1448
|
-
};
|
|
1449
|
-
};
|
|
1450
|
-
};
|
|
1451
|
-
expiresAt: {
|
|
1452
|
-
type: "date";
|
|
1453
|
-
schema: {
|
|
1454
|
-
name?: string | undefined;
|
|
1455
|
-
label?: string | undefined;
|
|
1456
|
-
optional?: boolean | undefined;
|
|
1457
|
-
unique?: boolean | undefined;
|
|
1458
|
-
deprecated?: boolean | undefined;
|
|
1459
|
-
collection?: string | undefined;
|
|
1460
|
-
default?: Date | import("drizzle-orm").SQL<any> | undefined;
|
|
1461
|
-
};
|
|
1462
|
-
};
|
|
1463
|
-
}>;
|
|
1464
|
-
export declare const tsPluginData: import("@astrojs/db/runtime").Table<"StudioCMSPluginData", {
|
|
1465
|
-
id: {
|
|
1466
|
-
type: "text";
|
|
1467
|
-
schema: {
|
|
1468
|
-
readonly primaryKey: true;
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
data: {
|
|
1472
|
-
type: "json";
|
|
1473
|
-
schema: {
|
|
1474
|
-
name?: string | undefined;
|
|
1475
|
-
label?: string | undefined;
|
|
1476
|
-
optional?: boolean | undefined;
|
|
1477
|
-
unique?: boolean | undefined;
|
|
1478
|
-
deprecated?: boolean | undefined;
|
|
1479
|
-
collection?: string | undefined;
|
|
1480
|
-
default?: unknown;
|
|
1481
|
-
};
|
|
1482
|
-
};
|
|
1483
|
-
}>;
|
|
1484
|
-
export declare const tsDynamicConfigSettings: import("@astrojs/db/runtime").Table<"StudioCMSDynamicConfigSettings", {
|
|
1485
|
-
id: {
|
|
1486
|
-
type: "text";
|
|
1487
|
-
schema: {
|
|
1488
|
-
readonly primaryKey: true;
|
|
1489
|
-
};
|
|
1490
|
-
};
|
|
1491
|
-
data: {
|
|
1492
|
-
type: "json";
|
|
1493
|
-
schema: {
|
|
1494
|
-
name?: string | undefined;
|
|
1495
|
-
label?: string | undefined;
|
|
1496
|
-
optional?: boolean | undefined;
|
|
1497
|
-
unique?: boolean | undefined;
|
|
1498
|
-
deprecated?: boolean | undefined;
|
|
1499
|
-
collection?: string | undefined;
|
|
1500
|
-
default?: unknown;
|
|
1501
|
-
};
|
|
1502
|
-
};
|
|
1503
|
-
}>;
|
package/dist/db/config.js
CHANGED
|
@@ -83,7 +83,8 @@ const StudioCMSPageData = defineTable({
|
|
|
83
83
|
showAuthor: column.boolean({ default: false, optional: true }),
|
|
84
84
|
showContributors: column.boolean({ default: false, optional: true }),
|
|
85
85
|
parentFolder: column.text({ optional: true }),
|
|
86
|
-
draft: column.boolean({ optional: true })
|
|
86
|
+
draft: column.boolean({ optional: true }),
|
|
87
|
+
augments: column.json({ default: [], optional: true })
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
90
|
const StudioCMSDiffTracking = defineTable({
|
|
@@ -124,7 +125,28 @@ const StudioCMSPageContent = defineTable({
|
|
|
124
125
|
content: column.text({ multiline: true, optional: true })
|
|
125
126
|
}
|
|
126
127
|
});
|
|
128
|
+
const StudioCMSEmailVerificationTokens = defineTable({
|
|
129
|
+
columns: {
|
|
130
|
+
id: column.text({ primaryKey: true }),
|
|
131
|
+
userId: column.text({ references: () => StudioCMSUsers.columns.id }),
|
|
132
|
+
token: column.text(),
|
|
133
|
+
expiresAt: column.date()
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
const StudioCMSPluginData = defineTable({
|
|
137
|
+
columns: {
|
|
138
|
+
id: column.text({ primaryKey: true }),
|
|
139
|
+
data: column.json()
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
const StudioCMSDynamicConfigSettings = defineTable({
|
|
143
|
+
columns: {
|
|
144
|
+
id: column.text({ primaryKey: true }),
|
|
145
|
+
data: column.json()
|
|
146
|
+
}
|
|
147
|
+
});
|
|
127
148
|
const StudioCMSSiteConfig = defineTable({
|
|
149
|
+
deprecated: true,
|
|
128
150
|
columns: {
|
|
129
151
|
id: column.number({ primaryKey: true }),
|
|
130
152
|
title: column.text(),
|
|
@@ -141,6 +163,7 @@ const StudioCMSSiteConfig = defineTable({
|
|
|
141
163
|
}
|
|
142
164
|
});
|
|
143
165
|
const StudioCMSMailerConfig = defineTable({
|
|
166
|
+
deprecated: true,
|
|
144
167
|
columns: {
|
|
145
168
|
id: column.text({ primaryKey: true }),
|
|
146
169
|
host: column.text(),
|
|
@@ -155,6 +178,7 @@ const StudioCMSMailerConfig = defineTable({
|
|
|
155
178
|
}
|
|
156
179
|
});
|
|
157
180
|
const StudioCMSNotificationSettings = defineTable({
|
|
181
|
+
deprecated: true,
|
|
158
182
|
columns: {
|
|
159
183
|
id: column.text({ primaryKey: true }),
|
|
160
184
|
emailVerification: column.boolean({ default: false }),
|
|
@@ -163,26 +187,6 @@ const StudioCMSNotificationSettings = defineTable({
|
|
|
163
187
|
oAuthBypassVerification: column.boolean({ default: false })
|
|
164
188
|
}
|
|
165
189
|
});
|
|
166
|
-
const StudioCMSEmailVerificationTokens = defineTable({
|
|
167
|
-
columns: {
|
|
168
|
-
id: column.text({ primaryKey: true }),
|
|
169
|
-
userId: column.text({ references: () => StudioCMSUsers.columns.id }),
|
|
170
|
-
token: column.text(),
|
|
171
|
-
expiresAt: column.date()
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
const StudioCMSPluginData = defineTable({
|
|
175
|
-
columns: {
|
|
176
|
-
id: column.text({ primaryKey: true }),
|
|
177
|
-
data: column.json()
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
const StudioCMSDynamicConfigSettings = defineTable({
|
|
181
|
-
columns: {
|
|
182
|
-
id: column.text({ primaryKey: true }),
|
|
183
|
-
data: column.json()
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
190
|
var config_default = defineDb({
|
|
187
191
|
tables: {
|
|
188
192
|
StudioCMSPageContent,
|
|
@@ -191,18 +195,19 @@ var config_default = defineDb({
|
|
|
191
195
|
StudioCMSPageDataTags,
|
|
192
196
|
StudioCMSPermissions,
|
|
193
197
|
StudioCMSSessionTable,
|
|
194
|
-
StudioCMSSiteConfig,
|
|
195
198
|
StudioCMSUsers,
|
|
196
199
|
StudioCMSOAuthAccounts,
|
|
197
200
|
StudioCMSDiffTracking,
|
|
198
201
|
StudioCMSPageFolderStructure,
|
|
199
202
|
StudioCMSUserResetTokens,
|
|
200
203
|
StudioCMSAPIKeys,
|
|
201
|
-
StudioCMSMailerConfig,
|
|
202
|
-
StudioCMSNotificationSettings,
|
|
203
204
|
StudioCMSEmailVerificationTokens,
|
|
204
205
|
StudioCMSPluginData,
|
|
205
|
-
StudioCMSDynamicConfigSettings
|
|
206
|
+
StudioCMSDynamicConfigSettings,
|
|
207
|
+
// Deprecated Tables
|
|
208
|
+
StudioCMSSiteConfig,
|
|
209
|
+
StudioCMSMailerConfig,
|
|
210
|
+
StudioCMSNotificationSettings
|
|
206
211
|
}
|
|
207
212
|
});
|
|
208
213
|
const tsUsers = asDrizzleTable("StudioCMSUsers", StudioCMSUsers);
|
|
@@ -226,12 +231,6 @@ const tsPageDataCategories = asDrizzleTable(
|
|
|
226
231
|
StudioCMSPageDataCategories
|
|
227
232
|
);
|
|
228
233
|
const tsPageContent = asDrizzleTable("StudioCMSPageContent", StudioCMSPageContent);
|
|
229
|
-
const tsSiteConfig = asDrizzleTable("StudioCMSSiteConfig", StudioCMSSiteConfig);
|
|
230
|
-
const tsMailerConfig = asDrizzleTable("StudioCMSMailerConfig", StudioCMSMailerConfig);
|
|
231
|
-
const tsNotificationSettings = asDrizzleTable(
|
|
232
|
-
"StudioCMSNotificationSettings",
|
|
233
|
-
StudioCMSNotificationSettings
|
|
234
|
-
);
|
|
235
234
|
const tsEmailVerificationTokens = asDrizzleTable(
|
|
236
235
|
"StudioCMSEmailVerificationTokens",
|
|
237
236
|
StudioCMSEmailVerificationTokens
|
|
@@ -241,6 +240,12 @@ const tsDynamicConfigSettings = asDrizzleTable(
|
|
|
241
240
|
"StudioCMSDynamicConfigSettings",
|
|
242
241
|
StudioCMSDynamicConfigSettings
|
|
243
242
|
);
|
|
243
|
+
const tsSiteConfig = asDrizzleTable("StudioCMSSiteConfig", StudioCMSSiteConfig);
|
|
244
|
+
const tsMailerConfig = asDrizzleTable("StudioCMSMailerConfig", StudioCMSMailerConfig);
|
|
245
|
+
const tsNotificationSettings = asDrizzleTable(
|
|
246
|
+
"StudioCMSNotificationSettings",
|
|
247
|
+
StudioCMSNotificationSettings
|
|
248
|
+
);
|
|
244
249
|
export {
|
|
245
250
|
config_default as default,
|
|
246
251
|
tsAPIKeys,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { useTranslations } from 'studiocms:i18n';
|
|
3
3
|
import { Divider } from 'studiocms:ui/components/divider';
|
|
4
|
+
import { providerData, showOAuth } from '../shared/oAuthButtonProviders.js';
|
|
4
5
|
import OAuthButton from './OAuthButton.astro';
|
|
5
|
-
import { providerData, showOAuth } from './oAuthButtonProviders.js';
|
|
6
6
|
|
|
7
7
|
const lang = Astro.locals.StudioCMS.defaultLang;
|
|
8
8
|
const t = useTranslations(lang, '@studiocms/auth:oauth-stack');
|
|
@@ -5,7 +5,7 @@ import dashboardGridItems from 'studiocms:components/dashboard-grid-items';
|
|
|
5
5
|
import type { UiLanguageKeys } from 'studiocms:i18n';
|
|
6
6
|
import type { SiteConfigCacheObject } from 'studiocms:sdk/types';
|
|
7
7
|
import { Center } from 'studiocms:ui/components/center';
|
|
8
|
-
import { Effect } from '
|
|
8
|
+
import { Effect } from '../../../effect.js';
|
|
9
9
|
import DashboardGridItem from './DashboardGridItem.astro';
|
|
10
10
|
|
|
11
11
|
interface Props {
|