Skip to content

Commit

Permalink
docs: add study space and notice
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed May 5, 2024
1 parent 575581d commit 3d37766
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {
ALL_스터디인증,
ANYANG_범계학원가,
ANYANG_숨맑은집,
ANYANG_인뎃커피,
ANYANG_커피인더스트리,
ANYANG_파스쿠찌,
ANYANG_호계,
DONG_경희대,
DONG_길음역,
DONG_노원역,
Expand All @@ -22,6 +24,7 @@ import {
DONG_혜화역,
DONG_혜화역2,
DONG_화랑대역,
DONG_회기역,
GANGNAM_강남,
GANGNAM_강남구청,
GANGNAM_교대,
Expand Down Expand Up @@ -72,6 +75,7 @@ import {
export const PLACE_TO_NAME = {
//전체
[ALL_스터디인증]: "스터디인증",

//수원
[SUWAN_수원시청]: "투썸플레이스",
[SUWAN_수원역]: "탐앤탐스",
Expand All @@ -82,48 +86,50 @@ export const PLACE_TO_NAME = {
[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_목동점]: "스타벅스",
[YANG_발산역]: "스타벅스",
[YANG_목동점]: "스타벅스",

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

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

//동대문
[DONG_장안동]: "투썸플레이스",
[DONG_석계역]: "카페디졸브",
[DONG_딥십리역]: "아띠커피",
Expand All @@ -140,13 +146,14 @@ export const PLACE_TO_NAME = {
[DONG_혜화역2]: "커피빈",
[DONG_화랑대역]: "마르티",
[DONG_중화역]: "스타벅스",
[DONG_수유역]: "엔제리너스",
[DONG_노원역]: "투썸플레이스",
[DONG_수유역]: "엔제리너스",
[DONG_회기역]: "READSTREET",

[INC_인하대]: "더스토리",
[INC_송도DT]: "스타벅스",
[INC_구월동]: "파스쿠찌",
[INC_부평]: "하이테이블",
[INC_송도]: "카페꼼마",
[INC_송도DT]: "스타벅스",
[INC_인하대]: "더스토리",
[INC_부평]: "하이테이블",
[INC_인천대]: "스타벅스",
};
56 changes: 32 additions & 24 deletions constants/serviceConstants/studyConstants/studyLocationConstants.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { ActiveLocation } from "../../../types/services/locationTypes";
import {
ANYANG_범계학원가,
ANYANG_숨맑은집,
ANYANG_인뎃커피,
ANYANG_자유신청,
ANYANG_커피인더스트리,
ANYANG_파스쿠찌,
ANYANG_호계,
DONG_경희대,
DONG_길음역,
DONG_노원역,
DONG_동대문역,
DONG_딥십리역,
DONG_서울시립대,
DONG_석계역,
DONG_성신여대,
DONG_수유역,
DONG_신설동역,
DONG_안암역,
DONG_왕십리역,
Expand All @@ -30,18 +33,17 @@ import {
GANGNAM_선릉,
GANGNAM_신논현,
GANGNAM_양재,
GANGNAM_자유신청,
INC_구월동,
INC_부평,
INC_송도,
INC_송도DT,
INC_인천대,
INC_인하대,
SUWAN_경기대,
SUWAN_경희대,
SUWAN_고색역,
SUWAN_광교,
SUWAN_광교엘리웨이,
SUWAN_광교중앙역,
SUWAN_구운동,
SUWAN_망포역,
SUWAN_상현역,
Expand All @@ -52,17 +54,17 @@ import {
SUWAN_스타벅스,
SUWAN_아주대,
SUWAN_워터쿨러,
SUWAN_자유신청,
SUWAN_행궁동,
YANG_목동점,
YANG_몽글,
YANG_발산역,
YANG_스타벅스,
YANG_신길역,
YANG_신월동,
YANG_신풍역,
YANG_양천구청역,
YANG_위카페,
YANG_이디야,
YANG_자유신청,
YANG_카페꼼마,
YANG_카페베네,
YANG_파스쿠찌,
Expand All @@ -77,53 +79,57 @@ type LocationToPlace = {
export const LOCATION_TO_PLACE: LocationToPlace = {
// 전체: [ALL_스터디인증],
수원: [
SUWAN_상현역,
SUWAN_아주대,
SUWAN_수원역,
SUWAN_수원시청,
SUWAN_경희대,
SUWAN_수원역,
SUWAN_아주대,
SUWAN_상현역,
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_신풍역,
YANG_신길역,
YANG_신월동,

YANG_양천구청역,
YANG_화곡역,
YANG_목동점,
YANG_발산역,
],
안양: [ANYANG_숨맑은집, ANYANG_인뎃커피, ANYANG_커피인더스트리, ANYANG_파스쿠찌, ANYANG_자유신청],
안양: [
ANYANG_숨맑은집,
ANYANG_인뎃커피,
ANYANG_커피인더스트리,
ANYANG_파스쿠찌,
ANYANG_범계학원가,
ANYANG_호계,
],
강남: [
GANGNAM_강남,
GANGNAM_강남구청,
GANGNAM_신논현,
GANGNAM_논현,
GANGNAM_교대,
GANGNAM_양재,
GANGNAM_선릉,
GANGNAM_강남구청,
GANGNAM_도곡,
GANGNAM_자유신청,
],
동대문: [
DONG_장안동,
Expand All @@ -142,9 +148,11 @@ export const LOCATION_TO_PLACE: LocationToPlace = {
DONG_혜화역2,
DONG_화랑대역,
DONG_중화역,
DONG_노원역,
DONG_수유역,
DONG_회기역,
],
인천: [INC_구월동, INC_부평, INC_인하대, INC_송도, INC_송도DT],
인천: [INC_구월동, INC_부평, INC_인하대, INC_송도, INC_송도DT, INC_인천대],
};

export const PLACE_TO_LOCATION = createPlaceToLocationMap(LOCATION_TO_PLACE);
Expand Down
15 changes: 5 additions & 10 deletions constants/serviceConstants/studyConstants/studyPlaceConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ export const SUWAN_경희대 = "644f70529edb56992ccda5eb";
export const SUWAN_구운동 = "6527c32774e4622ec48d12dd";
export const SUWAN_스타벅스 = "64ba45feefd3711264521a87";
export const SUWAN_경기대 = "65211465032de083c092353c";
export const SUWAN_광교중앙역 = "63625f1d958585371af0248b";
export const SUWAN_자유신청 = "6479f39e907daf3e8a5cda6e";
export const SUWAN_행궁동 = "6559f7e8e5c9066b9b8e7d2a";
export const SUWAN_망포역 = "6559f61fe5c9066b9b8e7d29";
export const SUWAN_고색역 = "654ca7770f651095a2e41845";
export const SUWAN_성균관대역 = "654ca7b50f651095a2e41846";
export const SUWAN_워터쿨러 = "65bfc9347d1dd938049ed1a2";
export const SUWAN_광교엘리웨이 = "654ca92f0f651095a2e41848";
export const SUWAN_워터쿨러 = "65bfc9347d1dd938049ed1a2";
export const SUWAN_망포역 = "6559f61fe5c9066b9b8e7d29";
export const SUWAN_행궁동 = "6559f7e8e5c9066b9b8e7d2a";
export const SUWAN_광교 = "65fbdd5eba2597c46415a02c";

//양천
Expand All @@ -34,7 +32,6 @@ export const YANG_신풍역 = "6551d99dd01680084c5c6a92";
export const YANG_신길역 = "6551d7cbd01680084c5c6a91";
export const YANG_신월동 = "6551d5bdd01680084c5c6a90";
export const YANG_양천구청역 = "6551d2b3d01680084c5c6a8f";
export const YANG_자유신청 = "6437eb3fab537b843c6143ae";
export const YANG_화곡역 = "658fbbc2113d3959183e36c2";
export const YANG_발산역 = "65bfac0a7d1dd938049ed19e";
export const YANG_목동점 = "65bfab8b7d1dd938049ed19d";
Expand All @@ -46,25 +43,23 @@ export const ANYANG_파스쿠찌 = "652a52a6db9e8e554deafd67";
export const ANYANG_인뎃커피 = "6456ef8120352b2d8758295b";
export const ANYANG_범계학원가 = "6551ba13d01680084c5c6a8c";
export const ANYANG_호계 = "6551bdbfd01680084c5c6a8d";
export const ANYANG_자유신청 = "6456eed520352b2d87582957";

//강남
export const GANGNAM_강남 = "652a9e8adb9e8e554deafd68";
export const GANGNAM_신논현 = "64ecc33940f6dace3b065598";
export const GANGNAM_논현 = "64ecc3c240f6dace3b06559c";
export const GANGNAM_교대 = "652a5245db9e8e554deafd66";
export const GANGNAM_양재 = "64ecc48d40f6dace3b06559e";
export const GANGNAM_선릉 = "64ecc54240f6dace3b0655a0";
export const GANGNAM_강남구청 = "64ecc4ef40f6dace3b06559f";
export const GANGNAM_강남 = "652a9e8adb9e8e554deafd68";
export const GANGNAM_도곡 = "65522b7ed01680084c5c6a93";
export const GANGNAM_자유신청 = "64ecc41640f6dace3b06559d";

//동대문
export const DONG_장안동 = "6597c1f1a11634850ed506e0";
export const DONG_석계역 = "6597c184a11634850ed506df";
export const DONG_딥십리역 = "6597c124a11634850ed506de";
export const DONG_서울시립대 = "6597c0a2a11634850ed506dd";
export const DONG_경희대 = "6597c076a11634850ed506dc";
export const DONG_경희대 = "661cd9aeaaae875d410236d1";
export const DONG_월곡역 = "6597c047a11634850ed506db";
export const DONG_왕십리역 = "6597c004a11634850ed506da";
export const DONG_안암역 = "6597bfd5a11634850ed506d9";
Expand Down
4 changes: 2 additions & 2 deletions pages/study/[id]/[date]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParams } from "next/navigation";
import { useSession } from "next-auth/react";
import { useParams } from "next/navigation";
import { useEffect } from "react";
import { useRecoilState, useSetRecoilState } from "recoil";
import styled from "styled-components";
Expand All @@ -26,7 +26,7 @@ export default function Page() {
const setMyStudy = useSetRecoilState(myStudyState);

const location = PLACE_TO_LOCATION[id];

console.log(location);
const { data: studyAll } = useStudyVoteQuery(date, location, {
enabled: !!location && !!date,
});
Expand Down
11 changes: 9 additions & 2 deletions storage/notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,7 @@ export const NOTICE_ARR: INoticeArr[] = [
id: "88",
title: "시험기간 추가 이벤트",
category: "event",
content:
"시험기간 동안 힘내라고 각 지역 톡방에서 기프티콘을 뿌려요! 선착순 당첨입니다 ㅎㅎ",
content: "시험기간 동안 힘내라고 각 지역 톡방에서 기프티콘을 뿌려요! 선착순 당첨입니다 ㅎㅎ",
date: "2023-04-22",
},
{
Expand All @@ -716,4 +715,12 @@ export const NOTICE_ARR: INoticeArr[] = [
"조모임은 신청자들의 지역, 나이, 성별, 희망 사항 등을 고려해서 조를 매칭하고, 6~8인의 조별로 모임을 진행하게 되는 컨텐츠입니다. 작년 9월에 처음 시작했는데 반응이 좋았어요! 누가 나올지 모른다는 부담없이 재밌는 모임 가져봐요! 상세 내용은 단톡방에서 공지하겠습니다.",
date: "2023-04-29",
},
{
id: "91",
title: "스터디 장소 추가 및 변경",
category: "main",
content:
"수원역 탐탐에서 엔제리너스로 변경. 송도 컨벤션DT 스타벅스점 추가. 동대문 노원역 투썸 추가. 동대문 수유역 엔제리너스 추가. 기타 기존에 추가되었지만 페이지 접속이 안됐던 오류 수정.",
date: "2023-05-05",
},
];

0 comments on commit 3d37766

Please sign in to comment.