Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a615adb
feat: 폴더 및 파일 구조 생성
metacode22 Nov 11, 2022
4e7a22a
feat: API 메서드 작성
metacode22 Nov 11, 2022
ef65e64
feat: Header 컴포넌트 구현, createElement로 요소 생성을 따로 커스텀화
metacode22 Nov 11, 2022
6055295
feat: sidebar, post 컴포넌트 css 조정
metacode22 Nov 11, 2022
c7e2cea
feat: DocumentList에서 toggle, delete, add 기능 구현
metacode22 Nov 12, 2022
c4128b7
feat: RootDocumentAddButton 컴포넌트 생성
metacode22 Nov 12, 2022
35d5875
feat: router 기능 추가
metacode22 Nov 12, 2022
0c71117
feat: 리스트를 클릭 시 현재 경로를 Post의 Header에서 렌더링할 수 있도록 구현
metacode22 Nov 12, 2022
2e51bfa
feat: Sidebar의 Header 클릭 시 Post의 Header가 Metamong으로 표시되게 구현
metacode22 Nov 12, 2022
2f316f1
feat: PostEditor 컴포넌트 생성
metacode22 Nov 13, 2022
efe7397
feat: Not Found 컴포넌트 생성
metacode22 Nov 13, 2022
05bceee
feat: history.replaceState 모듈화, title 변경 시 sidebar의 제목도 변경되도록 구현
metacode22 Nov 14, 2022
b2564d4
refactor: rootDocument 추가 메서드를 App까지 끌어올림
metacode22 Nov 14, 2022
7c5bce0
refactor: DocumentList에서 목록들 생성 시 templates 함수로 따로 모듈화
metacode22 Nov 14, 2022
74731ad
feat: PostEditor에서 title 변경 시 currentPath, DocumentList, queryString도…
metacode22 Nov 14, 2022
5978f8d
fix: title을 다 지웠다가 다시 쓰면 이전의 currentPath가 변경되는 버그 수정
metacode22 Nov 14, 2022
ec2623e
refactor: debounce 모듈화
metacode22 Nov 14, 2022
286b6d7
style: Sidebar 스타일 개선, 토글 버튼이 회전되도록 구현
metacode22 Nov 15, 2022
7b29e6e
refactor: document-item 클릭 시의 setState를 App으로 끌어올림
metacode22 Nov 15, 2022
33e600d
feat: popstate event 추가하여 뒤로, 앞으로 가기 구현
metacode22 Nov 15, 2022
7313369
feat: css 파일을 루트 폴더에서 style 폴더로 위치 변경
metacode22 Nov 15, 2022
9c7637d
feat: 새 문서 생성 시, 생성된 문서로 이동
metacode22 Nov 15, 2022
217115b
feat: subDocumentList 컴포넌트 생성, 문서 클릭 시 하위 문서 링크가 렌더링 되기 위함.
metacode22 Nov 15, 2022
3a36fc9
refactor: DocumentListItem 클릭 시 액션을 App으로 끌어올림.
metacode22 Nov 15, 2022
092cfbb
fix: 유효하지 않은 DocumentList 목록 클릭 시 에러 발생 처리
metacode22 Nov 15, 2022
a5033aa
modify: DocumentItem 클릭 시 /documents/{id}로 route 되도록 변경
metacode22 Nov 16, 2022
2e0e86d
refactor: 유효하지 않은 pathname일 경우 home으로 리다이렉팅 되도록 처리
metacode22 Nov 16, 2022
fe09596
feat: rich content 구현
metacode22 Nov 16, 2022
3553f65
chore: prettier, husky 설정
metacode22 Nov 16, 2022
829ba5d
feat: 삭제 시 confirm 이후 삭제 되도록 개선
metacode22 Nov 16, 2022
c292a10
chore: ec2 테스트 중
metacode22 Nov 17, 2022
a102c4c
chore: index.js 모듈 경로 변경
metacode22 Nov 17, 2022
3de60f6
fix: title 변경 시 버벅이는 현상과 setCaret, getCaret으로 인해 한글 입력 시 글자 조합이 안되는 현…
metacode22 Nov 17, 2022
a90beee
refactor: storage 조작하는 코드들 모듈화
metacode22 Nov 20, 2022
d2f9a92
refactor: 불필요한 주석 제거, eslint 도입
metacode22 Nov 25, 2022
a7b31b7
chore: commit 전 eslint 동작하도록 husky 이용해 pre-commit 추가
metacode22 Nov 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["prettier"],
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"prettier/prettier": ["error"],
"import/no-unresolved": "off"
}
}
130 changes: 130 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# 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
.cache

# 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.*
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run format
npm run lint
17 changes: 17 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"bracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
"endOfLine": "lf"
}
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tiny Notion</title>

<link rel="stylesheet" type="text/css" href="/src/styles/normalize.css" />
<link rel="stylesheet" type="text/css" href="/src/styles/index.css" />
</head>
<body>
<div id="root"></div>
<script src="/src/index.js" type="module"></script>
</body>
</html>
Loading