feat: 新增通知推送功能及离线登录,优化重连逻辑
- 新增通知推送模块:支持 WebSocket 实时推送与轮询兜底,新增通知管理界面 - 新增离线登录功能:断网时凭本地 7 天授权票据自动登录或手动登录 - 优化 Electron 客户端 WebSocket 重连逻辑,避免死循环 - 调整工作流脚本,拆分重构合同相关分支逻辑 - 新增设备上报客户端版本字段,用于升级追踪与关旧依据
This commit is contained in:
@@ -7,270 +7,208 @@
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: "Comic Sans MS", "Comic Neue", "Segoe Print", "Marker Felt", "Bradley Hand", cursive;
|
||||
background-color: #fffdf3;
|
||||
background-image:
|
||||
repeating-linear-gradient(transparent 0 31px, rgba(120, 150, 210, .15) 31px 32px),
|
||||
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.035'/></svg>");
|
||||
color: #2b2b2b; font-size: 15px; min-height: 100vh;
|
||||
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
|
||||
background: #f5f7fa; color: #232a3a; font-size: 14px;
|
||||
}
|
||||
::selection { background: #ffe066; color: #2b2b2b; }
|
||||
::selection { background: #dbe6ff; color: #232a3a; }
|
||||
|
||||
/* ===== 手绘通用 ===== */
|
||||
.hand { border: 2.5px solid #2b2b2b; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
|
||||
.squiggle {
|
||||
display: inline-block; height: 7px; margin-top: 3px;
|
||||
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='7'><path d='M0 3 Q 10 0, 20 3 T 40 3 T 60 3 T 80 3 T 100 3 T 120 3 T 140 3' stroke='%23e8590c' stroke-width='2.6' fill='none' stroke-linecap='round'/></svg>");
|
||||
background-repeat: no-repeat; background-size: 100% 100%;
|
||||
}
|
||||
.pin { position: absolute; font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
|
||||
.tape {
|
||||
position: absolute; width: 92px; height: 26px; z-index: 2;
|
||||
background: rgba(255, 224, 130, .62);
|
||||
border-left: 2px dashed rgba(0,0,0,.18);
|
||||
border-right: 2px dashed rgba(0,0,0,.18);
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,.12);
|
||||
}
|
||||
|
||||
/* ===== 登录页 ===== */
|
||||
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
|
||||
.login-card {
|
||||
position: relative; width: 410px; background: #fffef8;
|
||||
border: 2.5px solid #2b2b2b;
|
||||
border-radius: 15px 255px 15px 255px / 255px 15px 255px 15px;
|
||||
box-shadow: 5px 7px 0 rgba(0,0,0,.12);
|
||||
padding: 44px 38px 36px; transform: rotate(-.6deg);
|
||||
}
|
||||
.login-card .tape { top: -14px; left: 50%; margin-left: -46px; transform: rotate(-3deg); }
|
||||
.login-card .pin { top: -12px; right: 22px; transform: rotate(12deg); }
|
||||
.login-card .emblem {
|
||||
width: 58px; height: 58px; border-radius: 50%;
|
||||
background: #fff; border: 3px solid #2b2b2b;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 800; font-size: 24px; color: #e8590c;
|
||||
transform: rotate(-7deg); box-shadow: 2px 3px 0 rgba(0,0,0,.14);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.login-card h2 { font-size: 27px; font-weight: 800; letter-spacing: .5px; }
|
||||
.login-card .login-sub { font-size: 13px; color: #868e96; font-weight: 700; margin: 4px 0 20px; }
|
||||
.login-field { position: relative; margin-bottom: 13px; }
|
||||
.login-field input {
|
||||
width: 100%; padding: 11px 44px 11px 14px;
|
||||
border: 2.5px solid #2b2b2b;
|
||||
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
|
||||
font-family: inherit; font-size: 15px; font-weight: 600; outline: none;
|
||||
background: #fff;
|
||||
}
|
||||
.login-field input:focus { background: #fff9db; }
|
||||
.eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 17px; user-select: none; }
|
||||
.login-card .btn { width: 100%; padding: 12px; font-size: 16px; margin-top: 4px; }
|
||||
.login-hint { margin-top: 14px; font-size: 12.5px; color: #868e96; font-weight: 700; }
|
||||
.login-msg {
|
||||
margin-top: 12px; background: #ffe3e3; color: #c92a2a;
|
||||
padding: 10px 12px; font-weight: 700; font-size: 13px;
|
||||
border: 2.5px dashed #c92a2a; border-radius: 15px 255px 15px 255px / 255px 15px 255px 15px;
|
||||
}
|
||||
|
||||
/* ===== 顶栏(便签条)===== */
|
||||
/* ===== 顶栏 ===== */
|
||||
.header {
|
||||
position: relative; background: #ffe066;
|
||||
border-bottom: 3px solid #2b2b2b;
|
||||
padding: 16px 30px;
|
||||
background: #fff; border-bottom: 1px solid #e8ecf1;
|
||||
padding: 12px 24px;
|
||||
display: flex; align-items: center; justify-content: space-between; gap: 16px;
|
||||
transform: rotate(-.35deg); margin: 0 -4px;
|
||||
box-shadow: 0 2px 8px -6px rgba(35, 42, 58, .25);
|
||||
}
|
||||
.header .pin.l { top: 6px; left: 14px; transform: rotate(-14deg); }
|
||||
.header .pin.r { top: 6px; right: 200px; transform: rotate(10deg); }
|
||||
.header .brand { display: flex; align-items: center; gap: 14px; }
|
||||
.header .brand { display: flex; align-items: center; gap: 12px; }
|
||||
.header .emblem {
|
||||
width: 48px; height: 48px; border-radius: 50%;
|
||||
background: #fff; border: 3px solid #2b2b2b;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 800; font-size: 21px; color: #e8590c;
|
||||
transform: rotate(-6deg); box-shadow: 2px 3px 0 rgba(0,0,0,.14);
|
||||
width: 38px; height: 38px; border-radius: 8px;
|
||||
display: grid; place-items: center;
|
||||
background: linear-gradient(135deg, #2f5cf0 0%, #0f9f9b 140%);
|
||||
color: #fff; font-size: 15px; font-weight: 800;
|
||||
box-shadow: 0 6px 14px -6px rgba(47, 92, 240, .5);
|
||||
}
|
||||
.header h1 { font-size: 23px; font-weight: 800; line-height: 1.1; }
|
||||
.header h1 .squiggle { width: 150px; }
|
||||
.header .sub { font-size: 12.5px; color: #5c5c5c; font-weight: 700; margin-top: 2px; }
|
||||
.header .actions { display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
.header h1 { font-size: 17px; font-weight: 700; line-height: 1.2; }
|
||||
.header .sub { font-size: 12px; color: #8a93a6; margin-top: 1px; }
|
||||
.header .actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
|
||||
/* ===== 统计条 ===== */
|
||||
.stats {
|
||||
display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
|
||||
padding: 22px 30px 18px;
|
||||
display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
|
||||
padding: 18px 24px 8px;
|
||||
}
|
||||
.stat {
|
||||
position: relative; background: #fffef8; padding: 12px 16px 13px;
|
||||
border: 2.5px solid #2b2b2b;
|
||||
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
|
||||
box-shadow: 3px 5px 0 rgba(0,0,0,.1);
|
||||
transition: transform .18s ease, box-shadow .18s ease;
|
||||
background: #fff; border: 1px solid #e8ecf1; border-radius: 10px;
|
||||
padding: 14px 18px; border-left: 4px solid #2f5cf0;
|
||||
box-shadow: 0 2px 8px -6px rgba(35, 42, 58, .2);
|
||||
}
|
||||
.stat:nth-child(odd) { transform: rotate(-1.2deg); }
|
||||
.stat:nth-child(even) { transform: rotate(1deg); }
|
||||
.stat:hover { transform: rotate(0) translateY(-3px); box-shadow: 5px 8px 0 rgba(0,0,0,.14); }
|
||||
.stat .tape { top: -11px; left: 50%; margin-left: -46px; transform: rotate(-2deg); width: 74px; height: 22px; }
|
||||
.stat .k { font-size: 12.5px; font-weight: 700; color: #868e96; letter-spacing: .5px; }
|
||||
.stat .v { font-size: 23px; font-weight: 800; margin-top: 3px; color: #2b2b2b; }
|
||||
.stat:nth-child(1) .v { color: #e8590c; }
|
||||
.stat:nth-child(2) .v { color: #1971c2; }
|
||||
.stat:nth-child(3) .v { color: #2f9e44; }
|
||||
.stat:nth-child(4) .v { color: #9c36b5; }
|
||||
.stat:nth-child(2) { border-left-color: #0f9f9b; }
|
||||
.stat:nth-child(3) { border-left-color: #1d9d5c; }
|
||||
.stat:nth-child(4) { border-left-color: #d97706; }
|
||||
.stat .k { font-size: 12px; color: #8a93a6; }
|
||||
.stat .v { font-size: 24px; font-weight: 700; margin-top: 3px; color: #232a3a; }
|
||||
|
||||
/* ===== 工具栏 ===== */
|
||||
.toolbar {
|
||||
display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
|
||||
padding: 8px 30px 18px;
|
||||
display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
|
||||
padding: 10px 24px 16px;
|
||||
}
|
||||
.toolbar input[type="text"] {
|
||||
padding: 9px 14px; border: 2.5px solid #2b2b2b;
|
||||
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
|
||||
font-family: inherit; font-size: 14px; font-weight: 600; outline: none;
|
||||
width: 280px; background: #fff;
|
||||
padding: 8px 12px; border: 1px solid #d9dee7; border-radius: 6px;
|
||||
font-family: inherit; font-size: 14px; outline: none;
|
||||
width: 280px; background: #fff; transition: border-color .15s, box-shadow .15s;
|
||||
}
|
||||
.toolbar input[type="text"]:focus { background: #fff9db; }
|
||||
.toolbar .hint { color: #868e96; font-size: 12.5px; font-weight: 700; }
|
||||
.toolbar input[type="text"]:focus { border-color: #2f5cf0; box-shadow: 0 0 0 3px rgba(47, 92, 240, .12); }
|
||||
.toolbar .hint { color: #8a93a6; font-size: 12px; }
|
||||
|
||||
/* ===== 按钮(标记笔)===== */
|
||||
/* ===== 按钮 ===== */
|
||||
.btn {
|
||||
font-family: inherit; font-weight: 700; font-size: 14.5px;
|
||||
border: 2.5px solid #2b2b2b;
|
||||
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
|
||||
background: #fff; color: #2b2b2b;
|
||||
padding: 9px 18px; cursor: pointer;
|
||||
box-shadow: 2px 3px 0 rgba(0,0,0,.14);
|
||||
transition: transform .12s ease, background .12s ease;
|
||||
font-family: inherit; font-size: 14px;
|
||||
border: 1px solid #d9dee7; border-radius: 6px;
|
||||
background: #fff; color: #3b4358;
|
||||
padding: 8px 16px; cursor: pointer;
|
||||
transition: all .15s;
|
||||
user-select: none;
|
||||
}
|
||||
.btn:hover { transform: rotate(-1.6deg) scale(1.04); }
|
||||
.btn:active { transform: rotate(0) translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.14); }
|
||||
.btn-primary { background: #ffe066; }
|
||||
.btn-primary:hover { background: #ffd43b; }
|
||||
.btn-success { background: #b2f2bb; }
|
||||
.btn-success:hover { background: #8ce99a; }
|
||||
.btn:hover { border-color: #2f5cf0; color: #2f5cf0; background: #f5f8ff; }
|
||||
.btn:active { transform: translateY(1px); }
|
||||
.btn-primary { background: #2f5cf0; border-color: #2f5cf0; color: #fff; }
|
||||
.btn-primary:hover { background: #2246c0; border-color: #2246c0; color: #fff; }
|
||||
.btn-success { background: #1d9d5c; border-color: #1d9d5c; color: #fff; }
|
||||
.btn-success:hover { background: #178048; border-color: #178048; color: #fff; }
|
||||
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.upload-btn input[type="file"] { display: none; }
|
||||
.tag {
|
||||
display: inline-block; padding: 6px 12px;
|
||||
border: 2.5px solid #2b2b2b;
|
||||
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
|
||||
font-size: 13px; font-weight: 700; background: #ffd8a8; color: #2b2b2b;
|
||||
transform: rotate(-1deg); box-shadow: 2px 3px 0 rgba(0,0,0,.1);
|
||||
display: inline-block; padding: 4px 10px; border-radius: 4px;
|
||||
font-size: 12px; font-weight: 600; background: #e8f0ff; color: #2f5cf0;
|
||||
border: 1px solid #c9d9ff;
|
||||
}
|
||||
|
||||
/* ===== 状态条(标记笔高亮)===== */
|
||||
.status-bar { display: none; padding: 11px 30px; font-weight: 700; font-size: 14px; }
|
||||
.status-bar.ok { display: block; background: #fff3bf; color: #2b2b2b; border-bottom: 2.5px dashed #f59f00; }
|
||||
.status-bar.err { display: block; background: #ffe3e3; color: #c92a2a; border-bottom: 2.5px dashed #e03131; }
|
||||
/* ===== 状态条 ===== */
|
||||
.status-bar { display: none; padding: 10px 24px; font-size: 13px; }
|
||||
.status-bar.ok { display: block; background: #e6f7ee; color: #1d9d5c; border-bottom: 1px solid #bfe8d2; }
|
||||
.status-bar.err { display: block; background: #fdeeee; color: #d6453d; border-bottom: 1px solid #f5c6c2; }
|
||||
|
||||
.main { padding: 8px 30px 30px; }
|
||||
.main { padding: 6px 24px 26px; }
|
||||
|
||||
/* ===== 主卡片(纸页 + 折角)===== */
|
||||
/* ===== 加载中 ===== */
|
||||
.loading { padding: 70px; text-align: center; font-size: 15px; color: #8a93a6; }
|
||||
|
||||
/* ===== 主卡片 ===== */
|
||||
.card {
|
||||
position: relative; background: #fffef8;
|
||||
border: 2.5px solid #2b2b2b;
|
||||
border-radius: 15px 255px 15px 255px / 255px 15px 255px 15px;
|
||||
box-shadow: 5px 7px 0 rgba(0,0,0,.1);
|
||||
transform: rotate(.2deg);
|
||||
}
|
||||
.card > .tape { top: -13px; left: 50%; margin-left: -46px; transform: rotate(-3deg); }
|
||||
.card::after {
|
||||
content: ""; position: absolute; top: 0; right: 0;
|
||||
width: 0; height: 0;
|
||||
border-style: solid;
|
||||
border-width: 0 0 30px 30px;
|
||||
border-color: transparent transparent #ffe066 transparent;
|
||||
filter: drop-shadow(-2px 2px 1px rgba(0,0,0,.08));
|
||||
}
|
||||
|
||||
/* ===== 加载中(翻本子)===== */
|
||||
.loading {
|
||||
padding: 70px; text-align: center; font-weight: 800; font-size: 18px; color: #495057;
|
||||
}
|
||||
.loading .pen { display: inline-block; animation: pen 1.1s ease-in-out infinite; }
|
||||
@keyframes pen {
|
||||
0%, 100% { transform: rotate(-8deg) translateY(0); }
|
||||
50% { transform: rotate(10deg) translateY(-6px); }
|
||||
background: #fff; border: 1px solid #e8ecf1; border-radius: 10px;
|
||||
box-shadow: 0 2px 8px -6px rgba(35, 42, 58, .2);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ===== 表格 ===== */
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th {
|
||||
background: #fff3bf; color: #2b2b2b; text-align: left; cursor: pointer; user-select: none;
|
||||
padding: 11px 14px; font-weight: 800; letter-spacing: .3px;
|
||||
border-bottom: 3px solid #2b2b2b; font-size: 14px; white-space: nowrap;
|
||||
background: #f7f9fc; color: #4a5468; text-align: left; cursor: pointer; user-select: none;
|
||||
padding: 11px 14px; font-weight: 600; letter-spacing: .2px;
|
||||
border-bottom: 1px solid #e8ecf1; font-size: 13px; white-space: nowrap;
|
||||
}
|
||||
th .arrow { color: #e8590c; margin-left: 3px; }
|
||||
td { padding: 11px 14px; border-bottom: 2px dashed #ced4da; font-weight: 600; vertical-align: middle; }
|
||||
th .arrow { color: #2f5cf0; margin-left: 3px; }
|
||||
td { padding: 11px 14px; border-bottom: 1px solid #f0f2f6; font-weight: 400; vertical-align: middle; }
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tbody tr:hover td { background: #ffecb3; }
|
||||
.fname-cell { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
|
||||
.filename { font-weight: 800; word-break: break-all; }
|
||||
.fname-meta { display: flex; gap: 8px; align-items: center; }
|
||||
tbody tr:hover td { background: #f5f8ff; }
|
||||
/* 文件名列:限宽 + 超长省略号 */
|
||||
.fname-col { min-width: 220px; max-width: 420px; width: 34%; }
|
||||
.fname-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
|
||||
.filename { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.fname-meta { display: flex; gap: 8px; align-items: center; min-width: 0; }
|
||||
.ext {
|
||||
display: inline-block; padding: 1px 8px;
|
||||
border: 2px solid #2b2b2b; border-radius: 50%;
|
||||
background: #d0ebff; font-size: 10px; font-weight: 800; color: #1971c2;
|
||||
transform: rotate(-4deg);
|
||||
display: inline-block; padding: 1px 7px; flex-shrink: 0;
|
||||
border: 1px solid #c9d9ff; border-radius: 4px;
|
||||
background: #e8f0ff; font-size: 10px; font-weight: 700; color: #2f5cf0;
|
||||
}
|
||||
.sha { font-family: "Courier New", Consolas, monospace; color: #868e96; font-size: 11.5px; cursor: help; font-weight: 700; }
|
||||
tbody tr:hover .sha { color: #2b2b2b; }
|
||||
.empty { padding: 46px 20px; text-align: center; font-weight: 700; font-size: 15px; color: #2b2b2b; }
|
||||
.empty svg { margin-bottom: 14px; }
|
||||
.empty .et { display: inline-block; border: 2.5px dashed #adb5bd;
|
||||
border-radius: 15px 255px 15px 255px / 255px 15px 255px 15px;
|
||||
padding: 10px 26px; background: #fffdf3; }
|
||||
a.dl, a.cp, a.rm { text-decoration: none; font-weight: 800; font-size: 13.5px; padding: 0 3px; margin-right: 6px; }
|
||||
a.dl { color: #1971c2; background: linear-gradient(transparent 62%, #a5d8ff 62%); }
|
||||
a.dl:hover { background: #a5d8ff; }
|
||||
a.cp { color: #2f9e44; background: linear-gradient(transparent 62%, #b2f2bb 62%); }
|
||||
a.cp:hover { background: #b2f2bb; }
|
||||
a.rm { color: #e03131; background: linear-gradient(transparent 62%, #ffc9c9 62%); }
|
||||
a.rm:hover { background: #ffc9c9; }
|
||||
.who { font-weight: 800; }
|
||||
.who.center { color: #1971c2; }
|
||||
.sha {
|
||||
font-family: ui-monospace, Consolas, "Courier New", monospace;
|
||||
color: #9aa2b4; font-size: 11.5px; cursor: help; flex: 1; min-width: 0;
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
tbody tr:hover .sha { color: #4a5468; }
|
||||
.empty { padding: 46px 20px; text-align: center; font-size: 14px; color: #9aa2b4; }
|
||||
.empty .et { display: inline-block; padding: 10px 26px; }
|
||||
a.dl, a.cp, a.rm { font-weight: 600; font-size: 13px; text-decoration: none; margin-right: 10px; }
|
||||
a.dl { color: #2f5cf0; }
|
||||
a.dl:hover { text-decoration: underline; }
|
||||
a.cp { color: #1d9d5c; }
|
||||
a.cp:hover { text-decoration: underline; }
|
||||
a.rm { color: #d6453d; }
|
||||
a.rm:hover { text-decoration: underline; }
|
||||
.who { font-weight: 600; }
|
||||
.who.center { color: #2f5cf0; }
|
||||
|
||||
.footer {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 12px 18px; border-top: 2.5px dashed #adb5bd;
|
||||
font-weight: 700; font-size: 12.5px; color: #495057;
|
||||
padding: 11px 16px; border-top: 1px solid #f0f2f6;
|
||||
font-size: 12px; color: #9aa2b4;
|
||||
}
|
||||
.footer .dot { color: #e8590c; }
|
||||
|
||||
/* ===== 修改密码弹窗(便签)===== */
|
||||
/* ===== 登录页 ===== */
|
||||
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #f5f7fa; }
|
||||
.login-card {
|
||||
width: 380px; background: #fff;
|
||||
border: 1px solid #e8ecf1; border-radius: 12px;
|
||||
box-shadow: 0 10px 34px -18px rgba(35, 42, 58, .35);
|
||||
padding: 36px 34px 30px;
|
||||
}
|
||||
.login-card .emblem {
|
||||
width: 48px; height: 48px; border-radius: 12px;
|
||||
display: grid; place-items: center;
|
||||
background: linear-gradient(135deg, #2f5cf0 0%, #0f9f9b 140%);
|
||||
color: #fff; font-size: 18px; font-weight: 800;
|
||||
box-shadow: 0 8px 18px -8px rgba(47, 92, 240, .55);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.login-card h2 { font-size: 20px; font-weight: 700; }
|
||||
.login-card .login-sub { font-size: 12.5px; color: #8a93a6; margin: 4px 0 22px; }
|
||||
.login-field { position: relative; margin-bottom: 14px; }
|
||||
.login-field input {
|
||||
width: 100%; padding: 10px 40px 10px 12px;
|
||||
border: 1px solid #d9dee7; border-radius: 6px;
|
||||
font-family: inherit; font-size: 14px; outline: none; background: #fff;
|
||||
transition: border-color .15s, box-shadow .15s;
|
||||
}
|
||||
.login-field input:focus { border-color: #2f5cf0; box-shadow: 0 0 0 3px rgba(47, 92, 240, .12); }
|
||||
.eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 15px; color: #8a93a6; user-select: none; }
|
||||
.login-card .btn { width: 100%; padding: 10px; font-size: 15px; margin-top: 2px; }
|
||||
.login-hint { margin-top: 14px; font-size: 12px; color: #9aa2b4; }
|
||||
.login-msg {
|
||||
margin-top: 12px; background: #fdeeee; color: #d6453d;
|
||||
padding: 9px 12px; font-size: 13px;
|
||||
border: 1px solid #f5c6c2; border-radius: 6px;
|
||||
}
|
||||
|
||||
/* ===== 修改密码弹窗 ===== */
|
||||
.mask {
|
||||
position: fixed; inset: 0; background: rgba(43,43,43,.45);
|
||||
position: fixed; inset: 0; background: rgba(20, 26, 40, .45);
|
||||
display: flex; align-items: center; justify-content: center; z-index: 99; padding: 24px;
|
||||
}
|
||||
.modal {
|
||||
position: relative; width: 410px; background: #fffef8;
|
||||
border: 2.5px solid #2b2b2b;
|
||||
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
|
||||
box-shadow: 6px 8px 0 rgba(0,0,0,.16); padding: 36px 34px 30px;
|
||||
transform: rotate(.5deg);
|
||||
width: 400px; background: #fff;
|
||||
border: 1px solid #e8ecf1; border-radius: 12px;
|
||||
box-shadow: 0 14px 40px -18px rgba(20, 26, 40, .45);
|
||||
padding: 26px 28px 22px;
|
||||
}
|
||||
.modal .tape { top: -13px; left: 50%; margin-left: -46px; transform: rotate(2deg); }
|
||||
.modal h3 { font-size: 21px; font-weight: 800; }
|
||||
.modal .msub { font-size: 12.5px; color: #868e96; font-weight: 700; margin: 3px 0 16px; }
|
||||
.modal h3 { font-size: 17px; font-weight: 700; }
|
||||
.modal .msub { font-size: 12px; color: #8a93a6; margin: 3px 0 16px; }
|
||||
.modal input {
|
||||
width: 100%; padding: 10px 14px; border: 2.5px solid #2b2b2b;
|
||||
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
|
||||
font-family: inherit; font-size: 14px; font-weight: 600; outline: none;
|
||||
margin-bottom: 12px; background: #fff;
|
||||
width: 100%; padding: 9px 12px; border: 1px solid #d9dee7; border-radius: 6px;
|
||||
font-family: inherit; font-size: 14px; outline: none; margin-bottom: 12px;
|
||||
transition: border-color .15s, box-shadow .15s;
|
||||
}
|
||||
.modal input:focus { background: #fff9db; }
|
||||
.modal .mrow { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
|
||||
.modal input:focus { border-color: #2f5cf0; box-shadow: 0 0 0 3px rgba(47, 92, 240, .12); }
|
||||
.modal .mrow { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
|
||||
.modal .pwd-msg {
|
||||
margin-bottom: 12px; background: #ffe3e3; color: #c92a2a;
|
||||
padding: 9px 12px; font-weight: 700; font-size: 12.5px;
|
||||
border: 2.5px dashed #c92a2a;
|
||||
border-radius: 15px 255px 15px 255px / 255px 15px 255px 15px;
|
||||
margin-bottom: 12px; background: #fdeeee; color: #d6453d;
|
||||
padding: 9px 12px; font-size: 12.5px;
|
||||
border: 1px solid #f5c6c2; border-radius: 6px;
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.stats { grid-template-columns: repeat(2, 1fr); }
|
||||
th:nth-child(4), td:nth-child(4), th:nth-child(5), td:nth-child(5) { display: none; }
|
||||
.header .pin.r { display: none; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@@ -279,8 +217,6 @@
|
||||
<!-- 登录界面 -->
|
||||
<div class="login-wrap" v-if="!loggedIn">
|
||||
<div class="login-card">
|
||||
<span class="tape"></span>
|
||||
<span class="pin">📌</span>
|
||||
<div class="emblem">37</div>
|
||||
<h2>文件服务器管理</h2>
|
||||
<div class="login-sub">37DU 内网文件服务器 · 管理台</div>
|
||||
@@ -300,12 +236,10 @@
|
||||
<!-- 主界面 -->
|
||||
<template v-else>
|
||||
<div class="header">
|
||||
<span class="pin l">📌</span>
|
||||
<span class="pin r">📌</span>
|
||||
<div class="brand">
|
||||
<div class="emblem">37</div>
|
||||
<div>
|
||||
<h1>文件服务器管理 <span class="squiggle"></span></h1>
|
||||
<h1>文件服务器管理</h1>
|
||||
<div class="sub">{{ baseUrl }} · 登录用户:{{ tokenUser }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -317,10 +251,10 @@
|
||||
</div>
|
||||
|
||||
<div class="stats">
|
||||
<div class="stat"><span class="tape"></span><div class="k">文件数</div><div class="v">{{ totalCount }}</div></div>
|
||||
<div class="stat"><span class="tape"></span><div class="k">总大小</div><div class="v">{{ totalSizeText }}</div></div>
|
||||
<div class="stat"><span class="tape"></span><div class="k">总下载</div><div class="v">{{ totalDownloads }}</div></div>
|
||||
<div class="stat"><span class="tape"></span><div class="k">最近上传</div><div class="v" style="font-size:15px;line-height:1.4">{{ lastUploadText }}</div></div>
|
||||
<div class="stat"><div class="k">文件数</div><div class="v">{{ totalCount }}</div></div>
|
||||
<div class="stat"><div class="k">总大小</div><div class="v">{{ totalSizeText }}</div></div>
|
||||
<div class="stat"><div class="k">总下载</div><div class="v">{{ totalDownloads }}</div></div>
|
||||
<div class="stat"><div class="k">最近上传</div><div class="v" style="font-size:16px;font-weight:600">{{ lastUploadText }}</div></div>
|
||||
</div>
|
||||
|
||||
<div class="toolbar">
|
||||
@@ -337,24 +271,23 @@
|
||||
<div class="status-bar" :class="statusClass">{{ statusMsg }}</div>
|
||||
|
||||
<div class="main">
|
||||
<div class="loading" v-if="loading"><span class="pen">✏️</span> 翻本子中…</div>
|
||||
<div class="loading" v-if="loading">加载中…</div>
|
||||
<div class="card" v-else>
|
||||
<span class="tape"></span>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:42px">#</th>
|
||||
<th @click="sortBy('filename')">文件名<span class="arrow" v-if="sortKey==='filename'">{{ sortDir===1?'▲':'▼' }}</span></th>
|
||||
<th class="fname-col" @click="sortBy('filename')">文件名<span class="arrow" v-if="sortKey==='filename'">{{ sortDir===1?'▲':'▼' }}</span></th>
|
||||
<th style="width:90px" @click="sortBy('size')">大小<span class="arrow" v-if="sortKey==='size'">{{ sortDir===1?'▲':'▼' }}</span></th>
|
||||
<th style="width:160px" @click="sortBy('created')">上传时间<span class="arrow" v-if="sortKey==='created'">{{ sortDir===1?'▲':'▼' }}</span></th>
|
||||
<th style="width:90px">上传人</th>
|
||||
<th style="width:70px" @click="sortBy('downloads')">下载<span class="arrow" v-if="sortKey==='downloads'">{{ sortDir===1?'▲':'▼' }}</span></th>
|
||||
<th style="width:190px">操作</th>
|
||||
<th style="width:150px">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody v-if="sortedFiles.length">
|
||||
<tr v-for="(f, i) in sortedFiles" :key="f.fid">
|
||||
<td style="color:#adb5bd;font-weight:800">{{ i + 1 }}</td>
|
||||
<td style="color:#c0c6d0;font-weight:600">{{ i + 1 }}</td>
|
||||
<td>
|
||||
<div class="fname-cell">
|
||||
<span class="filename">{{ f.filename }}</span>
|
||||
@@ -377,25 +310,13 @@
|
||||
</tbody>
|
||||
<tbody v-else>
|
||||
<tr><td colspan="7">
|
||||
<div class="empty">
|
||||
<svg width="150" height="120" viewBox="0 0 150 120" fill="none" stroke="#2b2b2b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M20 36 Q22 31 27 31 L56 31 L67 41 L129 41"/>
|
||||
<path d="M15 41 L135 41 Q139 42 139 46 L139 96 Q139 101 134 101 L16 101 Q11 101 11 96 L11 46 Q11 42 15 41 Z"/>
|
||||
<path d="M18 51 L132 51" stroke="#ffd43b" stroke-width="5" opacity=".65"/>
|
||||
<path d="M96 22 L110 13"/>
|
||||
<path d="M112 28 L128 20"/>
|
||||
<path d="M86 14 L92 4"/>
|
||||
<path d="M102 8 l13 8 -6 10 -13 -8 z" transform="rotate(-12 108 17)"/>
|
||||
<path d="M82 4 l10 6 -5 8 -10 -6 z" transform="rotate(-30 87 11)"/>
|
||||
</svg>
|
||||
<div class="et">📭 暂无文件{{ keyword ? '(与搜索条件匹配)' : '' }}</div>
|
||||
</div>
|
||||
<div class="empty"><div class="et">📭 暂无文件{{ keyword ? '(与搜索条件匹配)' : '' }}</div></div>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footer">
|
||||
<span>37DU <span class="dot">✏️</span> 内网文件服务器</span>
|
||||
<span>DOODLE ADMIN v2.2</span>
|
||||
<span>37DU 内网文件服务器</span>
|
||||
<span>ADMIN v2.3</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -403,7 +324,6 @@
|
||||
<!-- 修改密码弹窗 -->
|
||||
<div class="mask" v-if="showPwdModal">
|
||||
<div class="modal">
|
||||
<span class="tape"></span>
|
||||
<h3>修改密码</h3>
|
||||
<div class="msub">修改后需重新登录</div>
|
||||
<div class="pwd-msg" v-if="pwdMsg">{{ pwdMsg }}</div>
|
||||
|
||||
Reference in New Issue
Block a user