create-packer 1.41.6 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +2 -1
  2. package/template/web-app/svelte/.svelte-kit/ambient.d.ts +184 -10
  3. package/template/web-app/svelte/.svelte-kit/generated/client/nodes/0.js +1 -1
  4. package/template/web-app/svelte/.svelte-kit/generated/client/nodes/1.js +1 -1
  5. package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +49 -49
  6. package/template/web-app/svelte/.svelte-kit/tsconfig.json +6 -0
  7. package/template/web-app/svelte/eslint.config.js +95 -95
  8. package/template/web-app/svelte/package.json +58 -55
  9. package/template/web-app/svelte/svelte.config.js +14 -2
  10. package/template/web-app/svelte/tsconfig.json +21 -21
  11. package/template/web-app/svelte/vite.config.ts +53 -59
  12. package/template/web-app/solid/.editorconfig +0 -14
  13. package/template/web-app/solid/.gitignore +0 -2
  14. package/template/web-app/solid/.husky/commit-msg +0 -4
  15. package/template/web-app/solid/.husky/pre-commit +0 -4
  16. package/template/web-app/solid/.prettierrc +0 -12
  17. package/template/web-app/solid/.stylelintrc +0 -29
  18. package/template/web-app/solid/README.md +0 -34
  19. package/template/web-app/solid/commitlint.config.cjs +0 -1
  20. package/template/web-app/solid/index.html +0 -16
  21. package/template/web-app/solid/package.json +0 -53
  22. package/template/web-app/solid/postcss.config.cjs +0 -9
  23. package/template/web-app/solid/src/app.container.tsx +0 -12
  24. package/template/web-app/solid/src/assets/favicon.ico +0 -0
  25. package/template/web-app/solid/src/index.css +0 -15
  26. package/template/web-app/solid/src/index.tsx +0 -15
  27. package/template/web-app/solid/src/layout/index.ts +0 -1
  28. package/template/web-app/solid/src/layout/layout.container.tsx +0 -5
  29. package/template/web-app/solid/src/logo.svg +0 -1
  30. package/template/web-app/solid/src/pages/home/index.ts +0 -1
  31. package/template/web-app/solid/src/pages/home/view.css +0 -0
  32. package/template/web-app/solid/src/pages/home/view.tsx +0 -5
  33. package/template/web-app/solid/src/pages/notFound/index.ts +0 -1
  34. package/template/web-app/solid/src/pages/notFound/view.tsx +0 -3
  35. package/template/web-app/solid/src/router/home/index.ts +0 -2
  36. package/template/web-app/solid/src/router/home/paths.ts +0 -3
  37. package/template/web-app/solid/src/router/home/routes.tsx +0 -12
  38. package/template/web-app/solid/src/router/index.ts +0 -2
  39. package/template/web-app/solid/src/router/paths.ts +0 -5
  40. package/template/web-app/solid/src/router/routes.ts +0 -16
  41. package/template/web-app/solid/tailwind.config.cjs +0 -11
  42. package/template/web-app/solid/tsconfig.json +0 -20
  43. package/template/web-app/solid/vite.config.ts +0 -23
@@ -1,55 +1,58 @@
1
- {
2
- "name": "svelte",
3
- "version": "0.0.1",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "prepare": "husky install",
8
- "dev": "vite",
9
- "build": "npm run check && npm run lint && vite build",
10
- "build:analyse": "npm run check && npm run lint && vite build --mode analyse",
11
- "preview": "vite preview",
12
- "up:vite": "pnpm up vite @vitejs/* -L",
13
- "up:svelte": "pnpm up svelte svelte-check @sveltejs/* -L",
14
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
15
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
16
- "lint": "pnpm run check && eslint",
17
- "format": "prettier --plugin-search-dir . --write .",
18
- "cz": "cz",
19
- "push": "npm run commit && git push",
20
- "commit": "git add . && npm run cz"
21
- },
22
- "devDependencies": {
23
- "@commitlint/cli": "17.7.1",
24
- "@commitlint/config-conventional": "17.7.0",
25
- "@commitlint/cz-commitlint": "17.7.1",
26
- "@sveltejs/adapter-auto": "3.3.1",
27
- "@sveltejs/kit": "2.15.0",
28
- "@sveltejs/vite-plugin-svelte": "5.0.3",
29
- "@types/lodash-es": "4.17.12",
30
- "commitizen": "4.3.0",
31
- "cssnano": "6.0.1",
32
- "eslint": "9.17.0",
33
- "eslint-config-prettier": "9.1.0",
34
- "eslint-import-resolver-typescript": "3.7.0",
35
- "eslint-plugin-import": "2.31.0",
36
- "eslint-plugin-svelte": "2.46.1",
37
- "postcss": "8.4.35",
38
- "postcss-import": "16.0.1",
39
- "postcss-nesting": "12.0.3",
40
- "prettier": "3.2.5",
41
- "prettier-plugin-svelte": "3.2.5",
42
- "rollup-plugin-visualizer": "5.12.0",
43
- "svelte-check": "4.1.1",
44
- "tslib": "2.6.2",
45
- "typescript": "5.7.2",
46
- "typescript-eslint": "8.15.0",
47
- "vite": "6.0.7",
48
- "vite-plugin-checker": "0.8.0",
49
- "vite-plugin-stylelint": "6.0.0"
50
- },
51
- "dependencies": {
52
- "lodash-es": "4.17.21",
53
- "svelte": "5.16.0"
54
- }
55
- }
1
+ {
2
+ "name": "svelte",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "prepare": "husky install",
8
+ "dev": "cross-env MODE=development vite",
9
+ "build": "npm run check && npm run lint && cross-env MODE=production vite build",
10
+ "build:analyse": "npm run check && npm run lint && vite build --mode analyse",
11
+ "preview": "vite preview",
12
+ "up:vite": "pnpm up vite @vitejs/* -L",
13
+ "up:svelte": "pnpm up svelte svelte-check @sveltejs/* -L",
14
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
15
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
16
+ "lint": "pnpm run check && eslint",
17
+ "format": "prettier --plugin-search-dir . --write .",
18
+ "cz": "cz",
19
+ "push": "npm run commit && git push",
20
+ "commit": "git add . && npm run cz"
21
+ },
22
+ "devDependencies": {
23
+ "@commitlint/cli": "17.7.1",
24
+ "@commitlint/config-conventional": "17.7.0",
25
+ "@commitlint/cz-commitlint": "17.7.1",
26
+ "@sveltejs/adapter-auto": "3.3.1",
27
+ "@sveltejs/kit": "2.15.0",
28
+ "@sveltejs/vite-plugin-svelte": "5.0.3",
29
+ "@types/lodash-es": "4.17.12",
30
+ "commitizen": "4.3.0",
31
+ "cross-env": "7.0.3",
32
+ "cssnano": "6.0.1",
33
+ "dotenv": "^16.4.7",
34
+ "eslint": "9.17.0",
35
+ "eslint-config-prettier": "9.1.0",
36
+ "eslint-import-resolver-typescript": "3.7.0",
37
+ "eslint-plugin-import": "2.31.0",
38
+ "eslint-plugin-svelte": "2.46.1",
39
+ "globals": "15.12.0",
40
+ "postcss": "8.4.35",
41
+ "postcss-import": "16.0.1",
42
+ "postcss-nesting": "12.0.3",
43
+ "prettier": "3.2.5",
44
+ "prettier-plugin-svelte": "3.2.5",
45
+ "rollup-plugin-visualizer": "5.12.0",
46
+ "svelte-check": "4.1.1",
47
+ "tslib": "2.6.2",
48
+ "typescript": "5.7.2",
49
+ "typescript-eslint": "8.15.0",
50
+ "vite": "6.0.7",
51
+ "vite-plugin-checker": "0.8.0",
52
+ "vite-plugin-stylelint": "6.0.0"
53
+ },
54
+ "dependencies": {
55
+ "lodash-es": "4.17.21",
56
+ "svelte": "5.16.0"
57
+ }
58
+ }
@@ -1,6 +1,13 @@
1
+ import path from 'path'
2
+ import { fileURLToPath } from 'url'
1
3
  import adapter from '@sveltejs/adapter-auto'
2
4
  import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
5
+ import dotenv from 'dotenv'
3
6
 
7
+ const mode = process.env.MODE
8
+ const env = dotenv.config({ path: `./${mode ? `.env.${mode}` : '.env'}` }).parsed
9
+ const __filename = fileURLToPath(import.meta.url)
10
+ const __dirname = path.dirname(__filename)
4
11
  // This config is ignored and replaced with one of the configs in the shared folder when a project is created.
5
12
 
6
13
  /** @type {import('@sveltejs/kit').Config} */
@@ -8,9 +15,14 @@ const config = {
8
15
  // Consult https://kit.svelte.dev/docs/integrations#preprocessors
9
16
  // for more information about preprocessors
10
17
  preprocess: vitePreprocess(),
11
-
12
18
  kit: {
13
- adapter: adapter()
19
+ adapter: adapter(),
20
+ paths: {
21
+ base: env.VITE_BASE_URL
22
+ },
23
+ alias: {
24
+ '@': path.join(__dirname, 'src')
25
+ }
14
26
  }
15
27
  }
16
28
 
@@ -1,21 +1,21 @@
1
- {
2
- "extends": "./.svelte-kit/tsconfig.json",
3
- "compilerOptions": {
4
- "allowJs": true,
5
- "strictNullChecks": true,
6
- "checkJs": true,
7
- "esModuleInterop": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "resolveJsonModule": true,
10
- "skipLibCheck": true,
11
- "sourceMap": true,
12
- "strict": true,
13
- "paths": {
14
- "@/*": ["./*"]
15
- }
16
- }
17
- // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
18
- //
19
- // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
20
- // from the referenced tsconfig.json - TypeScript does not merge them in
21
- }
1
+ {
2
+ "extends": "./.svelte-kit/tsconfig.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "strictNullChecks": true,
6
+ "checkJs": true,
7
+ "esModuleInterop": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "resolveJsonModule": true,
10
+ "skipLibCheck": true,
11
+ "sourceMap": true,
12
+ "strict": true,
13
+ "paths": {
14
+ "@/*": ["./*"]
15
+ }
16
+ }
17
+ // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
18
+ //
19
+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
20
+ // from the referenced tsconfig.json - TypeScript does not merge them in
21
+ }
@@ -1,59 +1,53 @@
1
- import path from 'path'
2
- import { defineConfig, loadEnv } from 'vite'
3
- import { sveltekit } from '@sveltejs/kit/vite'
4
- import stylelint from 'vite-plugin-stylelint'
5
- import checker from 'vite-plugin-checker'
6
- import { visualizer } from 'rollup-plugin-visualizer'
7
- import { includes } from 'lodash-es'
8
- import { createChunks } from './scripts'
9
-
10
- export default defineConfig(({ mode }) => {
11
- const env = loadEnv(mode, process.cwd(), '')
12
- const plugins: any[] = [
13
- stylelint({ cache: false, include: ['**/*.{css,scss,sass,less,styl,ts,tsx}'] }),
14
- checker({
15
- enableBuild: false,
16
- typescript: true,
17
- eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
18
- }),
19
- sveltekit()
20
- ]
21
-
22
- if (mode === 'analyse') {
23
- plugins.push(visualizer({ open: true, sourcemap: true, brotliSize: true, gzipSize: true }))
24
- }
25
-
26
- return {
27
- base: env.VITE_BASE_URL,
28
- plugins,
29
- resolve: {
30
- alias: {
31
- '@': path.join(__dirname, 'src')
32
- }
33
- },
34
- esbuild: {
35
- drop: includes(['production', 'analyse'], mode) ? ['console', 'debugger'] : []
36
- },
37
- build: {
38
- sourcemap: mode === 'analyse',
39
- reportCompressedSize: mode === 'analyse',
40
- rollupOptions: {
41
- output: {
42
- manualChunks: createChunks({
43
- svelte: ['svelte']
44
- })
45
- }
46
- }
47
- },
48
- server: {
49
- host: '0.0.0.0',
50
- proxy: {
51
- '/dev/api': {
52
- target: 'http://127.0.0.1',
53
- changeOrigin: true,
54
- rewrite: path => path.replace(/^\/dev\/api/, '')
55
- }
56
- }
57
- }
58
- }
59
- })
1
+ import path from 'path'
2
+ import { defineConfig, loadEnv } from 'vite'
3
+ import { sveltekit } from '@sveltejs/kit/vite'
4
+ import stylelint from 'vite-plugin-stylelint'
5
+ import checker from 'vite-plugin-checker'
6
+ import { visualizer } from 'rollup-plugin-visualizer'
7
+ import { includes } from 'lodash-es'
8
+ import { createChunks } from './scripts'
9
+
10
+ export default defineConfig(({ mode }) => {
11
+ const env = loadEnv(mode, process.cwd(), '')
12
+ const plugins: any[] = [
13
+ stylelint({ cache: false, include: ['**/*.{css,scss,sass,less,styl,ts,tsx}'] }),
14
+ checker({
15
+ enableBuild: false,
16
+ typescript: true,
17
+ eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
18
+ }),
19
+ sveltekit()
20
+ ]
21
+
22
+ if (mode === 'analyse') {
23
+ plugins.push(visualizer({ open: true, sourcemap: true, brotliSize: true, gzipSize: true }))
24
+ }
25
+
26
+ return {
27
+ plugins,
28
+ esbuild: {
29
+ drop: includes(['production', 'analyse'], mode) ? ['console', 'debugger'] : []
30
+ },
31
+ build: {
32
+ sourcemap: mode === 'analyse',
33
+ reportCompressedSize: mode === 'analyse',
34
+ rollupOptions: {
35
+ output: {
36
+ manualChunks: createChunks({
37
+ svelte: ['svelte']
38
+ })
39
+ }
40
+ }
41
+ },
42
+ server: {
43
+ host: '0.0.0.0',
44
+ proxy: {
45
+ '/dev/api': {
46
+ target: 'http://127.0.0.1',
47
+ changeOrigin: true,
48
+ rewrite: path => path.replace(/^\/dev\/api/, '')
49
+ }
50
+ }
51
+ }
52
+ }
53
+ })
@@ -1,14 +0,0 @@
1
- # editorconfig.org
2
-
3
- root = true
4
-
5
- [*]
6
- charset = utf-8
7
- indent_size = 4
8
- indent_style = space
9
- insert_final_newline = true
10
- trim_trailing_whitespace = true
11
-
12
-
13
- [*.md]
14
- trim_trailing_whitespace = false
@@ -1,2 +0,0 @@
1
- node_modules
2
- dist
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npx --no -- commitlint --edit
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npm run lint
@@ -1,12 +0,0 @@
1
- {
2
- "printWidth": 100,
3
- "tabWidth": 4,
4
- "useTabs": false,
5
- "semi": false,
6
- "singleQuote": true,
7
- "trailingComma": "none",
8
- "bracketSpacing": true,
9
- "bracketSameLine": false,
10
- "arrowParens": "avoid",
11
- "rangeStart": 0
12
- }
@@ -1,29 +0,0 @@
1
- {
2
- "extends": "stylelint-config-standard-scss",
3
- "rules": {
4
- "comment-empty-line-before": "never",
5
- "no-empty-source": null,
6
- "alpha-value-notation": null,
7
- "color-function-notation": null,
8
- "at-rule-no-unknown": [
9
- true,
10
- {
11
- "ignoreAtRules": ["tailwind", "apply", "use"]
12
- }
13
- ],
14
- "declaration-block-no-redundant-longhand-properties": null,
15
- "selector-pseudo-class-no-unknown": [
16
- true,
17
- {
18
- "ignorePseudoClasses": ["global"]
19
- }
20
- ],
21
- "selector-class-pattern": null,
22
- "scss/at-rule-no-unknown": [
23
- true,
24
- {
25
- "ignoreAtRules": ["tailwind", "a pply"]
26
- }
27
- ]
28
- }
29
- }
@@ -1,34 +0,0 @@
1
- ## Usage
2
-
3
- Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.
4
-
5
- This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template.
6
-
7
- ```bash
8
- $ npm install # or pnpm install or yarn install
9
- ```
10
-
11
- ### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
12
-
13
- ## Available Scripts
14
-
15
- In the project directory, you can run:
16
-
17
- ### `npm dev` or `npm start`
18
-
19
- Runs the app in the development mode.<br>
20
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
21
-
22
- The page will reload if you make edits.<br>
23
-
24
- ### `npm run build`
25
-
26
- Builds the app for production to the `dist` folder.<br>
27
- It correctly bundles Solid in production mode and optimizes the build for the best performance.
28
-
29
- The build is minified and the filenames include the hashes.<br>
30
- Your app is ready to be deployed!
31
-
32
- ## Deployment
33
-
34
- You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)
@@ -1 +0,0 @@
1
- module.exports = { extends: ['@commitlint/config-conventional'] }
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <meta name="theme-color" content="#000000" />
7
- <link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
8
- <title>Solid App</title>
9
- </head>
10
- <body>
11
- <noscript>You need to enable JavaScript to run this app.</noscript>
12
- <div id="root"></div>
13
-
14
- <script src="/src/index.tsx" type="module"></script>
15
- </body>
16
- </html>
@@ -1,53 +0,0 @@
1
- {
2
- "name": "vite-template-solid",
3
- "version": "0.0.0",
4
- "description": "",
5
- "scripts": {
6
- "prepare": "husky install",
7
- "start": "vite",
8
- "dev": "vite",
9
- "build": "vite build",
10
- "serve": "vite preview",
11
- "up:vite": "pnpm up vite @vitejs/* -L",
12
- "format": "prettier --write \"src/**/*.{ts,js,tsx,jsx,css,scss,less}\" \"./package.json\"",
13
- "lint": "eslint ./src/**/*.{tsx,ts} && stylelint ./src/**/*.{css,scss,less}",
14
- "lint:fix": "eslint ./src/**/*.{tsx,ts} --fix && stylelint ./src/**/*.{css,scss,less} --fix",
15
- "test:watchs": "jest --watch",
16
- "test": "jest",
17
- "test:coverage": "jest --silent --watchAll=false --coverage",
18
- "cz": "cz",
19
- "push": "npm run commit && git push",
20
- "commit": "git add . && npm run cz"
21
- },
22
- "license": "MIT",
23
- "devDependencies": {
24
- "@commitlint/cli": "17.6.3",
25
- "@commitlint/config-conventional": "17.6.3",
26
- "@commitlint/cz-commitlint": "17.5.0",
27
- "@eslint/js": "9.15.0",
28
- "autoprefixer": "10.4.14",
29
- "commitizen": "4.3.0",
30
- "cssnano": "6.0.0",
31
- "inquirer": "8.0.0",
32
- "postcss": "8.4.35",
33
- "postcss-import": "16.0.1",
34
- "postcss-nesting": "12.0.3",
35
- "prettier": "3.2.5",
36
- "stylelint": "16.10.0",
37
- "stylelint-config-standard-scss": "13.0.0",
38
- "tailwindcss": "3.4.3",
39
- "typescript": "5.7.2",
40
- "typescript-eslint": "8.15.0",
41
- "vite": "6.0.7",
42
- "vite-plugin-solid": "2.11.0"
43
- },
44
- "dependencies": {
45
- "@solidjs/router": "0.8.2",
46
- "solid-js": "1.7.5"
47
- },
48
- "config": {
49
- "commitizen": {
50
- "path": "@commitlint/cz-commitlint"
51
- }
52
- }
53
- }
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- 'postcss-import': {},
4
- 'tailwindcss/nesting': 'postcss-nesting',
5
- tailwindcss: {},
6
- autoprefixer: {},
7
- ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
8
- }
9
- }
@@ -1,12 +0,0 @@
1
- import { Router, useRoutes } from '@solidjs/router'
2
- import { routes } from '@/router'
3
-
4
- export default function App() {
5
- const Routes = useRoutes(routes)
6
-
7
- return (
8
- <Router>
9
- <Routes />
10
- </Router>
11
- )
12
- }
@@ -1,15 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- body {
6
- margin: 0;
7
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
8
- 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
-
13
- code {
14
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
15
- }
@@ -1,15 +0,0 @@
1
- /* @refresh reload */
2
- import { render } from 'solid-js/web'
3
-
4
- import './index.css'
5
- import App from './app.container'
6
-
7
- const root = document.getElementById('root')
8
-
9
- if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
10
- throw new Error(
11
- 'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got mispelled?'
12
- )
13
- }
14
-
15
- render(() => <App />, root!)
@@ -1 +0,0 @@
1
- export { default } from './layout.container'
@@ -1,5 +0,0 @@
1
- import { Outlet } from '@solidjs/router'
2
-
3
- export default function Layout() {
4
- return <Outlet />
5
- }
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 155.3"><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" fill="#76b3e1"/><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="27.5" y1="3" x2="152" y2="63.5"><stop offset=".1" stop-color="#76b3e1"/><stop offset=".3" stop-color="#dcf2fd"/><stop offset="1" stop-color="#76b3e1"/></linearGradient><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" opacity=".3" fill="url(#a)"/><path d="M52 35l-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" fill="#518ac8"/><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="95.8" y1="32.6" x2="74" y2="105.2"><stop offset="0" stop-color="#76b3e1"/><stop offset=".5" stop-color="#4377bb"/><stop offset="1" stop-color="#1f3b77"/></linearGradient><path d="M52 35l-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" opacity=".3" fill="url(#b)"/><linearGradient id="c" gradientUnits="userSpaceOnUse" x1="18.4" y1="64.2" x2="144.3" y2="149.8"><stop offset="0" stop-color="#315aa9"/><stop offset=".5" stop-color="#518ac8"/><stop offset="1" stop-color="#315aa9"/></linearGradient><path d="M134 80a45 45 0 00-48-15L24 85 4 120l112 19 20-36c4-7 3-15-2-23z" fill="url(#c)"/><linearGradient id="d" gradientUnits="userSpaceOnUse" x1="75.2" y1="74.5" x2="24.4" y2="260.8"><stop offset="0" stop-color="#4377bb"/><stop offset=".5" stop-color="#1a336b"/><stop offset="1" stop-color="#1a336b"/></linearGradient><path d="M114 115a45 45 0 00-48-15L4 120s53 40 94 30l3-1c17-5 23-21 13-34z" fill="url(#d)"/></svg>
@@ -1 +0,0 @@
1
- export { default } from './view'
File without changes
@@ -1,5 +0,0 @@
1
- import './view.css'
2
-
3
- export default function Home() {
4
- return <div class={'flex justify-center items-center'}>sdfs</div>
5
- }
@@ -1 +0,0 @@
1
- export { default } from './view'
@@ -1,3 +0,0 @@
1
- export default function NotFound() {
2
- return <div>404</div>
3
- }
@@ -1,2 +0,0 @@
1
- export { default as routes } from './routes'
2
- export { default as paths } from './paths'
@@ -1,3 +0,0 @@
1
- export default {
2
- home: '/home'
3
- }
@@ -1,12 +0,0 @@
1
- import { lazy } from 'solid-js'
2
- import { RouteDefinition } from '@solidjs/router'
3
- import paths from './paths'
4
-
5
- const routes: RouteDefinition[] = [
6
- {
7
- path: ['/', paths.home],
8
- component: lazy(() => import('@/pages/home'))
9
- }
10
- ]
11
-
12
- export default routes
@@ -1,2 +0,0 @@
1
- export { default as routePaths } from './paths'
2
- export { default as routes } from './routes'
@@ -1,5 +0,0 @@
1
- import * as home from './home'
2
- export default {
3
- root: '/',
4
- ...home.paths
5
- }
@@ -1,16 +0,0 @@
1
- import { lazy } from 'solid-js'
2
- import { RouteDefinition } from '@solidjs/router'
3
- import * as home from './home'
4
-
5
- const routes: RouteDefinition[] = [
6
- {
7
- path: '/',
8
- component: lazy(() => import('@/layout')),
9
- children: [...home.routes]
10
- },
11
- {
12
- path: '/*all',
13
- component: lazy(() => import('@/pages/notFound'))
14
- }
15
- ]
16
- export default routes