feat(export): 恢复旧导出引擎并加固换行与舍入、新增采纳来源溯源与项目目录排序

This commit is contained in:
lianjianwei2024
2026-11-06 10:15:07 +08:00
parent 0dcdddc4a1
commit f142910bbd
26 changed files with 1832 additions and 934 deletions

View File

@@ -238,7 +238,9 @@ def _integrity_page():
"""N1 完整性拦截页(自包含):文件被改时的唯一可见页面。"""
return """<!DOCTYPE html>
<html lang="zh"><head><meta charset="utf-8"><title>软件文件校验失败</title>
<style>body{font-family:"Microsoft YaHei",sans-serif;background:#f0f2f5;display:flex;
<style>@font-face{font-family:"Noto Sans SC";src:url("/fonts/NotoSansSC-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Noto Sans SC";src:url("/fonts/NotoSansSC-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
body{font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;background:#f0f2f5;display:flex;
align-items:center;justify-content:center;min-height:100vh;margin:0}
.c{background:#fff;border-radius:10px;box-shadow:0 2px 12px rgba(0,0,0,.08);
max-width:520px;padding:32px 36px}h1{font-size:19px;color:#b02a2a;margin:0 0 12px}
@@ -415,8 +417,10 @@ def gate_page(reason):
_PAGE = ("""<!doctype html><html lang="zh-CN"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>软件授权</title><style>
@font-face{font-family:"Noto Sans SC";src:url("/fonts/NotoSansSC-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Noto Sans SC";src:url("/fonts/NotoSansSC-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Microsoft YaHei",system-ui,sans-serif;background:#f2f4f8;
body{font-family:"Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;background:#f2f4f8;
min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;color:#1c2733}
.card{background:#fff;border-radius:10px;box-shadow:0 6px 24px rgba(16,35,61,.10);
width:520px;max-width:100%;overflow:hidden}