-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-merging PR
- Loading branch information
Showing
52 changed files
with
448 additions
and
151 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,95 +1,11 @@ | ||
import Image from "next/image"; | ||
import styles from "./page.module.css"; | ||
import { FirstDomainExampleScreen } from "@sambad/domains/first-domain"; | ||
|
||
export default function Home() { | ||
return ( | ||
<main className={styles.main}> | ||
<div className={styles.description}> | ||
<p> | ||
Get started by editing | ||
<code className={styles.code}>src/app/page.tsx</code> | ||
</p> | ||
<div> | ||
<a | ||
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
By{" "} | ||
<Image | ||
src="/vercel.svg" | ||
alt="Vercel Logo" | ||
className={styles.vercelLogo} | ||
width={100} | ||
height={24} | ||
priority | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div className={styles.center}> | ||
<Image | ||
className={styles.logo} | ||
src="/next.svg" | ||
alt="Next.js Logo" | ||
width={180} | ||
height={37} | ||
priority | ||
/> | ||
</div> | ||
|
||
<div className={styles.grid}> | ||
<a | ||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Docs <span>-></span> | ||
</h2> | ||
<p>Find in-depth information about Next.js features and API.</p> | ||
</a> | ||
|
||
<a | ||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Learn <span>-></span> | ||
</h2> | ||
<p>Learn about Next.js in an interactive course with quizzes!</p> | ||
</a> | ||
|
||
<a | ||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Templates <span>-></span> | ||
</h2> | ||
<p>Explore starter templates for Next.js.</p> | ||
</a> | ||
|
||
<a | ||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Deploy <span>-></span> | ||
</h2> | ||
<p> | ||
Instantly deploy your Next.js site to a shareable URL with Vercel. | ||
</p> | ||
</a> | ||
</div> | ||
<FirstDomainExampleScreen /> | ||
</main> | ||
); | ||
} |
This file contains 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,11 @@ | ||
import Image from "next/image"; | ||
import styles from "../page.module.css"; | ||
import { SecondDomainExampleScreen } from "@sambad/domains/second-domain"; | ||
|
||
export default function Second() { | ||
return ( | ||
<main className={styles.main}> | ||
<SecondDomainExampleScreen /> | ||
</main> | ||
); | ||
} |
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 @@ | ||
# `sds` |
This file contains 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,20 @@ | ||
{ | ||
"name": "@sambad/sds", | ||
"version": "0.0.0", | ||
"private": true, | ||
"exports": {}, | ||
"scripts": { | ||
"lint": "eslint . --max-warnings 0" | ||
}, | ||
"devDependencies": { | ||
"@sambad/eslint-config": "workspace:*", | ||
"@sambad/typescript-config": "workspace:*", | ||
"@types/node": "^20.11.24", | ||
"@types/eslint": "^8.56.5", | ||
"@types/react": "^18.2.61", | ||
"@types/react-dom": "^18.2.19", | ||
"eslint": "^8.57.0", | ||
"react": "^18", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
Empty file.
This file contains 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
2 changes: 1 addition & 1 deletion
2
packages/ui/tsconfig.lint.json → packages/core/sds/tsconfig.lint.json
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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,10 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
extends: ["@repo/eslint-config/react-internal.js"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: "./tsconfig.lint.json", | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}; |
This file contains 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
12 changes: 9 additions & 3 deletions
12
packages/ui/src/button.tsx → packages/core/ui/src/Button.tsx
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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,3 @@ | ||
export { Button } from "./Button"; | ||
export { Card } from "./Card"; | ||
export { Code } from "./Code"; |
This file contains 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 @@ | ||
{ | ||
"extends": "@sambad/typescript-config/react-library.json", | ||
"compilerOptions": { | ||
"outDir": "dist" | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
This file contains 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 @@ | ||
{ | ||
"extends": "@sambad/typescript-config/react-library.json", | ||
"compilerOptions": { | ||
"outDir": "dist" | ||
}, | ||
"include": ["src", "turbo"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
This file contains 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,10 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
extends: ["@sambad/eslint-config/react-internal.js"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: "./tsconfig.lint.json", | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}; |
This file contains 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 @@ | ||
# `domains` |
This file contains 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,25 @@ | ||
{ | ||
"name": "@sambad/domains", | ||
"version": "0.0.0", | ||
"private": true, | ||
"exports": { | ||
"./first-domain": "./src/first-domain/index.ts", | ||
"./second-domain": "./src/second-domain/index.ts" | ||
}, | ||
"scripts": { | ||
"lint": "eslint . --max-warnings 0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@sambad/ui": "workspace:*", | ||
"@sambad/eslint-config": "workspace:*", | ||
"@sambad/typescript-config": "workspace:*", | ||
"@types/node": "^20.11.24", | ||
"@types/eslint": "^8.56.5", | ||
"@types/react": "^18.2.61", | ||
"@types/react-dom": "^18.2.19", | ||
"eslint": "^8.57.0", | ||
"react": "^18", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
Empty file.
Empty file.
23 changes: 23 additions & 0 deletions
23
packages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestBox.tsx
This file contains 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,23 @@ | ||
import { Button } from "@sambad/ui"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
interface FirstFeatureOfFirstDomainBoxProps { | ||
displayText: string; | ||
onClick?: () => void; | ||
} | ||
|
||
export const FirstFeatureOfFirstDomainBox = ({ | ||
displayText, | ||
onClick, | ||
children, | ||
}: PropsWithChildren<FirstFeatureOfFirstDomainBoxProps>) => { | ||
return ( | ||
<div> | ||
<Button appName="Container Box Button" onClick={onClick}> | ||
FirstDomainTestBox | ||
</Button> | ||
{displayText} | ||
{children} | ||
</div> | ||
); | ||
}; |
23 changes: 23 additions & 0 deletions
23
...ages/domains/src/first-domain/features/components/FirstFeatureOfFirstDomainTestButton.tsx
This file contains 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,23 @@ | ||
import { Button } from "@sambad/ui"; | ||
import { HTMLAttributes, ReactNode } from "react"; | ||
import { useFirstFeatureOfFirstDomainTestButton } from "../hooks/useFirstFeatureOfFirstDomainTestButton"; | ||
|
||
interface FirstFeaturedOfFirstDomainTestButtonProps | ||
extends HTMLAttributes<HTMLButtonElement> { | ||
children?: ReactNode; | ||
} | ||
|
||
export const FirstFeatureOfFirstDomainTestButton = ({ | ||
children, | ||
...rest | ||
}: FirstFeaturedOfFirstDomainTestButtonProps) => { | ||
const { testText, handleChangeTestText } = | ||
useFirstFeatureOfFirstDomainTestButton(); | ||
|
||
return ( | ||
<Button appName="sambad" onClick={handleChangeTestText} {...rest}> | ||
{children} | ||
{testText} | ||
</Button> | ||
); | ||
}; |
23 changes: 23 additions & 0 deletions
23
...s/domains/src/first-domain/features/containers/FirstFeatureOfFirstDomainTestContainer.tsx
This file contains 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,23 @@ | ||
"use client"; | ||
|
||
import { FirstFeatureOfFirstDomainBox } from "../components/FirstFeatureOfFirstDomainTestBox"; | ||
import { FirstFeatureOfFirstDomainTestButton } from "../components/FirstFeatureOfFirstDomainTestButton"; | ||
import { useFirstFeatureOfFirstDomainService } from "../services/useFirstFeatureOfFirstDomainTestService"; | ||
|
||
export const FirstFeatureOfFirstDomainTestContainer = () => { | ||
const { displayText, handleChangeDisplayText } = | ||
useFirstFeatureOfFirstDomainService(); | ||
|
||
return ( | ||
<FirstFeatureOfFirstDomainBox | ||
displayText={displayText} | ||
onClick={handleChangeDisplayText} | ||
> | ||
<FirstFeatureOfFirstDomainTestButton | ||
onClick={() => { | ||
alert("Button is Clicked at Container"); | ||
}} | ||
/> | ||
</FirstFeatureOfFirstDomainBox> | ||
); | ||
}; |
14 changes: 14 additions & 0 deletions
14
packages/domains/src/first-domain/features/hooks/useFirstFeatureOfFirstDomainTestButton.ts
This file contains 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,14 @@ | ||
import { useState } from "react"; | ||
|
||
export const useFirstFeatureOfFirstDomainTestButton = () => { | ||
const [testText, setTestText] = useState<string>("Default Button Text"); | ||
|
||
const handleChangeTestText = () => { | ||
setTestText("Test Button is Clicked!!"); | ||
}; | ||
|
||
return { | ||
testText, | ||
handleChangeTestText, | ||
}; | ||
}; |
14 changes: 14 additions & 0 deletions
14
...ges/domains/src/first-domain/features/services/useFirstFeatureOfFirstDomainTestService.ts
This file contains 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,14 @@ | ||
import { useState } from "react"; | ||
|
||
export const useFirstFeatureOfFirstDomainService = () => { | ||
const [displayText, setDisplayText] = useState<string>(""); | ||
|
||
const handleChangeDisplayText = () => { | ||
setDisplayText("Test Container Button Clicked"); | ||
}; | ||
|
||
return { | ||
displayText, | ||
handleChangeDisplayText, | ||
}; | ||
}; |
This file contains 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 @@ | ||
export { FirstDomainExampleScreen } from "./screens/FirstDomainExampleScreen"; |
10 changes: 10 additions & 0 deletions
10
packages/domains/src/first-domain/screens/FirstDomainExampleScreen.tsx
This file contains 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,10 @@ | ||
import { FirstFeatureOfFirstDomainTestContainer } from "../features/containers/FirstFeatureOfFirstDomainTestContainer"; | ||
|
||
export const FirstDomainExampleScreen = () => { | ||
return ( | ||
<div> | ||
<h1>도메인 화면을 전체 담당 하는 컴포넌트입니다.</h1> | ||
<FirstFeatureOfFirstDomainTestContainer /> | ||
</div> | ||
); | ||
}; |
Empty file.
Oops, something went wrong.