Avivash/upgrade sveltekit (#112)

This commit is contained in:
Andrew Vivash 2023-01-09 17:28:32 -08:00 committed by GitHub
parent 971e120d0b
commit ca17915674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 2827 additions and 1422 deletions

4215
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,8 +15,8 @@
},
"devDependencies": {
"@playwright/test": "^1.29.2",
"@sveltejs/adapter-static": "1.0.0-next.43",
"@sveltejs/kit": "1.0.0-next.489",
"@sveltejs/adapter-static": "^1.0.0",
"@sveltejs/kit": "^1.0.1",
"@tailwindcss/typography": "^0.5.2",
"@types/qrcode-svg": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^4.33.0",
@ -40,7 +40,7 @@
"tsconfig-paths": "^3.12.0",
"tslib": "^2.0.0",
"typescript": "^4.4.4",
"vite": "^3.0.0"
"vite": "^4.0.0"
},
"type": "module",
"ava": {

View File

@ -1,7 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<meta property="og:type" content="website" />
<meta property="og:image:alt" content="WebNative Template" />
<meta property="og:image:width" content="1250" />
<meta property="og:image:height" content="358" />
<meta name="twitter:card" content="summary_large_image" />
%sveltekit.head%
<!-- See https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs for description. -->
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
</head>
<body>

View File

@ -1,3 +1,4 @@
export const csr = true
export const ssr = false
export const prerender = true
export const trailingSlash = 'always'

View File

@ -27,30 +27,16 @@
<svelte:head>
<title>{appName}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<meta name="description" content={appDescription} />
<meta property="og:title" content={appName} />
<meta property="og:description" content={appDescription} />
<meta property="og:url" content={appURL} />
<meta property="og:type" content="website" />
<meta property="og:image" content={appImageURL} />
<meta property="og:image:alt" content="WebNative Template" />
<meta property="og:image:width" content="1250" />
<meta property="og:image:height" content="358" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={appName} />
<meta name="twitter:description" content={appDescription} />
<meta name="twitter:image" content={appImageURL} />
<meta name="twitter:image:alt" content={appName} />
<!-- See https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs for description. -->
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
</svelte:head>
<div data-theme={$themeStore.selectedTheme} class="min-h-screen">

View File

@ -10,7 +10,6 @@ const config = {
adapter: adapter({
fallback: 'index.html'
}),
trailingSlash: 'always'
},
}

View File

@ -1,6 +1,7 @@
module.exports = {
mode: 'jit',
content: ['./src/**/*.{html,js,svelte,ts}'],
safelist: ['alert-success', 'alert-error', 'alert-info', 'alert-warning'],
plugins: [require('daisyui')],
darkMode: ['class', '[data-theme="dark"]'],
daisyui: {
@ -122,10 +123,5 @@ module.exports = {
max: '1000' // High enough to appear above the modal(999)
}
}
},
purge: {
options: {
safelist: ['alert-success', 'alert-error', 'alert-info', 'alert-warning']
}
}
}

View File

@ -23,10 +23,15 @@
"allowJs": true,
"checkJs": true,
"paths": {
"$components": ["src/components"],
"$components/*": ["src/components/*"],
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"$routes": ["src/routes"],
"$routes/*": ["src/routes/*"],
"$src": ["src"],
"$src/*": ["src/*"],
"$static": ["static"],
"$static/*": ["static/*"]
}
},