@blocklet/ui-react 3.2.19 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.aigne/doc-smith/.local/afs-storage.sqlite3 +0 -0
- package/.aigne/doc-smith/history.yaml +5 -0
- package/.aigne/doc-smith/media-description.yaml +11 -0
- package/docs/assets/diagram/component-installer-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/component-installer-diagram-0.jpg +0 -0
- package/docs/assets/diagram/component-installer-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/component-installer-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/component-management-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/component-management-diagram-0.jpg +0 -0
- package/docs/assets/diagram/component-management-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/component-management-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/core-concepts-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/core-concepts-diagram-0.jpg +0 -0
- package/docs/assets/diagram/core-concepts-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/core-concepts-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/dashboard-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/dashboard-diagram-0.jpg +0 -0
- package/docs/assets/diagram/dashboard-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/dashboard-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/header-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/header-diagram-0.jpg +0 -0
- package/docs/assets/diagram/header-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/header-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/layout-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/layout-diagram-0.jpg +0 -0
- package/docs/assets/diagram/layout-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/layout-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/notifications-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/notifications-diagram-0.jpg +0 -0
- package/docs/assets/diagram/notifications-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/notifications-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/overview-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/overview-diagram-0.jpg +0 -0
- package/docs/assets/diagram/overview-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/overview-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/user-center-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/user-center-diagram-0.jpg +0 -0
- package/docs/assets/diagram/user-center-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/user-center-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/user-management-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/user-management-diagram-0.jpg +0 -0
- package/docs/assets/diagram/user-management-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/user-management-diagram-0.zh.jpg +0 -0
- package/docs/assets/diagram/user-sessions-diagram-0.ja.jpg +0 -0
- package/docs/assets/diagram/user-sessions-diagram-0.jpg +0 -0
- package/docs/assets/diagram/user-sessions-diagram-0.zh-TW.jpg +0 -0
- package/docs/assets/diagram/user-sessions-diagram-0.zh.jpg +0 -0
- package/docs/components-component-management-component-installer.ja.md +3 -77
- package/docs/components-component-management-component-installer.md +4 -78
- package/docs/components-component-management-component-installer.zh-TW.md +3 -77
- package/docs/components-component-management-component-installer.zh.md +3 -77
- package/docs/components-component-management.ja.md +3 -32
- package/docs/components-component-management.md +3 -32
- package/docs/components-component-management.zh-TW.md +3 -32
- package/docs/components-component-management.zh.md +3 -32
- package/docs/components-layout-dashboard.ja.md +3 -49
- package/docs/components-layout-dashboard.md +5 -49
- package/docs/components-layout-dashboard.zh-TW.md +3 -49
- package/docs/components-layout-dashboard.zh.md +3 -49
- package/docs/components-layout-header.ja.md +3 -53
- package/docs/components-layout-header.md +3 -53
- package/docs/components-layout-header.zh-TW.md +3 -53
- package/docs/components-layout-header.zh.md +3 -53
- package/docs/components-layout.ja.md +3 -22
- package/docs/components-layout.md +3 -22
- package/docs/components-layout.zh-TW.md +3 -22
- package/docs/components-layout.zh.md +3 -22
- package/docs/components-notifications.ja.md +3 -51
- package/docs/components-notifications.md +3 -51
- package/docs/components-notifications.zh-TW.md +3 -52
- package/docs/components-notifications.zh.md +3 -51
- package/docs/components-user-management-user-center.ja.md +3 -38
- package/docs/components-user-management-user-center.md +12 -48
- package/docs/components-user-management-user-center.zh-TW.md +3 -38
- package/docs/components-user-management-user-center.zh.md +3 -38
- package/docs/components-user-management-user-sessions.ja.md +3 -46
- package/docs/components-user-management-user-sessions.md +4 -45
- package/docs/components-user-management-user-sessions.zh-TW.md +3 -46
- package/docs/components-user-management-user-sessions.zh.md +3 -46
- package/docs/components-user-management.ja.md +3 -30
- package/docs/components-user-management.md +6 -31
- package/docs/components-user-management.zh-TW.md +3 -30
- package/docs/components-user-management.zh.md +3 -30
- package/docs/core-concepts.ja.md +3 -33
- package/docs/core-concepts.md +4 -33
- package/docs/core-concepts.zh-TW.md +3 -33
- package/docs/core-concepts.zh.md +3 -33
- package/docs/overview.ja.md +3 -43
- package/docs/overview.md +3 -43
- package/docs/overview.zh-TW.md +3 -43
- package/docs/overview.zh.md +3 -43
- package/package.json +10 -10
|
@@ -2,38 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
The User Management suite provides a collection of pre-built React components designed to handle essential user-related functionalities. These components simplify the implementation of user profiles, session management, and organization switching within your application, ensuring a consistent and reliable user experience.
|
|
4
4
|
|
|
5
|
-
This section provides an overview of the main components available in the suite.
|
|
5
|
+
This section provides an overview of the main components available in the suite. The following diagram illustrates how a user interacts with the different components of the application:
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
<!-- DIAGRAM_IMAGE_START:architecture:16:9:1765962229 -->
|
|
8
|
+

|
|
9
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
shape: c4-person
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
Application: {
|
|
15
|
-
label: "Blocklet Application"
|
|
16
|
-
shape: rectangle
|
|
17
|
-
grid-columns: 1
|
|
18
|
-
grid-gap: 100
|
|
19
|
-
|
|
20
|
-
UserCenter: {
|
|
21
|
-
label: "UserCenter\n(Profile & Settings)"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
UserSessions: {
|
|
25
|
-
label: "UserSessions\n(Login Activity)"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
OrgsSwitch: {
|
|
29
|
-
label: "OrgsSwitch\n(Team Context)"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
User -> Application.UserCenter: "Manages profile"
|
|
34
|
-
User -> Application.UserSessions: "Reviews sessions"
|
|
35
|
-
User -> Application.OrgsSwitch: "Switches organization"
|
|
36
|
-
```
|
|
11
|
+
For detailed implementation guides and API references, please refer to the specific component documentation linked below.
|
|
37
12
|
|
|
38
13
|
## Core Components
|
|
39
14
|
|
|
@@ -73,4 +48,4 @@ This suite of components provides the necessary building blocks for robust user
|
|
|
73
48
|
For detailed implementation guides, please proceed to the specific component documentation.
|
|
74
49
|
|
|
75
50
|
* **Next:** [UserCenter](./components-user-management-user-center.md)
|
|
76
|
-
* **See Also:** [UserSessions](./components-user-management-user-sessions.md)
|
|
51
|
+
* **See Also:** [UserSessions](./components-user-management-user-sessions.md)
|
|
@@ -4,36 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
本節概述了此套件中可用的主要元件。有關詳細的實作指南和 API 參考,請參閱下方連結的特定元件文件。
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
User: {
|
|
11
|
-
shape: c4-person
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
Application: {
|
|
15
|
-
label: "Blocklet 應用程式"
|
|
16
|
-
shape: rectangle
|
|
17
|
-
grid-columns: 1
|
|
18
|
-
grid-gap: 100
|
|
19
|
-
|
|
20
|
-
UserCenter: {
|
|
21
|
-
label: "UserCenter\n(個人資料與設定)"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
UserSessions: {
|
|
25
|
-
label: "UserSessions\n(登入活動)"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
OrgsSwitch: {
|
|
29
|
-
label: "OrgsSwitch\n(團隊情境)"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
User -> Application.UserCenter: "管理個人資料"
|
|
34
|
-
User -> Application.UserSessions: "檢視會話"
|
|
35
|
-
User -> Application.OrgsSwitch: "切換組織"
|
|
36
|
-
```
|
|
7
|
+
<!-- DIAGRAM_IMAGE_START:architecture:16:9:1765962229 -->
|
|
8
|
+

|
|
9
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
37
10
|
|
|
38
11
|
## 核心元件
|
|
39
12
|
|
|
@@ -4,36 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
本节概述了该套件中可用的主要组件。有关详细的实现指南和 API 参考,请参阅下方链接的特定组件文档。
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
User: {
|
|
11
|
-
shape: c4-person
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
Application: {
|
|
15
|
-
label: "Blocklet 应用"
|
|
16
|
-
shape: rectangle
|
|
17
|
-
grid-columns: 1
|
|
18
|
-
grid-gap: 100
|
|
19
|
-
|
|
20
|
-
UserCenter: {
|
|
21
|
-
label: "UserCenter\n(个人资料与设置)"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
UserSessions: {
|
|
25
|
-
label: "UserSessions\n(登录活动)"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
OrgsSwitch: {
|
|
29
|
-
label: "OrgsSwitch\n(团队上下文)"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
User -> Application.UserCenter: "管理个人资料"
|
|
34
|
-
User -> Application.UserSessions: "查看会话"
|
|
35
|
-
User -> Application.OrgsSwitch: "切换组织"
|
|
36
|
-
```
|
|
7
|
+
<!-- DIAGRAM_IMAGE_START:architecture:16:9:1765962229 -->
|
|
8
|
+

|
|
9
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
37
10
|
|
|
38
11
|
## 核心组件
|
|
39
12
|
|
package/docs/core-concepts.ja.md
CHANGED
|
@@ -8,39 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
ライブラリの動作は、単純なデータフローとして視覚化できます。blocklet のメタデータがライブラリへの入力として提供され、ライブラリはそれをパイプラインを通じて処理し、完全にレンダリングされた UI コンポーネントを生成します。これにより、開発者がアプリケーションごとに共通のレイアウト要素を手動で構築・設定する必要がなくなります。
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
blocklet-metadata: {
|
|
15
|
-
label: "Blocklet メタデータ\n(blocklet.yml から)"
|
|
16
|
-
shape: rectangle
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
blocklet-ui-library: {
|
|
20
|
-
label: "Blocklet UI ライブラリ\n(データ処理パイプライン)"
|
|
21
|
-
shape: rectangle
|
|
22
|
-
|
|
23
|
-
parse: { label: "1. パースとセクション分割" }
|
|
24
|
-
localize: { label: "2. ローカライズ (i18n)" }
|
|
25
|
-
filter: { label: "3. ロールによるフィルタリング" }
|
|
26
|
-
|
|
27
|
-
parse -> localize
|
|
28
|
-
localize -> filter
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
rendered-components: {
|
|
32
|
-
label: "自動レンダリングされるコンポーネント"
|
|
33
|
-
shape: rectangle
|
|
34
|
-
grid-columns: 3
|
|
35
|
-
|
|
36
|
-
Header: {}
|
|
37
|
-
Footer: {}
|
|
38
|
-
Dashboard: {}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
blocklet-metadata -> blocklet-ui-library: "入力"
|
|
42
|
-
blocklet-ui-library -> rendered-components: "出力"
|
|
43
|
-
```
|
|
11
|
+
<!-- DIAGRAM_IMAGE_START:flowchart:16:9:1765962229 -->
|
|
12
|
+

|
|
13
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
44
14
|
|
|
45
15
|
この自動化されたプロセスは、明確に定義されたメタデータ構造に依存しており、それについては次のセクションで詳しく説明します。
|
|
46
16
|
|
package/docs/core-concepts.md
CHANGED
|
@@ -8,39 +8,10 @@ The central idea is that a single configuration file, typically `blocklet.yml`,
|
|
|
8
8
|
|
|
9
9
|
The library's operation can be visualized as a simple data flow: the blocklet metadata is provided as input to the library, which then processes it through a pipeline to produce fully rendered UI components. This eliminates the need for developers to manually build and configure common layout elements for each application.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
label: "Blocklet Metadata\n(from blocklet.yml)"
|
|
16
|
-
shape: rectangle
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
blocklet-ui-library: {
|
|
20
|
-
label: "Blocklet UI Library\n(Data Processing Pipeline)"
|
|
21
|
-
shape: rectangle
|
|
22
|
-
|
|
23
|
-
parse: { label: "1. Parse & Section" }
|
|
24
|
-
localize: { label: "2. Localize (i18n)" }
|
|
25
|
-
filter: { label: "3. Filter by Role" }
|
|
26
|
-
|
|
27
|
-
parse -> localize
|
|
28
|
-
localize -> filter
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
rendered-components: {
|
|
32
|
-
label: "Automatically Rendered Components"
|
|
33
|
-
shape: rectangle
|
|
34
|
-
grid-columns: 3
|
|
35
|
-
|
|
36
|
-
Header: {}
|
|
37
|
-
Footer: {}
|
|
38
|
-
Dashboard: {}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
blocklet-metadata -> blocklet-ui-library: "Input"
|
|
42
|
-
blocklet-ui-library -> rendered-components: "Output"
|
|
43
|
-
```
|
|
11
|
+
The following diagram illustrates this data flow:
|
|
12
|
+
<!-- DIAGRAM_IMAGE_START:flowchart:16:9:1765962229 -->
|
|
13
|
+

|
|
14
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
44
15
|
|
|
45
16
|
This automated process relies on a well-defined metadata structure, which is detailed in the following section.
|
|
46
17
|
|
|
@@ -8,39 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
該函式庫的運作可以視覺化為一個簡單的資料流:blocklet 元數據作為輸入提供給函式庫,函式庫接著透過一個管線對其進行處理,以產生完全渲染的 UI 元件。這免去了開發人員為每個應用程式手動建構和設定通用佈局元素的需要。
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
blocklet-metadata: {
|
|
15
|
-
label: "Blocklet 元數據\n(來自 blocklet.yml)"
|
|
16
|
-
shape: rectangle
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
blocklet-ui-library: {
|
|
20
|
-
label: "Blocklet UI 函式庫\n(資料處理管線)"
|
|
21
|
-
shape: rectangle
|
|
22
|
-
|
|
23
|
-
parse: { label: "1. 解析與分區" }
|
|
24
|
-
localize: { label: "2. 本地化 (i18n)" }
|
|
25
|
-
filter: { label: "3. 依角色篩選" }
|
|
26
|
-
|
|
27
|
-
parse -> localize
|
|
28
|
-
localize -> filter
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
rendered-components: {
|
|
32
|
-
label: "自動渲染的元件"
|
|
33
|
-
shape: rectangle
|
|
34
|
-
grid-columns: 3
|
|
35
|
-
|
|
36
|
-
Header: {}
|
|
37
|
-
Footer: {}
|
|
38
|
-
Dashboard: {}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
blocklet-metadata -> blocklet-ui-library: "輸入"
|
|
42
|
-
blocklet-ui-library -> rendered-components: "輸出"
|
|
43
|
-
```
|
|
11
|
+
<!-- DIAGRAM_IMAGE_START:flowchart:16:9:1765962229 -->
|
|
12
|
+

|
|
13
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
44
14
|
|
|
45
15
|
這個自動化過程依賴於一個定義良好的元數據結構,下一節將對此進行詳細說明。
|
|
46
16
|
|
package/docs/core-concepts.zh.md
CHANGED
|
@@ -8,39 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
该库的运作可以看作一个简单的数据流:blocklet 元数据作为输入提供给库,库通过一个管道处理它,最终生成完全渲染的 UI 组件。这免去了开发者为每个应用程序手动构建和配置通用布局元素的需求。
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
blocklet-metadata: {
|
|
15
|
-
label: "Blocklet 元数据\n(来自 blocklet.yml)"
|
|
16
|
-
shape: rectangle
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
blocklet-ui-library: {
|
|
20
|
-
label: "Blocklet UI 库\n(数据处理管道)"
|
|
21
|
-
shape: rectangle
|
|
22
|
-
|
|
23
|
-
parse: { label: "1. 解析与分段" }
|
|
24
|
-
localize: { label: "2. 本地化 (i18n)" }
|
|
25
|
-
filter: { label: "3. 按角色过滤" }
|
|
26
|
-
|
|
27
|
-
parse -> localize
|
|
28
|
-
localize -> filter
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
rendered-components: {
|
|
32
|
-
label: "自动渲染的组件"
|
|
33
|
-
shape: rectangle
|
|
34
|
-
grid-columns: 3
|
|
35
|
-
|
|
36
|
-
Header: {}
|
|
37
|
-
Footer: {}
|
|
38
|
-
Dashboard: {}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
blocklet-metadata -> blocklet-ui-library: "输入"
|
|
42
|
-
blocklet-ui-library -> rendered-components: "输出"
|
|
43
|
-
```
|
|
11
|
+
<!-- DIAGRAM_IMAGE_START:flowchart:16:9:1765962229 -->
|
|
12
|
+

|
|
13
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
44
14
|
|
|
45
15
|
这个自动化过程依赖于一个明确定义的元数据结构,下一节将详细介绍。
|
|
46
16
|
|
package/docs/overview.ja.md
CHANGED
|
@@ -14,49 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
このライブラリのアーキテクチャは、シンプルさと自動化を目的として設計されています。`Header`や`Footer`のようなコンポーネントがレンダリングされると、`window.blocklet`オブジェクトから設定データを読み取ります。このオブジェクトは、Blocklet Serverによって`blocklet.yml`ファイルから読み込まれます。これにより、UIの構造とブランディングを中央の設定ファイルで定義でき、コンポーネントはそれに応じて適応します。
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
blocklet-yml: {
|
|
21
|
-
label: "blocklet.yml\n(メタデータソース)"
|
|
22
|
-
shape: rectangle
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
blocklet-server: {
|
|
26
|
-
label: "Blocklet Server"
|
|
27
|
-
shape: rectangle
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
window-blocklet: {
|
|
31
|
-
label: "window.blocklet\n(ランタイム設定)"
|
|
32
|
-
shape: rectangle
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
your-app: {
|
|
36
|
-
label: "あなたのアプリケーション"
|
|
37
|
-
shape: rectangle
|
|
38
|
-
|
|
39
|
-
Header: {
|
|
40
|
-
label: "<Header />"
|
|
41
|
-
shape: rectangle
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
Footer: {
|
|
45
|
-
label: "<Footer />"
|
|
46
|
-
shape: rectangle
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
rendered-ui: {
|
|
51
|
-
label: "レンダリングされたUI"
|
|
52
|
-
shape: rectangle
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
blocklet-yml -> blocklet-server: "1. メタデータを定義"
|
|
56
|
-
blocklet-server -> window-blocklet: "2. ランタイムに投入"
|
|
57
|
-
window-blocklet -> your-app: "3. コンポーネントが設定を読み取り"
|
|
58
|
-
your-app -> rendered-ui: "4. 設定されたUIをレンダリング"
|
|
59
|
-
```
|
|
17
|
+
<!-- DIAGRAM_IMAGE_START:architecture:16:9:1765962229 -->
|
|
18
|
+

|
|
19
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
60
20
|
|
|
61
21
|
## 主な機能
|
|
62
22
|
|
package/docs/overview.md
CHANGED
|
@@ -14,49 +14,9 @@ This metadata-driven approach means that elements like your application's name,
|
|
|
14
14
|
|
|
15
15
|
The library's architecture is designed for simplicity and automation. When a component like `Header` or `Footer` is rendered, it reads configuration data from the `window.blocklet` object, which is populated by the Blocklet Server from your `blocklet.yml` file. This allows you to define your UI's structure and branding in a central configuration file, and the components adapt accordingly.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
blocklet-yml: {
|
|
21
|
-
label: "blocklet.yml\n(Metadata Source)"
|
|
22
|
-
shape: rectangle
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
blocklet-server: {
|
|
26
|
-
label: "Blocklet Server"
|
|
27
|
-
shape: rectangle
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
window-blocklet: {
|
|
31
|
-
label: "window.blocklet\n(Runtime Configuration)"
|
|
32
|
-
shape: rectangle
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
your-app: {
|
|
36
|
-
label: "Your Application"
|
|
37
|
-
shape: rectangle
|
|
38
|
-
|
|
39
|
-
Header: {
|
|
40
|
-
label: "<Header />"
|
|
41
|
-
shape: rectangle
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
Footer: {
|
|
45
|
-
label: "<Footer />"
|
|
46
|
-
shape: rectangle
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
rendered-ui: {
|
|
51
|
-
label: "Rendered UI"
|
|
52
|
-
shape: rectangle
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
blocklet-yml -> blocklet-server: "1. Defines metadata"
|
|
56
|
-
blocklet-server -> window-blocklet: "2. Populates at runtime"
|
|
57
|
-
window-blocklet -> your-app: "3. Components read config"
|
|
58
|
-
your-app -> rendered-ui: "4. Renders configured UI"
|
|
59
|
-
```
|
|
17
|
+
<!-- DIAGRAM_IMAGE_START:architecture:16:9:1765962229 -->
|
|
18
|
+

|
|
19
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
60
20
|
|
|
61
21
|
## Key Features
|
|
62
22
|
|
package/docs/overview.zh-TW.md
CHANGED
|
@@ -14,49 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
此程式庫的架構設計旨在簡潔與自動化。當 `Header` 或 `Footer` 等元件被渲染時,它會從 `window.blocklet` 物件中讀取設定資料,該物件由 Blocklet Server 從您的 `blocklet.yml` 檔案中填入。這讓您可以在一個中央設定檔中定義 UI 的結構和品牌,而元件會相應地進行調整。
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
blocklet-yml: {
|
|
21
|
-
label: "blocklet.yml\n(元資料來源)"
|
|
22
|
-
shape: rectangle
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
blocklet-server: {
|
|
26
|
-
label: "Blocklet Server"
|
|
27
|
-
shape: rectangle
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
window-blocklet: {
|
|
31
|
-
label: "window.blocklet\n(執行期設定)"
|
|
32
|
-
shape: rectangle
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
your-app: {
|
|
36
|
-
label: "您的應用程式"
|
|
37
|
-
shape: rectangle
|
|
38
|
-
|
|
39
|
-
Header: {
|
|
40
|
-
label: "<Header />"
|
|
41
|
-
shape: rectangle
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
Footer: {
|
|
45
|
-
label: "<Footer />"
|
|
46
|
-
shape: rectangle
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
rendered-ui: {
|
|
51
|
-
label: "渲染後的 UI"
|
|
52
|
-
shape: rectangle
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
blocklet-yml -> blocklet-server: "1. 定義元資料"
|
|
56
|
-
blocklet-server -> window-blocklet: "2. 在執行期填入"
|
|
57
|
-
window-blocklet -> your-app: "3. 元件讀取設定"
|
|
58
|
-
your-app -> rendered-ui: "4. 渲染已設定的 UI"
|
|
59
|
-
```
|
|
17
|
+
<!-- DIAGRAM_IMAGE_START:architecture:16:9:1765962229 -->
|
|
18
|
+

|
|
19
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
60
20
|
|
|
61
21
|
## 主要特色
|
|
62
22
|
|
package/docs/overview.zh.md
CHANGED
|
@@ -14,49 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
该库的架构设计旨在实现简洁和自动化。当渲染 `Header` 或 `Footer` 等组件时,它会从 `window.blocklet` 对象中读取配置数据,该对象由 Blocklet Server 从您的 `blocklet.yml` 文件中填充。这使您能够在一个中央配置文件中定义 UI 的结构和品牌,而组件会相应地进行调整。
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
blocklet-yml: {
|
|
21
|
-
label: "blocklet.yml\n(元数据源)"
|
|
22
|
-
shape: rectangle
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
blocklet-server: {
|
|
26
|
-
label: "Blocklet Server"
|
|
27
|
-
shape: rectangle
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
window-blocklet: {
|
|
31
|
-
label: "window.blocklet\n(运行时配置)"
|
|
32
|
-
shape: rectangle
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
your-app: {
|
|
36
|
-
label: "您的应用程序"
|
|
37
|
-
shape: rectangle
|
|
38
|
-
|
|
39
|
-
Header: {
|
|
40
|
-
label: "<Header />"
|
|
41
|
-
shape: rectangle
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
Footer: {
|
|
45
|
-
label: "<Footer />"
|
|
46
|
-
shape: rectangle
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
rendered-ui: {
|
|
51
|
-
label: "渲染后的 UI"
|
|
52
|
-
shape: rectangle
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
blocklet-yml -> blocklet-server: "1. 定义元数据"
|
|
56
|
-
blocklet-server -> window-blocklet: "2. 在运行时填充"
|
|
57
|
-
window-blocklet -> your-app: "3. 组件读取配置"
|
|
58
|
-
your-app -> rendered-ui: "4. 渲染配置好的 UI"
|
|
59
|
-
```
|
|
17
|
+
<!-- DIAGRAM_IMAGE_START:architecture:16:9:1765962229 -->
|
|
18
|
+

|
|
19
|
+
<!-- DIAGRAM_IMAGE_END -->
|
|
60
20
|
|
|
61
21
|
## 主要特性
|
|
62
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"url": "https://github.com/ArcBlock/ux/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/constant": "^1.17.
|
|
37
|
-
"@abtnode/util": "^1.17.
|
|
38
|
-
"@arcblock/bridge": "3.
|
|
39
|
-
"@arcblock/icons": "3.
|
|
40
|
-
"@arcblock/react-hooks": "3.
|
|
41
|
-
"@arcblock/ws": "^1.27.
|
|
42
|
-
"@blocklet/did-space-react": "^1.2.
|
|
36
|
+
"@abtnode/constant": "^1.17.6",
|
|
37
|
+
"@abtnode/util": "^1.17.6",
|
|
38
|
+
"@arcblock/bridge": "3.3.1",
|
|
39
|
+
"@arcblock/icons": "3.3.1",
|
|
40
|
+
"@arcblock/react-hooks": "3.3.1",
|
|
41
|
+
"@arcblock/ws": "^1.27.16",
|
|
42
|
+
"@blocklet/did-space-react": "^1.2.11",
|
|
43
43
|
"@iconify-icons/logos": "^1.2.36",
|
|
44
44
|
"@iconify-icons/material-symbols": "^1.2.58",
|
|
45
45
|
"@iconify-icons/tabler": "^1.2.95",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@arcblock/did-connect-react": "3.
|
|
85
|
+
"@arcblock/did-connect-react": "3.3.1",
|
|
86
86
|
"@babel/preset-env": "^7.28.0",
|
|
87
87
|
"@babel/preset-react": "^7.27.1",
|
|
88
88
|
"@babel/preset-typescript": "^7.27.1",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"typescript": "~5.5.4",
|
|
97
97
|
"unbuild": "^2.0.0"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "39aec3e1aef080ae289918120dc12629940a75b4"
|
|
100
100
|
}
|