agent-tasks 1.9.9 → 1.9.10
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/dist/ui/app.js +8 -4
- package/package.json +1 -1
package/dist/ui/app.js
CHANGED
|
@@ -802,13 +802,13 @@ TaskBoard.mount = function (container, options) {
|
|
|
802
802
|
var pluginStyle = document.createElement('style');
|
|
803
803
|
pluginStyle.textContent =
|
|
804
804
|
':host { display:block; width:100%; height:100%; overflow:hidden; }' +
|
|
805
|
-
'.tb-wrapper { font-family:var(--font-sans); font-size:14px; color:var(--text); background:var(--bg); line-height:1.5; width:100%; height:100%; overflow:hidden; }'
|
|
806
|
-
'.tb-wrapper #app { height:100%; }';
|
|
805
|
+
'.tb-wrapper { font-family:var(--font-sans); font-size:14px; color:var(--text); background:var(--bg); line-height:1.5; width:100%; height:100%; overflow:hidden; display:flex; flex-direction:column; }';
|
|
807
806
|
shadow.appendChild(pluginStyle);
|
|
808
807
|
|
|
809
808
|
if (typeof TaskBoard._template === 'function') {
|
|
810
809
|
var wrapper = document.createElement('div');
|
|
811
|
-
wrapper.className = '
|
|
810
|
+
wrapper.className = 'tb-wrapper';
|
|
811
|
+
wrapper.setAttribute('data-theme', 'dark');
|
|
812
812
|
wrapper.innerHTML = TaskBoard._template();
|
|
813
813
|
shadow.appendChild(wrapper);
|
|
814
814
|
}
|
|
@@ -832,4 +832,8 @@ TaskBoard.unmount = function () {
|
|
|
832
832
|
var _params = new URLSearchParams(location.search);
|
|
833
833
|
if (_params.get('baseUrl')) TaskBoard._baseUrl = _params.get('baseUrl');
|
|
834
834
|
if (_params.get('wsUrl')) TaskBoard._wsUrl = _params.get('wsUrl');
|
|
835
|
-
|
|
835
|
+
try {
|
|
836
|
+
_init();
|
|
837
|
+
} catch (e) {
|
|
838
|
+
/* standalone init may fail in file:// context — plugin mode uses mount() */
|
|
839
|
+
}
|
package/package.json
CHANGED