dsh-workbench-tasks 5.12.0 → 5.12.2
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/lib/client.js +1 -1
- package/lib/index.js +9 -1
- package/lib/workspace/workspace-actions.js +2 -2
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -13163,7 +13163,7 @@ var require_timeline_view = __commonJS({
|
|
|
13163
13163
|
var TimelineView = require_timeline_view()({ React, COPY, injectCss, statusInfo, configClient, CFG_FALLBACK, TaskItem, EditModal, DoneModal, TimelineModal, CreateModal });
|
|
13164
13164
|
host.registerAddon({
|
|
13165
13165
|
id: "wb-addon-tasks",
|
|
13166
|
-
version: "5.12.
|
|
13166
|
+
version: "5.12.2",
|
|
13167
13167
|
icon: ICONS["list-checks"],
|
|
13168
13168
|
// 贡献声明写在 registerAddon 里:卸载任务插件时宿主按 addonId 一起撤销,
|
|
13169
13169
|
// 不会在邮件里留一个渲染即报错的孤儿按钮。
|
package/lib/index.js
CHANGED
|
@@ -137,7 +137,15 @@ export function apply(ctx) {
|
|
|
137
137
|
update: { source: "npm", package: "dsh-workbench-tasks" },
|
|
138
138
|
category: "work",
|
|
139
139
|
roles: TASK_ROLES,
|
|
140
|
-
|
|
140
|
+
// 六张表都随备份迁移、也参与云同步,逐张声明数据性质(缺省按未声明处理=不同步)。
|
|
141
|
+
tables: [
|
|
142
|
+
{ name: "task", persistence: "persistent" },
|
|
143
|
+
{ name: "task_node", persistence: "persistent" },
|
|
144
|
+
{ name: "task_timeline", persistence: "persistent" },
|
|
145
|
+
{ name: "task_timeline_link", persistence: "persistent" },
|
|
146
|
+
{ name: "task_workspace", persistence: "persistent" },
|
|
147
|
+
{ name: "task_workspace_link", persistence: "persistent" },
|
|
148
|
+
],
|
|
141
149
|
// 配置声明交给宿主:宿主据此建 host_config_scheme、渲染统一配置页并迁移旧 task_config_scheme。
|
|
142
150
|
config: configDecl(),
|
|
143
151
|
sync: taskSync,
|
|
@@ -155,7 +155,7 @@ export function registerWorkspaceActions(api) {
|
|
|
155
155
|
},
|
|
156
156
|
render: function (r) {
|
|
157
157
|
const lines = ['工作区 ' + r.total + ' 个(返回 ' + r.returned + ')'];
|
|
158
|
-
for (const w of r.records) lines.push('- ' + (w.title || w.name || w.id) + ' · ' + w.taskCount + ' 个任务' + (w.dir ? ' · ' + w.dir : ''));
|
|
158
|
+
for (const w of r.records) lines.push('- ' + (w.title || w.name || w.id) + ' · ' + w.taskCount + ' 个任务' + (w.dir ? ' · ' + w.dir : '') + ' · id=' + w.id);
|
|
159
159
|
return lines.join('\n');
|
|
160
160
|
},
|
|
161
161
|
});
|
|
@@ -211,7 +211,7 @@ export function registerWorkspaceActions(api) {
|
|
|
211
211
|
},
|
|
212
212
|
render: function (r) {
|
|
213
213
|
if (!r.workspaces.length) return '任务 ' + r.taskId + ' 未关联工作区';
|
|
214
|
-
return '任务 ' + r.taskId + ' 关联 ' + r.workspaces.length + ' 个工作区:' + r.workspaces.map((w) => w.title || w.name || w.id).join('、');
|
|
214
|
+
return '任务 ' + r.taskId + ' 关联 ' + r.workspaces.length + ' 个工作区:' + r.workspaces.map((w) => (w.title || w.name || w.id) + '(id=' + w.id + ')').join('、');
|
|
215
215
|
},
|
|
216
216
|
});
|
|
217
217
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workbench-tasks",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.2",
|
|
4
4
|
"description": "个人工作台任务插件:任务树、优先级、截止日、时间线与重启",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"id": "wb-addon-tasks",
|
|
18
18
|
"title": "任务",
|
|
19
19
|
"description": "任务树 + 统计/记录/时间线/工作区四个视图:紧急/已关闭/已开启/已完成/总览,可按标签筛选,附统计报表;配置项由宿主统一配置中心渲染",
|
|
20
|
-
"version": "5.12.
|
|
20
|
+
"version": "5.12.2",
|
|
21
21
|
"minShell": "0.21.0",
|
|
22
22
|
"tables": [
|
|
23
23
|
"task",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"./package.json": "./package.json"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"dsh-workbench-host": "^0.
|
|
94
|
+
"dsh-workbench-host": "^0.28.0"
|
|
95
95
|
},
|
|
96
96
|
"dsh": {
|
|
97
97
|
"bundle": {
|