studiocms 0.1.0-beta.24 → 0.1.0-beta.26
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 +136 -0
- package/dist/cli/add/index.d.ts +3 -4
- package/dist/cli/add/index.js +6 -7
- package/dist/cli/crypto/genJWT/index.d.ts +5 -5
- package/dist/cli/crypto/genJWT/index.js +14 -15
- package/dist/cli/crypto/index.d.ts +2 -2
- package/dist/cli/crypto/index.js +4 -4
- package/dist/cli/getTurso/index.d.ts +2 -2
- package/dist/cli/getTurso/index.js +3 -4
- package/dist/cli/index.js +11 -10
- package/dist/cli/init/index.d.ts +4 -4
- package/dist/cli/init/index.js +11 -12
- package/dist/cli/users/index.d.ts +4 -4
- package/dist/cli/users/index.js +11 -12
- package/dist/cli/users/steps/libsqlCreateUsers.js +3 -3
- package/dist/cli/users/steps/libsqlModifyUsers.js +3 -3
- package/dist/{layouts → components}/auth/FallbackCanvas.astro +1 -1
- package/dist/components/auth/OAuthButton.astro +1 -1
- package/dist/components/auth/OAuthButtonStack.astro +2 -2
- package/dist/components/auth/StaticAuthCheck.astro +3 -3
- package/dist/{scripts → components/auth/component-scripts}/formListener.d.ts +3 -0
- package/dist/{scripts → components/auth/component-scripts}/formListener.js +1 -1
- package/dist/components/dashboard/BaseHead.astro +7 -18
- package/dist/components/dashboard/DashboardGrid.astro +4 -4
- package/dist/components/dashboard/DashboardGridItem.astro +3 -2
- package/dist/components/dashboard/DashboardPageHeader.astro +11 -6
- package/dist/components/dashboard/DoubleSidebar.astro +3 -3
- package/dist/components/dashboard/Footer.astro +3 -7
- package/dist/components/dashboard/LoginChecker.astro +17 -17
- package/dist/components/dashboard/MainSidebarContent.astro +27 -18
- package/dist/components/dashboard/PageHeader.astro +3 -2
- package/dist/components/dashboard/SidebarLink.astro +148 -31
- package/dist/components/dashboard/SidebarPluginLink.astro +4 -4
- package/dist/components/dashboard/SingleSidebar.astro +3 -3
- package/dist/components/dashboard/UserName.astro +2 -2
- package/dist/components/dashboard/component-scripts/dateTimeListener.js +4 -9
- package/dist/components/dashboard/component-scripts/dateWithTimeAndZone.d.ts +1 -0
- package/dist/components/dashboard/component-scripts/dateWithTimeAndZone.js +10 -7
- package/dist/components/dashboard/configuration/ConfigForm.astro +53 -152
- package/dist/components/dashboard/configuration/LoginPreview.astro +275 -0
- package/dist/components/dashboard/content-mgmt/CreateFolder.astro +6 -5
- package/dist/components/dashboard/content-mgmt/CreatePage.astro +23 -47
- package/dist/components/dashboard/content-mgmt/EditFolder.astro +5 -4
- package/dist/components/dashboard/content-mgmt/EditPage.astro +36 -85
- package/dist/components/dashboard/content-mgmt/InnerSidebarElement.astro +30 -22
- package/dist/components/dashboard/content-mgmt/PageEditorSwapper.astro +107 -0
- package/dist/components/dashboard/content-mgmt/PageHeader.astro +26 -18
- package/dist/components/dashboard/content-mgmt/PageTypeHandler.astro +107 -0
- package/dist/components/dashboard/content-mgmt/PluginFields.astro +6 -1
- package/dist/components/dashboard/content-mgmt/TreeRenderer.astro +8 -8
- package/dist/components/dashboard/content-mgmt/TreeSidebarFolder.astro +116 -24
- package/dist/components/dashboard/content-mgmt/TreeSidebarLink.astro +116 -24
- package/dist/components/dashboard/content-mgmt/runtime.js +1 -1
- package/dist/components/dashboard/plugins/SettingsRenderer.astro +6 -1
- package/dist/components/dashboard/profile/APITokens.astro +18 -12
- package/dist/components/dashboard/profile/BasicInfo.astro +17 -13
- package/dist/components/dashboard/profile/Notifications.astro +20 -8
- package/dist/components/dashboard/profile/SocialSignin.astro +11 -8
- package/dist/components/dashboard/profile/UpdatePassword.astro +10 -7
- package/dist/components/dashboard/profile/oAuthButtonProviders.d.ts +1 -8
- package/dist/components/dashboard/profile/oAuthButtonProviders.js +1 -15
- package/dist/components/dashboard/shared.d.ts +1 -1
- package/dist/components/dashboard/sidebar/UserAccount.astro +5 -6
- package/dist/components/dashboard/sidebar/VersionCheck.astro +7 -7
- package/dist/components/dashboard/sidebar/VersionCheckChangelog.astro +32 -8
- package/dist/components/dashboard/sidebar-modals/UserManagementModals.astro +8 -3
- package/dist/components/dashboard/sidebar-modals/VersionModal.astro +43 -24
- package/dist/components/dashboard/sidebarConfig.d.ts +2 -2
- package/dist/components/dashboard/sidebarConfig.js +7 -7
- package/dist/components/dashboard/user-mgmt/InnerSidebarElement.astro +20 -13
- package/dist/components/dashboard/user-mgmt/RankCheck.astro +10 -10
- package/dist/components/dashboard/user-mgmt/SocialSignin.astro +9 -10
- package/dist/components/dashboard/user-mgmt/UserListItem.astro +86 -30
- package/dist/components/default-grid-items/Recently-created-pages.astro +12 -10
- package/dist/components/default-grid-items/Recently-signed-up.astro +9 -9
- package/dist/components/default-grid-items/Recently-updated-pages.astro +12 -10
- package/dist/components/default-grid-items/Totals.astro +11 -10
- package/dist/{routes/firstTimeSetupRoutes/components → components/first-time-setup}/PageHeader.astro +4 -3
- package/dist/components/shared/Code.astro +72 -0
- package/dist/components/shared/SSRUser.astro +200 -0
- package/dist/components/shared/head/Favicons.astro +6 -0
- package/dist/components/shared/head/Global.astro +4 -0
- package/dist/components/shared/head/TitleTags.astro +14 -0
- package/dist/config.d.ts +1 -4
- package/dist/consts.d.ts +48 -3
- package/dist/consts.js +65 -10
- package/dist/db/config.d.ts +1499 -0
- package/dist/db/config.js +262 -4
- package/dist/effect.d.ts +2 -3
- package/dist/effect.js +2 -17
- package/dist/{styles/dashboard-code.css → fonts/syntax-font.css} +2 -20
- package/dist/{utils → handlers}/astroConfigCheck.js +1 -1
- package/dist/handlers/changelog.d.ts +1 -0
- package/dist/handlers/changelog.js +54 -0
- package/dist/handlers/index.d.ts +4 -0
- package/dist/handlers/index.js +10 -0
- package/dist/{pluginHandler.d.ts → handlers/pluginHandler.d.ts} +4 -3
- package/dist/{pluginHandler.js → handlers/pluginHandler.js} +264 -127
- package/dist/{routeHandler.d.ts → handlers/routeHandler.d.ts} +1 -1
- package/dist/{routeHandler.js → handlers/routeHandler.js} +7 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +184 -229
- package/dist/{lib → integrations}/dynamic-sitemap/index.js +1 -1
- package/dist/integrations/node-namespace.d.ts +15 -0
- package/dist/integrations/node-namespace.js +31 -0
- package/dist/integrations/plugins.d.ts +4 -0
- package/dist/integrations/plugins.js +7 -0
- package/dist/{lib → integrations}/robots/utils.d.ts +0 -8
- package/dist/{lib → integrations}/robots/utils.js +1 -5
- package/dist/{lib → integrations}/webVitals/checkForWebVitalsPlugin.js +3 -3
- package/{src/lib → dist/integrations}/webVitals/dashboard-grid-items/CoreVitals.astro +1 -1
- package/{src/lib → dist/integrations}/webVitals/dashboard-grid-items/MetricCard.astro +3 -2
- package/dist/{lib → integrations}/webVitals/dashboard-grid-items/SummaryCard.astro +2 -2
- package/dist/{lib → integrations}/webVitals/dashboard-grid-items/metric.css +17 -17
- package/dist/{lib → integrations}/webVitals/dashboard-grid-items/shared.d.ts +4 -4
- package/dist/{lib → integrations}/webVitals/dashboard-grid-items/shared.js +3 -3
- package/{src/lib → dist/integrations}/webVitals/pages/analytics/body.astro +10 -9
- package/dist/{lib → integrations}/webVitals/utils/webVitalsUtils.d.ts +9 -9
- package/dist/layouts/AuthLayout.astro +63 -0
- package/dist/layouts/{dashboard/Layout.astro → DashboardLayout.astro} +22 -10
- package/{src/routes/firstTimeSetupRoutes/components/Layout.astro → dist/layouts/FirstTimeSetupLayout.astro} +15 -3
- package/dist/middleware/index.d.ts +9 -0
- package/dist/middleware/index.js +67 -89
- package/dist/middleware/utils.d.ts +59 -36
- package/dist/middleware/utils.js +59 -40
- package/dist/routes/api/auth/[provider]/callback.d.ts +1 -4
- package/dist/routes/api/auth/[provider]/callback.js +29 -11
- package/dist/routes/api/auth/[provider]/index.d.ts +1 -4
- package/dist/routes/api/auth/[provider]/index.js +29 -11
- package/dist/routes/api/auth/forgot-password.d.ts +1 -4
- package/dist/routes/api/auth/forgot-password.js +85 -66
- package/dist/routes/api/auth/login.d.ts +1 -4
- package/dist/routes/api/auth/login.js +63 -47
- package/dist/routes/api/auth/logout.d.ts +6 -5
- package/dist/routes/api/auth/logout.js +38 -24
- package/dist/routes/api/auth/register.d.ts +1 -4
- package/dist/routes/api/auth/register.js +74 -63
- package/dist/routes/api/auth/shared.d.ts +4 -4
- package/dist/routes/api/auth/shared.js +19 -26
- package/dist/routes/api/dashboard/api-tokens.d.ts +1 -5
- package/dist/routes/api/dashboard/api-tokens.js +70 -64
- package/dist/routes/api/dashboard/config.d.ts +1 -4
- package/dist/routes/api/dashboard/config.js +51 -33
- package/dist/routes/api/dashboard/content/diff.d.ts +1 -4
- package/dist/routes/api/dashboard/content/diff.js +50 -29
- package/dist/routes/api/dashboard/content/folder.d.ts +1 -6
- package/dist/routes/api/dashboard/content/folder.js +106 -86
- package/dist/routes/api/dashboard/content/page.d.ts +1 -5
- package/dist/routes/api/dashboard/content/page.js +207 -202
- package/dist/routes/api/dashboard/create-reset-link.d.ts +1 -4
- package/dist/routes/api/dashboard/create-reset-link.js +53 -40
- package/dist/routes/api/dashboard/create-user-invite.d.ts +1 -4
- package/dist/routes/api/dashboard/create-user-invite.js +128 -106
- package/dist/routes/api/dashboard/create-user.d.ts +1 -4
- package/dist/routes/api/dashboard/create-user.js +132 -68
- package/dist/routes/api/dashboard/email-notification-settings-site.d.ts +1 -4
- package/dist/routes/api/dashboard/email-notification-settings-site.js +47 -21
- package/dist/routes/api/dashboard/partials/LiveRender.astro +21 -16
- package/dist/routes/api/dashboard/plugins/[plugin].d.ts +1 -4
- package/dist/routes/api/dashboard/plugins/[plugin].js +57 -33
- package/dist/routes/api/dashboard/profile.d.ts +1 -4
- package/dist/routes/api/dashboard/profile.js +133 -95
- package/dist/routes/api/dashboard/resend-verify-email.d.ts +1 -4
- package/dist/routes/api/dashboard/resend-verify-email.js +55 -29
- package/dist/routes/api/dashboard/reset-password.d.ts +1 -4
- package/dist/routes/api/dashboard/reset-password.js +76 -50
- package/dist/routes/api/dashboard/search-list.d.ts +1 -4
- package/dist/routes/api/dashboard/search-list.js +45 -37
- package/dist/routes/api/dashboard/update-user-notifications.d.ts +1 -4
- package/dist/routes/api/dashboard/update-user-notifications.js +48 -36
- package/dist/routes/api/dashboard/users.d.ts +1 -5
- package/dist/routes/api/dashboard/users.js +150 -96
- package/dist/routes/api/dashboard/verify-email.d.ts +1 -4
- package/dist/routes/api/dashboard/verify-email.js +52 -33
- package/dist/routes/api/dashboard/verify-session.d.ts +2 -29
- package/dist/routes/api/dashboard/verify-session.js +85 -73
- package/dist/routes/api/mailer/config.d.ts +2 -6
- package/dist/routes/api/mailer/config.js +86 -72
- package/dist/routes/api/mailer/test-email.d.ts +1 -4
- package/dist/routes/api/mailer/test-email.js +56 -33
- package/dist/routes/api/render.astro +1 -1
- package/dist/routes/api/rest/utils/auth-token.d.ts +3 -3
- package/dist/routes/api/rest/utils/auth-token.js +1 -2
- package/dist/routes/api/rest/v1/folders/[id].d.ts +2 -7
- package/dist/routes/api/rest/v1/folders/[id].js +105 -94
- package/dist/routes/api/rest/v1/folders/index.d.ts +2 -6
- package/dist/routes/api/rest/v1/folders/index.js +82 -66
- package/dist/routes/api/rest/v1/pages/[id]/history/[diffid].d.ts +1 -4
- package/dist/routes/api/rest/v1/pages/[id]/history/[diffid].js +46 -34
- package/dist/routes/api/rest/v1/pages/[id]/history/index.d.ts +1 -4
- package/dist/routes/api/rest/v1/pages/[id]/history/index.js +44 -39
- package/dist/routes/api/rest/v1/pages/[id]/index.d.ts +1 -6
- package/dist/routes/api/rest/v1/pages/[id]/index.js +158 -151
- package/dist/routes/api/rest/v1/pages/index.d.ts +1 -5
- package/dist/routes/api/rest/v1/pages/index.js +112 -107
- package/dist/routes/api/rest/v1/public/folders/[id].d.ts +1 -4
- package/dist/routes/api/rest/v1/public/folders/[id].js +32 -23
- package/dist/routes/api/rest/v1/public/folders/index.d.ts +1 -4
- package/dist/routes/api/rest/v1/public/folders/index.js +43 -33
- package/dist/routes/api/rest/v1/public/pages/[id].d.ts +1 -4
- package/dist/routes/api/rest/v1/public/pages/[id].js +38 -26
- package/dist/routes/api/rest/v1/public/pages/index.d.ts +1 -4
- package/dist/routes/api/rest/v1/public/pages/index.js +47 -44
- package/dist/routes/api/rest/v1/settings/index.d.ts +1 -5
- package/dist/routes/api/rest/v1/settings/index.js +60 -54
- package/dist/routes/api/rest/v1/users/[id].d.ts +2 -7
- package/dist/routes/api/rest/v1/users/[id].js +257 -231
- package/dist/routes/api/rest/v1/users/index.d.ts +2 -6
- package/dist/routes/api/rest/v1/users/index.js +154 -136
- package/dist/routes/api/sdk/fallback-list-pages.json.d.ts +1 -4
- package/dist/routes/api/sdk/fallback-list-pages.json.js +26 -33
- package/dist/routes/api/sdk/full-changelog.json.d.ts +1 -4
- package/dist/routes/api/sdk/full-changelog.json.js +27 -26
- package/dist/routes/api/sdk/list-pages.d.ts +1 -4
- package/dist/routes/api/sdk/list-pages.js +36 -29
- package/dist/routes/api/sdk/update-latest-version-cache.d.ts +1 -4
- package/dist/routes/api/sdk/update-latest-version-cache.js +30 -28
- package/dist/routes/api/sdk/utils/changelog.d.ts +5 -21
- package/dist/routes/api/sdk/utils/changelog.js +25 -131
- package/dist/routes/auth/login.astro +68 -58
- package/dist/routes/auth/logout.astro +3 -3
- package/dist/routes/auth/signup.astro +9 -9
- package/dist/routes/dashboard/[...pluginPage].astro +4 -2
- package/dist/routes/dashboard/configuration.astro +7 -4
- package/dist/routes/dashboard/content-management/createfolder.astro +5 -3
- package/dist/routes/dashboard/content-management/createpage.astro +5 -3
- package/dist/routes/dashboard/content-management/diff.astro +19 -15
- package/dist/routes/dashboard/content-management/editfolder.astro +4 -2
- package/dist/routes/dashboard/content-management/editpage.astro +4 -2
- package/dist/routes/dashboard/content-management/index.astro +5 -3
- package/dist/routes/dashboard/index.astro +4 -2
- package/dist/routes/dashboard/password-reset.astro +13 -8
- package/dist/routes/dashboard/plugins/[plugin].astro +10 -7
- package/dist/routes/dashboard/profile.astro +9 -4
- package/dist/routes/dashboard/smtp-configuration.astro +30 -18
- package/dist/routes/dashboard/unverified-email.astro +9 -9
- package/dist/routes/dashboard/user-management/edit.astro +53 -39
- package/dist/routes/dashboard/user-management/index.astro +6 -4
- package/dist/routes/error-pages/404.astro +6 -4
- package/dist/routes/firstTimeSetupRoutes/1-start.astro +18 -110
- package/dist/routes/firstTimeSetupRoutes/2-next.astro +60 -44
- package/dist/routes/firstTimeSetupRoutes/3-done.astro +9 -11
- package/dist/routes/firstTimeSetupRoutes/api/step-1.d.ts +1 -4
- package/dist/routes/firstTimeSetupRoutes/api/step-1.js +98 -87
- package/dist/routes/firstTimeSetupRoutes/api/step-2.d.ts +1 -4
- package/dist/routes/firstTimeSetupRoutes/api/step-2.js +95 -87
- package/dist/routes/firstTimeSetupRoutes/index.astro +6 -0
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.js +2 -3
- package/dist/schemas/config/index.js +1 -1
- package/dist/schemas/plugins/index.d.ts +57 -57
- package/dist/schemas/plugins/shared.d.ts +196 -77
- package/dist/schemas/plugins/shared.js +10 -16
- package/dist/styles/404.css +1 -1
- package/dist/styles/{authlayout.css → auth-layout.css} +1 -1
- package/dist/styles/code-component.css +56 -0
- package/dist/styles/dashboard-base.css +31 -62
- package/dist/styles/dashboard-diff.css +32 -32
- package/dist/theme.d.ts +1 -0
- package/dist/types.d.ts +3 -23
- package/dist/{lib → utils}/effects/index.d.ts +0 -1
- package/dist/{lib → utils}/effects/index.js +0 -2
- package/dist/{lib → utils}/effects/logger.d.ts +2 -4
- package/dist/{lib → utils}/effects/logger.js +2 -4
- package/dist/utils/effects/smtp.d.ts +40 -0
- package/dist/utils/effects/smtp.js +75 -0
- package/dist/utils/safeString.d.ts +1 -1
- package/dist/utils/safeString.js +1 -3
- package/dist/utils/stripIconify.d.ts +13 -0
- package/dist/utils/stripIconify.js +11 -0
- package/dist/utils/tinyMDParser.d.ts +6 -0
- package/dist/utils/tinyMDParser.js +5 -5
- package/dist/virtual.d.ts +194 -236
- package/dist/virtuals/auth/core.d.ts +91 -0
- package/dist/virtuals/auth/core.js +45 -0
- package/dist/{lib → virtuals}/auth/index.d.ts +1 -4
- package/dist/virtuals/auth/index.js +9 -0
- package/dist/virtuals/auth/scripts/three.d.ts +108 -0
- package/dist/virtuals/auth/scripts/three.js +484 -0
- package/dist/virtuals/auth/scripts/utils/fitModelToViewport.d.ts +10 -0
- package/dist/virtuals/auth/scripts/utils/fitModelToViewport.js +26 -0
- package/dist/{utils/validImages.d.ts → virtuals/auth/validImages/index.d.ts} +1 -1
- package/dist/virtuals/auth/validImages/index.js +39 -0
- package/dist/virtuals/auth/validImages/studiocms-blobs-dark.webp +0 -0
- package/dist/virtuals/auth/validImages/studiocms-blobs-light.webp +0 -0
- package/dist/virtuals/auth/validImages/studiocms-blocks-dark.webp +0 -0
- package/dist/virtuals/auth/validImages/studiocms-blocks-light.webp +0 -0
- package/dist/virtuals/auth/validImages/studiocms-curves-dark.webp +0 -0
- package/dist/virtuals/auth/validImages/studiocms-curves-light.webp +0 -0
- package/dist/{lib → virtuals}/auth/verify-email.d.ts +10 -10
- package/dist/{lib → virtuals}/auth/verify-email.js +19 -20
- package/dist/virtuals/components/Generator.astro +5 -0
- package/{src → dist/virtuals}/components/Renderer.astro +1 -1
- package/{src/lib → dist/virtuals}/i18n/LanguageSelector.astro +1 -1
- package/dist/{lib → virtuals}/i18n/client.d.ts +100 -4
- package/dist/{lib → virtuals}/i18n/client.js +11 -10
- package/dist/virtuals/i18n/config.d.ts +430 -0
- package/dist/virtuals/i18n/config.js +29 -0
- package/dist/virtuals/i18n/server.d.ts +116 -0
- package/dist/{lib/i18n/index.js → virtuals/i18n/server.js} +6 -19
- package/dist/{lib → virtuals}/i18n/translations/de.json +1 -1
- package/dist/virtuals/i18n/v-files.d.ts +30 -0
- package/dist/virtuals/i18n/v-files.js +46 -0
- package/dist/virtuals/lib/head.d.ts +1 -0
- package/dist/virtuals/lib/head.js +1 -0
- package/dist/{lib → virtuals/lib}/headDefaults.d.ts +1 -1
- package/dist/{lib → virtuals/lib}/headDefaults.js +1 -1
- package/dist/{lib → virtuals/lib}/makeAPIRoute.d.ts +1 -1
- package/dist/virtuals/lib/pathGenerators.d.ts +1 -0
- package/dist/virtuals/lib/pathGenerators.js +1 -0
- package/dist/{lib → virtuals/lib}/routeMap.d.ts +4 -0
- package/dist/{lib → virtuals/lib}/routeMap.js +5 -1
- package/dist/{lib → virtuals/lib}/urlGen.d.ts +2 -1
- package/dist/virtuals/lib/urlGen.js +6 -0
- package/dist/virtuals/mailer/index.d.ts +64 -0
- package/dist/{lib → virtuals}/mailer/index.js +7 -24
- package/dist/{lib → virtuals}/notifier/index.d.ts +6 -7
- package/dist/{lib → virtuals}/notifier/index.js +2 -4
- package/dist/virtuals/plugins/dashboard-pages.d.ts +71 -0
- package/dist/virtuals/scripts/user-quick-tools.d.ts +91 -0
- package/dist/{components → virtuals/scripts}/user-quick-tools.js +135 -53
- package/dist/{sdk → virtuals/sdk}/effect/collectors.d.ts +2 -2
- package/dist/{sdk → virtuals/sdk}/effect/collectors.js +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/db.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/db.js +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/foldertree.d.ts +2 -2
- package/dist/{sdk → virtuals/sdk}/effect/foldertree.js +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/generators.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/generators.js +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/getVersionFromNPM.d.ts +4 -5
- package/dist/virtuals/sdk/effect/getVersionFromNPM.js +24 -0
- package/dist/{sdk → virtuals/sdk}/effect/parsers.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/parsers.js +2 -2
- package/dist/{sdk → virtuals/sdk}/effect/pluginUtils.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/pluginUtils.js +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/users.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/effect/users.js +2 -2
- package/dist/{sdk → virtuals/sdk}/errors.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/errors.js +1 -1
- package/dist/{sdk → virtuals/sdk}/index.d.ts +5 -4
- package/dist/{sdk → virtuals/sdk}/index.js +3 -4
- package/dist/{sdk → virtuals/sdk}/modules/auth.d.ts +7 -6
- package/dist/{sdk → virtuals/sdk}/modules/auth.js +2 -2
- package/dist/{sdk → virtuals/sdk}/modules/clear.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/clear.js +1 -1
- package/dist/virtuals/sdk/modules/config.d.ts +272 -0
- package/dist/virtuals/sdk/modules/config.js +205 -0
- package/dist/{sdk → virtuals/sdk}/modules/delete.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/delete.js +2 -2
- package/dist/{sdk → virtuals/sdk}/modules/diffTracking.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/diffTracking.js +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/get.d.ts +14 -27
- package/dist/{sdk → virtuals/sdk}/modules/get.js +29 -42
- package/dist/{sdk → virtuals/sdk}/modules/init.d.ts +5 -19
- package/dist/{sdk → virtuals/sdk}/modules/init.js +8 -9
- package/dist/{sdk → virtuals/sdk}/modules/middlewares.d.ts +2 -2
- package/dist/{sdk → virtuals/sdk}/modules/middlewares.js +18 -12
- package/dist/{sdk → virtuals/sdk}/modules/notificationSettings.d.ts +6 -23
- package/dist/{sdk → virtuals/sdk}/modules/notificationSettings.js +8 -30
- package/dist/{sdk → virtuals/sdk}/modules/plugins.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/plugins.js +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/post.d.ts +7 -7
- package/dist/{sdk → virtuals/sdk}/modules/post.js +15 -10
- package/dist/{sdk → virtuals/sdk}/modules/resetTokenBucket.d.ts +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/resetTokenBucket.js +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/rest_api.d.ts +2 -2
- package/dist/{sdk → virtuals/sdk}/modules/rest_api.js +1 -1
- package/dist/{sdk → virtuals/sdk}/modules/update.d.ts +26 -26
- package/dist/{sdk → virtuals/sdk}/modules/update.js +29 -26
- package/dist/{sdk → virtuals/sdk}/sdkCore.d.ts +6 -4
- package/dist/{sdk → virtuals/sdk}/sdkCore.js +10 -5
- package/dist/virtuals/sdk/tables.d.ts +2 -0
- package/dist/virtuals/sdk/tables.js +5 -0
- package/dist/{sdk → virtuals/sdk}/types/index.d.ts +6 -5
- package/dist/{sdk → virtuals/sdk}/types/tableDefs.d.ts +5 -4
- package/dist/{sdk → virtuals/sdk}/types/tsAlias.d.ts +4 -0
- package/dist/{sdk → virtuals/sdk}/utils.d.ts +4 -3
- package/dist/{sdk → virtuals/sdk}/utils.js +1 -1
- package/dist/virtuals/stubs/config.stub.js +9 -0
- package/dist/virtuals/stubs/logger.stub.js +30 -0
- package/dist/virtuals/utils.d.ts +71 -0
- package/dist/virtuals/utils.js +43 -0
- package/package.json +40 -67
- package/src/cli/add/index.ts +6 -7
- package/src/cli/crypto/genJWT/index.ts +14 -15
- package/src/cli/crypto/index.ts +4 -4
- package/src/cli/getTurso/index.ts +3 -4
- package/src/cli/index.ts +11 -10
- package/src/cli/init/index.ts +11 -12
- package/src/cli/users/index.ts +11 -12
- package/src/cli/users/steps/libsqlCreateUsers.ts +4 -3
- package/src/cli/users/steps/libsqlModifyUsers.ts +4 -3
- package/src/{layouts → components}/auth/FallbackCanvas.astro +1 -1
- package/src/components/auth/OAuthButton.astro +1 -1
- package/src/components/auth/OAuthButtonStack.astro +2 -2
- package/src/components/auth/StaticAuthCheck.astro +3 -3
- package/src/{scripts → components/auth/component-scripts}/formListener.ts +5 -1
- package/src/components/dashboard/BaseHead.astro +7 -18
- package/src/components/dashboard/DashboardGrid.astro +4 -4
- package/src/components/dashboard/DashboardGridItem.astro +3 -2
- package/src/components/dashboard/DashboardPageHeader.astro +11 -6
- package/src/components/dashboard/DoubleSidebar.astro +3 -3
- package/src/components/dashboard/Footer.astro +3 -7
- package/src/components/dashboard/LoginChecker.astro +17 -17
- package/src/components/dashboard/MainSidebarContent.astro +27 -18
- package/src/components/dashboard/PageHeader.astro +3 -2
- package/src/components/dashboard/SidebarLink.astro +148 -31
- package/src/components/dashboard/SidebarPluginLink.astro +4 -4
- package/src/components/dashboard/SingleSidebar.astro +3 -3
- package/src/components/dashboard/UserName.astro +2 -2
- package/src/components/dashboard/component-scripts/dateTimeListener.ts +5 -9
- package/src/components/dashboard/component-scripts/dateWithTimeAndZone.ts +11 -8
- package/src/components/dashboard/configuration/ConfigForm.astro +53 -152
- package/src/components/dashboard/configuration/LoginPreview.astro +275 -0
- package/src/components/dashboard/content-mgmt/CreateFolder.astro +6 -5
- package/src/components/dashboard/content-mgmt/CreatePage.astro +23 -47
- package/src/components/dashboard/content-mgmt/EditFolder.astro +5 -4
- package/src/components/dashboard/content-mgmt/EditPage.astro +36 -85
- package/src/components/dashboard/content-mgmt/InnerSidebarElement.astro +30 -22
- package/src/components/dashboard/content-mgmt/PageEditorSwapper.astro +107 -0
- package/src/components/dashboard/content-mgmt/PageHeader.astro +26 -18
- package/src/components/dashboard/content-mgmt/PageTypeHandler.astro +107 -0
- package/src/components/dashboard/content-mgmt/PluginFields.astro +6 -1
- package/src/components/dashboard/content-mgmt/TreeRenderer.astro +8 -8
- package/src/components/dashboard/content-mgmt/TreeSidebarFolder.astro +116 -24
- package/src/components/dashboard/content-mgmt/TreeSidebarLink.astro +116 -24
- package/src/components/dashboard/content-mgmt/runtime.ts +1 -1
- package/src/components/dashboard/plugins/SettingsRenderer.astro +6 -1
- package/src/components/dashboard/profile/APITokens.astro +18 -12
- package/src/components/dashboard/profile/BasicInfo.astro +17 -13
- package/src/components/dashboard/profile/Notifications.astro +20 -8
- package/src/components/dashboard/profile/SocialSignin.astro +11 -8
- package/src/components/dashboard/profile/UpdatePassword.astro +10 -7
- package/src/components/dashboard/profile/oAuthButtonProviders.ts +1 -20
- package/src/components/dashboard/shared.ts +1 -1
- package/src/components/dashboard/sidebar/UserAccount.astro +5 -6
- package/src/components/dashboard/sidebar/VersionCheck.astro +7 -7
- package/src/components/dashboard/sidebar/VersionCheckChangelog.astro +32 -8
- package/src/components/dashboard/sidebar-modals/UserManagementModals.astro +8 -3
- package/src/components/dashboard/sidebar-modals/VersionModal.astro +43 -24
- package/src/components/dashboard/sidebarConfig.ts +9 -9
- package/src/components/dashboard/user-mgmt/InnerSidebarElement.astro +20 -13
- package/src/components/dashboard/user-mgmt/RankCheck.astro +10 -10
- package/src/components/dashboard/user-mgmt/SocialSignin.astro +9 -10
- package/src/components/dashboard/user-mgmt/UserListItem.astro +86 -30
- package/src/components/default-grid-items/Recently-created-pages.astro +12 -10
- package/src/components/default-grid-items/Recently-signed-up.astro +9 -9
- package/src/components/default-grid-items/Recently-updated-pages.astro +12 -10
- package/src/components/default-grid-items/Totals.astro +11 -10
- package/src/{routes/firstTimeSetupRoutes/components → components/first-time-setup}/PageHeader.astro +4 -3
- package/src/components/shared/Code.astro +72 -0
- package/src/components/shared/SSRUser.astro +200 -0
- package/src/components/shared/head/Favicons.astro +6 -0
- package/src/components/shared/head/Global.astro +4 -0
- package/src/components/shared/head/TitleTags.astro +14 -0
- package/src/config.ts +1 -4
- package/src/consts.ts +94 -14
- package/src/db/config.ts +306 -3
- package/src/effect.ts +5 -10
- package/src/fonts/syntax-font.css +40 -0
- package/src/{utils → handlers}/astroConfigCheck.ts +1 -1
- package/src/handlers/changelog.ts +67 -0
- package/src/handlers/index.ts +4 -0
- package/src/{pluginHandler.ts → handlers/pluginHandler.ts} +359 -142
- package/src/{routeHandler.ts → handlers/routeHandler.ts} +8 -3
- package/src/index.ts +214 -259
- package/src/{lib → integrations}/dynamic-sitemap/index.ts +1 -1
- package/src/integrations/node-namespace.ts +44 -0
- package/src/integrations/plugins.ts +4 -0
- package/src/{lib → integrations}/robots/utils.ts +0 -11
- package/src/{lib → integrations}/webVitals/checkForWebVitalsPlugin.ts +3 -3
- package/{dist/lib → src/integrations}/webVitals/dashboard-grid-items/CoreVitals.astro +1 -1
- package/{dist/lib → src/integrations}/webVitals/dashboard-grid-items/MetricCard.astro +3 -2
- package/src/{lib → integrations}/webVitals/dashboard-grid-items/SummaryCard.astro +2 -2
- package/src/{lib → integrations}/webVitals/dashboard-grid-items/metric.css +17 -17
- package/src/{lib → integrations}/webVitals/dashboard-grid-items/shared.ts +7 -7
- package/{dist/lib → src/integrations}/webVitals/pages/analytics/body.astro +10 -9
- package/src/layouts/AuthLayout.astro +63 -0
- package/src/layouts/{dashboard/Layout.astro → DashboardLayout.astro} +22 -10
- package/{dist/routes/firstTimeSetupRoutes/components/Layout.astro → src/layouts/FirstTimeSetupLayout.astro} +15 -3
- package/src/middleware/index.ts +98 -111
- package/src/middleware/utils.ts +123 -113
- package/src/routes/api/auth/[provider]/callback.ts +31 -15
- package/src/routes/api/auth/[provider]/index.ts +31 -15
- package/src/routes/api/auth/forgot-password.ts +134 -128
- package/src/routes/api/auth/login.ts +80 -67
- package/src/routes/api/auth/logout.ts +59 -43
- package/src/routes/api/auth/register.ts +93 -85
- package/src/routes/api/auth/shared.ts +20 -30
- package/src/routes/api/dashboard/api-tokens.ts +112 -104
- package/src/routes/api/dashboard/config.ts +64 -48
- package/src/routes/api/dashboard/content/diff.ts +59 -38
- package/src/routes/api/dashboard/content/folder.ts +145 -135
- package/src/routes/api/dashboard/content/page.ts +274 -275
- package/src/routes/api/dashboard/create-reset-link.ts +73 -64
- package/src/routes/api/dashboard/create-user-invite.ts +158 -140
- package/src/routes/api/dashboard/create-user.ts +172 -106
- package/src/routes/api/dashboard/email-notification-settings-site.ts +69 -32
- package/src/routes/api/dashboard/partials/LiveRender.astro +21 -16
- package/src/routes/api/dashboard/plugins/[plugin].ts +65 -45
- package/src/routes/api/dashboard/profile.ts +159 -127
- package/src/routes/api/dashboard/resend-verify-email.ts +63 -35
- package/src/routes/api/dashboard/reset-password.ts +108 -77
- package/src/routes/api/dashboard/search-list.ts +50 -50
- package/src/routes/api/dashboard/update-user-notifications.ts +57 -45
- package/src/routes/api/dashboard/users.ts +202 -135
- package/src/routes/api/dashboard/verify-email.ts +57 -42
- package/src/routes/api/dashboard/verify-session.ts +102 -116
- package/src/routes/api/mailer/config.ts +120 -102
- package/src/routes/api/mailer/test-email.ts +73 -52
- package/src/routes/api/render.astro +1 -1
- package/src/routes/api/rest/utils/auth-token.ts +1 -2
- package/src/routes/api/rest/v1/folders/[id].ts +136 -133
- package/src/routes/api/rest/v1/folders/index.ts +102 -90
- package/src/routes/api/rest/v1/pages/[id]/history/[diffid].ts +59 -49
- package/src/routes/api/rest/v1/pages/[id]/history/index.ts +63 -65
- package/src/routes/api/rest/v1/pages/[id]/index.ts +184 -187
- package/src/routes/api/rest/v1/pages/index.ts +136 -137
- package/src/routes/api/rest/v1/public/folders/[id].ts +34 -28
- package/src/routes/api/rest/v1/public/folders/index.ts +54 -47
- package/src/routes/api/rest/v1/public/pages/[id].ts +47 -38
- package/src/routes/api/rest/v1/public/pages/index.ts +60 -62
- package/src/routes/api/rest/v1/settings/index.ts +91 -77
- package/src/routes/api/rest/v1/users/[id].ts +317 -294
- package/src/routes/api/rest/v1/users/index.ts +196 -179
- package/src/routes/api/sdk/fallback-list-pages.json.ts +28 -38
- package/src/routes/api/sdk/full-changelog.json.ts +29 -31
- package/src/routes/api/sdk/list-pages.ts +41 -37
- package/src/routes/api/sdk/update-latest-version-cache.ts +32 -34
- package/src/routes/api/sdk/utils/changelog.ts +29 -168
- package/src/routes/auth/login.astro +68 -58
- package/src/routes/auth/logout.astro +3 -3
- package/src/routes/auth/signup.astro +9 -9
- package/src/routes/dashboard/[...pluginPage].astro +4 -2
- package/src/routes/dashboard/configuration.astro +7 -4
- package/src/routes/dashboard/content-management/createfolder.astro +5 -3
- package/src/routes/dashboard/content-management/createpage.astro +5 -3
- package/src/routes/dashboard/content-management/diff.astro +19 -15
- package/src/routes/dashboard/content-management/editfolder.astro +4 -2
- package/src/routes/dashboard/content-management/editpage.astro +4 -2
- package/src/routes/dashboard/content-management/index.astro +5 -3
- package/src/routes/dashboard/index.astro +4 -2
- package/src/routes/dashboard/password-reset.astro +13 -8
- package/src/routes/dashboard/plugins/[plugin].astro +10 -7
- package/src/routes/dashboard/profile.astro +9 -4
- package/src/routes/dashboard/smtp-configuration.astro +30 -18
- package/src/routes/dashboard/unverified-email.astro +9 -9
- package/src/routes/dashboard/user-management/edit.astro +53 -39
- package/src/routes/dashboard/user-management/index.astro +6 -4
- package/src/routes/error-pages/404.astro +6 -4
- package/src/routes/firstTimeSetupRoutes/1-start.astro +18 -110
- package/src/routes/firstTimeSetupRoutes/2-next.astro +60 -44
- package/src/routes/firstTimeSetupRoutes/3-done.astro +9 -11
- package/src/routes/firstTimeSetupRoutes/api/step-1.ts +116 -98
- package/src/routes/firstTimeSetupRoutes/api/step-2.ts +114 -100
- package/src/routes/firstTimeSetupRoutes/index.astro +6 -0
- package/src/runtime/index.ts +2 -3
- package/src/schemas/config/index.ts +1 -1
- package/src/schemas/plugins/index.ts +1 -1
- package/src/schemas/plugins/shared.ts +149 -23
- package/src/styles/404.css +1 -1
- package/src/styles/{authlayout.css → auth-layout.css} +1 -1
- package/src/styles/code-component.css +64 -0
- package/src/styles/dashboard-base.css +31 -67
- package/src/styles/dashboard-diff.css +32 -32
- package/src/theme.d.ts +1 -0
- package/src/types.ts +4 -21
- package/src/{lib → utils}/effects/index.ts +0 -1
- package/src/{lib → utils}/effects/logger.ts +6 -10
- package/src/utils/effects/smtp.ts +155 -0
- package/src/utils/safeString.ts +1 -6
- package/src/utils/stripIconify.ts +20 -0
- package/src/utils/tinyMDParser.ts +13 -7
- package/src/virtual.d.ts +194 -236
- package/src/virtuals/auth/core.ts +82 -0
- package/src/{lib → virtuals}/auth/index.ts +1 -4
- package/src/virtuals/auth/scripts/three.ts +647 -0
- package/src/virtuals/auth/scripts/utils/fitModelToViewport.ts +50 -0
- package/src/{utils/validImages.ts → virtuals/auth/validImages/index.ts} +10 -10
- package/src/virtuals/auth/validImages/studiocms-blobs-dark.webp +0 -0
- package/src/virtuals/auth/validImages/studiocms-blobs-light.webp +0 -0
- package/src/virtuals/auth/validImages/studiocms-blocks-dark.webp +0 -0
- package/src/virtuals/auth/validImages/studiocms-blocks-light.webp +0 -0
- package/src/virtuals/auth/validImages/studiocms-curves-dark.webp +0 -0
- package/src/virtuals/auth/validImages/studiocms-curves-light.webp +0 -0
- package/src/{lib → virtuals}/auth/verify-email.ts +20 -21
- package/src/virtuals/components/Generator.astro +5 -0
- package/{dist → src/virtuals}/components/Renderer.astro +1 -1
- package/{dist/lib → src/virtuals}/i18n/LanguageSelector.astro +1 -1
- package/src/virtuals/i18n/client.ts +232 -0
- package/src/virtuals/i18n/config.ts +170 -0
- package/src/{lib/i18n/index.ts → virtuals/i18n/server.ts} +42 -46
- package/src/{lib → virtuals}/i18n/translations/de.json +1 -1
- package/src/virtuals/i18n/v-files.ts +122 -0
- package/src/virtuals/lib/head.ts +1 -0
- package/src/{lib → virtuals/lib}/headDefaults.ts +1 -1
- package/src/{lib → virtuals/lib}/makeAPIRoute.ts +1 -1
- package/src/virtuals/lib/pathGenerators.ts +1 -0
- package/src/{lib → virtuals/lib}/routeMap.ts +5 -0
- package/src/virtuals/lib/urlGen.ts +15 -0
- package/src/{lib → virtuals}/mailer/index.ts +10 -44
- package/src/{lib → virtuals}/notifier/index.ts +1 -3
- package/src/{components → virtuals/scripts}/user-quick-tools.ts +151 -59
- package/src/{sdk → virtuals/sdk}/effect/collectors.ts +2 -3
- package/src/{sdk → virtuals/sdk}/effect/db.ts +1 -1
- package/src/{sdk → virtuals/sdk}/effect/foldertree.ts +1 -1
- package/src/{sdk → virtuals/sdk}/effect/generators.ts +1 -1
- package/src/{sdk → virtuals/sdk}/effect/getVersionFromNPM.ts +5 -11
- package/src/{sdk → virtuals/sdk}/effect/parsers.ts +2 -2
- package/src/{sdk → virtuals/sdk}/effect/pluginUtils.ts +1 -1
- package/src/{sdk → virtuals/sdk}/effect/users.ts +2 -2
- package/src/{sdk → virtuals/sdk}/errors.ts +1 -1
- package/src/{sdk → virtuals/sdk}/index.ts +5 -6
- package/src/{sdk → virtuals/sdk}/modules/auth.ts +4 -3
- package/src/{sdk → virtuals/sdk}/modules/clear.ts +1 -1
- package/src/virtuals/sdk/modules/config.ts +602 -0
- package/src/{sdk → virtuals/sdk}/modules/delete.ts +2 -2
- package/src/{sdk → virtuals/sdk}/modules/diffTracking.ts +1 -1
- package/src/{sdk → virtuals/sdk}/modules/get.ts +34 -50
- package/src/{sdk → virtuals/sdk}/modules/init.ts +19 -27
- package/src/{sdk → virtuals/sdk}/modules/middlewares.ts +24 -13
- package/src/{sdk → virtuals/sdk}/modules/notificationSettings.ts +9 -45
- package/src/{sdk → virtuals/sdk}/modules/plugins.ts +1 -1
- package/src/{sdk → virtuals/sdk}/modules/post.ts +18 -19
- package/src/{sdk → virtuals/sdk}/modules/resetTokenBucket.ts +1 -1
- package/src/{sdk → virtuals/sdk}/modules/rest_api.ts +1 -1
- package/src/{sdk → virtuals/sdk}/modules/update.ts +32 -30
- package/src/{sdk → virtuals/sdk}/sdkCore.ts +6 -1
- package/src/virtuals/sdk/tables.ts +2 -0
- package/src/{sdk → virtuals/sdk}/types/index.ts +6 -10
- package/src/{sdk → virtuals/sdk}/types/tableDefs.ts +4 -4
- package/src/{sdk → virtuals/sdk}/types/tsAlias.ts +4 -0
- package/src/{sdk → virtuals/sdk}/utils.ts +3 -3
- package/src/virtuals/stubs/config.stub.js +9 -0
- package/src/virtuals/stubs/logger.stub.js +30 -0
- package/src/virtuals/utils.ts +134 -0
- package/ui.d.ts +1301 -274
- package/dist/componentRegistry/PropsParser.d.ts +0 -15
- package/dist/componentRegistry/PropsParser.js +0 -214
- package/dist/componentRegistry/Registry.d.ts +0 -46
- package/dist/componentRegistry/Registry.js +0 -79
- package/dist/componentRegistry/convert-hyphens.d.ts +0 -14
- package/dist/componentRegistry/convert-hyphens.js +0 -10
- package/dist/componentRegistry/errors.d.ts +0 -67
- package/dist/componentRegistry/errors.js +0 -12
- package/dist/componentRegistry/handler.d.ts +0 -34
- package/dist/componentRegistry/handler.js +0 -110
- package/dist/componentRegistry/index.d.ts +0 -6
- package/dist/componentRegistry/index.js +0 -6
- package/dist/componentRegistry/runtime.d.ts +0 -46
- package/dist/componentRegistry/runtime.js +0 -61
- package/dist/componentRegistry/types.d.ts +0 -59
- package/dist/components/Generator.astro +0 -5
- package/dist/components/dashboard/AstroCodeDiffsScript.astro +0 -25
- package/dist/components/dashboard/Code.astro +0 -23
- package/dist/components/dashboard/component-scripts/makeClientRoutable.d.ts +0 -1
- package/dist/components/dashboard/component-scripts/makeClientRoutable.js +0 -9
- package/dist/components/dashboard/configuration/LightVsDark.astro +0 -67
- package/dist/components/user-quick-tools.d.ts +0 -90
- package/dist/db/tables.js +0 -217
- package/dist/layouts/auth/AuthLayout.astro +0 -71
- package/dist/lib/auth/encryption.d.ts +0 -46
- package/dist/lib/auth/encryption.js +0 -83
- package/dist/lib/auth/index.js +0 -12
- package/dist/lib/auth/password.d.ts +0 -45
- package/dist/lib/auth/password.js +0 -113
- package/dist/lib/auth/session.d.ts +0 -77
- package/dist/lib/auth/session.js +0 -147
- package/dist/lib/auth/user.d.ts +0 -155
- package/dist/lib/auth/user.js +0 -251
- package/dist/lib/auth/utils/lists/passwords.d.ts +0 -2
- package/dist/lib/auth/utils/lists/passwords.js +0 -10006
- package/dist/lib/auth/utils/lists/usernames.d.ts +0 -2
- package/dist/lib/auth/utils/lists/usernames.js +0 -547
- package/dist/lib/auth/utils/scrypt.d.ts +0 -104
- package/dist/lib/auth/utils/scrypt.js +0 -55
- package/dist/lib/auth/utils/unsafeCheck.d.ts +0 -34
- package/dist/lib/auth/utils/unsafeCheck.js +0 -38
- package/dist/lib/dashboardGrid.d.ts +0 -119
- package/dist/lib/dashboardGrid.js +0 -0
- package/dist/lib/effects/convertToVanilla.d.ts +0 -10
- package/dist/lib/effects/convertToVanilla.js +0 -5
- package/dist/lib/effects/smtp.config.d.ts +0 -212
- package/dist/lib/effects/smtp.config.js +0 -123
- package/dist/lib/effects/smtp.d.ts +0 -269
- package/dist/lib/effects/smtp.js +0 -186
- package/dist/lib/endpointResponses.d.ts +0 -2
- package/dist/lib/endpointResponses.js +0 -21
- package/dist/lib/head.d.ts +0 -25
- package/dist/lib/head.js +0 -73
- package/dist/lib/i18n/config.d.ts +0 -16
- package/dist/lib/i18n/config.js +0 -8
- package/dist/lib/i18n/index.d.ts +0 -2471
- package/dist/lib/index.d.ts +0 -7
- package/dist/lib/index.js +0 -7
- package/dist/lib/jsonUtils.d.ts +0 -2
- package/dist/lib/jsonUtils.js +0 -14
- package/dist/lib/mailer/index.d.ts +0 -267
- package/dist/lib/pathGenerators.d.ts +0 -20
- package/dist/lib/pathGenerators.js +0 -66
- package/dist/lib/plugins/dashboard-pages.d.ts +0 -71
- package/dist/lib/removeLeadingTrailingSlashes.d.ts +0 -7
- package/dist/lib/removeLeadingTrailingSlashes.js +0 -13
- package/dist/lib/renderer/errors.d.ts +0 -5
- package/dist/lib/renderer/errors.js +0 -25
- package/dist/lib/urlGen.js +0 -26
- package/dist/lib/webVitals/types.js +0 -0
- package/dist/routes/firstTimeSetupRoutes/components/TabItem.astro +0 -44
- package/dist/routes/firstTimeSetupRoutes/components/Tabs.astro +0 -170
- package/dist/runtime/AstroComponentProxy.d.ts +0 -31
- package/dist/runtime/AstroComponentProxy.js +0 -47
- package/dist/runtime/decoder/decode-codepoint.d.ts +0 -18
- package/dist/runtime/decoder/decode-codepoint.js +0 -58
- package/dist/runtime/decoder/decode-data-html.d.ts +0 -1
- package/dist/runtime/decoder/decode-data-html.js +0 -7
- package/dist/runtime/decoder/decode-data-xml.d.ts +0 -1
- package/dist/runtime/decoder/decode-data-xml.js +0 -7
- package/dist/runtime/decoder/index.d.ts +0 -34
- package/dist/runtime/decoder/index.js +0 -18
- package/dist/runtime/decoder/util.d.ts +0 -208
- package/dist/runtime/decoder/util.js +0 -415
- package/dist/scriptHandler.d.ts +0 -30
- package/dist/scriptHandler.js +0 -25
- package/dist/scripts/three.d.ts +0 -1
- package/dist/scripts/three.js +0 -278
- package/dist/scripts/utils/fitModelToViewport.d.ts +0 -8
- package/dist/scripts/utils/fitModelToViewport.js +0 -19
- package/dist/sdk/effect/convertToVanilla.d.ts +0 -1
- package/dist/sdk/effect/convertToVanilla.js +0 -4
- package/dist/sdk/effect/getVersionFromNPM.js +0 -30
- package/dist/sdk/tables.d.ts +0 -1405
- package/dist/sdk/tables.js +0 -70
- package/dist/utils/addIntegrationArray.d.ts +0 -24
- package/dist/utils/addIntegrationArray.js +0 -11
- package/dist/utils/addIntegrationArrayWithCheck.d.ts +0 -11
- package/dist/utils/addIntegrationArrayWithCheck.js +0 -24
- package/dist/utils/astroEnvConfig.d.ts +0 -45
- package/dist/utils/astroEnvConfig.js +0 -9
- package/dist/utils/authEnvCheck.d.ts +0 -38
- package/dist/utils/authEnvCheck.js +0 -82
- package/dist/utils/changelog.d.ts +0 -1
- package/dist/utils/changelog.js +0 -53
- package/dist/utils/changelogLoader.d.ts +0 -15
- package/dist/utils/changelogLoader.js +0 -104
- package/dist/utils/dynamicResult.d.ts +0 -17
- package/dist/utils/dynamicResult.js +0 -0
- package/dist/utils/getLatestVersion.d.ts +0 -12
- package/dist/utils/getLatestVersion.js +0 -36
- package/dist/utils/integrationLogger.d.ts +0 -7
- package/dist/utils/integrationLogger.js +0 -18
- package/dist/utils/integrations.d.ts +0 -4
- package/dist/utils/integrations.js +0 -32
- package/dist/utils/isDashboardRoute.d.ts +0 -7
- package/dist/utils/isDashboardRoute.js +0 -10
- package/dist/utils/jsonParse.d.ts +0 -9
- package/dist/utils/jsonParse.js +0 -6
- package/dist/utils/loginBackgrounds/studiocms-blobs-dark.png +0 -0
- package/dist/utils/loginBackgrounds/studiocms-blobs-light.png +0 -0
- package/dist/utils/loginBackgrounds/studiocms-blocks-dark.png +0 -0
- package/dist/utils/loginBackgrounds/studiocms-blocks-light.png +0 -0
- package/dist/utils/loginBackgrounds/studiocms-curves-dark.png +0 -0
- package/dist/utils/loginBackgrounds/studiocms-curves-light.png +0 -0
- package/dist/utils/makePageTitle.d.ts +0 -3
- package/dist/utils/makePageTitle.js +0 -7
- package/dist/utils/pageListPackageLabel.d.ts +0 -4
- package/dist/utils/pageListPackageLabel.js +0 -12
- package/dist/utils/pageTypeFilter.d.ts +0 -2
- package/dist/utils/pageTypeFilter.js +0 -16
- package/dist/utils/pluginLogger.d.ts +0 -2
- package/dist/utils/pluginLogger.js +0 -7
- package/dist/utils/readJson.d.ts +0 -1
- package/dist/utils/readJson.js +0 -7
- package/dist/utils/tryCatch.d.ts +0 -10
- package/dist/utils/tryCatch.js +0 -15
- package/dist/utils/validImages.js +0 -39
- package/src/componentRegistry/PropsParser.ts +0 -270
- package/src/componentRegistry/Registry.ts +0 -119
- package/src/componentRegistry/convert-hyphens.ts +0 -21
- package/src/componentRegistry/errors.ts +0 -58
- package/src/componentRegistry/handler.ts +0 -185
- package/src/componentRegistry/index.ts +0 -6
- package/src/componentRegistry/runtime.ts +0 -105
- package/src/componentRegistry/types.ts +0 -63
- package/src/components/Generator.astro +0 -5
- package/src/components/dashboard/AstroCodeDiffsScript.astro +0 -25
- package/src/components/dashboard/Code.astro +0 -23
- package/src/components/dashboard/ThemeManager.astro +0 -53
- package/src/components/dashboard/component-scripts/makeClientRoutable.ts +0 -7
- package/src/components/dashboard/configuration/LightVsDark.astro +0 -67
- package/src/db/tables.ts +0 -226
- package/src/layouts/auth/AuthLayout.astro +0 -71
- package/src/layouts/auth/ThemeManager.astro +0 -53
- package/src/lib/auth/encryption.ts +0 -149
- package/src/lib/auth/password.ts +0 -212
- package/src/lib/auth/session.ts +0 -291
- package/src/lib/auth/user.ts +0 -501
- package/src/lib/auth/utils/lists/passwords.ts +0 -10004
- package/src/lib/auth/utils/lists/usernames.ts +0 -546
- package/src/lib/auth/utils/scrypt.ts +0 -142
- package/src/lib/auth/utils/unsafeCheck.ts +0 -71
- package/src/lib/dashboardGrid.ts +0 -139
- package/src/lib/effects/convertToVanilla.ts +0 -12
- package/src/lib/effects/smtp.config.ts +0 -123
- package/src/lib/effects/smtp.ts +0 -338
- package/src/lib/endpointResponses.ts +0 -20
- package/src/lib/head.ts +0 -114
- package/src/lib/i18n/client.ts +0 -128
- package/src/lib/i18n/config.ts +0 -19
- package/src/lib/index.ts +0 -7
- package/src/lib/jsonUtils.ts +0 -11
- package/src/lib/pathGenerators.ts +0 -72
- package/src/lib/removeLeadingTrailingSlashes.ts +0 -21
- package/src/lib/renderer/errors.ts +0 -29
- package/src/lib/urlGen.ts +0 -40
- package/src/routes/firstTimeSetupRoutes/components/TabItem.astro +0 -44
- package/src/routes/firstTimeSetupRoutes/components/Tabs.astro +0 -170
- package/src/runtime/AstroComponentProxy.ts +0 -93
- package/src/runtime/decoder/decode-codepoint.ts +0 -76
- package/src/runtime/decoder/decode-data-html.ts +0 -6
- package/src/runtime/decoder/decode-data-xml.ts +0 -6
- package/src/runtime/decoder/index.ts +0 -49
- package/src/runtime/decoder/util.ts +0 -587
- package/src/scriptHandler.ts +0 -86
- package/src/scripts/three.ts +0 -415
- package/src/scripts/utils/fitModelToViewport.ts +0 -36
- package/src/sdk/effect/convertToVanilla.ts +0 -1
- package/src/sdk/tables.ts +0 -129
- package/src/styles/dashboard-code.css +0 -56
- package/src/utils/addIntegrationArray.ts +0 -35
- package/src/utils/addIntegrationArrayWithCheck.ts +0 -41
- package/src/utils/astroEnvConfig.ts +0 -12
- package/src/utils/authEnvCheck.ts +0 -144
- package/src/utils/changelog.ts +0 -67
- package/src/utils/changelogLoader.ts +0 -138
- package/src/utils/dynamicResult.ts +0 -19
- package/src/utils/getLatestVersion.ts +0 -67
- package/src/utils/integrationLogger.ts +0 -24
- package/src/utils/integrations.ts +0 -32
- package/src/utils/isDashboardRoute.ts +0 -19
- package/src/utils/jsonParse.ts +0 -11
- package/src/utils/loginBackgrounds/studiocms-blobs-dark.png +0 -0
- package/src/utils/loginBackgrounds/studiocms-blobs-light.png +0 -0
- package/src/utils/loginBackgrounds/studiocms-blocks-dark.png +0 -0
- package/src/utils/loginBackgrounds/studiocms-blocks-light.png +0 -0
- package/src/utils/loginBackgrounds/studiocms-curves-dark.png +0 -0
- package/src/utils/loginBackgrounds/studiocms-curves-light.png +0 -0
- package/src/utils/makePageTitle.ts +0 -11
- package/src/utils/pageListPackageLabel.ts +0 -19
- package/src/utils/pageTypeFilter.ts +0 -13
- package/src/utils/pluginLogger.ts +0 -6
- package/src/utils/readJson.ts +0 -5
- package/src/utils/tryCatch.ts +0 -29
- /package/dist/{layouts → components}/auth/ThreeCanvasLoader.astro +0 -0
- /package/dist/components/{dashboard → shared}/ThemeManager.astro +0 -0
- /package/dist/{styles → fonts}/OnestFont.woff2 +0 -0
- /package/dist/{styles → fonts}/SyntaxFont.woff2 +0 -0
- /package/dist/{styles → fonts}/onest-font.css +0 -0
- /package/dist/{utils → handlers}/astroConfigCheck.d.ts +0 -0
- /package/dist/{lib → integrations}/dynamic-sitemap/index.d.ts +0 -0
- /package/dist/{lib → integrations}/dynamic-sitemap/sitemap-index.xml.d.ts +0 -0
- /package/dist/{lib → integrations}/dynamic-sitemap/sitemap-index.xml.js +0 -0
- /package/dist/{lib → integrations}/robots/core.d.ts +0 -0
- /package/dist/{lib → integrations}/robots/core.js +0 -0
- /package/dist/{lib → integrations}/robots/index.d.ts +0 -0
- /package/dist/{lib → integrations}/robots/index.js +0 -0
- /package/dist/{lib → integrations}/robots/schema.d.ts +0 -0
- /package/dist/{lib → integrations}/robots/schema.js +0 -0
- /package/dist/{lib → integrations}/webVitals/checkForWebVitalsPlugin.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/consts.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/consts.js +0 -0
- /package/dist/{lib → integrations}/webVitals/pages/analytics/header.astro +0 -0
- /package/dist/{lib → integrations}/webVitals/schemas.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/schemas.js +0 -0
- /package/dist/{lib → integrations}/webVitals/types.d.ts +0 -0
- /package/dist/{componentRegistry → integrations/webVitals}/types.js +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/buildDataObject.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/buildDataObject.js +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/buildPageRouteDataObject.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/buildPageRouteDataObject.js +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/buildPerPageDataObject.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/buildPerPageDataObject.js +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/checkDate.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/checkDate.js +0 -0
- /package/dist/{lib → integrations}/webVitals/utils/webVitalsUtils.js +0 -0
- /package/dist/{lib → integrations}/webVitals/webVital.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/webVital.js +0 -0
- /package/dist/{lib → integrations}/webVitals/webVitalsRouteSummary.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/webVitalsRouteSummary.js +0 -0
- /package/dist/{lib → integrations}/webVitals/webVitalsSummary.d.ts +0 -0
- /package/dist/{lib → integrations}/webVitals/webVitalsSummary.js +0 -0
- /package/dist/{utils → virtuals/auth}/getLabelForPermissionLevel.d.ts +0 -0
- /package/dist/{utils → virtuals/auth}/getLabelForPermissionLevel.js +0 -0
- /package/dist/{lib → virtuals}/auth/types.d.ts +0 -0
- /package/dist/{lib → virtuals}/auth/types.js +0 -0
- /package/dist/{components/image → virtuals/components}/CustomImage.astro +0 -0
- /package/dist/{components → virtuals/components}/FormattedDate.astro +0 -0
- /package/dist/{lib → virtuals}/i18n/translations/en.json +0 -0
- /package/dist/{lib → virtuals}/i18n/translations/es.json +0 -0
- /package/dist/{lib → virtuals}/i18n/translations/fr.json +0 -0
- /package/dist/{lib → virtuals}/i18n/translations/hi.json +0 -0
- /package/dist/{lib → virtuals}/i18n/translations/zh.json +0 -0
- /package/dist/{lib → virtuals/lib}/makeAPIRoute.js +0 -0
- /package/dist/{lib → virtuals/lib}/makePublicRoute.d.ts +0 -0
- /package/dist/{lib → virtuals/lib}/makePublicRoute.js +0 -0
- /package/dist/{lib → virtuals}/mailer/template.d.ts +0 -0
- /package/dist/{lib → virtuals}/mailer/template.js +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/index.d.ts +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/index.js +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/notification.d.ts +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/notification.js +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/password-reset.d.ts +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/password-reset.js +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/user-invite.d.ts +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/user-invite.js +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/verify-email.d.ts +0 -0
- /package/dist/{lib → virtuals}/mailer/templates/verify-email.js +0 -0
- /package/dist/{lib → virtuals}/notifier/client.d.ts +0 -0
- /package/dist/{lib → virtuals}/notifier/client.js +0 -0
- /package/dist/{lib → virtuals}/plugins/dashboard-pages.js +0 -0
- /package/dist/{lib → virtuals}/plugins/frontend-navigation.d.ts +0 -0
- /package/dist/{lib → virtuals}/plugins/frontend-navigation.js +0 -0
- /package/dist/{lib → virtuals}/plugins/index.d.ts +0 -0
- /package/dist/{lib → virtuals}/plugins/index.js +0 -0
- /package/dist/{sdk → virtuals/sdk}/consts.d.ts +0 -0
- /package/dist/{sdk → virtuals/sdk}/consts.js +0 -0
- /package/dist/{sdk → virtuals/sdk}/effect/index.d.ts +0 -0
- /package/dist/{sdk → virtuals/sdk}/effect/index.js +0 -0
- /package/dist/{sdk → virtuals/sdk}/effect/lib/jwt-generator.d.ts +0 -0
- /package/dist/{sdk → virtuals/sdk}/effect/lib/jwt-generator.js +0 -0
- /package/dist/{sdk → virtuals/sdk}/types/index.js +0 -0
- /package/dist/{sdk → virtuals/sdk}/types/tableDefs.js +0 -0
- /package/dist/{sdk → virtuals/sdk}/types/tsAlias.js +0 -0
- /package/src/{layouts → components}/auth/ThreeCanvasLoader.astro +0 -0
- /package/src/{routes/firstTimeSetupRoutes → components/first-time-setup}/snippets/opt1-astro.config.diff +0 -0
- /package/src/{routes/firstTimeSetupRoutes → components/first-time-setup}/snippets/opt2-astro.config.diff +0 -0
- /package/src/{routes/firstTimeSetupRoutes → components/first-time-setup}/snippets/opt2-studiocms.config.diff +0 -0
- /package/{dist/layouts/auth → src/components/shared}/ThemeManager.astro +0 -0
- /package/src/{styles → fonts}/OnestFont.woff2 +0 -0
- /package/src/{styles → fonts}/SyntaxFont.woff2 +0 -0
- /package/src/{styles → fonts}/onest-font.css +0 -0
- /package/src/{lib → integrations}/dynamic-sitemap/sitemap-index.xml.ts +0 -0
- /package/src/{lib → integrations}/robots/core.ts +0 -0
- /package/src/{lib → integrations}/robots/index.ts +0 -0
- /package/src/{lib → integrations}/robots/schema.ts +0 -0
- /package/src/{lib → integrations}/webVitals/consts.ts +0 -0
- /package/src/{lib → integrations}/webVitals/pages/analytics/header.astro +0 -0
- /package/src/{lib → integrations}/webVitals/schemas.ts +0 -0
- /package/src/{lib → integrations}/webVitals/types.ts +0 -0
- /package/src/{lib → integrations}/webVitals/utils/buildDataObject.ts +0 -0
- /package/src/{lib → integrations}/webVitals/utils/buildPageRouteDataObject.ts +0 -0
- /package/src/{lib → integrations}/webVitals/utils/buildPerPageDataObject.ts +0 -0
- /package/src/{lib → integrations}/webVitals/utils/checkDate.ts +0 -0
- /package/src/{lib → integrations}/webVitals/utils/webVitalsUtils.ts +0 -0
- /package/src/{lib → integrations}/webVitals/webVital.ts +0 -0
- /package/src/{lib → integrations}/webVitals/webVitalsRouteSummary.ts +0 -0
- /package/src/{lib → integrations}/webVitals/webVitalsSummary.ts +0 -0
- /package/src/{utils → virtuals/auth}/getLabelForPermissionLevel.ts +0 -0
- /package/src/{lib → virtuals}/auth/types.ts +0 -0
- /package/src/{components/image → virtuals/components}/CustomImage.astro +0 -0
- /package/src/{components → virtuals/components}/FormattedDate.astro +0 -0
- /package/src/{lib → virtuals}/i18n/translations/en.json +0 -0
- /package/src/{lib → virtuals}/i18n/translations/es.json +0 -0
- /package/src/{lib → virtuals}/i18n/translations/fr.json +0 -0
- /package/src/{lib → virtuals}/i18n/translations/hi.json +0 -0
- /package/src/{lib → virtuals}/i18n/translations/zh.json +0 -0
- /package/src/{lib → virtuals/lib}/makePublicRoute.ts +0 -0
- /package/src/{lib → virtuals}/mailer/template.ts +0 -0
- /package/src/{lib → virtuals}/mailer/templates/index.ts +0 -0
- /package/src/{lib → virtuals}/mailer/templates/notification.ts +0 -0
- /package/src/{lib → virtuals}/mailer/templates/password-reset.ts +0 -0
- /package/src/{lib → virtuals}/mailer/templates/user-invite.ts +0 -0
- /package/src/{lib → virtuals}/mailer/templates/verify-email.ts +0 -0
- /package/src/{lib → virtuals}/notifier/client.ts +0 -0
- /package/src/{lib → virtuals}/plugins/dashboard-pages.ts +0 -0
- /package/src/{lib → virtuals}/plugins/frontend-navigation.ts +0 -0
- /package/src/{lib → virtuals}/plugins/index.ts +0 -0
- /package/src/{sdk → virtuals/sdk}/consts.ts +0 -0
- /package/src/{sdk → virtuals/sdk}/effect/index.ts +0 -0
- /package/src/{sdk → virtuals/sdk}/effect/lib/jwt-generator.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,141 @@
|
|
|
1
1
|
# studiocms
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#730](https://github.com/withstudiocms/studiocms/pull/730) [`cf0e866`](https://github.com/withstudiocms/studiocms/commit/cf0e866e1508d6fec7d59c765126c6bbfe09f068) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Update to StudioCMS UI 1.0 beta
|
|
8
|
+
|
|
9
|
+
- [#754](https://github.com/withstudiocms/studiocms/pull/754) [`3daaf92`](https://github.com/withstudiocms/studiocms/commit/3daaf92efa7ba78de41927cc56cc3d166da48075) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fix: Adjust SDK page lookup to return `undefined` when a page is not found, eliminating noisy Astro errors in development (notably when using Chrome DevTools).
|
|
10
|
+
|
|
11
|
+
- [#759](https://github.com/withstudiocms/studiocms/pull/759) [`c14b94c`](https://github.com/withstudiocms/studiocms/commit/c14b94c855a750b5666fffc975bebf1a556cf80f) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleanup internal integration code
|
|
12
|
+
|
|
13
|
+
- [#740](https://github.com/withstudiocms/studiocms/pull/740) [`203852c`](https://github.com/withstudiocms/studiocms/commit/203852c2e102c668eed71e46b96f134899895327) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implement new auth package into StudioCMS
|
|
14
|
+
|
|
15
|
+
- [#761](https://github.com/withstudiocms/studiocms/pull/761) [`447843f`](https://github.com/withstudiocms/studiocms/commit/447843f8e565f7ea15131a1a02cf178c6269d5ef) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Renames internal i18n file to server.ts instead of index.ts
|
|
16
|
+
|
|
17
|
+
- [#724](https://github.com/withstudiocms/studiocms/pull/724) [`0921bd3`](https://github.com/withstudiocms/studiocms/commit/0921bd330bcd69080aba0265db822b33327fbb9f) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @iconify-json/simple-icons to ^1.2.49
|
|
18
|
+
|
|
19
|
+
- [#734](https://github.com/withstudiocms/studiocms/pull/734) [`c613781`](https://github.com/withstudiocms/studiocms/commit/c613781d04003f1808a1632dcfcd2f2662d4ee8b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
20
|
+
|
|
21
|
+
- [#746](https://github.com/withstudiocms/studiocms/pull/746) [`d52873f`](https://github.com/withstudiocms/studiocms/commit/d52873f975fa7cbfe52a037bf84648b03c4773b4) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @iconify-json/simple-icons to ^1.2.50
|
|
22
|
+
|
|
23
|
+
- [#766](https://github.com/withstudiocms/studiocms/pull/766) [`06444cb`](https://github.com/withstudiocms/studiocms/commit/06444cbaf17e63a12b08eb8a08c1b6d65eeaac82) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
24
|
+
|
|
25
|
+
- [#749](https://github.com/withstudiocms/studiocms/pull/749) [`5780dd6`](https://github.com/withstudiocms/studiocms/commit/5780dd603ec6dc900d8f0f667374b4cf5eaf6a5a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - BREAKING: Remove deprecated locals from middleware in favor of a joined StudioCMS locals object.
|
|
26
|
+
|
|
27
|
+
Removed top-level Astro.Locals keys:
|
|
28
|
+
|
|
29
|
+
- SCMSGenerator, SCMSUiGenerator, latestVersion, siteConfig, defaultLang, routeMap
|
|
30
|
+
- userSessionData, emailVerificationEnabled, userPermissionLevel
|
|
31
|
+
- wysiwygCsrfToken (renamed)
|
|
32
|
+
|
|
33
|
+
New location:
|
|
34
|
+
|
|
35
|
+
- Access these under event.locals.StudioCMS.<key>
|
|
36
|
+
|
|
37
|
+
Renames:
|
|
38
|
+
|
|
39
|
+
- wysiwygCsrfToken → editorCSRFToken (under StudioCMS)
|
|
40
|
+
|
|
41
|
+
Migration examples:
|
|
42
|
+
Before:
|
|
43
|
+
const { siteConfig, defaultLang } = Astro.locals;
|
|
44
|
+
After:
|
|
45
|
+
const { siteConfig, defaultLang } = Astro.locals.StudioCMS;
|
|
46
|
+
|
|
47
|
+
Before:
|
|
48
|
+
const token = Astro.locals.wysiwygCsrfToken;
|
|
49
|
+
After:
|
|
50
|
+
const token = Astro.locals.StudioCMS.editorCSRFToken;
|
|
51
|
+
|
|
52
|
+
- [#755](https://github.com/withstudiocms/studiocms/pull/755) [`85a9a99`](https://github.com/withstudiocms/studiocms/commit/85a9a99d3c4595ff7130ca753e4962da66ad2511) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements new DB table for dynamic config storage in unified table
|
|
53
|
+
|
|
54
|
+
BREAKING:
|
|
55
|
+
|
|
56
|
+
Users will be required to run `astro db push --remote` to update their database table schemas.
|
|
57
|
+
|
|
58
|
+
- [#759](https://github.com/withstudiocms/studiocms/pull/759) [`c14b94c`](https://github.com/withstudiocms/studiocms/commit/c14b94c855a750b5666fffc975bebf1a556cf80f) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - cleanup and organize dependencies
|
|
59
|
+
|
|
60
|
+
- [#741](https://github.com/withstudiocms/studiocms/pull/741) [`e685425`](https://github.com/withstudiocms/studiocms/commit/e6854250165650c7642a03e4f612aa0a9ea880d1) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Tweak auth-kit to conform types to table configs
|
|
61
|
+
|
|
62
|
+
- [#742](https://github.com/withstudiocms/studiocms/pull/742) [`8e53f8f`](https://github.com/withstudiocms/studiocms/commit/8e53f8fc56adb8a8b110c9854053c779e07b3cb3) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Init new package @withstudiocms/internal_helpers
|
|
63
|
+
|
|
64
|
+
- [#744](https://github.com/withstudiocms/studiocms/pull/744) [`95b41f1`](https://github.com/withstudiocms/studiocms/commit/95b41f1a37b241dd3e1bfa90c8a85b858c107e6d) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fix missing variable during First time setup
|
|
65
|
+
|
|
66
|
+
- [#741](https://github.com/withstudiocms/studiocms/pull/741) [`e685425`](https://github.com/withstudiocms/studiocms/commit/e6854250165650c7642a03e4f612aa0a9ea880d1) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - BREAKING CHANGE: Updated AstroDB table config to utilize enums for permissions.
|
|
67
|
+
|
|
68
|
+
Users will be required to run `astro db push --remote` to update their table schema.
|
|
69
|
+
|
|
70
|
+
- [#751](https://github.com/withstudiocms/studiocms/pull/751) [`d5229f5`](https://github.com/withstudiocms/studiocms/commit/d5229f557b8035406582c9792e8a738dba18a1b5) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - fixes formdata conversion on first time setup
|
|
71
|
+
|
|
72
|
+
- [#763](https://github.com/withstudiocms/studiocms/pull/763) [`2b280d8`](https://github.com/withstudiocms/studiocms/commit/2b280d84bcb40805bbd1ed44e45a9f7260eed081) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Clean up and deduplicate code in the main integration index.
|
|
73
|
+
|
|
74
|
+
- [#756](https://github.com/withstudiocms/studiocms/pull/756) [`2f5403d`](https://github.com/withstudiocms/studiocms/commit/2f5403de6af5662a088bdcb764a43bf351249c44) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Restore avatar functionality with automatic fallback when remote avatars are unavailable to prevent server errors
|
|
75
|
+
|
|
76
|
+
- [#750](https://github.com/withstudiocms/studiocms/pull/750) [`0fc4fd7`](https://github.com/withstudiocms/studiocms/commit/0fc4fd7c4567b36865c4dba617663a12ecf619f5) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - NOTICE: Avatars disabled for now due to performance issues.
|
|
77
|
+
|
|
78
|
+
- [#759](https://github.com/withstudiocms/studiocms/pull/759) [`c14b94c`](https://github.com/withstudiocms/studiocms/commit/c14b94c855a750b5666fffc975bebf1a556cf80f) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Create and implement new injectScripts helper for Astro integrations
|
|
79
|
+
|
|
80
|
+
- [#747](https://github.com/withstudiocms/studiocms/pull/747) [`57f2d80`](https://github.com/withstudiocms/studiocms/commit/57f2d800d929734dfaa9eb324e8d8171856e8f3f) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Clean up and remove deprecated `removeLeadingTrailingSlashes` in favor of `stripLeadingAndTrailingSlashes`.
|
|
81
|
+
|
|
82
|
+
- [#750](https://github.com/withstudiocms/studiocms/pull/750) [`0fc4fd7`](https://github.com/withstudiocms/studiocms/commit/0fc4fd7c4567b36865c4dba617663a12ecf619f5) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Streamlines i18n setup to utilize centralized config.
|
|
83
|
+
|
|
84
|
+
- [#764](https://github.com/withstudiocms/studiocms/pull/764) [`3b22102`](https://github.com/withstudiocms/studiocms/commit/3b2210274705cb534b03d02d6952bfcdbdb10478) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactor: Handle i18n translations at build instead of bundling json files
|
|
85
|
+
|
|
86
|
+
- [#758](https://github.com/withstudiocms/studiocms/pull/758) [`bfda1e4`](https://github.com/withstudiocms/studiocms/commit/bfda1e4922fe391d2b8ecc81e8a83f68990ab083) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Tweaks i18n loader to ignore translations with more than 10% of the translations missing
|
|
87
|
+
|
|
88
|
+
- Updated dependencies [[`203852c`](https://github.com/withstudiocms/studiocms/commit/203852c2e102c668eed71e46b96f134899895327), [`2ad259e`](https://github.com/withstudiocms/studiocms/commit/2ad259e9662bd4c8b58e07629491cb322eb479fa), [`d77a8c1`](https://github.com/withstudiocms/studiocms/commit/d77a8c16c97b91343f1c03b2fd9dd2fca0252647), [`c14b94c`](https://github.com/withstudiocms/studiocms/commit/c14b94c855a750b5666fffc975bebf1a556cf80f), [`e685425`](https://github.com/withstudiocms/studiocms/commit/e6854250165650c7642a03e4f612aa0a9ea880d1), [`8e53f8f`](https://github.com/withstudiocms/studiocms/commit/8e53f8fc56adb8a8b110c9854053c779e07b3cb3), [`341b59e`](https://github.com/withstudiocms/studiocms/commit/341b59e3c775f619e9630c9044772ef0f16d1970), [`c14b94c`](https://github.com/withstudiocms/studiocms/commit/c14b94c855a750b5666fffc975bebf1a556cf80f), [`e70f380`](https://github.com/withstudiocms/studiocms/commit/e70f38001d9ef80e27f701d249fda23c670dfb5e)]:
|
|
89
|
+
- @withstudiocms/auth-kit@0.1.0-beta.1
|
|
90
|
+
- @withstudiocms/effect@0.1.0-beta.2
|
|
91
|
+
- @withstudiocms/internal_helpers@0.1.0-beta.1
|
|
92
|
+
- @withstudiocms/component-registry@0.1.0-beta.2
|
|
93
|
+
|
|
94
|
+
## 0.1.0-beta.25
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- [#706](https://github.com/withstudiocms/studiocms/pull/706) [`501b73a`](https://github.com/withstudiocms/studiocms/commit/501b73ae7856528af09e266b1cbd551aff17648f) Thanks [@dreyfus92](https://github.com/dreyfus92)! - Refactor dashboard content management components to eliminate inline scripts and improve code reusability
|
|
99
|
+
|
|
100
|
+
- [#693](https://github.com/withstudiocms/studiocms/pull/693) [`120b438`](https://github.com/withstudiocms/studiocms/commit/120b438d3152b4ae95e483f8f98bacfeff5c46de) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleanup use of deprecated code
|
|
101
|
+
|
|
102
|
+
- [#664](https://github.com/withstudiocms/studiocms/pull/664) [`42bac4a`](https://github.com/withstudiocms/studiocms/commit/42bac4afe7ee9896fa7cb3df638ae21d793a196d) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @iconify-json/simple-icons to ^1.2.48
|
|
103
|
+
|
|
104
|
+
- [#717](https://github.com/withstudiocms/studiocms/pull/717) [`aca52e6`](https://github.com/withstudiocms/studiocms/commit/aca52e61624284de2078f47ccf894d668bc0f51d) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency jose to ^6.0.13
|
|
105
|
+
|
|
106
|
+
- [#680](https://github.com/withstudiocms/studiocms/pull/680) [`9c66603`](https://github.com/withstudiocms/studiocms/commit/9c6660397bc3a8c952713e7587df507b8c6d3d17) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactor usage of effect to utilize new enhanced utilities from new @withstudiocms/effect package.
|
|
107
|
+
|
|
108
|
+
- [#707](https://github.com/withstudiocms/studiocms/pull/707) [`b7871ef`](https://github.com/withstudiocms/studiocms/commit/b7871eff7982a786edf7ee42e4f024295faacb99) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates to utilize new `@withstudiocms/component-registry` package
|
|
109
|
+
|
|
110
|
+
- [#686](https://github.com/withstudiocms/studiocms/pull/686) [`befa7cf`](https://github.com/withstudiocms/studiocms/commit/befa7cf9572a2cb56a0264e2d6ece5dddd483cb4) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Migrate API routes to new createEffectAPIRoutes utility from @withstudiocms/effect
|
|
111
|
+
|
|
112
|
+
- [#711](https://github.com/withstudiocms/studiocms/pull/711) [`22d748f`](https://github.com/withstudiocms/studiocms/commit/22d748f445b53bc340aad9a99ac4ebac6b0e9d7c) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleanup internal folder structure
|
|
113
|
+
|
|
114
|
+
- [#690](https://github.com/withstudiocms/studiocms/pull/690) [`355aeca`](https://github.com/withstudiocms/studiocms/commit/355aecacd44aec8cb2ca9daca392a0d9376f7b29) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleanup code, fix first time setup oauth, and cleanup old utils
|
|
115
|
+
|
|
116
|
+
- [#704](https://github.com/withstudiocms/studiocms/pull/704) [`73a4835`](https://github.com/withstudiocms/studiocms/commit/73a4835d09b8d9bc8b5c0999e73c20731386b774) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Unifies date-time config on last updated check for version check modal
|
|
117
|
+
|
|
118
|
+
- [#684](https://github.com/withstudiocms/studiocms/pull/684) [`15e6ee0`](https://github.com/withstudiocms/studiocms/commit/15e6ee0c50e37b22bcb24a0b67403e357e2502db) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors middleware utils to utilize new deepmerge util from @withstudiocms/effect instead of the source version for benefit of effect
|
|
119
|
+
|
|
120
|
+
- [#703](https://github.com/withstudiocms/studiocms/pull/703) [`ea38ad2`](https://github.com/withstudiocms/studiocms/commit/ea38ad21cf8df154a9ce2fc9fbde58ddabdd1a2d) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Optimize login page preview on Config page and first-time setup.
|
|
121
|
+
|
|
122
|
+
- [#680](https://github.com/withstudiocms/studiocms/pull/680) [`9c66603`](https://github.com/withstudiocms/studiocms/commit/9c6660397bc3a8c952713e7587df507b8c6d3d17) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Optimize login page backgrounds
|
|
123
|
+
|
|
124
|
+
- [#715](https://github.com/withstudiocms/studiocms/pull/715) [`8570819`](https://github.com/withstudiocms/studiocms/commit/8570819f99553cfda14b62b9fe18cd13284be7db) Thanks [@studiocms-no-reply](https://github.com/studiocms-no-reply)! - Translation Updated (PR: #715)
|
|
125
|
+
|
|
126
|
+
- [#702](https://github.com/withstudiocms/studiocms/pull/702) [`55fa633`](https://github.com/withstudiocms/studiocms/commit/55fa633348b75820ed6ebeb1859f241e609380be) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates UserListItem, TreeSidebarLink, TreeSidebarFolder, and SidebarLink to utilize custom html element instead of inline script
|
|
127
|
+
|
|
128
|
+
- [#692](https://github.com/withstudiocms/studiocms/pull/692) [`315cde0`](https://github.com/withstudiocms/studiocms/commit/315cde0269484585e36f8d99eda48346d81476eb) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Optimize threejs login page, ensuring fast page load.
|
|
129
|
+
|
|
130
|
+
- [#691](https://github.com/withstudiocms/studiocms/pull/691) [`b873c9b`](https://github.com/withstudiocms/studiocms/commit/b873c9bcf04d1ee55c6544f78b716a8dcb0c6411) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - refactor(db): consolidate table definitions into config and remove legacy tables file
|
|
131
|
+
|
|
132
|
+
Also fixes outstanding type issue with DB tables...
|
|
133
|
+
|
|
134
|
+
- Updated dependencies [[`befa7cf`](https://github.com/withstudiocms/studiocms/commit/befa7cf9572a2cb56a0264e2d6ece5dddd483cb4), [`355aeca`](https://github.com/withstudiocms/studiocms/commit/355aecacd44aec8cb2ca9daca392a0d9376f7b29), [`aaef521`](https://github.com/withstudiocms/studiocms/commit/aaef521314f8cdd52b6a5cf4f1b51a51b56c6a29), [`355aeca`](https://github.com/withstudiocms/studiocms/commit/355aecacd44aec8cb2ca9daca392a0d9376f7b29), [`169c9be`](https://github.com/withstudiocms/studiocms/commit/169c9be7649bbd9522c6ab68a9aeca4ebfc2b86d), [`b7871ef`](https://github.com/withstudiocms/studiocms/commit/b7871eff7982a786edf7ee42e4f024295faacb99), [`15e6ee0`](https://github.com/withstudiocms/studiocms/commit/15e6ee0c50e37b22bcb24a0b67403e357e2502db), [`9c66603`](https://github.com/withstudiocms/studiocms/commit/9c6660397bc3a8c952713e7587df507b8c6d3d17)]:
|
|
135
|
+
- @withstudiocms/effect@0.1.0-beta.1
|
|
136
|
+
- @withstudiocms/config-utils@0.1.0-beta.3
|
|
137
|
+
- @withstudiocms/component-registry@0.1.0-beta.1
|
|
138
|
+
|
|
3
139
|
## 0.1.0-beta.24
|
|
4
140
|
|
|
5
141
|
### Patch Changes
|
package/dist/cli/add/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Effect } from '../../effect.js';
|
|
1
|
+
import { Cli, Effect } from '../../effect.js';
|
|
3
2
|
export declare const ALIASES: Map<string, string>;
|
|
4
3
|
export declare const StudioCMSScopes: string[];
|
|
5
4
|
export interface PluginInfo {
|
|
@@ -21,7 +20,7 @@ export declare const toIdent: (name: string) => string;
|
|
|
21
20
|
export declare const createPrettyError: (err: Error) => Effect.Effect<Error, never, never>;
|
|
22
21
|
export declare const resolveConfigPath: (root: URL) => Effect.Effect<URL | undefined, import("effect/Cause").UnknownException, never>;
|
|
23
22
|
export declare function appendForwardSlash(path: string): string;
|
|
24
|
-
export declare const plugin: Args.Args<string[]>;
|
|
25
|
-
export declare const addPlugin: Command.Command<"add", never, import("astro/errors").AstroError | import("effect/Cause").UnknownException | Effect.Effect<Error, never, never>, {
|
|
23
|
+
export declare const plugin: Cli.Args.Args<string[]>;
|
|
24
|
+
export declare const addPlugin: Cli.Command.Command<"add", never, import("astro/errors").AstroError | import("effect/Cause").UnknownException | Effect.Effect<Error, never, never>, {
|
|
26
25
|
readonly plugin: string[];
|
|
27
26
|
}>;
|
package/dist/cli/add/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { existsSync, promises as fs } from "node:fs";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { Args, Command } from "@effect/cli";
|
|
4
3
|
import { cancelled, success } from "@withstudiocms/cli-kit/messages";
|
|
5
4
|
import { exists, pathToFileURL, resolveRoot } from "@withstudiocms/cli-kit/utils";
|
|
6
5
|
import { builders, loadFile } from "magicast";
|
|
7
6
|
import { getDefaultExportOptions } from "magicast/helpers";
|
|
8
|
-
import { Console, Effect, genLogger, Layer } from "../../effect.js";
|
|
7
|
+
import { Cli, Console, Effect, genLogger, Layer } from "../../effect.js";
|
|
9
8
|
import { CliContext, genContext } from "../utils/context.js";
|
|
10
9
|
import { logger } from "../utils/logger.js";
|
|
11
10
|
import { TryToInstallPlugins } from "./tryToInstallPlugins.js";
|
|
@@ -72,9 +71,9 @@ const resolveConfigPath = (root) => genLogger("studiocms/cli/add.resolveConfigPa
|
|
|
72
71
|
function appendForwardSlash(path) {
|
|
73
72
|
return path.endsWith("/") ? path : `${path}/`;
|
|
74
73
|
}
|
|
75
|
-
const plugin = Args.text({ name: "plugin" }).pipe(
|
|
76
|
-
Args.withDescription(" name of the plugin to add"),
|
|
77
|
-
Args.repeated
|
|
74
|
+
const plugin = Cli.Args.text({ name: "plugin" }).pipe(
|
|
75
|
+
Cli.Args.withDescription(" name of the plugin to add"),
|
|
76
|
+
Cli.Args.repeated
|
|
78
77
|
);
|
|
79
78
|
const resolveOrCreateConfig = (root) => genLogger("studiocms/cli/add.resolveOrCreateConfig")(function* () {
|
|
80
79
|
const existingConfig = yield* resolveConfigPath(root);
|
|
@@ -124,7 +123,7 @@ const addPluginDeps = Layer.mergeAll(
|
|
|
124
123
|
TryToInstallPlugins.Default,
|
|
125
124
|
UpdateStudioCMSConfig.Default
|
|
126
125
|
);
|
|
127
|
-
const addPlugin = Command.make(
|
|
126
|
+
const addPlugin = Cli.Command.make(
|
|
128
127
|
"add",
|
|
129
128
|
{
|
|
130
129
|
plugin
|
|
@@ -216,7 +215,7 @@ const addPlugin = Command.make(
|
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
217
|
}).pipe(Effect.provide(addPluginDeps))
|
|
219
|
-
).pipe(Command.withDescription("Add StudioCMS plugin(s) to your project"));
|
|
218
|
+
).pipe(Cli.Command.withDescription("Add StudioCMS plugin(s) to your project"));
|
|
220
219
|
export {
|
|
221
220
|
ALIASES,
|
|
222
221
|
STUBS,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cli } from '../../../effect.js';
|
|
2
2
|
/**
|
|
3
3
|
* One year in seconds
|
|
4
4
|
*/
|
|
5
5
|
export declare const OneYear = 31556926;
|
|
6
|
-
export declare const keyFile: Args.Args<string>;
|
|
7
|
-
export declare const expire: Options.Options<31556926 | import("effect/Option").Option<number>>;
|
|
8
|
-
export declare const debug: Options.Options<false | import("effect/Option").Option<boolean>>;
|
|
9
|
-
export declare const genJWT: Command.Command<"gen-jwt", never, RangeError, {
|
|
6
|
+
export declare const keyFile: Cli.Args.Args<string>;
|
|
7
|
+
export declare const expire: Cli.Options.Options<31556926 | import("effect/Option").Option<number>>;
|
|
8
|
+
export declare const debug: Cli.Options.Options<false | import("effect/Option").Option<boolean>>;
|
|
9
|
+
export declare const genJWT: Cli.Command.Command<"gen-jwt", never, RangeError, {
|
|
10
10
|
readonly keyFile: string;
|
|
11
11
|
readonly expire: 31556926 | import("effect/Option").Option<number>;
|
|
12
12
|
readonly debug: false | import("effect/Option").Option<boolean>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
|
-
import { Args, Command, Options } from "@effect/cli";
|
|
3
2
|
import {
|
|
4
3
|
StudioCMSColorway,
|
|
5
4
|
StudioCMSColorwayBg,
|
|
@@ -8,29 +7,29 @@ import {
|
|
|
8
7
|
import { boxen, label } from "@withstudiocms/cli-kit/messages";
|
|
9
8
|
import { SignJWT } from "jose";
|
|
10
9
|
import { importPKCS8 } from "jose/key/import";
|
|
11
|
-
import { Effect, genLogger } from "../../../effect.js";
|
|
10
|
+
import { Cli, Effect, genLogger } from "../../../effect.js";
|
|
12
11
|
import { genContext } from "../../utils/context.js";
|
|
13
12
|
import { dateAdd } from "../../utils/dateAdd.js";
|
|
14
13
|
import { logger } from "../../utils/logger.js";
|
|
15
14
|
const OneYear = 31556926;
|
|
16
|
-
const keyFile = Args.text({ name: "keyfile" }).pipe(
|
|
17
|
-
Args.withDescription(
|
|
15
|
+
const keyFile = Cli.Args.text({ name: "keyfile" }).pipe(
|
|
16
|
+
Cli.Args.withDescription(
|
|
18
17
|
"a relative path (e.g., `../keys/libsql.pem`) from the current directory to your private key file (.pem)"
|
|
19
18
|
)
|
|
20
19
|
);
|
|
21
|
-
const expire = Options.integer("exp").pipe(
|
|
22
|
-
Options.withAlias("e"),
|
|
23
|
-
Options.optional,
|
|
24
|
-
Options.withDefault(OneYear),
|
|
25
|
-
Options.withDescription("Expiry date in seconds (>=0) from issued at (iat) time")
|
|
20
|
+
const expire = Cli.Options.integer("exp").pipe(
|
|
21
|
+
Cli.Options.withAlias("e"),
|
|
22
|
+
Cli.Options.optional,
|
|
23
|
+
Cli.Options.withDefault(OneYear),
|
|
24
|
+
Cli.Options.withDescription("Expiry date in seconds (>=0) from issued at (iat) time")
|
|
26
25
|
);
|
|
27
|
-
const debug = Options.boolean("debug").pipe(
|
|
28
|
-
Options.optional,
|
|
29
|
-
Options.withDefault(false),
|
|
30
|
-
Options.withDescription("Enable debug mode")
|
|
26
|
+
const debug = Cli.Options.boolean("debug").pipe(
|
|
27
|
+
Cli.Options.optional,
|
|
28
|
+
Cli.Options.withDefault(false),
|
|
29
|
+
Cli.Options.withDescription("Enable debug mode")
|
|
31
30
|
);
|
|
32
31
|
const convertJwtToBase64Url = (jwtToken) => Effect.try(() => Buffer.from(jwtToken).toString("base64url"));
|
|
33
|
-
const genJWT = Command.make(
|
|
32
|
+
const genJWT = Cli.Command.make(
|
|
34
33
|
"gen-jwt",
|
|
35
34
|
{ keyFile, expire, debug },
|
|
36
35
|
({ expire: expire2, keyFile: keyFile2, debug: _debug }) => genLogger("studiocms/cli/crypto/genJWT")(function* () {
|
|
@@ -114,7 +113,7 @@ const genJWT = Command.make(
|
|
|
114
113
|
return yield* Effect.fail(new Error("JWT ERROR: Unknown"));
|
|
115
114
|
}
|
|
116
115
|
})
|
|
117
|
-
).pipe(Command.withDescription("Generate a JWT token from a keyfile"));
|
|
116
|
+
).pipe(Cli.Command.withDescription("Generate a JWT token from a keyfile"));
|
|
118
117
|
export {
|
|
119
118
|
OneYear,
|
|
120
119
|
debug,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const cryptoCMD: Command.Command<"crypto", never, RangeError, {
|
|
1
|
+
import { Cli } from '../../effect.js';
|
|
2
|
+
export declare const cryptoCMD: Cli.Command.Command<"crypto", never, RangeError, {
|
|
3
3
|
readonly subcommand: import("effect/Option").Option<{
|
|
4
4
|
readonly keyFile: string;
|
|
5
5
|
readonly expire: 31556926 | import("effect/Option").Option<number>;
|
package/dist/cli/crypto/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cli } from "../../effect.js";
|
|
2
2
|
import { genJWT } from "./genJWT/index.js";
|
|
3
|
-
const cryptoCMD = Command.make("crypto").pipe(
|
|
4
|
-
Command.withDescription("Crypto Utilities for StudioCMS Security"),
|
|
5
|
-
Command.withSubcommands([genJWT])
|
|
3
|
+
const cryptoCMD = Cli.Command.make("crypto").pipe(
|
|
4
|
+
Cli.Command.withDescription("Crypto Utilities for StudioCMS Security"),
|
|
5
|
+
Cli.Command.withSubcommands([genJWT])
|
|
6
6
|
);
|
|
7
7
|
export {
|
|
8
8
|
cryptoCMD
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getTurso: Command.Command<"get-turso", never, void, {}>;
|
|
1
|
+
import { Cli } from '../../effect.js';
|
|
2
|
+
export declare const getTurso: Cli.Command.Command<"get-turso", never, void, {}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Command } from "@effect/cli";
|
|
2
1
|
import { runInteractiveCommand } from "@withstudiocms/cli-kit/utils";
|
|
3
|
-
import { Effect, genLogger } from "../../effect.js";
|
|
4
|
-
const getTurso = Command.make(
|
|
2
|
+
import { Cli, Effect, genLogger } from "../../effect.js";
|
|
3
|
+
const getTurso = Cli.Command.make(
|
|
5
4
|
"get-turso",
|
|
6
5
|
{},
|
|
7
6
|
() => genLogger("studiocms/cli/getTurso")(function* () {
|
|
@@ -12,7 +11,7 @@ const getTurso = Command.make(
|
|
|
12
11
|
catch: (error) => console.error(`Failed to run Turso install: ${error.message}`)
|
|
13
12
|
});
|
|
14
13
|
})
|
|
15
|
-
).pipe(Command.withDescription("Install the Turso CLI"));
|
|
14
|
+
).pipe(Cli.Command.withDescription("Install the Turso CLI"));
|
|
16
15
|
export {
|
|
17
16
|
getTurso
|
|
18
17
|
};
|
package/dist/cli/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { CliConfig, Command } from "@effect/cli";
|
|
2
|
-
import { NodeContext, NodeRuntime } from "@effect/platform-node";
|
|
3
1
|
import { readJson } from "@withstudiocms/cli-kit/utils";
|
|
4
|
-
import { Effect, Layer } from "../effect.js";
|
|
2
|
+
import { Cli, Effect, Layer, PlatformNode } from "../effect.js";
|
|
5
3
|
import { addPlugin } from "./add/index.js";
|
|
6
4
|
import { cryptoCMD } from "./crypto/index.js";
|
|
7
5
|
import { getTurso } from "./getTurso/index.js";
|
|
8
6
|
import { initCMD } from "./init/index.js";
|
|
9
7
|
import { usersCMD } from "./users/index.js";
|
|
10
8
|
const pkgJson = readJson(new URL("../../package.json", import.meta.url));
|
|
11
|
-
const command = Command.make("studiocms").pipe(
|
|
12
|
-
Command.withDescription("StudioCMS CLI Utility Toolkit"),
|
|
13
|
-
Command.withSubcommands([addPlugin, cryptoCMD, getTurso, initCMD, usersCMD])
|
|
9
|
+
const command = Cli.Command.make("studiocms").pipe(
|
|
10
|
+
Cli.Command.withDescription("StudioCMS CLI Utility Toolkit"),
|
|
11
|
+
Cli.Command.withSubcommands([addPlugin, cryptoCMD, getTurso, initCMD, usersCMD])
|
|
14
12
|
);
|
|
15
|
-
const cli = Command.run(command, {
|
|
13
|
+
const cli = Cli.Command.run(command, {
|
|
16
14
|
name: "StudioCMS CLI Utility Toolkit",
|
|
17
15
|
version: `v${pkgJson.version}`
|
|
18
16
|
});
|
|
19
|
-
const ConfigLive = CliConfig.layer({
|
|
17
|
+
const ConfigLive = Cli.CliConfig.layer({
|
|
20
18
|
showBuiltIns: true
|
|
21
19
|
});
|
|
22
|
-
const MainLayer = Layer.mergeAll(ConfigLive, NodeContext.layer);
|
|
23
|
-
Effect.suspend(() => cli(process.argv)).pipe(
|
|
20
|
+
const MainLayer = Layer.mergeAll(ConfigLive, PlatformNode.NodeContext.layer);
|
|
21
|
+
Effect.suspend(() => cli(process.argv)).pipe(
|
|
22
|
+
Effect.provide(MainLayer),
|
|
23
|
+
PlatformNode.NodeRuntime.runMain
|
|
24
|
+
);
|
package/dist/cli/init/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const debug: Options.Options<false | import("effect/Option").Option<boolean>>;
|
|
3
|
-
export declare const dryRun: Options.Options<import("effect/Option").Option<boolean>>;
|
|
4
|
-
export declare const initCMD: Command.Command<"init", never, Error, {
|
|
1
|
+
import { Cli } from '../../effect.js';
|
|
2
|
+
export declare const debug: Cli.Options.Options<false | import("effect/Option").Option<boolean>>;
|
|
3
|
+
export declare const dryRun: Cli.Options.Options<import("effect/Option").Option<boolean>>;
|
|
4
|
+
export declare const initCMD: Cli.Command.Command<"init", never, Error, {
|
|
5
5
|
readonly debug: false | import("effect/Option").Option<boolean>;
|
|
6
6
|
readonly dryRun: import("effect/Option").Option<boolean>;
|
|
7
7
|
}>;
|
package/dist/cli/init/index.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { Command, Options } from "@effect/cli";
|
|
2
1
|
import { StudioCMSColorwayBg } from "@withstudiocms/cli-kit/colors";
|
|
3
2
|
import { label } from "@withstudiocms/cli-kit/messages";
|
|
4
|
-
import { Console, Effect, genLogger } from "../../effect.js";
|
|
3
|
+
import { Cli, Console, Effect, genLogger } from "../../effect.js";
|
|
5
4
|
import { CliContext, genContext } from "../utils/context.js";
|
|
6
5
|
import { intro } from "../utils/intro.js";
|
|
7
6
|
import { logger } from "../utils/logger.js";
|
|
8
7
|
import { env } from "./steps/env.js";
|
|
9
8
|
import { next } from "./steps/next.js";
|
|
10
|
-
const debug = Options.boolean("debug").pipe(
|
|
11
|
-
Options.optional,
|
|
12
|
-
Options.withDefault(false),
|
|
13
|
-
Options.withDescription("Enable debug mode")
|
|
9
|
+
const debug = Cli.Options.boolean("debug").pipe(
|
|
10
|
+
Cli.Options.optional,
|
|
11
|
+
Cli.Options.withDefault(false),
|
|
12
|
+
Cli.Options.withDescription("Enable debug mode")
|
|
14
13
|
);
|
|
15
|
-
const dryRun = Options.boolean("dry-run").pipe(
|
|
16
|
-
Options.optional,
|
|
17
|
-
Options.withAlias("d"),
|
|
18
|
-
Options.withDescription("Dry run mode")
|
|
14
|
+
const dryRun = Cli.Options.boolean("dry-run").pipe(
|
|
15
|
+
Cli.Options.optional,
|
|
16
|
+
Cli.Options.withAlias("d"),
|
|
17
|
+
Cli.Options.withDescription("Dry run mode")
|
|
19
18
|
);
|
|
20
|
-
const initCMD = Command.make(
|
|
19
|
+
const initCMD = Cli.Command.make(
|
|
21
20
|
"init",
|
|
22
21
|
{ debug, dryRun },
|
|
23
22
|
({ debug: _debug, dryRun: dryRun2 }) => genLogger("studiocms/cli/init")(function* () {
|
|
@@ -80,7 +79,7 @@ const initCMD = Command.make(
|
|
|
80
79
|
debug2 && logger.debug("Interactive CLI completed, exiting...");
|
|
81
80
|
context.exit(0);
|
|
82
81
|
})
|
|
83
|
-
).pipe(Command.withDescription("Initialize the StudioCMS project after new installation."));
|
|
82
|
+
).pipe(Cli.Command.withDescription("Initialize the StudioCMS project after new installation."));
|
|
84
83
|
export {
|
|
85
84
|
debug,
|
|
86
85
|
dryRun,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const debug: Options.Options<false | import("effect/Option").Option<boolean>>;
|
|
3
|
-
export declare const dryRun: Options.Options<import("effect/Option").Option<boolean>>;
|
|
1
|
+
import { Cli } from '../../effect.js';
|
|
2
|
+
export declare const debug: Cli.Options.Options<false | import("effect/Option").Option<boolean>>;
|
|
3
|
+
export declare const dryRun: Cli.Options.Options<import("effect/Option").Option<boolean>>;
|
|
4
4
|
export declare enum DBOptionsType {
|
|
5
5
|
libsql = "libsql"
|
|
6
6
|
}
|
|
@@ -8,7 +8,7 @@ export declare enum DBEditOptions {
|
|
|
8
8
|
create = "create",
|
|
9
9
|
modify = "modify"
|
|
10
10
|
}
|
|
11
|
-
export declare const usersCMD: Command.Command<"users", never, Error, {
|
|
11
|
+
export declare const usersCMD: Cli.Command.Command<"users", never, Error, {
|
|
12
12
|
readonly debug: false | import("effect/Option").Option<boolean>;
|
|
13
13
|
readonly dryRun: import("effect/Option").Option<boolean>;
|
|
14
14
|
}>;
|
package/dist/cli/users/index.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { Command, Options } from "@effect/cli";
|
|
2
1
|
import { StudioCMSColorwayBg } from "@withstudiocms/cli-kit/colors";
|
|
3
2
|
import { label } from "@withstudiocms/cli-kit/messages";
|
|
4
|
-
import { Console, Effect, genLogger } from "../../effect.js";
|
|
3
|
+
import { Cli, Console, Effect, genLogger } from "../../effect.js";
|
|
5
4
|
import { CliContext, genContext } from "../utils/context.js";
|
|
6
5
|
import { intro } from "../utils/intro.js";
|
|
7
6
|
import { logger } from "../utils/logger.js";
|
|
8
7
|
import { libsqlCreateUsers } from "./steps/libsqlCreateUsers.js";
|
|
9
8
|
import { libsqlModifyUsers } from "./steps/libsqlModifyUsers.js";
|
|
10
9
|
import { next } from "./steps/next.js";
|
|
11
|
-
const debug = Options.boolean("debug").pipe(
|
|
12
|
-
Options.optional,
|
|
13
|
-
Options.withDefault(false),
|
|
14
|
-
Options.withDescription("Enable debug mode")
|
|
10
|
+
const debug = Cli.Options.boolean("debug").pipe(
|
|
11
|
+
Cli.Options.optional,
|
|
12
|
+
Cli.Options.withDefault(false),
|
|
13
|
+
Cli.Options.withDescription("Enable debug mode")
|
|
15
14
|
);
|
|
16
|
-
const dryRun = Options.boolean("dry-run").pipe(
|
|
17
|
-
Options.optional,
|
|
18
|
-
Options.withAlias("d"),
|
|
19
|
-
Options.withDescription("Dry run mode")
|
|
15
|
+
const dryRun = Cli.Options.boolean("dry-run").pipe(
|
|
16
|
+
Cli.Options.optional,
|
|
17
|
+
Cli.Options.withAlias("d"),
|
|
18
|
+
Cli.Options.withDescription("Dry run mode")
|
|
20
19
|
);
|
|
21
20
|
function exitIfEmpty(context, items, itemType) {
|
|
22
21
|
if (items.length === 0) {
|
|
@@ -33,7 +32,7 @@ var DBEditOptions = /* @__PURE__ */ ((DBEditOptions2) => {
|
|
|
33
32
|
DBEditOptions2["modify"] = "modify";
|
|
34
33
|
return DBEditOptions2;
|
|
35
34
|
})(DBEditOptions || {});
|
|
36
|
-
const usersCMD = Command.make(
|
|
35
|
+
const usersCMD = Cli.Command.make(
|
|
37
36
|
"users",
|
|
38
37
|
{ debug, dryRun },
|
|
39
38
|
({ debug: _debug, dryRun: dryRun2 }) => genLogger("studiocms/cli/users")(function* () {
|
|
@@ -114,7 +113,7 @@ const usersCMD = Command.make(
|
|
|
114
113
|
debug2 && logger.debug("Interactive CLI completed, exiting...");
|
|
115
114
|
context.exit(0);
|
|
116
115
|
})
|
|
117
|
-
).pipe(Command.withDescription("Utilities for Tweaking Users in StudioCMS"));
|
|
116
|
+
).pipe(Cli.Command.withDescription("Utilities for Tweaking Users in StudioCMS"));
|
|
118
117
|
export {
|
|
119
118
|
DBEditOptions,
|
|
120
119
|
DBOptionsType,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CheckIfUnsafe } from "@withstudiocms/auth-kit/utils/unsafeCheck";
|
|
1
2
|
import { StudioCMSColorwayError, StudioCMSColorwayInfo } from "@withstudiocms/cli-kit/colors";
|
|
2
3
|
import { z } from "astro/zod";
|
|
3
4
|
import dotenv from "dotenv";
|
|
4
|
-
import {
|
|
5
|
-
import { CheckIfUnsafe } from "../../../lib/auth/utils/unsafeCheck.js";
|
|
5
|
+
import { Effect, runEffect } from "../../../effect.js";
|
|
6
6
|
import { checkRequiredEnvVars } from "../../utils/checkRequiredEnvVars.js";
|
|
7
7
|
import { createUserAvatar } from "../../utils/createUserAvatar.js";
|
|
8
8
|
import { logger } from "../../utils/logger.js";
|
|
@@ -102,7 +102,7 @@ const libsqlCreateUsers = async (context, debug, dryRun = false) => {
|
|
|
102
102
|
prompts.log.error("Passwords do not match!");
|
|
103
103
|
context.exit(1);
|
|
104
104
|
}
|
|
105
|
-
const password = await
|
|
105
|
+
const password = await runEffect(hashPassword(newPassword));
|
|
106
106
|
const newUserId = crypto.randomUUID();
|
|
107
107
|
const newUser = {
|
|
108
108
|
id: newUserId,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CheckIfUnsafe } from "@withstudiocms/auth-kit/utils/unsafeCheck";
|
|
1
2
|
import { StudioCMSColorwayError, StudioCMSColorwayInfo } from "@withstudiocms/cli-kit/colors";
|
|
2
3
|
import dotenv from "dotenv";
|
|
3
4
|
import { eq } from "drizzle-orm";
|
|
4
|
-
import {
|
|
5
|
-
import { CheckIfUnsafe } from "../../../lib/auth/utils/unsafeCheck.js";
|
|
5
|
+
import { Effect, runEffect } from "../../../effect.js";
|
|
6
6
|
import { checkRequiredEnvVars } from "../../utils/checkRequiredEnvVars.js";
|
|
7
7
|
import { logger } from "../../utils/logger.js";
|
|
8
8
|
import { Permissions, Users, useLibSQLDb } from "../../utils/useLibSQLDb.js";
|
|
@@ -191,7 +191,7 @@ const libsqlModifyUsers = async (context, debug, dryRun = false) => {
|
|
|
191
191
|
title: chalk.dim("Modifying user..."),
|
|
192
192
|
task: async (message) => {
|
|
193
193
|
try {
|
|
194
|
-
const hashedPassword = await
|
|
194
|
+
const hashedPassword = await runEffect(hashPassword(newPassword));
|
|
195
195
|
await db.update(Users).set({ password: hashedPassword }).where(eq(Users.id, userSelection));
|
|
196
196
|
message("User modified successfully");
|
|
197
197
|
} catch (e) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Image } from 'astro:assets';
|
|
3
3
|
import { validImages } from 'studiocms:auth/utils/validImages';
|
|
4
4
|
import type { SiteConfigCacheObject } from 'studiocms:sdk/types';
|
|
5
|
-
import StudioCMSLogoSVG from '
|
|
5
|
+
import StudioCMSLogoSVG from './StudioCMSLogoSVG.astro';
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
config: SiteConfigCacheObject;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { useTranslations } from 'studiocms:i18n';
|
|
3
|
-
import { Divider } from 'studiocms:ui/components';
|
|
3
|
+
import { Divider } from 'studiocms:ui/components/divider';
|
|
4
4
|
import OAuthButton from './OAuthButton.astro';
|
|
5
5
|
import { providerData, showOAuth } from './oAuthButtonProviders.js';
|
|
6
6
|
|
|
7
|
-
const lang = Astro.locals.defaultLang;
|
|
7
|
+
const lang = Astro.locals.StudioCMS.defaultLang;
|
|
8
8
|
const t = useTranslations(lang, '@studiocms/auth:oauth-stack');
|
|
9
9
|
|
|
10
10
|
const shouldShowOAuth = showOAuth && providerData.some(({ enabled }) => enabled);
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import type { UserSessionData } from 'studiocms:auth/lib/types';
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
|
-
userData
|
|
5
|
+
userData?: UserSessionData | null;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
const { userData } = Astro.props as Props;
|
|
9
9
|
|
|
10
|
-
const isLoggedIn = userData
|
|
10
|
+
const isLoggedIn = userData?.isLoggedIn ?? false;
|
|
11
11
|
---
|
|
12
12
|
<div
|
|
13
13
|
id="login-check"
|
|
14
14
|
style="display: none;"
|
|
15
15
|
data-is_logged_in={`${isLoggedIn}`}
|
|
16
|
-
data-redirect_route={Astro.locals.routeMap.mainLinks.dashboardIndex}
|
|
16
|
+
data-redirect_route={Astro.locals.StudioCMS.routeMap.mainLinks.dashboardIndex}
|
|
17
17
|
></div>
|
|
18
18
|
|
|
19
19
|
<script is:inline>
|