studiocms 0.1.0-beta.8 → 0.1.0-beta.9

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # studiocms
2
2
 
3
+ ## 0.1.0-beta.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#433](https://github.com/withstudiocms/studiocms/pull/433) [`8931327`](https://github.com/withstudiocms/studiocms/commit/89313277bac0f5e17929eb8d4e064d42fe9c5ce5) Thanks [@studiocms-no-reply](https://github.com/studiocms-no-reply)! - Translation Updated (PR: #433)
8
+
9
+ - [#432](https://github.com/withstudiocms/studiocms/pull/432) [`4ac1dc2`](https://github.com/withstudiocms/studiocms/commit/4ac1dc295c56069cb126bd8c876fd98b31f9a8d8) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Relocate static assets to CDN R2 bucket, Users can now delete the `studiocms-resources/` folder within their project `public/` folder.
10
+
11
+ - [#437](https://github.com/withstudiocms/studiocms/pull/437) [`e99f3d0`](https://github.com/withstudiocms/studiocms/commit/e99f3d0a1b089e24ca9a0c1f9d8f2ae1ba3d8b8e) Thanks [@studiocms-no-reply](https://github.com/studiocms-no-reply)! - Translation Updated (PR: #437)
12
+
13
+ - [#441](https://github.com/withstudiocms/studiocms/pull/441) [`9dbe621`](https://github.com/withstudiocms/studiocms/commit/9dbe62125bd77ee674175dbb4fb64f5fa9ffc1ce) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - fix firsttime setup page redirect, and fix sdk
14
+
3
15
  ## 0.1.0-beta.8
4
16
 
5
17
  ### Patch Changes
@@ -23,9 +23,9 @@ const { title, description } = Astro.props;
23
23
  <Generator />
24
24
 
25
25
  {/* Favicon */}
26
- <link rel="icon" href="/studiocms-resources/core/favicon.svg" type="image/svg+xml" />
27
- <link rel="icon" href="/studiocms-resources/core/favicon-light.png" type="image/svg+xml" media="(prefers-color-scheme: dark)" />
28
- <link rel="icon" href="/studiocms-resources/core/favicon-dark.png" type="image/png" media="(prefers-color-scheme: light)" />
26
+ <link rel="icon" href="https://cdn.studiocms.dev/favicon.svg" type="image/svg+xml" />
27
+ <link rel="icon" href="https://cdn.studiocms.dev/favicon-light.png" type="image/svg+xml" media="(prefers-color-scheme: dark)" />
28
+ <link rel="icon" href="https://cdn.studiocms.dev/favicon-dark.png" type="image/png" media="(prefers-color-scheme: light)" />
29
29
 
30
30
  {/* Primary Meta Tags */}
31
31
  <title>{title}</title>
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ import { envField } from "astro/config";
7
7
  import { z } from "astro/zod";
8
8
  import boxen from "boxen";
9
9
  import packageJson from "package-json";
10
- import copy from "rollup-plugin-copy";
11
10
  import { compare as semCompare } from "semver";
12
11
  import { loadEnv } from "vite";
13
12
  import { routesDir } from "./consts.js";
@@ -1057,19 +1056,7 @@ const studiocms = defineIntegration({
1057
1056
  optimizeDeps: {
1058
1057
  exclude: ["three"]
1059
1058
  },
1060
- plugins: [
1061
- inlineModPlugin(),
1062
- copy({
1063
- copyOnce: true,
1064
- hook: "buildStart",
1065
- targets: [
1066
- {
1067
- src: resolve("../static/studiocms-resources/*"),
1068
- dest: "public/studiocms-resources/"
1069
- }
1070
- ]
1071
- })
1072
- ]
1059
+ plugins: [inlineModPlugin()]
1073
1060
  }
1074
1061
  });
1075
1062
  let pluginListLength = 0;
@@ -30,9 +30,9 @@ const { title, description, lang, disableScreen, checkLogin } = Astro.props;
30
30
  <Generator />
31
31
 
32
32
  {/* Favicon */}
33
- <link rel="icon" href="/studiocms-resources/core/favicon.svg" type="image/svg+xml" />
34
- <link rel="icon" href="/studiocms-resources/core/favicon-light.png" type="image/svg+xml" media="(prefers-color-scheme: dark)" />
35
- <link rel="icon" href="/studiocms-resources/core/favicon-dark.png" type="image/png" media="(prefers-color-scheme: light)" />
33
+ <link rel="icon" href="https://cdn.studiocms.dev/favicon.svg" type="image/svg+xml" />
34
+ <link rel="icon" href="https://cdn.studiocms.dev/favicon-light.png" type="image/svg+xml" media="(prefers-color-scheme: dark)" />
35
+ <link rel="icon" href="https://cdn.studiocms.dev/favicon-dark.png" type="image/png" media="(prefers-color-scheme: light)" />
36
36
 
37
37
  {/* Primary Meta Tags */}
38
38
  <title>{title}</title>
@@ -16,28 +16,48 @@
16
16
  "allow-registration-register": "Registriere dich hier!"
17
17
  },
18
18
  "@studiocms/auth:signup": {
19
- "title": "Registrierung",
20
- "description": "Registrierung",
19
+ "title": "Registrierungsseite",
20
+ "description": "Registrierungsseite",
21
21
  "header": "Registrierung",
22
22
  "sub-header-usernamepasswordoauth": "Erstelle einen Account mit einer der vorliegenden Optionen.",
23
23
  "sub-header-usernamepassword": "Erstelle einen Account mit dem Registrierungs-Formular.",
24
24
  "sub-header-oauth": "Nutze eine der Optionen, um dich einzuloggen.",
25
- "sub-header-noprovider": "",
26
- "username-label": "",
27
- "email-label": "",
28
- "displayname-label": "",
29
- "password-label": "",
30
- "confirm-password-label": "",
31
- "create-account-button": "",
32
- "allow-login-haveaccount": "",
33
- "allow-login-login": ""
25
+ "sub-header-noprovider": "Kein Login-Provider konfiguriert. Bitte kontaktiere deinen Administrator.",
26
+ "username-label": "Benutzername",
27
+ "email-label": "E-Mail",
28
+ "displayname-label": "Anzeigename",
29
+ "password-label": "Passwort",
30
+ "confirm-password-label": "Passwort bestätigen",
31
+ "create-account-button": "Account erstellen",
32
+ "allow-login-haveaccount": "Du hast bereits einen Account?",
33
+ "allow-login-login": "Logge dich hier ein!"
34
34
  },
35
35
  "@studiocms/auth:logout": {
36
- "title": "",
37
- "description": ""
36
+ "title": "Logout-Seite",
37
+ "description": "Logout-Seite"
38
38
  },
39
39
  "@studiocms/auth:oauth-stack": {
40
- "or-login-with": ""
40
+ "or-login-with": "oder logge dich ein mit:"
41
+ },
42
+ "@studiocms/dashboard:index": {
43
+ "title-button:discord": "Trete der Community bei",
44
+ "sub-header": "StudioCMS ist ein gratis, open-source content management system, welches von Grund auf von der Astro Community erstellt wurde.",
45
+ "title": "Dashboard",
46
+ "welcome-title": "Willkommen",
47
+ "title-button:feedback": "Gib' uns Feedback"
48
+ },
49
+ "@studiocms/dashboard:sidebar": {
50
+ "category-1-header": "Dashboard",
51
+ "dashboard-link-label": "Dashboard",
52
+ "content-management-label": "Content Management",
53
+ "category-2-header": "Admin",
54
+ "site-configuration-label": "Seitenkonfiguration",
55
+ "user-management-label": "Nutzermanagement",
56
+ "category-3-header": "Plugins",
57
+ "category-3-empty-placeholder": "Keine Plugins mit Einstellungsseiten gefunden.",
58
+ "user-dropdown:settings": "Nutzereinstellungen",
59
+ "user-dropdown:view-site": "Website besuchen",
60
+ "user-dropdown:logout": "Ausloggen"
41
61
  }
42
62
  }
43
63
  }
@@ -0,0 +1,63 @@
1
+ {
2
+ "displayName": "Español (es)",
3
+ "translations": {
4
+ "@studiocms/auth:login": {
5
+ "title": "Página de Inicio de sesión",
6
+ "description": "Página de Inicio de sesión",
7
+ "header": "Inicio de sesión",
8
+ "sub-header-usernamepasswordoauth": "Ingresa tu usuario y contraseña o inicia sesión con alguna de las opciones de abajo.",
9
+ "sub-header-usernamepassword": "Ingresa tu usuario y contraseña.",
10
+ "sub-header-oauth": "Inicia sesión usando alguna de las opciones de abajo.",
11
+ "sub-header-noprovider": "No se ha configurado ningún proveedor de inicio de sesión. Póngase en contacto con su administrador.",
12
+ "username-label": "Usuario",
13
+ "password-label": "Contraseña",
14
+ "login-button": "Iniciar sesión",
15
+ "allow-registration-noaccount": "¿Tienes cuenta?",
16
+ "allow-registration-register": "¡Registrarse aquí!"
17
+ },
18
+ "@studiocms/auth:signup": {
19
+ "title": "Página de registro",
20
+ "description": "Página de registro",
21
+ "header": "Registrarse",
22
+ "sub-header-usernamepasswordoauth": "Crea una cuenta o inicia sesión con una de las opciones de abajo.",
23
+ "sub-header-usernamepassword": "Crea una cuenta usando el formulario de abajo.",
24
+ "sub-header-oauth": "Inicia sesión utilizando una de las opciones de abajo.",
25
+ "sub-header-noprovider": "No se ha configurado ningún proveedor de inicio de sesión. Póngase en contacto con su administrador.",
26
+ "username-label": "Usuario",
27
+ "email-label": "Correo electrónico",
28
+ "displayname-label": "Nombre de visualización",
29
+ "password-label": "Contraseña",
30
+ "confirm-password-label": "Confirmar contraseña",
31
+ "create-account-button": "Crear cuenta",
32
+ "allow-login-haveaccount": "¿Ya tienes cuenta?",
33
+ "allow-login-login": "¡Inicia sesión aquí!"
34
+ },
35
+ "@studiocms/auth:logout": {
36
+ "title": "Página de cierre de sesión",
37
+ "description": "Página de cierre de sesión"
38
+ },
39
+ "@studiocms/auth:oauth-stack": {
40
+ "or-login-with": "o inicia sesión utilizando"
41
+ },
42
+ "@studiocms/dashboard:index": {
43
+ "title": "Panel de control",
44
+ "welcome-title": "Bienvenido",
45
+ "title-button:discord": "Unirse a la comunidad",
46
+ "title-button:feedback": "Dar retroalimentación",
47
+ "sub-header": "StudioCMS es un sistema de gestión de contenido gratuito y de código abierto construido desde cero por la comunidad Astro."
48
+ },
49
+ "@studiocms/dashboard:sidebar": {
50
+ "category-1-header": "Panel de control",
51
+ "dashboard-link-label": "Panel de control",
52
+ "content-management-label": "Gestión de contenido",
53
+ "category-2-header": "Administrador",
54
+ "site-configuration-label": "Configuración de sitio",
55
+ "user-management-label": "Administración de usuarios",
56
+ "category-3-header": "Complementos",
57
+ "category-3-empty-placeholder": "No se han encontrado plugins con páginas de configuración.",
58
+ "user-dropdown:settings": "Configuración de usuario",
59
+ "user-dropdown:view-site": "Ver sitio",
60
+ "user-dropdown:logout": "Cerrar sesión"
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "displayName": "Français (fr)",
3
+ "translations": {
4
+ "@studiocms/auth:login": {
5
+ "title": "Page de connexion",
6
+ "description": "Page de connexion",
7
+ "header": "Connexion",
8
+ "sub-header-usernamepasswordoauth": "Entrez votre nom d’utilisateur et votre mot de passe ou connectez-vous en utilisant l’une des options ci-dessous.",
9
+ "sub-header-usernamepassword": "Saisissez votre nom d'utilisateur et mot de passe.",
10
+ "sub-header-oauth": "Ouvrez une session en utilisant l'une des options ci-dessous.",
11
+ "sub-header-noprovider": "Aucun fournisseur de connexion configuré. Veuillez contacter votre administrateur.",
12
+ "username-label": "Nom d'utilisateur",
13
+ "password-label": "Mot de passe",
14
+ "login-button": "Se connecter",
15
+ "allow-registration-noaccount": "Vous n'avez pas de compte ?",
16
+ "allow-registration-register": "Inscrivez-vous ici !"
17
+ },
18
+ "@studiocms/auth:signup": {
19
+ "title": "Page d'inscription",
20
+ "description": "Page d'inscription",
21
+ "header": "Inscription",
22
+ "sub-header-usernamepasswordoauth": "Créez un compte ou connectez-vous en utilisant l’une des options ci-dessous.",
23
+ "sub-header-usernamepassword": "Créez un compte en utilisant le formulaire ci-dessous.",
24
+ "sub-header-oauth": "Ouvrez une session en utilisant l’une des options ci-dessous.",
25
+ "sub-header-noprovider": "Aucun fournisseur de connexion configuré. Veuillez contacter votre administrateur.",
26
+ "username-label": "Nom d'utilisateur",
27
+ "email-label": "Email",
28
+ "displayname-label": "Nom d'affichage",
29
+ "password-label": "Mot de passe",
30
+ "confirm-password-label": "Confirmer le mot de passe",
31
+ "create-account-button": "Créer un compte",
32
+ "allow-login-haveaccount": "Vous avez déjà un compte ?",
33
+ "allow-login-login": "Connectez-vous ici !"
34
+ },
35
+ "@studiocms/auth:logout": {
36
+ "title": "Page de déconnexion",
37
+ "description": "Page de déconnexion"
38
+ },
39
+ "@studiocms/auth:oauth-stack": {
40
+ "or-login-with": "ou connectez-vous avec"
41
+ },
42
+ "@studiocms/dashboard:index": {
43
+ "title": "Tableau de bord",
44
+ "welcome-title": "Bienvenue",
45
+ "title-button:discord": "Rejoignez la communauté",
46
+ "title-button:feedback": "Donner votre avis",
47
+ "sub-header": "StudioCMS est un système de gestion de contenu gratuit et open-source construit à partir de zéro par la communauté Astro."
48
+ },
49
+ "@studiocms/dashboard:sidebar": {
50
+ "category-1-header": "Tableau de bord",
51
+ "dashboard-link-label": "Tableau de bord",
52
+ "content-management-label": "Gestion de contenu",
53
+ "category-2-header": "Admin",
54
+ "site-configuration-label": "Configuration du site",
55
+ "user-management-label": "Gestion des utilisateurs",
56
+ "category-3-header": "Plugins",
57
+ "category-3-empty-placeholder": "Aucun plugin avec des pages de configuration n'a été trouvé.",
58
+ "user-dropdown:settings": "Paramètres utilisateur",
59
+ "user-dropdown:view-site": "Voir le site",
60
+ "user-dropdown:logout": "Se déconnecter"
61
+ }
62
+ }
63
+ }
@@ -117,7 +117,7 @@ const curves = validImages.filter(({ name }) => name === 'studiocms-curves')[0];
117
117
  description: 'Basic site information saved successfully!',
118
118
  type: 'success',
119
119
  })
120
- window.location.assign('/setup/2');
120
+ window.location.assign('/start/2');
121
121
  }
122
122
 
123
123
  if (response.status !== 200) {
@@ -9,6 +9,7 @@ const configElement = document.getElementById("auth-pages-config");
9
9
  const loginPageBackground = configElement.dataset.config_background;
10
10
  const loginPageCustomImage = configElement.dataset.config_custom_image;
11
11
  const currentMode = document.documentElement.dataset.theme || "dark";
12
+ const studioCMS3DModel = "https://cdn.studiocms.dev/studiocms-logo.glb";
12
13
  function parseBackgroundImageConfig(imageName) {
13
14
  if (!imageName) {
14
15
  return "studiocms-curves";
@@ -134,7 +135,7 @@ class StudioCMS3DLogo {
134
135
  };
135
136
  loadLogoModel = () => {
136
137
  const loader = new GLTFLoader();
137
- loader.loadAsync("/studiocms-resources/auth/studiocms-logo.glb").then((gltf) => {
138
+ loader.loadAsync(studioCMS3DModel).then((gltf) => {
138
139
  this.model = gltf.scene;
139
140
  this.model.traverse((child) => {
140
141
  const isMesh = child instanceof THREE.Mesh;
package/dist/sdk/core.js CHANGED
@@ -1174,9 +1174,9 @@ function studiocmsSDKCore() {
1174
1174
  parentFolder = null
1175
1175
  } = pageData;
1176
1176
  const stringified = {
1177
- categories: JSON.stringify(categories || []),
1178
- tags: JSON.stringify(tags || []),
1179
- contributorIds: JSON.stringify(contributorIds || [])
1177
+ categories: categories || [],
1178
+ tags: tags || [],
1179
+ contributorIds: contributorIds || []
1180
1180
  };
1181
1181
  const contentData = {
1182
1182
  id: crypto.randomUUID().toString(),
@@ -1503,9 +1503,9 @@ function studiocmsSDKCore() {
1503
1503
  id = newContentID
1504
1504
  } = pageData;
1505
1505
  const stringified = {
1506
- categories: JSON.stringify(categories || []),
1507
- tags: JSON.stringify(tags || []),
1508
- contributorIds: JSON.stringify(contributorIds || [])
1506
+ categories: categories || [],
1507
+ tags: tags || [],
1508
+ contributorIds: contributorIds || []
1509
1509
  };
1510
1510
  const contentData = {
1511
1511
  id: crypto.randomUUID().toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiocms",
3
- "version": "0.1.0-beta.8",
3
+ "version": "0.1.0-beta.9",
4
4
  "description": "A dedicated CMS for Astro and Astro DB. Built from the ground up by the Astro community.",
5
5
  "author": {
6
6
  "name": "Adam Matthiesen | Jacob Jenkins | Paul Valladares",
@@ -49,7 +49,6 @@
49
49
  "renderer.d.ts",
50
50
  "ui.d.ts",
51
51
  "dist",
52
- "static",
53
52
  "studiocms-cli.mjs"
54
53
  ],
55
54
  "bin": {
@@ -154,7 +153,6 @@
154
153
  "@cloudinary/url-gen": "^1.21.0",
155
154
  "@matthiesenxyz/astrodtsbuilder": "^0.2.0",
156
155
  "@matthiesenxyz/integration-utils": "^0.3.0",
157
- "rollup-plugin-copy": "^3.5.0",
158
156
  "mdast": "^3.0.0",
159
157
  "mdast-util-from-markdown": "^2.0.2",
160
158
  "mdast-util-to-markdown": "^2.1.1",
@@ -1,15 +0,0 @@
1
- <svg width="755" height="792" viewBox="0 0 755 792" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <style>
3
- .studiocms-logo {
4
- fill: black;
5
- }
6
- @media (prefers-color-scheme: dark) {
7
- .studiocms-logo {
8
- fill: white;
9
- }
10
- }
11
- </style>
12
- <rect class="studiocms-logo" x="295" width="460" height="466" rx="32" fill="currentColor"/>
13
- <path class="studiocms-logo" d="M272 434V166H180C162.327 166 148 180.327 148 198V597C148 614.673 162.327 629 180 629H577.5C595.173 629 609.5 614.673 609.5 597V490H328C297.072 490 272 464.928 272 434Z" fill="currentColor"/>
14
- <path class="studiocms-logo" d="M124 597V329H32C14.3269 329 0 343.327 0 361V760C0 777.673 14.3269 792 32 792H429.5C447.173 792 461.5 777.673 461.5 760V653H180C149.072 653 124 627.928 124 597Z" fill="currentColor"/>
15
- </svg>