Compare commits

...

3 Commits

Author SHA1 Message Date
d34eeb5cd8 feat: migrate to sveltekit 2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-09-11 13:07:44 +07:00
43ff0efc55 feat: migrate to svelte 4 2024-09-11 13:07:44 +07:00
5e1b08145d chore: update dependencies 2024-09-11 13:07:44 +07:00
5 changed files with 1083 additions and 779 deletions

1845
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,9 +14,10 @@
"format": "prettier --write --plugin-search-dir=. ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^1.0.3",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/kit": "^1.22.4",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-node": "^2.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/fitvids": "^2.1.1",
"@types/tryghost__content-api": "^1.3.11",
"@typescript-eslint/eslint-plugin": "^5.62.0",
@ -40,7 +41,7 @@
"typescript": "^5.1.6",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.2",
"vite": "^4.4.9"
"vite": "^5.0.0"
},
"type": "module",
"dependencies": {
@ -51,4 +52,4 @@
"svelte-material-icons": "^3.0.0",
"svelte-themes": "^0.0.98"
}
}
}

View File

@ -6,7 +6,7 @@ export const load: PageLoad = async ({ params }) => {
const tagSlug = params.tag;
const tagObj = await readTag(tagSlug);
if (!tagObj) {
throw error(404, 'Tag not found');
error(404, 'Tag not found');
}
const posts = await browsePostWithTag(tagSlug);

View File

@ -7,7 +7,7 @@ export const load: PageLoad = async ({ params }) => {
const postSlug = params.slug;
const post = await readPost(postSlug);
if (!post) {
throw error(404, 'Post not found');
error(404, 'Post not found');
}
const newHtml = await processPostHtml(post.html);
post.html = newHtml;

View File

@ -7,7 +7,7 @@ export const load: PageLoad = async ({ params }) => {
const authorObj = await readAuthor(authorSlug);
if (!authorObj) {
throw error(404, 'Author not found');
error(404, 'Author not found');
}
const posts = await browsePostWithAuthor(authorSlug);