sync update from LAN repo (source dhk-1 @ fc974e93)
This commit is contained in:
1 parent
a1fa13a238
commit
e2fea6a801
432 files changed
+68707
-2270
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
{"metadata": {"title": "驻印太美国军事群体专题数据库", "version": "V1.2", "language": "zh-CN", "generated_at": "2026-06-25", "scope": "公开资料研究型专题,覆盖驻日本、韩国、关岛等印太地区美国军事群体、基地社区、地方舆情、法律制度、环境健康、NEO与信息安全风险。", "safety_note": "本数据库只用于公开资料研究与专题展示,不包含非公开部署细节、敏感坐标、警备路线、具体集合点或可操作化攻击信息。", "primary_modules": ["基地档案", "地方舆情与民调", "历史事件", "人群画像", "SOFA与预算", "环境健康", "NEO与信息安全", "涉华涉台立场"]}, "overview_metrics": [{"label": "印太司令部全区军事人员", "value": "约36万", "note": "skill速查口径,需按DMDC或DoD最新口径周期更新"}, {"label": "驻日美军", "value": "约53,500", "note": "日本全境现役规模概数"}, {"label": "驻韩美军", "value": "约23,600—28,500", "note": "不同统计口径包括实际现役与政策上限口径"}, {"label": "关岛美军", "value": "约7,000+", "note": "不含全部家属、文职和承包商扩展口径"}, {"label": "驻日美军家属", "value": "约35,000", "note": "USFJ公开口径"}, {"label": "日本当地雇员", "value": "约25,000", "note": "驻日基地经济与同盟分担重要变量"}, {"label": "DoDEA太平洋学校", "value": "46所", "note": "服务太平洋美军与合格DoD文职子女"}, {"label": "核心矛盾", "value": "威慑 / 负担 / 法律 / 环境", "note": "专题分析四条主线"}], "tabs": [{"id": "overview", "name": "总览"}, {"id": "bases", "name": "基地档案"}, {"id": "opinion", "name": "地方舆情"}, {"id": "events", "name": "事件时间线"}, {"id": "groups", "name": "人群画像"}, {"id": "legal_budget", "name": "SOFA与预算"}, {"id": "environment", "name": "环境健康"}, {"id": "neo_opsec", "name": "NEO与信息安全"}, {"id": "geopolitics", "name": "涉华涉台"}, {"id": "schemas", "name": "数据字段"}], "bases": [{"id": "JP-YOKOTA-001", "name_cn": "横田空军基地", "name_en": "Yokota Air Base", "country_area": "日本", "region": "日本本土", "location": "东京都多摩地区,东京西北方向", "service": "空军/太空军/联合指挥", "command": "USFJ、第五空军、374th Airlift Wing", "core_position": "驻日美军司令部所在地;印太方向空运、后勤、联络和危机协调枢纽", "units": ["374th Airlift Wing", "第五空军相关机构", "USFJ总部", "多个任务伙伴"], "missions": ["战区空运", "人员与物资输送", "危机支援", "日美联合协调", "首都圈军事联络"], "population": "374th Airlift Wing支撑约11,500人的基地人口;USFJ整体包含约60,000名军人、35,000名家属、7,000名DoD文职/承包商与约25,000名日本雇员。", "community": "首都圈型基地,家属、文职、日方雇员、任务伙伴较多,具有总部—后勤—家庭社区复合属性。", "facilities": ["空运设施", "指挥办公设施", "住房", "学校", "家庭支援", "医疗与生活服务"], "controversies": ["噪音", "空域管制", "首都圈军事存在", "基地开放与周边秩序"], "opinion_tags": ["首都圈基地", "指挥中枢", "空运枢纽", "噪音", "空域"], "visual_hint": "作为驻日美军总部节点展示,并与横须贺、嘉手纳、岩国形成指挥—海军—空军—陆战队网络。", "risk_level": "中", "source_note": "USFJ与Yokota官方公开资料"}, {"id": "JP-YOKOSUKA-002", "name_cn": "横须贺海军基地", "name_en": "Commander Fleet Activities Yokosuka", "country_area": "日本", "region": "日本本土", "location": "神奈川县横须贺市", "service": "海军", "command": "Commander, Navy Region Japan;第七舰队支撑体系", "core_position": "第七舰队前沿部署核心母港之一,支撑航母打击群及前沿部署海军力量。", "units": ["第七舰队相关前沿部署单位", "舰艇维修与后勤单位", "港口保障单位"], "missions": ["舰艇母港", "舰队后勤", "维修", "家庭支援", "港口保障", "同盟联络"], "population": "港口城市型基地,军人、家属、文职、承包商与当地商业区互动频繁。", "community": "基地与横须贺城市经济、旅游、港口身份高度绑定,同时舰艇可见性强。", "facilities": ["港口", "舰艇支援设施", "家庭服务", "宗教服务", "住房", "生活配套", "紧急管理设施"], "controversies": ["核动力舰艇停靠", "港口安全", "夜间秩序", "地方商业依赖", "军人外出行为"], "opinion_tags": ["第七舰队", "航母母港", "港口城市", "地方商业", "核动力舰艇"], "visual_hint": "适合做港口—舰艇—城市经济三层图,不展示具体舰艇行动细节。", "risk_level": "中高", "source_note": "CFA Yokosuka官方公开资料与日媒公开报道"}, {"id": "JP-KADENA-003", "name_cn": "嘉手纳空军基地", "name_eLine truncated
|
||||
+786
@@ -0,0 +1,786 @@
|
||||
{
|
||||
"说明": "字段显示目录:值级隐藏(隐藏即 data.json 各条目该键清空,全部渲染路径生效)。",
|
||||
"fields": [
|
||||
{
|
||||
"label": "label",
|
||||
"pages": [
|
||||
"总览"
|
||||
],
|
||||
"description": "总览 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"label"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"pages": [
|
||||
"总览"
|
||||
],
|
||||
"description": "总览 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"value"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "note",
|
||||
"pages": [
|
||||
"总览"
|
||||
],
|
||||
"description": "总览 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"note"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "id",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"id"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "name_cn",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"name_cn"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "name_en",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"name_en"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "country_area",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"country_area"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "region",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"region"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "location",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"location"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "service",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"service"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "command",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"command"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "core_position",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"core_position"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "units",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"units"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "missions",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"missions"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "population",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"population"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "community",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"community"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "facilities",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"facilities"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "controversies",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"controversies"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "opinion_tags",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"opinion_tags"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "visual_hint",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"visual_hint"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "risk_level",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"risk_level"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "source_note",
|
||||
"pages": [
|
||||
"基地档案"
|
||||
],
|
||||
"description": "基地档案 数据字段(出现 13 条)",
|
||||
"keys": [
|
||||
"source_note"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "date",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"date"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "area",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"area"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "issue",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"issue"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "source_type",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"source_type"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "core_data",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"core_data"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "support",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"support"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "oppose",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"oppose"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "neutral",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"neutral"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "main_supporters",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"main_supporters"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "main_opponents",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"main_opponents"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "deep_conflict",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"deep_conflict"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_bases",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"related_bases"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "tags",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"tags"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "confidence",
|
||||
"pages": [
|
||||
"地方舆情"
|
||||
],
|
||||
"description": "地方舆情 数据字段(出现 11 条)",
|
||||
"keys": [
|
||||
"confidence"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "year",
|
||||
"pages": [
|
||||
"事件时间线"
|
||||
],
|
||||
"description": "事件时间线 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"year"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "title",
|
||||
"pages": [
|
||||
"事件时间线"
|
||||
],
|
||||
"description": "事件时间线 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"title"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "type",
|
||||
"pages": [
|
||||
"事件时间线"
|
||||
],
|
||||
"description": "事件时间线 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"type"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "actors",
|
||||
"pages": [
|
||||
"事件时间线"
|
||||
],
|
||||
"description": "事件时间线 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"actors"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "summary",
|
||||
"pages": [
|
||||
"事件时间线"
|
||||
],
|
||||
"description": "事件时间线 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"summary"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "impact",
|
||||
"pages": [
|
||||
"事件时间线"
|
||||
],
|
||||
"description": "事件时间线 数据字段(出现 8 条)",
|
||||
"keys": [
|
||||
"impact"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "name",
|
||||
"pages": [
|
||||
"人群画像"
|
||||
],
|
||||
"description": "人群画像 数据字段(出现 9 条)",
|
||||
"keys": [
|
||||
"name"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "category",
|
||||
"pages": [
|
||||
"人群画像"
|
||||
],
|
||||
"description": "人群画像 数据字段(出现 9 条)",
|
||||
"keys": [
|
||||
"category"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "profile",
|
||||
"pages": [
|
||||
"人群画像"
|
||||
],
|
||||
"description": "人群画像 数据字段(出现 9 条)",
|
||||
"keys": [
|
||||
"profile"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "needs",
|
||||
"pages": [
|
||||
"人群画像"
|
||||
],
|
||||
"description": "人群画像 数据字段(出现 9 条)",
|
||||
"keys": [
|
||||
"needs"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "pressures",
|
||||
"pages": [
|
||||
"人群画像"
|
||||
],
|
||||
"description": "人群画像 数据字段(出现 9 条)",
|
||||
"keys": [
|
||||
"pressures"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "risks",
|
||||
"pages": [
|
||||
"人群画像"
|
||||
],
|
||||
"description": "人群画像 数据字段(出现 9 条)",
|
||||
"keys": [
|
||||
"risks"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "display",
|
||||
"pages": [
|
||||
"人群画像"
|
||||
],
|
||||
"description": "人群画像 数据字段(出现 9 条)",
|
||||
"keys": [
|
||||
"display"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "topic",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 5 条)",
|
||||
"keys": [
|
||||
"topic"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "japan",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 5 条)",
|
||||
"keys": [
|
||||
"japan"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "korea",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 5 条)",
|
||||
"keys": [
|
||||
"korea"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "meaning",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 5 条)",
|
||||
"keys": [
|
||||
"meaning"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "period",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 6 条)",
|
||||
"keys": [
|
||||
"period"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "item",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 6 条)",
|
||||
"keys": [
|
||||
"item"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "amount",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 6 条)",
|
||||
"keys": [
|
||||
"amount"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "explain",
|
||||
"pages": [
|
||||
"SOFA与预算"
|
||||
],
|
||||
"description": "SOFA与预算 数据字段(出现 6 条)",
|
||||
"keys": [
|
||||
"explain"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "locations",
|
||||
"pages": [
|
||||
"环境健康"
|
||||
],
|
||||
"description": "环境健康 数据字段(出现 4 条)",
|
||||
"keys": [
|
||||
"locations"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "known_issue",
|
||||
"pages": [
|
||||
"环境健康"
|
||||
],
|
||||
"description": "环境健康 数据字段(出现 4 条)",
|
||||
"keys": [
|
||||
"known_issue"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "social_impact",
|
||||
"pages": [
|
||||
"环境健康"
|
||||
],
|
||||
"description": "环境健康 数据字段(出现 4 条)",
|
||||
"keys": [
|
||||
"social_impact"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "fields",
|
||||
"pages": [
|
||||
"环境健康"
|
||||
],
|
||||
"description": "环境健康 数据字段(出现 4 条)",
|
||||
"keys": [
|
||||
"fields"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "risk_trigger",
|
||||
"pages": [
|
||||
"NEO与信息安全"
|
||||
],
|
||||
"description": "NEO与信息安全 数据字段(出现 3 条)",
|
||||
"keys": [
|
||||
"risk_trigger"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "objects",
|
||||
"pages": [
|
||||
"NEO与信息安全"
|
||||
],
|
||||
"description": "NEO与信息安全 数据字段(出现 3 条)",
|
||||
"keys": [
|
||||
"objects"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "pressure",
|
||||
"pages": [
|
||||
"NEO与信息安全"
|
||||
],
|
||||
"description": "NEO与信息安全 数据字段(出现 3 条)",
|
||||
"keys": [
|
||||
"pressure"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "display_policy",
|
||||
"pages": [
|
||||
"NEO与信息安全"
|
||||
],
|
||||
"description": "NEO与信息安全 数据字段(出现 3 条)",
|
||||
"keys": [
|
||||
"display_policy"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "risk_type",
|
||||
"pages": [
|
||||
"NEO与信息安全"
|
||||
],
|
||||
"description": "NEO与信息安全 数据字段(出现 4 条)",
|
||||
"keys": [
|
||||
"risk_type"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "case",
|
||||
"pages": [
|
||||
"NEO与信息安全"
|
||||
],
|
||||
"description": "NEO与信息安全 数据字段(出现 4 条)",
|
||||
"keys": [
|
||||
"case"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "mechanism",
|
||||
"pages": [
|
||||
"NEO与信息安全"
|
||||
],
|
||||
"description": "NEO与信息安全 数据字段(出现 4 条)",
|
||||
"keys": [
|
||||
"mechanism"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "official_line",
|
||||
"pages": [
|
||||
"涉华涉台"
|
||||
],
|
||||
"description": "涉华涉台 数据字段(出现 5 条)",
|
||||
"keys": [
|
||||
"official_line"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "base_link",
|
||||
"pages": [
|
||||
"涉华涉台"
|
||||
],
|
||||
"description": "涉华涉台 数据字段(出现 5 条)",
|
||||
"keys": [
|
||||
"base_link"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "social_conflict",
|
||||
"pages": [
|
||||
"涉华涉台"
|
||||
],
|
||||
"description": "涉华涉台 数据字段(出现 5 条)",
|
||||
"keys": [
|
||||
"social_conflict"
|
||||
],
|
||||
"custom": false
|
||||
}
|
||||
]
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"系统": {
|
||||
"名称": "驻印太美国军事群体专题数据库",
|
||||
"版本": "V1.2",
|
||||
"说明": "公开资料研究型专题,覆盖驻日本、韩国、关岛等印太地区美国军事群体、基地社区、地方舆情、法律制度、环境健康、NEO与信息安全风险。"
|
||||
},
|
||||
"页面": [
|
||||
{
|
||||
"编号": "overview",
|
||||
"名称": "总览"
|
||||
},
|
||||
{
|
||||
"编号": "bases",
|
||||
"名称": "基地档案"
|
||||
},
|
||||
{
|
||||
"编号": "opinion",
|
||||
"名称": "地方舆情"
|
||||
},
|
||||
{
|
||||
"编号": "events",
|
||||
"名称": "事件时间线"
|
||||
},
|
||||
{
|
||||
"编号": "groups",
|
||||
"名称": "人群画像"
|
||||
},
|
||||
{
|
||||
"编号": "legal_budget",
|
||||
"名称": "SOFA与预算"
|
||||
},
|
||||
{
|
||||
"编号": "environment",
|
||||
"名称": "环境健康"
|
||||
},
|
||||
{
|
||||
"编号": "neo_opsec",
|
||||
"名称": "NEO与信息安全"
|
||||
},
|
||||
{
|
||||
"编号": "geopolitics",
|
||||
"名称": "涉华涉台"
|
||||
},
|
||||
{
|
||||
"编号": "schemas",
|
||||
"名称": "数据字段"
|
||||
}
|
||||
],
|
||||
"交互规则": {
|
||||
"默认展示": "overview"
|
||||
}
|
||||
}
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
/* no.11 页面运行时(结构化模板)。
|
||||
* 由 template_fill.compose_structured 内联进骨架的运行时注入点。
|
||||
* DB 从骨架 JSON 元素读取;MANIFEST/FIELDS 供页面隐藏/自定义模块/字段可见性。 */
|
||||
const DB=JSON.parse((document.getElementById("structured-data")||{textContent:"{}"}).textContent);
|
||||
const MANIFEST=JSON.parse((document.getElementById("structured-manifest")||{textContent:"{}"}).textContent);
|
||||
const FIELDS=(function(){try{var v=JSON.parse((document.getElementById("structured-fields")||{textContent:"[]"}).textContent);return Array.isArray(v)?v:((v&&v.fields)||[])}catch(x){return []}})();
|
||||
;const state = { active:'overview' };
|
||||
const $ = sel => document.querySelector(sel);
|
||||
const content = $('#content');
|
||||
|
||||
function esc(v){
|
||||
if(v === null || v === undefined) return '';
|
||||
return String(v).replace(/[&<>"']/g, s=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[s]));
|
||||
}
|
||||
function arr(v){ return Array.isArray(v) ? v : (v ? [v] : []); }
|
||||
function tags(list){ return arr(list).map(t=>`<span class="tag">${esc(t)}</span>`).join(''); }
|
||||
function riskClass(r){ if(!r) return 'medium'; if(r.includes('高')) return 'high'; if(r.includes('低')) return 'low'; return 'medium'; }
|
||||
function includesText(obj, q){ return JSON.stringify(obj).toLowerCase().includes(q.toLowerCase()); }
|
||||
function filterByRegion(list, region){ return !region || region==='全部' ? list : list.filter(x => (x.region||x.country_area||'').includes(region) || (x.area||'').includes(region)); }
|
||||
|
||||
/* ── 页面隐藏 / 头部同步 / 自定义模块 ── */
|
||||
function pageHidden(key){
|
||||
const pg=(MANIFEST['页面']||[]).find(p=>p['编号']===key);
|
||||
return !!(pg&&pg['隐藏']===true);
|
||||
}
|
||||
function visibleTabs(){return (DB.tabs||[]).filter(t=>!pageHidden(t.id))}
|
||||
function syncHeader(){
|
||||
const sys=(MANIFEST['系统']||{});
|
||||
if(sys['名称']){document.title=String(sys['名称']);const h1=document.querySelector('.title-block h1,h1');if(h1)h1.textContent=String(sys['名称'])}
|
||||
const sub=document.querySelector('.title-block p');if(sub&&sys['说明'])sub.textContent=String(sys['说明']);
|
||||
const ver=document.querySelector('.version');if(ver&&sys['版本'])ver.textContent=String(sys['版本']);
|
||||
}
|
||||
function renderCustomModules(pageId){
|
||||
const host=document.querySelector('#content .tab-section');
|
||||
if(!host)return;
|
||||
host.querySelectorAll('.custom-module').forEach(x=>x.remove());
|
||||
const list=((MANIFEST||{})['自定义模块']||[]).filter(m=>m&&m['页面']===pageId&&m.html);
|
||||
list.forEach(m=>{
|
||||
const sec=document.createElement('div');sec.className='custom-module';sec.style.margin='18px 0';
|
||||
sec.innerHTML='<h2 style=\'margin:0 0 10px;font-size:18px\'>'+esc(m['标题']||'自定义模块')+'</h2>'+m.html;
|
||||
host.appendChild(sec);
|
||||
});
|
||||
}
|
||||
(function(){
|
||||
const _initTabs=initTabs;
|
||||
initTabs=function(){const saved=DB.tabs;DB.tabs=visibleTabs();try{_initTabs()}finally{DB.tabs=saved}};
|
||||
const _render=render;
|
||||
render=function(){_render();renderCustomModules(state.active)};
|
||||
})();
|
||||
function applyPageVisibility(){
|
||||
if(pageHidden(state.active)){const first=visibleTabs()[0];if(first)state.active=first.id}
|
||||
}
|
||||
function initTabs(){
|
||||
$('#tabs').innerHTML = DB.tabs.map(t=>`<button class="tab-btn ${t.id===state.active?'active':''}" onclick="switchTab('${t.id}')">${esc(t.name)}</button>`).join('');
|
||||
}
|
||||
function switchTab(id){ state.active=id; initTabs(); render(); window.scrollTo({top:0,behavior:'smooth'}); }
|
||||
|
||||
function head(title, desc){ return `<div class="section-head"><div><h2>${esc(title)}</h2><p>${esc(desc)}</p></div></div>`; }
|
||||
|
||||
function renderOverview(){
|
||||
const stats = DB.overview_metrics.map(m=>`<div class="stat"><div class="value">${esc(m.value)}</div><div class="label">${esc(m.label)}</div><div class="note">${esc(m.note)}</div></div>`).join('');
|
||||
const baseCount = DB.bases.length, opinionCount = DB.local_opinion.length, eventCount = DB.events.length, groupCount = DB.groups.length;
|
||||
return `${head('专题总览','以“前沿威慑—基地社会—同盟成本—地方冲突—家庭压力—信息安全—台海/朝鲜半岛风险”为主线。')}
|
||||
<div class="stats-grid">${stats}</div>
|
||||
<div class="columns">
|
||||
<div class="list-card"><h3>数据库构成</h3><ul>
|
||||
<li>基地档案:${baseCount} 条</li><li>地方舆情/民调:${opinionCount} 条</li><li>历史事件:${eventCount} 条</li><li>人群画像:${groupCount} 类</li>
|
||||
<li>SOFA制度:${DB.legal_sofa.length} 条</li><li>预算条目:${DB.budget.length} 条</li><li>环境健康:${DB.environment.length} 条</li>
|
||||
</ul></div>
|
||||
<div class="list-card"><h3>专题主线</h3><ul>
|
||||
<li>基地网络:日本本土、冲绳、韩国、关岛三层结构。</li>
|
||||
<li>地方舆情:冲绳反基地、韩国全国/地方分裂、关岛原住民与住房压力。</li>
|
||||
<li>制度争议:SOFA、刑事管辖、环境进入权、承包商身份。</li>
|
||||
<li>风险维度:NEO家庭压力、OPSEC、台海和朝鲜半岛危机暴露。</li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<div class="note-box"><b>使用建议:</b>先用“基地档案”建立核心对象,再用“事件时间线”和“地方舆情”解释社会反应,最后用“SOFA与预算”“环境健康”“NEO与信息安全”补足专题深度。</div>`;
|
||||
}
|
||||
|
||||
function baseCard(b){
|
||||
return `<article class="card"><span class="risk ${riskClass(b.risk_level)}">风险${esc(b.risk_level||'中')}</span><h3>${esc(b.name_cn)}</h3><div class="sub">${esc(b.name_en)} · ${esc(b.country_area)} / ${esc(b.region)}</div>
|
||||
<div class="meta-row"><b>军种</b><span>${esc(b.service)}</span></div>
|
||||
<div class="meta-row"><b>上级</b><span>${esc(b.command)}</span></div>
|
||||
<div class="meta-row"><b>定位</b><span>${esc(b.core_position)}</span></div>
|
||||
<div class="tags">${tags(b.opinion_tags)}</div><button class="btn" onclick="openBase('${b.id}')">查看详情</button></article>`;
|
||||
}
|
||||
function renderBases(){
|
||||
const regions = ['全部', ...new Set(DB.bases.map(b=>b.region))];
|
||||
return `${head('基地详细档案','按地区、军种和关键词检索基地,点击卡片可查看完整画像。')}
|
||||
<div class="toolbar"><input class="input" id="baseSearch" placeholder="搜索:基地名、军种、争议、任务、标签..." oninput="updateBases()"><select class="select" id="baseRegion" onchange="updateBases()">${regions.map(r=>`<option>${esc(r)}</option>`).join('')}</select></div><div class="grid" id="baseGrid"></div>`;
|
||||
}
|
||||
function updateBases(){
|
||||
const q = ($('#baseSearch')?.value || '').trim(); const region = $('#baseRegion')?.value || '全部';
|
||||
let list = filterByRegion(DB.bases, region); if(q) list = list.filter(b=>includesText(b,q));
|
||||
$('#baseGrid').innerHTML = list.length ? list.map(baseCard).join('') : '<div class="empty">没有找到匹配基地。</div>';
|
||||
}
|
||||
function openBase(id){
|
||||
const b = DB.bases.find(x=>x.id===id); if(!b) return;
|
||||
const rows = [
|
||||
['基地ID', b.id], ['中文名', b.name_cn], ['英文名', b.name_en], ['国家/地区', b.country_area], ['区域', b.region], ['所在地', b.location], ['所属军种', b.service], ['上级体系', b.command], ['核心定位', b.core_position], ['主要单位', arr(b.units).join('、')], ['主要任务', arr(b.missions).join('、')], ['人员/社区', b.population], ['社区特征', b.community], ['主要设施', arr(b.facilities).join('、')], ['争议点', arr(b.controversies).join('、')], ['舆情标签', arr(b.opinion_tags).join('、')], ['可视化建议', b.visual_hint], ['风险等级', b.risk_level], ['资料来源说明', b.source_note]
|
||||
];
|
||||
openModal(b.name_cn, detailRows(rows));
|
||||
}
|
||||
|
||||
function renderOpinion(){
|
||||
const regions = ['全部', ...new Set(DB.local_opinion.map(o=>o.region))];
|
||||
return `${head('地方舆情与民调数据库','重点呈现冲绳、韩国、关岛三个典型场景:地方负担、全国/地方分裂、原住民与住房压力。')}
|
||||
<div class="toolbar"><input class="input" id="opSearch" placeholder="搜索:边野古、THAAD、关岛、住房、SOFA..." oninput="updateOpinion()"><select class="select" id="opRegion" onchange="updateOpinion()">${regions.map(r=>`<option>${esc(r)}</option>`).join('')}</select></div>
|
||||
<div class="table-wrap"><table><thead><tr><th>时间</th><th>地区</th><th>议题</th><th>核心数据</th><th>支持/反对</th><th>深层矛盾</th><th>标签</th></tr></thead><tbody id="opRows"></tbody></table></div>`;
|
||||
}
|
||||
function updateOpinion(){
|
||||
const q = ($('#opSearch')?.value || '').trim(); const region = $('#opRegion')?.value || '全部';
|
||||
let list = filterByRegion(DB.local_opinion, region); if(q) list = list.filter(o=>includesText(o,q));
|
||||
$('#opRows').innerHTML = list.map(o=>`<tr><td>${esc(o.date)}</td><td>${esc(o.area)}</td><td><b>${esc(o.issue)}</b><br><span class="sub">${esc(o.source_type)} / 可信度:${esc(o.confidence)}</span></td><td>${esc(o.core_data)}</td><td>支持:${esc(o.support)}<br>反对:${esc(o.oppose)}<br>中立:${esc(o.neutral)}</td><td>${esc(o.deep_conflict)}</td><td>${tags(o.tags)}</td></tr>`).join('') || '<tr><td colspan="7">没有匹配结果。</td></tr>';
|
||||
}
|
||||
|
||||
function renderEvents(){
|
||||
return `${head('历史事件时间线','将个案事件与SOFA、地方自治、环境健康、基地扩张和大国博弈连接。')}
|
||||
<div class="toolbar"><input class="input" id="eventSearch" placeholder="搜索:冲绳、SOFA、THAAD、PFAS、关岛..." oninput="updateEvents()"></div>
|
||||
<div class="timeline" id="eventTimeline"></div>`;
|
||||
}
|
||||
function updateEvents(){
|
||||
const q = ($('#eventSearch')?.value || '').trim(); let list = DB.events; if(q) list = list.filter(e=>includesText(e,q));
|
||||
$('#eventTimeline').innerHTML = list.map(e=>`<div class="event"><div class="year">${esc(e.date)} · ${esc(e.region)} · ${esc(e.type)}</div><h3>${esc(e.title)}</h3><p>${esc(e.summary)}</p><p><b>影响:</b>${esc(e.impact)}</p><p><b>深层矛盾:</b>${esc(e.deep_conflict)}</p><div class="tags">${tags(e.tags)}</div></div>`).join('') || '<div class="empty">没有匹配事件。</div>';
|
||||
}
|
||||
|
||||
function renderGroups(){
|
||||
return `${head('人群画像','把“美军群体”拆成军人、家属、文职、承包商、当地雇员和混合国籍家庭。')}
|
||||
<div class="toolbar"><input class="input" id="groupSearch" placeholder="搜索:配偶、子女、承包商、NEO、就业..." oninput="updateGroups()"></div><div class="grid" id="groupGrid"></div>`;
|
||||
}
|
||||
function updateGroups(){
|
||||
const q = ($('#groupSearch')?.value || '').trim(); let list = DB.groups; if(q) list = list.filter(g=>includesText(g,q));
|
||||
$('#groupGrid').innerHTML = list.map(g=>`<article class="card"><h3>${esc(g.name)}</h3><div class="sub">${esc(g.category)} · ${esc(g.display)}</div><p>${esc(g.profile)}</p><div class="meta-row"><b>主要需求</b><span>${esc(arr(g.needs).join('、'))}</span></div><div class="meta-row"><b>核心压力</b><span>${esc(arr(g.pressures).join('、'))}</span></div><div class="tags">${tags(g.risks)}</div></article>`).join('') || '<div class="empty">没有匹配画像。</div>';
|
||||
}
|
||||
|
||||
function renderLegalBudget(){
|
||||
return `${head('SOFA与预算','把法律身份、刑事管辖、环境进入权、同盟分担和基地建设放在同一制度框架下观察。')}
|
||||
<h3>SOFA制度要点</h3><div class="table-wrap"><table><thead><tr><th>议题</th><th>日本方向</th><th>韩国方向</th><th>专题解释</th></tr></thead><tbody>${DB.legal_sofa.map(x=>`<tr><td><b>${esc(x.topic)}</b></td><td>${esc(x.japan)}</td><td>${esc(x.korea)}</td><td>${esc(x.meaning)}</td></tr>`).join('')}</tbody></table></div>
|
||||
<h3 style="margin-top:20px">预算与同盟分担</h3><div class="table-wrap"><table><thead><tr><th>地区</th><th>时期</th><th>项目</th><th>金额/口径</th><th>说明</th><th>标签</th></tr></thead><tbody>${DB.budget.map(x=>`<tr><td>${esc(x.area)}</td><td>${esc(x.period)}</td><td><b>${esc(x.item)}</b></td><td>${esc(x.amount)}</td><td>${esc(x.explain)}</td><td>${tags(x.tags)}</td></tr>`).join('')}</tbody></table></div>`;
|
||||
}
|
||||
|
||||
function renderEnvironment(){
|
||||
return `${head('环境与公共健康','重点覆盖PFAS、噪音、土地占用、海洋生态等与基地社会关系最密切的议题。')}
|
||||
<div class="grid">${DB.environment.map(e=>`<article class="card"><h3>${esc(e.type)}</h3><div class="sub">涉及地点:${esc(arr(e.locations).join('、'))}</div><p><b>已知问题:</b>${esc(e.known_issue)}</p><p><b>社会影响:</b>${esc(e.social_impact)}</p><div class="meta-row"><b>字段</b><span>${esc(arr(e.fields).join('、'))}</span></div><div class="tags">${tags(e.tags)}</div></article>`).join('')}</div>`;
|
||||
}
|
||||
|
||||
function renderNeoOpsec(){
|
||||
return `${head('NEO与信息安全','以家庭风险、撤离资格、信息安全治理为主题,不展示具体路线、集合点或可操作细节。')}
|
||||
<div class="columns"><div><h3>NEO风险场景</h3>${DB.neo.map(n=>`<div class="list-card" style="margin-bottom:12px"><h3>${esc(n.region)}</h3><p><b>触发:</b>${esc(n.risk_trigger)}</p><p><b>对象:</b>${esc(n.objects)}</p><p><b>压力:</b>${esc(n.pressure)}</p><div class="tags">${tags(n.tags)}</div></div>`).join('')}</div>
|
||||
<div><h3>OPSEC风险类型</h3>${DB.opsec.map(o=>`<div class="list-card" style="margin-bottom:12px"><h3>${esc(o.risk_type)}</h3><p><b>案例:</b>${esc(o.case)}</p><p><b>对象:</b>${esc(o.objects)}</p><p><b>机制:</b>${esc(o.mechanism)}</p><p><b>展示口径:</b>${esc(o.display)}</p><div class="tags">${tags(o.tags)}</div></div>`).join('')}</div></div>`;
|
||||
}
|
||||
|
||||
function renderGeopolitics(){
|
||||
return `${head('涉华涉台与地缘风险','从第一岛链、台湾问题、朝鲜半岛、关岛角色与中国叙事五个角度呈现。')}
|
||||
<div class="grid">${DB.geopolitics.map(g=>`<article class="card"><h3>${esc(g.issue)}</h3><p><b>美国官方口径:</b>${esc(g.official_line)}</p><p><b>基地/群体关联:</b>${esc(g.base_link)}</p><p><b>社会争议:</b>${esc(g.social_conflict)}</p><div class="tags">${tags(g.tags)}</div></article>`).join('')}</div>`;
|
||||
}
|
||||
|
||||
function renderSchemas(){
|
||||
const boxes = Object.entries(DB.schemas).map(([k, fields])=>`<div class="schema-box"><div class="schema-title">${esc(k)}</div><div class="field-list">${fields.map(f=>`<span class="field">${esc(f)}</span>`).join('')}</div></div>`).join('');
|
||||
const gaps = DB.data_gaps.map(g=>`<tr><td><b>${esc(g.gap)}</b></td><td>${esc(g.priority)}</td><td>${esc(g.explain)}</td></tr>`).join('');
|
||||
return `${head('数据字段与后续缺口','用于后续扩展JSON、接入外部数据源和长期更新。')}${boxes}<h3>当前数据缺口</h3><div class="table-wrap"><table><thead><tr><th>缺口</th><th>优先级</th><th>说明</th></tr></thead><tbody>${gaps}</tbody></table></div>`;
|
||||
}
|
||||
|
||||
function detailRows(rows){
|
||||
return `<div class="detail-grid">${rows.map(([k,v])=>`<div class="detail-k">${esc(k)}</div><div class="detail-v">${esc(v)}</div>`).join('')}</div>`;
|
||||
}
|
||||
function openModal(title, body){ $('#modalTitle').textContent = title; $('#modalBody').innerHTML = body; $('#modalBackdrop').style.display='block'; document.body.style.overflow='hidden'; }
|
||||
function closeModal(){ $('#modalBackdrop').style.display='none'; document.body.style.overflow=''; }
|
||||
|
||||
function render(){
|
||||
let html = '';
|
||||
if(state.active==='overview') html = renderOverview();
|
||||
if(state.active==='bases') html = renderBases();
|
||||
if(state.active==='opinion') html = renderOpinion();
|
||||
if(state.active==='events') html = renderEvents();
|
||||
if(state.active==='groups') html = renderGroups();
|
||||
if(state.active==='legal_budget') html = renderLegalBudget();
|
||||
if(state.active==='environment') html = renderEnvironment();
|
||||
if(state.active==='neo_opsec') html = renderNeoOpsec();
|
||||
if(state.active==='geopolitics') html = renderGeopolitics();
|
||||
if(state.active==='schemas') html = renderSchemas();
|
||||
content.innerHTML = `<section class="tab-section active">${html}</section>`;
|
||||
if(state.active==='bases') updateBases();
|
||||
if(state.active==='opinion') updateOpinion();
|
||||
if(state.active==='events') updateEvents();
|
||||
if(state.active==='groups') updateGroups();
|
||||
}applyPageVisibility(); syncHeader(); initTabs(); render();
|
||||
/* ── 页面 JSON 编辑器 ── */
|
||||
(function(){
|
||||
"use strict";
|
||||
function clone(v){return JSON.parse(JSON.stringify(v))}
|
||||
function draftsToData(d){var o={};Object.keys(d).forEach(function(k){if(k!=='__manifest__')o[k]=d[k]});return o}
|
||||
function replaceInPlace(t,s){Object.keys(t).forEach(function(k){delete t[k]});Object.keys(s).forEach(function(k){t[k]=s[k]})}
|
||||
function buildDrafts(data,manifest){var o={__manifest__:clone(manifest)};Object.keys(data).forEach(function(k){o[k]=clone(data[k])});return o}
|
||||
const initialData=clone(DB),initialManifest=clone(MANIFEST);
|
||||
const overlay=document.getElementById('editorOverlay');
|
||||
if(!overlay)return;
|
||||
const fingerprint=(function(){let h=2166136261;const s=JSON.stringify(initialData)+'|'+JSON.stringify(initialManifest);for(let i=0;i<s.length;i++){h^=s.charCodeAt(i);h=Math.imul(h,16777619)}return (h>>>0).toString(36)})();
|
||||
const storageKey='structured-page-data-v1:'+fingerprint;
|
||||
function readLS(k){try{return window.localStorage?window.localStorage.getItem(k):null}catch(x){return null}}
|
||||
function writeLS(k,v){try{if(window.localStorage)window.localStorage.setItem(k,v)}catch(x){}}
|
||||
function removeLS(k){try{if(window.localStorage)window.localStorage.removeItem(k)}catch(x){}}
|
||||
(function(){const cached=readLS(storageKey);if(!cached)return;try{const parsed=JSON.parse(cached);if(parsed&&typeof parsed==='object'&&parsed.data&&typeof parsed.data==='object'){replaceInPlace(DB,parsed.data);if(parsed.manifest&&typeof parsed.manifest==='object')replaceInPlace(MANIFEST,parsed.manifest)}}catch(x){}})();
|
||||
const labels={};(MANIFEST['页面']||[]).forEach(function(p){if(p&&p['编号'])labels[p['编号']]=p['名称']||p['编号']});
|
||||
const modules=Object.keys(DB).filter(function(k){return k!=='metadata'&&k!=='tabs'&&k!=='schemas'&&k!=='data_gaps'}).concat(['__manifest__']);
|
||||
let active=modules[0]||'__manifest__';
|
||||
let drafts=buildDrafts(DB,MANIFEST);
|
||||
function moduleTitle(k){return k==='__manifest__'?'系统设置(MANIFEST)':(labels[k]||k)}
|
||||
const tabsEl=document.getElementById('editorTabs'),editor=document.getElementById('jsonEditor'),statusEl=document.getElementById('jsonStatus'),titleEl=document.getElementById('editorModuleTitle');
|
||||
function setStatus(ok,msg){statusEl.textContent=msg;statusEl.className='json-status '+(ok?'valid':'invalid')}
|
||||
function readEditor(){try{const p=JSON.parse(editor.value);if(!p||typeof p!=='object')throw new Error('模块必须是 JSON 对象或数组');setStatus(true,'JSON 有效');return p}catch(x){setStatus(false,'JSON 无效:'+x.message);return null}}
|
||||
function saveActiveDraft(){const p=readEditor();if(!p)return false;drafts[active]=p;return true}
|
||||
function loadEditor(){titleEl.textContent=moduleTitle(active);editor.value=JSON.stringify(drafts[active],null,2);setStatus(true,'JSON 有效')}
|
||||
function renderEditorTabs(){tabsEl.innerHTML='';modules.forEach(function(key){const b=document.createElement('button');b.type='button';b.className='editor-tab'+(key===active?' active':'');b.innerHTML='<b>'+esc(moduleTitle(key))+'</b><small>'+(key==='__manifest__'?'manifest.json':key)+'</small>';b.onclick=function(){if(key===active||!saveActiveDraft())return;active=key;renderEditorTabs();loadEditor()};tabsEl.appendChild(b)})}
|
||||
function closeEditor(){overlay.style.display='none'}
|
||||
function applyToPage(){if(!saveActiveDraft()){setStatus(false,'存在无效模块');return}replaceInPlace(DB,draftsToData(drafts));replaceInPlace(MANIFEST,drafts.__manifest__);closeEditor();applyPageVisibility();syncHeader();initTabs();render();writeLS(storageKey,JSON.stringify({data:DB,manifest:MANIFEST}))}
|
||||
function legacyCopy(text){const t=document.createElement('textarea');t.value=text;document.body.appendChild(t);t.select();try{document.execCommand('copy')}catch(x){}t.remove()}
|
||||
document.getElementById('openEditor').onclick=function(){drafts=buildDrafts(DB,MANIFEST);active=modules[0]||'__manifest__';renderEditorTabs();loadEditor();overlay.style.display='';setTimeout(function(){editor.focus()},40)};
|
||||
document.getElementById('closeEditor').onclick=closeEditor;
|
||||
document.addEventListener('keydown',function(ev){if(ev.key==='Escape'&&overlay.style.display!=='none')closeEditor()});
|
||||
document.getElementById('applyJson').onclick=applyToPage;
|
||||
document.getElementById('resetJson').onclick=function(){drafts=buildDrafts(initialData,initialManifest);active=modules[0]||'__manifest__';removeLS(storageKey);renderEditorTabs();loadEditor();setStatus(true,'已恢复默认数据,点击「应用到页面」生效')};
|
||||
document.getElementById('copyJson').onclick=function(){if(!saveActiveDraft())return;const text=JSON.stringify({data:draftsToData(drafts),manifest:drafts.__manifest__},null,2);if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(text).catch(function(){legacyCopy(text)});else legacyCopy(text)};
|
||||
document.getElementById('downloadJson').onclick=function(){if(!saveActiveDraft())return;const blob=new Blob([JSON.stringify({data:draftsToData(drafts),manifest:drafts.__manifest__},null,2)],{type:'application/json;charset=utf-8'});const link=document.createElement('a');link.href=URL.createObjectURL(blob);link.download='page-data.json';link.click();setTimeout(function(){URL.revokeObjectURL(link.href)},1000)};
|
||||
})();
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>驻印太美国军事群体专题数据库</title>
|
||||
<style>
|
||||
:root {
|
||||
--bg0:#5b0d14;
|
||||
--bg1:#7f1620;
|
||||
--bg2:#2b080b;
|
||||
--card:#ffffff;
|
||||
--ink:#241015;
|
||||
--muted:#6f5960;
|
||||
--line:#ead9dc;
|
||||
--soft:#fff7f8;
|
||||
--accent:#b6202d;
|
||||
--accent2:#f2d7dc;
|
||||
--ok:#1f7a4d;
|
||||
--warn:#a96b00;
|
||||
--danger:#b6202d;
|
||||
--shadow:0 18px 45px rgba(27,5,9,.18);
|
||||
}
|
||||
*{box-sizing:border-box}
|
||||
body{margin:0;font-family:"Microsoft YaHei", "PingFang SC", Arial, sans-serif;background:radial-gradient(circle at 20% 0%, #9e2430 0, var(--bg1) 22%, var(--bg0) 50%, var(--bg2) 100%);color:var(--ink);}
|
||||
.hero{max-width:1320px;margin:0 auto;padding:34px 24px 18px;color:#fff;}
|
||||
.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
|
||||
.title-block h1{font-size:34px;margin:0 0 10px;letter-spacing:.5px}
|
||||
.title-block p{margin:0;max-width:900px;line-height:1.75;color:#ffe9ed;font-size:14px}
|
||||
.version{border:1px solid rgba(255,255,255,.35);padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.1);white-space:nowrap;font-weight:700}
|
||||
.shell{max-width:1320px;margin:0 auto 40px;padding:0 24px 28px;}
|
||||
.panel{background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.45);border-radius:26px;box-shadow:var(--shadow);overflow:hidden;}
|
||||
.tabs{display:flex;gap:8px;overflow-x:auto;padding:14px 14px 0;background:linear-gradient(180deg,#fff,#fff8f9);border-bottom:1px solid var(--line);}
|
||||
.tab-btn{border:1px solid var(--line);background:#fff;color:var(--muted);padding:10px 16px;border-radius:999px;font-weight:700;cursor:pointer;white-space:nowrap;transition:.18s;}
|
||||
.tab-btn:hover{transform:translateY(-1px);border-color:#d9aab1;color:var(--accent)}
|
||||
.tab-btn.active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 8px 18px rgba(182,32,45,.22)}
|
||||
.content{padding:22px;}
|
||||
.tab-section{display:none}
|
||||
.tab-section.active{display:block}
|
||||
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px;}
|
||||
.section-head h2{margin:0;font-size:24px;color:#2b0c10}
|
||||
.section-head p{margin:6px 0 0;color:var(--muted);line-height:1.65}
|
||||
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 18px;}
|
||||
.input,.select{height:42px;border:1px solid var(--line);border-radius:14px;padding:0 12px;background:#fff;outline:none;color:var(--ink);}
|
||||
.input{min-width:260px;flex:1}
|
||||
.select{min-width:160px}
|
||||
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px;}
|
||||
.stat{background:linear-gradient(180deg,#fff,#fff6f7);border:1px solid var(--line);border-radius:20px;padding:16px;}
|
||||
.stat .value{font-size:26px;font-weight:900;color:var(--accent);margin-bottom:6px}
|
||||
.stat .label{font-weight:800;margin-bottom:8px}
|
||||
.stat .note{font-size:12px;color:var(--muted);line-height:1.5}
|
||||
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
|
||||
.card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 10px 26px rgba(58,16,23,.07);position:relative;overflow:hidden;}
|
||||
.card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent),#e8a1ab)}
|
||||
.card h3{margin:4px 0 6px;font-size:19px;color:#2b0c10}
|
||||
.sub{font-size:13px;color:var(--muted);line-height:1.55;margin-bottom:12px}
|
||||
.meta-row{display:grid;grid-template-columns:90px 1fr;gap:8px;font-size:13px;margin:8px 0;line-height:1.5}
|
||||
.meta-row b{color:#5a1b22}
|
||||
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
|
||||
.tag{font-size:12px;padding:5px 8px;border-radius:999px;background:var(--soft);border:1px solid var(--accent2);color:#7b2430;font-weight:700}
|
||||
.risk{position:absolute;right:14px;top:13px;font-size:12px;padding:5px 9px;border-radius:999px;color:#fff;background:var(--warn);font-weight:800}
|
||||
.risk.high{background:var(--danger)}
|
||||
.risk.medium{background:var(--warn)}
|
||||
.risk.low{background:var(--ok)}
|
||||
.btn{border:0;background:var(--accent);color:#fff;border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer;margin-top:12px;}
|
||||
.btn.secondary{background:#fff;color:var(--accent);border:1px solid var(--accent2)}
|
||||
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff;}
|
||||
table{border-collapse:collapse;width:100%;min-width:980px}
|
||||
th,td{border-bottom:1px solid var(--line);padding:12px 12px;text-align:left;vertical-align:top;line-height:1.55;font-size:13px}
|
||||
th{background:#fff3f5;color:#5b1118;position:sticky;top:0;z-index:1}
|
||||
tr:hover td{background:#fffafa}
|
||||
.timeline{position:relative;margin:8px 0 0;padding-left:24px}
|
||||
.timeline::before{content:"";position:absolute;left:8px;top:0;bottom:0;width:2px;background:#e7b5bd}
|
||||
.event{position:relative;margin:0 0 14px;padding:14px 14px 14px 18px;background:#fff;border:1px solid var(--line);border-radius:18px;}
|
||||
.event::before{content:"";position:absolute;left:-22px;top:20px;width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px #f7dce1}
|
||||
.event .year{font-weight:900;color:var(--accent);font-size:14px}
|
||||
.event h3{margin:4px 0 8px}
|
||||
.columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
|
||||
.list-card{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff}
|
||||
.list-card h3{margin:0 0 10px;color:#391016}
|
||||
.list-card ul{margin:0;padding-left:18px;line-height:1.8;color:#443238}
|
||||
.schema-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px}
|
||||
.schema-title{font-weight:900;color:#5b1118;margin-bottom:10px}
|
||||
.field-list{display:flex;flex-wrap:wrap;gap:8px}
|
||||
.field{padding:7px 9px;border:1px solid var(--accent2);background:#fff7f8;border-radius:10px;font-size:12px;font-weight:700;color:#6d222b}
|
||||
.note-box{background:#fff7f8;border:1px solid var(--accent2);border-radius:18px;padding:14px;color:#5d4047;line-height:1.7;margin:14px 0}
|
||||
.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(25,0,5,.55);z-index:20;padding:28px;overflow:auto}
|
||||
.modal{max-width:980px;margin:20px auto;background:#fff;border-radius:24px;box-shadow:0 25px 70px rgba(0,0,0,.35);overflow:hidden}
|
||||
.modal-head{padding:18px 22px;background:linear-gradient(90deg,#7f1620,#b6202d);color:#fff;display:flex;justify-content:space-between;gap:14px;align-items:center}
|
||||
.modal-head h2{margin:0;font-size:22px}
|
||||
.close{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:12px;padding:8px 10px;cursor:pointer;font-weight:900}
|
||||
.modal-body{padding:20px}
|
||||
.detail-grid{display:grid;grid-template-columns:160px 1fr;gap:10px;border:1px solid var(--line);border-radius:18px;overflow:hidden}
|
||||
.detail-k{background:#fff6f7;color:#6d222b;font-weight:900;padding:11px;border-bottom:1px solid var(--line)}
|
||||
.detail-v{padding:11px;border-bottom:1px solid var(--line);line-height:1.65}
|
||||
.footer{padding:16px 22px;background:#fff8f9;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.6}
|
||||
.empty{text-align:center;padding:28px;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:18px}
|
||||
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}}
|
||||
@media(max-width:680px){.hero-top{flex-direction:column}.stats-grid,.grid{grid-template-columns:1fr}.content{padding:14px}.detail-grid{grid-template-columns:1fr}.detail-k{border-bottom:0;padding-bottom:0}.input{min-width:100%}}
|
||||
|
||||
/* ── 页面 JSON 编辑器 ── */
|
||||
.editor-fab{position:fixed;right:18px;bottom:26px;z-index:60;background:#7c1d24;color:#fff;border:0;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3)}.editor-fab:hover{transform:rotate(30deg)}.editor-fab svg{width:22px;height:22px;display:block}
|
||||
.editor-overlay{z-index:80}
|
||||
.editor-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1080px,94vw);height:min(680px,88vh);background:#fff;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35)}
|
||||
.editor-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e5e7eb}.editor-head h2{margin:0;font-size:16px;flex:1}.editor-head .editor-note{font-size:12px;color:#667085;margin-right:8px}
|
||||
.editor-body{display:flex;flex:1;min-height:0}
|
||||
.editor-tabs{width:210px;border-right:1px solid #e5e7eb;overflow:auto;padding:10px 8px;display:flex;flex-direction:column;gap:4px}
|
||||
.editor-tab{border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:8px;cursor:pointer;color:#667085}.editor-tab b{display:block;font-size:13px;color:#1e2329}.editor-tab small{font-size:10px;opacity:.75}.editor-tab:hover{background:#f4f6f8}.editor-tab.active{background:#f7ecec}.editor-tab.active b{color:#7c1d24}
|
||||
.editor-pane{flex:1;display:flex;flex-direction:column;min-width:0;padding:14px 16px;gap:10px}
|
||||
.editor-title-row{display:flex;align-items:center;justify-content:space-between}.editor-title-row b{font-size:14px}
|
||||
.json-status{font-size:12px;padding:3px 10px;border-radius:999px}.json-status.valid{background:#e8f5ef;color:#14804a}.json-status.invalid{background:#fdecec;color:#b4232d}
|
||||
.json-editor{flex:1;width:100%;resize:none;border:1px solid #e5e7eb;border-radius:10px;padding:13px;font:13px/1.6 ui-monospace,Consolas,monospace;color:#1e2329;background:#f8fafc;outline:0;tab-size:2}
|
||||
.editor-actions{display:flex;gap:8px;flex-wrap:wrap}
|
||||
.editor-hint{margin:0;font-size:11px;color:#8a94a3}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header class="hero">
|
||||
<div class="hero-top">
|
||||
<div class="title-block">
|
||||
<h1>驻印太美国军事群体专题库</h1>
|
||||
<p>围绕日本、韩国、关岛等地区的美国军事群体、基地网络、地方舆情、SOFA争议、环境健康、NEO撤离与信息安全风险进行结构化展示。</p>
|
||||
</div>
|
||||
<div class="version">V1.2</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="shell">
|
||||
<section class="panel">
|
||||
<nav class="tabs" id="tabs"></nav>
|
||||
<div class="content" id="content"></div>
|
||||
<div class="footer">资料边界:本页面仅展示公开资料研究数据,避免包含非公开部署细节、敏感坐标、警备路线、具体集合点或可操作化攻击信息。建议在正式发布前继续核验年度人员、预算、地方投诉与民调数据。</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<div class="modal-backdrop" id="modalBackdrop" onclick="if(event.target.id==='modalBackdrop') closeModal()">
|
||||
<div class="modal">
|
||||
<div class="modal-head"><h2 id="modalTitle">详情</h2><button class="close" onclick="closeModal()">关闭</button></div>
|
||||
<div class="modal-body" id="modalBody"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="button" id="openEditor" class="editor-fab" aria-label="JSON 编辑器" title="页面 JSON 编辑器"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg></button>
|
||||
<div id="editorOverlay" class="editor-overlay" style="display:none"><div class="editor-modal">
|
||||
<header class="editor-head"><h2>页面 JSON 编辑器</h2><span class="editor-note">按模块编辑,应用后即时重渲染;修改保存在浏览器本地,不回写服务器</span><button type="button" id="closeEditor" style="border:0;background:none;font-size:14px;cursor:pointer">关闭</button></header>
|
||||
<div class="editor-body">
|
||||
<nav id="editorTabs" class="editor-tabs"></nav>
|
||||
<div class="editor-pane">
|
||||
<div class="editor-title-row"><b id="editorModuleTitle"></b><span id="jsonStatus" class="json-status valid">JSON 有效</span></div>
|
||||
<textarea id="jsonEditor" class="json-editor" spellcheck="false" aria-label="当前模块 JSON"></textarea>
|
||||
<div class="editor-actions"><button type="button" id="applyJson" style="background:#7c1d24;color:#fff;border:0;border-radius:6px;padding:7px 14px;cursor:pointer">应用到页面</button><button type="button" id="resetJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">恢复默认数据</button><button type="button" id="copyJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">复制完整 JSON</button><button type="button" id="downloadJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">下载 JSON</button></div>
|
||||
<p class="editor-hint">模块 = 页面数据(DATA)的顶层键,另附「系统设置」编辑 MANIFEST;沙箱预览无法使用本地缓存时,修改仅当次会话有效。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script type="application/json" id="structured-data">__PAGE_DATA__</script>
|
||||
<script type="application/json" id="structured-manifest">__PAGE_MANIFEST__</script>
|
||||
<script type="application/json" id="structured-fields">__PAGE_FIELDS__</script>
|
||||
<script>__PAGE_RUNTIME__</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user