Skip to content

Commit c036ddd

Browse files
committed
fix: 이미지 캐싱이 적용되지 않는 이슈 (depromeet#179)
* chore: 이미지 src 적용 방식 변경 * chore: 이미지 src 적용 방식 변경 * fix: 빌드 에러 수정
1 parent 5ec7b8f commit c036ddd

File tree

74 files changed

+443
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+443
-580
lines changed

.github/pull-request-template.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/build-check.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/deployment-notification.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/github-actions.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 41 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

public/icons/character/index.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import img1 from "./1.png";
2+
import img2 from "./2.png";
3+
import img3 from "./3.png";
4+
import img4 from "./4.png";
5+
import img5 from "./5.png";
6+
import img6 from "./6.png";
7+
import img7 from "./7.png";
8+
import img8 from "./8.png";
9+
import img9 from "./9.png";
10+
import img10 from "./10.png";
11+
import img11 from "./11.png";
12+
import img12 from "./12.png";
13+
import img13 from "./13.png";
14+
import img14 from "./14.png";
15+
import img15 from "./15.png";
16+
import img16 from "./16.png";
17+
import img17 from "./17.png";
18+
import img18 from "./18.png";
19+
import img19 from "./19.png";
20+
import img20 from "./20.png";
21+
import img21 from "./21.png";
22+
import img22 from "./22.png";
23+
import img23 from "./23.png";
24+
import img24 from "./24.png";
25+
import defaultImg from "./default.png";
26+
27+
import type { StaticImageData } from "next/image";
28+
29+
export const PERSONA_ICON_MAP: Record<number, StaticImageData> = {
30+
1: img1,
31+
2: img2,
32+
3: img3,
33+
4: img4,
34+
5: img5,
35+
6: img6,
36+
7: img7,
37+
8: img8,
38+
9: img9,
39+
10: img10,
40+
11: img11,
41+
12: img12,
42+
13: img13,
43+
14: img14,
44+
15: img15,
45+
16: img16,
46+
17: img17,
47+
18: img18,
48+
19: img19,
49+
20: img20,
50+
21: img21,
51+
22: img22,
52+
23: img23,
53+
24: img24,
54+
};
55+
56+
export const DEFAULT_PERSONA_ICON = defaultImg;

public/icons/index.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import assignmentIcon from "@public/icons/assignment.svg";
2+
import designIcon from "@public/icons/design.svg";
3+
import exerciseIcon from "@public/icons/exercise.svg";
4+
import programmingIcon from "@public/icons/programming.svg";
5+
import studyIcon from "@public/icons/study.svg";
6+
import writingIcon from "@public/icons/writing.svg";
7+
8+
import calmIcon from "@public/icons/calm.svg";
9+
import emotionalIcon from "@public/icons/emotional.svg";
10+
import excitedIcon from "@public/icons/excited.svg";
11+
import urgentIcon from "@public/icons/urgent.svg";
12+
13+
import { MoodType, TaskType } from "@/types/create";
14+
import type { StaticImageData } from "next/image";
15+
16+
/**
17+
* ICON_MAP maps each TaskType and MoodType enum value
18+
* to its corresponding static image import.
19+
*/
20+
export const ICON_MAP: Record<TaskType | MoodType, StaticImageData> = {
21+
[TaskType.STUDY]: studyIcon,
22+
[TaskType.WRITING]: writingIcon,
23+
[TaskType.EXERCISE]: exerciseIcon,
24+
[TaskType.PROGRAMMING]: programmingIcon,
25+
[TaskType.DESIGN]: designIcon,
26+
[TaskType.ASSIGNMENT]: assignmentIcon,
27+
28+
[MoodType.URGENT]: urgentIcon,
29+
[MoodType.EXCITED]: excitedIcon,
30+
[MoodType.EMOTIONAL]: emotionalIcon,
31+
[MoodType.CALM]: calmIcon,
32+
};

0 commit comments

Comments
 (0)