DNF90 服务端与启动器完整源码(含 GM 工具功能增强)
服务端(Go): - GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面 - GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新 - 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新) - 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍 - 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0) - 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算 启动器(Python/JS): - 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭 - GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐) - 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
This commit is contained in:
commit
645b64fe21
4388 files changed
+1405457
No files matched your search
@@ -0,0 +1,424 @@
|
||||
/* ============================================================
|
||||
DNF90 GM 工具 — 精美深色主题样式
|
||||
============================================================ */
|
||||
:root {
|
||||
--bg-0: #0a0a12;
|
||||
--bg-1: #10101c;
|
||||
--bg-2: #16162a;
|
||||
--bg-3: #1d1d36;
|
||||
--panel: rgba(22, 22, 42, 0.72);
|
||||
--panel-solid: #16162a;
|
||||
--border: rgba(255, 255, 255, 0.07);
|
||||
--border-strong: rgba(255, 255, 255, 0.14);
|
||||
--text-0: #f2f3f8;
|
||||
--text-1: #c3c6d8;
|
||||
--text-2: #8a8ea8;
|
||||
--text-3: #5c6078;
|
||||
|
||||
--accent: #7c5cff;
|
||||
--accent-2: #b45cff;
|
||||
--accent-glow: rgba(124, 92, 255, 0.35);
|
||||
--cyan: #38d9f0;
|
||||
--gold: #ffc44d;
|
||||
--red: #ff5d6c;
|
||||
--green: #35d07f;
|
||||
--blue: #4d9fff;
|
||||
--orange: #ff8a4d;
|
||||
|
||||
--rarity-0: #9aa0b5; /* 普通 */
|
||||
--rarity-1: #5fd3ff; /* 高级 */
|
||||
--rarity-2: #6ea8ff; /* 稀有 */
|
||||
--rarity-3: #c37bff; /* 神器 */
|
||||
--rarity-4: #ffb84d; /* 传说 */
|
||||
--rarity-5: #ff7a59; /* 史诗 */
|
||||
--rarity-6: #ff5d6c; /* 神话 */
|
||||
|
||||
--radius: 14px;
|
||||
--radius-sm: 9px;
|
||||
--shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
|
||||
--font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
font-family: var(--font);
|
||||
color: var(--text-0);
|
||||
background:
|
||||
radial-gradient(1200px 700px at 15% -10%, rgba(124, 92, 255, 0.16), transparent 55%),
|
||||
radial-gradient(1000px 600px at 100% 0%, rgba(56, 217, 240, 0.10), transparent 50%),
|
||||
radial-gradient(900px 900px at 50% 120%, rgba(180, 92, 255, 0.12), transparent 55%),
|
||||
var(--bg-0);
|
||||
background-attachment: fixed;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
border-radius: 8px;
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); background-clip: padding-box; }
|
||||
|
||||
button { font-family: var(--font); cursor: pointer; }
|
||||
input, select, textarea {
|
||||
font-family: var(--font);
|
||||
color: var(--text-0);
|
||||
}
|
||||
|
||||
/* ---------------- 布局 ---------------- */
|
||||
.app {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
/* 侧边栏 */
|
||||
.sidebar {
|
||||
width: 220px;
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(180deg, rgba(22, 22, 42, 0.9), rgba(13, 13, 26, 0.95));
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20px 12px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 4px 10px 20px;
|
||||
}
|
||||
.logo-mark {
|
||||
width: 38px; height: 38px;
|
||||
border-radius: 11px;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 800; font-size: 18px; color: #fff;
|
||||
box-shadow: 0 0 22px var(--accent-glow);
|
||||
}
|
||||
.logo-title { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
|
||||
.logo-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
|
||||
|
||||
.nav-group {
|
||||
font-size: 10.5px;
|
||||
color: var(--text-3);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1.5px;
|
||||
padding: 16px 12px 6px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 10px;
|
||||
color: var(--text-1);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.18s;
|
||||
border: 1px solid transparent;
|
||||
user-select: none;
|
||||
}
|
||||
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-0); }
|
||||
.nav-item.active {
|
||||
background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(180, 92, 255, 0.12));
|
||||
color: #fff;
|
||||
border-color: rgba(124, 92, 255, 0.4);
|
||||
box-shadow: 0 0 18px rgba(124, 92, 255, 0.15);
|
||||
}
|
||||
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; }
|
||||
|
||||
.sidebar-foot {
|
||||
margin-top: auto;
|
||||
padding: 12px;
|
||||
font-size: 11px;
|
||||
color: var(--text-3);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.conn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
|
||||
.conn-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
|
||||
.conn-dot.off { background: var(--red); box-shadow: 0 0 8px var(--red); }
|
||||
|
||||
/* 主内容 */
|
||||
.main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
height: 58px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 0 22px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(16, 16, 28, 0.6);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
.topbar h1 { font-size: 17px; font-weight: 700; }
|
||||
.topbar .crumb { color: var(--text-3); font-size: 12px; }
|
||||
.topbar-spacer { flex: 1; }
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
/* ---------------- 通用组件 ---------------- */
|
||||
.card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px;
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.card + .card { margin-top: 16px; }
|
||||
.card-title {
|
||||
font-size: 15px; font-weight: 700; margin-bottom: 14px;
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
}
|
||||
.card-title .dot { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
|
||||
|
||||
.grid { display: grid; gap: 16px; }
|
||||
.grid-2 { grid-template-columns: 1fr 1fr; }
|
||||
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
|
||||
.grid-4 { grid-template-columns: repeat(4, 1fr); }
|
||||
@media (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
|
||||
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
|
||||
|
||||
/* 统计卡片 */
|
||||
.stat-card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 18px 20px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.stat-card .label { font-size: 12.5px; color: var(--text-2); }
|
||||
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -0.5px; }
|
||||
.stat-card .unit { font-size: 13px; color: var(--text-2); margin-left: 3px; font-weight: 500; }
|
||||
.stat-card .ico-bg {
|
||||
position: absolute; right: -10px; bottom: -14px;
|
||||
font-size: 70px; opacity: 0.08;
|
||||
}
|
||||
.stat-card.accent { border-color: rgba(124, 92, 255, 0.4); }
|
||||
.stat-card.accent .value { color: var(--accent); }
|
||||
|
||||
/* 按钮 */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
||||
padding: 9px 16px;
|
||||
border-radius: 9px;
|
||||
border: 1px solid var(--border-strong);
|
||||
background: var(--bg-3);
|
||||
color: var(--text-0);
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
transition: all 0.16s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:hover { background: var(--bg-2); border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
|
||||
.btn:active { transform: translateY(0); }
|
||||
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
border-color: transparent;
|
||||
box-shadow: 0 4px 18px var(--accent-glow);
|
||||
}
|
||||
.btn-primary:hover { filter: brightness(1.12); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
|
||||
.btn-danger { background: linear-gradient(135deg, #ff5d6c, #ff3d5a); border-color: transparent; }
|
||||
.btn-danger:hover { filter: brightness(1.1); background: linear-gradient(135deg, #ff5d6c, #ff3d5a); }
|
||||
.btn-ghost { background: transparent; }
|
||||
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
|
||||
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
|
||||
|
||||
/* 输入 */
|
||||
.field { display: flex; flex-direction: column; gap: 6px; }
|
||||
.field label { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
|
||||
.input, .select, .textarea {
|
||||
background: var(--bg-1);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 9px;
|
||||
padding: 9px 12px;
|
||||
font-size: 13.5px;
|
||||
color: var(--text-0);
|
||||
outline: none;
|
||||
transition: all 0.16s;
|
||||
width: 100%;
|
||||
}
|
||||
.input:focus, .select:focus, .textarea:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
|
||||
}
|
||||
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
|
||||
.select option { background: var(--bg-2); color: var(--text-0); }
|
||||
.textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
|
||||
|
||||
/* 表格 */
|
||||
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
|
||||
table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
thead th {
|
||||
text-align: left; padding: 11px 14px;
|
||||
background: var(--bg-2);
|
||||
color: var(--text-2);
|
||||
font-weight: 600; font-size: 12px;
|
||||
letter-spacing: 0.3px;
|
||||
position: sticky; top: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
tbody td { padding: 11px 14px; border-top: 1px solid var(--border); color: var(--text-1); }
|
||||
tbody tr { transition: background 0.12s; }
|
||||
tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
|
||||
|
||||
/* 标签 */
|
||||
.tag {
|
||||
display: inline-flex; align-items: center;
|
||||
padding: 3px 9px; border-radius: 20px;
|
||||
font-size: 11.5px; font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tag-green { background: rgba(53, 208, 127, 0.15); color: var(--green); }
|
||||
.tag-red { background: rgba(255, 93, 108, 0.15); color: var(--red); }
|
||||
.tag-gray { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
|
||||
.tag-gold { background: rgba(255, 196, 77, 0.15); color: var(--gold); }
|
||||
.tag-purple { background: rgba(124, 92, 255, 0.16); color: #b79bff; }
|
||||
|
||||
/* 稀有度 */
|
||||
.rarity-0 { color: var(--rarity-0); }
|
||||
.rarity-1 { color: var(--rarity-1); }
|
||||
.rarity-2 { color: var(--rarity-2); }
|
||||
.rarity-3 { color: var(--rarity-3); }
|
||||
.rarity-4 { color: var(--rarity-4); }
|
||||
.rarity-5 { color: var(--rarity-5); }
|
||||
.rarity-6 { color: var(--rarity-6); text-shadow: 0 0 10px rgba(255, 93, 108, 0.5); }
|
||||
|
||||
/* Toast */
|
||||
.toast-wrap {
|
||||
position: fixed; top: 20px; right: 20px; z-index: 999;
|
||||
display: flex; flex-direction: column; gap: 10px;
|
||||
}
|
||||
.toast {
|
||||
min-width: 240px; max-width: 360px;
|
||||
padding: 13px 16px;
|
||||
border-radius: 11px;
|
||||
background: var(--bg-2);
|
||||
border: 1px solid var(--border-strong);
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
|
||||
font-size: 13.5px;
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
animation: slideIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
|
||||
}
|
||||
.toast.ok { border-left: 3px solid var(--green); }
|
||||
.toast.err { border-left: 3px solid var(--red); }
|
||||
.toast.info { border-left: 3px solid var(--blue); }
|
||||
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
|
||||
/* Modal */
|
||||
.modal-mask {
|
||||
position: fixed; inset: 0; z-index: 900;
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
animation: fadeIn 0.2s;
|
||||
}
|
||||
.modal {
|
||||
width: 560px; max-width: 92vw; max-height: 86vh;
|
||||
background: var(--panel-solid);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.6);
|
||||
display: flex; flex-direction: column;
|
||||
animation: popIn 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
|
||||
overflow: hidden;
|
||||
}
|
||||
.modal.wide { width: 760px; }
|
||||
.modal-head {
|
||||
padding: 18px 22px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
font-weight: 700; font-size: 16px;
|
||||
}
|
||||
.modal-head .close {
|
||||
background: none; border: none; color: var(--text-2);
|
||||
font-size: 22px; line-height: 1; cursor: pointer;
|
||||
}
|
||||
.modal-head .close:hover { color: var(--text-0); }
|
||||
.modal-body { padding: 22px; overflow-y: auto; }
|
||||
.modal-foot {
|
||||
padding: 16px 22px; border-top: 1px solid var(--border);
|
||||
display: flex; justify-content: flex-end; gap: 10px;
|
||||
}
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
|
||||
/* 加载 */
|
||||
.loading {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
padding: 60px 0; gap: 16px; color: var(--text-2);
|
||||
}
|
||||
.spinner {
|
||||
width: 34px; height: 34px;
|
||||
border: 3px solid rgba(255,255,255,0.12);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
.empty {
|
||||
text-align: center; padding: 50px 20px; color: var(--text-3);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 徽章数值 */
|
||||
.num-gold { color: var(--gold); font-weight: 700; }
|
||||
.num-cyan { color: var(--cyan); font-weight: 700; }
|
||||
|
||||
/* 搜索栏 */
|
||||
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||||
.search-row .input { flex: 1; min-width: 160px; }
|
||||
|
||||
/* 角色头像占位 */
|
||||
.avatar {
|
||||
width: 40px; height: 40px; border-radius: 10px;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: #fff; font-weight: 700; font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 工具条 */
|
||||
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
|
||||
|
||||
/* 空状态提示 */
|
||||
.hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
|
||||
|
||||
/* 连接面板 */
|
||||
.conn-panel {
|
||||
display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
|
||||
padding: 14px 16px; border-radius: 12px;
|
||||
background: var(--bg-1); border: 1px solid var(--border);
|
||||
}
|
||||
.conn-panel .input { width: auto; }
|
||||
|
||||
/* 双列表单 */
|
||||
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
||||
.form-row .full { grid-column: 1 / -1; }
|
||||
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
|
||||
Reference in new issue
Block a user