Skip to content
Merged

Dev #146

Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
transpilePackages: ['lucide-react'],
images: {
remotePatterns: [
Expand All @@ -21,7 +20,7 @@ const nextConfig: NextConfig = {
protocol: 'https',
hostname: 'api.solidloop-studio.xyz',
port: '',
pathname: '/kkuko/**',
pathname: '/**',
}
],
localPatterns: [
Expand All @@ -32,6 +31,7 @@ const nextConfig: NextConfig = {
pathname: '/img/**',
},
],
minimumCacheTTL: 2592000,
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/app/kkuko/profile/components/ItemModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function ItemModal({ itemsData, profileData, onClose }: ItemModal
<div className="relative w-20 h-20 bg-gray-100 dark:bg-gray-700 rounded-lg flex items-center justify-center flex-shrink-0 overflow-hidden">
<TryRenderImg
placeholder={itemImgPlaceholder()}
url={`https://api.solidloop-studio.xyz/kkuko/image?url=https://cdn.kkutu.co.kr/img/kkutu/moremi/${imageGroup}/${item.id}.png`}
url={`https://cdn.kkutu.co.kr/img/kkutu/moremi/${imageGroup}/${item.id}.png`}
alt={item.name}
width={80}
height={80}
Expand Down
4 changes: 2 additions & 2 deletions src/app/kkuko/profile/components/ProfileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function ProfileHeader({
<div className="relative w-10 h-10 bg-gray-100 dark:bg-gray-700 rounded flex items-center justify-center overflow-hidden">
<TryRenderImg
placeholder={<div className="w-10 h-10" />}
url={`https://api.solidloop-studio.xyz/kkuko/image?url=https://cdn.kkutu.co.kr/img/kkutu/moremi/badge/${item.id}.png`}
url={`https://cdn.kkutu.co.kr/img/kkutu/moremi/badge/${item.id}.png`}
alt={item.name}
width={40}
height={40}
Expand Down Expand Up @@ -99,7 +99,7 @@ export default function ProfileHeader({
<div className="relative w-8 h-8 flex-shrink-0">
<TryRenderImg
placeholder={lvImgPlaceholder()}
url={`https://api.solidloop-studio.xyz/kkuko/img?url=https://cdn.kkutu.co.kr/img/kkutu/lv/lv${String(profileData.user.level).padStart(4, '0')}.png`}
url={`https://cdn.kkutu.co.kr/img/kkutu/lv/lv${String(profileData.user.level).padStart(4, '0')}.png`}
alt="Level Icon"
width={32}
height={32}
Expand Down
8 changes: 4 additions & 4 deletions src/app/kkuko/shared/components/ProfileAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ProfileAvatar({ profileData, itemsData }: ProfileAvatarP
const leftHandItem = itemsBySlot['Mlhand'];
if (leftHandItem) {
const imageName = leftHandItem.id;
const imageUrl = `https://api.solidloop-studio.xyz/kkuko/img?url=https://cdn.kkutu.co.kr/img/kkutu/moremi/hand/${imageName}.png`;
const imageUrl = `https://cdn.kkutu.co.kr/img/kkutu/moremi/hand/${imageName}.png`;

layers.push({
key: `hand-left-${index}`,
Expand All @@ -51,7 +51,7 @@ export default function ProfileAvatar({ profileData, itemsData }: ProfileAvatarP
const rightHandItem = itemsBySlot['Mrhand'];
if (rightHandItem) {
const imageName = rightHandItem.id;
const imageUrl = `https://api.solidloop-studio.xyz/kkuko/img?url=https://cdn.kkutu.co.kr/img/kkutu/moremi/hand/${imageName}.png`;
const imageUrl = `https://cdn.kkutu.co.kr/img/kkutu/moremi/hand/${imageName}.png`;

layers.push({
key: `hand-right-${index}`,
Expand All @@ -67,7 +67,7 @@ export default function ProfileAvatar({ profileData, itemsData }: ProfileAvatarP

if (item) {
const imageName = item.name === 'def' ? 'def' : item.id;
const imageUrl = `https://api.solidloop-studio.xyz/kkuko/img?url=https://cdn.kkutu.co.kr/img/kkutu/moremi/${group}/${imageName}.png`;
const imageUrl = `https://cdn.kkutu.co.kr/img/kkutu/moremi/${group}/${imageName}.png`;

layers.push({
key: `${group}-${index}`,
Expand All @@ -77,7 +77,7 @@ export default function ProfileAvatar({ profileData, itemsData }: ProfileAvatarP
});
} else if (group !== 'badge' && item === undefined) {
const itemId = 'def';
const imageUrl = `https://api.solidloop-studio.xyz/kkuko/img?url=https://cdn.kkutu.co.kr/img/kkutu/moremi/${group}/${itemId}.png`;
const imageUrl = `https://cdn.kkutu.co.kr/img/kkutu/moremi/${group}/${itemId}.png`;
layers.push({
key: `${group}-${index}`,
url: imageUrl,
Expand Down
Loading