From 613eb869525f70657cc7cba233f2ff902b21d2ec Mon Sep 17 00:00:00 2001 From: Nahyun Date: Sun, 15 Dec 2024 18:45:22 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EA=B2=8C=EC=8B=9C=EB=AC=BC=20API=20?= =?UTF-8?q?=EC=97=B0=EB=8F=99=20=EB=B0=8F=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EA=B5=90=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/sw.js | 292 ++++++++++-------- ...orkbox-c95f9b89.js => workbox-1bb06f5e.js} | 201 ++++++------ src/app/notice/[noticeId]/NoticeDetail.css.ts | 12 + src/app/notice/[noticeId]/NoticeDetail.tsx | 77 ++--- .../NoticeDetail/NoticeDetailInfo.css.ts | 2 +- 5 files changed, 300 insertions(+), 284 deletions(-) rename public/{workbox-c95f9b89.js => workbox-1bb06f5e.js} (90%) diff --git a/public/sw.js b/public/sw.js index cd5fa6e8..d3146d24 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,169 +1,190 @@ if (!self.define) { let e, - s = {}; - const i = (i, a) => ( - (i = new URL(i + '.js', a).href), - s[i] || - new Promise((s) => { + i = {}; + const a = (a, s) => ( + (a = new URL(a + '.js', s).href), + i[a] || + new Promise((i) => { if ('document' in self) { const e = document.createElement('script'); - (e.src = i), (e.onload = s), document.head.appendChild(e); - } else (e = i), importScripts(i), s(); + (e.src = a), (e.onload = i), document.head.appendChild(e); + } else (e = a), importScripts(a), i(); }).then(() => { - let e = s[i]; - if (!e) throw new Error(`Module ${i} didn’t register its module`); + let e = i[a]; + if (!e) throw new Error(`Module ${a} didn’t register its module`); return e; }) ); - self.define = (a, c) => { + self.define = (s, c) => { const n = e || ('document' in self ? document.currentScript.src : '') || location.href; - if (s[n]) return; + if (i[n]) return; let o = {}; - const r = (e) => i(e, n), + const r = (e) => a(e, n), d = { module: { uri: n }, exports: o, require: r }; - s[n] = Promise.all(a.map((e) => d[e] || r(e))).then((e) => (c(...e), o)); + i[n] = Promise.all(s.map((e) => d[e] || r(e))).then((e) => (c(...e), o)); }; } -define(['./workbox-c95f9b89'], function (e) { +define(['./workbox-1bb06f5e'], function (e) { 'use strict'; importScripts(), self.skipWaiting(), e.clientsClaim(), e.precacheAndRoute( [ - { url: '/_next/app-build-manifest.json', revision: '92f0e34ee25137f65ed3153a75fc302b' }, - { url: '/_next/static/5nxbEGFvdgNpHPk_9r0R5/_buildManifest.js', revision: 'cbc471fb8d0d45b3a46987b48f224da4' }, - { url: '/_next/static/5nxbEGFvdgNpHPk_9r0R5/_ssgManifest.js', revision: 'b6652df95db52feb4daf4eca35380933' }, - { url: '/_next/static/chunks/1431-54fefdfa440e1650.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/2080.94f266ec92cebab6.js', revision: '94f266ec92cebab6' }, - { url: '/_next/static/chunks/2175-637415379c3bb71d.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/2181-cd43ceee7e78b1af.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/2472-e8ae552231acaff3.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/2629-8803fd31fab914e1.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/3302-08e60c8dc7f67d10.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/3709-6b562168990c9a8a.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/3783-1958e75e23022ca8.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/381-d9cbac8abf7a6b19.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/3975359d.20a905d3f696a4b0.js', revision: '20a905d3f696a4b0' }, - { url: '/_next/static/chunks/413-d7087f5c18b26dfb.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/4152-d3060b6c71d84516.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/4224-e47effdf1735da06.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/4403-932ea203a9c9779b.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/4986-98d6619813fd422e.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/5167-13fe582eb5a0a9fd.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/5340-f6439465c2046c76.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/5671-f5d07a88762d055c.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/5948-14aae0fa79a17b4f.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, + { url: '/_next/app-build-manifest.json', revision: 'bed67e5a1aaa4ae62a628b1ddb2c872e' }, + { url: '/_next/static/chunks/128-6d8d0d4c192d8bb9.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/1396-ba51adbbd27fe8c7.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/1509-399e7d5d02c30bd6.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/2175-c7e7bfb64444ef4c.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/2372-59f2cf9698b932fe.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/2472-4f5f43b60e40f652.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/3282-d4a548d37f9c9e0a.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/3709-6b562168990c9a8a.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/3714-6b020588dba84ae2.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/430-ea08a546105535b8.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/4873-6d54b476278b11fa.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/5175-73af23a70729ac23.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/5279-5915dc771073ed05.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/5493-7f19c1d35716c90c.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/5754-9054a2c2f54122a6.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/5835-ffb4081968128b74.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/5891-252148ade5d804d5.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { url: '/_next/static/chunks/5987.b314e7c0e4ca6019.js', revision: 'b314e7c0e4ca6019' }, - { url: '/_next/static/chunks/6503-23cf9c0adbb84cf9.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/7108-f01d454415fdd2d8.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/8326-1c78b9ff47c5f195.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/9061-9b3c5b78db329ee0.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/9378-bbef32f0c86a50ff.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/9583-97bd19fa3975d683.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/9714-7003c6f99537e848.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/975-28fcc50d4b7f1cea.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/(home)/layout-21572c88fc5e7d32.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/(home)/page-9c6c191c35c519bb.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/account/page-ec8d141d93350411.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/account/profile/page-4c2e7aea947c5153.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, + { url: '/_next/static/chunks/5989-d3a4642fcb47fc70.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/602dbae6-9121e90bcfa87c39.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/6503-3266af5df34f1cf5.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/6691-488d40a315080012.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/6703-759f503ae03bf4f3.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/6736-45d31e4e240ea0f6.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/763-af654fe167f8ba93.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/7633-7f137918f702ad5c.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/8692-50b860ee9988ae49.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/9204-03710be0bcf4cba6.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/9214-f186a70fee4e460f.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/9454-6913a65cba455cde.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/975-4683ede1a67839a7.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/9821-f9168597da9fefdc.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/(home)/layout-93c3a86841822c45.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/(home)/page-b4f21ac9cc7acf35.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/account/page-f99357809b065005.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/account/profile/page-2900158922284064.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { - url: '/_next/static/chunks/app/account/withdraw/page-cd5fcffb04647e08.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/account/withdraw/page-aa0c5f2451c758b5.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, + { url: '/_next/static/chunks/app/admin/layout-2b20964562c328e6.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { - url: '/_next/static/chunks/app/auth/redirect/kakao/page-4ec3c9d0afc89af8.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/admin/notice/%5BnoticeId%5D/edit/page-81f01b4a06846411.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, { - url: '/_next/static/chunks/app/collection/%5BfolderId%5D/page-1a7e9840db50e143.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/admin/notice/create/page-054ac8d7f1e975de.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, - { url: '/_next/static/chunks/app/collection/page-0ba3ce7200e81ea7.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/layout-ae15ed5c99a772a6.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, + { url: '/_next/static/chunks/app/admin/notice/page-3856211e6d5ce235.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/admin/topics/page-25079b72906351b3.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { - url: '/_next/static/chunks/app/list/%5BlistId%5D/edit/page-21234a323c67aa3e.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/auth/redirect/kakao/page-215250e854ecb9a8.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, { - url: '/_next/static/chunks/app/list/%5BlistId%5D/history/page-88e8115844344008.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/collection/%5BfolderId%5D/page-57fd854eab2a35d4.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, + { url: '/_next/static/chunks/app/collection/page-4c92a71bdd269a30.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/layout-e11a8232f3b748f1.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { - url: '/_next/static/chunks/app/list/%5BlistId%5D/page-2d51f2d986554965.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/list/%5BlistId%5D/edit/page-683f83eb5c1fc1c9.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, - { url: '/_next/static/chunks/app/list/create/page-790b3e7db301fef1.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/not-found-abe431e57148ecd6.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, { - url: '/_next/static/chunks/app/notices/%5BnoticeId%5D/page-3ef7759ff9ee662f.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/list/%5BlistId%5D/history/page-381c0f0b8500a5da.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, - { url: '/_next/static/chunks/app/notices/layout-ed020ebe735e786a.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/notices/page-64f39d2ac8e32d04.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/notification/page-83c82537096217f6.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/search/page-2c9b55433a6c7b42.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/app/start-listy/page-3c93f748a4e509ab.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, { - url: '/_next/static/chunks/app/user/%5BuserId%5D/(follow)/followers/page-b32cd89df189b9a7.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/list/%5BlistId%5D/page-e9feab1d32dfd98c.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, + { url: '/_next/static/chunks/app/list/create/page-97b31228c3c5dcb2.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/not-found-62b076bcbac5e5f4.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { - url: '/_next/static/chunks/app/user/%5BuserId%5D/(follow)/followings/page-77812bb19701d236.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/notice/%5BnoticeId%5D/page-1acd1d73c0454916.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, + { url: '/_next/static/chunks/app/notice/page-fe65b68317ca551a.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/notification/page-69d31a9ecbb6bb47.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/search/page-a29c077da7991ca7.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/app/start-listy/page-b050c4e341274f0a.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { - url: '/_next/static/chunks/app/user/%5BuserId%5D/collabolist/page-4a9cf9b44af8a476.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/temp-admin-topic/page-4b7e786eb68e10e6.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, + { url: '/_next/static/chunks/app/topics/page-d2c3a984723c0a83.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { - url: '/_next/static/chunks/app/user/%5BuserId%5D/mylist/page-8116a9840872162c.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/user/%5BuserId%5D/(follow)/followers/page-c826980077045925.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, { - url: '/_next/static/chunks/app/withdrawn-account/page-d044bb173a1550a4.js', - revision: '5nxbEGFvdgNpHPk_9r0R5', + url: '/_next/static/chunks/app/user/%5BuserId%5D/(follow)/followings/page-6ed30da6aac5a607.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', }, - { url: '/_next/static/chunks/dc112a36-a26ec11f6dfc39b0.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/eeac573e-379a37b61a843f32.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/fd9d1056-9469e701c612d19b.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/framework-4498e84bb0ba1830.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/main-636390417b266abe.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/main-app-f9d2ea17ff72ddbb.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/pages/_app-8ace8cb53043124a.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/chunks/pages/_error-799b6191c844551c.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, + { + url: '/_next/static/chunks/app/user/%5BuserId%5D/collabolist/page-57b2149a3b19ef89.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', + }, + { + url: '/_next/static/chunks/app/user/%5BuserId%5D/mylist/page-64b3d14336f057c1.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', + }, + { + url: '/_next/static/chunks/app/withdrawn-account/page-2bd9792e00a50a4e.js', + revision: 't-Eaw0uiNY9u4HPFC4i6u', + }, + { url: '/_next/static/chunks/dc112a36-a26ec11f6dfc39b0.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/fd9d1056-c30f371107381b35.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/framework-638abc5ad5ea33cc.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/main-app-f9d2ea17ff72ddbb.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/main-dce9e338fff3a17f.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/pages/_app-8ace8cb53043124a.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/chunks/pages/_error-799b6191c844551c.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, { url: '/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js', revision: '837c0df77fd5009c9e46d446188ecfd0' }, - { url: '/_next/static/chunks/webpack-4f1b308c0840d742.js', revision: '5nxbEGFvdgNpHPk_9r0R5' }, - { url: '/_next/static/css/0ab870a4df7fbc2c.css', revision: '0ab870a4df7fbc2c' }, - { url: '/_next/static/css/1361cf6b2b4cb0af.css', revision: '1361cf6b2b4cb0af' }, - { url: '/_next/static/css/14b2e3b574f5e034.css', revision: '14b2e3b574f5e034' }, - { url: '/_next/static/css/1707a3d99ee453c5.css', revision: '1707a3d99ee453c5' }, - { url: '/_next/static/css/18ca4472b65c760d.css', revision: '18ca4472b65c760d' }, - { url: '/_next/static/css/1b2e447e3c80179c.css', revision: '1b2e447e3c80179c' }, - { url: '/_next/static/css/208b6a993de51eaf.css', revision: '208b6a993de51eaf' }, + { url: '/_next/static/chunks/webpack-00ccd44d2544b391.js', revision: 't-Eaw0uiNY9u4HPFC4i6u' }, + { url: '/_next/static/css/1322053b11d103e5.css', revision: '1322053b11d103e5' }, + { url: '/_next/static/css/19eb659b0061ee49.css', revision: '19eb659b0061ee49' }, + { url: '/_next/static/css/1edfa9150c3c8de1.css', revision: '1edfa9150c3c8de1' }, { url: '/_next/static/css/280b23f213d90d1c.css', revision: '280b23f213d90d1c' }, - { url: '/_next/static/css/29f29fc1d1850b2e.css', revision: '29f29fc1d1850b2e' }, - { url: '/_next/static/css/2c375b1b45994eb5.css', revision: '2c375b1b45994eb5' }, - { url: '/_next/static/css/367d5e26cb3af35a.css', revision: '367d5e26cb3af35a' }, - { url: '/_next/static/css/376dc32deef000df.css', revision: '376dc32deef000df' }, + { url: '/_next/static/css/33a20c9f5a8072ac.css', revision: '33a20c9f5a8072ac' }, { url: '/_next/static/css/3e2219ae9d565d75.css', revision: '3e2219ae9d565d75' }, - { url: '/_next/static/css/4271835ee8545eed.css', revision: '4271835ee8545eed' }, - { url: '/_next/static/css/42f1b14d07aa835c.css', revision: '42f1b14d07aa835c' }, - { url: '/_next/static/css/719178bc16e534ac.css', revision: '719178bc16e534ac' }, - { url: '/_next/static/css/87114319cedc4e94.css', revision: '87114319cedc4e94' }, - { url: '/_next/static/css/892c4a1f42e9be13.css', revision: '892c4a1f42e9be13' }, - { url: '/_next/static/css/b0f31944929b1918.css', revision: 'b0f31944929b1918' }, - { url: '/_next/static/css/c77302c90dd928d6.css', revision: 'c77302c90dd928d6' }, - { url: '/_next/static/css/d05e712bf441c548.css', revision: 'd05e712bf441c548' }, - { url: '/_next/static/css/ec48ca834057e269.css', revision: 'ec48ca834057e269' }, - { url: '/_next/static/css/f13e72b2058a6547.css', revision: 'f13e72b2058a6547' }, - { url: '/_next/static/css/f53e931a7f80c78c.css', revision: 'f53e931a7f80c78c' }, - { url: '/_next/static/css/f5721bb0afa35a7e.css', revision: 'f5721bb0afa35a7e' }, - { url: '/_next/static/css/fa202f80606cccbf.css', revision: 'fa202f80606cccbf' }, + { url: '/_next/static/css/45bcec6df81f13c6.css', revision: '45bcec6df81f13c6' }, + { url: '/_next/static/css/576c710a118c2b2b.css', revision: '576c710a118c2b2b' }, + { url: '/_next/static/css/5b3954b1d60eb386.css', revision: '5b3954b1d60eb386' }, + { url: '/_next/static/css/66588800112059a5.css', revision: '66588800112059a5' }, + { url: '/_next/static/css/71544f54ae9db199.css', revision: '71544f54ae9db199' }, + { url: '/_next/static/css/8626db9fdfe457bd.css', revision: '8626db9fdfe457bd' }, + { url: '/_next/static/css/89866a4e5c4b7ef4.css', revision: '89866a4e5c4b7ef4' }, + { url: '/_next/static/css/8a10b041d83c9aff.css', revision: '8a10b041d83c9aff' }, + { url: '/_next/static/css/8bf26196b2bc6068.css', revision: '8bf26196b2bc6068' }, + { url: '/_next/static/css/a3787e7e7d1ae596.css', revision: 'a3787e7e7d1ae596' }, + { url: '/_next/static/css/a3850170ab563351.css', revision: 'a3850170ab563351' }, + { url: '/_next/static/css/b4a617e6e39f00ab.css', revision: 'b4a617e6e39f00ab' }, + { url: '/_next/static/css/b8e2da00dd9b47fd.css', revision: 'b8e2da00dd9b47fd' }, + { url: '/_next/static/css/c1a2c50d9255b848.css', revision: 'c1a2c50d9255b848' }, + { url: '/_next/static/css/c58971338fe67b4b.css', revision: 'c58971338fe67b4b' }, + { url: '/_next/static/css/c98b948e21188e50.css', revision: 'c98b948e21188e50' }, + { url: '/_next/static/css/d52e0b216ab8465b.css', revision: 'd52e0b216ab8465b' }, + { url: '/_next/static/css/d691ffaf05691eda.css', revision: 'd691ffaf05691eda' }, + { url: '/_next/static/css/daaf5bce007dc267.css', revision: 'daaf5bce007dc267' }, + { url: '/_next/static/css/df1bc2476db4319a.css', revision: 'df1bc2476db4319a' }, + { url: '/_next/static/css/e2067e7f37e21da1.css', revision: 'e2067e7f37e21da1' }, + { url: '/_next/static/css/f2d71a6407b0082d.css', revision: 'f2d71a6407b0082d' }, + { url: '/_next/static/css/f2e4f231281dbbec.css', revision: 'f2e4f231281dbbec' }, + { url: '/_next/static/css/f4789b61b72a3aa6.css', revision: 'f4789b61b72a3aa6' }, { url: '/_next/static/media/fallback_profileImage.cb99c69e.webp', revision: 'da0ee9aad58808229d9bd8d6c7621e6d', }, + { url: '/_next/static/t-Eaw0uiNY9u4HPFC4i6u/_buildManifest.js', revision: 'cbc471fb8d0d45b3a46987b48f224da4' }, + { url: '/_next/static/t-Eaw0uiNY9u4HPFC4i6u/_ssgManifest.js', revision: 'b6652df95db52feb4daf4eca35380933' }, { url: '/fonts/Pretendard-Black.woff2', revision: '9c448b4c6a74fa9d0f3c5f587dddd61d' }, { url: '/fonts/Pretendard-Bold.woff2', revision: 'ada305dc6b509a75b5e214975053bcb3' }, { url: '/fonts/Pretendard-ExtraBold.woff2', revision: '6d788c9ff2c0479213ff4a11b547592c' }, @@ -173,8 +194,9 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/fonts/Pretendard-Regular.woff2', revision: '8e19dfa697923356ce5710c7ca2b2a65' }, { url: '/fonts/Pretendard-SemiBold.woff2', revision: '6101e99fb33bfa6ab7f52390565a71e5' }, { url: '/fonts/Pretendard-Thin.woff2', revision: '377e37748604e1df779361b4eb5c2e95' }, - { url: '/icons/add.svg', revision: '4425d07c154460aafca881eb352411de' }, + { url: '/icons/add.svg', revision: '06c00c5fcfe55c219f0a7529a2767c6b' }, { url: '/icons/airplane_send.svg', revision: 'ad9e1b4d613acab284035477afa3975a' }, + { url: '/icons/arrow_left.svg', revision: '9eb4d9e679ad550028350f1913032734' }, { url: '/icons/arrow_up.svg', revision: 'e2fe9aaa53bddc8550ce26cbe5070a42' }, { url: '/icons/attach_image.svg', revision: 'be7110b450056a070553f75d50b46679' }, { url: '/icons/avatar.svg', revision: 'c38e0eff2d48d837815312c02c5dc4dc' }, @@ -191,7 +213,8 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/icons/category_plant.svg', revision: 'b29d14c2d8c3137e4b81340aed28faac' }, { url: '/icons/check_blue.svg', revision: 'ecf5f4558d2b997ee800e0d8be6cd1f3' }, { url: '/icons/check_red.svg', revision: '4685830ec32b07af33dec614f974f5ea' }, - { url: '/icons/checked_box.svg', revision: 'e1c164756efee929c2dc79a69ca28bd2' }, + { url: '/icons/check_white.svg', revision: '407be2654518196512d959a3c3c40ce0' }, + { url: '/icons/checked_box.svg', revision: '6b12f5d0af70bb24e2e223141dc0d0ff' }, { url: '/icons/chevron_down.svg', revision: '768e4eda9f11abec7b3c2d3b7e7bf7f1' }, { url: '/icons/chevron_down_double.svg', revision: '39db88f2f4d7ee5c5ca381236a678e1b' }, { url: '/icons/chevron_down_sm.svg', revision: 'c38f7ad4270d1b2b2bf58aa46a899a2b' }, @@ -200,9 +223,10 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/icons/clear.svg', revision: '0435c8c9dca7ba73151b9e6c65a16218' }, { url: '/icons/clear_x_black.svg', revision: 'afdc0d53a562264d83dadd53723c63f7' }, { url: '/icons/clear_x_gray.svg', revision: '9b0ad47d68a785c05d33e14e470b402e' }, - { url: '/icons/close_button.svg', revision: '1fab35cbd9be65553a64bbf36bcd9d6e' }, + { url: '/icons/close_button.svg', revision: 'cffdf844bd92086ce1f140b016a5be76' }, { url: '/icons/close_x_gray.svg', revision: '0bcc117b0bd5907003ce331abecc7e76' }, { url: '/icons/collaborators_plus.svg', revision: 'c117159fa7c4c764ac0ab389316792f5' }, + { url: '/icons/collapse.svg', revision: 'dc9f8ee1e1d8955fcc97faddee537af5' }, { url: '/icons/collect.svg', revision: '4f247a85bedadd00fc3f469116213bb3' }, { url: '/icons/collected.svg', revision: '98a75e6a6ea677a3dd6c9729ccf69fde' }, { url: '/icons/collection.svg', revision: '69158f2eb6537ca8efb74e8eae764e98' }, @@ -210,10 +234,12 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/icons/crown_new.svg', revision: 'a12dc0a19271aa84604031f5355ea5c1' }, { url: '/icons/default_profile.svg', revision: 'd87c8bacd2b227486709030e5ebf01e0' }, { url: '/icons/default_profile_temporary.svg', revision: '375ece560a523e079a70856166f33caf' }, - { url: '/icons/dnd.svg', revision: '9ae62327214195bec89e980cb36ea4d0' }, + { url: '/icons/dnd.svg', revision: '84a463a58cbd09e4678c00ab8f713158' }, + { url: '/icons/down_chevron.svg', revision: '0dfff6c00fa465d1473fd62eea14329e' }, { url: '/icons/edit_pen.svg', revision: '2956f49354f81288ac251afa207fbabb' }, { url: '/icons/error_x.svg', revision: 'c97ed9dbb02009ebfb0e6c9954778e39' }, { url: '/icons/etc.svg', revision: '5e44ef8361c08d2cea1188c785d4413d' }, + { url: '/icons/expand.svg', revision: '06931ecf06553b2d22f533db64d1cf1c' }, { url: '/icons/explore.svg', revision: '8d3b400ab31f2e571649c3ad347d2177' }, { url: '/icons/eye.svg', revision: '5144d71ecbdb9e6fba87ea8d441f75be' }, { url: '/icons/eye_emoji.svg', revision: '14b342ab5a5e76e73d0b5476fc6c9b0a' }, @@ -233,10 +259,11 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/icons/help_circle.svg', revision: 'bb43751e5a610362e746d3da0ff36a58' }, { url: '/icons/history.svg', revision: '391ee903bb1d3e416cafe69b1cc5f1d0' }, { url: '/icons/horizontal_line.svg', revision: '14dd20f3381f42e6b4d15a13788f00eb' }, + { url: '/icons/image.svg', revision: '356deb281032a0c24096b535fa25d0a9' }, { url: '/icons/kakao_login.svg', revision: '74efc38a2cbaed5f2e1c5920d804469a' }, { url: '/icons/kakao_login_narrow.svg', revision: '2c451193f6512b5c54aa47ec48779fce' }, { url: '/icons/large_logo.svg', revision: 'd2eb0e07b8c3ea82139b013f80ba621d' }, - { url: '/icons/link.svg', revision: '3296c0ece6ad96462b1b353af53b8c7e' }, + { url: '/icons/link.svg', revision: 'ab557932e557f3c2a49a3b2b54087483' }, { url: '/icons/linkIcon_3d.svg', revision: '23fea7f7834b0dc7b262490f5d019f06' }, { url: '/icons/lock.svg', revision: '3faff0690ba34aab22d1d968e4fdc05c' }, { url: '/icons/lock_alt.svg', revision: '302c1e8fe403d12f71ed5d1db92de222' }, @@ -248,13 +275,21 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/icons/my_feed.svg', revision: 'b91a8d4db4f6ae5df2c022f85f742a4d' }, { url: '/icons/naver_login.svg', revision: 'cc2f0fe313a98312f7b8b2131bc63d5c' }, { url: '/icons/new/add.svg', revision: '9ebfc66cdc81453411846cdcb1b8d2b5' }, + { url: '/icons/new/arrow_up.svg', revision: '5442e1e71a0353851a7d92fff1cbb280' }, { url: '/icons/new/bookmark.svg', revision: '73cf41169171f006e2dc8403d6a133e2' }, { url: '/icons/new/bottom_nav_add.svg', revision: '85bf9d0dcd1d4900b362f26a76f01d40' }, { url: '/icons/new/bottom_nav_feed.svg', revision: 'c16209493c6294a19a97d3cd7111d45a' }, { url: '/icons/new/bottom_nav_home.svg', revision: '45318e9648d3a6fdd26ae848f077bf58' }, + { url: '/icons/new/clock.svg', revision: 'cf977f20eb952714c0a933e02e0a2b13' }, + { url: '/icons/new/delete.svg', revision: 'af3beb4196916033536811254f37bc74' }, + { url: '/icons/new/eye.svg', revision: 'daaac4718e7ce76915de1f68ce0bab9e' }, + { url: '/icons/new/eye_slash.svg', revision: 'b086aaf4ebc73d0c0be750a54acc0741' }, + { url: '/icons/new/kebab.svg', revision: 'a05abf3cdd5c536e29518c17330edaf4' }, { url: '/icons/new/lock.svg', revision: 'effc519f08f38ca2739c1a4cd5e57acc' }, + { url: '/icons/new/share.svg', revision: 'efec2ebc9a6473304334f9893dadd339' }, { url: '/icons/notification_on.svg', revision: '5457acf00dbe76a2b7586d37a57c7025' }, { url: '/icons/plus.svg', revision: '758d3402130afe8e54ba6600e3eb5d34' }, + { url: '/icons/plus_gray.svg', revision: '89ddcaf5ea59756bb094419493001ee1' }, { url: '/icons/popup_menu.svg', revision: '5f58e7522878e7bb1f2d887ce78602f3' }, { url: '/icons/pwa/android/android-pwa-144.png', revision: 'ec347e82a6786d5fa5b3f17917b454b2' }, { url: '/icons/pwa/android/android-pwa-192.png', revision: '15c091efd31b5edf1f87b86211787859' }, @@ -470,7 +505,7 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/icons/telescope.svg', revision: 'bafdd07a2c6db3eaa83828f74c36dc3e' }, { url: '/icons/trash_bin.svg', revision: '6968ca26f4dbc18790469bcfa7ece2bd' }, { url: '/icons/trash_can.svg', revision: 'e0be066d8b53158917e13e5f96100374' }, - { url: '/icons/unchecked_box.svg', revision: 'd5fad617f49e4135b99eaa45f063201c' }, + { url: '/icons/unchecked_box.svg', revision: '8b8e3125e96a418b6e0241fc4201fc75' }, { url: '/icons/user.svg', revision: '7e8aec9ea767612406789f54ae33613c' }, { url: '/icons/ver3/Avatar.svg', revision: '61acea80e56df877b719c77d4aabc1e7' }, { url: '/icons/ver3/add.svg', revision: '85bf9d0dcd1d4900b362f26a76f01d40' }, @@ -504,9 +539,10 @@ define(['./workbox-c95f9b89'], function (e) { { url: '/images/list_section3.png', revision: 'd13ba714a10a17b8786bb4837a415bf1' }, { url: '/images/mock_profile.png', revision: '8eacf17d25139b7268c91c49f2d78a8b' }, { url: '/images/new_list.png', revision: 'ad4be3e6aac226d4f5ec74b9174ad267' }, - { url: '/images/no_data_image.svg', revision: '1b5772a07e6643affa128167747211c2' }, + { url: '/images/no_data_image.svg', revision: '1cd8e34288abc73febd031628510bdb4' }, { url: '/images/not-found.svg', revision: 'e18e608a0064c1ac11c523fe348f22dc' }, { url: '/images/ocean.png', revision: 'b792611ed086669ea1834c3d02b26b38' }, + { url: '/images/plus_gray.svg', revision: '89ddcaf5ea59756bb094419493001ee1' }, { url: '/images/section3_hero.png', revision: 'f52bb6ff4b2757581be16b8d5080c4ce' }, { url: '/images/section3_hero.svg', revision: '128bf82d4c461963ee97b53695a6c6de' }, { url: '/images/section4_hero.svg', revision: 'e021539b0df0bf4b1ade605725266b9a' }, @@ -540,10 +576,10 @@ define(['./workbox-c95f9b89'], function (e) { cacheName: 'start-url', plugins: [ { - cacheWillUpdate: async ({ request: e, response: s, event: i, state: a }) => - s && 'opaqueredirect' === s.type - ? new Response(s.body, { status: 200, statusText: 'OK', headers: s.headers }) - : s, + cacheWillUpdate: async ({ request: e, response: i, event: a, state: s }) => + i && 'opaqueredirect' === i.type + ? new Response(i.body, { status: 200, statusText: 'OK', headers: i.headers }) + : i, }, ], }), @@ -640,8 +676,8 @@ define(['./workbox-c95f9b89'], function (e) { e.registerRoute( ({ url: e }) => { if (!(self.origin === e.origin)) return !1; - const s = e.pathname; - return !s.startsWith('/api/auth/') && !!s.startsWith('/api/'); + const i = e.pathname; + return !i.startsWith('/api/auth/') && !!i.startsWith('/api/'); }, new e.NetworkFirst({ cacheName: 'apis', diff --git a/public/workbox-c95f9b89.js b/public/workbox-1bb06f5e.js similarity index 90% rename from public/workbox-c95f9b89.js rename to public/workbox-1bb06f5e.js index c3ff036d..9b9e8b57 100644 --- a/public/workbox-c95f9b89.js +++ b/public/workbox-1bb06f5e.js @@ -179,7 +179,7 @@ define(['exports'], function (t) { function m(t) { return 'string' == typeof t ? new Request(t) : t; } - class R { + class v { constructor(t, e) { (this.h = {}), Object.assign(this, e), @@ -188,8 +188,8 @@ define(['exports'], function (t) { (this.l = new y()), (this.p = []), (this.m = [...t.plugins]), - (this.R = new Map()); - for (const t of this.m) this.R.set(t, {}); + (this.v = new Map()); + for (const t of this.m) this.v.set(t, {}); this.event.waitUntil(this.l.promise); } async fetch(t) { @@ -250,7 +250,7 @@ define(['exports'], function (t) { url: ((a = i.url), new URL(String(a), location.href).href.replace(new RegExp(`^${location.origin}`), '')), }); var a; - const o = await this.v(e); + const o = await this.R(e); if (!o) return !1; const { cacheName: c, matchOptions: h } = this.u, u = await self.caches.open(c), @@ -300,7 +300,7 @@ define(['exports'], function (t) { *iterateCallbacks(t) { for (const e of this.u.plugins) if ('function' == typeof e[t]) { - const s = this.R.get(e), + const s = this.v.get(e), n = (n) => { const r = Object.assign(Object.assign({}, n), { state: s }); return e[t](r); @@ -318,7 +318,7 @@ define(['exports'], function (t) { destroy() { this.l.resolve(null); } - async v(t) { + async R(t) { let e = t, s = !1; for (const t of this.iterateCallbacks('cacheWillUpdate')) @@ -326,7 +326,7 @@ define(['exports'], function (t) { return s || (e && 200 !== e.status && (e = void 0)), e; } } - class v { + class R { constructor(t = {}) { (this.cacheName = d(t.cacheName)), (this.plugins = t.plugins || []), @@ -342,7 +342,7 @@ define(['exports'], function (t) { const e = t.event, s = 'string' == typeof t.request ? new Request(t.request) : t.request, n = 'params' in t ? t.params : void 0, - r = new R(this, { event: e, request: s, params: n }), + r = new v(this, { event: e, request: s, params: n }), i = this.q(r, s, e); return [i, this.D(i, r, s, e)]; } @@ -384,54 +384,53 @@ define(['exports'], function (t) { : function (t) { for (var e = 1; e < arguments.length; e++) { var s = arguments[e]; - for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (t[n] = s[n]); + for (var n in s) ({}).hasOwnProperty.call(s, n) && (t[n] = s[n]); } return t; }), - q.apply(this, arguments) + q.apply(null, arguments) ); } - const D = (t, e) => e.some((e) => t instanceof e); - let U, x; - const L = new WeakMap(), + let D, U; + const x = new WeakMap(), + L = new WeakMap(), I = new WeakMap(), C = new WeakMap(), - E = new WeakMap(), - N = new WeakMap(); - let O = { + E = new WeakMap(); + let N = { get(t, e, s) { if (t instanceof IDBTransaction) { - if ('done' === e) return I.get(t); - if ('objectStoreNames' === e) return t.objectStoreNames || C.get(t); + if ('done' === e) return L.get(t); + if ('objectStoreNames' === e) return t.objectStoreNames || I.get(t); if ('store' === e) return s.objectStoreNames[1] ? void 0 : s.objectStore(s.objectStoreNames[0]); } - return B(t[e]); + return k(t[e]); }, set: (t, e, s) => ((t[e] = s), !0), has: (t, e) => (t instanceof IDBTransaction && ('done' === e || 'store' === e)) || e in t, }; - function T(t) { + function O(t) { return t !== IDBDatabase.prototype.transaction || 'objectStoreNames' in IDBTransaction.prototype ? ( - x || (x = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey]) + U || (U = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey]) ).includes(t) ? function (...e) { - return t.apply(P(this), e), B(L.get(this)); + return t.apply(B(this), e), k(x.get(this)); } : function (...e) { - return B(t.apply(P(this), e)); + return k(t.apply(B(this), e)); } : function (e, ...s) { - const n = t.call(P(this), e, ...s); - return C.set(n, e.sort ? e.sort() : [e]), B(n); + const n = t.call(B(this), e, ...s); + return I.set(n, e.sort ? e.sort() : [e]), k(n); }; } - function k(t) { + function T(t) { return 'function' == typeof t - ? T(t) + ? O(t) : (t instanceof IDBTransaction && (function (t) { - if (I.has(t)) return; + if (L.has(t)) return; const e = new Promise((e, s) => { const n = () => { t.removeEventListener('complete', r), @@ -446,11 +445,15 @@ define(['exports'], function (t) { }; t.addEventListener('complete', r), t.addEventListener('error', i), t.addEventListener('abort', i); }); - I.set(t, e); + L.set(t, e); })(t), - D(t, U || (U = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction])) ? new Proxy(t, O) : t); + (e = t), + (D || (D = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction])).some((t) => e instanceof t) + ? new Proxy(t, N) + : t); + var e; } - function B(t) { + function k(t) { if (t instanceof IDBRequest) return (function (t) { const e = new Promise((e, s) => { @@ -458,7 +461,7 @@ define(['exports'], function (t) { t.removeEventListener('success', r), t.removeEventListener('error', i); }, r = () => { - e(B(t.result)), n(); + e(k(t.result)), n(); }, i = () => { s(t.error), n(); @@ -468,50 +471,50 @@ define(['exports'], function (t) { return ( e .then((e) => { - e instanceof IDBCursor && L.set(e, t); + e instanceof IDBCursor && x.set(e, t); }) .catch(() => {}), - N.set(e, t), + E.set(e, t), e ); })(t); - if (E.has(t)) return E.get(t); - const e = k(t); - return e !== t && (E.set(t, e), N.set(e, t)), e; + if (C.has(t)) return C.get(t); + const e = T(t); + return e !== t && (C.set(t, e), E.set(e, t)), e; } - const P = (t) => N.get(t); - const M = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'], - W = ['put', 'add', 'delete', 'clear'], - j = new Map(); - function S(t, e) { + const B = (t) => E.get(t); + const P = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'], + M = ['put', 'add', 'delete', 'clear'], + W = new Map(); + function j(t, e) { if (!(t instanceof IDBDatabase) || e in t || 'string' != typeof e) return; - if (j.get(e)) return j.get(e); + if (W.get(e)) return W.get(e); const s = e.replace(/FromIndex$/, ''), n = e !== s, - r = W.includes(s); - if (!(s in (n ? IDBIndex : IDBObjectStore).prototype) || (!r && !M.includes(s))) return; + r = M.includes(s); + if (!(s in (n ? IDBIndex : IDBObjectStore).prototype) || (!r && !P.includes(s))) return; const i = async function (t, ...e) { const i = this.transaction(t, r ? 'readwrite' : 'readonly'); let a = i.store; return n && (a = a.index(e.shift())), (await Promise.all([a[s](...e), r && i.done]))[0]; }; - return j.set(e, i), i; + return W.set(e, i), i; } - O = ((t) => q({}, t, { get: (e, s, n) => S(e, s) || t.get(e, s, n), has: (e, s) => !!S(e, s) || t.has(e, s) }))(O); + N = ((t) => q({}, t, { get: (e, s, n) => j(e, s) || t.get(e, s, n), has: (e, s) => !!j(e, s) || t.has(e, s) }))(N); try { self['workbox:expiration:6.6.0'] && _(); } catch (t) {} - const K = 'cache-entries', - A = (t) => { + const S = 'cache-entries', + K = (t) => { const e = new URL(t, location.href); return (e.hash = ''), e.href; }; - class F { + class A { constructor(t) { (this._ = null), (this.L = t); } I(t) { - const e = t.createObjectStore(K, { keyPath: 'id' }); + const e = t.createObjectStore(S, { keyPath: 'id' }); e.createIndex('cacheName', 'cacheName', { unique: !1 }), e.createIndex('timestamp', 'timestamp', { unique: !1 }); } C(t) { @@ -519,22 +522,22 @@ define(['exports'], function (t) { this.L && (function (t, { blocked: e } = {}) { const s = indexedDB.deleteDatabase(t); - e && s.addEventListener('blocked', (t) => e(t.oldVersion, t)), B(s).then(() => {}); + e && s.addEventListener('blocked', (t) => e(t.oldVersion, t)), k(s).then(() => {}); })(this.L); } async setTimestamp(t, e) { - const s = { url: (t = A(t)), timestamp: e, cacheName: this.L, id: this.N(t) }, - n = (await this.getDb()).transaction(K, 'readwrite', { durability: 'relaxed' }); + const s = { url: (t = K(t)), timestamp: e, cacheName: this.L, id: this.N(t) }, + n = (await this.getDb()).transaction(S, 'readwrite', { durability: 'relaxed' }); await n.store.put(s), await n.done; } async getTimestamp(t) { const e = await this.getDb(), - s = await e.get(K, this.N(t)); + s = await e.get(S, this.N(t)); return null == s ? void 0 : s.timestamp; } async expireEntries(t, e) { const s = await this.getDb(); - let n = await s.transaction(K).store.index('timestamp').openCursor(null, 'prev'); + let n = await s.transaction(S).store.index('timestamp').openCursor(null, 'prev'); const r = []; let i = 0; for (; n; ) { @@ -543,22 +546,22 @@ define(['exports'], function (t) { (n = await n.continue()); } const a = []; - for (const t of r) await s.delete(K, t.id), a.push(t.url); + for (const t of r) await s.delete(S, t.id), a.push(t.url); return a; } N(t) { - return this.L + '|' + A(t); + return this.L + '|' + K(t); } async getDb() { return ( this._ || (this._ = await (function (t, e, { blocked: s, upgrade: n, blocking: r, terminated: i } = {}) { const a = indexedDB.open(t, e), - o = B(a); + o = k(a); return ( n && a.addEventListener('upgradeneeded', (t) => { - n(B(a.result), t.oldVersion, t.newVersion, B(a.transaction), t); + n(k(a.result), t.oldVersion, t.newVersion, k(a.transaction), t); }), s && a.addEventListener('blocked', (t) => s(t.oldVersion, t.newVersion, t)), o @@ -574,7 +577,7 @@ define(['exports'], function (t) { ); } } - class H { + class F { constructor(t, e = {}) { (this.O = !1), (this.T = !1), @@ -582,7 +585,7 @@ define(['exports'], function (t) { (this.B = e.maxAgeSeconds), (this.P = e.matchOptions), (this.L = t), - (this.M = new F(t)); + (this.M = new A(t)); } async expireEntries() { if (this.O) return void (this.T = !0); @@ -611,7 +614,7 @@ define(['exports'], function (t) { try { self['workbox:range-requests:6.6.0'] && _(); } catch (t) {} - async function $(t, e) { + async function H(t, e) { try { if (206 === e.status) return e; const n = t.headers.get('range'); @@ -650,14 +653,14 @@ define(['exports'], function (t) { return new Response('', { status: 416, statusText: 'Range Not Satisfiable' }); } } - function z(t, e) { + function $(t, e) { const s = e(); return t.waitUntil(s), s; } try { self['workbox:precaching:6.6.0'] && _(); } catch (t) {} - function G(t) { + function z(t) { if (!t) throw new s('add-to-cache-list-unexpected-type', { entry: t }); if ('string' == typeof t) { const e = new URL(t, location.href); @@ -673,7 +676,7 @@ define(['exports'], function (t) { i = new URL(n, location.href); return r.searchParams.set('__WB_REVISION__', e), { cacheKey: r.href, url: i.href }; } - class V { + class G { constructor() { (this.updatedURLs = []), (this.notUpdatedURLs = []), @@ -689,7 +692,7 @@ define(['exports'], function (t) { }); } } - class J { + class V { constructor({ precacheController: t }) { (this.cacheKeyWillBeUsed = async ({ request: t, params: e }) => { const s = (null == e ? void 0 : e.cacheKey) || this.W.getCacheKeyForURL(t.url); @@ -698,8 +701,8 @@ define(['exports'], function (t) { (this.W = t); } } - let Q, X; - async function Y(t, e) { + let J, Q; + async function X(t, e) { let n = null; if (t.url) { n = new URL(t.url).origin; @@ -709,28 +712,28 @@ define(['exports'], function (t) { i = { headers: new Headers(r.headers), status: r.status, statusText: r.statusText }, a = e ? e(i) : i, o = (function () { - if (void 0 === Q) { + if (void 0 === J) { const t = new Response(''); if ('body' in t) try { - new Response(t.body), (Q = !0); + new Response(t.body), (J = !0); } catch (t) { - Q = !1; + J = !1; } - Q = !1; + J = !1; } - return Q; + return J; })() ? r.body : await r.blob(); return new Response(o, a); } - class Z extends v { + class Y extends R { constructor(t = {}) { (t.cacheName = w(t.cacheName)), super(t), (this.j = !1 !== t.fallbackToNetwork), - this.plugins.push(Z.copyRedirectedCacheableResponsesPlugin); + this.plugins.push(Y.copyRedirectedCacheableResponsesPlugin); } async U(t, e) { const s = await e.cacheMatch(t); @@ -759,27 +762,27 @@ define(['exports'], function (t) { let t = null, e = 0; for (const [s, n] of this.plugins.entries()) - n !== Z.copyRedirectedCacheableResponsesPlugin && - (n === Z.defaultPrecacheCacheabilityPlugin && (t = s), n.cacheWillUpdate && e++); + n !== Y.copyRedirectedCacheableResponsesPlugin && + (n === Y.defaultPrecacheCacheabilityPlugin && (t = s), n.cacheWillUpdate && e++); 0 === e - ? this.plugins.push(Z.defaultPrecacheCacheabilityPlugin) + ? this.plugins.push(Y.defaultPrecacheCacheabilityPlugin) : e > 1 && null !== t && this.plugins.splice(t, 1); } } - (Z.defaultPrecacheCacheabilityPlugin = { + (Y.defaultPrecacheCacheabilityPlugin = { cacheWillUpdate: async ({ response: t }) => (!t || t.status >= 400 ? null : t), }), - (Z.copyRedirectedCacheableResponsesPlugin = { - cacheWillUpdate: async ({ response: t }) => (t.redirected ? await Y(t) : t), + (Y.copyRedirectedCacheableResponsesPlugin = { + cacheWillUpdate: async ({ response: t }) => (t.redirected ? await X(t) : t), }); - class tt { + class Z { constructor({ cacheName: t, plugins: e = [], fallbackToNetwork: s = !0 } = {}) { (this.F = new Map()), (this.H = new Map()), (this.$ = new Map()), - (this.u = new Z({ + (this.u = new Y({ cacheName: w(t), - plugins: [...e, new J({ precacheController: this })], + plugins: [...e, new V({ precacheController: this })], fallbackToNetwork: s, })), (this.install = this.install.bind(this)), @@ -799,7 +802,7 @@ define(['exports'], function (t) { const e = []; for (const n of t) { 'string' == typeof n ? e.push(n) : n && void 0 === n.revision && e.push(n.url); - const { cacheKey: t, url: r } = G(n), + const { cacheKey: t, url: r } = z(n), i = 'string' != typeof n && n.revision ? 'reload' : 'default'; if (this.F.has(r) && this.F.get(r) !== t) throw new s('add-to-cache-list-conflicting-entries', { firstEntry: this.F.get(r), secondEntry: t }); @@ -815,8 +818,8 @@ define(['exports'], function (t) { } } install(t) { - return z(t, async () => { - const e = new V(); + return $(t, async () => { + const e = new G(); this.strategy.plugins.push(e); for (const [e, s] of this.F) { const n = this.$.get(s), @@ -829,7 +832,7 @@ define(['exports'], function (t) { }); } activate(t) { - return z(t, async () => { + return $(t, async () => { const t = await self.caches.open(this.strategy.cacheName), e = await t.keys(), s = new Set(this.F.values()), @@ -866,8 +869,8 @@ define(['exports'], function (t) { ); } } - const et = () => (X || (X = new tt()), X); - class st extends r { + const tt = () => (Q || (Q = new Z()), Q); + class et extends r { constructor(t, e) { super(({ request: s }) => { const n = t.getURLsToCacheKeys(); @@ -907,7 +910,7 @@ define(['exports'], function (t) { }, t.strategy); } } - (t.CacheFirst = class extends v { + (t.CacheFirst = class extends R { async U(t, e) { let n, r = await e.cacheMatch(t); @@ -950,7 +953,7 @@ define(['exports'], function (t) { J(t) { if (t === d()) throw new s('expire-custom-caches-only'); let e = this.Y.get(t); - return e || ((e = new H(t, this.X)), this.Y.set(t, e)), e; + return e || ((e = new F(t, this.X)), this.Y.set(t, e)), e; } V(t) { if (!this.B) return !0; @@ -969,7 +972,7 @@ define(['exports'], function (t) { this.Y = new Map(); } }), - (t.NetworkFirst = class extends v { + (t.NetworkFirst = class extends R { constructor(t = {}) { super(t), this.plugins.some((t) => 'cacheWillUpdate' in t) || this.plugins.unshift(u), @@ -1013,10 +1016,10 @@ define(['exports'], function (t) { (t.RangeRequestsPlugin = class { constructor() { this.cachedResponseWillBeUsed = async ({ request: t, cachedResponse: e }) => - e && t.headers.has('range') ? await $(t, e) : e; + e && t.headers.has('range') ? await H(t, e) : e; } }), - (t.StaleWhileRevalidate = class extends v { + (t.StaleWhileRevalidate = class extends R { constructor(t = {}) { super(t), this.plugins.some((t) => 'cacheWillUpdate' in t) || this.plugins.unshift(u); } @@ -1054,11 +1057,11 @@ define(['exports'], function (t) { }), (t.precacheAndRoute = function (t, e) { !(function (t) { - et().precache(t); + tt().precache(t); })(t), (function (t) { - const e = et(); - h(new st(e, t)); + const e = tt(); + h(new et(e, t)); })(e); }), (t.registerRoute = h); diff --git a/src/app/notice/[noticeId]/NoticeDetail.css.ts b/src/app/notice/[noticeId]/NoticeDetail.css.ts index 46b1d0fc..a29a4794 100644 --- a/src/app/notice/[noticeId]/NoticeDetail.css.ts +++ b/src/app/notice/[noticeId]/NoticeDetail.css.ts @@ -19,6 +19,18 @@ export const category = style({ borderRadius: '16px', }); +export const header = style({ + padding: '10px 16px 0', + + backgroundColor: vars.color.blue, +}); + +export const back = style({ + fontSize: '1.4rem', + color: vars.color.lightgray, + cursor: 'pointer', +}); + export const title = style({ marginTop: '14px', marginBottom: '11px', diff --git a/src/app/notice/[noticeId]/NoticeDetail.tsx b/src/app/notice/[noticeId]/NoticeDetail.tsx index 6976914f..b7c6c3fe 100644 --- a/src/app/notice/[noticeId]/NoticeDetail.tsx +++ b/src/app/notice/[noticeId]/NoticeDetail.tsx @@ -1,12 +1,11 @@ 'use client'; -import Image from 'next/image'; import Link from 'next/link'; import { useQuery } from '@tanstack/react-query'; import { usePathname } from 'next/navigation'; +import { useRouter } from 'next/navigation'; import getNoticeDetail from '@/app/_api/notice/getNoticeDetail'; -import { NoticeContentType } from '@/lib/types/noticeType'; import { QUERY_KEYS } from '@/lib/constants/queryKeys'; import { NoticeDetailType } from '@/lib/types/noticeType'; @@ -17,6 +16,7 @@ function NoticeDetailComponent() { const pathname = usePathname(); const noticeId = pathname?.split('/').pop(); const noticeIdNumber = noticeId ? Number(noticeId) : null; + const router = useRouter(); const { data: notice, @@ -28,46 +28,36 @@ function NoticeDetailComponent() { enabled: noticeIdNumber !== null, // noticeIdNumber가 유효한 경우에만 실행 }); - console.log(noticeId); - if (!notice) { return null; } return ( <> - {/*
-
- {notice?.category} -
-

{notice?.title}

-
{notice?.description}
-

{notice?.createdDate}

-
-
- -
*/} +
+ router.back()}> + 뒤로가기 + +
{notice?.prevNotice && ( -
-
이전글
-
{notice?.prevNotice?.title}
-

{notice?.prevNotice?.description}

-
+ +
+
이전글
+
{notice?.prevNotice?.title}
+

{notice?.prevNotice?.description}

+
+ )} {notice?.nextNotice && ( -
-
다음글
-
{notice?.nextNotice?.title}
-

{notice?.nextNotice?.description}

-
+ +
+
다음글
+
{notice?.nextNotice?.title}
+

{notice?.nextNotice?.description}

+
+ )} @@ -78,28 +68,3 @@ function NoticeDetailComponent() { } export default NoticeDetailComponent; - -interface NoticeContentProps { - item: NoticeContentType; -} - -function NoticeContent({ item }: NoticeContentProps) { - return ( - <> - {item.type === 'subtitle' &&

{item.description}

} - {item.type === 'body' &&

{item.description}

} - {item.type === 'image' && ( -
- {item.type} -
- )} - {item.type === 'button' && ( - - - - )} - {item.type === 'line' &&
} - {item.type === 'note' &&