- {@render children?.()} -
diff --git a/src/lib/components/ui/card/card-footer.svelte b/src/lib/components/ui/card/card-footer.svelte deleted file mode 100644 index cf43353..0000000 --- a/src/lib/components/ui/card/card-footer.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - -Visit svelte.dev/docs/kit to read the documentation
diff --git a/src/routes/lang/[language]/+server.ts b/src/routes/lang/[language]/+server.ts deleted file mode 100644 index 79a1b2f..0000000 --- a/src/routes/lang/[language]/+server.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { json } from '@sveltejs/kit' -import { languageService } from '$lib/server/LanguageService.js' - -export async function GET({ params }) { - const { language } = params - - const result = await languageService.getTranslations([language]) - - return json(result[language]) -} diff --git a/src/routes/layout.css b/src/routes/layout.css new file mode 100644 index 0000000..d4b5078 --- /dev/null +++ b/src/routes/layout.css @@ -0,0 +1 @@ +@import 'tailwindcss'; diff --git a/svelte.config.js b/svelte.config.js index 8f479c4..1295460 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,20 +1,18 @@ -import adapter from 'svelte-adapter-bun' -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' +import adapter from '@sveltejs/adapter-auto'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { - // Consult https://svelte.dev/docs/kit/integrations - // for more information about preprocessors - preprocess: vitePreprocess(), - alias: { - '@/*': './src/lib/*', - }, - kit: { - // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://svelte.dev/docs/kit/adapters for more information about adapters. - adapter: adapter(), - }, -} + // Consult https://svelte.dev/docs/kit/integrations + // for more information about preprocessors + preprocess: vitePreprocess(), -export default config + kit: { + // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://svelte.dev/docs/kit/adapters for more information about adapters. + adapter: adapter() + } +}; + +export default config; diff --git a/tsconfig.json b/tsconfig.json index e3898cb..64aad07 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,52 @@ { - "extends": "./.svelte-kit/tsconfig.json", - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "moduleResolution": "bundler" - } - // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias - // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files - // - // To make changes to top-level options such as include and exclude, we recommend extending - // the generated config; see https://svelte.dev/docs/kit/configuration#typescript -} + "compilerOptions": { + "paths": { + "$lib": [ + "../src/lib" + ], + "$lib/*": [ + "../src/lib/*" + ], + "$app/types": [ + "./types/index.d.ts" + ] + }, + "rootDirs": [ + "..", + "./types" + ], + "verbatimModuleSyntax": true, + "isolatedModules": true, + "lib": [ + "esnext", + "DOM", + "DOM.Iterable" + ], + "moduleResolution": "bundler", + "module": "esnext", + "noEmit": true, + "target": "esnext" + }, + "include": [ + "ambient.d.ts", + "non-ambient.d.ts", + "./types/**/$types.d.ts", + "../vite.config.js", + "../vite.config.ts", + "../src/**/*.js", + "../src/**/*.ts", + "../src/**/*.svelte", + "../tests/**/*.js", + "../tests/**/*.ts", + "../tests/**/*.svelte" + ], + "exclude": [ + "../node_modules/**", + "../src/service-worker.js", + "../src/service-worker/**/*.js", + "../src/service-worker.ts", + "../src/service-worker/**/*.ts", + "../src/service-worker.d.ts", + "../src/service-worker/**/*.d.ts" + ] +} \ No newline at end of file diff --git a/types/route_meta_data.json b/types/route_meta_data.json new file mode 100644 index 0000000..a96ec02 --- /dev/null +++ b/types/route_meta_data.json @@ -0,0 +1,3 @@ +{ + "/": [] +} \ No newline at end of file diff --git a/types/src/routes/$types.d.ts b/types/src/routes/$types.d.ts new file mode 100644 index 0000000..32e2797 --- /dev/null +++ b/types/src/routes/$types.d.ts @@ -0,0 +1,24 @@ +import type * as Kit from '@sveltejs/kit'; + +type Expand