From 64fc023f7b50e2a860313a8405fcfeddb25b0bd2 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Tue, 7 Apr 2026 16:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=9C=AC=E5=9C=B0=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 10 ++ public/css/style.css | 6 +- public/index.html | 11 +- public/init.html | 3 - public/js/app.js | 27 +++- public/vendor/echarts.min.js | 45 +++++++ public/vendor/world.json | 1 + server/geo-service.js | 5 + server/index.js | 247 +++++++++++++++++++++++++++++++---- 9 files changed, 314 insertions(+), 41 deletions(-) create mode 100644 public/vendor/echarts.min.js create mode 100644 public/vendor/world.json diff --git a/.env.example b/.env.example index 9c76229..9310da4 100644 --- a/.env.example +++ b/.env.example @@ -7,3 +7,13 @@ PORT=3000 # Aggregation interval in milliseconds (default 5s) REFRESH_INTERVAL=5000 + +# Security +# Keep remote setup disabled unless you explicitly need to initialize from another host. +ALLOW_REMOTE_SETUP=false +COOKIE_SECURE=false +SESSION_TTL_SECONDS=86400 +PASSWORD_ITERATIONS=210000 + +# Runtime external data providers +ENABLE_EXTERNAL_GEO_LOOKUP=false diff --git a/public/css/style.css b/public/css/style.css index 32a7cd8..37bc33f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -51,8 +51,8 @@ --radius-xl: 20px; /* Typography */ - --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; - --font-mono: 'JetBrains Mono', 'Fira Code', monospace; + --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif; + --font-mono: 'Cascadia Mono', 'Consolas', 'Liberation Mono', monospace; } :root.light-theme { @@ -2788,4 +2788,4 @@ input:checked+.slider:before { .filings a { justify-content: center; } -} \ No newline at end of file +} diff --git a/public/index.html b/public/index.html index 6f4bb0e..04bea83 100644 --- a/public/index.html +++ b/public/index.html @@ -7,13 +7,8 @@ - - - - + - \ No newline at end of file + diff --git a/public/init.html b/public/init.html index 065108d..8f3a716 100644 --- a/public/init.html +++ b/public/init.html @@ -4,9 +4,6 @@ 系统初始化 - 数据可视化展示大屏 - - -