-
-
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.
Merge `constants/github.js` and `constants/path.js` into `constants/index.js`. * refactor: create constants/index.js * delete: constants/path.js * delete: constants/github.js
- Loading branch information
1 parent
9f89675
commit bd1de5f
Showing
12 changed files
with
41 additions
and
56 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
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
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,6 +1,6 @@ | ||
import Article from '@/components/layouts/Article'; | ||
import { USER } from '@/constants/github'; | ||
import { GITHUB_USER_NAME } from '@/constants'; | ||
|
||
export default function Page() { | ||
return <Article>{`Hello, It's ${USER.name}'s blog!`}</Article>; | ||
return <Article>{`Hello, It's ${GITHUB_USER_NAME}'s blog!`}</Article>; | ||
} |
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
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
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,7 +1,7 @@ | ||
import Link from 'next/link'; | ||
|
||
import { USER } from '@/constants/github'; | ||
import { GITHUB_USER_NAME, GITHUB_USER_HTML_URL } from '@/constants'; | ||
|
||
export default function Title() { | ||
return <Link href={USER.htmlUrl}>{USER.name}</Link>; | ||
return <Link href={GITHUB_USER_HTML_URL}>{GITHUB_USER_NAME}</Link>; | ||
} |
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
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
import { join } from 'path'; | ||
|
||
// GitHub User, Ref: https://docs.github.com/en/rest/users/users | ||
export const GITHUB_USER_LOGIN = 'lumirlumir'; | ||
export const GITHUB_USER_NAME = '루밀LuMir'; | ||
export const GITHUB_USER_BIO = 'PLAY KEYBOARD, STRIKE A CODE🎨'; | ||
export const GITHUB_USER_HTML_URL = `https://github.com/${GITHUB_USER_LOGIN}`; | ||
|
||
// GitHub Repository, Ref: https://docs.github.com/en/rest/repos/repos | ||
export const GITHUB_REPO_NAME = 'web-blog'; | ||
export const GITHUB_REPO_FULL_NAME = `${GITHUB_USER_LOGIN}/${GITHUB_REPO_NAME}`; | ||
|
||
// Path | ||
export const PATH_DOCS = join(process.cwd(), 'src', 'posts', 'docs'); | ||
|
||
// Extension | ||
export const EXT_MD = '.md'; | ||
export const EXT_MD_REGEXP = new RegExp(`${EXT_MD}$`, 'i'); |
This file was deleted.
Oops, something went wrong.
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
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