Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cdps): new component & style fixes #6

Merged
merged 4 commits into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cdps/develop/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sidebar_position: 6
:::tip

- 開發時應保持 `簡潔` 的原則。
- 若非所有用戶所需之功能,可以參考利用 [Inject 注入](../more/inject) 的方式實現。
- 若非所有用戶所需之功能,可以參考利用 [Inject 注入](/docs/cdps/miscellaneous/inject) 的方式實現。

:::

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ sidebar_position: 7
- [目錄樹](./tree)
- [多執行緒(threading)](./thread)
- [Inject 注入](./inject)
- [完全載入](./focus_load)
- [優先載入](./pre_load)
- [完全載入](./focus-load)
- [優先載入](./pre-load)
- [版本管理](./version)
- [依賴關係](./dependencies)
- [PyPI 依賴](./pip)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/cdps/plugin/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 5
sidebar_position: 4
---

# 擴充開發
Expand Down
8 changes: 0 additions & 8 deletions docs/cdps/plugin/more.mdx

This file was deleted.

30 changes: 14 additions & 16 deletions docs/cdps/plugins/color_log.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,41 @@
sidebar_position: 6
---

# color_log `1.0.2`
import PluginMetaBar from "@site/src/components/PluginMetaBar";

# 📦 color_log `1.0.2`

<PluginMetaBar
author="whes1015"
name="color_log"
repository="https://github.com/ExpTechTW/CDPS-color_log"
/>

:::danger

- 使用了**Inject 注入** [點擊查看](../more/inject)
此擴充套件使用了 **「Inject 注入」**,你可以在[這裡](/docs/cdps/miscellaneous/inject)查看詳細資訊。

:::

:::caution

- 使用了**完全載入(focus-load)** [點擊查看](../more/focus_load)
此擴充套件使用了 **「完全載入 (focus-load)」**,你可以在[這裡](/docs/cdps/miscellaneous/focus-load)查看詳細資訊。

:::

:::info

- 使用了**優先載入(pre-load)** [點擊查看](../more/pre_load)
此擴充套件使用了 **「優先載入 (pre-load)」**,你可以在[這裡](/docs/cdps/miscellaneous/pre-load)查看詳細資訊。

:::

:::note

- 此**擴充**使用**Inject 注入**修改 CDPS 的原生 Log 方法,可能導致 Log 問題,請謹慎使用。
此擴充套件使用了 **「Inject 注入」** 修改 CDPS 的原生 Log 方法,可能導致 Log 出現問題,請謹慎使用。

:::

### 作者

- [`YuYu1015`](https://github.com/whes1015)

### 說明

- CDPS 的 顏色 Log 輸出
CDPS 的 顏色 Log 輸出

## 依賴

Expand All @@ -47,7 +49,3 @@ sidebar_position: 6
### PyPI 依賴

- 無

## 原始碼

- [GitHub](https://github.com/ExpTechTW/CDPS-color_log)
18 changes: 8 additions & 10 deletions docs/cdps/plugins/discordwebhook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
sidebar_position: 3
---

# discordwebhook `1.0.1`
import PluginMetaBar from "@site/src/components/PluginMetaBar";

## 作者
# 📦 discordwebhook `1.0.1`

- [`PiscesXD`](https://github.com/PiscesXD)
<PluginMetaBar
author="piscesxd"
name="discordwebhook"
repository="https://github.com/piscesxd/cdps-discordwebhook"
/>

## 說明

- Discord Webhook
Discord Webhook

## 依賴

Expand All @@ -23,7 +25,3 @@ sidebar_position: 3
### PyPI 依賴

- 未知

## 原始碼

- [GitHub](https://github.com/PiscesXD/cdps-discordwebhook)
35 changes: 0 additions & 35 deletions docs/cdps/plugins/example.mdx

This file was deleted.

13 changes: 5 additions & 8 deletions docs/cdps/plugins/index.mdx
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
---
sidebar_position: 4
sidebar_position: 5
---

# 擴充
# 擴充套件

- 這裡紀錄著 可供使用的擴充
這裡紀錄著 可供使用的擴充

## 索引
## 工具

### 工具

- [example](./example)
- [discordwebhook](./discordwebhook)
- [color_log](./color_log)
- [websocketclient](./websocketclient)

### 資料
## 資料

- [report](./report)
30 changes: 14 additions & 16 deletions docs/cdps/plugins/report.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,32 @@
sidebar_position: 4
---

# report `1.0.1`
import PluginMetaBar from "@site/src/components/PluginMetaBar";

:::note

- 此**擴充**使用了已經遺棄的方法,不能在 CDPS `>= 1.0.18` 的版本上執行。
# 📦 report `1.0.1`

:::
<PluginMetaBar
author="yoyochou0901"
name="report"
repository="https://github.com/ExpTechTW/CDPS-report"
/>

### 作者
:::note

- [`Yoyo0901`](https://github.com/Yoyochou0901)
此擴充套件使用了已經遺棄的方法,將無法在 CDPS `>= 1.0.18` 的版本上執行。

### 說明
:::

- CDPS 接收地震報告
CDPS 接收地震報告

## 依賴

### CDPS 依賴

| 名稱 | 版本 |
| ------ | ----------- |
| `CDPS` | `>= 1.0.13` |
| 名稱 | 版本 |
| ------ | ----------------------- |
| `CDPS` | `>= 1.0.13`, `< 1.0.18` |

### PyPI 依賴

- 未知

## 原始碼

- [GitHub](https://github.com/ExpTechTW/CDPS-report)
28 changes: 13 additions & 15 deletions docs/cdps/plugins/websocketclient.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,29 @@
sidebar_position: 5
---

# websocketclient `1.0.4`
import PluginMetaBar from "@site/src/components/PluginMetaBar";

:::caution
# 📦 websocketclient `1.0.4`

- 使用了**完全載入(focus-load)** [點擊查看](../more/focus_load)
<PluginMetaBar
author="yayacat"
name="websocketclient"
repository="https://github.com/ExpTechTW/CDPS-websocketclient"
/>

:::

:::info
:::caution

- 使用了**優先載入(pre-load)** [點擊查看](../more/pre_load)
此擴充套件使用了 **「完全載入 (focus-load)」**,你可以在[這裡](/docs/cdps/miscellaneous/focus-load)查看詳細資訊。

:::

### 作者
:::info

- [`yayacat`](https://github.com/yayacat)
此擴充套件使用了 **「優先載入 (pre-load)」**,你可以在[這裡](/docs/cdps/miscellaneous/pre-load)查看詳細資訊。

### 說明
:::

- CDPS 的 websocket client 擴充
CDPS 的 websocket client 擴充

## 依賴

Expand All @@ -37,7 +39,3 @@ sidebar_position: 5
| 名稱 | 版本 |
| ------------------ | ---------- |
| `websocket-client` | `>= 1.8.0` |

## 原始碼

- [GitHub](https://github.com/ExpTechTW/CDPS-websocketclient)
4 changes: 2 additions & 2 deletions docs/cdps/release/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ sidebar_position: 8
#### 🌟 新增

- pip 依賴檢查
- [`@new_thread`](../more/thread#new_thread) 裝飾器
- [`@new_thread`](/docs/cdps/miscellaneous/thread#new_thread) 裝飾器

#### 🐞 修正

- Config 類不是 單例類 的問題

:::caution

- plugin 內的 `task` 現在改為 `task_run` [參考這裡](../more/thread#task_run)
- plugin 內的 `task` 現在改為 `task_run` [參考這裡](/docs/cdps/miscellaneous/thread#task_run)

:::

Expand Down
4 changes: 4 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,9 @@
"theme.unlistedContent.message": {
"message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
"description": "The unlisted content banner message"
},
"component.githubRepositoryLink.sourceCode": {
"message": "Source Code",
"description": "The label of source code link"
}
}
16 changes: 16 additions & 0 deletions i18n/en/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,21 @@
"sidebar.apiSidebar.category.氣象": {
"message": "Weather",
"description": "The label for category 氣象 in sidebar apiSidebar"
},
"sidebar.cdpsSidebar.category.CDPS": {
"message": "CDPS",
"description": "The label for category CDPS in sidebar cdpsSidebar"
},
"sidebar.cdpsSidebar.category.擴充開發": {
"message": "擴充開發",
"description": "The label for category 擴充開發 in sidebar cdpsSidebar"
},
"sidebar.cdpsSidebar.category.擴充套件": {
"message": "擴充套件",
"description": "The label for category 擴充套件 in sidebar cdpsSidebar"
},
"sidebar.cdpsSidebar.category.雜項": {
"message": "雜項",
"description": "The label for category 雜項 in sidebar cdpsSidebar"
}
}
10 changes: 5 additions & 5 deletions i18n/en/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"link.item.label.CDPS": {
"message": "CDPS",
"description": "The label of footer link with label=CDPS linking to /docs/cdps/start"
"description": "The label of footer link with label=CDPS linking to /docs/cdps/start/"
},
"link.item.label.服務條款": {
"message": "Terms of Services",
Expand All @@ -47,10 +47,6 @@
"message": "Discord",
"description": "The label of footer link with label=Discord linking to https://discord.com/invite/exptech-studio"
},
"link.item.label.Blog": {
"message": "Blog",
"description": "The label of footer link with label=Blog linking to /blog"
},
"link.item.label.GitHub": {
"message": "GitHub",
"description": "The label of footer link with label=GitHub linking to https://github.com/ExpTechTW"
Expand All @@ -62,5 +58,9 @@
"copyright": {
"message": "Copyright © 2024 ExpTech Studio. Built with Docusaurus.",
"description": "The footer copyright"
},
"link.item.label.部落格": {
"message": "Blog",
"description": "The label of footer link with label=部落格 linking to /blog"
}
}
Loading
Loading