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

[Perf] lighthouse 웹폰트 로드 개선 & 용량 큰 svg 파일 webp로 교체 #101

Merged
merged 12 commits into from
Aug 21, 2024
Merged
11 changes: 0 additions & 11 deletions packages/admin/public/casper/khaki.svg

This file was deleted.

Binary file added packages/admin/public/casper/khaki.webp
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/admin/public/casper/orange.svg

This file was deleted.

Binary file added packages/admin/public/casper/orange.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/admin/public/casper/white.svg

This file was deleted.

Binary file added packages/admin/public/casper/white.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/admin/public/casper/yellow.svg

This file was deleted.

Binary file added packages/admin/public/casper/yellow.webp
Binary file not shown.
11 changes: 0 additions & 11 deletions packages/common/public/casper/khaki.svg

This file was deleted.

Binary file added packages/common/public/casper/khaki.webp
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/common/public/casper/orange.svg

This file was deleted.

Binary file added packages/common/public/casper/orange.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/common/public/casper/white.svg

This file was deleted.

Binary file added packages/common/public/casper/white.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/common/public/casper/yellow.svg

This file was deleted.

Binary file added packages/common/public/casper/yellow.webp
Binary file not shown.
12 changes: 6 additions & 6 deletions packages/common/src/components/chat/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ interface MessageProps extends Pick<MessageChatProps, 'sender' | 'team'> {
}

const TYPES: Record<SocketCategory | 'default', { casper: string; textColor: string }> = {
default: { casper: '/casper/white.svg', textColor: 'text-skyblue-500' },
p: { casper: '/casper/yellow.svg', textColor: 'text-cream-600' },
l: { casper: '/casper/khaki.svg', textColor: 'text-khaki-400' },
t: { casper: '/casper/orange.svg', textColor: 'text-orange-500' },
s: { casper: '/casper/white.svg', textColor: 'text-gray-300' },
default: { casper: '/casper/white.webp', textColor: 'text-skyblue-500' },
p: { casper: '/casper/yellow.webp', textColor: 'text-cream-600' },
l: { casper: '/casper/khaki.webp', textColor: 'text-khaki-400' },
t: { casper: '/casper/orange.webp', textColor: 'text-orange-500' },
s: { casper: '/casper/white.webp', textColor: 'text-gray-300' },
};

export default function Message({
Expand All @@ -21,7 +21,7 @@ export default function Message({
isMyMessage = false,
children,
}: PropsWithChildren<MessageProps>) {
const category = ['p', 't', 'l', 's'].includes(team)
const category = ['p', 't', 'l', 's'].includes(team?.toLowerCase())
? (team.toLowerCase() as SocketCategory)
: 'default';
const { casper, textColor } = TYPES[category];
Expand Down
11 changes: 0 additions & 11 deletions packages/user/public/casper/khaki.svg

This file was deleted.

Binary file added packages/user/public/casper/khaki.webp
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/user/public/casper/orange.svg

This file was deleted.

Binary file added packages/user/public/casper/orange.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/user/public/casper/white.svg

This file was deleted.

Binary file added packages/user/public/casper/white.webp
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/user/public/casper/yellow.svg

This file was deleted.

Binary file added packages/user/public/casper/yellow.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/user/src/assets/icons/casper-white.svg

This file was deleted.

9 changes: 0 additions & 9 deletions packages/user/src/assets/icons/event-tab-tag.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/user/src/assets/icons/lighting.svg

This file was deleted.

Loading