-
Notifications
You must be signed in to change notification settings - Fork 0
feat(front-vike): vike版フロントエンド #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
sousuke0422
wants to merge
18
commits into
main
Choose a base branch
from
feat/vike-front
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
75877c2
chore(front-vike): init
sousuke0422 c54ed36
feat(front-vike): elysiaに移行
sousuke0422 554b9de
chore(front-vike): 依存関係まわり
sousuke0422 91f96a8
chore(front-vike): umamiの準備
sousuke0422 98fb73b
chore(front-vike): 日本語環境であることを宣言
sousuke0422 3707147
chore(front-vike): 依存関係調整
sousuke0422 0fce53e
fix(front-vike): unheadを動くように
sousuke0422 267e456
feat(front-vike): env検証
sousuke0422 843320c
feat(front-vike): umami
sousuke0422 786e1f9
refactor(front-vike): ファイルを移動し一貫した構造に
sousuke0422 bb98ad8
chore(front-vike): エイリアスを設定
sousuke0422 eeb31a7
feat(front-vike): vp導入
sousuke0422 a5f4f04
refactor(front-vike)!: 移動
sousuke0422 5f9d8d9
feat(front-vike): add shadcn
sousuke0422 38327bc
fix(front-vike): フォルダ名が狂ってる
sousuke0422 54cc7a5
feat(front-vike): レイアウト移植
sousuke0422 1ccc564
perf(front-vike): 最適化
sousuke0422 f70cc57
chore(front-vike): sentryを開発環境で無効化
sousuke0422 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import type { Server } from "vike/types"; | ||
| import { app } from "./server/elysia"; | ||
|
|
||
| const port = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000; | ||
|
|
||
| // https://vike.dev/server | ||
| export default { | ||
| fetch: app.fetch, | ||
| prod: { | ||
| port, | ||
| }, | ||
| } satisfies Server; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ## Main System | ||
| # example: https://example.com | ||
| APP_URL="http://localhost:3000" | ||
|
sousuke0422 marked this conversation as resolved.
|
||
|
|
||
| ## Umami Analytics | ||
| # example: https://example.com | ||
| UMAMI_HOST="" | ||
| # example: 661b12d9-a926-466d-8739-de23ee40fd5d | ||
| UMAMI_WEBSITE_ID="" | ||
|
|
||
| ## Sentry | ||
| # Sentry DNS. Used for Error Reporting on the Server | ||
| SENTRY_DSN= | ||
| # Sentry DNS. Used for Error Reporting in the Browser | ||
| PUBLIC_ENV__SENTRY_DSN= | ||
|
|
||
| # Force enable Sentry in development mode | ||
| FORCE_ENABLE_IN_DEV=false | ||
|
|
||
| ## System | ||
| # example: production | ||
| NODE_ENV= | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Sentry Organization Slug. Used for Upload of Source Maps | ||
| SENTRY_ORG= | ||
|
|
||
| # Sentry Project Slug. Used for Upload of Source Maps | ||
| SENTRY_PROJECT= | ||
|
|
||
| # Sentry Auth Token. Used for Upload of Source Maps | ||
| SENTRY_AUTH_TOKEN= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,261 @@ | ||
| # File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig | ||
| # Created by https://www.toptal.com/developers/gitignore/api/vuejs,vue,visualstudiocode,storybookjs,osx,nuxtjs,macos,linux,node | ||
| # Edit at https://www.toptal.com/developers/gitignore?templates=vuejs,vue,visualstudiocode,storybookjs,osx,nuxtjs,macos,linux,node | ||
|
|
||
| ### Linux ### | ||
| *~ | ||
|
|
||
| # temporary files which can be created if a process still has a handle open of a deleted file | ||
| .fuse_hidden* | ||
|
|
||
| # KDE directory preferences | ||
| .directory | ||
|
|
||
| # Linux trash folder which might appear on any partition or disk | ||
| .Trash-* | ||
|
|
||
| # .nfs files are created when an open file is removed but is still being accessed | ||
| .nfs* | ||
|
|
||
| ### macOS ### | ||
| # General | ||
| .DS_Store | ||
| .AppleDouble | ||
| .LSOverride | ||
|
|
||
| # Icon must end with two \r | ||
| Icon | ||
|
|
||
|
|
||
| # Thumbnails | ||
| ._* | ||
|
|
||
| # Files that might appear in the root of a volume | ||
| .DocumentRevisions-V100 | ||
| .fseventsd | ||
| .Spotlight-V100 | ||
| .TemporaryItems | ||
| .Trashes | ||
| .VolumeIcon.icns | ||
| .com.apple.timemachine.donotpresent | ||
|
|
||
| # Directories potentially created on remote AFP share | ||
| .AppleDB | ||
| .AppleDesktop | ||
| Network Trash Folder | ||
| Temporary Items | ||
| .apdisk | ||
|
|
||
| ### macOS Patch ### | ||
| # iCloud generated files | ||
| *.icloud | ||
|
|
||
| ### Node ### | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| lerna-debug.log* | ||
| .pnpm-debug.log* | ||
|
|
||
| # Diagnostic reports (https://nodejs.org/api/report.html) | ||
| report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
|
||
| # Runtime data | ||
| pids | ||
| *.pid | ||
| *.seed | ||
| *.pid.lock | ||
|
|
||
| # Directory for instrumented libs generated by jscoverage/JSCover | ||
| lib-cov | ||
|
|
||
| # Coverage directory used by tools like istanbul | ||
| coverage | ||
| *.lcov | ||
|
|
||
| # nyc test coverage | ||
| .nyc_output | ||
|
|
||
| # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
| .grunt | ||
|
|
||
| # Bower dependency directory (https://bower.io/) | ||
| bower_components | ||
|
|
||
| # node-waf configuration | ||
| .lock-wscript | ||
|
|
||
| # Compiled binary addons (https://nodejs.org/api/addons.html) | ||
| build/Release | ||
|
|
||
| # Dependency directories | ||
| node_modules/ | ||
| jspm_packages/ | ||
|
|
||
| # Snowpack dependency directory (https://snowpack.dev/) | ||
| web_modules/ | ||
|
|
||
| # TypeScript cache | ||
| *.tsbuildinfo | ||
|
|
||
| # Optional npm cache directory | ||
| .npm | ||
|
|
||
| # Optional eslint cache | ||
| .eslintcache | ||
|
|
||
| # Optional stylelint cache | ||
| .stylelintcache | ||
|
|
||
| # Microbundle cache | ||
| .rpt2_cache/ | ||
| .rts2_cache_cjs/ | ||
| .rts2_cache_es/ | ||
| .rts2_cache_umd/ | ||
|
|
||
| # Optional REPL history | ||
| .node_repl_history | ||
|
|
||
| # Output of 'npm pack' | ||
| *.tgz | ||
|
|
||
| # Yarn Integrity file | ||
| .yarn-integrity | ||
|
|
||
| # dotenv environment variable files | ||
| .env | ||
| .env.development.local | ||
| .env.test.local | ||
| .env.production.local | ||
| .env.local | ||
|
|
||
| # parcel-bundler cache (https://parceljs.org/) | ||
| .cache | ||
| .parcel-cache | ||
|
|
||
| # Next.js build output | ||
| .next | ||
| out | ||
|
|
||
| # Nuxt.js build / generate output | ||
| .nuxt | ||
| dist | ||
|
|
||
| # Gatsby files | ||
| .cache/ | ||
| # Comment in the public line in if your project uses Gatsby and not Next.js | ||
| # https://nextjs.org/blog/next-9-1#public-directory-support | ||
| # public | ||
|
|
||
| # vuepress build output | ||
| .vuepress/dist | ||
|
|
||
| # vuepress v2.x temp and cache directory | ||
| .temp | ||
|
|
||
| # Docusaurus cache and generated files | ||
| .docusaurus | ||
|
|
||
| # Serverless directories | ||
| .serverless/ | ||
|
|
||
| # FuseBox cache | ||
| .fusebox/ | ||
|
|
||
| # DynamoDB Local files | ||
| .dynamodb/ | ||
|
|
||
| # TernJS port file | ||
| .tern-port | ||
|
|
||
| # Stores VSCode versions used for testing VSCode extensions | ||
| .vscode-test | ||
|
|
||
| # yarn v2 | ||
| .yarn/cache | ||
| .yarn/unplugged | ||
| .yarn/build-state.yml | ||
| .yarn/install-state.gz | ||
| .pnp.* | ||
|
|
||
| ### Node Patch ### | ||
| # Serverless Webpack directories | ||
| .webpack/ | ||
|
|
||
| # Optional stylelint cache | ||
|
|
||
| # SvelteKit build / generate output | ||
| .svelte-kit | ||
|
|
||
| ### NuxtJS ### | ||
| # Generated dirs | ||
| .nuxt-* | ||
| .output | ||
| .gen | ||
|
|
||
| # Node dependencies | ||
| node_modules | ||
|
|
||
| # System files | ||
|
|
||
| ### OSX ### | ||
| # General | ||
|
|
||
| # Icon must end with two \r | ||
|
|
||
| # Thumbnails | ||
|
|
||
| # Files that might appear in the root of a volume | ||
|
|
||
| # Directories potentially created on remote AFP share | ||
|
|
||
| ### StorybookJs ### | ||
| # gitignore template for the Storybook, UI guide for front apps | ||
| # website: https://storybook.js.org/ | ||
|
|
||
| storybook-static/ | ||
|
|
||
| ### VisualStudioCode ### | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json | ||
| !.vscode/*.code-snippets | ||
|
|
||
| # Local History for Visual Studio Code | ||
| .history/ | ||
|
|
||
| # Built Visual Studio Code Extensions | ||
| *.vsix | ||
|
|
||
| ### VisualStudioCode Patch ### | ||
| # Ignore all local history of files | ||
| .history | ||
| .ionide | ||
|
|
||
| ### Vue ### | ||
| # gitignore template for Vue.js projects | ||
| # | ||
| # Recommended template: Node.gitignore | ||
|
|
||
| # TODO: where does this rule come from? | ||
| docs/_book | ||
|
|
||
| # TODO: where does this rule come from? | ||
| test/ | ||
|
|
||
| ### Vuejs ### | ||
| # Recommended template: Node.gitignore | ||
|
|
||
| dist/ | ||
| npm-debug.log | ||
| yarn-error.log | ||
|
|
||
| # End of https://www.toptal.com/developers/gitignore/api/vuejs,vue,visualstudiocode,storybookjs,osx,nuxtjs,macos,linux,node | ||
|
|
||
| # Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) | ||
| node_modules/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import type { StorybookConfig } from '@storybook/vue3-vite'; | ||
|
|
||
| const config: StorybookConfig = { | ||
| "stories": [ | ||
| "../stories/**/*.mdx", | ||
| "../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)" | ||
| ], | ||
| "addons": [ | ||
| "@chromatic-com/storybook", | ||
| "@storybook/addon-vitest", | ||
| "@storybook/addon-a11y", | ||
| "@storybook/addon-docs" | ||
| ], | ||
| "framework": "@storybook/vue3-vite" | ||
| }; | ||
| export default config; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import type { Preview } from '@storybook/vue3-vite' | ||
|
|
||
| const preview: Preview = { | ||
| parameters: { | ||
| controls: { | ||
| matchers: { | ||
| color: /(background|color)$/i, | ||
| date: /Date$/i, | ||
| }, | ||
| }, | ||
|
|
||
| a11y: { | ||
| // 'todo' - show a11y violations in the test UI only | ||
| // 'error' - fail CI on a11y violations | ||
| // 'off' - skip a11y checks entirely | ||
| test: 'todo' | ||
| } | ||
| }, | ||
| }; | ||
|
|
||
| export default preview; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validate
PORTbefore assigning it to server config.Line 4 can produce
NaNfor invalid env values, which propagates intoprod.port.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents