Skip to content

Commit

Permalink
docs: updated notice and add study space (feat: refactor study code) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL authored May 6, 2024
2 parents 6a9ddd9 + d9caf85 commit e2dd1c8
Show file tree
Hide file tree
Showing 27 changed files with 294 additions and 352 deletions.
2 changes: 1 addition & 1 deletion components/services/StudyVotePlacesPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useParams } from "next/navigation";
import { useEffect, useState } from "react";
import styled from "styled-components";

import { PLACE_TO_LOCATION } from "../../constants/serviceConstants/studyConstants/studyLocationConstants";
import { useStudyVoteQuery } from "../../hooks/study/queries";
import { PLACE_TO_LOCATION } from "../../storage/study";
import { DispatchType } from "../../types/hooks/reactTypes";
import { IPlace } from "../../types/models/studyTypes/studyDetails";
import { IStudyVotePlaces } from "../../types/models/studyTypes/studyInterActions";
Expand Down
4 changes: 3 additions & 1 deletion components/services/studyVote/StudyVoteDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import { useQueryClient } from "react-query";
import { useRecoilValue } from "recoil";

import { STUDY_VOTE } from "../../../constants/keys/queryKeys";
import { PLACE_TO_NAME } from "../../../constants/serviceConstants/studyConstants/studyCafeNameConstants";
import { PLACE_TO_LOCATION } from "../../../constants/serviceConstants/studyConstants/studyLocationConstants";
import { useToast } from "../../../hooks/custom/CustomToast";
import { useStudyParticipationMutation } from "../../../hooks/study/mutations";
import { usePointSystemMutation } from "../../../hooks/user/mutations";
import { usePointSystemLogQuery } from "../../../hooks/user/queries";
import StudyVoteSubModalPrivate from "../../../modals/study/studyVoteSubModal/StudyVoteSubModalPrivate";
import { myStudyState, studyDateStatusState } from "../../../recoils/studyRecoils";
import { PLACE_TO_LOCATION, PLACE_TO_NAME } from "../../../storage/study";
import { IModal } from "../../../types/components/modalTypes";
import {
IStudyVote,
Expand All @@ -24,6 +25,7 @@ import { dayjsToStr } from "../../../utils/dateTimeUtils";
import BottomDrawerLg, { IBottomDrawerLgOptions } from "../../organisms/drawer/BottomDrawerLg";
import StudyVotePlacesPicker from "../StudyVotePlacesPicker";
import StudyVoteTimeRulletDrawer from "./StudyVoteTimeRulletDrawer";

dayjs.locale("ko");

interface IStudyVoteDrawer extends IModal {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ export const STUDY_CAFE_LOGO: { [key in string]: string } = {
"https://studyabout.s3.ap-northeast-2.amazonaws.com/%EC%B9%B4%ED%8E%98+%EB%A1%9C%EA%B3%A0/%EC%8A%A4%ED%8A%B8%EB%A6%AC%ED%8A%B8+%EB%A1%9C%EA%B3%A0.png",
마르티:
"https://studyabout.s3.ap-northeast-2.amazonaws.com/%EC%B9%B4%ED%8E%98+%EB%A1%9C%EA%B3%A0/%EB%A7%88%EB%A5%B4%ED%8B%B0+%EB%A1%9C%EA%B3%A0.png",
엔제리너스:
"https://studyabout.s3.ap-northeast-2.amazonaws.com/%EC%B9%B4%ED%8E%98+%EB%A1%9C%EA%B3%A0/%EC%97%94%EC%A0%9C%EB%A6%AC%EB%84%88%EC%8A%A4+%EB%A1%9C%EA%B3%A0.jpg",
};
159 changes: 159 additions & 0 deletions constants/serviceConstants/studyConstants/studyCafeNameConstants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
import {
ALL_스터디인증,
ANYANG_범계학원가,
ANYANG_숨맑은집,
ANYANG_인뎃커피,
ANYANG_커피인더스트리,
ANYANG_파스쿠찌,
ANYANG_호계,
DONG_경희대,
DONG_길음역,
DONG_노원역,
DONG_동대문역,
DONG_딥십리역,
DONG_서울시립대,
DONG_석계역,
DONG_성신여대,
DONG_수유역,
DONG_신설동역,
DONG_안암역,
DONG_왕십리역,
DONG_월곡역,
DONG_장안동,
DONG_중화역,
DONG_혜화역,
DONG_혜화역2,
DONG_화랑대역,
DONG_회기역,
GANGNAM_강남,
GANGNAM_강남구청,
GANGNAM_교대,
GANGNAM_논현,
GANGNAM_도곡,
GANGNAM_선릉,
GANGNAM_신논현,
GANGNAM_양재,
INC_구월동,
INC_부평,
INC_송도,
INC_송도DT,
INC_인천대,
INC_인하대,
SUWAN_경기대,
SUWAN_경희대,
SUWAN_고색역,
SUWAN_광교,
SUWAN_광교엘리웨이,
SUWAN_구운동,
SUWAN_망포역,
SUWAN_상현역,
SUWAN_성균관대역,
SUWAN_송죽,
SUWAN_수원시청,
SUWAN_수원역,
SUWAN_스타벅스,
SUWAN_아주대,
SUWAN_워터쿨러,
SUWAN_행궁동,
YANG_목동점,
YANG_몽글,
YANG_발산역,
YANG_스타벅스,
YANG_신길역,
YANG_신월동,
YANG_신풍역,
YANG_양천구청역,
YANG_위카페,
YANG_이디야,
YANG_카페꼼마,
YANG_카페베네,
YANG_파스쿠찌,
YANG_할리스,
YANG_화곡역,
} from "./studyPlaceConstants";

export const PLACE_TO_NAME = {
//전체
[ALL_스터디인증]: "스터디인증",

//수원
[SUWAN_수원시청]: "투썸플레이스",
[SUWAN_수원역]: "탐앤탐스",
[SUWAN_아주대]: "카탈로그",
[SUWAN_상현역]: "투썸플레이스",
[SUWAN_송죽]: "커피빈",
[SUWAN_경희대]: "칸나",
[SUWAN_구운동]: "이디야",
[SUWAN_스타벅스]: "스타벅스",
[SUWAN_경기대]: "탐앤탐스",
[SUWAN_고색역]: "에이티씨",
[SUWAN_성균관대역]: "스타벅스",
[SUWAN_광교엘리웨이]: "책발전소",
[SUWAN_워터쿨러]: "워터쿨러",
[SUWAN_망포역]: "스타벅스",
[SUWAN_행궁동]: "행궁동",
[SUWAN_광교]: "디어커피",

//양천
[YANG_위카페]: "위카페",
[YANG_할리스]: "할리스",
[YANG_파스쿠찌]: "파스쿠찌",
[YANG_이디야]: "이디야",
[YANG_카페베네]: "카페베네",
[YANG_스타벅스]: "스타벅스",
[YANG_카페꼼마]: "카페꼼마",
[YANG_몽글]: "몽글",
[YANG_신풍역]: "이디야",
[YANG_신길역]: "레어 그루브",
[YANG_신월동]: "코나빈스",
[YANG_양천구청역]: "시나본",
[YANG_화곡역]: "투썸플레이스",
[YANG_발산역]: "스타벅스",
[YANG_목동점]: "스타벅스",

//안양
[ANYANG_커피인더스트리]: "커피인더스트리",
[ANYANG_숨맑은집]: "숨맑은집",
[ANYANG_파스쿠찌]: "파스쿠찌",
[ANYANG_인뎃커피]: "인뎃커피",
[ANYANG_범계학원가]: "숨맑은집",
[ANYANG_호계]: "숨맑은집",

//강남
[GANGNAM_강남]: "커피빈",
[GANGNAM_신논현]: "커피빈",
[GANGNAM_논현]: "커피빈",
[GANGNAM_교대]: "아펜즈커피",
[GANGNAM_양재]: "미오커피",
[GANGNAM_선릉]: "커피빈",
[GANGNAM_강남구청]: "파스쿠찌",
[GANGNAM_도곡]: "카페올로",

//동대문
[DONG_장안동]: "투썸플레이스",
[DONG_석계역]: "카페디졸브",
[DONG_딥십리역]: "아띠커피",
[DONG_서울시립대]: "해머스미스커피",
[DONG_경희대]: "빵쌤",
[DONG_월곡역]: "카페어바웃",
[DONG_왕십리역]: "어질인",
[DONG_안암역]: "캐치카페",
[DONG_신설동역]: "커피니",
[DONG_길음역]: "일일커피",
[DONG_성신여대]: "카페 뮬",
[DONG_동대문역]: "D CAFE",
[DONG_혜화역]: "캐치카페",
[DONG_혜화역2]: "커피빈",
[DONG_화랑대역]: "마르티",
[DONG_중화역]: "스타벅스",
[DONG_노원역]: "투썸플레이스",
[DONG_수유역]: "엔제리너스",
[DONG_회기역]: "READSTREET",

[INC_인하대]: "더스토리",
[INC_송도DT]: "스타벅스",
[INC_구월동]: "파스쿠찌",
[INC_송도]: "카페꼼마",
[INC_부평]: "하이테이블",
[INC_인천대]: "스타벅스",
};
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
import {
DONG_화랑대역,
INC_구월동,
INC_송도,
INC_송도DT,
INC_인하대,
SUWAN_광교,
SUWAN_워터쿨러,
YANG_목동점,
YANG_발산역,
} from "../../../storage/study";
import { ActiveLocation } from "../../../types/services/locationTypes";
import {
ANYANG_범계학원가,
Expand All @@ -30,6 +19,7 @@ import {
DONG_월곡역,
DONG_장안동,
DONG_혜화역,
DONG_화랑대역,
GANGNAM_강남,
GANGNAM_강남구청,
GANGNAM_교대,
Expand All @@ -38,9 +28,14 @@ import {
GANGNAM_선릉,
GANGNAM_신논현,
GANGNAM_양재,
INC_구월동,
INC_송도,
INC_송도DT,
INC_인하대,
SUWAN_경기대,
SUWAN_경희대,
SUWAN_고색역,
SUWAN_광교,
SUWAN_광교엘리웨이,
SUWAN_구운동,
SUWAN_망포역,
Expand All @@ -50,8 +45,11 @@ import {
SUWAN_수원시청,
SUWAN_수원역,
SUWAN_아주대,
SUWAN_워터쿨러,
SUWAN_행궁동,
YANG_목동점,
YANG_몽글,
YANG_발산역,
YANG_스타벅스,
YANG_신길역,
YANG_신월동,
Expand Down
Loading

0 comments on commit e2dd1c8

Please sign in to comment.