From f17b7015478ae025596460ffe6e4a52d803bd15e Mon Sep 17 00:00:00 2001 From: minuxx Date: Sat, 24 Sep 2022 16:19:14 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A8=BC=EC=A7=80=20=EB=A7=88=EC=BB=A4?= =?UTF-8?q?=20=EB=A0=8C=EB=8D=94=EB=A7=81=20(=EB=8D=94=EB=AF=B8=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/service.js | 17 + image/img-dust-black.png | Bin 0 -> 6860 bytes pages/_document.jsx | 5 +- pages/map/_components/Dust.jsx | 27 + pages/map/_components/KakaoAPIMap.jsx | 86 +- pages/qrcode/index.js | 32 +- public/img-dust-black.png | Bin 0 -> 6860 bytes public/img-dust-black.svg | 9 + public/img-dust-green.svg | 9 + public/img-dust-orange.svg | 9 + public/img-dust-purple.svg | 9 + public/img-dust-white.svg | 9 + styles/Map.module.css | 153 +- yarn.lock | 2209 +++++++++++++++++++++++++ 14 files changed, 2475 insertions(+), 99 deletions(-) create mode 100644 apis/service.js create mode 100644 image/img-dust-black.png create mode 100644 pages/map/_components/Dust.jsx create mode 100644 public/img-dust-black.png create mode 100644 public/img-dust-black.svg create mode 100644 public/img-dust-green.svg create mode 100644 public/img-dust-orange.svg create mode 100644 public/img-dust-purple.svg create mode 100644 public/img-dust-white.svg create mode 100644 yarn.lock diff --git a/apis/service.js b/apis/service.js new file mode 100644 index 0000000..6fe7dfe --- /dev/null +++ b/apis/service.js @@ -0,0 +1,17 @@ +import axios from "axios"; + +// export const getToken = () => localStorage.getItem('access_token') ?? null + +export const statDustAPI = axios.create({ + baseURL: '', + headers: { + accept: "application/json", + "Content-Type": "application/json", + "Access-Control-Allow-Origin": "*", + // "ACCESS-TOKEN": getToken() ?? '' + }, +}); + +export async function getDusts(university) { + return await statDustAPI.get(`/map/${university}`) +} \ No newline at end of file diff --git a/image/img-dust-black.png b/image/img-dust-black.png new file mode 100644 index 0000000000000000000000000000000000000000..b71ef23f1c3ceac4742c0234b785d5179ca0a2bf GIT binary patch literal 6860 zcmaJ`2~?8n*2b)(<#i}c(-f!DlQ}gRl~WF>XxXmK&sr=N@bP}{-tV)Y{p^SMi}qIHyA*Z- z0040tYYRsJKq&R+Q}j39C-<8TzVKdl23otq003>ciFxKmS4Uu3~p-P3Y39U{f!^&Ho5hB5&=YC$W zOBC=|^fumaW`aybY>~kIquLFfY|mhS%A@`FvgD}Q+1YF;_SrKx8LC;{pTl`K^tbVD ze9;sD(2$V=+~3JCJ^iJI2!Xj`95$xbVkcZljNrGQFHRT7LlCU9A zJ;~^azoIHy5px4&ma*?z`R`L2(?9*_(W90jODhRwV+X|vPK?@VmN&E;xg`%p;~;T2 zR(@MAPX|JEZoc!q+Vz1IKy!0tqqzkj@2bHQPp&H-@(-_8PQoeV)qE(O@CE$t(o$gPcKHUOa!5Vqt^rOm33-GE) z2^{2}E5_C;g^L4y*w_vBTw!g7!#ZS^cNR5xZRAEf8<=foh0ST}B6MXY;P=0@y5W+If76JSLU;2zDet#*)xQ3VWQ z6r(>y5w1I)Y$Hi=4S!@ld`%EX{)=^7u1ONC9p_nhdxZ=C@iYx|K(37*_Y<1B;1Aa# zw-#n?_e1L95TFv{r6|2tL{QL5A4pR?wUZ3#zWKS2GlMvh#8E#IUC{#7h#n@5_-wRZ z3)vU-H&%Z^kz+ap2|By!_v2ur!B-!mwJIjBX=Ms@-~tXt-aJW!s3R4RjpY_~JGc|f zrBfpD$x2=XcDdd3L#Vw6;YWF85%*G7Lxk7ZrO>yv7nP1q^%w};0BD`_b;BG)p90cU zOM}Z6-hd7eHyx5;D{=(QtIrT8erUB7=AlJ%`sMM?SgKoM7IAk&^Y7hLg|;cDs&)8l zCQqdIwgk}dcaLv{qod71H^=mZxJOsSKh%5L5}|>_?%8-) zuwVUW+5I01xb)k`#t+N8Z@uA5T<&=)!6b;14NCDFtQ3Z) z8j@ZRD_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