dsh-agent-board 1.1.0 → 1.1.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/lib/client.js +4 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -10,6 +10,9 @@ window.__ModuleLoader__.load({
|
|
|
10
10
|
const React = require('react')
|
|
11
11
|
|
|
12
12
|
function apply(ctx) {
|
|
13
|
+
// 硬依赖声明(见文件尾 module.exports):新版 dsh(0.1.5-rc.2)启动顺序下,
|
|
14
|
+
// 不声明 inject 时 apply 先于 slots/sessions/timer 服务注册执行,
|
|
15
|
+
// ctx.get 返回 undefined → 静默退出 → 看板按钮消失。声明后 runner 等服务就绪再 apply。
|
|
13
16
|
var slots = ctx.get('slots')
|
|
14
17
|
if (slots === undefined) return
|
|
15
18
|
var sessionsSvc = ctx.get('sessions')
|
|
@@ -591,7 +594,7 @@ function apply(ctx) {
|
|
|
591
594
|
slots.inject('shell.overlay', function () { return slots.register({ name: 'shell.overlay', id: 'task-board-top-panel' }, function () { return React.createElement(TopPanel) }) })
|
|
592
595
|
}
|
|
593
596
|
|
|
594
|
-
module.exports = { name: 'dsh-agent-board', apply: apply }
|
|
597
|
+
module.exports = { name: 'dsh-agent-board', inject: ['slots', 'sessions', 'timer'], apply: apply }
|
|
595
598
|
return module.exports
|
|
596
599
|
}
|
|
597
600
|
})
|
package/package.json
CHANGED