studiocms 0.1.0-beta.29 → 0.1.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +84 -0
- package/README.md +17 -9
- package/dist/cli/add/index.d.ts +3 -3
- package/dist/cli/add/index.js +9 -16
- package/dist/cli/add/npm-utils.d.ts +6 -6
- package/dist/cli/add/tryToInstallPlugins.d.ts +1 -1
- package/dist/cli/add/tryToInstallPlugins.js +4 -1
- package/dist/cli/add/updateStudioCMSConfig.d.ts +1 -1
- package/dist/cli/add/validatePlugins.d.ts +1 -1
- package/dist/cli/crypto/genJWT/index.d.ts +1 -2
- package/dist/cli/crypto/genJWT/index.js +1 -6
- package/dist/cli/crypto/index.d.ts +1 -1
- package/dist/cli/debug/index.d.ts +4 -0
- package/dist/cli/debug/index.js +94 -0
- package/dist/cli/getTurso/index.d.ts +3 -1
- package/dist/cli/getTurso/index.js +19 -6
- package/dist/cli/index.js +11 -1
- package/dist/cli/init/index.d.ts +1 -2
- package/dist/cli/init/index.js +1 -6
- package/dist/cli/init/steps/env.js +258 -219
- package/dist/cli/init/steps/next.d.ts +1 -1
- package/dist/cli/init/steps/next.js +8 -1
- package/dist/cli/migrator/index.d.ts +10 -0
- package/dist/cli/migrator/index.js +213 -0
- package/dist/cli/users/index.d.ts +1 -6
- package/dist/cli/users/index.js +27 -62
- package/dist/cli/users/steps/createUsers.d.ts +11 -0
- package/dist/cli/users/steps/{libsql/createUsers.js → createUsers.js} +41 -23
- package/dist/cli/users/steps/modifyUsers.d.ts +7 -0
- package/dist/cli/users/steps/{libsql/modifyUsers.js → modifyUsers.js} +68 -36
- package/dist/cli/users/steps/next.d.ts +1 -1
- package/dist/cli/utils/checkRequiredEnvVars.d.ts +0 -4
- package/dist/cli/utils/checkRequiredEnvVars.js +1 -18
- package/dist/cli/utils/context.d.ts +1 -1
- package/dist/cli/utils/debugOpt.d.ts +5 -0
- package/dist/cli/utils/debugOpt.js +9 -0
- package/dist/cli/utils/getCliDbClient.d.ts +119 -0
- package/dist/cli/utils/getCliDbClient.js +16 -0
- package/dist/cli/utils/intro.d.ts +1 -1
- package/dist/cli/utils/loadConfig.d.ts +71 -0
- package/dist/cli/utils/loadConfig.js +17 -0
- package/dist/cli/utils/studiocmsEnv.d.ts +36 -9
- package/dist/cli/utils/studiocmsEnv.js +60 -28
- package/dist/config.d.ts +1 -53
- package/dist/consts.d.ts +5 -0
- package/dist/consts.js +15 -2
- package/dist/db/index.d.ts +158 -0
- package/dist/db/index.js +67 -0
- package/dist/db/plugins.d.ts +124 -0
- package/dist/db/plugins.js +30 -0
- package/dist/effect.d.ts +0 -1
- package/dist/effect.js +0 -1
- package/dist/global.d.ts +1 -4
- package/dist/handlers/astroConfigCheck.d.ts +1 -2
- package/dist/handlers/astroConfigCheck.js +0 -6
- package/dist/handlers/changelog.d.ts +3 -0
- package/dist/{frontend → handlers/frontend}/routes.d.ts +1 -1
- package/dist/handlers/frontend/routes.js +381 -0
- package/dist/{frontend → handlers/frontend}/utils.d.ts +2 -1
- package/dist/{frontend → handlers/frontend}/utils.js +12 -1
- package/dist/handlers/plugin-components/Recently-created-pages.astro +1 -1
- package/dist/handlers/plugin-components/Recently-signed-up.astro +1 -1
- package/dist/handlers/plugin-components/Recently-updated-pages.astro +1 -1
- package/dist/handlers/plugin-components/Totals.astro +2 -2
- package/dist/handlers/plugin-i18n/zh.d.ts +11 -11
- package/dist/handlers/plugin-i18n/zh.js +11 -11
- package/dist/handlers/pluginHandler.d.ts +7 -5
- package/dist/handlers/pluginHandler.js +223 -161
- package/dist/handlers/routeHandler.d.ts +1 -1
- package/dist/handlers/routeHandler.js +1 -1
- package/dist/handlers/setupDbStudio.d.ts +1 -0
- package/dist/handlers/setupDbStudio.js +20 -0
- package/dist/index.d.ts +8 -56
- package/dist/index.js +302 -300
- package/dist/integrations/dynamic-sitemap/index.js +3 -2
- package/dist/integrations/node-namespace.js +9 -9
- package/dist/integrations/plugins.d.ts +0 -1
- package/dist/integrations/plugins.js +0 -1
- package/{src/integrations/webVitals/consts.ts → dist/plugins/analytics/assets/consts.d.ts} +14 -47
- package/dist/plugins/analytics/assets/consts.js +22 -0
- package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/shared.d.ts +7 -0
- package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildDataObject.d.ts +7 -0
- package/dist/plugins/analytics/assets/utils/checkDate.d.ts +11 -0
- package/dist/plugins/analytics/assets/webVital.d.ts +30 -0
- package/dist/plugins/analytics/assets/webVital.js +53 -0
- package/dist/plugins/analytics/client-script.d.ts +1 -0
- package/dist/plugins/analytics/client-script.js +28 -0
- package/dist/plugins/analytics/consts.d.ts +4 -0
- package/dist/plugins/analytics/consts.js +4 -0
- package/dist/plugins/analytics/db-client.d.ts +128 -0
- package/dist/plugins/analytics/db-client.js +8 -0
- package/dist/plugins/analytics/i18n/zh.d.ts +24 -0
- package/dist/plugins/analytics/i18n/zh.js +27 -0
- package/dist/plugins/analytics/index.d.ts +11 -0
- package/dist/plugins/analytics/index.js +95 -0
- package/dist/plugins/analytics/schemas.d.ts +65 -0
- package/dist/plugins/analytics/schemas.js +20 -0
- package/dist/plugins/analytics/table.d.ts +51 -0
- package/dist/plugins/analytics/table.js +31 -0
- package/dist/plugins.d.ts +2 -2
- package/dist/schemas/config/auth.d.ts +22 -57
- package/dist/schemas/config/auth.js +7 -28
- package/dist/schemas/config/dashboard.d.ts +37 -7
- package/dist/schemas/config/dashboard.js +4 -31
- package/dist/schemas/config/db.d.ts +19 -0
- package/dist/schemas/config/db.js +7 -0
- package/dist/schemas/config/developer.d.ts +11 -5
- package/dist/schemas/config/developer.js +0 -16
- package/dist/schemas/config/index.d.ts +214 -92
- package/dist/schemas/config/index.js +19 -65
- package/dist/schemas/config/sdk.d.ts +32 -17
- package/dist/schemas/config/sdk.js +0 -5
- package/dist/schemas/plugins/index.d.ts +2494 -1735
- package/dist/schemas/plugins/index.js +35 -17
- package/dist/schemas/plugins/shared.d.ts +28 -28
- package/dist/test-utils.d.ts +45 -9
- package/dist/test-utils.js +119 -13
- package/dist/theme.d.ts +2 -0
- package/dist/toolbar/db-viewer/config.d.ts +20 -0
- package/dist/toolbar/db-viewer/config.js +25 -0
- package/dist/toolbar/db-viewer/db-shared-types.d.ts +11 -0
- package/dist/toolbar/db-viewer/index.d.ts +2 -0
- package/dist/toolbar/db-viewer/index.js +39 -0
- package/dist/toolbar/db-viewer/studio/connection.d.ts +5 -0
- package/dist/toolbar/db-viewer/studio/connection.js +32 -0
- package/dist/toolbar/db-viewer/studio/drivers/base.d.ts +25 -0
- package/dist/toolbar/db-viewer/studio/drivers/base.js +5 -0
- package/dist/toolbar/db-viewer/studio/drivers/mysql.d.ts +22 -0
- package/dist/toolbar/db-viewer/studio/drivers/mysql.js +211 -0
- package/dist/toolbar/db-viewer/studio/drivers/postgres.d.ts +13 -0
- package/dist/toolbar/db-viewer/studio/drivers/postgres.js +62 -0
- package/dist/toolbar/db-viewer/studio/drivers/sqlite.d.ts +19 -0
- package/dist/toolbar/db-viewer/studio/drivers/sqlite.js +107 -0
- package/dist/toolbar/db-viewer/studio/index.d.ts +11 -0
- package/dist/toolbar/db-viewer/studio/index.js +84 -0
- package/dist/toolbar/db-viewer/studio/type.d.ts +32 -0
- package/dist/toolbar/db-viewer/viewer.d.ts +10 -0
- package/dist/toolbar/db-viewer/viewer.js +79 -0
- package/dist/toolbar/utils/app-utils.d.ts +22 -0
- package/dist/toolbar/utils/app-utils.js +40 -0
- package/dist/types.d.ts +9 -1
- package/dist/utils/effects/smtp.d.ts +3 -7
- package/dist/utils/effects/smtp.js +4 -7
- package/dist/virtual.d.ts +118 -115
- package/dist/virtuals/auth/core.d.ts +4 -40
- package/dist/virtuals/auth/core.js +4 -4
- package/dist/virtuals/auth/types.d.ts +2 -2
- package/dist/virtuals/auth/verify-email.d.ts +17 -17
- package/dist/virtuals/auth/verify-email.js +1 -1
- package/dist/virtuals/i18n/client.d.ts +11 -0
- package/dist/virtuals/i18n/config.d.ts +11 -0
- package/dist/virtuals/i18n/config.js +2 -1
- package/dist/virtuals/i18n/translations/en.json +12 -1
- package/dist/virtuals/i18n/translations/zh.json +72 -72
- package/dist/virtuals/i18n/v-files.d.ts +5 -0
- package/dist/virtuals/i18n/v-files.js +1 -0
- package/dist/virtuals/lib/headDefaults.d.ts +1 -1
- package/dist/virtuals/lib/routeMap.d.ts +7 -0
- package/dist/virtuals/lib/routeMap.js +8 -1
- package/dist/virtuals/mailer/index.d.ts +10 -10
- package/dist/virtuals/notifier/index.d.ts +6 -6
- package/dist/virtuals/plugins/frontend-navigation.js +1 -2
- package/dist/virtuals/scripts/user-quick-tools.d.ts +1 -0
- package/dist/virtuals/scripts/user-quick-tools.js +4 -1
- package/dist/virtuals/sdk/index.d.ts +156 -71
- package/dist/virtuals/sdk/index.js +38 -11
- package/dist/virtuals/sdk/types.d.ts +4 -0
- package/dist/virtuals/sdk/types.js +1 -0
- package/dist/virtuals/stubs/config.stub.js +1 -0
- package/dist/virtuals/template-engine/index.d.ts +1 -1
- package/dist/virtuals/utils.js +2 -2
- package/frontend/components/Ambients.astro +14 -0
- package/{dist/frontend → frontend}/components/dashboard/DashboardGrid.astro +3 -3
- package/{src/frontend → frontend}/components/dashboard/DashboardGridItem.astro +2 -2
- package/{src/frontend → frontend}/components/dashboard/DashboardPageHeader.astro +1 -1
- package/{src/frontend → frontend}/components/dashboard/Footer.astro +1 -1
- package/{dist/frontend → frontend}/components/dashboard/LoginChecker.astro +1 -1
- package/{src/frontend → frontend}/components/dashboard/configuration/ConfigForm.astro +2 -2
- package/{dist/frontend → frontend}/components/dashboard/content-mgmt/CreateFolder.astro +8 -1
- package/{src/frontend → frontend}/components/dashboard/content-mgmt/CreatePage.astro +12 -8
- package/{src/frontend → frontend}/components/dashboard/content-mgmt/EditFolder.astro +10 -3
- package/{dist/frontend → frontend}/components/dashboard/content-mgmt/EditPage.astro +23 -17
- package/{src/frontend → frontend}/components/dashboard/content-mgmt/InnerSidebarElement.astro +2 -2
- package/{src/frontend → frontend}/components/dashboard/content-mgmt/PageHeader.astro +4 -4
- package/{dist/frontend → frontend}/components/dashboard/content-mgmt/PageList.astro +3 -3
- package/frontend/components/dashboard/content-mgmt/PluginFields.astro +7 -0
- package/{src/frontend → frontend}/components/dashboard/content-mgmt/runtime.ts +2 -2
- package/{src/frontend → frontend}/components/dashboard/content-mgmt/shared.ts +0 -9
- package/frontend/components/dashboard/plugins/SettingsRenderer.astro +7 -0
- package/{dist/frontend → frontend}/components/dashboard/profile/Notifications.astro +3 -3
- package/{src/frontend → frontend}/components/dashboard/sidebar/VersionCheck.astro +2 -2
- package/{src/frontend → frontend}/components/dashboard/sidebar-modals/VersionModal.astro +2 -2
- package/{src/frontend → frontend}/components/dashboard/sidebarConfig.ts +6 -2
- package/{src/virtuals/scripts/template-editor.ts → frontend/components/dashboard/smtp-config/TemplateEditor.astro} +112 -9
- package/{src/frontend → frontend}/components/dashboard/user-mgmt/InnerSidebarElement.astro +2 -2
- package/{dist/frontend → frontend}/components/dashboard/user-mgmt/RankCheck.astro +1 -1
- package/{dist/frontend → frontend}/components/dashboard/user-mgmt/UserListItem.astro +2 -2
- package/frontend/components/shared/BaseBody.astro +7 -0
- package/frontend/components/shared/BaseHead.astro +35 -0
- package/{dist/frontend/components/dashboard/plugins/SettingsRenderer.astro → frontend/components/shared/DynamicSettingsRenderer.astro} +1 -1
- package/{src/frontend → frontend}/components/shared/SSRUser.astro +7 -31
- package/frontend/env.d.ts +3 -0
- package/{dist/frontend → frontend}/layouts/AuthLayout.astro +6 -25
- package/frontend/layouts/BaseLayout.astro +24 -0
- package/{dist/frontend → frontend}/layouts/DashboardLayout.astro +50 -47
- package/frontend/layouts/FirstTimeSetupLayout.astro +29 -0
- package/frontend/middleware/error-handler.ts +72 -0
- package/{src/frontend → frontend}/middleware/index.ts +4 -6
- package/frontend/middleware/templates/errors.ts +237 -0
- package/{src/frontend → frontend}/middleware/utils.ts +6 -8
- package/{src/frontend → frontend}/pages/404.astro +1 -0
- package/{src/frontend → frontend}/pages/[dashboard]/[...pluginPage].astro +1 -1
- package/{dist/frontend → frontend}/pages/[dashboard]/content-management/diff.astro +4 -6
- package/{src/frontend → frontend}/pages/[dashboard]/smtp-configuration.astro +8 -5
- package/frontend/pages/[dashboard]/system-management.astro +353 -0
- package/{src/frontend → frontend}/pages/[dashboard]/unverified-email.astro +1 -0
- package/{dist/frontend → frontend}/pages/[dashboard]/user-management/edit.astro +3 -3
- package/{src/frontend → frontend}/pages/studiocms_api/auth/[provider]/_effects/index.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/auth/[provider]/callback.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/auth/[provider]/index.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/auth/forgot-password.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/auth/login.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/auth/logout.ts +2 -2
- package/{src/frontend → frontend}/pages/studiocms_api/auth/register.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/auth/shared.ts +4 -4
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/api-tokens.ts +2 -2
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/config.ts +2 -2
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/content/diff.ts +2 -2
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/content/folder.ts +63 -1
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/content/page.ts +78 -41
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/create-reset-link.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/create-user-invite.ts +10 -4
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/create-user.ts +4 -4
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/email-notification-settings-site.ts +2 -5
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/mailer/check-email.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/mailer/config.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/partials/LiveRender.astro +2 -2
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/plugins/[plugin].ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/profile.ts +39 -16
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/resend-verify-email.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/reset-password.ts +13 -3
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/search-list.ts +3 -3
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/templates.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/update-user-notifications.ts +17 -3
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/users.ts +17 -4
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/verify-email.ts +16 -3
- package/{src/frontend → frontend}/pages/studiocms_api/dashboard/verify-session.ts +5 -5
- package/frontend/pages/studiocms_api/db-studio/query.ts +121 -0
- package/{src/frontend → frontend}/pages/studiocms_api/renderer/render.astro +2 -2
- package/{src/frontend → frontend}/pages/studiocms_api/rest/utils/auth-token.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/folders/[id].ts +62 -1
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/folders/index.ts +3 -8
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/[id]/history/[diffid].ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/[id]/history/index.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/[id]/index.ts +33 -15
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/index.ts +18 -12
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/folders/[id].ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/folders/index.ts +3 -8
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/pages/[id].ts +2 -2
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/pages/index.ts +5 -7
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/settings/index.ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/users/[id].ts +1 -1
- package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/users/index.ts +3 -3
- package/{src/frontend → frontend}/pages/studiocms_api/sdk/fallback-list-pages.json.ts +9 -9
- package/{src/frontend → frontend}/pages/studiocms_api/sdk/full-changelog.json.ts +12 -13
- package/{src/frontend → frontend}/pages/studiocms_api/sdk/list-pages.ts +9 -10
- package/{src/frontend → frontend}/pages/studiocms_api/sdk/update-latest-version-cache.ts +5 -8
- package/{src/frontend → frontend}/pages/studiocms_api/sdk/utils/changelog.ts +1 -7
- package/{dist/frontend → frontend}/setup-pages/1-start.astro +4 -3
- package/{dist/frontend → frontend}/setup-pages/2-next.astro +4 -3
- package/{dist/frontend → frontend}/setup-pages/3-done.astro +3 -2
- package/frontend/setup-pages/shared.ts +10 -0
- package/{src/frontend → frontend}/setup-pages/studiocms_api/dashboard/step-1.ts +1 -1
- package/{src/frontend → frontend}/setup-pages/studiocms_api/dashboard/step-2.ts +2 -2
- package/frontend/web-vitals/endpoint.ts +39 -0
- package/frontend/web-vitals/middleware.ts +67 -0
- package/package.json +98 -43
- package/dist/cli/users/steps/libsql/createUsers.d.ts +0 -2
- package/dist/cli/users/steps/libsql/modifyUsers.d.ts +0 -7
- package/dist/cli/utils/useLibSQLDb.d.ts +0 -276
- package/dist/cli/utils/useLibSQLDb.js +0 -45
- package/dist/db/config.d.ts +0 -1519
- package/dist/db/config.js +0 -269
- package/dist/frontend/components/dashboard/BaseHead.astro +0 -25
- package/dist/frontend/components/dashboard/DashboardGridItem.astro +0 -48
- package/dist/frontend/components/dashboard/DashboardPageHeader.astro +0 -88
- package/dist/frontend/components/dashboard/Footer.astro +0 -12
- package/dist/frontend/components/dashboard/configuration/ConfigForm.astro +0 -275
- package/dist/frontend/components/dashboard/content-mgmt/CreatePage.astro +0 -522
- package/dist/frontend/components/dashboard/content-mgmt/EditFolder.astro +0 -144
- package/dist/frontend/components/dashboard/content-mgmt/InnerSidebarElement.astro +0 -312
- package/dist/frontend/components/dashboard/content-mgmt/PageHeader.astro +0 -462
- package/dist/frontend/components/dashboard/content-mgmt/PluginFields.astro +0 -33
- package/dist/frontend/components/dashboard/content-mgmt/runtime.d.ts +0 -10
- package/dist/frontend/components/dashboard/content-mgmt/runtime.js +0 -32
- package/dist/frontend/components/dashboard/content-mgmt/shared.d.ts +0 -26
- package/dist/frontend/components/dashboard/content-mgmt/shared.js +0 -29
- package/dist/frontend/components/dashboard/sidebar/VersionCheck.astro +0 -152
- package/dist/frontend/components/dashboard/sidebar-modals/VersionModal.astro +0 -298
- package/dist/frontend/components/dashboard/sidebarConfig.d.ts +0 -32
- package/dist/frontend/components/dashboard/sidebarConfig.js +0 -93
- package/dist/frontend/components/dashboard/smtp-config/TemplateEditor.astro +0 -107
- package/dist/frontend/components/dashboard/user-mgmt/InnerSidebarElement.astro +0 -359
- package/dist/frontend/components/shared/SSRUser.astro +0 -267
- package/dist/frontend/components/shared/head/Favicons.astro +0 -6
- package/dist/frontend/components/shared/head/Global.astro +0 -4
- package/dist/frontend/components/shared/head/TitleTags.astro +0 -14
- package/dist/frontend/components/shared/oAuthButtonProviders.d.ts +0 -17
- package/dist/frontend/components/shared/oAuthButtonProviders.js +0 -15
- package/dist/frontend/fonts/css/onest-variable.css +0 -43
- package/dist/frontend/fonts/css/syntax.css +0 -33
- package/dist/frontend/layouts/FirstTimeSetupLayout.astro +0 -53
- package/dist/frontend/middleware/index.d.ts +0 -10
- package/dist/frontend/middleware/index.js +0 -134
- package/dist/frontend/middleware/utils.d.ts +0 -82
- package/dist/frontend/middleware/utils.js +0 -105
- package/dist/frontend/pages/404.astro +0 -72
- package/dist/frontend/pages/[dashboard]/[...pluginPage].astro +0 -92
- package/dist/frontend/pages/[dashboard]/smtp-configuration.astro +0 -753
- package/dist/frontend/pages/[dashboard]/unverified-email.astro +0 -124
- package/dist/frontend/pages/studiocms_api/auth/[provider]/_effects/index.d.ts +0 -23
- package/dist/frontend/pages/studiocms_api/auth/[provider]/_effects/index.js +0 -45
- package/dist/frontend/pages/studiocms_api/auth/[provider]/callback.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/auth/[provider]/callback.js +0 -36
- package/dist/frontend/pages/studiocms_api/auth/[provider]/index.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/auth/[provider]/index.js +0 -36
- package/dist/frontend/pages/studiocms_api/auth/forgot-password.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/auth/forgot-password.js +0 -112
- package/dist/frontend/pages/studiocms_api/auth/login.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/auth/login.js +0 -73
- package/dist/frontend/pages/studiocms_api/auth/logout.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/auth/logout.js +0 -46
- package/dist/frontend/pages/studiocms_api/auth/register.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/auth/register.js +0 -84
- package/dist/frontend/pages/studiocms_api/auth/shared.d.ts +0 -30
- package/dist/frontend/pages/studiocms_api/auth/shared.js +0 -52
- package/dist/frontend/pages/studiocms_api/dashboard/api-tokens.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/api-tokens.js +0 -82
- package/dist/frontend/pages/studiocms_api/dashboard/config.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/config.js +0 -60
- package/dist/frontend/pages/studiocms_api/dashboard/content/diff.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/content/diff.js +0 -60
- package/dist/frontend/pages/studiocms_api/dashboard/content/folder.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/content/folder.js +0 -118
- package/dist/frontend/pages/studiocms_api/dashboard/content/page.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/content/page.js +0 -219
- package/dist/frontend/pages/studiocms_api/dashboard/create-reset-link.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/create-reset-link.js +0 -64
- package/dist/frontend/pages/studiocms_api/dashboard/create-user-invite.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/create-user-invite.js +0 -162
- package/dist/frontend/pages/studiocms_api/dashboard/create-user.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/create-user.js +0 -144
- package/dist/frontend/pages/studiocms_api/dashboard/email-notification-settings-site.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/email-notification-settings-site.js +0 -56
- package/dist/frontend/pages/studiocms_api/dashboard/mailer/check-email.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/mailer/check-email.js +0 -64
- package/dist/frontend/pages/studiocms_api/dashboard/mailer/config.d.ts +0 -44
- package/dist/frontend/pages/studiocms_api/dashboard/mailer/config.js +0 -106
- package/dist/frontend/pages/studiocms_api/dashboard/partials/LiveRender.astro +0 -39
- package/dist/frontend/pages/studiocms_api/dashboard/plugins/[plugin].d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/plugins/[plugin].js +0 -67
- package/dist/frontend/pages/studiocms_api/dashboard/profile.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/profile.js +0 -153
- package/dist/frontend/pages/studiocms_api/dashboard/resend-verify-email.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/resend-verify-email.js +0 -65
- package/dist/frontend/pages/studiocms_api/dashboard/reset-password.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/reset-password.js +0 -88
- package/dist/frontend/pages/studiocms_api/dashboard/search-list.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/search-list.js +0 -52
- package/dist/frontend/pages/studiocms_api/dashboard/templates.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/templates.js +0 -64
- package/dist/frontend/pages/studiocms_api/dashboard/update-user-notifications.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/update-user-notifications.js +0 -57
- package/dist/frontend/pages/studiocms_api/dashboard/users.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/users.js +0 -163
- package/dist/frontend/pages/studiocms_api/dashboard/verify-email.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/dashboard/verify-email.js +0 -62
- package/dist/frontend/pages/studiocms_api/dashboard/verify-session.d.ts +0 -20
- package/dist/frontend/pages/studiocms_api/dashboard/verify-session.js +0 -115
- package/dist/frontend/pages/studiocms_api/renderer/render.astro +0 -27
- package/dist/frontend/pages/studiocms_api/rest/utils/auth-token.d.ts +0 -17
- package/dist/frontend/pages/studiocms_api/rest/utils/auth-token.js +0 -29
- package/dist/frontend/pages/studiocms_api/rest/v1/folders/[id].d.ts +0 -16
- package/dist/frontend/pages/studiocms_api/rest/v1/folders/[id].js +0 -124
- package/dist/frontend/pages/studiocms_api/rest/v1/folders/index.d.ts +0 -16
- package/dist/frontend/pages/studiocms_api/rest/v1/folders/index.js +0 -100
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/[diffid].d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/[diffid].js +0 -55
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/index.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/index.js +0 -53
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/index.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/index.js +0 -172
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/index.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/pages/index.js +0 -125
- package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/[id].d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/[id].js +0 -40
- package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/index.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/index.js +0 -50
- package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/[id].d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/[id].js +0 -46
- package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/index.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/index.js +0 -55
- package/dist/frontend/pages/studiocms_api/rest/v1/settings/index.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/rest/v1/settings/index.js +0 -71
- package/dist/frontend/pages/studiocms_api/rest/v1/users/[id].d.ts +0 -12
- package/dist/frontend/pages/studiocms_api/rest/v1/users/[id].js +0 -286
- package/dist/frontend/pages/studiocms_api/rest/v1/users/index.d.ts +0 -28
- package/dist/frontend/pages/studiocms_api/rest/v1/users/index.js +0 -184
- package/dist/frontend/pages/studiocms_api/sdk/fallback-list-pages.json.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/sdk/fallback-list-pages.json.js +0 -33
- package/dist/frontend/pages/studiocms_api/sdk/full-changelog.json.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/sdk/full-changelog.json.js +0 -34
- package/dist/frontend/pages/studiocms_api/sdk/list-pages.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/sdk/list-pages.js +0 -43
- package/dist/frontend/pages/studiocms_api/sdk/update-latest-version-cache.d.ts +0 -1
- package/dist/frontend/pages/studiocms_api/sdk/update-latest-version-cache.js +0 -38
- package/dist/frontend/pages/studiocms_api/sdk/utils/changelog.d.ts +0 -14
- package/dist/frontend/pages/studiocms_api/sdk/utils/changelog.js +0 -96
- package/dist/frontend/routes.js +0 -364
- package/dist/frontend/scripts/auth/formListener.d.ts +0 -20
- package/dist/frontend/scripts/auth/formListener.js +0 -50
- package/dist/frontend/scripts/dateTimeListener.d.ts +0 -21
- package/dist/frontend/scripts/dateTimeListener.js +0 -9
- package/dist/frontend/scripts/dateWithTimeAndZone.d.ts +0 -35
- package/dist/frontend/scripts/dateWithTimeAndZone.js +0 -15
- package/dist/frontend/scripts/formdata-utils.d.ts +0 -142
- package/dist/frontend/scripts/formdata-utils.js +0 -53
- package/dist/frontend/scripts/timeAgo.d.ts +0 -41
- package/dist/frontend/scripts/timeAgo.js +0 -21
- package/dist/frontend/setup-pages/studiocms_api/dashboard/step-1.d.ts +0 -1
- package/dist/frontend/setup-pages/studiocms_api/dashboard/step-1.js +0 -113
- package/dist/frontend/setup-pages/studiocms_api/dashboard/step-2.d.ts +0 -1
- package/dist/frontend/setup-pages/studiocms_api/dashboard/step-2.js +0 -106
- package/dist/frontend/styles/404.css +0 -47
- package/dist/frontend/styles/auth-layout.css +0 -137
- package/dist/frontend/styles/code-component.css +0 -56
- package/dist/frontend/styles/dashboard-base.css +0 -454
- package/dist/frontend/styles/dashboard-diff.css +0 -377
- package/dist/integrations/webVitals/checkForWebVitalsPlugin.d.ts +0 -18
- package/dist/integrations/webVitals/checkForWebVitalsPlugin.js +0 -91
- package/dist/integrations/webVitals/consts.d.ts +0 -248
- package/dist/integrations/webVitals/consts.js +0 -40
- package/dist/integrations/webVitals/i18n/zh.d.ts +0 -24
- package/dist/integrations/webVitals/i18n/zh.js +0 -27
- package/dist/integrations/webVitals/utils/checkDate.d.ts +0 -5
- package/dist/integrations/webVitals/webVital.d.ts +0 -20
- package/dist/integrations/webVitals/webVital.js +0 -40
- package/dist/utils/effects/index.d.ts +0 -1
- package/dist/utils/effects/index.js +0 -6
- package/dist/utils/effects/logger.d.ts +0 -65
- package/dist/utils/effects/logger.js +0 -124
- package/dist/virtuals/mailer/template.d.ts +0 -23
- package/dist/virtuals/mailer/template.js +0 -14
- package/dist/virtuals/mailer/templates/index.d.ts +0 -4
- package/dist/virtuals/mailer/templates/index.js +0 -10
- package/dist/virtuals/mailer/templates/notification.d.ts +0 -5
- package/dist/virtuals/mailer/templates/notification.js +0 -39
- package/dist/virtuals/mailer/templates/password-reset.d.ts +0 -2
- package/dist/virtuals/mailer/templates/password-reset.js +0 -56
- package/dist/virtuals/mailer/templates/user-invite.d.ts +0 -5
- package/dist/virtuals/mailer/templates/user-invite.js +0 -53
- package/dist/virtuals/mailer/templates/verify-email.d.ts +0 -2
- package/dist/virtuals/mailer/templates/verify-email.js +0 -53
- package/dist/virtuals/scripts/template-editor.d.ts +0 -32
- package/dist/virtuals/scripts/template-editor.js +0 -244
- package/dist/virtuals/sdk/consts.d.ts +0 -45
- package/dist/virtuals/sdk/consts.js +0 -18
- package/dist/virtuals/sdk/effect/collectors.d.ts +0 -77
- package/dist/virtuals/sdk/effect/collectors.js +0 -147
- package/dist/virtuals/sdk/effect/db.d.ts +0 -29
- package/dist/virtuals/sdk/effect/db.js +0 -20
- package/dist/virtuals/sdk/effect/foldertree.d.ts +0 -43
- package/dist/virtuals/sdk/effect/foldertree.js +0 -200
- package/dist/virtuals/sdk/effect/generators.d.ts +0 -27
- package/dist/virtuals/sdk/effect/generators.js +0 -72
- package/dist/virtuals/sdk/effect/getVersionFromNPM.d.ts +0 -45
- package/dist/virtuals/sdk/effect/getVersionFromNPM.js +0 -24
- package/dist/virtuals/sdk/effect/index.d.ts +0 -7
- package/dist/virtuals/sdk/effect/index.js +0 -16
- package/dist/virtuals/sdk/effect/lib/jwt-generator.d.ts +0 -60
- package/dist/virtuals/sdk/effect/lib/jwt-generator.js +0 -62
- package/dist/virtuals/sdk/effect/parsers.d.ts +0 -31
- package/dist/virtuals/sdk/effect/parsers.js +0 -63
- package/dist/virtuals/sdk/effect/pluginUtils.d.ts +0 -89
- package/dist/virtuals/sdk/effect/pluginUtils.js +0 -80
- package/dist/virtuals/sdk/effect/users.d.ts +0 -40
- package/dist/virtuals/sdk/effect/users.js +0 -82
- package/dist/virtuals/sdk/errors.d.ts +0 -36
- package/dist/virtuals/sdk/errors.js +0 -17
- package/dist/virtuals/sdk/modules/auth.d.ts +0 -325
- package/dist/virtuals/sdk/modules/auth.js +0 -433
- package/dist/virtuals/sdk/modules/clear.d.ts +0 -87
- package/dist/virtuals/sdk/modules/clear.js +0 -136
- package/dist/virtuals/sdk/modules/config-types.d.ts +0 -147
- package/dist/virtuals/sdk/modules/config.d.ts +0 -127
- package/dist/virtuals/sdk/modules/config.js +0 -228
- package/dist/virtuals/sdk/modules/delete.d.ts +0 -130
- package/dist/virtuals/sdk/modules/delete.js +0 -245
- package/dist/virtuals/sdk/modules/diffTracking.d.ts +0 -157
- package/dist/virtuals/sdk/modules/diffTracking.js +0 -389
- package/dist/virtuals/sdk/modules/get.d.ts +0 -358
- package/dist/virtuals/sdk/modules/get.js +0 -836
- package/dist/virtuals/sdk/modules/init.d.ts +0 -61
- package/dist/virtuals/sdk/modules/init.js +0 -55
- package/dist/virtuals/sdk/modules/middlewares.d.ts +0 -33
- package/dist/virtuals/sdk/modules/middlewares.js +0 -83
- package/dist/virtuals/sdk/modules/notificationSettings.d.ts +0 -52
- package/dist/virtuals/sdk/modules/notificationSettings.js +0 -51
- package/dist/virtuals/sdk/modules/plugins.d.ts +0 -94
- package/dist/virtuals/sdk/modules/plugins.js +0 -344
- package/dist/virtuals/sdk/modules/post.d.ts +0 -209
- package/dist/virtuals/sdk/modules/post.js +0 -420
- package/dist/virtuals/sdk/modules/resetTokenBucket.d.ts +0 -64
- package/dist/virtuals/sdk/modules/resetTokenBucket.js +0 -91
- package/dist/virtuals/sdk/modules/rest_api.d.ts +0 -84
- package/dist/virtuals/sdk/modules/rest_api.js +0 -98
- package/dist/virtuals/sdk/modules/update.d.ts +0 -182
- package/dist/virtuals/sdk/modules/update.js +0 -306
- package/dist/virtuals/sdk/sdkCore.d.ts +0 -131
- package/dist/virtuals/sdk/sdkCore.js +0 -191
- package/dist/virtuals/sdk/tables.d.ts +0 -2
- package/dist/virtuals/sdk/tables.js +0 -5
- package/dist/virtuals/sdk/types/index.d.ts +0 -410
- package/dist/virtuals/sdk/types/tableDefs.d.ts +0 -76
- package/dist/virtuals/sdk/types/tableDefs.js +0 -0
- package/dist/virtuals/sdk/types/tsAlias.d.ts +0 -200
- package/dist/virtuals/sdk/types/tsAlias.js +0 -0
- package/dist/virtuals/sdk/utils.d.ts +0 -150
- package/dist/virtuals/sdk/utils.js +0 -90
- package/src/cli/add/index.ts +0 -294
- package/src/cli/add/npm-utils.ts +0 -166
- package/src/cli/add/tryToInstallPlugins.ts +0 -113
- package/src/cli/add/updateStudioCMSConfig.ts +0 -103
- package/src/cli/add/validatePlugins.ts +0 -104
- package/src/cli/crypto/genJWT/index.ts +0 -164
- package/src/cli/crypto/index.ts +0 -7
- package/src/cli/getTurso/index.ts +0 -12
- package/src/cli/index.ts +0 -35
- package/src/cli/init/index.ts +0 -104
- package/src/cli/init/steps/env.ts +0 -518
- package/src/cli/init/steps/next.ts +0 -51
- package/src/cli/users/index.ts +0 -157
- package/src/cli/users/steps/libsql/createUsers.ts +0 -169
- package/src/cli/users/steps/libsql/modifyUsers.ts +0 -229
- package/src/cli/users/steps/next.ts +0 -18
- package/src/cli/utils/checkRequiredEnvVars.ts +0 -58
- package/src/cli/utils/context.ts +0 -69
- package/src/cli/utils/dateAdd.ts +0 -63
- package/src/cli/utils/effectBoxen.ts +0 -49
- package/src/cli/utils/intro.ts +0 -43
- package/src/cli/utils/logger.ts +0 -43
- package/src/cli/utils/seasonal.ts +0 -92
- package/src/cli/utils/studiocmsEnv.ts +0 -107
- package/src/cli/utils/types.ts +0 -53
- package/src/cli/utils/useLibSQLDb.ts +0 -63
- package/src/cli/utils/user-utils.ts +0 -50
- package/src/config.ts +0 -32
- package/src/consts.ts +0 -373
- package/src/db/config.ts +0 -321
- package/src/effect.ts +0 -9
- package/src/errors.ts +0 -21
- package/src/frontend/components/auth/FallbackCanvas.astro +0 -124
- package/src/frontend/components/auth/OAuthButton.astro +0 -21
- package/src/frontend/components/auth/OAuthButtonStack.astro +0 -36
- package/src/frontend/components/auth/StaticAuthCheck.astro +0 -25
- package/src/frontend/components/auth/StudioCMSLogoSVG.astro +0 -13
- package/src/frontend/components/auth/ThreeCanvasLoader.astro +0 -15
- package/src/frontend/components/dashboard/BaseHead.astro +0 -25
- package/src/frontend/components/dashboard/DashboardGrid.astro +0 -57
- package/src/frontend/components/dashboard/DoubleSidebar.astro +0 -33
- package/src/frontend/components/dashboard/LoginChecker.astro +0 -68
- package/src/frontend/components/dashboard/MainSidebarContent.astro +0 -342
- package/src/frontend/components/dashboard/PageHeader.astro +0 -53
- package/src/frontend/components/dashboard/SidebarLink.astro +0 -177
- package/src/frontend/components/dashboard/SidebarModals.astro +0 -13
- package/src/frontend/components/dashboard/SidebarPluginLink.astro +0 -43
- package/src/frontend/components/dashboard/SingleSidebar.astro +0 -30
- package/src/frontend/components/dashboard/StudioCMSLogo.astro +0 -12
- package/src/frontend/components/dashboard/UserName.astro +0 -10
- package/src/frontend/components/dashboard/configuration/LoginPreview.astro +0 -261
- package/src/frontend/components/dashboard/content-mgmt/CreateFolder.astro +0 -122
- package/src/frontend/components/dashboard/content-mgmt/EditPage.astro +0 -741
- package/src/frontend/components/dashboard/content-mgmt/PageEditorSwapper.astro +0 -107
- package/src/frontend/components/dashboard/content-mgmt/PageList.astro +0 -19
- package/src/frontend/components/dashboard/content-mgmt/PageTypeHandler.astro +0 -107
- package/src/frontend/components/dashboard/content-mgmt/PluginFields.astro +0 -33
- package/src/frontend/components/dashboard/content-mgmt/TreeRenderer.astro +0 -73
- package/src/frontend/components/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -145
- package/src/frontend/components/dashboard/content-mgmt/TreeSidebarLink.astro +0 -143
- package/src/frontend/components/dashboard/plugins/SettingsRenderer.astro +0 -33
- package/src/frontend/components/dashboard/profile/APITokens.astro +0 -311
- package/src/frontend/components/dashboard/profile/BasicInfo.astro +0 -191
- package/src/frontend/components/dashboard/profile/Notifications.astro +0 -241
- package/src/frontend/components/dashboard/profile/SocialSignin.astro +0 -190
- package/src/frontend/components/dashboard/profile/UpdatePassword.astro +0 -172
- package/src/frontend/components/dashboard/sidebar/UserAccount.astro +0 -61
- package/src/frontend/components/dashboard/sidebar/VersionCheckChangelog.astro +0 -130
- package/src/frontend/components/dashboard/sidebar-modals/UserManagementModals.astro +0 -108
- package/src/frontend/components/dashboard/smtp-config/TemplateEditor.astro +0 -107
- package/src/frontend/components/dashboard/user-mgmt/RankCheck.astro +0 -57
- package/src/frontend/components/dashboard/user-mgmt/SocialSignin.astro +0 -108
- package/src/frontend/components/dashboard/user-mgmt/UserListItem.astro +0 -143
- package/src/frontend/components/first-time-setup/PageHeader.astro +0 -61
- package/src/frontend/components/shared/Code.astro +0 -76
- package/src/frontend/components/shared/ThemeManager.astro +0 -53
- package/src/frontend/components/shared/head/Favicons.astro +0 -6
- package/src/frontend/components/shared/head/Global.astro +0 -4
- package/src/frontend/components/shared/head/TitleTags.astro +0 -14
- package/src/frontend/fonts/woff2/onest-variable.woff2 +0 -0
- package/src/frontend/fonts/woff2/syntax.woff2 +0 -0
- package/src/frontend/layouts/AuthLayout.astro +0 -63
- package/src/frontend/layouts/DashboardLayout.astro +0 -93
- package/src/frontend/layouts/FirstTimeSetupLayout.astro +0 -53
- package/src/frontend/pages/[dashboard]/configuration.astro +0 -67
- package/src/frontend/pages/[dashboard]/content-management/createfolder.astro +0 -98
- package/src/frontend/pages/[dashboard]/content-management/createpage.astro +0 -98
- package/src/frontend/pages/[dashboard]/content-management/diff.astro +0 -367
- package/src/frontend/pages/[dashboard]/content-management/editfolder.astro +0 -82
- package/src/frontend/pages/[dashboard]/content-management/editpage.astro +0 -83
- package/src/frontend/pages/[dashboard]/content-management/index.astro +0 -106
- package/src/frontend/pages/[dashboard]/index.astro +0 -61
- package/src/frontend/pages/[dashboard]/login.astro +0 -269
- package/src/frontend/pages/[dashboard]/logout.astro +0 -153
- package/src/frontend/pages/[dashboard]/password-reset.astro +0 -245
- package/src/frontend/pages/[dashboard]/plugins/[plugin].astro +0 -109
- package/src/frontend/pages/[dashboard]/profile.astro +0 -89
- package/src/frontend/pages/[dashboard]/signup.astro +0 -123
- package/src/frontend/pages/[dashboard]/user-management/edit.astro +0 -692
- package/src/frontend/pages/[dashboard]/user-management/index.astro +0 -108
- package/src/frontend/pages/studiocms_api/dashboard/partials/Editor.astro +0 -74
- package/src/frontend/pages/studiocms_api/dashboard/partials/UserListItems.astro +0 -43
- package/src/frontend/routes.ts +0 -481
- package/src/frontend/setup-pages/1-start.astro +0 -164
- package/src/frontend/setup-pages/2-next.astro +0 -225
- package/src/frontend/setup-pages/3-done.astro +0 -92
- package/src/frontend/setup-pages/index.astro +0 -6
- package/src/frontend/types.ts +0 -50
- package/src/frontend/utils.ts +0 -166
- package/src/global.d.ts +0 -11
- package/src/handlers/astroConfigCheck.ts +0 -41
- package/src/handlers/changelog.ts +0 -67
- package/src/handlers/index.ts +0 -4
- package/src/handlers/plugin-components/Recently-created-pages.astro +0 -103
- package/src/handlers/plugin-components/Recently-signed-up.astro +0 -71
- package/src/handlers/plugin-components/Recently-updated-pages.astro +0 -107
- package/src/handlers/plugin-components/Totals.astro +0 -114
- package/src/handlers/plugin-components/utils.ts +0 -48
- package/src/handlers/plugin-i18n/de.ts +0 -22
- package/src/handlers/plugin-i18n/en.ts +0 -23
- package/src/handlers/plugin-i18n/es.ts +0 -22
- package/src/handlers/plugin-i18n/fr.ts +0 -22
- package/src/handlers/plugin-i18n/nl.ts +0 -22
- package/src/handlers/plugin-i18n/no.ts +0 -22
- package/src/handlers/plugin-i18n/zh.ts +0 -22
- package/src/handlers/pluginHandler.ts +0 -1216
- package/src/handlers/routeHandler.ts +0 -52
- package/src/index.ts +0 -485
- package/src/integrations/dynamic-sitemap/index.ts +0 -102
- package/src/integrations/dynamic-sitemap/sitemap-index.xml.ts +0 -45
- package/src/integrations/node-namespace.ts +0 -48
- package/src/integrations/plugins.ts +0 -6
- package/src/integrations/robots/core.ts +0 -306
- package/src/integrations/robots/index.ts +0 -48
- package/src/integrations/robots/schema.ts +0 -266
- package/src/integrations/robots/utils.ts +0 -28
- package/src/integrations/webVitals/checkForWebVitalsPlugin.ts +0 -130
- package/src/integrations/webVitals/dashboard-grid-items/CoreVitals.astro +0 -66
- package/src/integrations/webVitals/dashboard-grid-items/MetricCard.astro +0 -25
- package/src/integrations/webVitals/dashboard-grid-items/SummaryCard.astro +0 -56
- package/src/integrations/webVitals/dashboard-grid-items/metric.css +0 -131
- package/src/integrations/webVitals/dashboard-grid-items/shared.ts +0 -40
- package/src/integrations/webVitals/i18n/de.ts +0 -24
- package/src/integrations/webVitals/i18n/en.ts +0 -25
- package/src/integrations/webVitals/i18n/es.ts +0 -24
- package/src/integrations/webVitals/i18n/fr.ts +0 -24
- package/src/integrations/webVitals/i18n/nl.ts +0 -24
- package/src/integrations/webVitals/i18n/no.ts +0 -24
- package/src/integrations/webVitals/i18n/zh.ts +0 -24
- package/src/integrations/webVitals/pages/analytics/body.astro +0 -187
- package/src/integrations/webVitals/pages/analytics/header.astro +0 -42
- package/src/integrations/webVitals/schemas.ts +0 -120
- package/src/integrations/webVitals/types.ts +0 -171
- package/src/integrations/webVitals/utils/buildDataObject.ts +0 -43
- package/src/integrations/webVitals/utils/buildPageRouteDataObject.ts +0 -84
- package/src/integrations/webVitals/utils/buildPerPageDataObject.ts +0 -258
- package/src/integrations/webVitals/utils/checkDate.ts +0 -16
- package/src/integrations/webVitals/utils/webVitalsUtils.ts +0 -328
- package/src/integrations/webVitals/webVital.ts +0 -92
- package/src/integrations/webVitals/webVitalsRouteSummary.ts +0 -112
- package/src/integrations/webVitals/webVitalsSummary.ts +0 -89
- package/src/oAuthUtils.ts +0 -44
- package/src/plugins.ts +0 -54
- package/src/runtime/index.ts +0 -2
- package/src/schemas/config/auth.ts +0 -49
- package/src/schemas/config/dashboard.ts +0 -42
- package/src/schemas/config/developer.ts +0 -27
- package/src/schemas/config/index.ts +0 -137
- package/src/schemas/config/sdk.ts +0 -178
- package/src/schemas/index.ts +0 -4
- package/src/schemas/plugins/i18n.ts +0 -67
- package/src/schemas/plugins/index.ts +0 -487
- package/src/schemas/plugins/shared.ts +0 -759
- package/src/test-utils.ts +0 -231
- package/src/theme.d.ts +0 -9
- package/src/types.ts +0 -166
- package/src/utils/effects/index.ts +0 -1
- package/src/utils/effects/logger.ts +0 -269
- package/src/utils/effects/smtp.ts +0 -161
- package/src/utils/lang-helper.ts +0 -78
- package/src/utils/safeString.ts +0 -5
- package/src/utils/stripIconify.ts +0 -20
- package/src/utils/tinyMDParser.ts +0 -14
- package/src/virtual.d.ts +0 -663
- package/src/virtuals/auth/core.ts +0 -82
- package/src/virtuals/auth/getLabelForPermissionLevel.ts +0 -21
- package/src/virtuals/auth/index.ts +0 -161
- package/src/virtuals/auth/scripts/three.ts +0 -647
- package/src/virtuals/auth/scripts/utils/fitModelToViewport.ts +0 -50
- package/src/virtuals/auth/types.ts +0 -91
- package/src/virtuals/auth/validImages/index.ts +0 -52
- 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/virtuals/auth/verify-email.ts +0 -316
- package/src/virtuals/components/CustomImage.astro +0 -72
- package/src/virtuals/components/FormattedDate.astro +0 -19
- package/src/virtuals/components/Generator.astro +0 -5
- package/src/virtuals/components/Renderer.astro +0 -62
- package/src/virtuals/components/renderFn.ts +0 -101
- package/src/virtuals/i18n/LanguageSelector.astro +0 -65
- package/src/virtuals/i18n/client.ts +0 -283
- package/src/virtuals/i18n/config.ts +0 -177
- package/src/virtuals/i18n/overrides.ts +0 -10
- package/src/virtuals/i18n/plugin.ts +0 -105
- package/src/virtuals/i18n/server.ts +0 -197
- package/src/virtuals/i18n/translations/de.json +0 -374
- package/src/virtuals/i18n/translations/en.json +0 -374
- package/src/virtuals/i18n/translations/es.json +0 -374
- package/src/virtuals/i18n/translations/fr.json +0 -374
- package/src/virtuals/i18n/translations/hi.json +0 -299
- package/src/virtuals/i18n/translations/nl.json +0 -374
- package/src/virtuals/i18n/translations/no.json +0 -374
- package/src/virtuals/i18n/translations/zh.json +0 -374
- package/src/virtuals/i18n/v-files.ts +0 -153
- package/src/virtuals/lib/head.ts +0 -4
- package/src/virtuals/lib/headDefaults.ts +0 -138
- package/src/virtuals/lib/makeAPIRoute.ts +0 -54
- package/src/virtuals/lib/makePublicRoute.ts +0 -9
- package/src/virtuals/lib/pathGenerators.ts +0 -1
- package/src/virtuals/lib/routeMap.ts +0 -372
- package/src/virtuals/lib/urlGen.ts +0 -18
- package/src/virtuals/mailer/index.ts +0 -215
- package/src/virtuals/mailer/template.ts +0 -23
- package/src/virtuals/mailer/templates/index.ts +0 -4
- package/src/virtuals/mailer/templates/notification.ts +0 -37
- package/src/virtuals/mailer/templates/password-reset.ts +0 -54
- package/src/virtuals/mailer/templates/user-invite.ts +0 -51
- package/src/virtuals/mailer/templates/verify-email.ts +0 -51
- package/src/virtuals/notifier/client.ts +0 -23
- package/src/virtuals/notifier/index.ts +0 -341
- package/src/virtuals/plugins/dashboard-pages.ts +0 -14
- package/src/virtuals/plugins/frontend-navigation.ts +0 -73
- package/src/virtuals/plugins/index.ts +0 -2
- package/src/virtuals/scripts/user-quick-tools.ts +0 -874
- package/src/virtuals/sdk/consts.ts +0 -52
- package/src/virtuals/sdk/effect/collectors.ts +0 -293
- package/src/virtuals/sdk/effect/db.ts +0 -40
- package/src/virtuals/sdk/effect/foldertree.ts +0 -336
- package/src/virtuals/sdk/effect/generators.ts +0 -118
- package/src/virtuals/sdk/effect/getVersionFromNPM.ts +0 -61
- package/src/virtuals/sdk/effect/index.ts +0 -7
- package/src/virtuals/sdk/effect/lib/jwt-generator.ts +0 -141
- package/src/virtuals/sdk/effect/parsers.ts +0 -113
- package/src/virtuals/sdk/effect/pluginUtils.ts +0 -192
- package/src/virtuals/sdk/effect/users.ts +0 -168
- package/src/virtuals/sdk/errors.ts +0 -40
- package/src/virtuals/sdk/index.ts +0 -49
- package/src/virtuals/sdk/modules/auth.ts +0 -542
- package/src/virtuals/sdk/modules/clear.ts +0 -179
- package/src/virtuals/sdk/modules/config-types.ts +0 -164
- package/src/virtuals/sdk/modules/config.ts +0 -499
- package/src/virtuals/sdk/modules/delete.ts +0 -280
- package/src/virtuals/sdk/modules/diffTracking.ts +0 -555
- package/src/virtuals/sdk/modules/get.ts +0 -1246
- package/src/virtuals/sdk/modules/init.ts +0 -77
- package/src/virtuals/sdk/modules/middlewares.ts +0 -127
- package/src/virtuals/sdk/modules/notificationSettings.ts +0 -81
- package/src/virtuals/sdk/modules/plugins.ts +0 -762
- package/src/virtuals/sdk/modules/post.ts +0 -532
- package/src/virtuals/sdk/modules/resetTokenBucket.ts +0 -143
- package/src/virtuals/sdk/modules/rest_api.ts +0 -142
- package/src/virtuals/sdk/modules/update.ts +0 -415
- package/src/virtuals/sdk/sdkCore.ts +0 -318
- package/src/virtuals/sdk/tables.ts +0 -4
- package/src/virtuals/sdk/types/index.ts +0 -471
- package/src/virtuals/sdk/types/tableDefs.ts +0 -108
- package/src/virtuals/sdk/types/tsAlias.ts +0 -248
- package/src/virtuals/sdk/utils.ts +0 -240
- package/src/virtuals/stubs/config.stub.js +0 -9
- package/src/virtuals/stubs/logger.stub.js +0 -30
- package/src/virtuals/template-engine/default-templates.ts +0 -215
- package/src/virtuals/template-engine/index.ts +0 -95
- package/src/virtuals/utils.ts +0 -134
- /package/dist/{frontend → handlers/frontend}/types.d.ts +0 -0
- /package/dist/{frontend → handlers/frontend}/types.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/CoreVitals.astro +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/MetricCard.astro +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/SummaryCard.astro +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/metric.css +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/shared.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/pages/analytics/body.astro +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/pages/analytics/header.astro +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/schemas.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/schemas.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/types.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/types.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildDataObject.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPageRouteDataObject.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPageRouteDataObject.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPerPageDataObject.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPerPageDataObject.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/checkDate.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/webVitalsUtils.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/webVitalsUtils.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsRouteSummary.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsRouteSummary.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsSummary.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsSummary.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/de.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/de.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/en.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/en.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/es.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/es.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/fr.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/fr.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/nl.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/nl.js +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/no.d.ts +0 -0
- /package/dist/{integrations/webVitals → plugins/analytics}/i18n/no.js +0 -0
- /package/dist/{virtuals/sdk/modules/config-types.js → toolbar/db-viewer/db-shared-types.js} +0 -0
- /package/dist/{virtuals/sdk/types/index.js → toolbar/db-viewer/studio/type.js} +0 -0
- /package/{dist/frontend → frontend}/components/auth/FallbackCanvas.astro +0 -0
- /package/{dist/frontend → frontend}/components/auth/OAuthButton.astro +0 -0
- /package/{dist/frontend → frontend}/components/auth/OAuthButtonStack.astro +0 -0
- /package/{dist/frontend → frontend}/components/auth/StaticAuthCheck.astro +0 -0
- /package/{dist/frontend → frontend}/components/auth/StudioCMSLogoSVG.astro +0 -0
- /package/{dist/frontend → frontend}/components/auth/ThreeCanvasLoader.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/DoubleSidebar.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/MainSidebarContent.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/PageHeader.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/SidebarLink.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/SidebarModals.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/SidebarPluginLink.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/SingleSidebar.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/StudioCMSLogo.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/UserName.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/configuration/LoginPreview.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/PageEditorSwapper.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/PageTypeHandler.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/TreeRenderer.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/TreeSidebarLink.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/profile/APITokens.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/profile/BasicInfo.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/profile/SocialSignin.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/profile/UpdatePassword.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/sidebar/UserAccount.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/sidebar/VersionCheckChangelog.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/sidebar-modals/UserManagementModals.astro +0 -0
- /package/{dist/frontend → frontend}/components/dashboard/user-mgmt/SocialSignin.astro +0 -0
- /package/{dist/frontend → frontend}/components/first-time-setup/PageHeader.astro +0 -0
- /package/{src/frontend → frontend}/components/first-time-setup/snippets/opt1-astro.config.diff +0 -0
- /package/{src/frontend → frontend}/components/first-time-setup/snippets/opt2-astro.config.diff +0 -0
- /package/{src/frontend → frontend}/components/first-time-setup/snippets/opt2-studiocms.config.diff +0 -0
- /package/{dist/frontend → frontend}/components/shared/Code.astro +0 -0
- /package/{dist/frontend → frontend}/components/shared/ThemeManager.astro +0 -0
- /package/{src/frontend → frontend}/components/shared/oAuthButtonProviders.ts +0 -0
- /package/{src/frontend → frontend}/fonts/css/onest-variable.css +0 -0
- /package/{src/frontend → frontend}/fonts/css/syntax.css +0 -0
- /package/{dist/frontend → frontend}/fonts/woff2/onest-variable.woff2 +0 -0
- /package/{dist/frontend → frontend}/fonts/woff2/syntax.woff2 +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/configuration.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/createfolder.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/createpage.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/editfolder.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/editpage.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/index.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/index.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/login.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/logout.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/password-reset.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/plugins/[plugin].astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/profile.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/signup.astro +0 -0
- /package/{dist/frontend → frontend}/pages/[dashboard]/user-management/index.astro +0 -0
- /package/{dist/frontend → frontend}/pages/studiocms_api/dashboard/partials/Editor.astro +0 -0
- /package/{dist/frontend → frontend}/pages/studiocms_api/dashboard/partials/UserListItems.astro +0 -0
- /package/{src/frontend → frontend}/scripts/auth/formListener.ts +0 -0
- /package/{src/frontend → frontend}/scripts/dateTimeListener.ts +0 -0
- /package/{src/frontend → frontend}/scripts/dateWithTimeAndZone.ts +0 -0
- /package/{src/frontend → frontend}/scripts/formdata-utils.ts +0 -0
- /package/{src/frontend → frontend}/scripts/timeAgo.ts +0 -0
- /package/{dist/frontend → frontend}/setup-pages/index.astro +0 -0
- /package/{src/frontend → frontend}/styles/404.css +0 -0
- /package/{src/frontend → frontend}/styles/auth-layout.css +0 -0
- /package/{src/frontend → frontend}/styles/code-component.css +0 -0
- /package/{src/frontend → frontend}/styles/dashboard-base.css +0 -0
- /package/{src/frontend → frontend}/styles/dashboard-diff.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,89 @@
|
|
|
1
1
|
# studiocms
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1022](https://github.com/withstudiocms/studiocms/pull/1022) [`746c717`](https://github.com/withstudiocms/studiocms/commit/746c717fed390e0e9aaea7f3db147afcee42820f) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements the ability to set default language from StudioCMS config file
|
|
8
|
+
|
|
9
|
+
- [#1052](https://github.com/withstudiocms/studiocms/pull/1052) [`b81924e`](https://github.com/withstudiocms/studiocms/commit/b81924ebc2e6656eaf8117988a33819196b04aed) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements System Management dashboard page, and new built-in database viewer utility
|
|
10
|
+
|
|
11
|
+
- [#1046](https://github.com/withstudiocms/studiocms/pull/1046) [`39cf90d`](https://github.com/withstudiocms/studiocms/commit/39cf90dc8acdaff624f4a170e82bd97f7dd5703a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates usage of createResolver to use createPathResolver from @withstudiocms/internal_helpers package
|
|
12
|
+
|
|
13
|
+
- [#1047](https://github.com/withstudiocms/studiocms/pull/1047) [`9a8bfed`](https://github.com/withstudiocms/studiocms/commit/9a8bfeda461dbc7e3188222db3adeffca1c29f6a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors code structure to move all code that does not need to be built into it's own frontend folder, allowing us to no longer ship both SRC and DIST, instead having DIST and FRONTEND folders instead. Frontend folder being specific to serving and handling Astro pages and endpoints
|
|
14
|
+
|
|
15
|
+
- [#1018](https://github.com/withstudiocms/studiocms/pull/1018) [`cb027b2`](https://github.com/withstudiocms/studiocms/commit/cb027b20d2620410ecde80b06a66f57b964fb4b1) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency nanostores to ^1.1.0
|
|
16
|
+
|
|
17
|
+
- [#1040](https://github.com/withstudiocms/studiocms/pull/1040) [`86d2825`](https://github.com/withstudiocms/studiocms/commit/86d2825f8f077eed158ddd3e9d25e02ff0794804) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
18
|
+
|
|
19
|
+
- [#1063](https://github.com/withstudiocms/studiocms/pull/1063) [`52758e0`](https://github.com/withstudiocms/studiocms/commit/52758e0fc518dcb10d2416b9cec7cc1287e71408) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
20
|
+
|
|
21
|
+
- [#998](https://github.com/withstudiocms/studiocms/pull/998) [`25d5f6e`](https://github.com/withstudiocms/studiocms/commit/25d5f6ef79c39f4d69418b1dd0cae87f8d646dd1) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
|
|
22
|
+
|
|
23
|
+
- [#1030](https://github.com/withstudiocms/studiocms/pull/1030) [`66480a1`](https://github.com/withstudiocms/studiocms/commit/66480a19943ca42b8471c76984321a9f6bd13d94) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Introduces new plugin helpers for DB interactions
|
|
24
|
+
|
|
25
|
+
- [#1023](https://github.com/withstudiocms/studiocms/pull/1023) [`43483c4`](https://github.com/withstudiocms/studiocms/commit/43483c455a648f804b4c6f418878830c396bc6f5) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements dynamic components/scripts for the StudioCMS dashboard injectable through plugins
|
|
26
|
+
|
|
27
|
+
- [#1048](https://github.com/withstudiocms/studiocms/pull/1048) [`27fd297`](https://github.com/withstudiocms/studiocms/commit/27fd2975d8390728dc8af582ddff1a7691c9a3d2) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors StudioCMS config processing and loading to simplify how and where configs can load. StudioCMS now no longer supports in-line config, you MUST use a `studiocms.config.*` file.
|
|
28
|
+
|
|
29
|
+
- [#1053](https://github.com/withstudiocms/studiocms/pull/1053) [`5f406bc`](https://github.com/withstudiocms/studiocms/commit/5f406bc8cb4324e75dfc8b5b3140b6a73a1cbf08) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements new internal helpers for handling debug info
|
|
30
|
+
|
|
31
|
+
- [#1045](https://github.com/withstudiocms/studiocms/pull/1045) [`2e2886d`](https://github.com/withstudiocms/studiocms/commit/2e2886d59646660e04dc9d0d4d2d1c08c607f733) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Adds new middleware to handle and display errors to prevent dead pages
|
|
32
|
+
|
|
33
|
+
- [#1033](https://github.com/withstudiocms/studiocms/pull/1033) [`262442b`](https://github.com/withstudiocms/studiocms/commit/262442bab6538b91b9959449b4aa473d70e0126a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - fixes broken type
|
|
34
|
+
|
|
35
|
+
- [#1044](https://github.com/withstudiocms/studiocms/pull/1044) [`72e1359`](https://github.com/withstudiocms/studiocms/commit/72e1359d9081f33f6a3d73e1f44774cdf9be0afd) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleans up CLI utilities and refactors initCMD env step to work with new kysely based SDK
|
|
36
|
+
|
|
37
|
+
- [#1054](https://github.com/withstudiocms/studiocms/pull/1054) [`c7c9b91`](https://github.com/withstudiocms/studiocms/commit/c7c9b918b426d253c4e33b5e8c7ead9c650339da) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Integrates option Analytics plugin into StudioCMS to replace previous web vitals astrodb integration
|
|
38
|
+
|
|
39
|
+
- [#1031](https://github.com/withstudiocms/studiocms/pull/1031) [`1359631`](https://github.com/withstudiocms/studiocms/commit/13596311bfbb6e64ff862dc2d1b902eb6a9199e9) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Modifies types and schemas to allow proper JSDoc comments to be present
|
|
40
|
+
|
|
41
|
+
- [#1029](https://github.com/withstudiocms/studiocms/pull/1029) [`da369c7`](https://github.com/withstudiocms/studiocms/commit/da369c7bd8f40670cb56821d74686c79840f06e4) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Integrates new Kysely based SDK into StudioCMS
|
|
42
|
+
|
|
43
|
+
- [#1021](https://github.com/withstudiocms/studiocms/pull/1021) [`015a509`](https://github.com/withstudiocms/studiocms/commit/015a5095279680384143db8422ae0032ee8360b2) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements testers for plugin renderers as well as augments
|
|
44
|
+
|
|
45
|
+
- [#1036](https://github.com/withstudiocms/studiocms/pull/1036) [`ddae77d`](https://github.com/withstudiocms/studiocms/commit/ddae77dbb22376803c4c166323dff161fe30d030) Thanks [@renovate](https://github.com/apps/renovate)! - lint
|
|
46
|
+
|
|
47
|
+
- [#1026](https://github.com/withstudiocms/studiocms/pull/1026) [`85727e5`](https://github.com/withstudiocms/studiocms/commit/85727e51a1c90a8f82ce8ca6f1ff6fabc9f3f090) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors and unifies base page layout for all layouts for StudioCMS dashboard/auth/first-time setup pages
|
|
48
|
+
|
|
49
|
+
- [#1069](https://github.com/withstudiocms/studiocms/pull/1069) [`a5ba52e`](https://github.com/withstudiocms/studiocms/commit/a5ba52e9c06e6aa7318d40561c6e3a919d6b1988) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Move template editor logic into component instead of built script
|
|
50
|
+
|
|
51
|
+
- [#1028](https://github.com/withstudiocms/studiocms/pull/1028) [`dd259eb`](https://github.com/withstudiocms/studiocms/commit/dd259eb714fde4f1708cb9ad1f3dcb8b3f6b7661) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Allows disabling generator head tags in the dashboard via the `security.hideGeneratorTags` option in the dashboard config
|
|
52
|
+
|
|
53
|
+
- [#1010](https://github.com/withstudiocms/studiocms/pull/1010) [`a416585`](https://github.com/withstudiocms/studiocms/commit/a4165851f3ae44c43aa21c270ecfe9ea1dfa5f59) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors plugin hooks
|
|
54
|
+
|
|
55
|
+
- [#1050](https://github.com/withstudiocms/studiocms/pull/1050) [`c24b655`](https://github.com/withstudiocms/studiocms/commit/c24b655e74a53fbf0b7a5a47f9d65270f0c3defc) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleans up unused mailer template code from before the new template engine system was implemented
|
|
56
|
+
|
|
57
|
+
- [#1049](https://github.com/withstudiocms/studiocms/pull/1049) [`962d5ae`](https://github.com/withstudiocms/studiocms/commit/962d5aebb1c4e44d2fc4fe4d652300776ebaed35) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors and cleans up Folder structure system to ensure urlRoute property on CombinedPageData return resolves correctly
|
|
58
|
+
|
|
59
|
+
- [#1024](https://github.com/withstudiocms/studiocms/pull/1024) [`5756c15`](https://github.com/withstudiocms/studiocms/commit/5756c156d9adb4036029f930308606338fb39b6a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements migrator CLI
|
|
60
|
+
|
|
61
|
+
- [#1025](https://github.com/withstudiocms/studiocms/pull/1025) [`455a82a`](https://github.com/withstudiocms/studiocms/commit/455a82aff8f6430df3a40b2edbcf6f05bb4d4c9d) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Update ghost image url and cleanup lint/type weirdness
|
|
62
|
+
|
|
63
|
+
- [#1067](https://github.com/withstudiocms/studiocms/pull/1067) [`747e0e2`](https://github.com/withstudiocms/studiocms/commit/747e0e2b9e3a1b9de3933ab0c153f44ece66d454) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Adds `studiocms debug` command for displaying debug information similar to `astro debug`
|
|
64
|
+
|
|
65
|
+
- [#1001](https://github.com/withstudiocms/studiocms/pull/1001) [`a0f45c5`](https://github.com/withstudiocms/studiocms/commit/a0f45c5d9c034cf63d0d36a1c4c1eef598533bb6) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #1001)
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [[`262442b`](https://github.com/withstudiocms/studiocms/commit/262442bab6538b91b9959449b4aa473d70e0126a), [`ee90810`](https://github.com/withstudiocms/studiocms/commit/ee9081053f808d4366a9c95e13539a5198b27bb5), [`a5b84c5`](https://github.com/withstudiocms/studiocms/commit/a5b84c52383bf299aa70c04b064850c7883b59b1), [`66480a1`](https://github.com/withstudiocms/studiocms/commit/66480a19943ca42b8471c76984321a9f6bd13d94), [`944e965`](https://github.com/withstudiocms/studiocms/commit/944e965e535f988ef2b9666d26739f65083bbc2d), [`27fd297`](https://github.com/withstudiocms/studiocms/commit/27fd2975d8390728dc8af582ddff1a7691c9a3d2), [`5f406bc`](https://github.com/withstudiocms/studiocms/commit/5f406bc8cb4324e75dfc8b5b3140b6a73a1cbf08), [`9a8bfed`](https://github.com/withstudiocms/studiocms/commit/9a8bfeda461dbc7e3188222db3adeffca1c29f6a), [`ba79740`](https://github.com/withstudiocms/studiocms/commit/ba797403563b8fbd381e0fc28f4ccba0ec6432a6), [`3c54788`](https://github.com/withstudiocms/studiocms/commit/3c54788df0bd548f1e3489b7c7334279ee85d5cb), [`747e0e2`](https://github.com/withstudiocms/studiocms/commit/747e0e2b9e3a1b9de3933ab0c153f44ece66d454), [`5cfd64b`](https://github.com/withstudiocms/studiocms/commit/5cfd64b743e6d716cffa05dffda6fb94d11e8251), [`1e1e6a1`](https://github.com/withstudiocms/studiocms/commit/1e1e6a1038de31bfe73070b4feb7163a3e7385a0), [`da369c7`](https://github.com/withstudiocms/studiocms/commit/da369c7bd8f40670cb56821d74686c79840f06e4), [`3fbc758`](https://github.com/withstudiocms/studiocms/commit/3fbc75812bbf4f27d8bb27a3c35c78d87616a2b6), [`ddae77d`](https://github.com/withstudiocms/studiocms/commit/ddae77dbb22376803c4c166323dff161fe30d030), [`c7c9b91`](https://github.com/withstudiocms/studiocms/commit/c7c9b918b426d253c4e33b5e8c7ead9c650339da), [`d857f5c`](https://github.com/withstudiocms/studiocms/commit/d857f5c7e76336f41541aeb0aae73f07f73d875c), [`5756c15`](https://github.com/withstudiocms/studiocms/commit/5756c156d9adb4036029f930308606338fb39b6a), [`39cf90d`](https://github.com/withstudiocms/studiocms/commit/39cf90dc8acdaff624f4a170e82bd97f7dd5703a), [`97c7847`](https://github.com/withstudiocms/studiocms/commit/97c7847c0cdd41998e0a6d8c61ab6f3c4ac4474e), [`675b7d5`](https://github.com/withstudiocms/studiocms/commit/675b7d5bbb2c40e6a204d3c7227812923e37289f), [`962d5ae`](https://github.com/withstudiocms/studiocms/commit/962d5aebb1c4e44d2fc4fe4d652300776ebaed35), [`8da7850`](https://github.com/withstudiocms/studiocms/commit/8da7850d4cf4a2a7d1634081f92d5728ca5f0d9e)]:
|
|
68
|
+
- @withstudiocms/kysely@0.1.0-beta.1
|
|
69
|
+
- @withstudiocms/effect@0.1.0-beta.7
|
|
70
|
+
- @withstudiocms/sdk@0.1.0-beta.1
|
|
71
|
+
- @withstudiocms/config-utils@0.1.0-beta.5
|
|
72
|
+
- @withstudiocms/internal_helpers@0.1.0-beta.4
|
|
73
|
+
- @withstudiocms/component-registry@0.1.0-beta.7
|
|
74
|
+
- @withstudiocms/auth-kit@0.1.0-beta.6
|
|
75
|
+
|
|
76
|
+
## 0.1.0-beta.30
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- [#983](https://github.com/withstudiocms/studiocms/pull/983) [`044f30e`](https://github.com/withstudiocms/studiocms/commit/044f30e510eedfcdf3917db1884be9c0656c1c67) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates usage of Toaster on first-time setup pages
|
|
81
|
+
|
|
82
|
+
- Updated dependencies [[`34e2c50`](https://github.com/withstudiocms/studiocms/commit/34e2c509914596d5e8bb75bceb6bf2b2cadeba3d), [`61091e1`](https://github.com/withstudiocms/studiocms/commit/61091e1e7633f1b4bf0fa3e0a09debb06b861fbe)]:
|
|
83
|
+
- @withstudiocms/component-registry@0.1.0-beta.6
|
|
84
|
+
- @withstudiocms/effect@0.1.0-beta.6
|
|
85
|
+
- @withstudiocms/auth-kit@0.1.0-beta.5
|
|
86
|
+
|
|
3
87
|
## 0.1.0-beta.29
|
|
4
88
|
|
|
5
89
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
# StudioCMS: A Community-Driven Astro native CMS
|
|
1
|
+
# StudioCMS: A Community-Driven Astro native CMS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://npm.im/studiocms)
|
|
4
|
+
[](https://codecov.io/github/withstudiocms/studiocms)
|
|
5
|
+
[](https://crowdin.com/project/studiocms)
|
|
6
|
+
[](https://pkg.pr.new/~/withstudiocms/studiocms)
|
|
7
|
+
[](https://astro.build)
|
|
8
|
+
|
|
9
|
+
StudioCMS is a dedicated [SSR (Server-side-rendered)](https://docs.astro.build/en/guides/on-demand-rendering/) Astro native CMS, build from the ground up for the Astro community and by Astro community members. StudioCMS is designed to be a flexible CMS that can be used headless using our RESTAPI or as a fully integrated CMS using plugins and a custom frontend.
|
|
4
10
|
|
|
5
11
|
> [!IMPORTANT]
|
|
6
12
|
> This project is still in early development and it is not yet ready for production use. If you encounter any issues or have ideas for new features, please let us know by [opening an issue](https://github.com/withstudiocms/studiocms/issues/new/choose) on our GitHub repository.
|
|
7
13
|
>
|
|
8
14
|
> During our `0.1.0-beta.x` phase, breaking changes may ship in patch releases.
|
|
9
15
|
|
|
10
|
-
## Sponsor
|
|
11
|
-
|
|
12
|
-
<a href="https://tur.so/studiocms" rel="sponsored" target="_blank"><img src="https://turso.tech/logokit/turso-logo-illustrated.svg" width="400px" alt="Turso logo" /></a>
|
|
13
|
-
<a href="https://www.skip2.net/?utm_source=studiocms" rel="sponsored" target="_blank"><img src="https://www.skip2.net/images/logo.svg" width="400px" alt="Skip2 logo" /></a>
|
|
14
|
-
|
|
15
16
|
## Get Started
|
|
16
17
|
|
|
17
18
|
Follow the documentation to [get started with StudioCMS](https://docs.studiocms.dev/start-here/getting-started).
|
|
@@ -26,9 +27,16 @@ By fostering a sense of shared ownership and investment, we aim to create a CMS
|
|
|
26
27
|
|
|
27
28
|
So don't be a stranger - come join us on this journey and help us realize the full potential of StudioCMS!
|
|
28
29
|
|
|
29
|
-
##
|
|
30
|
+
## Chat with Us
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
We have an active community of developers on the StudioCMS [Discord Server](https://chat.studiocms.dev/). Feel free to join and connect with other contributors, ask questions, or discuss ideas related to this project or other StudioCMS projects.
|
|
33
|
+
|
|
34
|
+
Looking to get involved with the StudioCMS project? Please visit our [GitHub repository](https://github.com/withstudiocms/studiocms) and join our [Discord server](https://chat.studiocms.dev/). Together, let's build an even stronger and more vibrant Astro ecosystem.
|
|
35
|
+
|
|
36
|
+
## Sponsors
|
|
37
|
+
|
|
38
|
+
<a href="https://tur.so/studiocms" rel="sponsored" target="_blank"><img src="https://turso.tech/logokit/turso-logo-illustrated.svg" width="400px" alt="Turso logo" /></a>
|
|
39
|
+
<a href="https://www.skip2.net/?utm_source=studiocms" rel="sponsored" target="_blank"><img src="https://www.skip2.net/images/logo.svg" width="400px" alt="Skip2 logo" /></a>
|
|
32
40
|
|
|
33
41
|
## Licensing
|
|
34
42
|
|
package/dist/cli/add/index.d.ts
CHANGED
|
@@ -17,10 +17,10 @@ export declare const STUBS: {
|
|
|
17
17
|
STUDIOCMS_CONFIG: string;
|
|
18
18
|
};
|
|
19
19
|
export declare const toIdent: (name: string) => string;
|
|
20
|
-
export declare const createPrettyError: (err: Error) =>
|
|
21
|
-
export declare const resolveConfigPath: (root: URL) => Effect.Effect<URL | undefined, import("effect/Cause").UnknownException, never>;
|
|
20
|
+
export declare const createPrettyError: (err: Error) => Error;
|
|
21
|
+
export declare const resolveConfigPath: (root: URL) => Effect.Effect<URL | undefined, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
|
|
22
22
|
export declare function appendForwardSlash(path: string): string;
|
|
23
23
|
export declare const plugin: Cli.Args.Args<string[]>;
|
|
24
|
-
export declare const addPlugin: Cli.Command.Command<"add", never, Error |
|
|
24
|
+
export declare const addPlugin: Cli.Command.Command<"add", never, Error | import("effect/ConfigError").ConfigError, {
|
|
25
25
|
readonly plugin: string[];
|
|
26
26
|
}>;
|
package/dist/cli/add/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { exists, pathToFileURL, resolveRoot } from "@withstudiocms/cli-kit/utils
|
|
|
5
5
|
import { intro, note, outro } from "@withstudiocms/effect/clack";
|
|
6
6
|
import { builders, loadFile } from "magicast";
|
|
7
7
|
import { getDefaultExportOptions } from "magicast/helpers";
|
|
8
|
+
import { configPaths } from "../../consts.js";
|
|
8
9
|
import { Cli, Console, Effect, genLogger, Layer } from "../../effect.js";
|
|
9
10
|
import { CliContext, genContext } from "../utils/context.js";
|
|
10
11
|
import { logger } from "../utils/logger.js";
|
|
@@ -43,22 +44,14 @@ const toIdent = (name) => {
|
|
|
43
44
|
const ident = name.trim().replace(/[-_./]?studiocms?[-_.]?/g, "").replace(/\.js/, "").replace(/[.\-_/]+([a-zA-Z])/g, (_, w) => w.toUpperCase()).replace(/^[^a-zA-Z$_]+/, "").replace(/@.*$/, "");
|
|
44
45
|
return `${ident[0].toLowerCase()}${ident.slice(1)}`;
|
|
45
46
|
};
|
|
46
|
-
const createPrettyError = (err) =>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const configPaths = Object.freeze([
|
|
55
|
-
"./studiocms.config.js",
|
|
56
|
-
"./studiocms.config.mjs",
|
|
57
|
-
"./studiocms.config.cjs",
|
|
58
|
-
"./studiocms.config.ts",
|
|
59
|
-
"./studiocms.config.mts",
|
|
60
|
-
"./studiocms.config.cts"
|
|
61
|
-
]);
|
|
47
|
+
const createPrettyError = (err) => new Error(
|
|
48
|
+
`StudioCMS could not update your studiocms.config.mjs file safely.
|
|
49
|
+
Reason: ${err.message}
|
|
50
|
+
|
|
51
|
+
You will need to add these plugin(s) manually.
|
|
52
|
+
Documentation: https://docs.studiocms.dev`,
|
|
53
|
+
{ cause: err }
|
|
54
|
+
);
|
|
62
55
|
const resolveConfigPath = (root) => genLogger("studiocms/cli/add.resolveConfigPath")(function* () {
|
|
63
56
|
for (const path of configPaths) {
|
|
64
57
|
const url = yield* Effect.try(() => new URL(path, root));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Effect } from '../../effect.js';
|
|
2
2
|
import type { PluginInfo } from './index.js';
|
|
3
|
-
export declare const getRegistry: Effect.Effect<string, import("effect/Cause").UnknownException, never>;
|
|
4
|
-
export declare const fetchPackageVersions: (packageName: string) => Effect.Effect<Error | string[], import("effect/Cause").UnknownException, never>;
|
|
3
|
+
export declare const getRegistry: Effect.Effect<string, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
|
|
4
|
+
export declare const fetchPackageVersions: (packageName: string) => Effect.Effect<Error | string[], import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
|
|
5
5
|
/**
|
|
6
6
|
* Resolves package with a given range to a STABLE version
|
|
7
7
|
* peerDependencies might specify a compatible prerelease,
|
|
8
8
|
* but `studiocms add` should only ever install stable releases
|
|
9
9
|
*/
|
|
10
|
-
export declare const resolveRangeToInstallSpecifier: (name: string, range: string) => Effect.Effect<string, import("effect/Cause").UnknownException, never>;
|
|
11
|
-
export declare const convertPluginsToInstallSpecifiers: (plugins: PluginInfo[]) => Effect.Effect<string[], import("effect/Cause").UnknownException, never>;
|
|
12
|
-
export declare const fetchPackageJson: (scope: string | undefined, name: string, tag: string) => Effect.Effect<any, import("effect/Cause").UnknownException, never>;
|
|
10
|
+
export declare const resolveRangeToInstallSpecifier: (name: string, range: string) => Effect.Effect<string, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
|
|
11
|
+
export declare const convertPluginsToInstallSpecifiers: (plugins: PluginInfo[]) => Effect.Effect<string[], import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
|
|
12
|
+
export declare const fetchPackageJson: (scope: string | undefined, name: string, tag: string) => Effect.Effect<any, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
|
|
13
13
|
export declare const parseNpmName: (spec: string) => Effect.Effect<{
|
|
14
14
|
scope: string | undefined;
|
|
15
15
|
name: string;
|
|
@@ -19,4 +19,4 @@ export declare const parsePluginName: (spec: string) => Effect.Effect<{
|
|
|
19
19
|
scope: string | undefined;
|
|
20
20
|
name: string;
|
|
21
21
|
tag: string;
|
|
22
|
-
} | undefined, import("effect/Cause").UnknownException, never>;
|
|
22
|
+
} | undefined, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
|
|
@@ -3,7 +3,7 @@ import { CliContext } from '../utils/context.js';
|
|
|
3
3
|
import { type PluginInfo, UpdateResult } from './index.js';
|
|
4
4
|
declare const TryToInstallPlugins_base: Effect.Service.Class<TryToInstallPlugins, "TryToInstallPlugins", {
|
|
5
5
|
readonly effect: Effect.Effect<{
|
|
6
|
-
run: (plugins: PluginInfo[]) => Effect.Effect<UpdateResult, Error, CliContext>;
|
|
6
|
+
run: (plugins: PluginInfo[]) => Effect.Effect<UpdateResult, Error | import("effect/ConfigError").ConfigError, CliContext>;
|
|
7
7
|
}, never, never>;
|
|
8
8
|
}>;
|
|
9
9
|
export declare class TryToInstallPlugins extends TryToInstallPlugins_base {
|
|
@@ -65,7 +65,10 @@ ${message}`
|
|
|
65
65
|
});
|
|
66
66
|
return UpdateResult.updated;
|
|
67
67
|
},
|
|
68
|
-
catch: (err) =>
|
|
68
|
+
catch: (err) => new Error(
|
|
69
|
+
`Failed to install dependencies: ${err instanceof Error ? err.message : String(err)}`,
|
|
70
|
+
{ cause: err }
|
|
71
|
+
)
|
|
69
72
|
}).pipe(Effect.catchAll((err) => Effect.succeed(err)));
|
|
70
73
|
if (response === UpdateResult.updated) {
|
|
71
74
|
yield* spin.stop("Dependencies installed!");
|
|
@@ -4,7 +4,7 @@ import { CliContext } from '../utils/context.js';
|
|
|
4
4
|
import { UpdateResult } from './index.js';
|
|
5
5
|
declare const UpdateStudioCMSConfig_base: Effect.Service.Class<UpdateStudioCMSConfig, "UpdateStudioCMSConfig", {
|
|
6
6
|
readonly effect: Effect.Effect<{
|
|
7
|
-
run: (configURL: URL, mod: ProxifiedModule<any>) => Effect.Effect<UpdateResult.none | UpdateResult.updated | UpdateResult.cancelled, Error, CliContext>;
|
|
7
|
+
run: (configURL: URL, mod: ProxifiedModule<any>) => Effect.Effect<UpdateResult.none | UpdateResult.updated | UpdateResult.cancelled, Error | import("effect/ConfigError").ConfigError, CliContext>;
|
|
8
8
|
}, never, never>;
|
|
9
9
|
}>;
|
|
10
10
|
export declare class UpdateStudioCMSConfig extends UpdateStudioCMSConfig_base {
|
|
@@ -3,7 +3,7 @@ import { CliContext } from '../utils/context.js';
|
|
|
3
3
|
import { type PluginInfo } from './index.js';
|
|
4
4
|
declare const ValidatePlugins_base: Effect.Service.Class<ValidatePlugins, "ValidatePlugins", {
|
|
5
5
|
readonly effect: Effect.Effect<{
|
|
6
|
-
run: (names: string[]) => Effect.Effect<PluginInfo[], Error, CliContext>;
|
|
6
|
+
run: (names: string[]) => Effect.Effect<PluginInfo[], Error | import("effect/ConfigError").ConfigError, CliContext>;
|
|
7
7
|
}, never, never>;
|
|
8
8
|
}>;
|
|
9
9
|
export declare class ValidatePlugins extends ValidatePlugins_base {
|
|
@@ -5,8 +5,7 @@ import { Cli } from '../../../effect.js';
|
|
|
5
5
|
export declare const OneYear = 31556926;
|
|
6
6
|
export declare const keyFile: Cli.Args.Args<string>;
|
|
7
7
|
export declare const expire: Cli.Options.Options<31556926 | import("effect/Option").Option<number>>;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const genJWT: Cli.Command.Command<"gen-jwt", never, RangeError, {
|
|
8
|
+
export declare const genJWT: Cli.Command.Command<"gen-jwt", never, import("effect/ConfigError").ConfigError | RangeError, {
|
|
10
9
|
readonly keyFile: string;
|
|
11
10
|
readonly expire: 31556926 | import("effect/Option").Option<number>;
|
|
12
11
|
readonly debug: false | import("effect/Option").Option<boolean>;
|
|
@@ -11,6 +11,7 @@ import { importPKCS8 } from "jose/key/import";
|
|
|
11
11
|
import { Cli, Effect, genLogger } from "../../../effect.js";
|
|
12
12
|
import { genContext } from "../../utils/context.js";
|
|
13
13
|
import { dateAdd } from "../../utils/dateAdd.js";
|
|
14
|
+
import { debug } from "../../utils/debugOpt.js";
|
|
14
15
|
import { logger } from "../../utils/logger.js";
|
|
15
16
|
const OneYear = 31556926;
|
|
16
17
|
const keyFile = Cli.Args.text({ name: "keyfile" }).pipe(
|
|
@@ -24,11 +25,6 @@ const expire = Cli.Options.integer("exp").pipe(
|
|
|
24
25
|
Cli.Options.withDefault(OneYear),
|
|
25
26
|
Cli.Options.withDescription("Expiry date in seconds (>=0) from issued at (iat) time")
|
|
26
27
|
);
|
|
27
|
-
const debug = Cli.Options.boolean("debug").pipe(
|
|
28
|
-
Cli.Options.optional,
|
|
29
|
-
Cli.Options.withDefault(false),
|
|
30
|
-
Cli.Options.withDescription("Enable debug mode")
|
|
31
|
-
);
|
|
32
28
|
const convertJwtToBase64Url = (jwtToken) => Effect.try(() => Buffer.from(jwtToken).toString("base64url"));
|
|
33
29
|
const genJWT = Cli.Command.make(
|
|
34
30
|
"gen-jwt",
|
|
@@ -117,7 +113,6 @@ const genJWT = Cli.Command.make(
|
|
|
117
113
|
).pipe(Cli.Command.withDescription("Generate a JWT token from a keyfile"));
|
|
118
114
|
export {
|
|
119
115
|
OneYear,
|
|
120
|
-
debug,
|
|
121
116
|
expire,
|
|
122
117
|
genJWT,
|
|
123
118
|
keyFile
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cli } from '../../effect.js';
|
|
2
|
-
export declare const cryptoCMD: Cli.Command.Command<"crypto", never, RangeError, {
|
|
2
|
+
export declare const cryptoCMD: Cli.Command.Command<"crypto", never, import("effect/ConfigError").ConfigError | RangeError, {
|
|
3
3
|
readonly subcommand: import("effect/Option").Option<{
|
|
4
4
|
readonly keyFile: string;
|
|
5
5
|
readonly expire: 31556926 | import("effect/Option").Option<number>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { pathToFileURL } from "node:url";
|
|
2
|
+
import { StudioCMSColorwayBg } from "@withstudiocms/cli-kit/colors";
|
|
3
|
+
import { label } from "@withstudiocms/cli-kit/messages";
|
|
4
|
+
import { loadConfigFile } from "@withstudiocms/config-utils";
|
|
5
|
+
import { Cli, Effect } from "@withstudiocms/effect";
|
|
6
|
+
import { intro, log, outro } from "@withstudiocms/effect/clack";
|
|
7
|
+
import { DebugInfoProvider } from "@withstudiocms/internal_helpers/debug-info-provider";
|
|
8
|
+
import chalk from "chalk";
|
|
9
|
+
import { debug } from "../utils/debugOpt.js";
|
|
10
|
+
const astroConfigPaths = [
|
|
11
|
+
"astro.config.mjs",
|
|
12
|
+
"astro.config.js",
|
|
13
|
+
"astro.config.ts",
|
|
14
|
+
"astro.config.cts",
|
|
15
|
+
"astro.config.mts",
|
|
16
|
+
"astro.config.cjs"
|
|
17
|
+
];
|
|
18
|
+
const studiocmsConfigPaths = [
|
|
19
|
+
"studiocms.config.mjs",
|
|
20
|
+
"studiocms.config.js",
|
|
21
|
+
"studiocms.config.ts",
|
|
22
|
+
"studiocms.config.cts",
|
|
23
|
+
"studiocms.config.mts",
|
|
24
|
+
"studiocms.config.cjs"
|
|
25
|
+
];
|
|
26
|
+
const loadConfig = (key) => Effect.tryPromise({
|
|
27
|
+
try: async () => {
|
|
28
|
+
const cwd = process.cwd();
|
|
29
|
+
const rootURL = pathToFileURL(`${cwd}/`);
|
|
30
|
+
const configPaths = key === "astro" ? astroConfigPaths : studiocmsConfigPaths;
|
|
31
|
+
return await loadConfigFile(
|
|
32
|
+
rootURL,
|
|
33
|
+
configPaths,
|
|
34
|
+
key
|
|
35
|
+
);
|
|
36
|
+
},
|
|
37
|
+
catch: (error) => {
|
|
38
|
+
throw new Error(`Failed to load config: ${error.message}`);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const debugCMD = Cli.Command.make(
|
|
42
|
+
"debug",
|
|
43
|
+
{ debug },
|
|
44
|
+
({ debug: _debug }) => Effect.gen(function* () {
|
|
45
|
+
let debug2;
|
|
46
|
+
if (typeof _debug !== "boolean") {
|
|
47
|
+
debug2 = yield* _debug;
|
|
48
|
+
} else {
|
|
49
|
+
debug2 = _debug;
|
|
50
|
+
}
|
|
51
|
+
if (debug2) {
|
|
52
|
+
yield* Effect.log("Getting debug info for StudioCMS...");
|
|
53
|
+
}
|
|
54
|
+
const [AstroConfig, StudioCMSConfig] = yield* Effect.all([
|
|
55
|
+
loadConfig("astro"),
|
|
56
|
+
loadConfig("studiocms")
|
|
57
|
+
]);
|
|
58
|
+
const adapterName = AstroConfig?.adapter?.name ?? "No adapter configured";
|
|
59
|
+
const databaseDialect = StudioCMSConfig?.db?.dialect ?? "libsql";
|
|
60
|
+
const installedPlugins = StudioCMSConfig?.plugins?.map(({ identifier, name }) => ({ identifier, name })) ?? [];
|
|
61
|
+
if (debug2) {
|
|
62
|
+
yield* Effect.log(
|
|
63
|
+
`Astro Adapter Name: ${adapterName}`,
|
|
64
|
+
`Database Dialect: ${databaseDialect}`,
|
|
65
|
+
`Installed Plugins: ${installedPlugins.length}`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
const infoProvider = yield* Effect.try({
|
|
69
|
+
try: () => new DebugInfoProvider({
|
|
70
|
+
adapterName,
|
|
71
|
+
databaseDialect,
|
|
72
|
+
installedPlugins
|
|
73
|
+
}),
|
|
74
|
+
catch: (error) => new Error(`Failed to create DebugInfoProvider: ${error.message}`)
|
|
75
|
+
});
|
|
76
|
+
const debugInfo = yield* Effect.tryPromise({
|
|
77
|
+
try: () => infoProvider.getDebugInfoString(4, { styled: true }),
|
|
78
|
+
catch: (error) => new Error(`Failed to gather debug info: ${error.message}`)
|
|
79
|
+
});
|
|
80
|
+
if (debug2) {
|
|
81
|
+
yield* Effect.log("Debug info gathered successfully.");
|
|
82
|
+
}
|
|
83
|
+
console.log("");
|
|
84
|
+
yield* intro(`${label("StudioCMS Debug Information", StudioCMSColorwayBg, chalk.black)}`);
|
|
85
|
+
yield* log.info(debugInfo);
|
|
86
|
+
yield* outro();
|
|
87
|
+
if (debug2) {
|
|
88
|
+
yield* Effect.log("Debug command completed.");
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
).pipe(Cli.Command.withDescription("Debug info for StudioCMS"));
|
|
92
|
+
export {
|
|
93
|
+
debugCMD
|
|
94
|
+
};
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import { runInteractiveCommand } from "@withstudiocms/cli-kit/utils";
|
|
2
2
|
import { Cli, Effect } from "../../effect.js";
|
|
3
|
+
const shell = Cli.Args.text({ name: "shell" }).pipe(
|
|
4
|
+
Cli.Args.optional,
|
|
5
|
+
Cli.Args.withDescription(
|
|
6
|
+
"The shell to use for executing the install command (e.g., bash, zsh) (default: bash)"
|
|
7
|
+
)
|
|
8
|
+
);
|
|
3
9
|
const getTurso = Cli.Command.make(
|
|
4
10
|
"get-turso",
|
|
5
|
-
{},
|
|
6
|
-
() => Effect.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
{ shell },
|
|
12
|
+
({ shell: rawShell }) => Effect.gen(function* () {
|
|
13
|
+
let shell2;
|
|
14
|
+
if (typeof rawShell !== "string" && rawShell !== void 0) {
|
|
15
|
+
shell2 = yield* rawShell;
|
|
16
|
+
}
|
|
17
|
+
const command = `curl -sSfL https://get.tur.so/install.sh | ${shell2 ? shell2 : "bash"}`;
|
|
18
|
+
return yield* Effect.tryPromise({
|
|
19
|
+
try: () => runInteractiveCommand(command).then(
|
|
20
|
+
() => console.log("Turso CLI install command completed.")
|
|
21
|
+
),
|
|
22
|
+
catch: (error) => new Error(`Failed to install Turso CLI: ${String(error)}`)
|
|
23
|
+
});
|
|
11
24
|
})
|
|
12
25
|
).pipe(Cli.Command.withDescription("Install the Turso CLI"));
|
|
13
26
|
export {
|
package/dist/cli/index.js
CHANGED
|
@@ -3,14 +3,24 @@ import dotenv from "dotenv";
|
|
|
3
3
|
import { Cli, Effect, Layer, PlatformNode } from "../effect.js";
|
|
4
4
|
import { addPlugin } from "./add/index.js";
|
|
5
5
|
import { cryptoCMD } from "./crypto/index.js";
|
|
6
|
+
import { debugCMD } from "./debug/index.js";
|
|
6
7
|
import { getTurso } from "./getTurso/index.js";
|
|
7
8
|
import { initCMD } from "./init/index.js";
|
|
9
|
+
import { migratorCMD } from "./migrator/index.js";
|
|
8
10
|
import { usersCMD } from "./users/index.js";
|
|
9
11
|
dotenv.config({ quiet: true });
|
|
10
12
|
const pkgJson = readJson(new URL("../../package.json", import.meta.url));
|
|
11
13
|
const command = Cli.Command.make("studiocms").pipe(
|
|
12
14
|
Cli.Command.withDescription("StudioCMS CLI Utility Toolkit"),
|
|
13
|
-
Cli.Command.withSubcommands([
|
|
15
|
+
Cli.Command.withSubcommands([
|
|
16
|
+
addPlugin,
|
|
17
|
+
cryptoCMD,
|
|
18
|
+
debugCMD,
|
|
19
|
+
getTurso,
|
|
20
|
+
initCMD,
|
|
21
|
+
migratorCMD,
|
|
22
|
+
usersCMD
|
|
23
|
+
])
|
|
14
24
|
);
|
|
15
25
|
const cli = Cli.Command.run(command, {
|
|
16
26
|
name: "StudioCMS CLI Utility Toolkit",
|
package/dist/cli/init/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Cli } from '../../effect.js';
|
|
2
|
-
export declare const debug: Cli.Options.Options<false | import("effect/Option").Option<boolean>>;
|
|
3
2
|
export declare const dryRun: Cli.Options.Options<import("effect/Option").Option<boolean>>;
|
|
4
|
-
export declare const initCMD: Cli.Command.Command<"init", never, Error, {
|
|
3
|
+
export declare const initCMD: Cli.Command.Command<"init", never, Error | import("effect/ConfigError").ConfigError, {
|
|
5
4
|
readonly debug: false | import("effect/Option").Option<boolean>;
|
|
6
5
|
readonly dryRun: import("effect/Option").Option<boolean>;
|
|
7
6
|
}>;
|
package/dist/cli/init/index.js
CHANGED
|
@@ -3,16 +3,12 @@ import { label } from "@withstudiocms/cli-kit/messages";
|
|
|
3
3
|
import { intro, log, multiselect, tasks } from "@withstudiocms/effect/clack";
|
|
4
4
|
import { Cli, Effect, genLogger } from "../../effect.js";
|
|
5
5
|
import { CliContext, genContext, parseDebug } from "../utils/context.js";
|
|
6
|
+
import { debug } from "../utils/debugOpt.js";
|
|
6
7
|
import { intro as SCMS_Intro } from "../utils/intro.js";
|
|
7
8
|
import { buildDebugLogger } from "../utils/logger.js";
|
|
8
9
|
import { appendOptionsToSteps } from "../utils/types.js";
|
|
9
10
|
import { env } from "./steps/env.js";
|
|
10
11
|
import { next } from "./steps/next.js";
|
|
11
|
-
const debug = Cli.Options.boolean("debug").pipe(
|
|
12
|
-
Cli.Options.optional,
|
|
13
|
-
Cli.Options.withDefault(false),
|
|
14
|
-
Cli.Options.withDescription("Enable debug mode")
|
|
15
|
-
);
|
|
16
12
|
const dryRun = Cli.Options.boolean("dry-run").pipe(
|
|
17
13
|
Cli.Options.optional,
|
|
18
14
|
Cli.Options.withAlias("d"),
|
|
@@ -78,7 +74,6 @@ const initCMD = Cli.Command.make(
|
|
|
78
74
|
})
|
|
79
75
|
).pipe(Cli.Command.withDescription("Initialize the StudioCMS project after new installation."));
|
|
80
76
|
export {
|
|
81
|
-
debug,
|
|
82
77
|
dryRun,
|
|
83
78
|
initCMD
|
|
84
79
|
};
|