Skip to content

Commit

Permalink
Merge pull request #90 from Team-INSERT/refactor/structure
Browse files Browse the repository at this point in the history
디렉터리 경로 변경
  • Loading branch information
Ubinquitous authored Oct 7, 2023
2 parents f7258b4 + 1412577 commit fe1a2fc
Show file tree
Hide file tree
Showing 115 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/apis/httpClient/httpClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios, { AxiosInstance, AxiosRequestConfig } from "axios";
import { requestInterceptors, responseInterceptors } from "@/apis/interceptor";
import { ERROR, TOKEN } from "@/constants/";
import { ERROR, TOKEN } from "@/constants";
import Storage from "../storage";
import { refresh } from "../token";

Expand Down
2 changes: 1 addition & 1 deletion src/apis/storage/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StorageSettingKey, StorageTokenKey } from "@/types/";
import { StorageSettingKey, StorageTokenKey } from "@/types";

type StorageKey = StorageSettingKey | StorageTokenKey;

Expand Down
2 changes: 1 addition & 1 deletion src/apis/token/refresh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TOKEN } from "@/constants/";
import { TOKEN } from "@/constants";
import Storage from "@/apis/storage";
import axios from "axios";

Expand Down
2 changes: 1 addition & 1 deletion src/app/applications/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import ApplicationsPage from "@/page/applications";
import ApplicationsPage from "@/templates/applications";
import React from "react";

const Applications = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/bamboo/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import BambooPage from "@/page/bamboo";
import BambooPage from "@/templates/bamboo";

const Bamboo = () => {
return <BambooPage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/calender/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import CalenderPage from "@/page/calender";
import CalenderPage from "@/templates/calender";

const Calender = () => {
return <CalenderPage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/domitory/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import DomitoryPage from "@/page/domitory";
import DomitoryPage from "@/templates/domitory";

const Domitory = () => {
return <DomitoryPage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/meal/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import MealPage from "@/page/meal";
import MealPage from "@/templates/meal";
import React from "react";

const Meal = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/meister/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import MeisterPage from "@/page/meister";
import MeisterPage from "@/templates/meister";

const Meister = () => {
return <MeisterPage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/oauth/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import OAuthPage from "@/page/oauth";
import OAuthPage from "@/templates/oauth";

const OAuth = () => {
return <OAuthPage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import HomePage from "@/page/home";
import HomePage from "@/templates/home";

const Home = () => {
return <HomePage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/post/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import PostPage from "@/page/forum-post";
import PostPage from "@/templates/forum-post";

interface IPostAppPageParams {
params: {
Expand Down
2 changes: 1 addition & 1 deletion src/app/post/[id]/update/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import UpdatePage from "@/page/forum-edit";
import UpdatePage from "@/templates/forum-edit";

interface IPostUpdateAppPageParams {
params: {
Expand Down
2 changes: 1 addition & 1 deletion src/app/post/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import ForumPage from "@/page/forum";
import ForumPage from "@/templates/forum";

const Post = () => {
return <ForumPage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/post/write/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import WritePage from "@/page/forum-write";
import WritePage from "@/templates/forum-write";

const Write = () => {
return <WritePage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/reserve/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import ReservePage from "@/page/reserve";
import ReservePage from "@/templates/reserve";

const Reserve = () => {
return <ReservePage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/timetable/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import TimeTablePage from "@/page/timetable";
import TimeTablePage from "@/templates/timetable";

const TimeTable = () => {
return <TimeTablePage />;
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Modal/BambooCreateModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { XIcon } from "@/assets/icons";
import { Button } from "@/components/atoms";
import useModal from "@/hooks/useModal";
import { useCreateBambooMutation } from "@/page/bamboo/services/mutation.service";
import { useCreateBambooMutation } from "@/templates/bamboo/services/mutation.service";
import { color, flex, font } from "@/styles";
import React from "react";
import styled from "styled-components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Row } from "@/components/Flex";
import Button from "@/components/atoms/Button";
import useDate from "@/hooks/useDate";
import IBambooPendingPost from "@/interfaces/bambooPendingPost.interface";
import { useAllowBambooMutation } from "@/page/bamboo/services/mutation.service";
import { useAllowBambooMutation } from "@/templates/bamboo/services/mutation.service";
import { color, flex, font } from "@/styles";
import React from "react";
import styled from "styled-components";
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Modal/BambooManageModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { color, flex, font } from "@/styles";
import React from "react";
import styled from "styled-components";
import { useBambooPendingListQuery } from "@/page/bamboo/services/query.service";
import { useBambooPendingListQuery } from "@/templates/bamboo/services/query.service";
import BambooHeader from "./BambooHeader";
import BambooManagePostListItem from "./BambooManagePostListItem";

Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Modal/PlanAddModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Column } from "@/components/Flex";
import { Button, Input, Select } from "@/components/atoms";
import useModal from "@/hooks/useModal";
import useUser from "@/hooks/useUser";
import { useAddCalenderPlanMutation } from "@/page/calender/services/mutation.service";
import { useAddCalenderPlanMutation } from "@/templates/calender/services/mutation.service";
import { color, flex, font } from "@/styles";
import React from "react";
import styled from "styled-components";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { flex } from "@/styles";
import { Aside } from "@/components/common";
import { Row } from "@/components/Flex";
import { flex } from "@/styles";
import React from "react";
import styled from "styled-components";
import { HuggingFace, ShushingFace, ThinkingFace } from "@/assets/images";
Expand Down
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.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UPDATE_POST } from "@/gql/post/queries";
import { UPDATE_POST } from "@/graphql/post/queries";
import { useMutation } from "@apollo/client";

export const useUpdatePostMutation = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GET_UPDATE_POST } from "@/gql/post/queries";
import { GET_UPDATE_POST } from "@/graphql/post/queries";
import { useQuery } from "@apollo/client";

interface IUseUpdatePostQueryProps {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Column, Row } from "@/components/Flex";
import { ImageWithFallback } from "@/components/atoms";
import useTextarea from "@/hooks/useTextarea";
import useUser from "@/hooks/useUser";
import { useCreateRecommentMutation } from "@/page/forum-post/services/mutation.service";
import { useCreateRecommentMutation } from "@/templates/forum-post/services/mutation.service";
import { color, font } from "@/styles";
import React from "react";
import styled from "styled-components";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IRecomment } from "@/interfaces";
import { useRecommentListQuery } from "@/page/forum-post/services/query.service";
import { useRecommentListQuery } from "@/templates/forum-post/services/query.service";
import { color, flex } from "@/styles";
import React from "react";
import InfiniteScroll from "react-infinite-scroll-component";
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { KEY, ROUTER } from "@/constants";
import { DELETE_POST } from "@/gql/post/queries";
import { DELETE_POST } from "@/graphql/post/queries";
import {
useApolloClient,
useMutation as useApolloMutation,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IPostQuery } from "@/interfaces";
import { GET_POST } from "@/gql/post/queries";
import { GET_POST } from "@/graphql/post/queries";
import { useQuery as useApolloQuery } from "@apollo/client";
import { useInfiniteQuery } from "@tanstack/react-query";
import { KEY } from "@/constants";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CREATE_POST } from "@/gql/post/queries";
import { CREATE_POST } from "@/graphql/post/queries";
import { useMutation } from "@apollo/client";

export const useCreatePostMutation = () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useApolloClient } from "@apollo/client";
import { GET_POST_LIST } from "@/gql/post/queries";
import { GET_POST_LIST } from "@/graphql/post/queries";
import { PostCategoryType } from "@/types";
import { KEY } from "@/constants";
import { useInfiniteQuery } from "@tanstack/react-query";
Expand Down
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.

0 comments on commit fe1a2fc

Please sign in to comment.