릴리스: v1.3.55 관리자 요청 썸네일 승계 및 배지 색상 구분
This commit is contained in:
@@ -119,7 +119,9 @@ const props = defineProps({
|
||||
<input v-model="draft.label" class="input input--labelEdit input--dense" maxlength="60" placeholder="아이템 이름" />
|
||||
<div class="hint hint--tight">{{ draft.sourceName }}</div>
|
||||
<div class="itemDraftRow__meta">
|
||||
<span class="pill pill--soft">{{ draft.kind === 'request' ? '요청 아이템' : '직접 추가 파일' }}</span>
|
||||
<span class="pill" :class="draft.kind === 'request' ? 'pill--requestItem' : 'pill--directFile'">
|
||||
{{ draft.kind === 'request' ? '요청 아이템' : '직접 추가 파일' }}
|
||||
</span>
|
||||
<button class="btn btn--danger btn--small" type="button" @click="props.removeUploadDraft(draft)">제외</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -64,7 +64,10 @@ const props = defineProps({
|
||||
<div class="tierAdminCard__body">
|
||||
<div class="tierAdminCard__head">
|
||||
<div>
|
||||
<span class="pill templateRequestCard__cornerBadge">
|
||||
<span
|
||||
class="pill templateRequestCard__cornerBadge"
|
||||
:class="request.type === 'create' ? 'pill--create' : 'pill--owned'"
|
||||
>
|
||||
{{ request.type === 'create' ? '신규 템플릿' : '보유 템플릿' }}
|
||||
</span>
|
||||
<div class="tierAdminCard__title">{{ request.sourceTierListTitle }}</div>
|
||||
|
||||
@@ -135,7 +135,11 @@ export function useAdminGameManager({
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ id: newGameId.value.trim(), name: newGameName.value.trim() }),
|
||||
body: JSON.stringify({
|
||||
id: newGameId.value.trim(),
|
||||
name: newGameName.value.trim(),
|
||||
thumbnailSrc: activeTemplateRequest.value?.type === 'create' ? (activeTemplateRequest.value?.thumbnailSrc || '') : '',
|
||||
}),
|
||||
})
|
||||
if (!res.ok) throw new Error('failed')
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ export function useAdminTemplateRequests({
|
||||
id: request.id,
|
||||
type: request.type,
|
||||
status: request.status,
|
||||
thumbnailSrc: request.thumbnailSrc || '',
|
||||
draftGameId: request.draftGameId || '',
|
||||
draftGameName: request.draftGameName || '',
|
||||
sourceTierListId: request.sourceTierListId || '',
|
||||
|
||||
@@ -2764,6 +2764,26 @@ function userAvatarFallback(user) {
|
||||
.adminUiScope .pill--soft {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.adminUiScope .pill--create {
|
||||
border-color: rgba(56, 189, 248, 0.36);
|
||||
background: rgba(56, 189, 248, 0.16);
|
||||
color: rgba(224, 242, 254, 0.98);
|
||||
}
|
||||
.adminUiScope .pill--owned {
|
||||
border-color: rgba(167, 139, 250, 0.34);
|
||||
background: rgba(167, 139, 250, 0.14);
|
||||
color: rgba(243, 232, 255, 0.98);
|
||||
}
|
||||
.adminUiScope .pill--requestItem {
|
||||
border-color: rgba(250, 204, 21, 0.34);
|
||||
background: rgba(250, 204, 21, 0.14);
|
||||
color: rgba(254, 249, 195, 0.98);
|
||||
}
|
||||
.adminUiScope .pill--directFile {
|
||||
border-color: rgba(52, 211, 153, 0.34);
|
||||
background: rgba(52, 211, 153, 0.14);
|
||||
color: rgba(209, 250, 229, 0.98);
|
||||
}
|
||||
.adminUiScope .requestWorkspace {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
|
||||
Reference in New Issue
Block a user