-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
460 lines (448 loc) · 22.7 KB
/
Copy pathindex.html
File metadata and controls
460 lines (448 loc) · 22.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Astrology Pro - 本地隐私优先的高精度星盘工具</title>
<meta name="description" content="Astrology Pro 是开源、本地隐私优先的在线星盘工具,使用 Swiss Ephemeris 计算本命盘、行运、合盘,并生成适合复制到 AI 解读的结构化星盘资料。" />
<meta name="keywords" content="在线星盘, 本命盘, 上升星座, 行运盘, 合盘, Swiss Ephemeris, AI 星盘解读, 占星工具" />
<meta name="robots" content="index,follow" />
<meta name="theme-color" content="#2f6b5f" />
<link rel="canonical" href="https://astrology-pro.vercel.app/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Astrology Pro - 本地隐私优先的高精度星盘工具" />
<meta property="og:description" content="开源在线星盘工具:本地计算、结构化导出、一键复制给 AI 解读。" />
<meta property="og:url" content="https://astrology-pro.vercel.app/" />
<meta name="twitter:card" content="summary" />
<link rel="icon" href="./favicon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="./styles.css" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Astrology Pro",
"url": "https://astrology-pro.vercel.app/",
"applicationCategory": "LifestyleApplication",
"operatingSystem": "Any",
"description": "本地隐私优先的开源在线星盘工具,支持 Swiss Ephemeris 排盘和 AI-ready 星盘资料导出。",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }
}
</script>
</head>
<body>
<header class="product-header">
<div>
<p class="product-kicker">Open Source Astrology Toolkit</p>
<h1>Astrology Pro</h1>
<div class="product-badges" aria-label="产品特性">
<span>本地计算</span>
<span>开源</span>
<span>AI-ready</span>
</div>
</div>
<nav class="product-nav" aria-label="站点链接">
<a href="https://github.com/viplee110/Astrology-Pro" target="_blank" rel="noreferrer">GitHub</a>
<a href="./learn.html">入门</a>
<a href="./methodology.html">计算方法</a>
<a href="./privacy.html">隐私</a>
<a href="./disclaimer.html">免责声明</a>
</nav>
</header>
<main class="app-shell">
<section class="panel input-panel" aria-labelledby="input-title">
<div class="panel-title">
<div>
<h2 id="input-title">生成星盘资料</h2>
<p class="panel-subtitle">资料保存在你的浏览器本地;复制到第三方 AI 前请自行确认隐私风险。</p>
</div>
<span id="engine-status" class="status-pill">初始化中</span>
</div>
<form id="chart-form" class="form-grid">
<label>
档案名
<input id="profile-name" name="profileName" value="我的本命盘" autocomplete="off" />
</label>
<label>
档案类型
<select id="subject-type" name="subjectType">
<option value="self">个人档案</option>
<option value="partner">合盘对象</option>
<option value="research">研究样本</option>
</select>
</label>
<label>
标签
<input id="tags" name="tags" placeholder="校时, 重要, 合盘" autocomplete="off" />
</label>
<label>
出生日期
<input id="birth-date" name="birthDate" type="date" value="1995-08-12" required />
</label>
<label>
出生时间
<input id="birth-time" name="birthTime" type="time" step="60" value="14:35" required />
</label>
<label class="location-field">
出生地
<input id="location-name" name="locationName" value="上海,中国" autocomplete="off" aria-expanded="false" aria-controls="location-dropdown" />
<div id="location-dropdown" class="location-dropdown" role="listbox"></div>
<span class="field-hint">点击或输入城市/区县,选择后自动填坐标和时区</span>
</label>
<label>
时区 / 夏令时偏移
<input id="timezone" name="timezone" type="number" min="-12" max="14" step="0.25" value="8" required />
</label>
<label>
纬度
<input id="latitude" name="latitude" type="number" min="-90" max="90" step="any" value="31.2304" required />
</label>
<label>
经度
<input id="longitude" name="longitude" type="number" min="-180" max="180" step="any" value="121.4737" required />
</label>
<label>
坐标精度
<select id="coordinate-precision" name="coordinatePrecision">
<option value="城市级">城市级</option>
<option value="区县级">区县级</option>
<option value="手动精确坐标">手动精确坐标</option>
</select>
</label>
<details class="wide details-block advanced-settings">
<summary>专业参数</summary>
<div class="mini-grid">
<label>
宫位制
<select id="house-system" name="houseSystem">
<option value="P">Placidus</option>
<option value="K">Koch</option>
<option value="W">Whole Sign</option>
<option value="E">Equal</option>
<option value="R">Regiomontanus</option>
<option value="C">Campanus</option>
<option value="O">Porphyry</option>
<option value="T">Topocentric</option>
<option value="B">Alcabitius</option>
<option value="M">Morinus</option>
</select>
</label>
<label>
黄道制
<select id="zodiac-mode" name="zodiacMode">
<option value="tropical">Tropical</option>
<option value="sidereal-lahiri">Sidereal Lahiri</option>
</select>
</label>
<label>
全局容许度
<input id="aspect-orb" name="aspectOrb" type="number" min="0.5" max="12" step="0.5" value="6" required />
</label>
<label>
格局参与点
<select id="pattern-participants" name="patternParticipants">
<option value="core">主要行星 + 外行星</option>
<option value="bodies">所有已显示星体</option>
<option value="points">所有已显示星体 + 已选四轴/虚点</option>
</select>
</label>
<label>
阿拉伯点体系
<select id="lot-formula-set" name="lotFormulaSet">
<option value="paulus">Paulus / Hermetic 七点</option>
<option value="valens">Valens 四主点</option>
</select>
</label>
</div>
<div class="toggle-group">
<strong>相位类型</strong>
<div id="aspect-type-toggles" class="toggle-grid"></div>
</div>
<div class="toggle-group">
<strong>显示星体 / 小行星 / 交点</strong>
<div id="body-toggles" class="toggle-grid"></div>
</div>
<div class="toggle-group">
<strong>四轴 / 阿拉伯点 / 宿命点</strong>
<div id="point-toggles" class="toggle-grid"></div>
</div>
</details>
<details class="wide details-block">
<summary>预测设置</summary>
<div class="mini-grid">
<div class="settings-subhead wide">预测时间与地点</div>
<label>
目标日期
<input id="target-date" name="targetDate" type="date" value="2026-04-26" />
</label>
<label>
目标时间
<input id="target-time" name="targetTime" type="time" value="12:00" />
</label>
<label class="location-field">
目标地点
<input id="target-location-name" name="targetLocationName" value="上海,中国" autocomplete="off" aria-expanded="false" aria-controls="target-location-dropdown" />
<div id="target-location-dropdown" class="location-dropdown" role="listbox"></div>
</label>
<label>
目标时区
<input id="target-timezone" name="targetTimezone" type="number" min="-12" max="14" step="0.25" value="8" />
</label>
<label>
目标纬度
<input id="target-latitude" name="targetLatitude" type="number" min="-90" max="90" step="any" value="31.2304" />
</label>
<label>
目标经度
<input id="target-longitude" name="targetLongitude" type="number" min="-180" max="180" step="any" value="121.4737" />
</label>
<label>
时间线天数
<input id="timeline-days" name="timelineDays" type="number" min="7" max="365" step="1" value="90" />
</label>
<label>
精确容许度
<input id="timeline-orb" name="timelineOrb" type="number" min="0.05" max="2" step="0.05" value="0.25" />
</label>
<button id="calculate-predictive" type="button" class="wide ghost-button">计算预测</button>
<div class="settings-subhead wide">长期结构</div>
<label>
长期起始年龄
<input id="long-term-start-age" name="longTermStartAge" type="number" min="0" max="120" step="1" value="0" />
</label>
<label>
长期结束年龄
<input id="long-term-end-age" name="longTermEndAge" type="number" min="1" max="120" step="1" value="80" />
</label>
<label>
分段年数
<input id="long-term-segment-years" name="longTermSegmentYears" type="number" min="1" max="30" step="1" value="10" />
</label>
<label>
长期容许度
<input id="long-term-orb" name="longTermOrb" type="number" min="0.05" max="2" step="0.05" value="0.25" />
</label>
<label>
地点相关结构
<select id="long-term-location-mode" name="longTermLocationMode">
<option value="birth">使用出生地</option>
<option value="target">使用预测地点</option>
<option value="custom">使用长期结构地点</option>
<option value="yearly">按迁居计划</option>
</select>
</label>
<label class="location-field">
长期结构地点
<input id="long-term-location-name" name="longTermLocationName" value="上海,中国" autocomplete="off" aria-expanded="false" aria-controls="long-term-location-dropdown" />
<div id="long-term-location-dropdown" class="location-dropdown" role="listbox"></div>
</label>
<label>
长期地点时区
<input id="long-term-timezone" name="longTermTimezone" type="number" min="-12" max="14" step="0.25" value="8" />
</label>
<label>
长期地点纬度
<input id="long-term-latitude" name="longTermLatitude" type="number" min="-90" max="90" step="any" value="31.2304" />
</label>
<label>
长期地点经度
<input id="long-term-longitude" name="longTermLongitude" type="number" min="-180" max="180" step="any" value="121.4737" />
</label>
<div class="settings-subhead wide">迁居计划</div>
<div class="relocation-builder wide">
<div class="mini-grid">
<label>
生效日期
<input id="relocation-date" type="date" />
</label>
<label class="location-field">
迁居地点
<input id="relocation-location-name" autocomplete="off" aria-expanded="false" aria-controls="relocation-location-dropdown" />
<div id="relocation-location-dropdown" class="location-dropdown" role="listbox"></div>
</label>
<label>
迁居时区
<input id="relocation-timezone" type="number" min="-12" max="14" step="0.25" value="8" />
</label>
<label>
迁居纬度
<input id="relocation-latitude" type="number" min="-90" max="90" step="any" />
</label>
<label>
迁居经度
<input id="relocation-longitude" type="number" min="-180" max="180" step="any" />
</label>
<button id="add-relocation" type="button" class="ghost-button">加入迁居计划</button>
</div>
<div id="relocation-list" class="relocation-list"></div>
</div>
<label class="wide">
迁居计划原始数据
<textarea id="relocation-plan" name="relocationPlan" rows="3" placeholder="每行:2028-09-01|北京,中国 或:2031-01-15|New York|40.7128|-74.0060|-5"></textarea>
</label>
</div>
</details>
<details class="wide details-block">
<summary>合盘对象</summary>
<div class="mini-grid">
<label>
对象名称
<input id="partner-name" name="partnerName" placeholder="对方姓名/代号" />
</label>
<label>
出生日期
<input id="partner-date" name="partnerDate" type="date" />
</label>
<label>
出生时间
<input id="partner-time" name="partnerTime" type="time" step="60" />
</label>
<label class="location-field">
出生地
<input id="partner-location-name" name="partnerLocationName" autocomplete="off" aria-expanded="false" aria-controls="partner-location-dropdown" />
<div id="partner-location-dropdown" class="location-dropdown" role="listbox"></div>
</label>
<label>
时区
<input id="partner-timezone" name="partnerTimezone" type="number" min="-12" max="14" step="0.25" value="8" />
</label>
<label>
纬度
<input id="partner-latitude" name="partnerLatitude" type="number" min="-90" max="90" step="any" />
</label>
<label>
经度
<input id="partner-longitude" name="partnerLongitude" type="number" min="-180" max="180" step="any" />
</label>
<label class="toggle-item wide">
<input id="save-partner-profile" type="checkbox" checked />
保存档案时同步保存合盘对象
</label>
<button id="calculate-relationship" type="button" class="wide ghost-button">计算合盘</button>
</div>
</details>
<label class="wide">
备注
<textarea id="notes" name="notes" rows="4" placeholder="记录校时、资料来源、观察笔记"></textarea>
</label>
<div class="button-row wide">
<button id="calculate-natal" type="button">计算本命</button>
<button id="calculate-button" type="submit">计算全部</button>
<button id="save-button" type="button">保存档案</button>
<button id="refresh-saved" type="button" class="ghost-button">刷新档案</button>
</div>
<div class="export-row wide">
<button type="button" data-export="md" class="ghost-button">下载 MD</button>
</div>
<details class="wide details-block">
<summary>高级导出</summary>
<div class="export-row">
<button type="button" data-export="png" class="ghost-button">PNG</button>
<button type="button" data-export="pdf" class="ghost-button">PDF</button>
<button type="button" data-export="txt" class="ghost-button">TXT</button>
<button type="button" data-export="csv" class="ghost-button">CSV</button>
<button type="button" data-export="json" class="ghost-button">JSON</button>
</div>
</details>
</form>
<div class="saved-block">
<div class="section-head">
<h2>本地档案</h2>
<button id="clear-saved" type="button" class="danger-button small-button">清空档案</button>
</div>
<div id="saved-list" class="saved-list"></div>
</div>
</section>
<section class="panel chart-panel" aria-labelledby="chart-title">
<div class="section-head result-head">
<div>
<h2 id="chart-title">星盘轮盘</h2>
<span id="chart-meta" class="muted"></span>
</div>
<div class="result-actions" aria-label="结果快捷操作">
<button type="button" class="ghost-button" data-quick-action="copy-guide">复制解释</button>
<button type="button" class="ghost-button" data-quick-action="share-link">分享链接</button>
<button type="button" class="ghost-button" data-quick-action="ai-natal">AI 本命</button>
</div>
</div>
<div id="chart-wheel" class="wheel-frame"></div>
<div id="reading-panel" class="reading-panel" hidden></div>
<div id="summary-grid" class="summary-grid"></div>
<div class="tabs" id="data-tabs"></div>
<div id="data-panel" class="data-panel"></div>
</section>
<section class="panel markdown-panel" aria-labelledby="markdown-title">
<div class="section-head">
<h2 id="markdown-title">文字版星盘</h2>
<button id="copy-button" type="button" class="ghost-button">复制当前</button>
</div>
<div class="text-tools">
<div class="tool-group">
<div class="tool-group-title">常用</div>
<div class="copy-row">
<button type="button" class="ghost-button" data-copy-mode="guide">复制解释</button>
<button type="button" class="ghost-button" id="share-link-button">复制分享链接</button>
<button type="button" class="ghost-button" data-copy-mode="natal">复制本命</button>
</div>
</div>
<p class="privacy-note">分享链接只在你主动复制时生成,会把本命资料和计算设置编码在 URL 中,不包含本地档案历史。</p>
<div class="ai-copy-block">
<div class="ai-copy-title">
<strong>AI 解读助手</strong>
<span>复制 Prompt 后粘贴到你信任的 AI 工具中。</span>
</div>
<div class="copy-row ai-copy-row">
<button type="button" class="ghost-button" data-ai-prompt="natal">AI 本命</button>
<button type="button" class="ghost-button" data-ai-prompt="predictive">AI 行运</button>
<button type="button" class="ghost-button" data-ai-prompt="relationship">AI 合盘</button>
<button type="button" class="ghost-button" data-ai-prompt="classical">AI 古典</button>
</div>
<p class="privacy-note">Astrology Pro 不会主动上传出生资料;复制到第三方 AI 后,数据将由对应平台处理。</p>
</div>
<details class="tool-group professional-tools">
<summary>专业复制</summary>
<div class="copy-row">
<button type="button" class="ghost-button" data-copy-mode="full">复制完整</button>
<button type="button" class="ghost-button" data-copy-mode="predictive">复制预测</button>
<button type="button" class="ghost-button" data-copy-mode="longTerm">复制长期</button>
<button type="button" class="ghost-button" data-copy-mode="relationship">复制合盘</button>
<button type="button" class="ghost-button" data-copy-mode="classical">复制古典</button>
</div>
</details>
<label>
文本模板
<select id="text-mode">
<option value="full">完整专业版</option>
<option value="guide">快速解释版</option>
<option value="natal">本命盘版</option>
<option value="predictive">预测版</option>
<option value="longTerm">长期结构版</option>
<option value="relationship">合盘版</option>
<option value="classical">古典版</option>
<option value="custom">自定义模板</option>
</select>
</label>
<textarea id="custom-template" rows="5" placeholder="可用占位符:{{name}} {{birth}} {{place}} {{sun}} {{moon}} {{asc}} {{mc}} {{ic}} {{vertex}} {{fortune}} {{aspects}} {{pointAspects}}"></textarea>
</div>
<textarea id="markdown-output" spellcheck="false"></textarea>
</section>
</main>
<footer class="site-footer">
<span>Astrology Pro 是开源工具,星盘计算仅供学习、研究与娱乐参考。</span>
<span class="footer-links">
<a href="./LICENSE">许可证</a>
<a href="./learn.html">星盘入门</a>
<a href="./methodology.html">计算方法</a>
<a href="./NOTICE.md">开源说明</a>
<a href="./THIRD_PARTY_NOTICES.md">第三方声明</a>
<a href="./privacy.html">隐私政策</a>
<a href="./disclaimer.html">免责声明</a>
</span>
</footer>
<div class="mobile-action-bar" aria-label="移动端常用操作">
<button type="button" data-quick-action="calculate-natal">计算本命</button>
<button type="button" class="ghost-button" data-quick-action="copy-guide">复制解释</button>
<button type="button" class="ghost-button" data-quick-action="share-link">分享</button>
</div>
<script type="module" src="./src/app.js"></script>
</body>
</html>