Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release - user v1.0.7, admin v1.0.1 #441

Merged
merged 143 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
4374b36
ADD :: ๊ฒ€์ •๊ณ ์‹œ score ์ถ”๊ฐ€
SEOKKAMONI Sep 10, 2023
f4359a5
REFACTOR :: ์‚ด์ง์˜ ๋ฆฌํŒฉํ† ๋ง์„..
SEOKKAMONI Sep 12, 2023
70eff5f
ADD :: Switch
SEOKKAMONI Sep 12, 2023
893f964
ADD :: ๊ฒ€์ •๊ณ ์‹œCaculator ํผ๋ธ”๋ฆฌ์‹ฑ
SEOKKAMONI Sep 13, 2023
e523fc3
ADD :: ๋ผ๋””์˜ค ๊ฒ€์ •๊ณ ์‹œ ํด๋ฆญ์‹œ ๋ฐ์ดํ„ฐ ๋ณ€๊ฒฝ
SEOKKAMONI Sep 13, 2023
b94dc15
ADD :: ScoreCalculator
SEOKKAMONI Sep 13, 2023
65c8159
ADD :: ScoreCalculator option ์ถ”๊ฐ€
SEOKKAMONI Sep 13, 2023
9587803
ADD :: ์ˆ˜ํ•™ ์ ์ˆ˜ ์‚ฐ์ถœ ๊ณฑํ•˜๊ธฐ 2
SEOKKAMONI Sep 13, 2023
26a8c29
ADD :: ๊ฒ€์ •๊ณ ์‹œ ์„ฑ์  ๊ณ„์‚ฐ ๋กœ์ง
SEOKKAMONI Sep 13, 2023
77e0cc1
ADD :: ๊ฒ€์ •๊ณ ์‹œ item ์ถ”๊ฐ€
SEOKKAMONI Sep 13, 2023
dd446b3
ADD :: Switch ์ •์ƒ ์ž‘๋™
SEOKKAMONI Sep 14, 2023
37decce
FIX :: ๋„ค์ด๋ฐ
SEOKKAMONI Sep 14, 2023
5a982d4
ADD :: ๋„ค์ด๋ฐ
SEOKKAMONI Sep 14, 2023
0a63a8d
ADD :: ๊ฒ€์ •๊ณ ์‹œ ์„ฑ์  ๊ณ„์‚ฐ ๋กœ์ง
SEOKKAMONI Sep 14, 2023
946fd6c
ADD :: ๊ฒ€์ •๊ณ ์‹œ ๋ถˆํ•„์š”ํ•œ ์ž…๋ ฅ ์ด๋™ ์ œํ•œ
SEOKKAMONI Sep 14, 2023
c889d4f
ADD :: ๊ฒ€์ •๊ณ ์‹œ ์‚ฌ์šฉ์ž ์ผ๋ฐ˜ ์ „ํ˜•์œผ๋กœ๋งŒ ์ œํ•œ
SEOKKAMONI Sep 14, 2023
7d6cabb
ADD :: ์ปจ๋ฒค์…˜
SEOKKAMONI Sep 14, 2023
ab95998
FIX :: ๋„ค์ด๋ฐ ๋ณ€๊ฒฝ
SEOKKAMONI Sep 14, 2023
e5e08c9
Update apps/user/src/app/form/์ตœ์ข…์ œ์ถœ/์ตœ์ข…์ œ์ถœ.hooks.ts
SEOKKAMONI Sep 14, 2023
71f5b27
FIX :: ์—๋Ÿฌ ์ˆ˜์ •
SEOKKAMONI Sep 14, 2023
81eb87a
Update apps/user/src/components/form/Calculators/ScoreCalculator/๊ฒ€์ •๊ณ ์‹œโ€ฆ
SEOKKAMONI Sep 14, 2023
cce7577
Update apps/user/src/app/form/์ „ํ˜•์„ ํƒ/์ „ํ˜•์„ ํƒ.tsx
SEOKKAMONI Sep 14, 2023
89b5a86
Update apps/user/src/app/score-simulation/page.tsx
SEOKKAMONI Sep 14, 2023
4d6241f
FIX :: store ๋„ค์ด๋ฐ
SEOKKAMONI Sep 14, 2023
6c8bb41
FIX :: ์„ฑ์  ์ €์žฅ ์•ˆ ๋˜๋Š” ๋ฒ„๊ทธ
SEOKKAMONI Sep 15, 2023
c4e68b0
ADD :: ๊ฒ€์ •๊ณ ์‹œSubjectList
SEOKKAMONI Sep 15, 2023
3c0e58b
FIX :: ์›์„œ์ ‘์ˆ˜ ์ €์žฅ ๋ฐ›์•„์˜ค๋Š” ๋กœ์ง
SEOKKAMONI Sep 16, 2023
76ac106
ADD :: ๊ฒ€์ •๊ณ ์‹œ Caculator
SEOKKAMONI Sep 17, 2023
d21cc4b
ADD :: ์ž๋ฌป์งˆ ์ˆ˜์ •ํ•˜๊ธฐ
arkk200 Sep 17, 2023
3b6d11d
Merge branch 'develop' into feat/#397
arkk200 Sep 17, 2023
c767a76
ADD :: main/ -> form/
arkk200 Sep 18, 2023
fdc602b
FIX :: ButtonMenuItem ์ˆ˜์ •
arkk200 Sep 18, 2023
d3472a0
ADD :: ๋ฒ„ํŠผ๋ฉ”๋‰ด์•„์ดํ…œ ๋ณด๋”๋ ˆ๋””์šฐ์Šค ์ถ”๊ฐ€
arkk200 Sep 18, 2023
4726fcb
ADD :: ๊ฒ€ํ† ํ•ด์•ผ ํ•˜๋Š” ์›์„œ ๋ชจ์•„๋ณด๊ธฐ
arkk200 Sep 18, 2023
91ab790
ADD :: ๋ฒ„ํŠผ ์Šคํƒ€์ผ ๋ณ€๊ฒฝ
arkk200 Sep 18, 2023
04126d2
ADD :: TextButton
arkk200 Sep 18, 2023
b2a52da
ADD :: @toss/use-overlay ์„ค์น˜
arkk200 Sep 18, 2023
bc2ef44
ADD :: 2์ฐจ ์ „ํ˜• ์ ์ˆ˜ ์ž…๋ ฅ ๋ชจ๋‹ฌ ํผ๋ธ”๋ฆฌ์‹ฑ
arkk200 Sep 18, 2023
337df4e
CHORE :: tsx -> ts
arkk200 Sep 18, 2023
134f43d
ADD :: 2์ฐจ ์ „ํ˜• ์ ์ˆ˜ ์–‘์‹ ๋‹ค์šด๋กœ๋“œ
arkk200 Sep 18, 2023
8368d29
ADD :: ์›์„œ ๋‹ค์šด ๋ฆฌ์†Œ์Šค ์‚ญ์ œ ์ฝ”๋“œ
arkk200 Sep 18, 2023
8bce9a8
ADD :: ํŒŒ์ผ ์„ ํƒ, ์ทจ์†Œ ๊ธฐ๋Šฅ
arkk200 Sep 18, 2023
5931a30
ADD :: ํŒŒ์ผ DnD
arkk200 Sep 18, 2023
8225d2d
ADD :: 2์ฐจ ์ „ํ˜• ์ ์ˆ˜ ์ž…๋ ฅ
arkk200 Sep 18, 2023
258ff60
Merge pull request #405 from Bamdoliro/feat/#402
arkk200 Sep 18, 2023
90f8b2d
Merge pull request #407 from Bamdoliro/feat/#402
arkk200 Sep 18, 2023
9bce5ae
ADD :: ์ฝ”๋“œ ์ •๋ฆฌ
SEOKKAMONI Sep 18, 2023
039ecf5
FIX :: ์ €์žฅ ์•ˆ๋ถˆ๋Ÿฌ์™€์ง€๋Š” ๋กœ์ง
SEOKKAMONI Sep 18, 2023
f335795
REFACTOR :: 2์ฐจ ์ „ํ˜• ์ ์ˆ˜ ์ž…๋ ฅ ์ฝ”๋“œ
arkk200 Sep 18, 2023
447a4da
FIX :: ์ปจ๋ฒค์…˜
SEOKKAMONI Sep 18, 2023
1cc08d4
ADD :: ์—‘์…€ ๋‚ด๋ณด๋‚ด๊ธฐ ํผ๋ธ”๋ฆฌ์‹ฑ
arkk200 Sep 18, 2023
8a8a0f0
ADD :: Switch์— ์กธ์—… ์ถ”๊ฐ€
SEOKKAMONI Sep 18, 2023
328775a
FIX :: ๋จธ์ง€ ์ถฉ๋Œ ํ•ด๊ฒฐ
SEOKKAMONI Sep 18, 2023
77d9e61
ADD :: ์•ก์…€ ๋‚ด๋ณด๋‚ด๊ธฐ ๊ธฐ๋Šฅ
arkk200 Sep 18, 2023
b454741
Merge pull request #399 from Bamdoliro/feat/#397
arkk200 Sep 18, 2023
05f3b1c
Merge pull request #408 from Bamdoliro/feat/#402
arkk200 Sep 18, 2023
7197747
ADD :: ์•ก์…€ ๋‚ด๋ณด๋‚ด๊ธฐ ๊ธฐ๋Šฅ
arkk200 Sep 18, 2023
b1938f0
Merge branch 'develop' into feat/#402
arkk200 Sep 18, 2023
96556b6
Merge pull request #382 from Bamdoliro/feat/#373
SEOKKAMONI Sep 18, 2023
e0d63e6
Merge pull request #409 from Bamdoliro/feat/#402
arkk200 Sep 18, 2023
990b623
ADD :: Schedule ์Šคํฌ๋กค ๋ฐ” ์ˆจ๊ธฐ๊ธฐ
SEOKKAMONI Sep 18, 2023
2bdd97c
FIX :: ์˜คํƒ€
SEOKKAMONI Sep 18, 2023
b686faf
ADD :: Link ์ถ”๊ฐ€
arkk200 Sep 18, 2023
24fe898
CHORE :: SecondScoreUploader ์œ„์น˜
arkk200 Sep 18, 2023
e8d94b6
ADD :: ๊ตญ๊ฐ€๋ณดํ›ˆ๋Œ€์ƒ์ž ์ค‘ ๊ต์œก์ง€์›๋Œ€์ƒ์ž๋…€ ํƒ€์ž…
arkk200 Sep 18, 2023
9e7a615
ADD :: ํ”„๋กœํ•„์— ํ•„์š”ํ•œ ์•„์ด์ฝ˜
arkk200 Sep 18, 2023
e5c34de
ADD :: ํ”„๋กœํ•„ ์ œ์ž‘
arkk200 Sep 18, 2023
928b149
ADD :: FormStatus
arkk200 Sep 18, 2023
cf4d9c2
ADD :: DataBox
arkk200 Sep 18, 2023
775559e
ADD :: UnderlineButton ๋†’์ด ์ˆ˜์ •
arkk200 Sep 18, 2023
1fc122a
ADD :: FormDetailContent ๋„ค๋น„๊ฒŒ์ด์…˜
arkk200 Sep 18, 2023
97cb7df
Merge pull request #412 from Bamdoliro/feat/#411
arkk200 Sep 18, 2023
140022b
ADD :: ์ง€์›์ž ์ •๋ณด ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
29165b2
Merge pull request #414 from Bamdoliro/feat/#413
arkk200 Sep 19, 2023
3ced2ca
REFACOTR :: ๊ฑฐ์Šฌ๋ฆฌ๋Š”๊ฑฐ ์ปท
SEOKKAMONI Sep 19, 2023
6210c06
REFACTOR :: CheckFormCompleteBox
SEOKKAMONI Sep 19, 2023
d96aeca
ADD :: ์‚ผํ•ญ
SEOKKAMONI Sep 19, 2023
27dd23f
REFACTOR :: Wrapper
SEOKKAMONI Sep 19, 2023
f039fc8
FIX :: useApiError ์—๋Ÿฌ ํ•ธ๋“ค๋ง ์•ˆ๋˜๋Š” ๋ฒ„๊ทธ
SEOKKAMONI Sep 19, 2023
ca27daf
ADD :: AxiosErrorResponse
SEOKKAMONI Sep 19, 2023
b3138ff
FIX :: ์›์„œ ์ƒ์„ธ์กฐํšŒ ์ง€์›์ž์ •๋ณด
arkk200 Sep 19, 2023
9260021
Merge pull request #418 from Bamdoliro/feat/#415
arkk200 Sep 19, 2023
e044661
ADD :: ๋ณดํ˜ธ์ž ์ •๋ณด ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
cd8198b
Merge pull request #420 from Bamdoliro/feat/#419
arkk200 Sep 19, 2023
82b753b
ADD :: ์ถœ์‹ ํ•™๊ต ๋ฐ ํ•™๋ ฅ ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
17febc2
ADD :: ์ „ํ˜• ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
6c76546
ADD :: ์ž๊ธฐ์†Œ๊ฐœ์„œ ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
76bfd99
Merge pull request #422 from Bamdoliro/feat/#421
arkk200 Sep 19, 2023
0e32f36
ADD :: SideMenu ์ œ์ž‘
arkk200 Sep 19, 2023
8b5ade0
CHORE :: ์“ธ๋ชจ์—†๋Š” ์ฝ”๋“œ ์ œ๊ฑฐ
arkk200 Sep 19, 2023
7e74a59
ADD :: ์›์„œ ์ƒ์„ธ์กฐํšŒ ์„ฑ์  ์‚ฌ์ด๋“œ๋ฉ”๋‰ด๋ฐ”
arkk200 Sep 19, 2023
0fa141e
ADD :: ๊ต๊ณผ ์„ฑ์  ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
7393623
CHORE :: NumberInput -> CellInput
arkk200 Sep 19, 2023
17491ba
Merge pull request #423 from Bamdoliro/feat/#421
arkk200 Sep 19, 2023
5cd5b2f
ADD :: ์—†์Œ ์ถ”๊ฐ€
arkk200 Sep 19, 2023
71f24f1
ADD :: ์ถœ๊ฒฐ ์ƒํ™ฉ ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
bb87d01
ADD :: ๋ด‰์‚ฌ ์‹œ๊ฐ„ ํŽ˜์ด์ง€
arkk200 Sep 19, 2023
7d170d7
Update apps/user/src/hooks/useApiError.ts
SEOKKAMONI Sep 19, 2023
0cf8996
Merge branch 'develop' into feat/#410
SEOKKAMONI Sep 19, 2023
0e41b7f
ADD :: ๋บ„ ์ˆ˜ ์žˆ๋Š” ์ฝ”๋“œ ์ œ๊ฑฐ
arkk200 Sep 20, 2023
f64d04f
ADD :: ์ž๊ฒฉ์ฆ ํŽ˜์ด์ง€
arkk200 Sep 20, 2023
1cb5a05
Merge pull request #417 from Bamdoliro/feat/#406
SEOKKAMONI Sep 20, 2023
f772b6c
Bump word-wrap from 1.2.3 to 1.2.5
dependabot[bot] Sep 20, 2023
b84448d
ADD :: ์ธ์ฆ ์„ฑ๊ณต alert
SEOKKAMONI Sep 20, 2023
a46283f
Merge pull request #416 from Bamdoliro/feat/#410
SEOKKAMONI Sep 20, 2023
04bfccf
ADD :: ์ž๊ฒฉ์ฆ ๋ผ์šด๋“œ, SearchInput
arkk200 Sep 20, 2023
6c0b7a4
ADD :: ๊ณผ๋ชฉ๋ช… ๋น„์–ด์žˆ์œผ๋ฉด ๊ฒฝ๊ณ ์ฒ˜๋ฆฌ
SEOKKAMONI Sep 20, 2023
3213432
ADD :: ๊ณผ๋ชฉ ๋น„์–ด์žˆ์œผ๋ฉด ๋œจ๋Š” ๊ฒฝ๊ณ ์ฐฝ ์„ฑ์ ์ž…๋ ฅ์œผ๋กœ ์ด์‚ฌํ•จ
SEOKKAMONI Sep 20, 2023
92aae79
Merge pull request #425 from Bamdoliro/feat/#421
arkk200 Sep 20, 2023
ad6a930
ADD :: ์ตœ์ข… ์ ‘์ˆ˜ ํ™•์ธ ๋ชจ๋‹ฌ์ฐฝ ํผ๋ธ”๋ฆฌ์‹ฑ
arkk200 Sep 20, 2023
55f4cb5
ADD :: api ์—ฐ๊ฒฐ
arkk200 Sep 20, 2023
8dbc872
Merge pull request #428 from Bamdoliro/feat/#427
arkk200 Sep 20, 2023
55158b9
Merge pull request #348 from Bamdoliro/dependabot/npm_and_yarn/word-wโ€ฆ
SEOKKAMONI Sep 20, 2023
7564149
ADD :: PdfGeneratedModal
SEOKKAMONI Sep 21, 2023
0392a36
REFACTOR :: ๋„ค์ด๋ฐ
SEOKKAMONI Sep 21, 2023
aa06ac4
REFACTOR :: ์‚ผํ•ญ ํ…์ŠคํŠธ ํ•ธ๋“ค๋ง
SEOKKAMONI Sep 21, 2023
1759502
Merge branch 'develop' into feat/#426
SEOKKAMONI Sep 21, 2023
110b301
FIX :: build error
SEOKKAMONI Sep 21, 2023
b553ecc
Merge pull request #429 from Bamdoliro/feat/#426
SEOKKAMONI Sep 21, 2023
01b9d52
ADD :: next ๋ฒ„์ „ ์—…๊ทธ๋ ˆ์ด๋“œ
SEOKKAMONI Sep 21, 2023
cf07ba9
ADD :: admin๋„ ์—…๊ทธ๋ ˆ์ด๋“œ
SEOKKAMONI Sep 21, 2023
3b4c2a9
ADD :: ๋†“์ณค๋‹ค..
SEOKKAMONI Sep 21, 2023
3d018e7
ADD :: FormList, NoticeList ์ด๋ฆ„ ์ˆ˜์ •
arkk200 Sep 25, 2023
ebd13d3
add : secondScore ์•„ํ†ฐ ์ด๋ฆ„ ์ˆ˜์ •
arkk200 Sep 25, 2023
c990c29
ADD :: useOpenFileUploader๋กœ ์ถ”์ƒํ™”
SEOKKAMONI Sep 26, 2023
9ce83c6
Merge pull request #432 from Bamdoliro/feat/#430
SEOKKAMONI Sep 26, 2023
469906d
REFACTOR :: hooks ๋ถ„๋ฆฌ
SEOKKAMONI Sep 26, 2023
7c99f7b
FIX :: main components naming
SEOKKAMONI Sep 26, 2023
e97fd13
REFACTOR :: Profile ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง ๋ถ„๋ฆฌ
SEOKKAMONI Sep 26, 2023
766657d
Merge pull request #434 from Bamdoliro/feat/#433
SEOKKAMONI Sep 26, 2023
a5e5bd6
REFACTOR :: AuthWrapper
SEOKKAMONI Sep 27, 2023
f21db69
FIX :: build error
SEOKKAMONI Sep 27, 2023
49c249a
Merge pull request #436 from Bamdoliro/feat/#435
SEOKKAMONI Sep 27, 2023
5ff7200
ADD :: 2์ฐจ ํ•ฉ๊ฒฉ ์—ฌ๋ถ€ ์ˆ˜์ • ํผ๋ธ”๋ฆฌ์‹ฑ
arkk200 Sep 28, 2023
797f08b
ADD :: secondPass -> secondRound
arkk200 Sep 28, 2023
de60b63
ADD :: 2์ฐจ ๊ฒฐ๊ณผ ์ˆ˜์ • api
arkk200 Sep 28, 2023
635783c
Merge branch 'develop' into feat/#402
arkk200 Sep 28, 2023
0fd4e63
Merge pull request #438 from Bamdoliro/feat/#402
arkk200 Sep 28, 2023
4c253f2
ADD :: secondRoundResult ์•„ํ†ฐ ํ‚ค, ํŒŒ์ผ๋ช…
arkk200 Sep 28, 2023
47c2bd3
ADD :: ์–ด๋“œ๋ฏผ ์›์„œ ์ถœ๋ ฅํ•˜๊ธฐ ํผ๋ธ”๋ฆฌ์‹ฑ
arkk200 Sep 28, 2023
2917e30
ADD :: secondScoreFormat ์ด๋ฆ„ ๋ณ€๊ฒฝ
arkk200 Sep 28, 2023
8662592
ADD :: ์›์„œ ์ถœ๋ ฅํ•˜๊ธฐ api
arkk200 Sep 28, 2023
57bbd1e
Merge pull request #439 from Bamdoliro/feat/#402
arkk200 Sep 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/admin/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@maru/theme'],
images: {
domains: ['s3.ap-northeast-2.amazonaws.com'],
},
};

module.exports = nextConfig;
4 changes: 3 additions & 1 deletion apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
"@maru/utils": "workspace:*",
"@tanstack/react-query": "^4.32.6",
"@tanstack/react-query-devtools": "^4.32.6",
"@toss/react": "^1.5.0",
"@toss/use-overlay": "^1.3.6",
"axios": "^1.4.0",
"next": "13.4.6",
"next": "13.5.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-toastify": "^9.1.3",
Expand Down
5 changes: 2 additions & 3 deletions apps/admin/src/app/faq/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ interface Props {
}

const FaqDetailPage = ({ params: { id } }: Props) => {
// TODO :: ์ˆ˜์ •, ์‚ญ์ œ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ํ•˜๊ธฐ
return (
<AppLayout>
<StyledNoticeDetail>
Expand Down Expand Up @@ -44,8 +43,8 @@ const StyledNoticeDetail = styled.div`
`;

const DirectLink = styled(Link)`
${flex({ alignItems: 'center' })}
${flex({ alignItems: 'center' })};
gap: 2px;
${font.p3}
${font.p3};
color: ${color.gray600};
`;
50 changes: 50 additions & 0 deletions apps/admin/src/app/faq/edit/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
'use client';

import FaqEdit from '@/components/faq/FaqEdit/FaqEdit';
import { ROUTES } from '@/constants/common/constant';
import AppLayout from '@/layouts/AppLayout';
import { IconArrowLeft } from '@maru/icon';
import { color, font } from '@maru/theme';
import { Loader } from '@maru/ui';
import { flex } from '@maru/utils';
import Link from 'next/link';
import { Suspense } from 'react';
import styled from 'styled-components';

interface Props {
params: { id: number };
}

const FaqEditPage = ({ params: { id } }: Props) => {
return (
<AppLayout>
<StyledFaqEdit>
<DirectLink href={`${ROUTES.FAQ}/${id}`}>
<IconArrowLeft width={18} height={18} />
๋Œ์•„๊ฐ€๊ธฐ
</DirectLink>
<Suspense fallback={<Loader />}>
<FaqEdit id={id} />
</Suspense>
</StyledFaqEdit>
</AppLayout>
);
};

export default FaqEditPage;

const StyledFaqEdit = styled.div`
position: relative;
${flex({ flexDirection: 'column' })}
gap: 24px;
width: 100%;
min-height: 100vh;
padding: 64px 75px;
`;

const DirectLink = styled(Link)`
${flex({ alignItems: 'center' })}
gap: 2px;
${font.p3}
color: ${color.gray600};
`;
6 changes: 3 additions & 3 deletions apps/admin/src/app/faq/post/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ import styled from 'styled-components';
const FaqPostPage = () => {
return (
<AppLayout>
<StyledFaqDetail>
<StyledFaqPost>
<DirectLink href={ROUTES.FAQ}>
<IconArrowLeft width={18} height={18} />
๋Œ์•„๊ฐ€๊ธฐ
</DirectLink>
<Suspense fallback={<Loader />}>
<FaqPost />
</Suspense>
</StyledFaqDetail>
</StyledFaqPost>
</AppLayout>
);
};

export default FaqPostPage;

const StyledFaqDetail = styled.div`
const StyledFaqPost = styled.div`
position: relative;
${flex({ flexDirection: 'column' })}
gap: 24px;
Expand Down
53 changes: 53 additions & 0 deletions apps/admin/src/app/form.hooks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { useEditSecondRoundResultMutation } from '@/services/form/mutations';
import { useDownloadFormUrlQuery } from '@/services/form/queries';
import { useFormToPrintValueStore } from '@/store/form/formToPrint';
import { useSecondRoundResultValueStore } from '@/store/form/secondRoundResult';
import { useEffect } from 'react';

export const useSecondRoundResultEditAction = () => {
const secondRoundResult = useSecondRoundResultValueStore();
const secondRoundResultData = {
formList: Object.entries(secondRoundResult).map(([formId, passStatus]) => {
return {
formId: Number(formId),
pass: passStatus === '๋ฏธ์ •' ? null : passStatus === 'ํ•ฉ๊ฒฉ',
};
}),
};
const { editSecondRoundResult } = useEditSecondRoundResultMutation(secondRoundResultData);

const handleSecondRoundResultEditCompleteButtonClick = () => {
editSecondRoundResult();
};

return { handleSecondRoundResultEditCompleteButtonClick };
};

export const useDownloadFormURLAction = () => {
const formToPrint = useFormToPrintValueStore();
const formIdList = Object.entries(formToPrint).reduce(
(acc: number[], [formId, isSelected]) => (isSelected ? [...acc, Number(formId)] : acc),
[],
);

const { data: formListData, refetch, status } = useDownloadFormUrlQuery(formIdList);

useEffect(() => {
if (formListData && status === 'success') {
formListData.forEach((form) => {
const link = document.createElement('a');
link.href = form.formUrl;
link.download = `${form.examinationNumber}.pdf`;
document.body.appendChild(link);
link.click();
link.remove();
});
}
}, [formListData]);

const handleDownloadFormUrlButtonClick = () => {
refetch();
};

return { handleDownloadFormUrlButtonClick };
};
50 changes: 50 additions & 0 deletions apps/admin/src/app/form/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
'use client';

import FormDetailContent from '@/components/form/FormDetailContent/FormDetailContent';
import { ROUTES } from '@/constants/common/constant';
import AppLayout from '@/layouts/AppLayout';
import { IconArrowLeft } from '@maru/icon';
import { color, font } from '@maru/theme';
import { Loader } from '@maru/ui';
import { flex } from '@maru/utils';
import Link from 'next/link';
import { Suspense } from 'react';
import styled from 'styled-components';

interface Props {
params: { id: number };
}

const FormDetailPage = ({ params: { id } }: Props) => {
return (
<AppLayout>
<StyledFormDetail>
<DirectLink href={ROUTES.MAIN}>
<IconArrowLeft width={18} height={18} />
๋Œ์•„๊ฐ€๊ธฐ
</DirectLink>
<Suspense fallback={<Loader />}>
<FormDetailContent id={id} />
</Suspense>
</StyledFormDetail>
</AppLayout>
);
};

export default FormDetailPage;

const StyledFormDetail = styled.div`
position: relative;
${flex({ flexDirection: 'column' })}
gap: 24px;
width: 100%;
min-height: 100vh;
padding: 48px 60px 82px;
`;

const DirectLink = styled(Link)`
${flex({ alignItems: 'center' })}
gap: 2px;
${font.p3}
color: ${color.gray600};
`;
1 change: 0 additions & 1 deletion apps/admin/src/app/notice/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ interface Props {
}

const NoticeDetailPage = ({ params: { id } }: Props) => {
// TODO :: ์ˆ˜์ •, ์‚ญ์ œ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ํ•˜๊ธฐ
return (
<AppLayout>
<StyledNoticeDetail>
Expand Down
4 changes: 2 additions & 2 deletions apps/admin/src/app/notice/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import NoticeList from '@/components/notice/NoticeList/NoticeList';
import NoticeTable from '@/components/notice/NoticeTable/NoticeTable';
import AppLayout from '@/layouts/AppLayout';
import { Button, Column, Loader, Row, SearchInput, Text } from '@maru/ui';
import { flex } from '@maru/utils';
Expand All @@ -26,7 +26,7 @@ const NoticePage = () => {
</Button>
</Row>
<Suspense fallback={<Loader />}>
<NoticeList />
<NoticeTable />
</Suspense>
</Column>
</StyledNoticePage>
Expand Down
Loading