create-packer 1.34.3 → 1.34.5
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.
- package/.gitignore +30 -30
- package/LICENSE +21 -21
- package/README.md +22 -22
- package/package.json +1 -1
- package/template/cli/.eslintrc +35 -35
- package/template/cli/.gitignore +29 -29
- package/template/cli/.prettierignore +6 -6
- package/template/cli/.prettierrc.js +20 -20
- package/template/cli/LICENSE +21 -21
- package/template/cli/README.md +13 -13
- package/template/cli/commitlint.config.cjs +1 -1
- package/template/cli/package.json +50 -50
- package/template/cli/pnpm-workspace.yaml +2 -2
- package/template/cli/src/createTemp.ts +63 -63
- package/template/cli/src/index.ts +5 -5
- package/template/cli/src/utils/index.ts +49 -49
- package/template/cli/template/template-1/index.ts +1 -1
- package/template/cli/tsconfig.json +20 -20
- package/template/cli/utils/pub.js +43 -43
- package/template/docusaurus/.gitignore +35 -35
- package/template/docusaurus/README.md +41 -41
- package/template/docusaurus/babel.config.js +3 -3
- package/template/docusaurus/blog/2019-05-28-first-blog-post.md +12 -12
- package/template/docusaurus/blog/2019-05-29-long-blog-post.md +44 -44
- package/template/docusaurus/blog/2021-08-01-mdx-blog-post.mdx +20 -20
- package/template/docusaurus/blog/2021-08-26-welcome/index.md +25 -25
- package/template/docusaurus/blog/authors.yml +17 -17
- package/template/docusaurus/docs/intro.mdx +47 -47
- package/template/docusaurus/docs/tutorial-basics/_category_.json +8 -8
- package/template/docusaurus/docs/tutorial-basics/congratulations.md +23 -23
- package/template/docusaurus/docs/tutorial-basics/create-a-blog-post.md +34 -34
- package/template/docusaurus/docs/tutorial-basics/create-a-document.md +57 -57
- package/template/docusaurus/docs/tutorial-basics/create-a-page.md +43 -43
- package/template/docusaurus/docs/tutorial-basics/deploy-your-site.md +31 -31
- package/template/docusaurus/docs/tutorial-basics/markdown-features.mdx +150 -150
- package/template/docusaurus/docs/tutorial-extras/_category_.json +7 -7
- package/template/docusaurus/docs/tutorial-extras/manage-docs-versions.md +55 -55
- package/template/docusaurus/docs/tutorial-extras/translate-your-site.md +88 -88
- package/template/docusaurus/docusaurus.config.js +116 -116
- package/template/docusaurus/package.json +52 -52
- package/template/docusaurus/sidebars.js +19 -19
- package/template/docusaurus/src/components/HomepageFeatures/index.tsx +70 -70
- package/template/docusaurus/src/components/HomepageFeatures/styles.module.css +11 -11
- package/template/docusaurus/src/css/custom.css +30 -30
- package/template/docusaurus/src/pages/index.module.css +23 -23
- package/template/docusaurus/src/pages/index.tsx +40 -40
- package/template/docusaurus/src/pages/markdown-page.md +7 -7
- package/template/docusaurus/static/img/undraw_docusaurus_mountain.svg +171 -171
- package/template/docusaurus/static/img/undraw_docusaurus_react.svg +170 -170
- package/template/docusaurus/static/img/undraw_docusaurus_tree.svg +40 -40
- package/template/docusaurus/tsconfig.json +7 -7
- package/template/lib/react/node_modules/.bin/acorn +17 -0
- package/template/lib/react/node_modules/.bin/acorn.CMD +12 -0
- package/template/lib/react/node_modules/.bin/acorn.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/browserslist +17 -0
- package/template/lib/react/node_modules/.bin/browserslist.CMD +12 -0
- package/template/lib/react/node_modules/.bin/browserslist.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/esbuild +17 -0
- package/template/lib/react/node_modules/.bin/esbuild.CMD +12 -0
- package/template/lib/react/node_modules/.bin/esbuild.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/eslint +17 -0
- package/template/lib/react/node_modules/.bin/eslint.CMD +12 -0
- package/template/lib/react/node_modules/.bin/eslint.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/prettier +17 -0
- package/template/lib/react/node_modules/.bin/prettier.CMD +12 -0
- package/template/lib/react/node_modules/.bin/prettier.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/sb +17 -0
- package/template/lib/react/node_modules/.bin/sb.CMD +12 -0
- package/template/lib/react/node_modules/.bin/sb.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/storybook +17 -0
- package/template/lib/react/node_modules/.bin/storybook.CMD +12 -0
- package/template/lib/react/node_modules/.bin/storybook.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/stylelint +17 -0
- package/template/lib/react/node_modules/.bin/stylelint.CMD +12 -0
- package/template/lib/react/node_modules/.bin/stylelint.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/tsc +17 -0
- package/template/lib/react/node_modules/.bin/tsc.CMD +12 -0
- package/template/lib/react/node_modules/.bin/tsc.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/tsserver +17 -0
- package/template/lib/react/node_modules/.bin/tsserver.CMD +12 -0
- package/template/lib/react/node_modules/.bin/tsserver.ps1 +41 -0
- package/template/lib/react/node_modules/.bin/vite +17 -0
- package/template/lib/react/node_modules/.bin/vite.CMD +12 -0
- package/template/lib/react/node_modules/.bin/vite.ps1 +41 -0
- package/template/lib/ts/node_modules/.bin/acorn +17 -0
- package/template/lib/ts/node_modules/.bin/acorn.CMD +12 -0
- package/template/lib/ts/node_modules/.bin/acorn.ps1 +41 -0
- package/template/lib/ts/node_modules/.bin/eslint +17 -0
- package/template/lib/ts/node_modules/.bin/eslint.CMD +12 -0
- package/template/lib/ts/node_modules/.bin/eslint.ps1 +41 -0
- package/template/lib/ts/node_modules/.bin/prettier +17 -0
- package/template/lib/ts/node_modules/.bin/prettier.CMD +12 -0
- package/template/lib/ts/node_modules/.bin/prettier.ps1 +41 -0
- package/template/lib/ts/node_modules/.bin/stylelint +17 -0
- package/template/lib/ts/node_modules/.bin/stylelint.CMD +12 -0
- package/template/lib/ts/node_modules/.bin/stylelint.ps1 +41 -0
- package/template/lib/ts/node_modules/.bin/tsc +17 -0
- package/template/lib/ts/node_modules/.bin/tsc.CMD +12 -0
- package/template/lib/ts/node_modules/.bin/tsc.ps1 +41 -0
- package/template/lib/ts/node_modules/.bin/tsserver +17 -0
- package/template/lib/ts/node_modules/.bin/tsserver.CMD +12 -0
- package/template/lib/ts/node_modules/.bin/tsserver.ps1 +41 -0
- package/template/lib/ts/node_modules/.bin/vitest +17 -0
- package/template/lib/ts/node_modules/.bin/vitest.CMD +12 -0
- package/template/lib/ts/node_modules/.bin/vitest.ps1 +41 -0
- package/template/lib/workspace/.changeset/README.md +8 -8
- package/template/lib/workspace/.changeset/config.json +11 -11
- package/template/lib/workspace/.editorconfig +13 -13
- package/template/lib/workspace/.eslintrc +118 -118
- package/template/lib/workspace/.gitignore +36 -36
- package/template/lib/workspace/.prettierignore +4 -4
- package/template/lib/workspace/.prettierrc +18 -18
- package/template/lib/workspace/.storybook/main.ts +32 -30
- package/template/lib/workspace/.storybook/preview.tsx +17 -17
- package/template/lib/workspace/.stylelintrc +29 -29
- package/template/lib/workspace/commitlint.config.cjs +1 -1
- package/template/lib/workspace/package.json +73 -73
- package/template/lib/workspace/packages/react/.editorconfig +13 -13
- package/template/lib/workspace/packages/react/.eslintrc +118 -118
- package/template/lib/workspace/packages/react/.gitignore +26 -26
- package/template/lib/workspace/packages/react/.prettierignore +4 -4
- package/template/lib/workspace/packages/react/.prettierrc +18 -18
- package/template/lib/workspace/packages/react/.stylelintrc +29 -29
- package/template/lib/workspace/packages/react/global.d.ts +18 -18
- package/template/lib/workspace/packages/react/package.json +42 -42
- package/template/lib/workspace/packages/react/src/Introduction.mdx +3 -3
- package/template/lib/workspace/packages/react/src/button/button.css +30 -30
- package/template/lib/workspace/packages/react/src/button/button.stories.ts +43 -43
- package/template/lib/workspace/packages/react/src/button/button.tsx +50 -50
- package/template/lib/workspace/packages/react/src/button/index.ts +1 -1
- package/template/lib/workspace/packages/react/src/index.ts +1 -1
- package/template/lib/workspace/packages/react/tsconfig.json +29 -29
- package/template/lib/workspace/packages/ts/.eslintrc +79 -79
- package/template/lib/workspace/packages/ts/.gitignore +25 -25
- package/template/lib/workspace/packages/ts/.prettierrc +12 -12
- package/template/lib/workspace/packages/ts/package.json +30 -30
- package/template/lib/workspace/packages/ts/src/index.ts +1 -1
- package/template/lib/workspace/packages/ts/src/sum.test.ts +6 -6
- package/template/lib/workspace/packages/ts/src/sum.ts +3 -3
- package/template/lib/workspace/packages/ts/tsconfig.json +24 -24
- package/template/lib/workspace/packages/ts/vite.config.ts +5 -5
- package/template/lib/workspace/pnpm-workspace.yaml +2 -2
- package/template/lib/workspace/postcss.config.cjs +7 -7
- package/template/lib/workspace/scripts/build.ts +22 -22
- package/template/lib/workspace/tsconfig.json +34 -34
- package/template/lib/workspace/tsconfig.node.json +22 -22
- package/template/nest/.eslintrc.js +25 -25
- package/template/nest/.gitignore +34 -34
- package/template/nest/.husky/pre-commit +4 -4
- package/template/nest/.prettierrc +6 -6
- package/template/nest/README.md +73 -73
- package/template/nest/nest-cli.json +5 -5
- package/template/nest/package.json +84 -84
- package/template/nest/src/app.controller.spec.ts +22 -22
- package/template/nest/src/app.controller.ts +12 -12
- package/template/nest/src/app.module.ts +10 -10
- package/template/nest/src/app.service.ts +8 -8
- package/template/nest/src/main.ts +10 -10
- package/template/nest/src/utils/transform.interceptor.ts +26 -26
- package/template/nest/test/app.e2e-spec.ts +24 -24
- package/template/nest/test/jest-e2e.json +9 -9
- package/template/nest/tsconfig.build.json +5 -5
- package/template/nest/tsconfig.json +21 -21
- package/template/web-app/next/.eslintrc.json +8 -8
- package/template/web-app/next/.gitignore +36 -36
- package/template/web-app/next/.husky/commit-msg +4 -4
- package/template/web-app/next/.husky/pre-commit +4 -4
- package/template/web-app/next/.stylelintrc +29 -29
- package/template/web-app/next/README.md +34 -34
- package/template/web-app/next/app/globals.css +22 -22
- package/template/web-app/next/app/layout.tsx +18 -18
- package/template/web-app/next/app/page.tsx +113 -113
- package/template/web-app/next/commitlint.config.cjs +1 -1
- package/template/web-app/next/next-env.d.ts +5 -5
- package/template/web-app/next/next.config.js +5 -5
- package/template/web-app/next/package.json +47 -47
- package/template/web-app/next/postcss.config.js +6 -6
- package/template/web-app/next/tailwind.config.js +20 -20
- package/template/web-app/next/tsconfig.json +21 -21
- package/template/web-app/react/.env +2 -2
- package/template/web-app/react/.env.development +2 -2
- package/template/web-app/react/.eslintignore +4 -4
- package/template/web-app/react/.eslintrc +118 -118
- package/template/web-app/react/.gitignore +28 -28
- package/template/web-app/react/.husky/commit-msg +4 -4
- package/template/web-app/react/.husky/pre-commit +4 -4
- package/template/web-app/react/.prettierignore +6 -6
- package/template/web-app/react/.stylelintignore +4 -4
- package/template/web-app/react/.stylelintrc +25 -25
- package/template/web-app/react/.vscode/settings.json +17 -17
- package/template/web-app/react/README.md +14 -14
- package/template/web-app/react/commitlint.config.cjs +1 -1
- package/template/web-app/react/domain/app/app.model.ts +7 -7
- package/template/web-app/react/domain/app/app.styled.ts +3 -3
- package/template/web-app/react/domain/app/components/app-context.tsx +17 -17
- package/template/web-app/react/domain/app/components/app.tsx +24 -24
- package/template/web-app/react/domain/app/components/index.ts +1 -1
- package/template/web-app/react/domain/app/index.ts +2 -2
- package/template/web-app/react/domain/router/home/ids.ts +3 -3
- package/template/web-app/react/domain/router/home/index.ts +2 -2
- package/template/web-app/react/domain/router/home/routes.tsx +13 -13
- package/template/web-app/react/domain/router/ids.ts +6 -6
- package/template/web-app/react/domain/router/index.ts +3 -3
- package/template/web-app/react/domain/router/router.tsx +28 -28
- package/template/web-app/react/domain/router/router.types.ts +3 -3
- package/template/web-app/react/index.html +13 -13
- package/template/web-app/react/main.tsx +4 -4
- package/template/web-app/react/mockUtils.ts +6 -6
- package/template/web-app/react/package.json +81 -81
- package/template/web-app/react/pages/home/home.mock.ts +19 -19
- package/template/web-app/react/pages/home/home.styled.ts +7 -7
- package/template/web-app/react/pages/home/home.tsx +10 -10
- package/template/web-app/react/pages/home/index.ts +1 -1
- package/template/web-app/react/pages/index.tsx +18 -18
- package/template/web-app/react/pages/not-found.tsx +3 -3
- package/template/web-app/react/postcss.config.cjs +7 -7
- package/template/web-app/react/scripts/createChunks.ts +26 -26
- package/template/web-app/react/scripts/index.ts +1 -1
- package/template/web-app/react/shared/hooks/defineRouter/defineRouter.types.ts +33 -33
- package/template/web-app/react/shared/hooks/defineRouter/index.ts +2 -2
- package/template/web-app/react/shared/hooks/index.ts +6 -6
- package/template/web-app/react/shared/hooks/useInterval.ts +26 -26
- package/template/web-app/react/shared/hooks/useLoadingAction.ts +27 -27
- package/template/web-app/react/shared/hooks/useLowPriorityState.ts +26 -26
- package/template/web-app/react/shared/hooks/useSyncState.ts +15 -15
- package/template/web-app/react/shared/hooks/useVisible.ts +27 -27
- package/template/web-app/react/shared/service/api.ts +1 -1
- package/template/web-app/react/shared/service/home.ts +10 -10
- package/template/web-app/react/shared/service/index.ts +3 -3
- package/template/web-app/react/shared/service/request.ts +5 -5
- package/template/web-app/react/shared/theme/index.ts +1 -1
- package/template/web-app/react/shared/theme/theme.styled.ts +56 -56
- package/template/web-app/react/shared/tools/componentInstance.tsx +80 -80
- package/template/web-app/react/shared/tools/index.ts +1 -1
- package/template/web-app/react/shared/types/index.ts +1 -1
- package/template/web-app/react/shared/types/utils.ts +2 -2
- package/template/web-app/react/tsconfig.json +43 -43
- package/template/web-app/react/tsconfig.node.json +10 -10
- package/template/web-app/react/vite-env.d.ts +18 -18
- package/template/web-app/react/vite.config.ts +76 -76
- package/template/web-app/react-webpack/.editorconfig +13 -13
- package/template/web-app/react-webpack/.env +2 -2
- package/template/web-app/react-webpack/.env.dev +2 -2
- package/template/web-app/react-webpack/.eslintignore +4 -4
- package/template/web-app/react-webpack/.eslintrc +118 -118
- package/template/web-app/react-webpack/.gitignore +27 -27
- package/template/web-app/react-webpack/.husky/commit-msg +4 -4
- package/template/web-app/react-webpack/.husky/pre-commit +4 -4
- package/template/web-app/react-webpack/.prettierignore +6 -6
- package/template/web-app/react-webpack/.stylelintignore +4 -4
- package/template/web-app/react-webpack/.stylelintrc +25 -25
- package/template/web-app/react-webpack/.vscode/settings.json +17 -17
- package/template/web-app/react-webpack/README.md +13 -13
- package/template/web-app/react-webpack/commitlint.config.js +1 -1
- package/template/web-app/react-webpack/domain/app/app.model.ts +7 -7
- package/template/web-app/react-webpack/domain/app/app.styled.ts +3 -3
- package/template/web-app/react-webpack/domain/app/components/app-context.tsx +17 -17
- package/template/web-app/react-webpack/domain/app/components/app.tsx +24 -24
- package/template/web-app/react-webpack/domain/app/components/index.ts +1 -1
- package/template/web-app/react-webpack/domain/app/index.ts +2 -2
- package/template/web-app/react-webpack/domain/router/home/ids.ts +3 -3
- package/template/web-app/react-webpack/domain/router/home/index.ts +2 -2
- package/template/web-app/react-webpack/domain/router/home/routes.tsx +13 -13
- package/template/web-app/react-webpack/domain/router/ids.ts +6 -6
- package/template/web-app/react-webpack/domain/router/index.ts +3 -3
- package/template/web-app/react-webpack/domain/router/router.tsx +28 -28
- package/template/web-app/react-webpack/domain/router/router.types.ts +3 -3
- package/template/web-app/react-webpack/global.d.ts +26 -26
- package/template/web-app/react-webpack/index.css +3 -3
- package/template/web-app/react-webpack/index.html +12 -12
- package/template/web-app/react-webpack/main.tsx +4 -4
- package/template/web-app/react-webpack/package.json +88 -88
- package/template/web-app/react-webpack/pages/home/home.styled.ts +7 -7
- package/template/web-app/react-webpack/pages/home/home.tsx +10 -10
- package/template/web-app/react-webpack/pages/home/index.ts +1 -1
- package/template/web-app/react-webpack/pages/index.tsx +18 -18
- package/template/web-app/react-webpack/pages/not-found.tsx +3 -3
- package/template/web-app/react-webpack/postcss.config.js +7 -7
- package/template/web-app/react-webpack/shared/hooks/defineRouter/defineRouter.types.ts +33 -33
- package/template/web-app/react-webpack/shared/hooks/defineRouter/index.ts +2 -2
- package/template/web-app/react-webpack/shared/hooks/index.ts +6 -6
- package/template/web-app/react-webpack/shared/hooks/useInterval.ts +26 -26
- package/template/web-app/react-webpack/shared/hooks/useLoadingAction.ts +27 -27
- package/template/web-app/react-webpack/shared/hooks/useLowPriorityState.ts +26 -26
- package/template/web-app/react-webpack/shared/hooks/useSyncState.ts +15 -15
- package/template/web-app/react-webpack/shared/hooks/useVisible.ts +27 -27
- package/template/web-app/react-webpack/shared/service/home.ts +8 -8
- package/template/web-app/react-webpack/shared/service/index.ts +2 -2
- package/template/web-app/react-webpack/shared/service/request.ts +5 -5
- package/template/web-app/react-webpack/shared/theme/index.ts +1 -1
- package/template/web-app/react-webpack/shared/theme/theme.styled.ts +56 -56
- package/template/web-app/react-webpack/shared/tools/componentInstance.tsx +78 -78
- package/template/web-app/react-webpack/shared/tools/index.ts +1 -1
- package/template/web-app/react-webpack/shared/types/index.ts +1 -1
- package/template/web-app/react-webpack/shared/types/utils.ts +2 -2
- package/template/web-app/react-webpack/tsconfig.json +37 -37
- package/template/web-app/react-webpack/tsconfig.node.json +9 -9
- package/template/web-app/react-webpack/webpack.config.mjs +162 -162
- package/template/web-app/react-webpack/webpack_config/constant.mjs +5 -5
- package/template/web-app/solid/.gitignore +1 -1
- package/template/web-app/solid/.stylelintrc +29 -29
- package/template/web-app/solid/README.md +34 -34
- package/template/web-app/solid/index.html +16 -16
- package/template/web-app/solid/package.json +51 -51
- package/template/web-app/solid/src/app.container.tsx +12 -12
- package/template/web-app/solid/src/index.css +15 -15
- package/template/web-app/solid/src/index.tsx +15 -15
- package/template/web-app/solid/src/layout/index.ts +1 -1
- package/template/web-app/solid/src/layout/layout.container.tsx +5 -5
- package/template/web-app/solid/src/pages/home/home.container.tsx +5 -5
- package/template/web-app/solid/src/pages/home/index.ts +1 -1
- package/template/web-app/solid/src/pages/notFound/index.ts +1 -1
- package/template/web-app/solid/src/pages/notFound/notFound.container.tsx +3 -3
- package/template/web-app/solid/src/router/home/index.ts +2 -2
- package/template/web-app/solid/src/router/home/paths.ts +3 -3
- package/template/web-app/solid/src/router/home/routes.tsx +12 -12
- package/template/web-app/solid/src/router/index.ts +2 -2
- package/template/web-app/solid/src/router/paths.ts +5 -5
- package/template/web-app/solid/src/router/routes.ts +16 -16
- package/template/web-app/solid/tsconfig.json +20 -20
- package/template/web-app/solid/vite.config.ts +23 -23
- package/template/web-app/svelte/.env +2 -2
- package/template/web-app/svelte/.env.development +2 -2
- package/template/web-app/svelte/.eslintignore +13 -13
- package/template/web-app/svelte/.eslintrc +76 -76
- package/template/web-app/svelte/.gitignore +27 -27
- package/template/web-app/svelte/.husky/commit-msg +4 -4
- package/template/web-app/svelte/.husky/pre-commit +4 -4
- package/template/web-app/svelte/.prettierignore +6 -6
- package/template/web-app/svelte/.prettierrc +14 -14
- package/template/web-app/svelte/.svelte-kit/ambient.d.ts +153 -153
- package/template/web-app/svelte/.svelte-kit/generated/client/app.js +18 -18
- package/template/web-app/svelte/.svelte-kit/generated/root.svelte +55 -55
- package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +30 -30
- package/template/web-app/svelte/.svelte-kit/tsconfig.json +38 -38
- package/template/web-app/svelte/.svelte-kit/types/route_meta_data.json +2 -2
- package/template/web-app/svelte/.svelte-kit/types/src/routes/$types.d.ts +19 -19
- package/template/web-app/svelte/README.md +38 -38
- package/template/web-app/svelte/commitlint.config.cjs +1 -1
- package/template/web-app/svelte/package.json +55 -55
- package/template/web-app/svelte/scripts/createChunks.ts +26 -26
- package/template/web-app/svelte/scripts/index.ts +1 -1
- package/template/web-app/svelte/src/app.d.ts +12 -12
- package/template/web-app/svelte/src/app.html +12 -12
- package/template/web-app/svelte/src/routes/+page.svelte +2 -2
- package/template/web-app/svelte/svelte.config.js +17 -17
- package/template/web-app/svelte/tsconfig.json +21 -21
- package/template/web-app/svelte/vite-env.d.ts +11 -11
- package/template/web-app/svelte/vite.config.ts +55 -55
- package/template/web-app/vue/.env +2 -2
- package/template/web-app/vue/.env.development +2 -2
- package/template/web-app/vue/.eslintignore +4 -4
- package/template/web-app/vue/.eslintrc +104 -104
- package/template/web-app/vue/.gitignore +27 -27
- package/template/web-app/vue/.prettierignore +6 -6
- package/template/web-app/vue/.stylelintignore +4 -4
- package/template/web-app/vue/.stylelintrc +29 -29
- package/template/web-app/vue/README.md +14 -14
- package/template/web-app/vue/domain/app/app.ts +4 -4
- package/template/web-app/vue/domain/app/components/app.vue +18 -18
- package/template/web-app/vue/domain/app/components/index.ts +1 -1
- package/template/web-app/vue/domain/app/createComponentInstance.ts +44 -44
- package/template/web-app/vue/main.ts +7 -7
- package/template/web-app/vue/mockUtils.ts +6 -6
- package/template/web-app/vue/pages/home/home.mock.ts +19 -19
- package/template/web-app/vue/pages/home/home.vue +16 -16
- package/template/web-app/vue/pages/home/index.ts +1 -1
- package/template/web-app/vue/pages/index.ts +1 -1
- package/template/web-app/vue/pages/index.vue +3 -3
- package/template/web-app/vue/pages/not-found.vue +3 -3
- package/template/web-app/vue/router/home/index.ts +2 -2
- package/template/web-app/vue/router/home/names.ts +3 -3
- package/template/web-app/vue/router/home/routes.ts +8 -8
- package/template/web-app/vue/router/index.ts +26 -26
- package/template/web-app/vue/router/names.ts +5 -5
- package/template/web-app/vue/scripts/createChunks.ts +26 -26
- package/template/web-app/vue/scripts/index.ts +1 -1
- package/template/web-app/vue/shared/hooks/index.ts +2 -2
- package/template/web-app/vue/shared/hooks/useList.ts +104 -104
- package/template/web-app/vue/shared/hooks/useVisible.ts +27 -27
- package/template/web-app/vue/shared/service/api.ts +1 -1
- package/template/web-app/vue/shared/service/home.ts +10 -10
- package/template/web-app/vue/shared/service/index.ts +3 -3
- package/template/web-app/vue/shared/service/request.ts +5 -5
- package/template/web-app/vue/style.css +3 -3
- package/template/web-app/vue/tailwind.config.cjs +18 -18
- package/template/web-app/vue/tsconfig.json +24 -24
- package/template/web-app/vue/vite-env.d.ts +18 -18
- package/template/web-app/vue/vite.config.ts +65 -65
- package/template/web-extension/.env +2 -2
- package/template/web-extension/.env.development +1 -1
- package/template/web-extension/.eslintignore +4 -4
- package/template/web-extension/.eslintrc +119 -119
- package/template/web-extension/.gitignore +27 -27
- package/template/web-extension/.husky/commit-msg +4 -4
- package/template/web-extension/.husky/pre-commit +4 -4
- package/template/web-extension/.prettierignore +6 -6
- package/template/web-extension/.stylelintignore +4 -4
- package/template/web-extension/.stylelintrc +25 -25
- package/template/web-extension/.vscode/extensions.json +7 -7
- package/template/web-extension/.vscode/settings.json +17 -17
- package/template/web-extension/README.md +13 -13
- package/template/web-extension/commitlint.config.cjs +1 -1
- package/template/web-extension/content_script/constants/base.ts +1 -1
- package/template/web-extension/content_script/constants/index.ts +1 -1
- package/template/web-extension/content_script/domain/app/index.ts +1 -1
- package/template/web-extension/content_script/domain/app/tools/index.ts +1 -1
- package/template/web-extension/content_script/domain/app/tools/insertApp.tsx +55 -55
- package/template/web-extension/content_script/index.tsx +3 -3
- package/template/web-extension/content_script/modules/common/common.tsx +10 -10
- package/template/web-extension/content_script/modules/common/index.ts +2 -2
- package/template/web-extension/content_script/modules/common/insert.tsx +9 -9
- package/template/web-extension/content_script/modules/index.ts +1 -1
- package/template/web-extension/defineManifest.ts +32 -32
- package/template/web-extension/package.json +79 -79
- package/template/web-extension/pnpm-lock.yaml +6220 -6220
- package/template/web-extension/popup/index.tsx +14 -14
- package/template/web-extension/popup/popup.container.tsx +3 -3
- package/template/web-extension/popup/popup.html +13 -13
- package/template/web-extension/postcss.config.cjs +7 -7
- package/template/web-extension/shared/background/index.ts +1 -1
- package/template/web-extension/shared/background/message.ts +11 -11
- package/template/web-extension/shared/components/app-context.tsx +14 -14
- package/template/web-extension/shared/components/index.ts +1 -1
- package/template/web-extension/shared/content/index.ts +1 -1
- package/template/web-extension/shared/content/message.ts +15 -15
- package/template/web-extension/shared/hooks/index.ts +2 -2
- package/template/web-extension/shared/hooks/useSyncState.ts +15 -15
- package/template/web-extension/shared/hooks/useVisible.ts +27 -27
- package/template/web-extension/shared/popup/index.ts +1 -1
- package/template/web-extension/shared/popup/message.ts +12 -12
- package/template/web-extension/shared/service/index.ts +1 -1
- package/template/web-extension/shared/service/request.ts +5 -5
- package/template/web-extension/shared/styles/global.styled.ts +8 -8
- package/template/web-extension/shared/styles/index.ts +2 -2
- package/template/web-extension/shared/styles/theme.styled.ts +56 -56
- package/template/web-extension/shared/tools/index.ts +1 -1
- package/template/web-extension/shared/tools/message.ts +80 -80
- package/template/web-extension/shared/types/index.ts +1 -1
- package/template/web-extension/shared/types/utils.ts +3 -3
- package/template/web-extension/tsconfig.json +44 -44
- package/template/web-extension/tsconfig.node.json +10 -10
- package/template/web-extension/vite-env.d.ts +17 -17
- package/template/web-extension/vite.config.ts +46 -46
- package/template/lib/workspace/node_modules/.pnpm/node_modules/react-lib/.gitignore +0 -26
- package/template/lib/workspace/node_modules/.pnpm/node_modules/ts-lib/.gitignore +0 -25
- package/template/lib/workspace/packages/ts/coverage/base.css +0 -224
- package/template/lib/workspace/packages/ts/coverage/block-navigation.js +0 -87
- package/template/lib/workspace/packages/ts/coverage/clover.xml +0 -16
- package/template/lib/workspace/packages/ts/coverage/coverage-final.json +0 -3
- package/template/lib/workspace/packages/ts/coverage/favicon.png +0 -0
- package/template/lib/workspace/packages/ts/coverage/index.html +0 -131
- package/template/lib/workspace/packages/ts/coverage/index.ts.html +0 -88
- package/template/lib/workspace/packages/ts/coverage/prettify.css +0 -1
- package/template/lib/workspace/packages/ts/coverage/prettify.js +0 -2
- package/template/lib/workspace/packages/ts/coverage/sort-arrow-sprite.png +0 -0
- package/template/lib/workspace/packages/ts/coverage/sorter.js +0 -196
- package/template/lib/workspace/packages/ts/coverage/sum.ts.html +0 -94
|
@@ -1,29 +1,29 @@
|
|
|
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
|
+
{
|
|
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 +1,34 @@
|
|
|
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
|
+
## 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,16 +1,16 @@
|
|
|
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
|
+
<!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,51 +1,51 @@
|
|
|
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
|
-
"autoprefixer": "10.4.14",
|
|
28
|
-
"commitizen": "4.3.0",
|
|
29
|
-
"cssnano": "6.0.0",
|
|
30
|
-
"inquirer": "8.0.0",
|
|
31
|
-
"postcss": "8.4.35",
|
|
32
|
-
"postcss-import": "16.0.1",
|
|
33
|
-
"postcss-nesting": "12.0.3",
|
|
34
|
-
"prettier": "3.2.5",
|
|
35
|
-
"stylelint": "16.2.1",
|
|
36
|
-
"stylelint-config-standard-scss": "13.0.0",
|
|
37
|
-
"tailwindcss": "3.4.3",
|
|
38
|
-
"typescript": "5.5.2",
|
|
39
|
-
"vite": "4.5.2",
|
|
40
|
-
"vite-plugin-solid": "2.10.1"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@solidjs/router": "0.8.2",
|
|
44
|
-
"solid-js": "1.7.5"
|
|
45
|
-
},
|
|
46
|
-
"config": {
|
|
47
|
-
"commitizen": {
|
|
48
|
-
"path": "@commitlint/cz-commitlint"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
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
|
+
"autoprefixer": "10.4.14",
|
|
28
|
+
"commitizen": "4.3.0",
|
|
29
|
+
"cssnano": "6.0.0",
|
|
30
|
+
"inquirer": "8.0.0",
|
|
31
|
+
"postcss": "8.4.35",
|
|
32
|
+
"postcss-import": "16.0.1",
|
|
33
|
+
"postcss-nesting": "12.0.3",
|
|
34
|
+
"prettier": "3.2.5",
|
|
35
|
+
"stylelint": "16.2.1",
|
|
36
|
+
"stylelint-config-standard-scss": "13.0.0",
|
|
37
|
+
"tailwindcss": "3.4.3",
|
|
38
|
+
"typescript": "5.5.2",
|
|
39
|
+
"vite": "4.5.2",
|
|
40
|
+
"vite-plugin-solid": "2.10.1"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@solidjs/router": "0.8.2",
|
|
44
|
+
"solid-js": "1.7.5"
|
|
45
|
+
},
|
|
46
|
+
"config": {
|
|
47
|
+
"commitizen": {
|
|
48
|
+
"path": "@commitlint/cz-commitlint"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
+
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 +1,15 @@
|
|
|
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
|
+
@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 +1,15 @@
|
|
|
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
|
+
/* @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 +1 @@
|
|
|
1
|
-
export { default } from './layout.container'
|
|
1
|
+
export { default } from './layout.container'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Outlet } from '@solidjs/router'
|
|
2
|
-
|
|
3
|
-
export default function Layout() {
|
|
4
|
-
return <Outlet />
|
|
5
|
-
}
|
|
1
|
+
import { Outlet } from '@solidjs/router'
|
|
2
|
+
|
|
3
|
+
export default function Layout() {
|
|
4
|
+
return <Outlet />
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './home.css'
|
|
2
|
-
|
|
3
|
-
export default function Home() {
|
|
4
|
-
return <div class={'flex justify-center items-center'}>sdfs</div>
|
|
5
|
-
}
|
|
1
|
+
import './home.css'
|
|
2
|
+
|
|
3
|
+
export default function Home() {
|
|
4
|
+
return <div class={'flex justify-center items-center'}>sdfs</div>
|
|
5
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './home.container'
|
|
1
|
+
export { default } from './home.container'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './notFound.container'
|
|
1
|
+
export { default } from './notFound.container'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default function NotFound() {
|
|
2
|
-
return <div>404</div>
|
|
3
|
-
}
|
|
1
|
+
export default function NotFound() {
|
|
2
|
+
return <div>404</div>
|
|
3
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as routes } from './routes'
|
|
2
|
-
export { default as paths } from './paths'
|
|
1
|
+
export { default as routes } from './routes'
|
|
2
|
+
export { default as paths } from './paths'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
home: '/home'
|
|
3
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
home: '/home'
|
|
3
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
+
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 +1,2 @@
|
|
|
1
|
-
export { default as routePaths } from './paths'
|
|
2
|
-
export { default as routes } from './routes'
|
|
1
|
+
export { default as routePaths } from './paths'
|
|
2
|
+
export { default as routes } from './routes'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as home from './home'
|
|
2
|
-
export default {
|
|
3
|
-
root: '/',
|
|
4
|
-
...home.paths
|
|
5
|
-
}
|
|
1
|
+
import * as home from './home'
|
|
2
|
+
export default {
|
|
3
|
+
root: '/',
|
|
4
|
+
...home.paths
|
|
5
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
|
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
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"strict": true,
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"moduleResolution": "node",
|
|
8
|
-
"allowSyntheticDefaultImports": true,
|
|
9
|
-
"strictPropertyInitialization": false,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"jsx": "preserve",
|
|
12
|
-
"jsxImportSource": "solid-js",
|
|
13
|
-
"types": ["vite/client"],
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"isolatedModules": true,
|
|
16
|
-
"paths": {
|
|
17
|
-
"@/*": ["src/*"]
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"strict": true,
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"strictPropertyInitialization": false,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"jsx": "preserve",
|
|
12
|
+
"jsxImportSource": "solid-js",
|
|
13
|
+
"types": ["vite/client"],
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"paths": {
|
|
17
|
+
"@/*": ["src/*"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import path from 'path'
|
|
3
|
-
import solidPlugin from 'vite-plugin-solid'
|
|
4
|
-
|
|
5
|
-
export default defineConfig(({ command }) => {
|
|
6
|
-
return {
|
|
7
|
-
plugins: [solidPlugin()],
|
|
8
|
-
server: {
|
|
9
|
-
port: 3000
|
|
10
|
-
},
|
|
11
|
-
build: {
|
|
12
|
-
target: 'esnext'
|
|
13
|
-
},
|
|
14
|
-
resolve: {
|
|
15
|
-
alias: {
|
|
16
|
-
'@': path.join(__dirname, 'src')
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
esbuild: {
|
|
20
|
-
drop: command === 'build' ? ['console', 'debugger'] : []
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
})
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import path from 'path'
|
|
3
|
+
import solidPlugin from 'vite-plugin-solid'
|
|
4
|
+
|
|
5
|
+
export default defineConfig(({ command }) => {
|
|
6
|
+
return {
|
|
7
|
+
plugins: [solidPlugin()],
|
|
8
|
+
server: {
|
|
9
|
+
port: 3000
|
|
10
|
+
},
|
|
11
|
+
build: {
|
|
12
|
+
target: 'esnext'
|
|
13
|
+
},
|
|
14
|
+
resolve: {
|
|
15
|
+
alias: {
|
|
16
|
+
'@': path.join(__dirname, 'src')
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
esbuild: {
|
|
20
|
+
drop: command === 'build' ? ['console', 'debugger'] : []
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
})
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
VITE_BASE_URL=/
|
|
2
|
-
VITE_API_HOST=
|
|
1
|
+
VITE_BASE_URL=/
|
|
2
|
+
VITE_API_HOST=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
VITE_BASE_URL=/dev
|
|
2
|
-
VITE_API_HOST=/api
|
|
1
|
+
VITE_BASE_URL=/dev
|
|
2
|
+
VITE_API_HOST=/api
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.DS_Store
|
|
2
|
-
node_modules
|
|
3
|
-
/build
|
|
4
|
-
/.svelte-kit
|
|
5
|
-
/package
|
|
6
|
-
.env
|
|
7
|
-
.env.*
|
|
8
|
-
!.env.example
|
|
9
|
-
|
|
10
|
-
# Ignore files for PNPM, NPM and YARN
|
|
11
|
-
pnpm-lock.yaml
|
|
12
|
-
package-lock.json
|
|
13
|
-
yarn.lock
|
|
1
|
+
.DS_Store
|
|
2
|
+
node_modules
|
|
3
|
+
/build
|
|
4
|
+
/.svelte-kit
|
|
5
|
+
/package
|
|
6
|
+
.env
|
|
7
|
+
.env.*
|
|
8
|
+
!.env.example
|
|
9
|
+
|
|
10
|
+
# Ignore files for PNPM, NPM and YARN
|
|
11
|
+
pnpm-lock.yaml
|
|
12
|
+
package-lock.json
|
|
13
|
+
yarn.lock
|