first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>直播联动后台</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Generated
+1303
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "live-streaming-admin",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --host 127.0.0.1 --port 5173",
|
||||
"build": "vite build"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^7.0.0"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,799 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f5f7f6;
|
||||
--panel: #ffffff;
|
||||
--panel-soft: #f9faf9;
|
||||
--line: #dfe6e2;
|
||||
--line-strong: #cbd6d0;
|
||||
--text: #15201b;
|
||||
--muted: #66746d;
|
||||
--green: #237b58;
|
||||
--green-soft: #e8f4ee;
|
||||
--blue: #326fd1;
|
||||
--blue-soft: #eaf1ff;
|
||||
--red: #c94444;
|
||||
--red-soft: #fff0f0;
|
||||
--amber: #a66a00;
|
||||
--shadow: 0 8px 24px rgba(24, 36, 30, 0.08);
|
||||
font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.auth-shell {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
width: min(460px, 100%);
|
||||
padding: 28px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.auth-card h1 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
button, input, textarea, select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
height: 34px;
|
||||
border: 1px solid var(--line-strong);
|
||||
border-radius: 7px;
|
||||
padding: 0 12px;
|
||||
background: #fff;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:hover { border-color: #9fb1a8; }
|
||||
button:disabled { opacity: .55; cursor: not-allowed; }
|
||||
|
||||
.primary {
|
||||
color: #fff;
|
||||
background: var(--green);
|
||||
border-color: var(--green);
|
||||
}
|
||||
|
||||
.secondary {
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.danger {
|
||||
color: var(--red);
|
||||
background: var(--red-soft);
|
||||
border-color: #efc3c3;
|
||||
}
|
||||
|
||||
.shell {
|
||||
display: grid;
|
||||
grid-template-columns: 236px minmax(0, 1fr);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
padding: 22px 16px;
|
||||
background: #0f1d17;
|
||||
color: #edf5f0;
|
||||
}
|
||||
|
||||
.brand {
|
||||
padding: 4px 6px 18px;
|
||||
border-bottom: 1px solid rgba(255,255,255,.1);
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.brand-sub {
|
||||
margin-top: 4px;
|
||||
color: rgba(237,245,240,.62);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.nav button {
|
||||
justify-content: flex-start;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
border: 0;
|
||||
color: rgba(237,245,240,.72);
|
||||
background: transparent;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.nav button.active,
|
||||
.nav button:hover {
|
||||
color: #fff;
|
||||
background: rgba(255,255,255,.1);
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
position: absolute;
|
||||
left: 22px;
|
||||
right: 22px;
|
||||
bottom: 22px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
color: rgba(237,245,240,.72);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 999px;
|
||||
background: #9ca3af;
|
||||
}
|
||||
.status-dot.ok { background: #43c383; box-shadow: 0 0 0 4px rgba(67,195,131,.14); }
|
||||
.status-dot.danger { background: #ef6666; box-shadow: 0 0 0 4px rgba(239,102,102,.14); }
|
||||
|
||||
.main {
|
||||
padding: 24px 28px 48px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
h1, h2, p { margin: 0; }
|
||||
h1 { font-size: 24px; }
|
||||
h2 { font-size: 16px; margin-bottom: 14px; }
|
||||
.topbar p, .muted { color: var(--muted); font-size: 13px; margin-top: 5px; }
|
||||
.top-actions, .actions-row, .table-actions, .panel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.panel-head { justify-content: space-between; margin-bottom: 12px; }
|
||||
.panel-head h2 { margin-bottom: 0; }
|
||||
|
||||
.message-stack {
|
||||
position: fixed;
|
||||
top: 18px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 100;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
width: min(360px, calc(100vw - 32px));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.message {
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, .98);
|
||||
box-shadow: var(--shadow);
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.message.success {
|
||||
color: var(--green);
|
||||
border-color: #bfdfce;
|
||||
background: rgba(232, 244, 238, .98);
|
||||
}
|
||||
|
||||
.message.error {
|
||||
color: var(--red);
|
||||
border-color: #efc3c3;
|
||||
background: rgba(255, 240, 240, .98);
|
||||
}
|
||||
|
||||
.stack { display: grid; gap: 14px; }
|
||||
.metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
.metric, .panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.metric { padding: 16px; }
|
||||
.metric span { display: block; color: var(--muted); font-size: 13px; }
|
||||
.metric strong { display: block; margin-top: 8px; font-size: 26px; }
|
||||
.panel { padding: 16px; }
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.coordinate-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.redemption-create-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 0 12px;
|
||||
}
|
||||
|
||||
.redemption-enabled {
|
||||
min-height: 34px;
|
||||
align-self: end;
|
||||
margin-bottom: 12px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.warning-text {
|
||||
margin: 8px 0 12px;
|
||||
color: var(--red);
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.danger-panel {
|
||||
border-color: #efc3c3;
|
||||
background: #fffafa;
|
||||
}
|
||||
|
||||
label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
input, textarea, select {
|
||||
width: 100%;
|
||||
min-height: 34px;
|
||||
border: 1px solid var(--line-strong);
|
||||
border-radius: 7px;
|
||||
padding: 7px 9px;
|
||||
background: #fff;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
textarea { min-height: 78px; resize: vertical; }
|
||||
input:focus, textarea:focus, select:focus {
|
||||
outline: 2px solid rgba(35,123,88,.18);
|
||||
border-color: var(--green);
|
||||
}
|
||||
|
||||
.inline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.inline input { width: auto; min-height: auto; }
|
||||
.file-row input { padding: 6px; }
|
||||
|
||||
.bilibili-qr-login,
|
||||
.netease-qr-login {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
margin-top: 16px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.bilibili-qr-login .panel-head,
|
||||
.netease-qr-login .panel-head {
|
||||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.bilibili-qr-login .panel-head > div,
|
||||
.netease-qr-login .panel-head > div,
|
||||
.bilibili-qr-state,
|
||||
.bilibili-account-state {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.qr-status {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.qr-status.awaiting_confirm,
|
||||
.qr-status.completed {
|
||||
color: var(--green);
|
||||
}
|
||||
|
||||
.qr-status.expired,
|
||||
.qr-status.failed {
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.bilibili-qr-body {
|
||||
display: grid;
|
||||
grid-template-columns: 196px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.bilibili-qr-image {
|
||||
width: 196px;
|
||||
height: 196px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.bilibili-qr-state span,
|
||||
.bilibili-account-state span {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 120px minmax(0, 1fr);
|
||||
gap: 10px 14px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.info-grid label {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
.info-grid span {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.url-list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.url-item {
|
||||
display: grid;
|
||||
grid-template-columns: 88px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
min-height: 34px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 7px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.url-item span {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.url-item a {
|
||||
min-width: 0;
|
||||
color: var(--blue);
|
||||
overflow-wrap: anywhere;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 14px;
|
||||
}
|
||||
th, td {
|
||||
padding: 10px 8px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
text-align: left;
|
||||
}
|
||||
th {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.search { width: 220px; }
|
||||
.empty {
|
||||
color: var(--muted);
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-width: 86px;
|
||||
height: 24px;
|
||||
justify-content: center;
|
||||
border-radius: 999px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--muted);
|
||||
background: #eef2ef;
|
||||
}
|
||||
.pill.running { color: var(--green); background: var(--green-soft); }
|
||||
.pill.failed, .pill.degraded { color: var(--red); background: var(--red-soft); }
|
||||
.pill.reconnecting, .pill.starting { color: var(--amber); background: #fff7e8; }
|
||||
.pill.stopped { color: #6b7280; background: #f1f3f2; }
|
||||
.error-cell {
|
||||
max-width: 360px;
|
||||
color: var(--red);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.row-admin { background: var(--green-soft); }
|
||||
.tag-admin {
|
||||
display: inline-block;
|
||||
margin-left: 6px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 999px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
background: var(--green);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.rule-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 132px 1.3fr 92px 96px 64px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.rule-row .inline { margin: 0; color: var(--text); }
|
||||
|
||||
.logs-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 14px;
|
||||
}
|
||||
.log {
|
||||
min-height: 520px;
|
||||
max-height: 620px;
|
||||
overflow: auto;
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: #101814;
|
||||
color: #dbe8e0;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.raw-panel { display: grid; gap: 12px; }
|
||||
.raw-editor {
|
||||
min-height: 620px;
|
||||
font-family: "Cascadia Code", Consolas, monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.cmd-grid {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
.cmd-block {
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.cmd-row {
|
||||
display: grid;
|
||||
grid-template-columns: 160px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
.cmd-toggle {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
}
|
||||
.cmd-label {
|
||||
font-weight: 600;
|
||||
}
|
||||
.cmd-arg-hint {
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.cmd-aliases {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.role-chip-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.role-chip-row.compact {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.role-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.role-chip input {
|
||||
width: auto;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.rule-card {
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.song-current {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.song-current > div {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.song-current-card {
|
||||
grid-template-columns: 72px minmax(0, 1fr) !important;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.song-cover {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 10px;
|
||||
object-fit: cover;
|
||||
background: #eef2f7;
|
||||
}
|
||||
|
||||
.song-cover-placeholder {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--muted);
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.song-current-text {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.song-current strong {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.song-current small,
|
||||
.small {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.list-block {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.list-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
justify-content: space-between;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.list-row strong {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.wide-search {
|
||||
width: min(420px, 100%);
|
||||
}
|
||||
|
||||
.mini-check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0 8px 4px 0;
|
||||
font-size: 12px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.mini-check input {
|
||||
width: auto;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 1240px) {
|
||||
.metrics, .form-grid, .logs-grid { grid-template-columns: 1fr; }
|
||||
.redemption-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
html,
|
||||
body {
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.message-stack {
|
||||
top: 12px;
|
||||
left: 12px;
|
||||
right: 12px;
|
||||
transform: none;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.shell {
|
||||
grid-template-columns: 1fr;
|
||||
max-width: 100vw;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
z-index: 20;
|
||||
height: auto;
|
||||
max-width: 100vw;
|
||||
padding: 14px 12px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
padding: 0 2px 12px;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-top: 12px;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.nav button {
|
||||
flex: 0 0 auto;
|
||||
width: auto;
|
||||
height: 34px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
position: static;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.main {
|
||||
max-width: 100vw;
|
||||
padding: 16px 12px 32px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.top-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.top-actions button {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.metrics {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.metric {
|
||||
padding: 13px;
|
||||
}
|
||||
|
||||
.metric strong {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
padding: 14px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
grid-template-columns: 92px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.url-item {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.rule-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.song-current {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.redemption-create-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.bilibili-qr-body {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.bilibili-qr-image {
|
||||
width: min(196px, 100%);
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
.actions-row,
|
||||
.table-actions,
|
||||
.panel-head {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.search {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.raw-editor,
|
||||
.log {
|
||||
min-height: 360px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
base: "/admin/",
|
||||
resolve: {
|
||||
alias: {
|
||||
vue: "vue/dist/vue.esm-bundler.js"
|
||||
}
|
||||
},
|
||||
define: {
|
||||
__VUE_OPTIONS_API__: true,
|
||||
__VUE_PROD_DEVTOOLS__: false,
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false
|
||||
},
|
||||
build: {
|
||||
outDir: "../../web/admin",
|
||||
emptyOutDir: true,
|
||||
sourcemap: false,
|
||||
assetsInlineLimit: 0,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: "assets/[name]-[hash].js",
|
||||
chunkFileNames: "assets/[name]-[hash].js",
|
||||
assetFileNames: "assets/[name]-[hash][extname]"
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user