feat(admin): refresh YMB branding and creator workspace
web-ci / build (push) Waiting to run

This commit is contained in:
jianghaifeng committed 2026-11-18 17:52:09 +08:00
1 parent 236f30a470
commit 6d5a891af3
15 files changed
+333 -153

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ VITE_API_BASE_PATH=
VITE_BASE_PATH=/
# 标题
VITE_APP_TITLE=FruitShorts
VITE_APP_TITLE=YMB
# 是否全量引入element-plus样式
VITE_USE_ALL_ELEMENT_PLUS_STYLE=true
+1 -1
View File
@@ -20,7 +20,7 @@ VITE_SOURCEMAP=true
VITE_OUT_DIR=dist-dev
# 标题
VITE_APP_TITLE=FruitShorts
VITE_APP_TITLE=YMB
# 是否包分析
VITE_USE_BUNDLE_ANALYZER=false
+1 -1
View File
@@ -20,7 +20,7 @@ VITE_SOURCEMAP=false
VITE_OUT_DIR=dist-pro
# 标题
VITE_APP_TITLE=FruitShorts
VITE_APP_TITLE=YMB
# 是否包分析
VITE_USE_BUNDLE_ANALYZER=true
+1 -1
View File
@@ -20,7 +20,7 @@ VITE_SOURCEMAP=true
VITE_OUT_DIR=dist-test
# 标题
VITE_APP_TITLE=FruitShorts
VITE_APP_TITLE=YMB
# 是否包分析
VITE_USE_BUNDLE_ANALYZER=false
+73 -41
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/brand-mark.png" />
<link rel="icon" type="image/png" href="/ymb-mark-v2.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= title %></title>
</head>
@@ -32,12 +32,32 @@
}
.app-loading .app-loading-title {
margin-bottom: 30px;
font-size: 20px;
font-weight: bold;
margin-bottom: 24px;
text-align: center;
}
.app-loading .app-loading-brand-word {
margin-top: 2px;
font-family:
Inter,
ui-sans-serif,
system-ui,
-apple-system,
BlinkMacSystemFont,
sans-serif;
font-size: 21px;
font-weight: 800;
line-height: 1;
letter-spacing: 0.34em;
color: transparent;
text-indent: 0.34em;
background: linear-gradient(100deg, #ffb21a 0%, #ffd76a 48%, #ff6b4a 100%);
filter: drop-shadow(0 4px 12px rgb(255 130 55 / 24%));
animation: ymb-wordmark-breathe 1.8s ease-in-out infinite;
background-clip: text;
background-clip: text;
}
.app-loading .app-loading-logo {
width: 72px;
margin: 0 auto 15px;
@@ -47,66 +67,78 @@
.app-loading .app-loading-item {
position: relative;
display: inline-block;
width: 60px;
height: 60px;
width: 72px;
height: 72px;
vertical-align: middle;
border-radius: 50%;
animation: ymb-loading-pulse 1.4s ease-in-out infinite;
}
.app-loading .app-loading-outter {
position: absolute;
width: 100%;
height: 100%;
border: 4px solid #c4322a;
border-bottom: 0;
border-left-color: transparent;
.app-loading .app-loading-spinner {
display: flex;
width: 72px;
height: 18px;
align-items: center;
justify-content: center;
gap: 7px;
}
.app-loading .app-loading-spinner::before,
.app-loading .app-loading-spinner::after,
.app-loading .app-loading-dot {
width: 8px;
height: 8px;
background: #ffb21a;
border-radius: 50%;
animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
content: '';
animation: ymb-loading-dot 1.1s ease-in-out infinite;
}
.app-loading .app-loading-inner {
position: absolute;
top: calc(50% - 20px);
left: calc(50% - 20px);
width: 40px;
height: 40px;
border: 4px solid #ff8a72;
border-right: 0;
border-top-color: transparent;
border-radius: 50%;
animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
.app-loading .app-loading-spinner::after {
animation-delay: 0.18s;
}
@keyframes loader-outter {
0% {
transform: rotate(0deg);
}
.app-loading .app-loading-dot {
animation-delay: 0.36s;
}
@keyframes ymb-loading-dot {
0%,
80%,
100% {
transform: rotate(360deg);
opacity: 0.35;
transform: translateY(0);
}
40% {
opacity: 1;
transform: translateY(-5px);
}
}
@keyframes loader-inner {
0% {
transform: rotate(0deg);
}
@keyframes ymb-wordmark-breathe {
0%,
100% {
transform: rotate(-360deg);
opacity: 0.78;
transform: translateY(0);
}
50% {
opacity: 1;
transform: translateY(-1px);
}
}
</style>
<div class="app-loading">
<div class="app-loading-wrap">
<div class="app-loading-title">
<img src="/brand-mark.png" class="app-loading-logo" alt="Logo" />
<div class="app-loading-title"><%= title %></div>
<img src="/ymb-mark-v2.png" class="app-loading-logo" alt="YMB" />
<div class="app-loading-brand-word">YMB</div>
</div>
<div class="app-loading-item">
<div class="app-loading-outter"></div>
<div class="app-loading-inner"></div>
<div class="app-loading-spinner" role="status" aria-label="Loading">
<span class="app-loading-dot"></span>
</div>
</div>
</div>
</div>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

+1 -1
View File
@@ -22,7 +22,7 @@ appStore.initTheme()
<template>
<ConfigGlobal :size="currentSize">
<RouterView :class="greyMode ? `${prefixCls}-grey-mode` : ''" />
<footer class="app-copyright">© FruitShorts</footer>
<footer class="app-copyright">© YMB</footer>
</ConfigGlobal>
</template>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

+2 -2
View File
@@ -104,8 +104,8 @@ export default {
small: 'Small'
},
login: {
welcome: 'Short-drama workspace',
consoleLabel: 'Content Operations',
welcome: 'YMB Content Workspace',
consoleLabel: 'YMB Operations',
hint: 'Sign in with an admin account',
username: 'Username',
password: 'Password',
+2 -2
View File
@@ -104,8 +104,8 @@ export default {
small: '小'
},
login: {
welcome: '短剧内容管理',
consoleLabel: '内容运营后台',
welcome: 'YMB 内容管理',
consoleLabel: 'YMB 运营后台',
hint: '使用管理员账号进入工作台',
username: '用户名',
password: '密码',
+130 -2
View File
@@ -1,3 +1,5 @@
/* Author: fruit.com.cn */
/**
* 创作者中心(我的作品 / 作品编辑 / 收费配置 / 数据看板)。
* 只放这四个页面专属的类名;工具条、抽屉、看板卡片沿用 console.css。
@@ -10,6 +12,112 @@
flex-wrap: wrap;
}
.creator-overview {
display: grid;
grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
gap: 14px;
margin-bottom: 14px;
}
.creator-profile-summary,
.creator-quick-actions {
min-height: 148px;
}
.creator-profile-summary {
position: relative;
padding-right: 220px;
}
.creator-profile-code {
display: block;
margin-top: 8px;
color: #9a97a8;
font-size: 12px;
}
.creator-profile-stats {
display: flex;
gap: 28px;
margin-top: 22px;
}
.creator-profile-stats div {
display: flex;
flex-direction: column;
gap: 3px;
}
.creator-profile-stats b {
color: #302d44;
font-size: 22px;
font-weight: 700;
line-height: 1;
}
.creator-profile-stats span,
.creator-profile-contact {
color: #858b95;
font-size: 12px;
}
.creator-profile-contact {
position: absolute;
right: 18px;
bottom: 18px;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.creator-quick-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
.creator-quick-title {
color: #302d44;
font-size: 14px;
font-weight: 650;
}
.creator-quick-actions p {
margin: 7px 0 14px;
color: #858b95;
font-size: 12px;
line-height: 1.5;
}
.creator-status-alert {
margin-bottom: 14px;
}
.creator-status-alert .creator-profile-alert {
margin-top: 0;
}
.creator-tab-count {
display: inline-grid;
min-width: 20px;
height: 20px;
padding: 0 5px;
margin-left: 4px;
place-items: center;
border-radius: 10px;
background: #f2f3f6;
color: #727983;
font-size: 11px;
line-height: 20px;
}
.creator-action-chevron {
margin-left: 3px;
font-size: 12px;
}
.creator-profile-name {
color: #302d44;
font-size: 16px;
@@ -307,10 +415,17 @@ html.dark .creator-profile-name,
html.dark .creator-profile-meta b,
html.dark .creator-drama-title,
html.dark .creator-notice-title,
html.dark .creator-section-title {
html.dark .creator-section-title,
html.dark .creator-profile-stats b,
html.dark .creator-quick-title {
color: var(--el-text-color-primary);
}
html.dark .creator-tab-count {
background: var(--el-fill-color-light);
color: var(--el-text-color-secondary);
}
html.dark .creator-notice {
border-bottom-color: var(--el-border-color-light);
}
@@ -357,6 +472,20 @@ html.dark .creator-episode-cover {
}
@media (width <= 768px) {
.creator-overview {
grid-template-columns: 1fr;
}
.creator-profile-summary {
padding-right: 16px;
}
.creator-profile-contact {
position: static;
max-width: none;
margin-top: 16px;
}
.creator-desktop-only {
display: none;
}
@@ -461,4 +590,3 @@ html.dark .creator-episode-cover {
background: var(--el-fill-color-light);
}
}
+3 -7
View File
@@ -162,9 +162,8 @@ const themeChange = () => {
overflow: hidden;
color: #fff;
background:
radial-gradient(circle at 18% 18%, rgb(255 255 255 / 10%), transparent 28%),
radial-gradient(circle at 82% 78%, rgb(196 50 42 / 34%), transparent 34%),
linear-gradient(155deg, #17100f 0%, #241714 55%, #3b1d19 100%);
linear-gradient(90deg, rgb(22 5 33 / 84%) 0%, rgb(22 5 33 / 42%) 46%, rgb(22 5 33 / 12%) 100%),
url('../../assets/imgs/ymb-login-cover.png') center / cover no-repeat;
flex: 1.05;
flex-direction: column;
justify-content: space-between;
@@ -193,10 +192,7 @@ const themeChange = () => {
}
.hero-fruits {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
display: none;
}
.fruit {
+118 -94
View File
@@ -60,53 +60,85 @@ function openEdit(row) {
function openPublish() {
router.push('/creator-center/publish')
}
function resetDramas() {
dramas.keyword = ''
dramas.status = undefined
queryDramas()
}
async function handleRowAction(row, command) {
if (command === 'edit') return openEdit(row)
if (command === 'withdraw') return withdraw(row)
if (command === 'delete') return remove(row)
return submit(row, command)
}
</script>
<template>
<CreatorCenterPage>
<PageHeading
eyebrow="创作者中心"
title="我的作品"
description="查看作品与审核进度,提交上线 / 下线申请。"
title="创作者工作台"
description="作品发布、审核和数据都在这里完成。"
>
<el-button v-if="canEdit && !impersonating" type="primary" @click="openPublish"
>发布作品</el-button
>
</PageHeading>
<section v-loading="profileLoading" class="panel creator-profile">
<div class="creator-profile-main">
<span class="creator-profile-name">{{ profile?.name || '—' }}</span>
<el-tag
size="small"
effect="light"
:type="profile?.status === 'approved' ? 'success' : 'warning'"
>
{{ profile?.statusText || '—' }}
</el-tag>
<span class="console-muted">{{ profile?.code || '' }}</span>
<section v-loading="profileLoading" class="creator-overview">
<div class="panel creator-profile creator-profile-summary">
<div class="creator-profile-main">
<span class="creator-profile-name">{{ profile?.name || '—' }}</span>
<el-tag
size="small"
effect="light"
:type="profile?.status === 'approved' ? 'success' : 'warning'"
>
{{ profile?.statusText || '—' }}
</el-tag>
</div>
<span class="creator-profile-code">创作者编号 {{ profile?.code || '—' }}</span>
<div class="creator-profile-stats">
<div
><b>{{ profile?.dramaTotal ?? 0 }}</b
><span>作品</span></div
>
<div
><b>{{ dramas.total }}</b
><span>当前列表</span></div
>
<div
><b>{{ notices.rows.length }}</b
><span>通知</span></div
>
</div>
<div class="creator-profile-contact">
联系人:{{ profile?.contactName || '—' }} · {{ profile?.contactEmail || '—' }}
</div>
</div>
<div class="creator-profile-meta">
<span
>作品数 <b>{{ profile?.dramaTotal ?? 0 }}</b></span
>
<span
>联系人 <b>{{ profile?.contactName || '—' }}</b></span
>
<span
>联系邮箱 <b>{{ profile?.contactEmail || '—' }}</b></span
>
<div class="panel creator-quick-actions">
<div class="creator-quick-title">快速开始</div>
<p>一部作品只需经历:发布 → 编辑分集 → 提交审核。</p>
<el-button v-if="canEdit && !impersonating" type="primary" @click="openPublish">
发布第一部作品
</el-button>
<el-button v-else plain @click="activeTab = 'dramas'">查看我的作品</el-button>
</div>
</section>
<section v-if="profile && profile.status === 'rejected'" class="creator-status-alert">
<el-alert
v-if="profile && profile.status === 'rejected'"
class="creator-profile-alert"
type="error"
:closable="false"
show-icon
:title="`入驻审核未通过:${profile.auditNote || '未填写原因'}`"
/>
</section>
<section v-else-if="profile && profile.status !== 'approved'" class="creator-status-alert">
<el-alert
v-else-if="profile && profile.status !== 'approved'"
class="creator-profile-alert"
type="warning"
:closable="false"
@@ -117,7 +149,10 @@ function openPublish() {
<section class="panel creator-workspace-wrap">
<el-tabs v-model="activeTab" @tab-change="onTabChange">
<el-tab-pane label="我的作品" name="dramas">
<el-tab-pane name="dramas">
<template #label
>我的作品 <span class="creator-tab-count">{{ dramas.total }}</span></template
>
<div class="console-toolbar">
<el-input
v-model="dramas.keyword"
@@ -144,6 +179,7 @@ function openPublish() {
/>
</el-select>
<el-button type="primary" @click="queryDramas">查询</el-button>
<el-button text @click="resetDramas">重置</el-button>
<span class="console-count">共 {{ dramas.total }} 部作品</span>
</div>
@@ -154,7 +190,7 @@ function openPublish() {
row-key="id"
border
class="drama-el-table"
empty-text="还没有作品,点右上角「发布作品」开始"
empty-text="还没有作品,点击右上角「发布作品」开始"
>
<el-table-column label="作品" min-width="220">
<template #default="{ row }">
@@ -185,8 +221,11 @@ function openPublish() {
}}</el-tag>
</template>
</el-table-column>
<el-table-column prop="episodes" label="分集" width="80" />
<el-table-column prop="views" label="播放" width="100" />
<el-table-column label="数据" width="120">
<template #default="{ row }"
>{{ row.episodes || 0 }} 集 · {{ row.views || 0 }} 播放</template
>
</el-table-column>
<el-table-column label="审核进度" min-width="200">
<template #default="{ row }">
<div v-if="row.submissionStatus" class="creator-progress">
@@ -209,59 +248,42 @@ function openPublish() {
<el-table-column
prop="updatedAt"
label="更新时间"
min-width="165"
min-width="150"
:formatter="dateCell"
show-overflow-tooltip
/>
<el-table-column label="操作" width="280">
<el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }">
<div class="table-actions">
<el-button
v-if="canEdit && !impersonating"
type="primary"
size="small"
@click="openEdit(row)"
>编辑</el-button
<el-dropdown
v-if="canEdit && !impersonating"
trigger="click"
@command="(command) => handleRowAction(row, command)"
>
<el-button type="primary" plain size="small"
>操作 <span class="creator-action-chevron">⌄</span></el-button
>
<el-dropdown
v-if="canEdit && !impersonating && submitOptions(row).length"
trigger="click"
@command="(type) => submit(row, type)"
>
<el-button size="small">提交审核</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item
v-for="type in submitOptions(row)"
:key="type"
:command="type"
>
{{ submissionTypeText(type) }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<el-button
v-if="
canEdit &&
!impersonating &&
row.submissionId &&
['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
"
type="danger"
size="small"
@click="withdraw(row)"
>撤回</el-button
>
<el-button
v-if="canEdit && !impersonating"
text
type="danger"
size="small"
@click="remove(row)"
>删除</el-button
>
</div>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item command="edit">编辑作品</el-dropdown-item>
<el-dropdown-item
v-for="type in submitOptions(row)"
:key="type"
:command="type"
>{{ submissionTypeText(type) }}</el-dropdown-item
>
<el-dropdown-item
v-if="
row.submissionId &&
['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
"
command="withdraw"
>撤回提交</el-dropdown-item
>
<el-dropdown-item command="delete" divided>删除作品</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<span v-else class="console-muted">只读</span>
</template>
</el-table-column>
</el-table>
@@ -305,35 +327,34 @@ function openPublish() {
</div>
<span v-else class="console-muted">尚未提交</span>
<div v-if="canEdit && !impersonating" class="creator-drama-card-actions">
<el-button size="small" type="primary" @click="openEdit(row)">编辑</el-button>
<el-dropdown
v-if="submitOptions(row).length"
trigger="click"
@command="(type) => submit(row, type)"
@command="(command) => handleRowAction(row, command)"
>
<el-button size="small">提交审核</el-button>
<el-button size="small" type="primary" plain
>操作 <span class="creator-action-chevron">⌄</span></el-button
>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item command="edit">编辑作品</el-dropdown-item>
<el-dropdown-item
v-for="type in submitOptions(row)"
:key="type"
:command="type"
>{{ submissionTypeText(type) }}</el-dropdown-item
>
{{ submissionTypeText(type) }}
</el-dropdown-item>
<el-dropdown-item
v-if="
row.submissionId &&
['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
"
command="withdraw"
>撤回提交</el-dropdown-item
>
<el-dropdown-item command="delete" divided>删除作品</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<el-button
v-if="
row.submissionId && ['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
"
type="danger"
size="small"
@click="withdraw(row)"
>撤回</el-button
>
<el-button text type="danger" size="small" @click="remove(row)">删除</el-button>
</div>
</div>
</article>
@@ -353,7 +374,10 @@ function openPublish() {
</div>
</el-tab-pane>
<el-tab-pane label="通知" name="notices">
<el-tab-pane name="notices">
<template #label
>通知 <span class="creator-tab-count">{{ notices.rows.length }}</span></template
>
<div v-loading="notices.loading" class="creator-notice-list">
<el-empty v-if="!notices.rows.length" description="还没有审核结果通知" />
<div