Skip to content

Commit 762d717

Browse files
authored
Merge pull request #19 from enjoy-hack/refactor/fsd
Refactor: FSD 폴더 구조 변경 (components, assets 제외)
2 parents 5e3bf53 + 566b33a commit 762d717

20 files changed

Lines changed: 26 additions & 23 deletions

File tree

src/App.jsx renamed to src/app/index.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import {
55
useLocation,
66
Navigate,
77
} from 'react-router-dom';
8-
import Home from './pages/Home';
9-
import TrackInfo from './pages/TrackInfo';
8+
import Home from './pages/home';
9+
import TrackInfo from './pages/info';
1010
import NotFound from './pages/NotFound';
1111
import Search from './pages/Search';
12-
import Splash from './pages/Splash';
13-
import Header from './layouts/Header';
14-
import Footer from './layouts/Footer';
15-
import Login from './pages/Login';
16-
import MyPage from './pages/My';
12+
import Splash from './pages/splash';
13+
import Header from './widgets/navigation/Header';
14+
import Footer from './widgets/navigation/Footer';
15+
import Login from './pages/login';
16+
import MyPage from './pages/my';
1717
import UploadSection from './components/UploadSection';
1818

1919
function App() {
File renamed without changes.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
// API 요청 관련 함수
22
// src/services/userService.js
3-
import { BASE_URL } from '../constants/api';
3+
import { BASE_URL } from '../../../constants/api';
44

5-
export const loginWithSejongPortal = async (sejongPortalId, sejongPortalPassword) => {
5+
export const loginWithSejongPortal = async (
6+
sejongPortalId,
7+
sejongPortalPassword
8+
) => {
69
const response = await fetch(`${BASE_URL}/api/auth/sejong/login`, {
710
method: 'POST',
811
headers: {
File renamed without changes.

src/services/userDataService.js renamed to src/features/track-manamgement/api/userDataService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// src/services/userDataService.js
2-
import { BASE_URL } from '../constants/api';
3-
import useUserStore from '../stores/useUserStore';
2+
import { BASE_URL } from '../../../constants/api';
3+
import useUserStore from '../../../stores/useUserStore';
44

55
export const uploadStudentExcel = async (file) => {
66
const studentId = useUserStore.getState().studentId;

src/services/userTrackService.js renamed to src/features/track-manamgement/api/userTrackService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BASE_URL } from '../constants/api';
1+
import { BASE_URL } from '../../../constants/api';
22

33
export const postUserTrack = async (studentId, trackName) => {
44
const response = await fetch(

0 commit comments

Comments
 (0)