From 130940667eedc2941fc216031e5d30b9eddc65d0 Mon Sep 17 00:00:00 2001 From: scosman Date: Fri, 1 Nov 2024 16:03:20 -0400 Subject: [PATCH] Run: npx sv migrate svelte-5 No other manual changes, just the script. I'll merge https://github.com/CriticalMoments/CMSaasStarter/pull/161 into here, I just want to be able to CR the changes in that branch separate from the automatic changes by this command. --- package.json | 16 +++---- src/lib/emails/welcome_email_html.svelte | 1 + src/lib/emails/welcome_email_text.svelte | 9 +++- .../(admin)/account/(menu)/+layout.svelte | 17 ++++--- .../account/(menu)/billing/+page.svelte | 2 +- .../account/(menu)/settings/+page.svelte | 2 +- .../(menu)/settings/change_email/+page.svelte | 2 +- .../change_email_subscription/+page.svelte | 2 +- .../settings/change_password/+page.svelte | 8 ++-- .../settings/delete_account/+page.svelte | 2 +- .../(menu)/settings/edit_profile/+page.svelte | 2 +- .../(menu)/settings/settings_module.svelte | 45 +++++++++++++------ src/routes/(admin)/account/+layout.svelte | 12 +++-- .../account/create_profile/+page.svelte | 10 +++-- .../(admin)/account/sign_out/+page.svelte | 4 +- src/routes/(marketing)/+layout.svelte | 13 ++++-- .../(marketing)/blog/(posts)/+layout.svelte | 15 ++++--- .../(marketing)/contact_us/+page.svelte | 6 +-- src/routes/(marketing)/login/+layout.svelte | 9 +++- .../login/forgot_password/+page.svelte | 2 +- .../(marketing)/login/sign_in/+page.svelte | 2 +- .../(marketing)/login/sign_up/+page.svelte | 2 +- .../(marketing)/pricing/pricing_module.svelte | 20 ++++++--- src/routes/(marketing)/search/+page.svelte | 26 ++++++----- src/routes/+layout.svelte | 7 ++- 25 files changed, 152 insertions(+), 84 deletions(-) diff --git a/package.json b/package.json index 1013222e..8a19e805 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.0", - "@sveltejs/kit": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^3.1.1", + "@sveltejs/kit": "^2.5.27", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "@tailwindcss/typography": "^0.5.13", "@types/glob": "^8.1.0", "@types/html-to-text": "^9.0.4", @@ -28,19 +28,19 @@ "daisyui": "^4.7.3", "eslint": "^8.28.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-svelte": "^2.30.0", + "eslint-plugin-svelte": "^2.45.1", "fuse.js": "^7.0.0", "glob": "^10.4.5", "html-to-text": "^9.0.5", "jsdom": "^24.1.1", "postcss": "^8.4.31", - "prettier": "^3.0.3", - "prettier-plugin-svelte": "^3.0.3", + "prettier": "^3.1.0", + "prettier-plugin-svelte": "^3.2.6", "super-sitemap": "^0.15.1", - "svelte": "^4.2.19", - "svelte-check": "^3.4.3", + "svelte": "^5.0.0", + "svelte-check": "^4.0.0", "tailwindcss": "^3.4.1", - "typescript": "^5.0.0", + "typescript": "^5.5.0", "vite": "^5.4.8", "vitest": "^1.0.0" }, diff --git a/src/lib/emails/welcome_email_html.svelte b/src/lib/emails/welcome_email_html.svelte index 2dbfb0c2..6b55b82b 100644 --- a/src/lib/emails/welcome_email_html.svelte +++ b/src/lib/emails/welcome_email_html.svelte @@ -1,3 +1,4 @@ + Welcome to {companyName}! diff --git a/src/routes/(admin)/account/(menu)/+layout.svelte b/src/routes/(admin)/account/(menu)/+layout.svelte index de559a3c..6d1c981b 100644 --- a/src/routes/(admin)/account/(menu)/+layout.svelte +++ b/src/routes/(admin)/account/(menu)/+layout.svelte @@ -3,10 +3,15 @@ import { writable } from "svelte/store" import { setContext } from "svelte" import { WebsiteName } from "../../../../config" + interface Props { + children?: import('svelte').Snippet; + } + + let { children }: Props = $props(); const adminSectionStore = writable("") setContext("adminSection", adminSectionStore) - let adminSection: string + let adminSection: string = $state() adminSectionStore.subscribe((value) => { adminSection = value }) @@ -47,12 +52,12 @@
- + {@render children?.()}
-