Skip to content

Commit 21a2d25

Browse files
yujingzWoodii1998
andauthored
Release 25.20 (#290)
* feat: update catalogue (#286) * Add Translations for Custom Panels and some broken links fix (#288) * feat: add dev script to package.json and update links in documentation - Added a new "dev" script to package.json for easier local development. - Updated links in the device collector and data diagnosis documentation for better navigation. - Ensured consistent formatting in the device collector documentation. * Fix absolute links in cn changelog * create project broken link * add translations * translate message converters * translate topic aliases * translate other docs * fix a couple files that did not translate to english * Add more translations * Fix/broken links (#289) * before fixing the markdown references * fix broken links --------- Co-authored-by: Woodii <[email protected]>
1 parent dae1003 commit 21a2d25

File tree

116 files changed

+5096
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+5096
-103
lines changed

docs/device/4-device-collector.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ sidebar_position: 4
3131

3232
![org-dev-rule-save](./img/4-3-device-save-collector.png)
3333

34-
## 数采规则格式详解
34+
## 数采规则格式详解 {#device-collector-format}
3535

3636
数采规则主要对 5 个模块进行设置:
3737

3838
| 模块名称 | 功能描述 |
3939
| --------------------------- | -------------------------------------------------------------- |
40-
| 数据收集器设置(collector) | 完成数据采集后,是否删除数采客户端在设备端生成的缓存数据 |
40+
| 数据收集器设置(collector) | 完成数据采集后,是否删除数采客户端在设备端生成的缓存数据 |
4141
| 存储设置(mod) | 设备 ID 存放位置;监听目录;客户端初始化监听时间范围;采集目录 |
4242
| 设备事件属性(device) | 事件的属性值 |
4343
| 规则触发话题(topic) | 规则触发话题 |
44-
| 更新设置(updater) | 数采客户端是否开启自动更新 |
44+
| 更新设置(updater) | 数采客户端是否开启自动更新 |
4545

4646
示例模板如下:
4747

docs/use-case/data-diagnosis/2-get-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sidebar_position: 2
1414

1515
1. 请准备好一台设备
1616

17-
2. 请创建名为 auto-upload 的项目,详情参见[创建新项目](https://docs.coscene.cn/docs/recipes/project)
17+
2. 请创建名为 auto-upload 的项目
1818

1919
3. 请确认你在 coScene 的组织角色为「管理员」。若不是管理员,请联系组织管理员更新你的组织角色。
2020

@@ -96,7 +96,7 @@ sidebar_position: 2
9696
enabled: false
9797
```
9898
99-
\*更多配置参见[数采规则格式](https://docs.coscene.cn/docs/recipes/device/device-collector/#%E6%95%B0%E9%87%87%E8%A7%84%E5%88%99%E6%A0%BC%E5%BC%8F)
99+
更多配置参见[数采规则格式](../../device/4-device-collector.md#device-collector-format)
100100
101101
3. 点击【保存编辑】按钮
102102

docs/viz/8-extensions/5-api/5-topic-aliases/2-topic-alias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ name: string;
2020

2121
```typescript
2222
sourceTopicName: string;
23-
```
23+
```

docs/viz/8-extensions/5-api/5-topic-aliases/3-topic-alias-function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ TopicAliasFunction 接收数据源主题和变量列表,并输出别名主题
1212

1313
## 参数
1414

15-
| 参数 | 类型 |
16-
| --- | --- |
15+
| 参数 | 类型 |
16+
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1717
| args | [Immutable](../6-other/2-immutable.md)\<\{ topics: [BaseTopic](./1-base-topic.md)[]; globalVariables: Readonly\<Record\<string, [VariableValue](../6-other/8-variable-value.md)\>\>; \}\> |
1818

1919
## 返回值
2020

21-
TopicAlias[]
21+
TopicAlias[]

docs/viz/8-extensions/5-api/6-other/2-immutable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ type Immutable<Type> = Type extends Exclude<Builtin, Error> ? Type : Type extend
1212
## 类型参数
1313

1414
| 类型参数 |
15-
| -------------- |
16-
| Type |
15+
| -------- |
16+
| Type |

docs/viz/8-extensions/5-api/6-other/8-variable-value.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ sidebar_position: 8
77
```typescript
88
type VariableValue = undefined | boolean | number | string | VariableValue[] | {};
99
```
10-
11-
变量的有效类型

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { themes } from 'prism-react-renderer';
99
const defaultExclude = ['**/_*.{js,jsx,ts,tsx,md,mdx}', '**/_*/**', '**/*.test.{js,jsx,ts,tsx}', '**/__tests__/**'];
1010

1111
// some docs are not translated, so we need to exclude them in en
12-
const excludeInEn = ['**/viz/8-extensions/**', '**/viz/9-message-schemas/**'];
12+
const excludeInEn = [];
1313

1414
/** @type {import('@docusaurus/types').Config} */
1515
const config = {

i18n/en/code.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,5 +598,11 @@
598598
},
599599
"home.catalogue.apt-source-install": {
600600
"message": "Installing coScene Software via APT"
601+
},
602+
"home.catalogue.extensions": {
603+
"message": "Extensions"
604+
},
605+
"home.catalogue.message-schemas": {
606+
"message": "Message Schemas"
601607
}
602-
}
608+
}

i18n/en/docusaurus-plugin-content-docs/current.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"sidebar.tutorialSidebar.category.新手入门": {
77
"message": "Getting Started",
8-
"description": "The label for category 快速开始 in sidebar tutorialSidebar"
8+
"description": "The label for category 新手入门 in sidebar tutorialSidebar"
99
},
1010
"sidebar.tutorialSidebar.category.协作": {
1111
"message": "Collaboration",
@@ -117,6 +117,46 @@
117117
},
118118
"sidebar.tutorialSidebar.category.客户端": {
119119
"message": "Desktop Apps",
120-
"description": "The label for category 客户端 in the sidebar"
120+
"description": "The label for category 客户端 in sidebar tutorialSidebar"
121+
},
122+
"sidebar.tutorialSidebar.category.插件": {
123+
"message": "Extensions",
124+
"description": "The label for category 插件 in sidebar tutorialSidebar"
125+
},
126+
"sidebar.tutorialSidebar.category.最佳实践": {
127+
"message": "Best Practices",
128+
"description": "The label for category 最佳实践 in sidebar tutorialSidebar"
129+
},
130+
"sidebar.tutorialSidebar.category.指南": {
131+
"message": "Guide",
132+
"description": "The label for category 指南 in sidebar tutorialSidebar"
133+
},
134+
"sidebar.tutorialSidebar.category.API 参考": {
135+
"message": "API References",
136+
"description": "The label for category API 参考 in sidebar tutorialSidebar"
137+
},
138+
"sidebar.tutorialSidebar.category.入口": {
139+
"message": "Entry Point",
140+
"description": "The label for category 入口 in sidebar tutorialSidebar"
141+
},
142+
"sidebar.tutorialSidebar.category.自定义面板": {
143+
"message": "Custom Panels",
144+
"description": "The label for category 自定义面板 in sidebar tutorialSidebar"
145+
},
146+
"sidebar.tutorialSidebar.category.消息转换器": {
147+
"message": "Message Converters",
148+
"description": "The label for category 消息转换器 in sidebar tutorialSidebar"
149+
},
150+
"sidebar.tutorialSidebar.category.话题别名": {
151+
"message": "Topic Aliases",
152+
"description": "The label for category 话题别名 in sidebar tutorialSidebar"
153+
},
154+
"sidebar.tutorialSidebar.category.其他": {
155+
"message": "Others",
156+
"description": "The label for category 其他 in sidebar tutorialSidebar"
157+
},
158+
"sidebar.tutorialSidebar.category.消息架构": {
159+
"message": "Message Schema",
160+
"description": "The label for category 消息架构 in sidebar tutorialSidebar"
121161
}
122162
}

i18n/en/docusaurus-plugin-content-docs/current/collaboration/integration/1-jira-integration.md

Lines changed: 59 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,65 @@ sidebar_position: 1
33
---
44

55
# Jira Integration
6+
67
## Introduction
8+
79
After configuring Jira integration, you can synchronize project tasks to Jira for unified task management on the enterprise ticketing platform. Here are typical use cases:
10+
811
1. When device issues occur, automatically upload data and create tasks in Jira
912
2. During data visualization analysis, create tasks at key timestamps and sync them to Jira
1013

1114
## Operation Process
15+
1216
### Configure Integration
1317

1418
> Each project is configured independently, and only project administrators can edit
1519
1620
1. Enter the project that needs integration configuration, go to Project Settings - Service Integration - Jira, and click the [Add Config] button.
1721

18-
![jira_1](./img/jira_1.png)
22+
![jira_1](./img/jira_1.png)
1923

2024
2. Fill in the integration configuration and save. Field descriptions are as follows:
2125

22-
```yaml
23-
enabled: true # Enable configuration
24-
25-
endpoint: https://jira.com/ # Jira URL
26-
httpBasicAuthorization:
27-
usernameAndPassword:
28-
username: root # Jira username
29-
password: admin # Jira password
30-
31-
projectKey: TEST # Jira project Key
32-
issueType: 'Bug' # Jira issue type
33-
issueTitleTemplate: '{{task.title}}' # Jira issue title, e.g., task name
34-
issueDescriptionTemplate: | # Issue description
35-
[Task Name]: {{task.title}}
36-
[Device ID]: {{device.id}}
37-
[Record Link]: {{record.link}}
38-
39-
customFields: # Issue custom fields
40-
customfield_1:
41-
id: '88888' # Field 1 (dropdown style), select option with id 88888
42-
customfield_2: TEST # Field 2 (text box style), enter content as TEST
43-
customfield_3: # Field 3, enter P1
44-
value: P1
45-
```
26+
```yaml
27+
enabled: true # Enable configuration
28+
29+
endpoint: https://jira.com/ # Jira URL
30+
httpBasicAuthorization:
31+
usernameAndPassword:
32+
username: root # Jira username
33+
password: admin # Jira password
34+
35+
projectKey: TEST # Jira project Key
36+
issueType: 'Bug' # Jira issue type
37+
issueTitleTemplate: '{{task.title}}' # Jira issue title, e.g., task name
38+
issueDescriptionTemplate: | # Issue description
39+
[Task Name]: {{task.title}}
40+
[Device ID]: {{device.id}}
41+
[Record Link]: {{record.link}}
42+
43+
customFields: # Issue custom fields
44+
customfield_1:
45+
id: '88888' # Field 1 (dropdown style), select option with id 88888
46+
customfield_2: TEST # Field 2 (text box style), enter content as TEST
47+
customfield_3: # Field 3, enter P1
48+
value: P1
49+
```
4650
4751
- **enabled**
48-
52+
4953
Jira integration status, enable/disable (true/false). Enabled by default, when disabled tasks cannot be synced to Jira
5054
5155
- **endpoint**
5256
5357
Jira URL, e.g., `https://www.atlassian.com/`
5458

5559
- **username**
56-
60+
5761
Jira username, used to create issues and get issue information in Jira projects with this user's identity
5862

5963
- **password**
60-
64+
6165
Password corresponding to the Jira username
6266

6367
- **projectKey**
@@ -77,18 +81,19 @@ After configuring Jira integration, you can synchronize project tasks to Jira fo
7781
```
7882

7983
Where:
84+
8085
- `{jira_endpoint}`: Jira URL, e.g., https://www.atlassian.com/
8186
- `{projectKey}`: Jira project Key
8287

8388
2. After getting all issue type information, use ctrl + f shortcut to quickly find the id corresponding to the issue type you need to configure, e.g., find the id value for `issuetype` `Bug`
8489

85-
![jira_2](./img/jira_2.png)
90+
![jira_2](./img/jira_2.png)
8691

8792
3. After finding the id corresponding to the issue type, configure it in the `issueType` field.
88-
89-
```yaml
90-
issueType: '10004' # Jira issue type
91-
```
93+
94+
```yaml
95+
issueType: '10004' # Jira issue type
96+
```
9297

9398
- **issueTitleTemplate**
9499

@@ -109,52 +114,57 @@ After configuring Jira integration, you can synchronize project tasks to Jira fo
109114
```
110115

111116
Where:
117+
112118
- `{jira_endpoint}`: Jira URL, e.g., https://www.atlassian.com/
113119
- `{projectKey}`: Jira project Key
114120

115121
2. After getting all field information, use ctrl + f shortcut to quickly find the custom field name you need to configure, e.g., find the name and value of field `test1-type`
116122

117-
![jira_3](./img/jira_3.png)
123+
![jira_3](./img/jira_3.png)
118124

119125
3. Enter the corresponding field format according to the [Jira Official Documentation](https://developer.atlassian.com/server/jira/platform/rest/v10000/intro/#field-input-formats), enter the field name and value in the Jira configuration. Taking the multi-select box `test1-type` as an example:
126+
120127
- Find "Multi-select Type" in the Jira official documentation, copy the format
121128

122129
![jira_4](./img/jira_4.png)
123130

124131
- Under custom fields in the Jira configuration, paste the "Multi-select Type" format, replace the content with the previously found `test1-type` field name and value
125132

126-
```yaml
127-
customFields:
128-
"customfield_10187" : [ { "value": "n1" }, { "value": "n2" } ]
129-
```
133+
```yaml
134+
customFields:
135+
'customfield_10187': [{ 'value': 'n1' }, { 'value': 'n2' }]
136+
```
130137

131138
### Variable Description
139+
132140
Task information in integration supports using variables, see the table below:
133141

134-
| Variable Name | Meaning |
135-
|--------|------|
136-
| `{{task.title}}` | Task name |
137-
| `{{record.title}}` | Record name |
142+
| Variable Name | Meaning |
143+
| ------------------------ | ------------------ |
144+
| `{{task.title}}` | Task name |
145+
| `{{record.title}}` | Record name |
138146
| `{{record.description}}` | Record description |
139-
| `{{record.labels}}` | Record labels |
140-
| `{{record.link}}` | Record link |
141-
| `{{device.id}}` | Device ID |
142-
| `{{device.title}}` | Device name |
147+
| `{{record.labels}}` | Record labels |
148+
| `{{record.link}}` | Record link |
149+
| `{{device.id}}` | Device ID |
150+
| `{{device.title}}` | Device name |
143151

144152
### Synchronize Tasks to Jira
145153

146154
> After Jira integration configuration is complete, general tasks in the project can be synchronized to Jira. Learn about [General Tasks](../project-collaboration/2-general-task.md)
147155

148156
1. Enter the project's "General Tasks" page, click the [Sync Task] button corresponding to the task
149157

150-
![jira_5](./img/jira_5.png)
158+
![jira_5](./img/jira_5.png)
151159

152160
2. After successful synchronization, the created Jira link and status will be displayed. Click the status button to jump to Jira to view issue details.
153161

154162
## Managing Jira Integration
163+
155164
> Only project administrators can manage Jira integration
156165

157166
### Edit Integration
167+
158168
1. In the project, go to "Project Settings - Service Integration" page, click [Edit Config] for Jira.
159169

160170
![jira_6](./img/jira_6.png)
@@ -164,10 +174,11 @@ Task information in integration supports using variables, see the table below:
164174
![jira_7](./img/jira_7.png)
165175

166176
### Delete Integration
177+
167178
1. In the project, go to "Project Settings - Service Integration" page, click [Edit Config] for Jira.
168179

169180
![jira_6](./img/jira_6.png)
170181

171182
2. Click [Delete], confirm again to delete the integration information. After deletion, tasks cannot be synchronized to Jira.
172183

173-
![jira_8](./img/jira_8.png)
184+
![jira_8](./img/jira_8.png)

0 commit comments

Comments
 (0)