@difizen/libro-lab 0.1.13 → 0.1.15
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/es/common/icon.d.ts +6 -0
- package/es/common/icon.d.ts.map +1 -1
- package/es/common/icon.js +326 -0
- package/es/kernel-and-terminal-panel/collapse/collapse-content.d.ts +11 -0
- package/es/kernel-and-terminal-panel/collapse/collapse-content.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/collapse/collapse-content.js +53 -0
- package/es/kernel-and-terminal-panel/collapse/index.d.ts +31 -0
- package/es/kernel-and-terminal-panel/collapse/index.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/collapse/index.js +103 -0
- package/es/kernel-and-terminal-panel/collapse/index.less +89 -0
- package/es/kernel-and-terminal-panel/collapse/kernel-collapse-content-item.d.ts +8 -0
- package/es/kernel-and-terminal-panel/collapse/kernel-collapse-content-item.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/collapse/kernel-collapse-content-item.js +79 -0
- package/es/kernel-and-terminal-panel/collapse/kernel-collapse-content.d.ts +9 -0
- package/es/kernel-and-terminal-panel/collapse/kernel-collapse-content.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/collapse/kernel-collapse-content.js +13 -0
- package/es/kernel-and-terminal-panel/collapse/page-collapse-content.d.ts +3 -0
- package/es/kernel-and-terminal-panel/collapse/page-collapse-content.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/collapse/page-collapse-content.js +38 -0
- package/es/kernel-and-terminal-panel/index.d.ts +2 -0
- package/es/kernel-and-terminal-panel/index.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/index.js +1 -0
- package/es/kernel-and-terminal-panel/index.less +5 -0
- package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.d.ts +24 -0
- package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.js +320 -0
- package/es/kernel-and-terminal-panel/module.d.ts +3 -0
- package/es/kernel-and-terminal-panel/module.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/module.js +13 -0
- package/es/kernel-and-terminal-panel/panel-command.d.ts +18 -0
- package/es/kernel-and-terminal-panel/panel-command.d.ts.map +1 -0
- package/es/kernel-and-terminal-panel/panel-command.js +80 -0
- package/es/layout/layout-service.d.ts +2 -0
- package/es/layout/layout-service.d.ts.map +1 -1
- package/es/layout/layout-service.js +18 -0
- package/es/layout/main.d.ts.map +1 -1
- package/es/layout/main.js +20 -7
- package/es/module.d.ts.map +1 -1
- package/es/module.js +4 -2
- package/package.json +9 -8
- package/src/common/icon.tsx +298 -0
- package/src/kernel-and-terminal-panel/collapse/collapse-content.tsx +72 -0
- package/src/kernel-and-terminal-panel/collapse/index.less +89 -0
- package/src/kernel-and-terminal-panel/collapse/index.tsx +128 -0
- package/src/kernel-and-terminal-panel/collapse/kernel-collapse-content-item.tsx +87 -0
- package/src/kernel-and-terminal-panel/collapse/kernel-collapse-content.tsx +23 -0
- package/src/kernel-and-terminal-panel/collapse/page-collapse-content.tsx +49 -0
- package/src/kernel-and-terminal-panel/index.less +5 -0
- package/src/kernel-and-terminal-panel/index.ts +1 -0
- package/src/kernel-and-terminal-panel/kernel-and-terminal-panel-view.tsx +218 -0
- package/src/kernel-and-terminal-panel/module.ts +20 -0
- package/src/kernel-and-terminal-panel/panel-command.tsx +57 -0
- package/src/layout/layout-service.ts +17 -0
- package/src/layout/main.tsx +13 -1
- package/src/module.tsx +3 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _dec, _dec2, _class, _class2, _descriptor;
|
|
3
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
4
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
5
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
6
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
13
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
14
|
+
import { ReloadOutlined } from '@ant-design/icons';
|
|
15
|
+
import { ViewManager } from '@difizen/mana-app';
|
|
16
|
+
import { CommandContribution, inject, MenuContribution, singleton, ToolbarContribution } from '@difizen/mana-app';
|
|
17
|
+
import { KernelAndTerminalPanelView } from "./kernel-and-terminal-panel-view.js";
|
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
export var PanelCommand = {
|
|
20
|
+
REFRESH: {
|
|
21
|
+
id: 'panel.command.refresh',
|
|
22
|
+
label: '刷新'
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export var PanelCommandContribution = (_dec = singleton({
|
|
26
|
+
contrib: [CommandContribution, MenuContribution, ToolbarContribution]
|
|
27
|
+
}), _dec2 = inject(KernelAndTerminalPanelView), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
28
|
+
function PanelCommandContribution(viewManager) {
|
|
29
|
+
_classCallCheck(this, PanelCommandContribution);
|
|
30
|
+
_initializerDefineProperty(this, "kernelAndTerminalPanelView", _descriptor, this);
|
|
31
|
+
this.viewManager = viewManager;
|
|
32
|
+
}
|
|
33
|
+
PanelCommandContribution = inject(ViewManager)(PanelCommandContribution, undefined, 0) || PanelCommandContribution;
|
|
34
|
+
_createClass(PanelCommandContribution, [{
|
|
35
|
+
key: "registerCommands",
|
|
36
|
+
value: function registerCommands(command) {
|
|
37
|
+
var _this = this;
|
|
38
|
+
command.registerCommand(PanelCommand.REFRESH, {
|
|
39
|
+
execute: function () {
|
|
40
|
+
var _execute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(view) {
|
|
41
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
42
|
+
while (1) switch (_context.prev = _context.next) {
|
|
43
|
+
case 0:
|
|
44
|
+
if (view instanceof KernelAndTerminalPanelView) {
|
|
45
|
+
_this.kernelAndTerminalPanelView.refresh();
|
|
46
|
+
}
|
|
47
|
+
case 1:
|
|
48
|
+
case "end":
|
|
49
|
+
return _context.stop();
|
|
50
|
+
}
|
|
51
|
+
}, _callee);
|
|
52
|
+
}));
|
|
53
|
+
function execute(_x) {
|
|
54
|
+
return _execute.apply(this, arguments);
|
|
55
|
+
}
|
|
56
|
+
return execute;
|
|
57
|
+
}(),
|
|
58
|
+
isVisible: function isVisible(view) {
|
|
59
|
+
return view instanceof KernelAndTerminalPanelView;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
key: "registerToolbarItems",
|
|
65
|
+
value: function registerToolbarItems(toolbarRegistry) {
|
|
66
|
+
toolbarRegistry.registerItem({
|
|
67
|
+
id: PanelCommand.REFRESH.id,
|
|
68
|
+
command: PanelCommand.REFRESH.id,
|
|
69
|
+
icon: /*#__PURE__*/_jsx(ReloadOutlined, {}),
|
|
70
|
+
tooltip: '刷新'
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}]);
|
|
74
|
+
return PanelCommandContribution;
|
|
75
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "kernelAndTerminalPanelView", [_dec2], {
|
|
76
|
+
configurable: true,
|
|
77
|
+
enumerable: true,
|
|
78
|
+
writable: true,
|
|
79
|
+
initializer: null
|
|
80
|
+
})), _class2)) || _class);
|
|
@@ -13,8 +13,10 @@ export declare class LayoutService {
|
|
|
13
13
|
setAreaVisible(slot: LibroLabLayoutSlotsType, visible: boolean): void;
|
|
14
14
|
protected onViewAdded(slot: string, view: View | undefined, option: ViewOpenOption | undefined): void;
|
|
15
15
|
addView(view: View, option?: ViewOpenHandlerOptions): Promise<void>;
|
|
16
|
+
getAllSlotView(slot: LibroLabLayoutSlotsType): View | undefined;
|
|
16
17
|
getActiveView(slot: LibroLabLayoutSlotsType): View | undefined;
|
|
17
18
|
onSlotActiveChange(slot: LibroLabLayoutSlotsType, handler: () => void): import("@difizen/mana-app").Disposable | undefined;
|
|
19
|
+
shouldRenderNavigatorContent(): boolean;
|
|
18
20
|
onOpenSlotActiveChange(): Promise<void>;
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=layout-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-service.d.ts","sourceRoot":"","sources":["../../src/layout/layout-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"layout-service.d.ts","sourceRoot":"","sources":["../../src/layout/layout-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGtF,OAAO,EAKL,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGzE,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;AACrE,qBACa,aAAa;IACxB,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IACpD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;gBAGnB,eAAe,EAAE,eAAe,EACnC,YAAY,EAAE,YAAY;IAWlD,WAAW,EAAE,UAAU,CAAa;IAGpC,aAAa,EAAE,aAAa,CAS1B;IAEF,aAAa,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO;IAIrD,cAAc,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,OAAO;IAI9D,SAAS,CAAC,WAAW,CACnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,IAAI,GAAG,SAAS,EACtB,MAAM,EAAE,cAAc,GAAG,SAAS;IAa9B,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQzE,cAAc,CAAC,IAAI,EAAE,uBAAuB;IAI5C,aAAa,CAAC,IAAI,EAAE,uBAAuB;IAU3C,kBAAkB,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,IAAI;IAUrE,4BAA4B,IAAI,OAAO;IAWjC,sBAAsB;CAoB7B"}
|
|
@@ -16,6 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
16
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
17
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
18
|
import { LibroNavigatableView, LibroService } from '@difizen/libro-jupyter';
|
|
19
|
+
import { SideTabView } from '@difizen/mana-app';
|
|
19
20
|
import { observable } from '@difizen/mana-app';
|
|
20
21
|
import { DefaultSlotView, inject, prop, singleton, SlotViewManager } from '@difizen/mana-app';
|
|
21
22
|
import { LibroLabLayoutSlots } from "./protocol.js";
|
|
@@ -82,6 +83,11 @@ export var LayoutService = (_dec = singleton(), _dec2 = prop(), _dec3 = prop(),
|
|
|
82
83
|
}
|
|
83
84
|
return addView;
|
|
84
85
|
}()
|
|
86
|
+
}, {
|
|
87
|
+
key: "getAllSlotView",
|
|
88
|
+
value: function getAllSlotView(slot) {
|
|
89
|
+
return this.slotViewManager.getSlotView(slot);
|
|
90
|
+
}
|
|
85
91
|
}, {
|
|
86
92
|
key: "getActiveView",
|
|
87
93
|
value: function getActiveView(slot) {
|
|
@@ -104,6 +110,18 @@ export var LayoutService = (_dec = singleton(), _dec2 = prop(), _dec3 = prop(),
|
|
|
104
110
|
}
|
|
105
111
|
return undefined;
|
|
106
112
|
}
|
|
113
|
+
}, {
|
|
114
|
+
key: "shouldRenderNavigatorContent",
|
|
115
|
+
value: function shouldRenderNavigatorContent() {
|
|
116
|
+
if (!this.visibilityMap[LibroLabLayoutSlots.navigator]) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
var slotView = this.slotViewManager.getSlotView(LibroLabLayoutSlots.navigator);
|
|
120
|
+
if (slotView instanceof SideTabView) {
|
|
121
|
+
return !!slotView.showTabContent;
|
|
122
|
+
}
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
107
125
|
}, {
|
|
108
126
|
key: "onOpenSlotActiveChange",
|
|
109
127
|
value: function () {
|
package/es/layout/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/layout/main.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,cAAc,CAAC;AAItB,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/layout/main.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,cAAc,CAAC;AAItB,eAAO,MAAM,2BAA2B,mFA+DvC,CAAC;AAEF,qBAEa,sBAAuB,SAAQ,QAAQ;IACzC,IAAI,oFAA+B;CAC7C"}
|
package/es/layout/main.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
1
|
var _dec, _dec2, _class;
|
|
2
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
5
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
6
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9
7
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12,6 +10,11 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
12
10
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
12
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
18
|
import { singleton, Slot, useInject, view } from '@difizen/mana-app';
|
|
16
19
|
import { BaseView } from '@difizen/mana-app';
|
|
17
20
|
import { SplitPanel } from '@difizen/mana-react';
|
|
@@ -23,16 +26,26 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
23
26
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
27
|
export var LibroLabLayoutMainComponent = /*#__PURE__*/forwardRef(function LibroLabLayoutMainComponent() {
|
|
25
28
|
var layoutService = useInject(LayoutService);
|
|
29
|
+
var navigatorSize = layoutService.shouldRenderNavigatorContent() ? {
|
|
30
|
+
minSize: 40,
|
|
31
|
+
defaultSize: 300,
|
|
32
|
+
maxSize: undefined
|
|
33
|
+
} : {
|
|
34
|
+
minSize: 40,
|
|
35
|
+
defaultSize: 40,
|
|
36
|
+
maxSize: 40,
|
|
37
|
+
noResize: true
|
|
38
|
+
};
|
|
26
39
|
return /*#__PURE__*/_jsxs(SplitPanel, {
|
|
27
40
|
id: "libro-lab-content-layout",
|
|
28
|
-
children: [layoutService.isAreaVisible(LibroLabLayoutSlots.navigator) && /*#__PURE__*/_jsx(SplitPanel.Pane, {
|
|
41
|
+
children: [layoutService.isAreaVisible(LibroLabLayoutSlots.navigator) && /*#__PURE__*/_jsx(SplitPanel.Pane, _objectSpread(_objectSpread({
|
|
29
42
|
id: "libro-lab-content-layout-left",
|
|
30
|
-
className: "libro-lab-content-layout-left"
|
|
31
|
-
|
|
43
|
+
className: "libro-lab-content-layout-left"
|
|
44
|
+
}, navigatorSize), {}, {
|
|
32
45
|
children: /*#__PURE__*/_jsx(Slot, {
|
|
33
46
|
name: LibroLabLayoutSlots.navigator
|
|
34
47
|
})
|
|
35
|
-
}), /*#__PURE__*/_jsx(SplitPanel.Pane, {
|
|
48
|
+
})), /*#__PURE__*/_jsx(SplitPanel.Pane, {
|
|
36
49
|
id: "libro-lab-content-layout-main-container",
|
|
37
50
|
className: "libro-lab-content-layout-main-container",
|
|
38
51
|
flex: 1,
|
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;AAiB3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YA4ExB,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -8,6 +8,7 @@ import { CodeEditorViewerModule } from "./editor-viewer/index.js";
|
|
|
8
8
|
import { GithubLinkView } from "./github-link/index.js";
|
|
9
9
|
import { ImageViewerModule } from "./image-viewer/index.js";
|
|
10
10
|
// import { KernelManagerView } from './kernel-manager/index.js';
|
|
11
|
+
import { LibroKernelAndTerminalPanelModule } from "./kernel-and-terminal-panel/module.js";
|
|
11
12
|
import { LibroLabApp } from "./lab-app.js";
|
|
12
13
|
import { ContentBottomTabView } from "./layout/content-bottom-tab-view.js";
|
|
13
14
|
import { LibroLabLayoutModule, LibroLabLayoutSlots, LibroLabLayoutView } from "./layout/index.js";
|
|
@@ -48,7 +49,8 @@ createSlotPreference({
|
|
|
48
49
|
view: LibroLabSideTabView,
|
|
49
50
|
slot: LibroLabLayoutSlots.navigator,
|
|
50
51
|
options: {
|
|
51
|
-
sort: true
|
|
52
|
+
sort: true,
|
|
53
|
+
contentToggable: true
|
|
52
54
|
}
|
|
53
55
|
}), createViewPreference({
|
|
54
56
|
view: FileView,
|
|
@@ -66,4 +68,4 @@ createSlotPreference({
|
|
|
66
68
|
reveal: true,
|
|
67
69
|
order: 'welcome'
|
|
68
70
|
}
|
|
69
|
-
}), EntryPointView).dependOn(LibroJupyterModule, LibroLabLayoutModule, LibroLabHeaderMenuModule, LibroLabTocModule, LibroPromptCellModule, TerminalModule, ImageViewerModule, CodeEditorViewerModule);
|
|
71
|
+
}), EntryPointView).dependOn(LibroJupyterModule, LibroLabLayoutModule, LibroLabHeaderMenuModule, LibroLabTocModule, LibroKernelAndTerminalPanelModule, LibroPromptCellModule, TerminalModule, ImageViewerModule, CodeEditorViewerModule);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-lab",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -34,13 +34,14 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "^5.1.0",
|
|
37
|
-
"@difizen/libro-core": "^0.1.
|
|
38
|
-
"@difizen/libro-jupyter": "^0.1.
|
|
39
|
-
"@difizen/libro-kernel": "^0.1.
|
|
40
|
-
"@difizen/libro-prompt-cell": "^0.1.
|
|
41
|
-
"@difizen/libro-terminal": "^0.1.
|
|
42
|
-
"@difizen/libro-
|
|
43
|
-
"@difizen/libro-
|
|
37
|
+
"@difizen/libro-core": "^0.1.15",
|
|
38
|
+
"@difizen/libro-jupyter": "^0.1.15",
|
|
39
|
+
"@difizen/libro-kernel": "^0.1.15",
|
|
40
|
+
"@difizen/libro-prompt-cell": "^0.1.15",
|
|
41
|
+
"@difizen/libro-terminal": "^0.1.15",
|
|
42
|
+
"@difizen/libro-lsp": "^0.1.15",
|
|
43
|
+
"@difizen/libro-toc": "^0.1.15",
|
|
44
|
+
"@difizen/libro-cofine-editor-core": "^0.1.15",
|
|
44
45
|
"@difizen/mana-app": "latest",
|
|
45
46
|
"@difizen/mana-react": "latest",
|
|
46
47
|
"classnames": "^2.3.2",
|
package/src/common/icon.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
2
|
import './index.less';
|
|
2
3
|
|
|
3
4
|
export interface IProps {
|
|
@@ -298,3 +299,300 @@ export function SuccIcon(props: IProps) {
|
|
|
298
299
|
</svg>
|
|
299
300
|
);
|
|
300
301
|
}
|
|
302
|
+
|
|
303
|
+
export function KernelAndTerminal() {
|
|
304
|
+
return (
|
|
305
|
+
<svg
|
|
306
|
+
width="17px"
|
|
307
|
+
height="16px"
|
|
308
|
+
viewBox="0 0 17 16"
|
|
309
|
+
version="1.1"
|
|
310
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
311
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
312
|
+
>
|
|
313
|
+
<title>app store-fill</title>
|
|
314
|
+
<g
|
|
315
|
+
id="代码片段"
|
|
316
|
+
stroke="none"
|
|
317
|
+
strokeWidth="1"
|
|
318
|
+
fill="none"
|
|
319
|
+
fillRule="evenodd"
|
|
320
|
+
fillOpacity="0.35"
|
|
321
|
+
>
|
|
322
|
+
<g
|
|
323
|
+
id="1.1搜索"
|
|
324
|
+
transform="translate(-12.000000, -142.000000)"
|
|
325
|
+
fill="#000000"
|
|
326
|
+
fillRule="nonzero"
|
|
327
|
+
>
|
|
328
|
+
<g id="编组-2" transform="translate(0.000000, 56.000000)">
|
|
329
|
+
<g id="app-store-fill" transform="translate(12.092308, 86.000427)">
|
|
330
|
+
<rect
|
|
331
|
+
id="矩形"
|
|
332
|
+
opacity="0"
|
|
333
|
+
x="0"
|
|
334
|
+
y="0"
|
|
335
|
+
width="16.0001102"
|
|
336
|
+
height="16.0001102"
|
|
337
|
+
></rect>
|
|
338
|
+
<path
|
|
339
|
+
d="M13.500093,2.2500155 L8.75006028,2.2500155 C8.61255933,2.2500155 8.50005856,2.36251628 8.50005856,2.50001722 L8.50005856,7.25004994 C8.50005856,7.38755089 8.61255933,7.50005167 8.75006028,7.50005167 L13.500093,7.50005167 C13.6375939,7.50005167 13.7500947,7.38755089 13.7500947,7.25004994 L13.7500947,2.50001722 C13.7500947,2.36251628 13.6375939,2.2500155 13.500093,2.2500155 Z M13.500093,8.50005856 L8.75006028,8.50005856 C8.61255933,8.50005856 8.50005856,8.61255933 8.50005856,8.75006028 L8.50005856,13.500093 C8.50005856,13.6375939 8.61255933,13.7500947 8.75006028,13.7500947 L13.500093,13.7500947 C13.6375939,13.7500947 13.7500947,13.6375939 13.7500947,13.500093 L13.7500947,8.75006028 C13.7500947,8.61255933 13.6375939,8.50005856 13.500093,8.50005856 Z M7.25004994,2.2500155 L2.50001722,2.2500155 C2.36251628,2.2500155 2.2500155,2.36251628 2.2500155,2.50001722 L2.2500155,7.25004994 C2.2500155,7.38755089 2.36251628,7.50005167 2.50001722,7.50005167 L7.25004994,7.50005167 C7.38755089,7.50005167 7.50005167,7.38755089 7.50005167,7.25004994 L7.50005167,2.50001722 C7.50005167,2.36251628 7.38755089,2.2500155 7.25004994,2.2500155 Z M7.25004994,8.50005856 L2.50001722,8.50005856 C2.36251628,8.50005856 2.2500155,8.61255933 2.2500155,8.75006028 L2.2500155,13.500093 C2.2500155,13.6375939 2.36251628,13.7500947 2.50001722,13.7500947 L7.25004994,13.7500947 C7.38755089,13.7500947 7.50005167,13.6375939 7.50005167,13.500093 L7.50005167,8.75006028 C7.50005167,8.61255933 7.38755089,8.50005856 7.25004994,8.50005856 Z"
|
|
340
|
+
id="形状"
|
|
341
|
+
></path>
|
|
342
|
+
</g>
|
|
343
|
+
</g>
|
|
344
|
+
</g>
|
|
345
|
+
</g>
|
|
346
|
+
</svg>
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export function openedPage() {
|
|
351
|
+
return (
|
|
352
|
+
<svg
|
|
353
|
+
width="12px"
|
|
354
|
+
height="12px"
|
|
355
|
+
viewBox="0 0 12 12"
|
|
356
|
+
version="1.1"
|
|
357
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
358
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
359
|
+
>
|
|
360
|
+
<title>广告主流水@2x</title>
|
|
361
|
+
<g
|
|
362
|
+
id="kernel管理面板"
|
|
363
|
+
stroke="none"
|
|
364
|
+
strokeWidth="1"
|
|
365
|
+
fill="none"
|
|
366
|
+
fillRule="evenodd"
|
|
367
|
+
opacity="0.45"
|
|
368
|
+
>
|
|
369
|
+
<g
|
|
370
|
+
id="2.0展开"
|
|
371
|
+
transform="translate(-52.000000, -124.000000)"
|
|
372
|
+
fill="#000000"
|
|
373
|
+
fillRule="nonzero"
|
|
374
|
+
>
|
|
375
|
+
<g id="编组-2" transform="translate(0.000000, 56.000000)">
|
|
376
|
+
<g id="编组-11" transform="translate(40.000000, 0.000000)">
|
|
377
|
+
<g id="编组-28" transform="translate(4.000000, 39.000000)">
|
|
378
|
+
<g id="编组-16" transform="translate(8.000000, 25.000000)">
|
|
379
|
+
<g id="广告主流水@2x" transform="translate(0.000000, 4.000000)">
|
|
380
|
+
<rect
|
|
381
|
+
id="矩形"
|
|
382
|
+
opacity="0"
|
|
383
|
+
x="0"
|
|
384
|
+
y="0"
|
|
385
|
+
width="12"
|
|
386
|
+
height="12"
|
|
387
|
+
></rect>
|
|
388
|
+
<path
|
|
389
|
+
d="M9.21733594,1.33333564 L2.784,1.33333564 C2.35266797,1.33333564 2.00000391,1.68399609 2.00000391,2.11266797 L2.00000391,10.1126719 C2.00000391,10.3573359 2.29133203,10.4866641 2.47332422,10.3226719 L3.03133594,9.82599609 C3.14104553,9.72791931 3.30734886,9.72936573 3.41533594,9.82933594 L4.23400781,10.589332 C4.33144663,10.6806592 4.47935125,10.6917615 4.58933203,10.6160039 L5.83933594,9.76265625 C5.93632187,9.69679836 6.06367813,9.69679836 6.16066406,9.76265625 L7.41399609,10.6173164 C7.52372385,10.6919995 7.67032569,10.6818078 7.76866406,10.5926602 L8.59733203,9.83199609 C8.70467578,9.73198828 8.87067187,9.73198828 8.97999609,9.82932422 L9.52467187,10.3193203 C9.60800658,10.3944788 9.72772048,10.4136655 9.83036936,10.3683149 C9.93301824,10.3229642 9.9994456,10.2215396 10.0000039,10.1093203 L10.0000039,2.11266797 C9.99852973,1.68156402 9.64844222,1.3329652 9.21733594,1.33333564 L9.21733594,1.33333564 Z M2.79998437,3.258 C2.79998437,3.03932813 2.97999609,2.85932813 3.20132812,2.85932813 L5.61199219,2.85932813 C5.832,2.85932813 6.01333594,3.03800391 6.01333594,3.258 C6.01333594,3.47667188 5.83333594,3.65732813 5.61200391,3.65732813 L3.20132812,3.65732813 C2.98060489,3.65697268 2.80145112,3.47871865 2.79998437,3.258 L2.79998437,3.258 Z M6.80199609,4.85132813 C6.80199609,5.07 6.62199609,5.25 6.40066406,5.25 L3.20132812,5.25 C2.98071328,5.25 2.8014584,5.07193813 2.79999609,4.85132813 C2.79999609,4.63265625 2.97999609,4.45265401 3.20132812,4.45265401 L6.40066406,4.45265401 C6.50675183,4.45230135 6.60863526,4.49410529 6.68390008,4.56887123 C6.7591649,4.64363717 6.80164547,4.74524035 6.80199609,4.85132813 L6.80199609,4.85132813 Z"
|
|
390
|
+
id="形状"
|
|
391
|
+
></path>
|
|
392
|
+
</g>
|
|
393
|
+
</g>
|
|
394
|
+
</g>
|
|
395
|
+
</g>
|
|
396
|
+
</g>
|
|
397
|
+
</g>
|
|
398
|
+
</g>
|
|
399
|
+
</svg>
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export function fileUnderKernel() {
|
|
404
|
+
return (
|
|
405
|
+
<svg
|
|
406
|
+
width="12px"
|
|
407
|
+
height="12px"
|
|
408
|
+
viewBox="0 0 12 12"
|
|
409
|
+
version="1.1"
|
|
410
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
411
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
412
|
+
>
|
|
413
|
+
<title>CPU#1</title>
|
|
414
|
+
<g
|
|
415
|
+
id="kernel管理面板"
|
|
416
|
+
stroke="none"
|
|
417
|
+
strokeWidth="1"
|
|
418
|
+
fill="none"
|
|
419
|
+
fillRule="evenodd"
|
|
420
|
+
>
|
|
421
|
+
<g
|
|
422
|
+
id="2.0展开"
|
|
423
|
+
transform="translate(-52.000000, -243.000000)"
|
|
424
|
+
fill="#000000"
|
|
425
|
+
fillRule="nonzero"
|
|
426
|
+
>
|
|
427
|
+
<g id="编组-2" transform="translate(0.000000, 56.000000)">
|
|
428
|
+
<g id="编组-11" transform="translate(40.000000, 0.000000)">
|
|
429
|
+
<g id="编组-16备份-3" transform="translate(12.000000, 183.000000)">
|
|
430
|
+
<g id="CPU#1" transform="translate(0.000000, 4.000000)">
|
|
431
|
+
<rect id="矩形" opacity="0" x="0" y="0" width="12" height="12"></rect>
|
|
432
|
+
<path
|
|
433
|
+
d="M3.00000391,2.00000391 L9.00000391,2.00000391 C9.66666406,2.00000391 10.0000039,2.33333594 10.0000039,3.00000391 L10.0000039,9.00000391 C10.0000039,9.66666406 9.66666406,10.0000039 9.00000391,10.0000039 L3.00000391,10.0000039 C2.33333594,10.0000039 2.00000391,9.66666406 2.00000391,9.00000391 L2.00000391,3.00000391 C2.00000391,2.33333594 2.33333594,2.00000391 3.00000391,2.00000391 Z"
|
|
434
|
+
id="路径"
|
|
435
|
+
opacity="0.3"
|
|
436
|
+
></path>
|
|
437
|
+
<polygon
|
|
438
|
+
id="路径"
|
|
439
|
+
opacity="0.3"
|
|
440
|
+
points="4.5 4.5 7.5 4.5 7.5 7.5 4.5 7.5"
|
|
441
|
+
></polygon>
|
|
442
|
+
<path
|
|
443
|
+
d="M9.99999609,3.50000391 L10.4999961,3.50000391 C10.7751965,3.5013362 10.9975833,3.72480226 10.9975833,4.00000391 C10.9975833,4.27520165 10.7751965,4.4986677 10.4999961,4.50000391 L9.99999609,4.50000391 L9.99999609,3.50000391 L9.99999609,3.50000391 Z M9.99999609,5.49999609 L10.4999961,5.49999609 C10.7761445,5.49999609 10.9999961,5.72385548 10.9999961,5.99999609 C10.9999961,6.27614452 10.7761445,6.49999609 10.4999961,6.49999609 L9.99999609,6.49999609 L9.99999609,5.49999609 L9.99999609,5.49999609 Z M9.99999609,7.5 L10.4999961,7.5 C10.7751965,7.5013323 10.9975833,7.72479835 10.9975833,8 C10.9975833,8.27519774 10.7751965,8.4986638 10.4999961,8.5 L9.99999609,8.5 L9.99999609,7.5 L9.99999609,7.5 Z M1.5,3.49999802 L2.00000391,3.49999802 L2.00000391,4.49999802 L1.5,4.49999802 C1.32079125,4.50086759 1.15482306,4.4057587 1.0649673,4.25070236 C0.975111536,4.09564601 0.975111536,3.9043579 1.0649673,3.74930155 C1.15482306,3.5942452 1.32079125,3.49913631 1.5,3.49999802 L1.5,3.49999802 Z M1.49999609,5.49999609 L1.99999609,5.49999609 L1.99999609,6.49999609 L1.49999609,6.49999609 C1.22385547,6.49999609 0.999996094,6.27614453 0.999996094,5.99999609 C0.999996094,5.72385547 1.22385547,5.49999609 1.49999609,5.49999609 L1.49999609,5.49999609 Z M1.5,7.5 L2.00000391,7.5 L2.00000391,8.5 L1.5,8.5 C1.22480353,8.4986638 1.00241671,8.27519774 1.00241671,8 C1.00241671,7.72479835 1.22480353,7.5013323 1.5,7.5 L1.5,7.5 Z"
|
|
444
|
+
id="形状"
|
|
445
|
+
></path>
|
|
446
|
+
</g>
|
|
447
|
+
</g>
|
|
448
|
+
</g>
|
|
449
|
+
</g>
|
|
450
|
+
</g>
|
|
451
|
+
</g>
|
|
452
|
+
</svg>
|
|
453
|
+
);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export function runningKernel() {
|
|
457
|
+
return (
|
|
458
|
+
<svg
|
|
459
|
+
width="12px"
|
|
460
|
+
height="12px"
|
|
461
|
+
viewBox="0 0 12 12"
|
|
462
|
+
version="1.1"
|
|
463
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
464
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
465
|
+
>
|
|
466
|
+
<title>py</title>
|
|
467
|
+
<g
|
|
468
|
+
id="kernel管理面板"
|
|
469
|
+
stroke="none"
|
|
470
|
+
strokeWidth="1"
|
|
471
|
+
fill="none"
|
|
472
|
+
fillRule="evenodd"
|
|
473
|
+
>
|
|
474
|
+
<g
|
|
475
|
+
id="2.0展开"
|
|
476
|
+
transform="translate(-80.000000, -317.000000)"
|
|
477
|
+
fillRule="nonzero"
|
|
478
|
+
>
|
|
479
|
+
<g id="编组-2" transform="translate(0.000000, 56.000000)">
|
|
480
|
+
<g id="编组-11" transform="translate(40.000000, 0.000000)">
|
|
481
|
+
<g id="编组-10备份" transform="translate(26.000000, 258.000000)">
|
|
482
|
+
<g id="py" transform="translate(14.000000, 3.000000)">
|
|
483
|
+
<rect
|
|
484
|
+
id="矩形"
|
|
485
|
+
fill="#000000"
|
|
486
|
+
opacity="0"
|
|
487
|
+
x="0"
|
|
488
|
+
y="0"
|
|
489
|
+
width="12"
|
|
490
|
+
height="12"
|
|
491
|
+
></rect>
|
|
492
|
+
<path
|
|
493
|
+
d="M5.75814393,11.7154535 C4.37245332,11.6681765 3.50787713,11.2545027 3.28285045,10.5217092 L3.25916343,10.4389745 L3.25916343,9.0206645 C3.25916343,7.38960802 3.25916343,7.36596952 3.34206799,7.10594602 C3.49603362,6.64499528 3.87502592,6.33769478 4.44351438,6.20768303 L4.57379298,6.18404453 L6.18451028,6.18404453 C7.3333307,6.18404453 7.81891459,6.18404453 7.86628863,6.16040603 C8.19790689,6.08949053 8.39924655,6.03039428 8.60058622,5.87674403 C8.84929992,5.69945528 9.03879607,5.39215479 9.10985713,5.06121579 C9.18091818,4.81301154 9.18091818,4.83665004 9.18091818,3.98566405 L9.18091818,3.19377431 L10.3297386,3.19377431 L10.4363302,3.21741281 C11.0285057,3.39470156 11.478559,3.9502063 11.6562117,4.80119229 C11.7272727,5.13213129 11.7272727,5.15576979 11.7272727,5.99493653 C11.7272727,6.81046477 11.7272727,6.81046477 11.6562117,7.09412677 C11.5851506,7.35415027 11.5259331,7.57871602 11.407498,7.80328176 C11.1824713,8.24059401 10.850853,8.54789451 10.4363302,8.68972551 C10.1876165,8.77246026 10.3889562,8.76064101 8.06762829,8.77246026 L5.97132711,8.77246026 L5.97132711,9.17431475 L8.75455184,9.17431475 L8.75455184,10.604444 C8.73086482,10.6871787 8.7071778,10.8053712 8.64796025,10.9117445 C8.5768992,11.0181177 8.39924655,11.1954065 8.29265497,11.2899605 C7.91366266,11.5381647 7.34517421,11.691815 6.5871896,11.7272727 L5.75814393,11.7272727 L5.75814393,11.7154535 Z M7.67679247,10.8290097 C7.93734968,10.7817327 8.13868935,10.5217092 8.09131531,10.2616857 C8.04394127,10.03712 7.88997565,9.88346974 7.67679247,9.848012 C7.34517421,9.800735 7.06092998,10.0962162 7.10830402,10.415336 C7.15567806,10.6635402 7.35701772,10.8171905 7.59388791,10.8290097 L7.67679247,10.8290097 Z M1.70766368,8.807918 C1.39973243,8.73700251 1.09180119,8.55971376 0.866774506,8.27605176 C0.452251674,7.76782401 0.250912012,6.90501877 0.274599031,5.82946703 C0.29828605,5.16758904 0.381190616,4.65936129 0.606217297,4.24568755 C0.866774506,3.6901828 1.26945383,3.38288231 1.80241176,3.27650906 C1.90900334,3.25287056 1.93269036,3.25287056 3.969774,3.25287056 L6.04238816,3.25287056 C6.06607518,3.25287056 6.06607518,3.22923206 6.06607518,3.05194331 L6.06607518,2.85101606 L3.28285045,2.85101606 L3.28285045,2.11822257 C3.28285045,1.32633283 3.28285045,1.34997133 3.3539115,1.19632108 C3.6026252,0.688093331 4.27770525,0.380792834 5.39099514,0.298058085 C5.47389971,0.298058085 5.67523937,0.274419585 5.87657903,0.274419585 C7.10830402,0.250781086 7.99656723,0.475346833 8.48215112,0.912659079 C8.52952516,0.959936079 8.58874271,1.04267083 8.63611675,1.06630933 C8.7071778,1.14904408 8.79008237,1.32633283 8.83745641,1.46816382 L8.86114343,1.55089857 L8.86114343,3.05194331 C8.86114343,4.43479555 8.86114343,4.55298804 8.83745641,4.63572279 C8.81376939,4.76573454 8.75455184,4.94302329 8.7071778,5.03757729 C8.52952516,5.36851629 8.22159391,5.60490129 7.80707108,5.72309378 C7.54651387,5.79400928 7.65310546,5.79400928 5.88842254,5.80582853 C4.12373962,5.80582853 4.23033121,5.80582853 3.99346102,5.87674403 C3.50787713,6.00675578 3.15257184,6.38497178 3.02229324,6.91683802 C2.95123218,7.16504227 2.95123218,7.14140377 2.95123218,7.99238976 L2.95123218,8.807918 L2.41827425,8.807918 C1.90900334,8.8315565 1.75503772,8.8315565 1.70766368,8.807918 Z M4.64485404,2.10640332 C4.8461937,2.02366857 4.97647231,1.77546432 4.92909827,1.57453707 C4.88172423,1.37360983 4.75144563,1.21995958 4.57379298,1.17268258 C4.28954875,1.08994783 3.98161751,1.25541733 3.93424347,1.57453707 C3.88686943,1.82274132 4.01714804,2.05912632 4.26586174,2.13004182 C4.31323577,2.15368032 4.3487663,2.15368032 4.44351438,2.15368032 C4.56194947,2.15368032 4.58563649,2.15368032 4.64485404,2.10640332 L4.64485404,2.10640332 Z"
|
|
494
|
+
id="形状"
|
|
495
|
+
fill="#FED142"
|
|
496
|
+
></path>
|
|
497
|
+
<path
|
|
498
|
+
d="M1.656,8.856 C1.344,8.784 1.032,8.604 0.804,8.316 C0.384,7.8 0.18,6.924 0.204,5.832 C0.228,5.16 0.312,4.644 0.54,4.224 C0.804,3.66 1.212,3.348 1.752,3.24 C1.86,3.216 1.884,3.216 3.948,3.216 L6.048,3.216 C6.072,3.216 6.072,3.192 6.072,3.012 L6.072,2.808 L3.252,2.808 L3.252,2.064 C3.252,1.26 3.252,1.284 3.324,1.128 C3.576,0.612 4.26,0.3 5.388,0.216 C5.472,0.216 5.676,0.192 5.88,0.192 C7.128,0.168 8.028,0.396 8.52,0.84 C8.568,0.888 8.628,0.972 8.676,0.996 C8.748,1.08 8.832,1.26 8.88,1.404 L8.904,1.488 L8.904,3.012 C8.904,4.416 8.904,4.536 8.88,4.62 C8.856,4.752 8.796,4.932 8.748,5.028 C8.568,5.364 8.256,5.604 7.836,5.724 C7.572,5.796 7.68,5.796 5.892,5.808 C4.104,5.808 4.212,5.808 3.972,5.88 C3.48,6.012 3.12,6.396 2.988,6.936 C2.916,7.188 2.916,7.164 2.916,8.028 L2.916,8.856 L2.376,8.856 C1.86,8.88 1.704,8.88 1.656,8.856 Z M4.632,2.052 C4.836,1.968 4.968,1.716 4.92,1.512 C4.872,1.308 4.74,1.152 4.56,1.104 C4.272,1.02 3.96,1.188 3.912,1.512 C3.864,1.764 3.996,2.004 4.248,2.076 C4.296,2.1 4.332,2.1 4.428,2.1 C4.548,2.1 4.572,2.1 4.632,2.052 L4.632,2.052 Z"
|
|
499
|
+
id="形状"
|
|
500
|
+
fill="#3571A3"
|
|
501
|
+
></path>
|
|
502
|
+
</g>
|
|
503
|
+
</g>
|
|
504
|
+
</g>
|
|
505
|
+
</g>
|
|
506
|
+
</g>
|
|
507
|
+
</g>
|
|
508
|
+
</svg>
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export function runningTerminal() {
|
|
513
|
+
return (
|
|
514
|
+
<svg
|
|
515
|
+
width="12px"
|
|
516
|
+
height="12px"
|
|
517
|
+
viewBox="0 0 12 12"
|
|
518
|
+
version="1.1"
|
|
519
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
520
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
521
|
+
>
|
|
522
|
+
<title>bxs-terminal</title>
|
|
523
|
+
<g
|
|
524
|
+
id="kernel管理面板"
|
|
525
|
+
stroke="none"
|
|
526
|
+
strokeWidth="1"
|
|
527
|
+
fill="none"
|
|
528
|
+
fillRule="evenodd"
|
|
529
|
+
opacity="0.45"
|
|
530
|
+
>
|
|
531
|
+
<g
|
|
532
|
+
id="2.0展开"
|
|
533
|
+
transform="translate(-52.000000, -332.000000)"
|
|
534
|
+
fill="#000000"
|
|
535
|
+
fillRule="nonzero"
|
|
536
|
+
>
|
|
537
|
+
<g id="编组-2" transform="translate(0.000000, 56.000000)">
|
|
538
|
+
<g id="编组-11" transform="translate(40.000000, 0.000000)">
|
|
539
|
+
<g id="编组-16备份-4" transform="translate(12.000000, 272.000000)">
|
|
540
|
+
<g id="bxs-terminal" transform="translate(0.000000, 4.000000)">
|
|
541
|
+
<rect id="矩形" opacity="0" x="0" y="0" width="12" height="12"></rect>
|
|
542
|
+
<path
|
|
543
|
+
d="M9.99999609,2.00000391 L1.99999609,2.00000391 C1.73478642,2.00000391 1.48043049,2.10535585 1.29289231,2.29289184 C1.10535413,2.48042782 0.999996094,2.73478252 0.999996094,3.00000391 L0.999996094,9.00000391 C0.999996094,9.26521748 1.10535413,9.51957218 1.29289231,9.70710816 C1.48043049,9.89464415 1.73478642,10.0000039 1.99999609,10.0000039 L9.99999609,10.0000039 C10.2652136,10.0000039 10.5195695,9.89464415 10.7071077,9.70710816 C10.8946459,9.51957218 10.9999961,9.26521748 10.9999961,9.00000391 L10.9999961,3.00000391 C10.9999961,2.73478252 10.8946459,2.48042782 10.7071077,2.29289184 C10.5195695,2.10535585 10.2652136,2.00000391 9.99999609,2.00000391 Z M3.207,7.85349609 L2.49998438,7.14650391 L3.64648828,6 L2.49998438,4.85349609 L3.20698828,4.14650391 L5.06049609,6 L3.207,7.85349609 Z M9.5,7.99999609 L6,7.99999609 L6,6.99999609 L9.5,6.99999609 L9.5,7.99999609 L9.5,7.99999609 Z"
|
|
544
|
+
id="形状"
|
|
545
|
+
></path>
|
|
546
|
+
</g>
|
|
547
|
+
</g>
|
|
548
|
+
</g>
|
|
549
|
+
</g>
|
|
550
|
+
</g>
|
|
551
|
+
</g>
|
|
552
|
+
</svg>
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export function existedLSP() {
|
|
557
|
+
return (
|
|
558
|
+
<svg
|
|
559
|
+
width="12px"
|
|
560
|
+
height="12px"
|
|
561
|
+
viewBox="0 0 12 12"
|
|
562
|
+
version="1.1"
|
|
563
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
564
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
565
|
+
>
|
|
566
|
+
<title>robot-fill</title>
|
|
567
|
+
<g
|
|
568
|
+
id="kernel管理面板"
|
|
569
|
+
stroke="none"
|
|
570
|
+
strokeWidth="1"
|
|
571
|
+
fill="none"
|
|
572
|
+
fillRule="evenodd"
|
|
573
|
+
fillOpacity="0.45"
|
|
574
|
+
>
|
|
575
|
+
<g
|
|
576
|
+
id="2.0展开"
|
|
577
|
+
transform="translate(-52.000000, -421.000000)"
|
|
578
|
+
fill="#000000"
|
|
579
|
+
fillRule="nonzero"
|
|
580
|
+
>
|
|
581
|
+
<g id="编组-2" transform="translate(0.000000, 56.000000)">
|
|
582
|
+
<g id="编组-11" transform="translate(40.000000, 0.000000)">
|
|
583
|
+
<g id="编组-16备份-5" transform="translate(12.000000, 361.000000)">
|
|
584
|
+
<g id="robot-fill" transform="translate(0.000000, 4.000000)">
|
|
585
|
+
<rect id="矩形" opacity="0" x="0" y="0" width="12" height="12"></rect>
|
|
586
|
+
<path
|
|
587
|
+
d="M9.984375,0.75 L2.015625,0.75 C1.80820313,0.75 1.640625,0.917578125 1.640625,1.125 L1.640625,8.859375 C1.640625,9.06679687 1.80820313,9.234375 2.015625,9.234375 L9.984375,9.234375 C10.1917969,9.234375 10.359375,9.06679687 10.359375,8.859375 L10.359375,1.125 C10.359375,0.917578125 10.1917969,0.75 9.984375,0.75 Z M3.515625,3.84375 C3.515625,3.45585937 3.83085937,3.140625 4.21875,3.140625 C4.60664063,3.140625 4.921875,3.45585937 4.921875,3.84375 C4.921875,4.23164063 4.60664063,4.546875 4.21875,4.546875 C3.83085937,4.546875 3.515625,4.23164063 3.515625,3.84375 Z M7.875,6.75 C7.875,6.8015625 7.8328125,6.84375 7.78125,6.84375 L4.21875,6.84375 C4.1671875,6.84375 4.125,6.8015625 4.125,6.75 L4.125,6.046875 C4.125,5.9953125 4.1671875,5.953125 4.21875,5.953125 L7.78125,5.953125 C7.8328125,5.953125 7.875,5.9953125 7.875,6.046875 L7.875,6.75 Z M7.78125,4.546875 C7.39335937,4.546875 7.078125,4.23164063 7.078125,3.84375 C7.078125,3.45585937 7.39335937,3.140625 7.78125,3.140625 C8.16914063,3.140625 8.484375,3.45585937 8.484375,3.84375 C8.484375,4.23164063 8.16914063,4.546875 7.78125,4.546875 Z M9.36328125,10.125 L2.63671875,10.125 C2.475,10.125 2.34375,10.2925781 2.34375,10.5 L2.34375,11.15625 C2.34375,11.2078125 2.3765625,11.25 2.41640625,11.25 L9.58242188,11.25 C9.62226563,11.25 9.65508591,11.2078125 9.65508591,11.15625 L9.65508591,10.5 C9.65625,10.2925781 9.525,10.125 9.36328125,10.125 L9.36328125,10.125 Z"
|
|
588
|
+
id="形状"
|
|
589
|
+
></path>
|
|
590
|
+
</g>
|
|
591
|
+
</g>
|
|
592
|
+
</g>
|
|
593
|
+
</g>
|
|
594
|
+
</g>
|
|
595
|
+
</g>
|
|
596
|
+
</svg>
|
|
597
|
+
);
|
|
598
|
+
}
|