Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astro v5 upgrade #394

Merged
merged 38 commits into from
Dec 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
20e5606
Start of upgrade to v5 for Astro... so far we have a config bug
Adammatthiesen Dec 14, 2024
dcc1eeb
Refactor StudioCMS integration hooks and installation workflow
Adammatthiesen Dec 14, 2024
b76e43c
Refactor StudioCMS integration URL in astro.config.mts
Adammatthiesen Dec 14, 2024
29dd680
Refactor StudioCMS integration URL in astro.config.mts
Adammatthiesen Dec 14, 2024
ba7d0ee
Refactor response headers in badFormDataEntry function
Adammatthiesen Dec 14, 2024
01bdcac
Refactor StudioCMS integration URL and add security configuration
Adammatthiesen Dec 14, 2024
48f16cb
test
Adammatthiesen Dec 14, 2024
408000d
Refactor link generation in TestIsland component
Adammatthiesen Dec 14, 2024
fbaa011
Refactor TestIsland component to include data-astro-rerun attribute
Adammatthiesen Dec 14, 2024
f54d2d4
Refactor TestIsland component to remove data-astro-rerun attribute
Adammatthiesen Dec 14, 2024
03bba5d
Refactor TestIsland component to include data-astro-reload attribute …
Adammatthiesen Dec 14, 2024
50ffd50
test
Adammatthiesen Dec 14, 2024
a79713f
Refactor TestIsland component to remove data-astro-reload attribute i…
Adammatthiesen Dec 14, 2024
548ad64
Refactor TestIsland component to include data-astro-reload attribute …
Adammatthiesen Dec 14, 2024
c6f5dee
Refactor SingleSidebar component to remove console.log statements and…
Adammatthiesen Dec 14, 2024
749c5cf
Refactor Layout component to include dynamic sidebar rendering based …
Adammatthiesen Dec 14, 2024
d133dde
move 404 to dashboard
Adammatthiesen Dec 14, 2024
6319bbe
test
Adammatthiesen Dec 14, 2024
bb0bf92
Refactor 404 page to make the "Go back" button full width
Adammatthiesen Dec 14, 2024
32fa820
Refactor 404 page to include error message and make "Go back" button …
Adammatthiesen Dec 14, 2024
8e99baf
Refactor 404 page to improve error message and button styling
Adammatthiesen Dec 14, 2024
d42f9a2
Refactor 404 page to move inject404Route to dashboardConfig
Adammatthiesen Dec 14, 2024
bd6dbe1
Refactor 404 page to move inject404Route to dashboardConfig
Adammatthiesen Dec 14, 2024
d71d1c1
Refactor 404 page to remove data-theme attribute from html tag
Adammatthiesen Dec 14, 2024
cbf8adb
Update docs to use new starlight loaders and verify they are working
Adammatthiesen Dec 14, 2024
8f2e768
Refactor StudioCMS to export StudioCMSPlugin type
Adammatthiesen Dec 14, 2024
e3db1b7
Refactor typedocHelpers to fix file path in getFilePathToPackage func…
Adammatthiesen Dec 14, 2024
85d8ede
refactor and cleanup
Adammatthiesen Dec 14, 2024
84f83e8
Refactor StudioCMS renderer to use Astro Remark renderer
Adammatthiesen Dec 14, 2024
db69a01
Refactor StudioCMS renderer to use Astro Remark renderer and export S…
Adammatthiesen Dec 14, 2024
02d8db7
Refactor StudioCMS UI package catalog to mark it as released
Adammatthiesen Dec 14, 2024
2e6d3fe
Refactor contributors.config.ts to include 'withstudiocms/ui' reposit…
Adammatthiesen Dec 14, 2024
c57f85c
Refactor contributors.config.ts to include 'withstudiocms/ui' reposit…
Adammatthiesen Dec 14, 2024
528f83c
Refactor environment-variables.mdx and gallery.mdx files
Adammatthiesen Dec 14, 2024
b50ac99
Refactor StudioCMS configuration files
Adammatthiesen Dec 14, 2024
302927c
Refactor StudioCMS configuration files
Adammatthiesen Dec 14, 2024
535790b
Refactor StudioCMS configuration files and remove unused strings module
Adammatthiesen Dec 14, 2024
04b5719
Update docs/src/content/docs/start-here/gallery.mdx
Adammatthiesen Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor StudioCMS to export StudioCMSPlugin type
Adammatthiesen committed Dec 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 8f2e768302c4a04167364406f6813afa65e641c9
2 changes: 2 additions & 0 deletions packages/studiocms/src/index.ts
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ import {
type Renderer,
type SafePluginListType,
type StudioCMSOptions,
type StudioCMSPlugin,
type StudioCMSPluginOptions,
definePlugin,
} from '@studiocms/core/schemas';
@@ -231,6 +232,7 @@ export default studioCMSIntegration;
export {
defineStudioCMSConfig,
definePlugin,
type StudioCMSPlugin,
type CustomRenderer,
type Renderer,
type StudioCMSOptions,
5 changes: 3 additions & 2 deletions packages/studiocms_core/src/schemas/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -185,13 +185,14 @@ export const SafePluginListSchema = z.array(SafePluginListItemSchema);
export type StudioCMSPluginOptions = z.infer<typeof StudioCMSPluginSchema>;
export type SafePluginListItemType = z.infer<typeof SafePluginListItemSchema>;
export type SafePluginListType = z.infer<typeof SafePluginListSchema>;
export type StudioCMSPlugin = StudioCMSPluginOptions;

/**
* Defines a plugin for StudioCMS.
*
* @param options - The configuration options for the plugin.
* @returns The provided plugin options.
* @returns The plugin configuration.
*/
export function definePlugin(options: StudioCMSPluginOptions) {
export function definePlugin(options: StudioCMSPluginOptions): StudioCMSPlugin {
return options;
}