diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index bb5c6ce..0000000 --- a/.dockerignore +++ /dev/null @@ -1,13 +0,0 @@ -# .git 과 .cache 폴더를 무시 -.git -.cache - -# 모든 마크다운 파일들 (md) 파일들을 무시, -# 모든 README*.md 파일 무시 -*.md -IREADME*.md - -node_modules -npm-debug.log -# build -.idea \ No newline at end of file diff --git a/Dockerfile.local b/Dockerfile.local deleted file mode 100644 index 3480b23..0000000 --- a/Dockerfile.local +++ /dev/null @@ -1,22 +0,0 @@ -FROM nginx - -ADD ./build /usr/share/nginx/html - -# 80 포트 오픈 -EXPOSE 80 - -# container 실행 시 nginx 시작함 -CMD ["nginx", "-g", "daemon off;"] - -# root 에 app 폴더를 생성 -# RUN mkdir /app -# work dir 고정 -# WORKDIR /app -# work dir 에 build 폴더 생성 /app/build -# RUN mkdir ./build -# host pc의 현재경로의 build 폴더를 workdir 의 build 폴더로 복사 -# ADD ./build ./build -# nginx 의 default.conf backup -# RUN mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.backup -# host pc 의 nginx.conf 를 아래 경로에 복사 -# COPY ./nginx.conf /etc/nginx/conf.d \ No newline at end of file diff --git a/Jenkinsfile-build b/Jenkinsfile-build deleted file mode 100644 index da6e3f8..0000000 --- a/Jenkinsfile-build +++ /dev/null @@ -1,12 +0,0 @@ - node { - stage('Clone repository') { - checkout scm - } - - stage('Build docker image') { - app = docker.build("xit/opst-fo:latest") //docker image build 및 이름을 xit/opst-fo:$BUILD_NUMBER(빌드번호) 설정 - } - //stage('Docker run'){ - // sh "docker run --rm --name opst-fo -d -p 80:80 xit/opst-fo:latest" - //} -} \ No newline at end of file diff --git a/package.json b/package.json index e86e205..085105b 100755 --- a/package.json +++ b/package.json @@ -66,7 +66,6 @@ "react-otp-input-rc-17": "^2.4.1-minor", "react-pdf": "^5.7.2", "react-perfect-scrollbar": "^1.5.8", - "react-query": "^3.39.1", "react-quill": "^2.0.0-beta.4", "react-redux": "^7.2.6", "react-resizable": "^3.0.4", diff --git a/src/index.js b/src/index.js index bc3f91b..bff2e6d 100755 --- a/src/index.js +++ b/src/index.js @@ -3,8 +3,6 @@ import ReactDOM from 'react-dom'; // third party import { BrowserRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; -import { MutationCache, QueryCache, QueryClient, QueryClientProvider } from 'react-query'; -import { ReactQueryDevtools } from 'react-query/devtools'; import { PersistGate } from 'redux-persist/integration/react'; import { transitions, positions, Provider as AlertProvider, types } from 'react-alert'; @@ -20,7 +18,6 @@ import { ConfigProvider } from 'contexts/ConfigContext'; // style + assets import 'assets/scss/style.scss'; -import axios from 'axios'; // ==============================|| REACT DOM RENDER ||============================== // @@ -36,48 +33,20 @@ const options = { } }; -const queryClient = new QueryClient({ - mutationCache: new MutationCache({ - onError: (error) => { - if (axios.isAxiosError(error)) { - const errorCode = error.response?.data.code; - console.log(`###################@@@@@@@@@@@@@@${errorCode}`); // 에러 팝업 띄우기 - } else { - throw error; // error boundary로 전달 - } - } - }), - queryCache: new QueryCache({ - onError: (error) => { - if (axios.isAxiosError(error)) { - const errorCode = error.response?.data.code; - console.log(`###################@@@@@@@@@@@@@@${errorCode}`); // 에러 팝업 띄우기 - } else { - throw error; // error boundary로 전달 - } - } - }) -}); - ReactDOM.render( // - - - - - - {/* */} - - {/* */} - - - - - {/* //TODO : 개발완료시 교체 */} - - {/* */} - + + + + + {/* */} + + {/* */} + + + + , // , document.getElementById('root')