Skip to content

Commit

Permalink
refactor(structure): 폴더명 다시 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubinquitous committed Oct 7, 2023
1 parent db2505f commit 1412577
Show file tree
Hide file tree
Showing 304 changed files with 479 additions and 479 deletions.
File renamed without changes.
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 { requestInterceptors, responseInterceptors } from "@/apis/interceptor";
import { ERROR, TOKEN } from "@/constants";
import Storage from "../storage";
import { refresh } from "../token";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AxiosRequestConfig, AxiosResponse } from "axios";
import { TOKEN } from "@/_constants";
import { TOKEN } from "@/constants";
import Storage from "../storage";

export const requestInterceptors = (requestConfig: AxiosRequestConfig) => {
Expand Down
2 changes: 1 addition & 1 deletion src/_apis/storage/index.ts → 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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Storage from "@/_apis/storage";
import { TOKEN } from "@/_constants";
import Storage from "@/apis/storage";
import { TOKEN } from "@/constants";

const authorization = () => ({
headers: {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/_apis/token/refresh.ts → src/apis/token/refresh.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TOKEN } from "@/_constants";
import Storage from "@/_apis/storage";
import { TOKEN } from "@/constants";
import Storage from "@/apis/storage";
import axios from "axios";

const instance = axios.create({
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 "@/insert.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 "@/_pages/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 "@/_pages/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 "@/_pages/domitory";
import DomitoryPage from "@/templates/domitory";

const Domitory = () => {
return <DomitoryPage />;
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Provider from "@/_provider/provider.helper";
import Provider from "@/provider/provider.helper";

export const metadata = {
title: "BSM",
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 "@/_pages/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 "@/_pages/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 "@/_pages/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 "@/_pages/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 "@/_pages/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 "@/_pages/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 "@/_pages/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 "@/_pages/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 "@/_pages/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 "@/_pages/timetable";
import TimeTablePage from "@/templates/timetable";

const TimeTable = () => {
return <TimeTablePage />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FORUM } from "@/_constants";
import { FORUM } from "@/constants";

const categories = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IClassInfo } from "@/_interfaces";
import { IClassInfo } from "@/interfaces";

const emptyClassInfo: IClassInfo = {
period: "",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { POST } from "@/_constants";
import { IInputPost } from "@/_interfaces";
import { POST } from "@/constants";
import { IInputPost } from "@/interfaces";

const emptyInputPost: IInputPost = {
id: "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IMealList } from "@/_interfaces";
import { IMealList } from "@/interfaces";

const emptyMealList: IMealList = {
data: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import IMeister from "@/_interfaces/meister.interface";
import IMeister from "@/interfaces/meister.interface";

const emptyMeister: IMeister = {
meister: {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ITimetable } from "@/_interfaces";
import { ITimetable } from "@/interfaces";

const emptyTimetable: ITimetable = {
SUNDAY: [
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/_assets/icons/Arrow.tsx → src/assets/icons/Arrow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const path = {
top: "M1.66419 23.4679C2.24222 24.0457 3.02609 24.3703 3.84342 24.3703C4.66075 24.3703 5.44462 24.0457 6.02265 23.4679L21.2803 8.21018L36.538 23.4679C37.1193 24.0293 37.898 24.34 38.7061 24.333C39.5143 24.326 40.2874 24.0018 40.8589 23.4303C41.4304 22.8588 41.7546 22.0857 41.7616 21.2775C41.7686 20.4694 41.4579 19.6907 40.8965 19.1094L23.4596 1.67249C22.8815 1.09464 22.0977 0.77002 21.2803 0.77002C20.463 0.77002 19.6791 1.09464 19.1011 1.67249L1.66419 19.1094C1.08634 19.6874 0.761719 20.4713 0.761719 21.2886C0.761719 22.106 1.08634 22.8898 1.66419 23.4679Z",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const CategoryArrow = ({
width = 12,
Expand Down
2 changes: 1 addition & 1 deletion src/_assets/icons/Check.tsx → src/assets/icons/Check.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const Check = ({ width = 24, height = 24, isPointable }: SVGAttribute) => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const CommentIcon = ({
width = 22,
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,4 +1,4 @@
import { color } from "@/_styles";
import { color } from "@/styles";
import React from "react";

const HistorySeparator = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/_assets/icons/Like.tsx → src/assets/icons/Like.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const Like = ({ width = 50, height = 50, isPointable }: SVGAttribute) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";
import Like from "./Like";

interface ILikeIconProps extends SVGAttribute {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const LinkArrow = ({
width = 12,
Expand Down
2 changes: 1 addition & 1 deletion src/_assets/icons/Logo.tsx → src/assets/icons/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";
import styled from "styled-components";

const Logo = ({ isPointable }: SVGAttribute) => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { color } from "@/_styles";
import { color } from "@/styles";

interface ISettingProps extends React.SVGAttributes<HTMLOrSVGElement> {
width?: number;
Expand Down
2 changes: 1 addition & 1 deletion src/_assets/icons/Time.tsx → src/assets/icons/Time.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const Time = ({ width = 21, height = 21, isPointable }: SVGAttribute) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { color, flex } from "@/_styles";
import { color, flex } from "@/styles";
import React from "react";
import styled from "styled-components";

Expand Down
2 changes: 1 addition & 1 deletion src/_assets/icons/View.tsx → src/assets/icons/View.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SVGAttribute } from "@/_interfaces";
import { SVGAttribute } from "@/interfaces";

const View = ({ width = 31, height = 23, isPointable }: SVGAttribute) => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { color } from "@/_styles";
import { color } from "@/styles";
import StyledEmoji, { IStyledEmoji } from "./StyledEmoji";

const Grinning = ({ isHover, ...props }: IStyledEmoji) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { color } from "@/_styles";
import { color } from "@/styles";
import StyledEmoji, { IStyledEmoji } from "./StyledEmoji";

const HoldingBackTears = ({ isHover, ...props }: IStyledEmoji) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { color } from "@/_styles";
import { color } from "@/styles";
import StyledEmoji, { IStyledEmoji } from "./StyledEmoji";

const Kissing = ({ isHover, ...props }: IStyledEmoji) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { color } from "@/_styles";
import { color } from "@/styles";
import StyledEmoji, { IStyledEmoji } from "./StyledEmoji";

const Laughing = ({ isHover, ...props }: IStyledEmoji) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { color } from "@/_styles";
import { color } from "@/styles";
import StyledEmoji, { IStyledEmoji } from "./StyledEmoji";

const Relaxed = ({ isHover, ...props }: IStyledEmoji) => {
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,6 +1,6 @@
import styled, { css } from "styled-components";
import { color, font } from "@/_styles";
import { Check } from "@/_assets/icons";
import { color, font } from "@/styles";
import { Check } from "@/assets/icons";

interface IAnonymousBoxProps {
clicked: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from "styled-components";
import { color, font } from "@/_styles";
import { color, font } from "@/styles";

interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
color: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled, { css } from "styled-components";
import { color, font } from "@/_styles";
import { Row } from "@/_components/Flex";
import { color, font } from "@/styles";
import { Row } from "@/components/Flex";

interface ICategoryProps extends React.InputHTMLAttributes<HTMLInputElement> {
id?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import MDEditor, {
MDEditorProps,
getCommands,
} from "@uiw/react-md-editor";
import { UploadIcon } from "@/_assets/icons";
import { getImageUrl } from "@/_helpers";
import useModal from "@/_hooks/useModal";
import { UploadIcon } from "@/assets/icons";
import { getImageUrl } from "@/helpers";
import useModal from "@/hooks/useModal";
import DragDrop from "./DragDrop";

type CustomEditorPropsType = MDEditorProps & React.RefAttributes<ContextStore>;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image";
import { color } from "@/_styles";
import { color } from "@/styles";
import React from "react";
import styled, { css } from "styled-components";
import { Column, Row } from "../Flex";
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import styled, { css } from "styled-components";
import { color, font } from "@/_styles";
import { color, font } from "@/styles";

interface IInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
width?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import styled, { css } from "styled-components";
import { color, font } from "@/_styles";
import { Arrow } from "@/_assets/icons";
import { color, font } from "@/styles";
import { Arrow } from "@/assets/icons";

interface ISelectProps {
options: string[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import styled, { keyframes } from "styled-components";
import { color } from "@/_styles";
import { color } from "@/styles";

interface ISwitchProps {
isSwitch: boolean;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import styled from "styled-components";
import Link from "next/link";
import { color, font } from "@/_styles";
import { USER, ROUTER } from "@/_constants";
import { IUser } from "@/_interfaces";
import { Row, Column } from "@/_components/Flex";
import { getUserRole } from "@/_helpers";
import flex from "@/_styles/flex";
import { ImageWithFallback } from "@/_components/atoms";
import { defaultProfile } from "@/_assets/images";
import { color, font } from "@/styles";
import { USER, ROUTER } from "@/constants";
import { IUser } from "@/interfaces";
import { Row, Column } from "@/components/Flex";
import { getUserRole } from "@/helpers";
import flex from "@/styles/flex";
import { ImageWithFallback } from "@/components/atoms";
import { defaultProfile } from "@/assets/images";

interface IInfomationBoxProps {
user: IUser;
Expand Down
Loading

0 comments on commit 1412577

Please sign in to comment.