쿠폰 자동 입력 사이트 작성
빌드는 성공했습니다. 배포에 SSH 키가 필요합니다. 이전에 어떤 키 파일로 서버에 접속하셨나요? (`.pem` 파일 경로를 알려주세요)
This commit is contained in:
parent
d4f10d9247
commit
dde188877f
@ -1,10 +1,31 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="home">
|
<div class="layout">
|
||||||
<header>
|
<header>
|
||||||
<h1>⚔️ WOS 쿠폰 자동 입력</h1>
|
<h1>⚔️ WOS 쿠폰 자동 입력</h1>
|
||||||
<p class="subtitle">FID를 입력하면 등록된 모든 쿠폰을 자동으로 지급합니다</p>
|
<p class="subtitle">FID를 입력하면 등록된 모든 쿠폰을 자동으로 지급합니다</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<div class="columns">
|
||||||
|
<div class="col-left">
|
||||||
|
<div class="card">
|
||||||
|
<h3 class="section-title">등록된 유저 ({{ store.savedUsers.length }}명)</h3>
|
||||||
|
<div class="user-list" v-if="store.savedUsers.length > 0">
|
||||||
|
<button
|
||||||
|
v-for="u in store.savedUsers"
|
||||||
|
:key="u.fid"
|
||||||
|
class="user-item"
|
||||||
|
:class="{ active: store.fid === u.fid }"
|
||||||
|
@click="selectUser(u.fid)"
|
||||||
|
>
|
||||||
|
<img :src="u.avatar_url" class="user-avatar" @error="onImgErr" />
|
||||||
|
<span class="user-name">{{ u.nickname }}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<p class="empty" v-else>등록된 유저가 없습니다.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-right">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="search-row">
|
<div class="search-row">
|
||||||
<input
|
<input
|
||||||
@ -21,22 +42,6 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<p class="error-msg" v-if="store.status === 'error'">{{ store.errorMsg }}</p>
|
<p class="error-msg" v-if="store.status === 'error'">{{ store.errorMsg }}</p>
|
||||||
|
|
||||||
<div class="saved-users" v-if="store.savedUsers.length > 0">
|
|
||||||
<span class="saved-label">등록된 유저 ({{ store.savedUsers.length }}명)</span>
|
|
||||||
<div class="chips">
|
|
||||||
<button
|
|
||||||
v-for="u in store.savedUsers"
|
|
||||||
:key="u.fid"
|
|
||||||
class="chip"
|
|
||||||
:class="{ active: store.fid === u.fid }"
|
|
||||||
@click="selectUser(u.fid)"
|
|
||||||
>
|
|
||||||
<img :src="u.avatar_url" class="chip-avatar" @error="onImgErr" />
|
|
||||||
<span>{{ u.nickname }}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<UserCard v-if="store.player" :player="store.player" :fid="store.fid" />
|
<UserCard v-if="store.player" :player="store.player" :fid="store.fid" />
|
||||||
@ -50,6 +55,8 @@
|
|||||||
<CouponManager />
|
<CouponManager />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -94,8 +101,8 @@ function onImgErr(e: Event) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.home {
|
.layout {
|
||||||
max-width: 640px;
|
max-width: 1100px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 32px 16px 60px;
|
padding: 32px 16px 60px;
|
||||||
}
|
}
|
||||||
@ -105,6 +112,21 @@ header {
|
|||||||
}
|
}
|
||||||
header h1 { font-size: 1.9rem; color: #f1f5f9; margin: 0 0 8px; }
|
header h1 { font-size: 1.9rem; color: #f1f5f9; margin: 0 0 8px; }
|
||||||
.subtitle { color: #64748b; margin: 0; font-size: 0.9rem; }
|
.subtitle { color: #64748b; margin: 0; font-size: 0.9rem; }
|
||||||
|
|
||||||
|
.columns {
|
||||||
|
display: flex;
|
||||||
|
gap: 16px;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
.col-left {
|
||||||
|
width: 220px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.col-right {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background: #1e293b;
|
background: #1e293b;
|
||||||
border: 1px solid #334155;
|
border: 1px solid #334155;
|
||||||
@ -114,6 +136,28 @@ header h1 { font-size: 1.9rem; color: #f1f5f9; margin: 0 0 8px; }
|
|||||||
}
|
}
|
||||||
.admin-card { border-style: dashed; border-color: #475569; }
|
.admin-card { border-style: dashed; border-color: #475569; }
|
||||||
.section-title { margin: 0 0 14px; color: #94a3b8; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
.section-title { margin: 0 0 14px; color: #94a3b8; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||||
|
|
||||||
|
.user-list { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 260px); overflow-y: auto; }
|
||||||
|
.user-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
background: #0f172a;
|
||||||
|
border: 1px solid #334155;
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #cbd5e1;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s;
|
||||||
|
text-align: left;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.user-item:hover { border-color: #60a5fa; color: #f1f5f9; }
|
||||||
|
.user-item.active { border-color: #3b82f6; background: #1e3a5f; color: #93c5fd; }
|
||||||
|
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
|
||||||
|
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
|
|
||||||
.search-row { display: flex; gap: 10px; }
|
.search-row { display: flex; gap: 10px; }
|
||||||
.input {
|
.input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@ -139,24 +183,5 @@ header h1 { font-size: 1.9rem; color: #f1f5f9; margin: 0 0 8px; }
|
|||||||
.btn-primary { background: #3b82f6; color: #fff; }
|
.btn-primary { background: #3b82f6; color: #fff; }
|
||||||
.btn-primary:hover:not(:disabled) { background: #2563eb; }
|
.btn-primary:hover:not(:disabled) { background: #2563eb; }
|
||||||
.error-msg { color: #f87171; font-size: 0.9rem; margin: 8px 0 0; }
|
.error-msg { color: #f87171; font-size: 0.9rem; margin: 8px 0 0; }
|
||||||
.empty-history { color: #475569; font-size: 0.9rem; margin: 0; text-align: center; }
|
.empty { color: #475569; font-size: 0.9rem; margin: 0; text-align: center; }
|
||||||
.saved-users { margin-top: 14px; }
|
|
||||||
.saved-label { color: #64748b; font-size: 0.8rem; display: block; margin-bottom: 8px; }
|
|
||||||
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
||||||
.chip {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
padding: 5px 12px 5px 6px;
|
|
||||||
background: #0f172a;
|
|
||||||
border: 1px solid #334155;
|
|
||||||
border-radius: 20px;
|
|
||||||
color: #cbd5e1;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all 0.15s;
|
|
||||||
}
|
|
||||||
.chip:hover { border-color: #60a5fa; color: #f1f5f9; }
|
|
||||||
.chip.active { border-color: #3b82f6; background: #1e3a5f; color: #93c5fd; }
|
|
||||||
.chip-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user