Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🐛 api 응답값이 없는 경우 처리 - default value 설정 * 📦 webpack-dev-server 삭제 - webpack-hot-middleware가 대신함. - hmr entry point에 accept 추가 -> module 업데이트 수락 (사용하지 않으면 업데이트가 되지 않는다.) * 🐛 helmet 설정 변경 - helmet 기본값 COEP로 페이지 보호를 위해 신뢰하는외부소스 콘텐츠만 허용한다. - 따라서 import한 css를 불러오지 못함 -> false로 설정 * 📦 connect-history-api-fallback 설치 및 적용 - webpack-dev-middleware 사용시 historyApiFallback 적용을 위해 사용 * 💄 Not Found Page 스타일 적용 * ✨ toast message 추가 및 적용 - display: hidden -> visible로 변경, 3초 뒤 원상태로 설정
- Loading branch information
Showing
15 changed files
with
167 additions
and
857 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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,10 +1,25 @@ | ||
const removeContent = () => { | ||
const container = document.querySelector('#app'); | ||
[...container.children].forEach(layoutTag => { | ||
if (layoutTag.tagName !== 'HEADER') { | ||
layoutTag.remove(); | ||
[...container.children].forEach(child => { | ||
if (!(child.tagName === 'HEADER' || child.classList.contains('toast'))) { | ||
child.remove(); | ||
} | ||
}); | ||
}; | ||
|
||
export { removeContent }; | ||
const showToastMessage = message => { | ||
const toast = document.querySelector('.toast'); | ||
|
||
if (toast.classList.contains('show')) { | ||
return; | ||
} | ||
|
||
toast.innerHTML = message; | ||
toast.classList.add('show'); | ||
|
||
setTimeout(() => { | ||
toast.classList.toggle('show'); | ||
}, 3000); | ||
}; | ||
|
||
export { removeContent, showToastMessage }; |
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
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