Compare commits

...

3 Commits

Author SHA1 Message Date
M3DZIK be03aeeff6
Add cloudflare adapter 2024-03-09 19:51:53 +01:00
M3DZIK fefea51087
Fix build 2024-03-09 19:51:15 +01:00
M3DZIK 57d80153ef
Update dependencies 2024-03-09 19:38:20 +01:00
8 changed files with 1515 additions and 729 deletions

2153
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,26 +12,29 @@
"format": "prettier --plugin-search-dir . --write ." "format": "prettier --plugin-search-dir . --write ."
}, },
"devDependencies": { "devDependencies": {
"@floating-ui/dom": "^1.4.0", "@floating-ui/dom": "^1.6.3",
"@skeletonlabs/skeleton": "^1.7.1", "@skeletonlabs/skeleton": "^2.9.0",
"@sveltejs/adapter-auto": "^2.0.0", "@skeletonlabs/tw-plugin": "^0.3.1",
"@sveltejs/kit": "^1.5.0", "@sveltejs/adapter-auto": "^3.1.1",
"@typescript-eslint/eslint-plugin": "^5.45.0", "@sveltejs/adapter-cloudflare": "^4.1.0",
"@typescript-eslint/parser": "^5.45.0", "@sveltejs/kit": "^2.5.3",
"autoprefixer": "^10.4.14", "@sveltejs/vite-plugin-svelte": "^3.0.2",
"eslint": "^8.28.0", "@typescript-eslint/eslint-plugin": "^7.1.1",
"eslint-config-prettier": "^8.5.0", "@typescript-eslint/parser": "^7.1.1",
"eslint-plugin-svelte": "^2.26.0", "autoprefixer": "^10.4.18",
"postcss": "^8.4.24", "eslint": "^8.57.0",
"prettier": "^2.8.0", "eslint-config-prettier": "^9.1.0",
"prettier-plugin-svelte": "^2.8.1", "eslint-plugin-svelte": "^2.35.1",
"svelte": "^3.54.0", "postcss": "^8.4.35",
"svelte-check": "^3.0.1", "prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"svelte": "^4.2.12",
"svelte-check": "^3.6.6",
"svelte-icons": "^2.1.0", "svelte-icons": "^2.1.0",
"tailwindcss": "^3.3.2", "tailwindcss": "^3.4.1",
"tslib": "^2.4.1", "tslib": "^2.6.2",
"typescript": "^5.0.0", "typescript": "^5.4.2",
"vite": "^4.3.0" "vite": "^5.1.5"
}, },
"type": "module" "type": "module"
} }

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
%sveltekit.head% %sveltekit.head%
</head> </head>
<body data-sveltekit-preload-data="hover"> <body data-sveltekit-preload-data="hover" data-theme="skeleton"">
<div style="display: contents">%sveltekit.body%</div> <div style="display: contents">%sveltekit.body%</div>
</body> </body>
</html> </html>

View File

@ -1,4 +1,8 @@
/*place global styles here */ @tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;
html, html,
body { body {
@apply h-full; @apply h-full;

View File

@ -1,6 +1,4 @@
<script> <script>
import '@skeletonlabs/skeleton/themes/theme-skeleton.css';
import '@skeletonlabs/skeleton/styles/skeleton.css';
import '../app.postcss'; import '../app.postcss';
</script> </script>

View File

@ -1,5 +1,6 @@
import adapter from '@sveltejs/adapter-auto'; import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors // Consult https://kit.svelte.dev/docs/integrations#preprocessors
@ -16,4 +17,5 @@ const config = {
adapter: adapter() adapter: adapter()
} }
}; };
export default config; export default config;

View File

@ -1,15 +0,0 @@
import { join } from 'path';
import skeleton from '@skeletonlabs/skeleton/tailwind/skeleton.cjs';
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
'./src/**/*.{html,js,svelte,ts}',
join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')
],
theme: {
extend: {}
},
plugins: [...skeleton()]
};

21
tailwind.config.ts Normal file
View File

@ -0,0 +1,21 @@
import { skeleton } from '@skeletonlabs/tw-plugin';
import { join } from 'path';
import type { Config } from 'tailwindcss';
export default {
darkMode: 'class',
content: [
'./src/**/*.{html,js,svelte,ts}',
join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')
],
theme: {
extend: {}
},
plugins: [
skeleton({
themes: {
preset: ['skeleton']
}
})
]
} satisfies Config;