-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/file upload #19
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
Feat/file upload #19
Changes from all commits
55241bf
8da8e2d
a58d705
1789b2e
a6c974f
bb908e1
7714904
cfc8bca
8e1f00d
5f32be9
73994f2
35bc846
b80b419
43353aa
e75107c
7b6d916
ee79de2
ca16f42
37bee12
a3153a0
9148b04
4eef9df
23c762c
c40225d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "name": "admin", | ||
| "name": "@date-project/admin", | ||
| "version": "0.2.0", | ||
| "private": true, | ||
| "scripts": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import "@storybook/addon-actions/register"; | ||
| import "@storybook/addon-links/register"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import type { StorybookConfig } from "@storybook/react-vite"; | ||
| import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin"; | ||
|
|
||
| const config: StorybookConfig = { | ||
| stories: ["../../../packages/ui/src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
|
|
@@ -18,6 +19,15 @@ const config: StorybookConfig = { | |
| docs: { | ||
| autodocs: true, | ||
| }, | ||
| async viteFinal(config) { | ||
| config.plugins = config.plugins || []; | ||
| config.plugins.push( | ||
| vanillaExtractPlugin({ | ||
| identifiers: ({ hash }) => `_${hash}`, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이거 추가하면 어떻게 바뀌는거지?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 스토리북에서 바닐라 익스트랙트 사용하기 위해 추가했으
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indetifiers 요거 저거 어디에 쓰는지 궁금해서 저거없어도 돌아가긴 하거든
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://vanilla-extract.style/documentation/integrations/vite/#identifiers |
||
| }), | ||
| ); | ||
| return config; | ||
| }, | ||
| }; | ||
|
|
||
| export default config; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,15 @@ | ||
| import type { Preview } from '@storybook/react' | ||
| import type { Preview } from "@storybook/react"; | ||
| import "../../../packages/ui/src/globalStyle/global.css"; // alias 설정해도 안됨 | ||
|
|
||
| const preview: Preview = { | ||
| parameters: { | ||
| controls: { | ||
| matchers: { | ||
| color: /(background|color)$/i, | ||
| date: /Date$/i, | ||
| color: /(background|color)$/i, | ||
| date: /Date$/i, | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
|
|
||
| export default preview; | ||
| export default preview; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import React from "react"; | ||
|
|
||
| import { storiesOf } from "@storybook/react"; | ||
| import { action } from "@storybook/addon-actions"; | ||
| import { linkTo } from "@storybook/addon-links"; | ||
|
|
||
| import { Button, Welcome } from "@storybook/react/demo"; | ||
|
|
||
| storiesOf("Welcome", module).add("to Storybook", () => ( | ||
| <Welcome showApp={linkTo("Button")} /> | ||
| )); | ||
|
|
||
| storiesOf("Button", module) | ||
| .add("with text", () => ( | ||
| <Button onClick={action("clicked")}>Hello Button</Button> | ||
| )) | ||
| .add("with some emoji", () => ( | ||
| <Button onClick={action("clicked")}>😀 😎 👍 💯</Button> | ||
| )); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,8 +12,10 @@ | |
| "isolatedModules": true, | ||
| "jsx": "preserve", | ||
| "incremental": true, | ||
| "baseUrl": ".", // alias 기준 설정 | ||
| "paths": { | ||
| "@/*": ["./src/*"] | ||
| "@/*": ["./src/*"], | ||
| "@repo/ui/*": ["../../../packages/ui/*"] // alias 설정 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이것도 삭제 |
||
| } | ||
| }, | ||
| "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,14 @@ | ||
| import react from "@vitejs/plugin-react-swc"; | ||
| import path from "path"; | ||
| import { defineConfig } from "vite"; | ||
|
|
||
| // https://vitejs.dev/config/ | ||
| export default defineConfig({ | ||
| plugins: [react()], | ||
| // alias 설정 추가 | ||
| resolve: { | ||
| alias: { | ||
| "@repo/ui": path.resolve(__dirname, "../../../packages/ui"), | ||
| }, | ||
| }, | ||
|
Comment on lines
+8
to
+13
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이것도 삭제 |
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "name": "user", | ||
| "name": "@date-project/user", | ||
| "version": "0.2.0", | ||
| "private": true, | ||
| "scripts": { | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,5 +39,8 @@ | |
| "*.{json,css,md}": [ | ||
| "prettier --write" | ||
| ] | ||
| }, | ||
| "dependencies": { | ||
| "zustand": "^5.0.3" | ||
| } | ||
| } | ||
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.
이거 없어도 되는건가? 아니면 금욜에 추가하려는거?
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.
추가할건데 alias 안되서 우선 주석처리 해놨음!