Skip to content

Commit

Permalink
Merge pull request #141 from 2022-Winter-Bootcamp-Team-K/refactor/#139-…
Browse files Browse the repository at this point in the history
…DirectoryAndConsole

139 [refactor] 폴더 구조화, console.log 삭제
  • Loading branch information
minseok1015 authored Feb 1, 2023
2 parents 74845c3 + 9c64bbd commit 1374381
Show file tree
Hide file tree
Showing 90 changed files with 95 additions and 502 deletions.
17 changes: 9 additions & 8 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
.App{}
.App {
}
@font-face {
font-family: Cafe24Ssurround;
src: URL('./Styles/fonts/Cafe24Ssurround.ttf');
src: URL('./assets/font/Cafe24Ssurround.ttf');
}

@font-face {
font-family: establishRoomNo703OTF;
src: URL('./Styles/fonts/establishRoomNo703OTF.ttf');
src: URL('./assets/font/establishRoomNo703OTF.ttf');
}

@font-face {
font-family: KyoboHandwriting2021sjy;
src: URL('./Styles/fonts/KyoboHandwriting2021sjy.ttf');
src: URL('./assets/font/KyoboHandwriting2021sjy.ttf');
}

@font-face {
font-family: TTTtangsbudaejjigaeB;
src: URL('./Styles/fonts/TTTtangsbudaejjigaeB.ttf');
src: URL('./assets/font/TTTtangsbudaejjigaeB.ttf');
}

@font-face {
font-family: Ansungtangmyun;
src: URL('./Styles/fonts/Ansungtangmyun.ttf');
src: URL('./assets/font/Ansungtangmyun.ttf');
}
@font-face {
font-family: SUIT-SemiBold;
src: URL('./Styles/fonts/SUIT-SemiBold.ttf');
src: URL('./assets/font/SUIT-SemiBold.ttf');
}

/* 카페24서라운드 */
Expand Down Expand Up @@ -62,4 +63,4 @@
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/establishRoomNo703OTF.woff') format('woff');
font-weight: normal;
font-style: normal;
} */
} */
14 changes: 7 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
// import axios from 'axios';
import Welcome from './Page/Welcome';
import MyPage from './Page/MyPage';
import MakeRolling from './Page/MakeRolling';
import Rolling from './Page/Rolling';
import Register from './Page/Register';
import Memo from './Page/Memo';
import Photo from './Page/PhotoModal';
import Welcome from './page/Welcome/Welcome';
import MyPage from './page/MyPage/MyPage';
import MakeRolling from './page/MakeRolling/MakeRolling';
import Rolling from './page/RollingPaper/Rolling';
import Register from './page/Register';
import Memo from './page/Memo/Memo';
import Photo from './page/PhotoModal';

import './App.css';

Expand Down
Binary file removed src/Image/RollIT.png
Binary file not shown.
Binary file removed src/Image/logo.png
Binary file not shown.
Binary file removed src/Image/logo2.png
Binary file not shown.
Binary file removed src/Image/pencil.png
Binary file not shown.
Binary file removed src/Image/poplogo.png
Binary file not shown.
Binary file removed src/Image/profile.png
Binary file not shown.
Binary file removed src/Image/sharemainimage.png
Binary file not shown.
Binary file removed src/Image/sketchbookLogin.png
Binary file not shown.
Binary file removed src/Image/sketchbookWelcome.png
Binary file not shown.
Binary file removed src/Image/smallLogo.png
Binary file not shown.
Binary file removed src/Image/smallpoplogo.png
Binary file not shown.
Binary file removed src/Image/welcome2.png
Binary file not shown.
Binary file removed src/Image/welcome3.png
Binary file not shown.
15 changes: 0 additions & 15 deletions src/Page/GlobalStyle.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/Page/PhotoUpload.js

This file was deleted.

158 changes: 0 additions & 158 deletions src/Page/handMotion.js

This file was deleted.

19 changes: 0 additions & 19 deletions src/Page/snow.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added src/assets/image/welcomedown.png
File renamed without changes.
7 changes: 2 additions & 5 deletions src/Page/KakaoShare.js → src/component/KakaoShare.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from 'react';
import { useLocation } from 'react-router-dom';
import styled from 'styled-components';
import KakaoBtn from '../Image/kakaobtn.png';
import KakaoBtn from '../assets/image/kakaobtn.png';

// const kakaoJSKey = process.env.REACT_APP_KAKAO_KEY;

Expand All @@ -13,7 +13,6 @@ const KakaoShareBtn = styled.button`
`;

function KakaoShare() {
// console.log('@@@@@@@@@@@@@@@@@@@', kakaoJSKey);
const location = useLocation();
useEffect(() => {
// 카카오톡 sdk 추가
Expand All @@ -23,9 +22,7 @@ function KakaoShare() {
document.body.appendChild(script);
return () => document.body.removeChild(script);
}, []);
useEffect(() => {
console.log(location);
}, [location]);
useEffect(() => {}, [location]);

const shareToKatalk = () => {
// kakao sdk script 부른 후 window.Kakao로 접근
Expand Down
2 changes: 1 addition & 1 deletion src/Page/Loading.js → src/component/Loading.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import './Loading.css';
import '../style/Loading.css';

function Loading() {
return (
Expand Down
1 change: 1 addition & 0 deletions src/Page/anonymous.js → src/component/anonymous.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export default function anonymous() {
const randomNum = Math.floor(Math.random() * 50);

return ` 익명 ${randomNum}`;
// 폴더 이름 변경
}
21 changes: 3 additions & 18 deletions src/Page/Cartoonize.js → src/page/Cartoonize.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ function Cartoonize({
await formData.append('image', resizeFile);

const response = await axios.post(`${backBaseUrl}/api/v1/photos`, formData);
console.log(response.data);

const response2 = await axios.post(
`${backBaseUrl}/api/v1/papers/cartoons`,
response.data,
);
// console.log(response2.data);

return response2.data;
}
function run2(run1Result) {
Expand All @@ -60,9 +60,8 @@ function Cartoonize({
.then(response => {
/* eslint-disable no-plusplus */
counter++;
console.log(response.data);

if (counter >= 50 || response.data.image_url) {
console.log('response: ', response.data);
clearInterval(interval);
setPhoto(response.data);
setLoading(false);
Expand All @@ -73,10 +72,8 @@ function Cartoonize({
})

.catch(error => {
console.log(error);
clearInterval(interval);
});
console.log('datas: ', datas);
}, 2000);
}

Expand All @@ -88,21 +85,9 @@ function Cartoonize({
}
setLoading(true);
const run1Result = await run1();
console.log('2번쨰 데이터 값 ', run1Result.task_id);
const run2Result = await run2(run1Result);
await console.log(1111);
await console.log(2222);
await console.log(3333);
await console.log(4444);

// await closeModal();
// await setRawLog(imageUrl);
// await setIsPhoto(true);
// await setIsActive(true);
};
// console.log('@@@@@', imageUrl);

// const onSubmit = () => {};
return (
<CartoonBtn type="button" onClick={onSubmit}>
만화필터로 <br />
Expand Down
6 changes: 3 additions & 3 deletions src/Page/Login.js → src/page/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { useNavigate } from 'react-router-dom';
import 'react-toastify/dist/ReactToastify.css';
import Modal from 'react-modal';

import './Background.css';
import '../style/Background.css';

import ID from '../Image/ID.png';
import PW from '../Image/PW.png';
import ID from '../assets/image/ID.png';
import PW from '../assets/image/PW.png';

const backBaseUrl = process.env.REACT_APP_BACKEND_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import MakeRoll from './MakeRollingMypage';
import RollText from './MakeRollingText';
import Theme from './MakeRollingTheme';

import background from '../Image/welcome1.png';
import background from '../../assets/image/welcome1.png';

const AllWrap = styled.div`
height: 120vh;
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1374381

Please sign in to comment.