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 @@
|
||||
{"meta": {"title": "日本反修宪、反战护宪与左翼市民社会生态资料库", "subtitle": "基于既有LLMWiki/Skill资料整理的结构化展示数据", "version": "1.0", "language": "zh-CN", "last_updated": "2026-06-30", "description": "围绕日本反修宪、反战护宪、左翼在野党及其支持者、市民运动、工会、法律界、媒体知识分子、反基地与反核网络建立的专题研究数据库。", "research_scope": ["日本反修宪群体", "反战护宪运动", "左翼在野党及其支持者", "市民运动", "工会", "法律界", "媒体知识分子", "反基地网络", "反核与反原发和平网络"], "safety_note": "本资料库仅用于公开资料研究、群体生态分析、政策与叙事结构化整理;不用于欺骗性政治动员、定向操纵、骚扰攻击或利用个人隐私。人物资料仅记录公开身份、公开职务、公开言论和公开行动。"}, "tabs": [{"id": "overview", "label": "总览与制度背景", "datasets": ["policy_triggers", "narratives", "relations"], "description": "展示整体生态、第九条、第九十六条、国民投票法、高市路线触发点和群体关系。"}, {"id": "anti_revision_orgs", "label": "反修宪护宪组织", "datasets": ["organizations", "events", "narratives"], "description": "九条会、市民联合、宪法共同中心、9条改宪NO等护宪组织。"}, {"id": "antiwar_movements", "label": "反战护宪运动", "datasets": ["events", "organizations", "audiences"], "description": "反安保法制、19日行动、SEALDs、妈妈之会等反战护宪运动。"}, {"id": "left_parties", "label": "左翼在野党", "datasets": ["persons", "organizations", "policy_triggers"], "description": "日本共产党、社民党、令和新选组、立宪民主党护宪派及其支持者。"}, {"id": "citizen_networks", "label": "市民运动网络", "datasets": ["organizations", "events", "audiences"], "description": "街头行动、署名、青年网络、女性家庭网络和学习会。"}, {"id": "labor_networks", "label": "工会劳动者网络", "datasets": ["organizations", "audiences", "narratives"], "description": "全労连、民医连、教师工会、青年工会和民生财政叙事。"}, {"id": "legal_networks", "label": "法律界网络", "datasets": ["organizations", "persons", "narratives"], "description": "日弁连、地方律师会、自由法曹团和宪法学者网络。"}, {"id": "media_intellectuals", "label": "媒体知识分子", "datasets": ["media_sources", "persons", "organizations"], "description": "政党机关报、独立媒体、冲绳地方媒体、记者与学者。"}, {"id": "anti_base_networks", "label": "反基地地方网络", "datasets": ["regions", "organizations", "events"], "description": "冲绳、边野古、南西诸岛、基地负担、地方自治与地方前线化。"}, {"id": "anti_nuclear_networks", "label": "反核和平网络", "datasets": ["organizations", "events", "narratives"], "description": "原水协、原水禁、被团协、福岛反原发、宗教和平组织。"}, {"id": "sources_index", "label": "数据来源与索引", "datasets": ["sources", "media_sources", "relations"], "description": "来源可信度、人物索引、组织索引、事件索引与关系表。"}], "organizations": [{"id": "org_001", "name_cn": "九条会", "name_jp": "九条の会", "type": "护宪市民组织", "category": "日本反修宪与护宪组织", "region": "全国", "founded": "2004", "core_issues": ["第九条", "反修宪", "反自卫队明记", "反战争国家化"], "key_narratives": ["nar_001", "nar_002"], "key_actions": ["署名", "学习会", "地方九条会活动", "公开声明"], "related_policy_triggers": ["trigger_001", "trigger_005"], "related_events": ["evt_005", "evt_004"], "summary": "以守护日本国宪法第九条为核心的全国性护宪市民网络。", "detail": {"background": "围绕战后和平主义、第九条改宪争议和自卫队宪法地位问题形成。", "position_on_takaichi_route": "反对高市早苗推动修宪发议、自卫队明记和第九条改恶。", "main_risks_identified": ["第九条空洞化", "战争国家化", "修宪程序加速"]}, "sources": ["src_001"]}, {"id": "org_002", "name_cn": "总动员行动实行委员会", "name_jp": "戦争させない・9条壊すな!総がかり行動実行委員会", "type": "市民行动平台", "category": "反战护宪与和平运动群体", "region": "全国/东京国会前", "founded": "2015前后", "core_issues": ["反安保法制", "第九条", "反军扩", "反战争国家化"], "key_narratives": ["nar_002", "nar_007"], "key_actions": ["19日行动", "国会前集会", "街头动员", "共同声明"], "related_policy_triggers": ["trigger_001", "trigger_004", "trigger_008"], "related_events": ["evt_001", "evt_004"], "summary": "反安保法制、反修宪和反战争国家化的街头行动网络。", "detail": {"background": "2015年安保法制争议后Line truncated
|
||||
+970
@@ -0,0 +1,970 @@
|
||||
{
|
||||
"说明": "字段显示目录:值级隐藏(隐藏即 data.json 各条目该键清空,全部渲染路径生效)。",
|
||||
"fields": [
|
||||
{
|
||||
"label": "id",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(id,出现 442 条)",
|
||||
"keys": [
|
||||
"id"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "name",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"反基地地方网络",
|
||||
"反核和平网络",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(name,出现 180 条)",
|
||||
"keys": [
|
||||
"name"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "category",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(category,出现 198 条)",
|
||||
"keys": [
|
||||
"category"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "date",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(date,出现 73 条)",
|
||||
"keys": [
|
||||
"date"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "actor",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"左翼在野党"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(actor,出现 18 条)",
|
||||
"keys": [
|
||||
"actor"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "summary",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(summary,出现 296 条)",
|
||||
"keys": [
|
||||
"summary"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "activated_groups",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"左翼在野党"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(activated_groups,出现 18 条)",
|
||||
"keys": [
|
||||
"activated_groups"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "activated_organizations",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"左翼在野党"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(activated_organizations,出现 18 条)",
|
||||
"keys": [
|
||||
"activated_organizations"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "main_counter_narratives",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"左翼在野党"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(main_counter_narratives,出现 18 条)",
|
||||
"keys": [
|
||||
"main_counter_narratives"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_events",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(related_events,出现 169 条)",
|
||||
"keys": [
|
||||
"related_events"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "data_points",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"左翼在野党"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(data_points,出现 18 条)",
|
||||
"keys": [
|
||||
"data_points"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "display_priority",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"左翼在野党"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(display_priority,出现 18 条)",
|
||||
"keys": [
|
||||
"display_priority"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "sources",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(sources,出现 381 条)",
|
||||
"keys": [
|
||||
"sources"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "activated_audiences",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"左翼在野党"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(activated_audiences,出现 2 条)",
|
||||
"keys": [
|
||||
"activated_audiences"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "core_claim",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(core_claim,出现 45 条)",
|
||||
"keys": [
|
||||
"core_claim"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "carriers",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(carriers,出现 45 条)",
|
||||
"keys": [
|
||||
"carriers"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "target_audiences",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(target_audiences,出现 45 条)",
|
||||
"keys": [
|
||||
"target_audiences"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "trigger_issues",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(trigger_issues,出现 45 条)",
|
||||
"keys": [
|
||||
"trigger_issues"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "typical_expressions",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(typical_expressions,出现 45 条)",
|
||||
"keys": [
|
||||
"typical_expressions"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "counter_frame",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(counter_frame,出现 45 条)",
|
||||
"keys": [
|
||||
"counter_frame"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_policy_triggers",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(related_policy_triggers,出现 323 条)",
|
||||
"keys": [
|
||||
"related_policy_triggers"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_organizations",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"反修宪护宪组织",
|
||||
"左翼在野党",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(related_organizations,出现 81 条)",
|
||||
"keys": [
|
||||
"related_organizations"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "source_type",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(source_type,出现 30 条)",
|
||||
"keys": [
|
||||
"source_type"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "source_id",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(source_id,出现 30 条)",
|
||||
"keys": [
|
||||
"source_id"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "target_type",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(target_type,出现 30 条)",
|
||||
"keys": [
|
||||
"target_type"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "target_id",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(target_id,出现 30 条)",
|
||||
"keys": [
|
||||
"target_id"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "relation_type",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(relation_type,出现 30 条)",
|
||||
"keys": [
|
||||
"relation_type"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "description",
|
||||
"pages": [
|
||||
"总览与制度背景",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "总览与制度背景 数据字段(description,出现 30 条)",
|
||||
"keys": [
|
||||
"description"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "name_cn",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(name_cn,出现 232 条)",
|
||||
"keys": [
|
||||
"name_cn"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "name_jp",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(name_jp,出现 232 条)",
|
||||
"keys": [
|
||||
"name_jp"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "type",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(type,出现 325 条)",
|
||||
"keys": [
|
||||
"type"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "region",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(region,出现 180 条)",
|
||||
"keys": [
|
||||
"region"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "founded",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(founded,出现 180 条)",
|
||||
"keys": [
|
||||
"founded"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "core_issues",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(core_issues,出现 223 条)",
|
||||
"keys": [
|
||||
"core_issues"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "key_narratives",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(key_narratives,出现 180 条)",
|
||||
"keys": [
|
||||
"key_narratives"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "key_actions",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(key_actions,出现 180 条)",
|
||||
"keys": [
|
||||
"key_actions"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "detail",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(detail,出现 271 条)",
|
||||
"keys": [
|
||||
"detail"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_persons",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(related_persons,出现 45 条)",
|
||||
"keys": [
|
||||
"related_persons"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "location",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(location,出现 55 条)",
|
||||
"keys": [
|
||||
"location"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "organizers",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(organizers,出现 55 条)",
|
||||
"keys": [
|
||||
"organizers"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "participants",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(participants,出现 55 条)",
|
||||
"keys": [
|
||||
"participants"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "main_issues",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(main_issues,出现 55 条)",
|
||||
"keys": [
|
||||
"main_issues"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_groups",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(related_groups,出现 55 条)",
|
||||
"keys": [
|
||||
"related_groups"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_narratives",
|
||||
"pages": [
|
||||
"反修宪护宪组织",
|
||||
"反战护宪运动",
|
||||
"左翼在野党",
|
||||
"市民运动网络",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"反基地地方网络",
|
||||
"反核和平网络"
|
||||
],
|
||||
"description": "反修宪护宪组织 数据字段(related_narratives,出现 91 条)",
|
||||
"keys": [
|
||||
"related_narratives"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "composition",
|
||||
"pages": [
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络"
|
||||
],
|
||||
"description": "反战护宪运动 数据字段(composition,出现 24 条)",
|
||||
"keys": [
|
||||
"composition"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "core_concerns",
|
||||
"pages": [
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络"
|
||||
],
|
||||
"description": "反战护宪运动 数据字段(core_concerns,出现 24 条)",
|
||||
"keys": [
|
||||
"core_concerns"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "responsive_narratives",
|
||||
"pages": [
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络"
|
||||
],
|
||||
"description": "反战护宪运动 数据字段(responsive_narratives,出现 24 条)",
|
||||
"keys": [
|
||||
"responsive_narratives"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "entry_organizations",
|
||||
"pages": [
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络"
|
||||
],
|
||||
"description": "反战护宪运动 数据字段(entry_organizations,出现 24 条)",
|
||||
"keys": [
|
||||
"entry_organizations"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "typical_actions",
|
||||
"pages": [
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络"
|
||||
],
|
||||
"description": "反战护宪运动 数据字段(typical_actions,出现 24 条)",
|
||||
"keys": [
|
||||
"typical_actions"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "trigger_points",
|
||||
"pages": [
|
||||
"反战护宪运动",
|
||||
"市民运动网络",
|
||||
"工会劳动者网络"
|
||||
],
|
||||
"description": "反战护宪运动 数据字段(trigger_points,出现 24 条)",
|
||||
"keys": [
|
||||
"trigger_points"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "affiliation",
|
||||
"pages": [
|
||||
"左翼在野党",
|
||||
"法律界网络",
|
||||
"媒体知识分子",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "左翼在野党 数据字段(affiliation,出现 52 条)",
|
||||
"keys": [
|
||||
"affiliation"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "role",
|
||||
"pages": [
|
||||
"左翼在野党",
|
||||
"法律界网络",
|
||||
"媒体知识分子"
|
||||
],
|
||||
"description": "左翼在野党 数据字段(role,出现 36 条)",
|
||||
"keys": [
|
||||
"role"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "categories",
|
||||
"pages": [
|
||||
"左翼在野党",
|
||||
"法律界网络",
|
||||
"媒体知识分子"
|
||||
],
|
||||
"description": "左翼在野党 数据字段(categories,出现 36 条)",
|
||||
"keys": [
|
||||
"categories"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "public_position",
|
||||
"pages": [
|
||||
"左翼在野党",
|
||||
"法律界网络",
|
||||
"媒体知识分子"
|
||||
],
|
||||
"description": "左翼在野党 数据字段(public_position,出现 36 条)",
|
||||
"keys": [
|
||||
"public_position"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "main_topics",
|
||||
"pages": [
|
||||
"媒体知识分子",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "媒体知识分子 数据字段(main_topics,出现 16 条)",
|
||||
"keys": [
|
||||
"main_topics"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "source_value",
|
||||
"pages": [
|
||||
"媒体知识分子",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "媒体知识分子 数据字段(source_value,出现 16 条)",
|
||||
"keys": [
|
||||
"source_value"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "bias_note",
|
||||
"pages": [
|
||||
"媒体知识分子",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "媒体知识分子 数据字段(bias_note,出现 47 条)",
|
||||
"keys": [
|
||||
"bias_note"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "reliability_level",
|
||||
"pages": [
|
||||
"媒体知识分子",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "媒体知识分子 数据字段(reliability_level,出现 47 条)",
|
||||
"keys": [
|
||||
"reliability_level"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_columns",
|
||||
"pages": [
|
||||
"媒体知识分子",
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "媒体知识分子 数据字段(related_columns,出现 16 条)",
|
||||
"keys": [
|
||||
"related_columns"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "key_organizations",
|
||||
"pages": [
|
||||
"反基地地方网络"
|
||||
],
|
||||
"description": "反基地地方网络 数据字段(key_organizations,出现 7 条)",
|
||||
"keys": [
|
||||
"key_organizations"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "key_persons",
|
||||
"pages": [
|
||||
"反基地地方网络"
|
||||
],
|
||||
"description": "反基地地方网络 数据字段(key_persons,出现 7 条)",
|
||||
"keys": [
|
||||
"key_persons"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "main_narratives",
|
||||
"pages": [
|
||||
"反基地地方网络"
|
||||
],
|
||||
"description": "反基地地方网络 数据字段(main_narratives,出现 7 条)",
|
||||
"keys": [
|
||||
"main_narratives"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "related_media",
|
||||
"pages": [
|
||||
"反基地地方网络"
|
||||
],
|
||||
"description": "反基地地方网络 数据字段(related_media,出现 1 条)",
|
||||
"keys": [
|
||||
"related_media"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "supports",
|
||||
"pages": [
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "数据来源与索引 数据字段(supports,出现 31 条)",
|
||||
"keys": [
|
||||
"supports"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "cross_check_needed",
|
||||
"pages": [
|
||||
"数据来源与索引"
|
||||
],
|
||||
"description": "数据来源与索引 数据字段(cross_check_needed,出现 31 条)",
|
||||
"keys": [
|
||||
"cross_check_needed"
|
||||
],
|
||||
"custom": false
|
||||
}
|
||||
]
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"系统": {
|
||||
"名称": "日本反修宪、反战护宪与左翼市民社会生态资料库",
|
||||
"说明": "围绕日本反修宪、反战护宪、左翼在野党及其支持者、市民运动、工会、法律界、媒体知识分子、反基地与反核网络建立的专题研究数据库。",
|
||||
"版本": "1.0"
|
||||
},
|
||||
"页面": [
|
||||
{
|
||||
"编号": "overview",
|
||||
"名称": "总览与制度背景"
|
||||
},
|
||||
{
|
||||
"编号": "anti_revision_orgs",
|
||||
"名称": "反修宪护宪组织"
|
||||
},
|
||||
{
|
||||
"编号": "antiwar_movements",
|
||||
"名称": "反战护宪运动"
|
||||
},
|
||||
{
|
||||
"编号": "left_parties",
|
||||
"名称": "左翼在野党"
|
||||
},
|
||||
{
|
||||
"编号": "citizen_networks",
|
||||
"名称": "市民运动网络"
|
||||
},
|
||||
{
|
||||
"编号": "labor_networks",
|
||||
"名称": "工会劳动者网络"
|
||||
},
|
||||
{
|
||||
"编号": "legal_networks",
|
||||
"名称": "法律界网络"
|
||||
},
|
||||
{
|
||||
"编号": "media_intellectuals",
|
||||
"名称": "媒体知识分子"
|
||||
},
|
||||
{
|
||||
"编号": "anti_base_networks",
|
||||
"名称": "反基地地方网络"
|
||||
},
|
||||
{
|
||||
"编号": "anti_nuclear_networks",
|
||||
"名称": "反核和平网络"
|
||||
},
|
||||
{
|
||||
"编号": "sources_index",
|
||||
"名称": "数据来源与索引"
|
||||
}
|
||||
],
|
||||
"交互规则": {
|
||||
"默认展示": "overview"
|
||||
}
|
||||
}
|
||||
+307
@@ -0,0 +1,307 @@
|
||||
/* no.20 页面运行时(结构化模板)。
|
||||
* 由 template_fill.compose_structured 内联进骨架的运行时注入点。
|
||||
* DATA 从骨架 JSON 元素读取;MANIFEST/FIELDS 供页面隐藏/自定义模块/字段可见性。 */
|
||||
const DATA=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 []}})();
|
||||
|
||||
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.getElementById('pageTitle');if(h1)h1.textContent=String(sys['名称'])}
|
||||
const sub=document.getElementById('pageSubtitle');if(sub&&sys['说明'])sub.textContent=String(sys['说明']);
|
||||
}
|
||||
function renderCustomModules(pageId){
|
||||
const host=document.getElementById('content');
|
||||
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('section');sec.className='custom-module';sec.style.margin='18px 0';
|
||||
sec.innerHTML='<h2 class="section-title">'+escapeHtml(m['标题']||'自定义模块')+'</h2>'+m.html;
|
||||
host.appendChild(sec);
|
||||
});
|
||||
}
|
||||
function applyPageVisibility(){
|
||||
if(pageHidden(currentTab)){const first=visibleTabs()[0];if(first)currentTab=first.id}
|
||||
}
|
||||
|
||||
const DB = DATA;
|
||||
const DATASETS = ['organizations','persons','policy_triggers','narratives','events','audiences','regions','media_sources','sources','relations'];
|
||||
const DATASET_LABELS = {
|
||||
organizations:'组织', persons:'人物', policy_triggers:'政策触发', narratives:'叙事', events:'事件', audiences:'受众', regions:'地域', media_sources:'媒体来源', sources:'来源', relations:'关系'
|
||||
};
|
||||
let currentTab = 'overview';
|
||||
let state = { q:'', type:'', issue:'', region:'', reliability:'' };
|
||||
|
||||
const byId = {};
|
||||
function refreshIndex(){
|
||||
Object.keys(byId).forEach(k=>delete byId[k]);
|
||||
DATASETS.forEach(ds => (DB[ds] || []).forEach(item => { if(item.id) byId[item.id] = {...item, __dataset: ds}; }));
|
||||
}
|
||||
|
||||
function init() {
|
||||
refreshIndex();
|
||||
applyPageVisibility();
|
||||
document.getElementById('pageTitle').textContent = DB.meta.title;
|
||||
document.getElementById('pageSubtitle').textContent = DB.meta.description;
|
||||
document.getElementById('scopePills').innerHTML = DB.meta.research_scope.map(x => `<span class="pill">${escapeHtml(x)}</span>`).join('');
|
||||
renderStats();
|
||||
populateFilters();
|
||||
renderTabs();
|
||||
bindControls();
|
||||
render();
|
||||
}
|
||||
function renderStats() {
|
||||
const stats = [
|
||||
['组织', DB.organizations.length], ['人物', DB.persons.length], ['政策触发', DB.policy_triggers.length],
|
||||
['叙事', DB.narratives.length], ['事件', DB.events.length], ['来源', DB.sources.length]
|
||||
];
|
||||
document.getElementById('stats').innerHTML = stats.map(([label,num]) => `<div class="stat"><div class="num">${num}</div><div class="label">${label}</div></div>`).join('');
|
||||
}
|
||||
function populateFilters() {
|
||||
['typeFilter','issueFilter','regionFilter','reliabilityFilter'].forEach(id=>{const el=document.getElementById(id);while(el.options.length>1)el.remove(1)});
|
||||
const typeSel = document.getElementById('typeFilter');
|
||||
Object.entries(DATASET_LABELS).forEach(([k,v]) => { if(k !== 'relations') typeSel.insertAdjacentHTML('beforeend', `<option value="${k}">${v}</option>`); });
|
||||
const issueSet = new Set();
|
||||
const regionSet = new Set();
|
||||
const relSet = new Set();
|
||||
collectAll().forEach(o => {
|
||||
[...arr(o.core_issues), ...arr(o.main_issues), ...arr(o.trigger_issues), ...arr(o.core_concerns)].forEach(x => issueSet.add(x));
|
||||
if(o.region) regionSet.add(o.region);
|
||||
if(o.location) regionSet.add(o.location);
|
||||
if(o.name && (o.__dataset === 'regions')) regionSet.add(o.name);
|
||||
if(o.reliability_level) relSet.add(o.reliability_level);
|
||||
});
|
||||
fillSelect('issueFilter', issueSet);
|
||||
fillSelect('regionFilter', regionSet);
|
||||
fillSelect('reliabilityFilter', relSet);
|
||||
}
|
||||
function fillSelect(id, set) {
|
||||
const el = document.getElementById(id);
|
||||
[...set].sort().forEach(v => el.insertAdjacentHTML('beforeend', `<option value="${escapeAttr(v)}">${escapeHtml(v)}</option>`));
|
||||
}
|
||||
function renderTabs() {
|
||||
document.getElementById('tabs').innerHTML = visibleTabs().map(t => `<button class="tab ${t.id===currentTab?'active':''}" onclick="setTab('${t.id}')">${escapeHtml(t.label)}</button>`).join('');
|
||||
}
|
||||
function bindControls() {
|
||||
document.getElementById('searchInput').addEventListener('input', e => { state.q = e.target.value.trim(); render(); });
|
||||
document.getElementById('typeFilter').addEventListener('change', e => { state.type = e.target.value; render(); });
|
||||
document.getElementById('issueFilter').addEventListener('change', e => { state.issue = e.target.value; render(); });
|
||||
document.getElementById('regionFilter').addEventListener('change', e => { state.region = e.target.value; render(); });
|
||||
document.getElementById('reliabilityFilter').addEventListener('change', e => { state.reliability = e.target.value; render(); });
|
||||
}
|
||||
function setTab(id) { if(pageHidden(id))return; currentTab = id; render(); window.scrollTo({top:0, behavior:'smooth'}); }
|
||||
function render() {
|
||||
const tab = DB.tabs.find(t => t.id === currentTab) || DB.tabs[0];
|
||||
const content = document.getElementById('content');
|
||||
if (state.q || state.type || state.issue || state.region || state.reliability) {
|
||||
const results = filterItems(collectAll());
|
||||
content.innerHTML = `<div class="section-title"><div><h2>交互查询结果</h2><p>当前筛选返回 ${results.length} 条数据。点击卡片可查看弹框详情与关联关系。</p></div></div>` + renderCards(results);
|
||||
return;
|
||||
}
|
||||
let html = `<div class="section-title"><div><h2>${escapeHtml(tab.label)}</h2><p>${escapeHtml(tab.description)}</p></div></div>`;
|
||||
if (currentTab === 'overview') html += renderOverview();
|
||||
else if (currentTab === 'sources_index') html += renderSourcesIndex();
|
||||
else html += renderTabData(currentTab);
|
||||
content.innerHTML = html;
|
||||
}
|
||||
function renderOverview() {
|
||||
return `
|
||||
<div class="relation-box">
|
||||
<div class="relation-item"><b>研究对象</b><br>${escapeHtml(DB.meta.subtitle)}<br><br>${escapeHtml(DB.meta.safety_note)}</div>
|
||||
<div class="relation-item"><b>核心链条</b><br>高市路线/修宪政策触发 → 群体反应 → 叙事激活 → 行动节点 → 媒体传播 → 来源核验</div>
|
||||
</div>
|
||||
<div class="section-title"><div><h2>高市路线触发矩阵</h2><p>点击任意政策触发卡片查看激活群体、叙事、事件和来源。</p></div></div>
|
||||
${renderCards(DB.policy_triggers.map(x => attachDataset(x, 'policy_triggers')))}
|
||||
<div class="section-title"><div><h2>群体反应总表</h2><p>从政策触发、主要激活群体和核心叙事三个维度观察资料库结构。</p></div></div>
|
||||
${renderTriggerMatrix()}
|
||||
`;
|
||||
}
|
||||
function renderTriggerMatrix() {
|
||||
return `<table class="matrix"><thead><tr><th>政策触发</th><th>主要激活群体</th><th>核心叙事</th><th>相关行动</th></tr></thead><tbody>` +
|
||||
DB.policy_triggers.map(t => `<tr onclick="openModal('policy_triggers','${t.id}')" style="cursor:pointer"><td><b>${escapeHtml(t.name)}</b><br><span class="sub">${escapeHtml(t.category)}</span></td><td>${tags(t.activated_groups || [])}</td><td>${linkObjects(t.main_counter_narratives || [])}</td><td>${linkObjects(t.related_events || [])}</td></tr>`).join('') +
|
||||
`</tbody></table>`;
|
||||
}
|
||||
function renderTabData(tabId) {
|
||||
const map = {
|
||||
anti_revision_orgs: {datasets:['organizations','narratives','events'], categories:['日本反修宪与护宪组织']},
|
||||
antiwar_movements: {datasets:['events','organizations','audiences'], categories:['反战护宪与和平运动群体']},
|
||||
left_parties: {datasets:['organizations','persons','policy_triggers'], categories:['左翼在野党及其支持者']},
|
||||
citizen_networks: {datasets:['organizations','events','audiences'], categories:['市民运动与街头行动网络']},
|
||||
labor_networks: {datasets:['organizations','audiences','narratives'], categories:['工会与劳动者网络']},
|
||||
legal_networks: {datasets:['organizations','persons','narratives'], categories:['法律界与宪法学者网络']},
|
||||
media_intellectuals: {datasets:['media_sources','persons','organizations'], categories:['媒体记者与知识分子网络']},
|
||||
anti_base_networks: {datasets:['regions','organizations','events','persons'], categories:['反基地与地方前线化网络']},
|
||||
anti_nuclear_networks: {datasets:['organizations','events','narratives','audiences'], categories:['反核、反原发与和平网络']}
|
||||
};
|
||||
const cfg = map[tabId];
|
||||
let items = [];
|
||||
cfg.datasets.forEach(ds => {
|
||||
(DB[ds]||[]).forEach(o => {
|
||||
const cats = [...arr(o.category), ...arr(o.categories), ...arr(o.related_groups)];
|
||||
const matchCat = cats.some(c => cfg.categories.includes(c));
|
||||
const issueMatch = cfg.categories.some(c => textOf(o).includes(c.replace('网络','').replace('群体','')));
|
||||
if(matchCat || issueMatch) items.push(attachDataset(o, ds));
|
||||
});
|
||||
});
|
||||
items = uniqueById(items);
|
||||
if(tabId === 'antiwar_movements' || tabId === 'citizen_networks') {
|
||||
return renderTimeline(items.filter(x=>x.__dataset==='events')) + renderCards(items.filter(x=>x.__dataset!=='events'));
|
||||
}
|
||||
return renderCards(items);
|
||||
}
|
||||
function renderSourcesIndex() {
|
||||
return `<div class="section-title"><div><h2>来源可信度与索引</h2><p>来源分级用于提示资料用途和核验要求,不代表政治立场评价。</p></div></div>` + renderSourceTable() + `<div class="section-title"><div><h2>关系索引</h2><p>点击关系项可回溯关联对象。</p></div></div>` + renderRelations();
|
||||
}
|
||||
function renderSourceTable() {
|
||||
return `<table class="matrix"><thead><tr><th>来源</th><th>类型</th><th>可信度</th><th>支持事实</th><th>备注</th></tr></thead><tbody>` +
|
||||
DB.sources.map(s => `<tr onclick="openModal('sources','${s.id}')" style="cursor:pointer"><td><b>${escapeHtml(s.name)}</b></td><td>${escapeHtml(s.type)}</td><td><span class="badge">${escapeHtml(s.reliability_level)}</span></td><td>${escapeHtml(s.supports)}</td><td>${escapeHtml(s.bias_note || '')}</td></tr>`).join('') + `</tbody></table>`;
|
||||
}
|
||||
function renderRelations() {
|
||||
return `<div class="grid">` + DB.relations.map(r => `<div class="card" onclick="openModal('relations','${r.id}')"><div class="card-head"><h3>${escapeHtml(r.relation_type)}</h3><span class="badge">关系</span></div><p class="summary">${escapeHtml(r.description)}</p><div class="tags">${objectChip(r.source_id)} ${objectChip(r.target_id)}</div></div>`).join('') + `</div>`;
|
||||
}
|
||||
function renderTimeline(items) {
|
||||
if(!items.length) return '';
|
||||
items.sort((a,b)=>String(a.date||'').localeCompare(String(b.date||'')));
|
||||
return `<div class="timeline">` + items.map(e => `<div class="timeline-item" onclick="openModal('${e.__dataset}','${e.id}')"><b>${escapeHtml(e.name)}</b><div class="sub">${escapeHtml(e.date || '')} · ${escapeHtml(e.location || e.type || '')}</div><div class="summary">${escapeHtml(e.summary || '')}</div>${tags(e.main_issues || [])}</div>`).join('') + `</div>`;
|
||||
}
|
||||
function renderCards(items) {
|
||||
items = uniqueById(items).filter(Boolean);
|
||||
if(!items.length) return `<div class="empty">暂无匹配数据</div>`;
|
||||
return `<div class="grid">` + items.map(o => card(o)).join('') + `</div>`;
|
||||
}
|
||||
function card(o) {
|
||||
const title = o.name_cn || o.name || o.name_jp || o.id;
|
||||
const sub = [DATASET_LABELS[o.__dataset], o.type || o.category || o.role || o.affiliation || o.date].filter(Boolean).join(' · ');
|
||||
const summary = o.summary || o.core_claim || o.description || o.public_position || o.source_value || o.supports || o.detail?.background || '';
|
||||
const tagArr = [...arr(o.core_issues), ...arr(o.main_issues), ...arr(o.core_concerns), ...arr(o.key_narratives).map(id=>byId[id]?.name || id), ...arr(o.activated_groups)].slice(0,6);
|
||||
const badge = o.reliability_level || o.display_priority || '';
|
||||
return `<div class="card" onclick="openModal('${o.__dataset}','${o.id}')"><div class="card-head"><h3>${escapeHtml(title)}</h3>${badge ? `<span class="badge">${escapeHtml(badge)}</span>` : ''}</div><div class="sub">${escapeHtml(sub)}</div><p class="summary">${escapeHtml(summary).slice(0,180)}${summary.length>180?'…':''}</p><div class="tags">${tags(tagArr)}</div></div>`;
|
||||
}
|
||||
function openModal(ds, id) {
|
||||
const obj = (DB[ds] || []).find(x => x.id === id);
|
||||
if(!obj) return;
|
||||
document.getElementById('modalTitle').textContent = obj.name_cn || obj.name || obj.name_jp || id;
|
||||
document.getElementById('modalSub').textContent = [DATASET_LABELS[ds], obj.type || obj.category || obj.role || obj.affiliation || obj.date || ''].filter(Boolean).join(' · ');
|
||||
document.getElementById('modalBody').innerHTML = renderDetail(obj, ds) + renderObjectRelations(ds, id);
|
||||
document.getElementById('modal').classList.add('open');
|
||||
}
|
||||
function closeModal() { document.getElementById('modal').classList.remove('open'); }
|
||||
function renderDetail(obj, ds) {
|
||||
const rows = [];
|
||||
Object.entries(obj).forEach(([k,v]) => {
|
||||
if(k.startsWith('__')) return;
|
||||
rows.push(`<div>${escapeHtml(labelKey(k))}</div><div>${valueHtml(v)}</div>`);
|
||||
});
|
||||
return `<div class="detail-grid">${rows.join('')}</div>`;
|
||||
}
|
||||
function renderObjectRelations(ds, id) {
|
||||
const rels = DB.relations.filter(r => r.source_id === id || r.target_id === id);
|
||||
const implicit = [];
|
||||
const obj = (DB[ds] || []).find(x => x.id === id);
|
||||
if(obj) {
|
||||
['related_policy_triggers','related_events','related_organizations','related_persons','related_narratives','activated_organizations','main_counter_narratives','target_audiences','entry_organizations'].forEach(k => arr(obj[k]).forEach(x => implicit.push(x)));
|
||||
}
|
||||
const relHtml = rels.map(r => `<div class="relation-item"><b>${escapeHtml(r.relation_type)}</b><br>${escapeHtml(r.description)}<br>${objectChip(r.source_id)} ${objectChip(r.target_id)}</div>`).join('');
|
||||
const impHtml = implicit.length ? `<div class="relation-item"><b>字段关联对象</b><br>${[...new Set(implicit)].map(objectChip).join(' ')}</div>` : '';
|
||||
return `<div class="section-title"><div><h2>关联关系</h2><p>由关系表和对象字段自动生成。</p></div></div><div class="relation-box">${relHtml || ''}${impHtml || ''}${(!relHtml && !impHtml) ? '<div class="empty">暂无关联数据</div>' : ''}</div>`;
|
||||
}
|
||||
function objectChip(id) {
|
||||
const o = byId[id];
|
||||
if(!o) return `<span class="object-link">${escapeHtml(id)}</span>`;
|
||||
const label = o.name_cn || o.name || o.name_jp || id;
|
||||
return `<span class="object-link" onclick="event.stopPropagation(); openModal('${o.__dataset}','${id}')">${escapeHtml(label)}</span>`;
|
||||
}
|
||||
function linkObjects(ids) { return arr(ids).map(objectChip).join(' '); }
|
||||
function tags(xs) { return arr(xs).filter(Boolean).slice(0,8).map(x => `<span class="tag">${escapeHtml(String(x))}</span>`).join(''); }
|
||||
function valueHtml(v) {
|
||||
if(v === null || v === undefined) return '<span class="sub">未记录</span>';
|
||||
if(Array.isArray(v)) return v.length ? v.map(x => typeof x === 'string' && byId[x] ? objectChip(x) : `<span class="tag">${escapeHtml(String(x))}</span>`).join(' ') : '<span class="sub">空</span>';
|
||||
if(typeof v === 'object') return Object.entries(v).map(([k,val]) => `<b>${escapeHtml(labelKey(k))}:</b>${valueHtml(val)}`).join('<br>');
|
||||
if(byId[v]) return objectChip(v);
|
||||
return escapeHtml(String(v));
|
||||
}
|
||||
function collectAll() {
|
||||
let arrs = [];
|
||||
DATASETS.forEach(ds => { if(ds !== 'relations') arrs = arrs.concat((DB[ds]||[]).map(o=>attachDataset(o,ds))); });
|
||||
return arrs;
|
||||
}
|
||||
function attachDataset(o, ds) { return {...o, __dataset: ds}; }
|
||||
function filterItems(items) {
|
||||
return items.filter(o => {
|
||||
const text = textOf(o).toLowerCase();
|
||||
if(state.q && !text.includes(state.q.toLowerCase())) return false;
|
||||
if(state.type && o.__dataset !== state.type) return false;
|
||||
if(state.issue && !text.includes(state.issue.toLowerCase())) return false;
|
||||
if(state.region && !text.includes(state.region.toLowerCase())) return false;
|
||||
if(state.reliability && String(o.reliability_level || '').toLowerCase() !== state.reliability.toLowerCase()) return false;
|
||||
return true;
|
||||
});
|
||||
}
|
||||
function textOf(o) { return JSON.stringify(o, null, 0); }
|
||||
function uniqueById(items) { const seen = new Set(); return items.filter(x => { const key = `${x.__dataset}:${x.id || JSON.stringify(x)}`; if(seen.has(key)) return false; seen.add(key); return true; }); }
|
||||
function arr(x) { if(!x) return []; return Array.isArray(x) ? x : [x]; }
|
||||
function labelKey(k) {
|
||||
const map = {id:'ID', name_cn:'中文名称', name_jp:'日文名称', name:'名称', type:'类型', category:'栏目分类', categories:'栏目分类', region:'地域', founded:'成立时间', core_issues:'核心议题', main_issues:'主要议题', key_narratives:'核心叙事', key_actions:'主要行动', related_policy_triggers:'相关政策触发', related_events:'相关事件', related_persons:'相关人物', related_organizations:'相关组织', summary:'摘要', detail:'详细信息', sources:'来源', role:'公开职务', affiliation:'所属组织', public_position:'公开立场', core_claim:'核心命题', carriers:'承载者', target_audiences:'目标受众', trigger_issues:'触发议题', typical_expressions:'典型表达', counter_frame:'对应反叙事', date:'日期', location:'地点', organizers:'组织者', participants:'参与人数', related_groups:'相关群体', actor:'行为体', activated_groups:'激活群体', activated_organizations:'激活组织', activated_audiences:'激活受众', main_counter_narratives:'主要反叙事', data_points:'关键数据', display_priority:'显示优先级', composition:'构成', core_concerns:'核心关切', responsive_narratives:'响应叙事', entry_organizations:'入口组织', typical_actions:'典型行动', trigger_points:'触发点', source_value:'资料价值', bias_note:'偏向说明', reliability_level:'可信度', supports:'支持事实', cross_check_needed:'是否需交叉验证', source_type:'来源类型', source_id:'来源ID', target_type:'目标类型', target_id:'目标ID', relation_type:'关系类型', description:'说明' };
|
||||
return map[k] || k;
|
||||
}
|
||||
function escapeHtml(str) { return String(str).replace(/[&<>"']/g, s => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[s])); }
|
||||
function escapeAttr(str) { return escapeHtml(str).replace(/"/g,'"'); }
|
||||
|
||||
document.addEventListener('keydown', e => { if(e.key === 'Escape') closeModal(); });
|
||||
|
||||
(function(){
|
||||
const _render=render;
|
||||
render=function(){
|
||||
refreshIndex();
|
||||
applyPageVisibility();
|
||||
renderTabs();
|
||||
_render();
|
||||
syncHeader();
|
||||
renderCustomModules(currentTab);
|
||||
};
|
||||
})();
|
||||
/* ── 页面 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(DATA),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(DATA,parsed.data);if(parsed.manifest&&typeof parsed.manifest==='object')replaceInPlace(MANIFEST,parsed.manifest)}}catch(x){}})();
|
||||
const labels={};(MANIFEST['页面']||[]).forEach(p=>{if(p&&p['编号'])labels[p['编号']]=p['名称']||p['编号']});
|
||||
const modules=Object.keys(DATA).concat(['__manifest__']);
|
||||
let active=modules[0]||'__manifest__';
|
||||
let drafts=buildDrafts(DATA,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(DATA,draftsToData(drafts));replaceInPlace(MANIFEST,drafts.__manifest__);closeEditor();refreshIndex();populateFilters();renderStats();document.getElementById('scopePills').innerHTML=(DB.meta.research_scope||[]).map(x=>`<span class="pill">${escapeHtml(x)}</span>`).join('');render();writeLS(storageKey,JSON.stringify({data:DATA,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(DATA,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)};
|
||||
})();
|
||||
init();
|
||||
+164
@@ -0,0 +1,164 @@
|
||||
<!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 {
|
||||
--bg: #8d1118;
|
||||
--bg2: #b6232d;
|
||||
--card: #fffdf8;
|
||||
--card2: #fff7ef;
|
||||
--ink: #241b1d;
|
||||
--muted: #6d5f62;
|
||||
--line: rgba(90, 20, 25, .16);
|
||||
--accent: #b71c2b;
|
||||
--accent2: #f1d7c8;
|
||||
--tag: #f6e7df;
|
||||
--shadow: 0 16px 40px rgba(60,0,0,.18);
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
|
||||
color: var(--ink);
|
||||
background: linear-gradient(135deg, var(--bg), #6b0d13 42%, #a01822);
|
||||
min-height: 100vh;
|
||||
}
|
||||
.app { max-width: 1440px; margin: 0 auto; padding: 22px; }
|
||||
.hero {
|
||||
color: #fff; padding: 26px 28px; border-radius: 28px;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
|
||||
border: 1px solid rgba(255,255,255,.22);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.hero h1 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 42px); letter-spacing: .02em; }
|
||||
.hero p { margin: 0; max-width: 980px; color: rgba(255,255,255,.88); line-height: 1.8; }
|
||||
.meta-line { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 18px; }
|
||||
.pill { display:inline-flex; align-items:center; gap:6px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 13px; }
|
||||
.stats { display:grid; grid-template-columns: repeat(6, minmax(130px,1fr)); gap: 12px; margin: 18px 0; }
|
||||
.stat { background: var(--card); border-radius: 18px; padding: 15px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
|
||||
.stat .num { font-size: 26px; font-weight: 800; color: var(--accent); }
|
||||
.stat .label { color: var(--muted); font-size: 13px; margin-top: 2px; }
|
||||
.panel { background: var(--card); border-radius: 24px; padding: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
|
||||
.toolbar { display:grid; grid-template-columns: 1.5fr repeat(4, minmax(150px, .7fr)); gap: 10px; margin: 16px 0; }
|
||||
input, select {
|
||||
width:100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background:#fff; color:var(--ink); outline:none; font-size: 14px;
|
||||
}
|
||||
input:focus, select:focus { border-color: rgba(183,28,43,.6); box-shadow: 0 0 0 3px rgba(183,28,43,.08); }
|
||||
.tabs { display:flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; }
|
||||
.tab {
|
||||
white-space: nowrap; border: 1px solid var(--line); color: #5e272c; background:#fff;
|
||||
padding: 10px 14px; border-radius: 999px; cursor:pointer; font-weight: 700; font-size: 14px;
|
||||
}
|
||||
.tab.active { background: var(--accent); color:#fff; border-color: var(--accent); }
|
||||
.tab:hover { transform: translateY(-1px); }
|
||||
.section-title { display:flex; justify-content:space-between; align-items:flex-end; gap: 10px; margin: 16px 0 10px; }
|
||||
.section-title h2 { margin:0; font-size: 22px; color:#3a1217; }
|
||||
.section-title p { margin: 6px 0 0; color:var(--muted); line-height:1.6; }
|
||||
.grid { display:grid; grid-template-columns: repeat(3, minmax(260px,1fr)); gap: 14px; }
|
||||
.card {
|
||||
background: linear-gradient(180deg, #fff, var(--card2)); border: 1px solid var(--line); border-radius: 20px;
|
||||
padding: 16px; cursor:pointer; transition: .15s ease; min-height: 180px;
|
||||
}
|
||||
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(100,0,0,.12); border-color: rgba(183,28,43,.28); }
|
||||
.card-head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
|
||||
.card h3 { margin:0; font-size: 18px; color:#3a1217; }
|
||||
.card .sub { margin-top: 5px; color:var(--muted); font-size:13px; }
|
||||
.card .summary { margin: 12px 0; line-height:1.65; color:#3b3032; font-size:14px; }
|
||||
.tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
|
||||
.tag { font-size:12px; padding: 5px 8px; border-radius: 999px; background: var(--tag); color:#7a3038; border: 1px solid rgba(183,28,43,.08); }
|
||||
.badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight:700; background:#f4ded5; color:#8d1118; }
|
||||
.matrix { width:100%; border-collapse: collapse; background:#fff; border-radius:18px; overflow:hidden; border: 1px solid var(--line); }
|
||||
.matrix th, .matrix td { padding: 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; font-size:14px; line-height:1.55; }
|
||||
.matrix th { background:#f6e7df; color:#5b1720; }
|
||||
.relation-box { display:grid; grid-template-columns: repeat(2, minmax(260px,1fr)); gap:12px; }
|
||||
.relation-item { background:#fff7ef; border:1px solid var(--line); border-radius:18px; padding:13px; line-height:1.6; }
|
||||
.timeline { position:relative; padding-left: 18px; }
|
||||
.timeline:before { content:""; position:absolute; left:6px; top:0; bottom:0; width:2px; background:#e4b7aa; }
|
||||
.timeline-item { position:relative; margin: 0 0 12px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; }
|
||||
.timeline-item:before { content:""; position:absolute; left:-18px; top:18px; width:10px; height:10px; background:var(--accent); border-radius:50%; }
|
||||
.empty { padding: 34px; text-align:center; color: var(--muted); background:#fff; border-radius:18px; border: 1px dashed var(--line); }
|
||||
.modal { position:fixed; inset:0; background:rgba(20,0,0,.58); display:none; align-items:center; justify-content:center; padding:18px; z-index: 50; }
|
||||
.modal.open { display:flex; }
|
||||
.modal-card { background:#fffdf8; max-width: 980px; width: min(980px, 96vw); max-height: 88vh; overflow:auto; border-radius: 26px; box-shadow: 0 28px 80px rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.4); }
|
||||
.modal-head { position:sticky; top:0; background:#fffdf8; padding:20px 22px 14px; border-bottom:1px solid var(--line); z-index:2; }
|
||||
.modal-head h2 { margin:0; color:#3a1217; }
|
||||
.close { float:right; border:none; background:#8d1118; color:#fff; width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:18px; }
|
||||
.modal-body { padding: 18px 22px 24px; }
|
||||
.detail-grid { display:grid; grid-template-columns: 180px 1fr; gap: 0; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
|
||||
.detail-grid div { padding: 12px; border-bottom:1px solid var(--line); line-height:1.65; }
|
||||
.detail-grid div:nth-child(odd) { background:#f6e7df; font-weight:700; color:#5b1720; }
|
||||
.detail-grid div:nth-child(even) { background:#fff; }
|
||||
.object-link { display:inline-block; margin: 3px 4px 3px 0; padding: 5px 8px; border-radius:999px; background:#fff; border:1px solid var(--line); color:#7a1e29; cursor:pointer; font-size:12px; }
|
||||
.footer-note { color:rgba(255,255,255,.75); font-size:12px; margin: 18px 4px; line-height:1.7; }
|
||||
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3,1fr); } .toolbar { grid-template-columns: 1fr 1fr; } .grid { grid-template-columns: repeat(2,1fr); } }
|
||||
@media (max-width: 720px) { .app { padding:12px; } .stats { grid-template-columns: repeat(2,1fr); } .toolbar { grid-template-columns: 1fr; } .grid, .relation-box { grid-template-columns: 1fr; } .detail-grid { grid-template-columns:1fr; } .detail-grid div:nth-child(odd) { border-bottom:0; } }
|
||||
|
||||
/* ── 页面 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>
|
||||
<div class="app">
|
||||
<section class="hero">
|
||||
<h1 id="pageTitle"></h1>
|
||||
<p id="pageSubtitle"></p>
|
||||
<div class="meta-line" id="scopePills"></div>
|
||||
</section>
|
||||
|
||||
<div class="stats" id="stats"></div>
|
||||
|
||||
<section class="panel">
|
||||
<div class="toolbar">
|
||||
<input id="searchInput" placeholder="全局搜索:九条会 / 高市 / 防卫费 / 冲绳 / 国民投票法 / 田村智子" />
|
||||
<select id="typeFilter"><option value="">全部数据类型</option></select>
|
||||
<select id="issueFilter"><option value="">全部议题</option></select>
|
||||
<select id="regionFilter"><option value="">全部地域</option></select>
|
||||
<select id="reliabilityFilter"><option value="">全部可信度</option></select>
|
||||
</div>
|
||||
<div class="tabs" id="tabs"></div>
|
||||
<div id="content"></div>
|
||||
</section>
|
||||
|
||||
<div class="footer-note">说明:本页面为离线可运行的研究展示页面,数据来自当前LLMWiki/Skill整理成果;来源字段用于资料追踪和可信度管理,具体事实在正式研究中应继续进行多源核验。</div>
|
||||
</div>
|
||||
|
||||
<div class="modal" id="modal" onclick="if(event.target.id==='modal') closeModal()">
|
||||
<div class="modal-card">
|
||||
<div class="modal-head"><button class="close" onclick="closeModal()">×</button><h2 id="modalTitle"></h2><div class="sub" id="modalSub"></div></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