Skip to content

Commit 8a4be97

Browse files
committed
📃 update readme
1 parent 32a9df8 commit 8a4be97

File tree

3 files changed

+75
-11
lines changed

3 files changed

+75
-11
lines changed

README-en_US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ A lightweight astrolabe generator of The Purple Star Astrology(Zi Wei Dou Shu).
1818
[![npm bundle size](https://img.shields.io/bundlephobia/min/iztro)](https://www.npmjs.com/package/iztro)
1919
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FSylarLong%2Fiztro.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FSylarLong%2Fiztro?ref=badge_shield)
2020
[![Package Quality](https://packagequality.com/shield/iztro.svg)](https://packagequality.com/#?package=iztro)
21+
[![](https://data.jsdelivr.com/v1/package/npm/iztro/badge)](https://www.jsdelivr.com/package/npm/iztro)
2122

2223
</div>
2324

README-zh_TW.md

Lines changed: 73 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
[![npm bundle size](https://img.shields.io/bundlephobia/min/iztro)](https://www.npmjs.com/package/iztro)
1919
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FSylarLong%2Fiztro.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FSylarLong%2Fiztro?ref=badge_shield)
2020
[![Package Quality](https://packagequality.com/shield/iztro.svg)](https://packagequality.com/#?package=iztro)
21+
[![](https://data.jsdelivr.com/v1/package/npm/iztro/badge)](https://www.jsdelivr.com/package/npm/iztro)
2122

2223
</div>
2324

@@ -55,12 +56,18 @@
5556
- 判斷指定星耀是否存在四化
5657
- 判斷指定星耀三方四正是否存在四化
5758
- 判斷指定星耀是否是某個亮度
58-
- 判斷指定星耀是否存在四化
5959
- 根據天幹獲取四化
6060
- 獲取指定星耀所在宮位
6161
- 獲取指定宮位三方四正宮位
6262
- 獲取指定星耀三方四正宮位
6363
- 獲取指定星耀對宮
64+
- 獲取指定運限宮位
65+
- 獲取指定運限宮位的三方四正
66+
- 判斷指定運限宮位內是否存在某些星耀
67+
- 判斷指定運限宮位內是否存在四化
68+
- 判斷指定運限三方四正內是否存在某些星耀
69+
- 判斷指定運限三方四正內是否存在四化
70+
- 判斷指定宮位是否是空宮
6471

6572
- 其他
6673

@@ -70,7 +77,7 @@
7077

7178
- 鏈式調用
7279

73-
假如妳想判斷 紫微星 的 三方四正 有沒有 化忌,妳可以這樣做
80+
假如你想判斷 紫微星 的 三方四正 有沒有 化忌,你可以這樣做
7481

7582
```ts
7683
import { astro } from 'iztro';
@@ -79,6 +86,10 @@
7986

8087
astrolabe.star('紫微').surroundedPalaces().haveMutagen('');
8188
```
89+
> [!IMPORTANT]
90+
> 如果你在開發中遇到任何問題,可以添加作者微信咨詢
91+
> 你也可以任意魔改代碼,或聯系作者獲取技術支持
92+
> <img src="https://github.com/SylarLong/SylarLong/assets/6510425/a2af4876-7d26-4900-a0fc-f5a2030f6205" alt="WeChat" width="350" />
8293

8394
### 快捷跳轉
8495

@@ -88,7 +99,7 @@
8899

89100
### 安裝依賴
90101

91-
妳可以使用任何妳熟悉的包管理庫來安裝`iztro`
102+
你可以使用任何你熟悉的包管理庫來安裝`iztro`
92103

93104
- NPM
94105

@@ -108,9 +119,56 @@
108119
pnpm install iztro -S
109120
```
110121

122+
### 獨立js
123+
124+
假如你使用的是靜態 `html` 文件,可以下載 [release](https://github.com/SylarLong/iztro/releases) 資源文件中的 `iztro-min-js.tar.gz` 壓縮包,裏面包含了一個 `iztro` 壓縮混淆過的`js`文件和對應的`sourcemap`文件。
125+
126+
> `v2.0.4+` 版本才提供獨立js庫。
127+
128+
`iztro.min.js`script標簽引入html文件使用。
129+
130+
```html
131+
132+
<!DOCTYPE html>
133+
<html>
134+
<head>
135+
<meta charset="utf-8">
136+
<title>iztro-紫微鬥數開源庫</title>
137+
</head>
138+
<body>
139+
<script src="./iztro.min.js"></script>
140+
<script>
141+
// 獲取一張星盤數據
142+
var astrolabe = iztro.asto.bySolar('2000-8-16', 2, '男', true, 'zh-CN');
143+
</script>
144+
</body>
145+
</html>
146+
147+
```
148+
149+
當然,我們更推薦你直接使用 `CDN` 加速鏈接,你可以在下面列表中選擇一個,在沒有指定版本號的時候,會自動指向最新版本的代碼庫
150+
151+
- jsdelivr
152+
153+
- https://cdn.jsdelivr.net/npm/iztro/dist/iztro.min.js
154+
- https://cdn.jsdelivr.net/npm/iztro@2.0.5/dist/iztro.min.js
155+
156+
- unpkg
157+
158+
- https://unpkg.com/iztro/dist/iztro.min.js
159+
- https://unpkg.com/iztro@2.0.5/dist/iztro.min.js
160+
161+
你也可以使用如下規則來指定版本:
162+
163+
- `iztro@2`
164+
- `iztro@^2.0.5`
165+
- `iztro@2.0.5`
166+
167+
應為純JS庫沒有代碼提示和註釋,所以在集成的時候請參閱 [iztro開發文檔](https://docs.iztro.com/quick-start.html)
168+
111169
### 例子
112170

113-
這裏是壹個簡單的例子顯示如何調用`iztro`獲取到紫微鬥數星盤數據,詳細文檔請移步[開發文檔](https://docs.iztro.com)
171+
這裏是一個簡單的例子顯示如何調用`iztro`獲取到紫微鬥數星盤數據,詳細文檔請移步[開發文檔](https://docs.iztro.com)
114172

115173
- ES6 Module
116174

@@ -138,18 +196,21 @@
138196

139197
### [貢獻指南](https://github.com/SylarLong/iztro/blob/main/CONTRIBUTING.md)
140198

141-
如果妳對`iztro`有興趣,也想加入貢獻隊伍,我們非常歡迎,妳可以用以下方式進行
199+
如果你對`iztro`有興趣,也想加入貢獻隊伍,我們非常歡迎,你可以用以下方式進行
142200

143-
- 如果妳對程序功能有什麽建議,請到[這裏](https://github.com/SylarLong/iztro/issues/new?assignees=SylarLong&labels=%E5%8A%9F%E8%83%BD%EF%BD%9Cfeature&projects=&template=new-feature.md&title=%7B%E6%A0%87%E9%A2%98%7D%EF%BD%9C%7Btitle%7D)創建壹個`功能需求`。
144-
- 如果妳發現程序有BUG,請到[這裏](https://github.com/SylarLong/iztro/issues/new?assignees=SylarLong&labels=%E6%BC%8F%E6%B4%9E%EF%BD%9Cbug&projects=&template=bug-report.md&title=%7Bversion%7D%3A%7Bfunction%7D-)創建壹個`BUG報告`。
145-
- 妳也可以將本倉庫`fork`到妳自己的倉庫進行編輯,然後提交PR到本倉庫。
146-
- 假如妳擅長外語,我們也歡迎妳對國際化文件的翻譯做出妳的貢獻,妳可以`fork`本倉庫,然後在[locales](https://github.com/SylarLong/iztro/tree/main/src/i18n/locales)文件夾下創建壹個國際化語言文件,然後復制其他語言文件目錄裏面的文件到妳的目錄下進行更改
201+
- 如果你對程序功能有什麽建議,請到[這裏](https://github.com/SylarLong/iztro/issues/new?assignees=SylarLong&labels=%E5%8A%9F%E8%83%BD%EF%BD%9Cfeature&projects=&template=new-feature.md&title=%7B%E6%A0%87%E9%A2%98%7D%EF%BD%9C%7Btitle%7D)創建一個`功能需求`。
202+
- 如果你發現程序有BUG,請到[這裏](https://github.com/SylarLong/iztro/issues/new?assignees=SylarLong&labels=%E6%BC%8F%E6%B4%9E%EF%BD%9Cbug&projects=&template=bug-report.md&title=%7Bversion%7D%3A%7Bfunction%7D-)創建一個`BUG報告`。
203+
- 你也可以將本倉庫`fork`到你自己的倉庫進行編輯,然後提交PR到本倉庫。
204+
- 假如你擅長外語,我們也歡迎你對國際化文件的翻譯做出你的貢獻,你可以`fork`本倉庫,然後在[locales](https://github.com/SylarLong/iztro/tree/main/src/i18n/locales)文件夾下創建一個國際化語言文件,然後復製其他語言文件目錄裏面的文件到你的目錄下進行更改
147205
- 當然,如果你覺得本程序對你有用,請給我買杯咖啡☕️ [![Static Badge](https://img.shields.io/badge/PaypalMe-8A2BE2?logo=paypal&link=https%3A%2F%2Fwww.paypal.com%2Fsylarlong)
148206
](https://PayPal.Me/sylarlong)
149207

208+
> [!IMPORTANT]
209+
> 如果你覺得代碼對你有用,請點⭐支持,你的⭐是我持續更新的動力
210+
150211
### 總結
151212

152-
使用本程序返回的數據,妳可以生成這樣壹張星盤,當然這隻是壹個例子,妳可以把註意力集中在星盤的設計上,也可以把重心放在數據的分析上,本程序為妳解決了最繁冗的工作,讓妳可以把精力更多的放在妳所需要關註的事情上面
213+
使用本程序返回的數據,你可以生成這樣一張星盤,當然這只是一個例子,你可以把註意力集中在星盤的設計上,也可以把重心放在數據的分析上,本程序為你解決了最繁冗的工作,讓你可以把精力更多的放在你所需要關註的事情上面
153214

154215
<img width="966" alt="image" src="https://github.com/SylarLong/react-iztro/assets/6510425/f4335997-fdd8-42e2-bb1a-600942f9b0ba">
155216

@@ -169,6 +230,7 @@ MIT License
169230

170231
Copyright &copy; 2023 Sylar Long
171232

172-
請合理使用本開源代碼,禁止用於非法目的。
233+
> [!NOTE]
234+
> 請合理使用本開源代碼,禁止用於非法目的。
173235

174236
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FSylarLong%2Fiztro.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FSylarLong%2Fiztro?ref=badge_large)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
[![npm bundle size](https://img.shields.io/bundlephobia/min/iztro)](https://www.npmjs.com/package/iztro)
2020
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FSylarLong%2Fiztro.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FSylarLong%2Fiztro?ref=badge_shield)
2121
[![Package Quality](https://packagequality.com/shield/iztro.svg)](https://packagequality.com/#?package=iztro)
22+
[![](https://data.jsdelivr.com/v1/package/npm/iztro/badge)](https://www.jsdelivr.com/package/npm/iztro)
2223

2324
</div>
2425

0 commit comments

Comments
 (0)