@rajat-rastogi/maestro 0.1.6 → 0.2.0
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/app/index.html +13 -0
- package/app/out/main/main.js +1805 -0
- package/app/out/preload/preload.js +105 -0
- package/app/out/renderer/assets/addon-canvas-CszGAohT.js +1977 -0
- package/app/out/renderer/assets/addon-fit-DhSl_-7V.js +58 -0
- package/app/out/renderer/assets/index-D3bMGKAV.js +12209 -0
- package/app/out/renderer/assets/index-DBLgxEKP.css +437 -0
- package/app/out/renderer/assets/xterm-BgoKG_Sn.js +6076 -0
- package/app/out/renderer/index.html +14 -0
- package/app/package-lock.json +4616 -0
- package/app/package.json +38 -0
- package/dist/agent/install.d.ts +2 -0
- package/dist/agent/install.d.ts.map +1 -0
- package/dist/agent/install.js +384 -0
- package/dist/agent/install.js.map +1 -0
- package/dist/dashboard/assets/dashboard.html +70 -5
- package/dist/dashboard/replay-parser.d.ts.map +1 -1
- package/dist/dashboard/replay-parser.js +16 -2
- package/dist/dashboard/replay-parser.js.map +1 -1
- package/dist/main.js +56 -1
- package/dist/main.js.map +1 -1
- package/package.json +12 -4
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function _mergeNamespaces(n, m) {
|
|
2
|
+
for (var i = 0; i < m.length; i++) {
|
|
3
|
+
const e = m[i];
|
|
4
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
5
|
+
for (const k in e) {
|
|
6
|
+
if (k !== "default" && !(k in n)) {
|
|
7
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
if (d) {
|
|
9
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => e[k]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
+
}
|
|
20
|
+
var addonFit$1 = { exports: {} };
|
|
21
|
+
(function(module, exports$1) {
|
|
22
|
+
!function(e, t) {
|
|
23
|
+
module.exports = t();
|
|
24
|
+
}(self, () => (() => {
|
|
25
|
+
var e = {};
|
|
26
|
+
return (() => {
|
|
27
|
+
var t = e;
|
|
28
|
+
Object.defineProperty(t, "__esModule", { value: true }), t.FitAddon = void 0, t.FitAddon = class {
|
|
29
|
+
activate(e2) {
|
|
30
|
+
this._terminal = e2;
|
|
31
|
+
}
|
|
32
|
+
dispose() {
|
|
33
|
+
}
|
|
34
|
+
fit() {
|
|
35
|
+
const e2 = this.proposeDimensions();
|
|
36
|
+
if (!e2 || !this._terminal || isNaN(e2.cols) || isNaN(e2.rows)) return;
|
|
37
|
+
const t2 = this._terminal._core;
|
|
38
|
+
this._terminal.rows === e2.rows && this._terminal.cols === e2.cols || (t2._renderService.clear(), this._terminal.resize(e2.cols, e2.rows));
|
|
39
|
+
}
|
|
40
|
+
proposeDimensions() {
|
|
41
|
+
if (!this._terminal) return;
|
|
42
|
+
if (!this._terminal.element || !this._terminal.element.parentElement) return;
|
|
43
|
+
const e2 = this._terminal._core, t2 = e2._renderService.dimensions;
|
|
44
|
+
if (0 === t2.css.cell.width || 0 === t2.css.cell.height) return;
|
|
45
|
+
const r = 0 === this._terminal.options.scrollback ? 0 : e2.viewport.scrollBarWidth, i = window.getComputedStyle(this._terminal.element.parentElement), o = parseInt(i.getPropertyValue("height")), s = Math.max(0, parseInt(i.getPropertyValue("width"))), n = window.getComputedStyle(this._terminal.element), l = o - (parseInt(n.getPropertyValue("padding-top")) + parseInt(n.getPropertyValue("padding-bottom"))), a = s - (parseInt(n.getPropertyValue("padding-right")) + parseInt(n.getPropertyValue("padding-left"))) - r;
|
|
46
|
+
return { cols: Math.max(2, Math.floor(a / t2.css.cell.width)), rows: Math.max(1, Math.floor(l / t2.css.cell.height)) };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
})(), e;
|
|
50
|
+
})());
|
|
51
|
+
})(addonFit$1);
|
|
52
|
+
var addonFitExports = addonFit$1.exports;
|
|
53
|
+
const addonFit = /* @__PURE__ */ _mergeNamespaces({
|
|
54
|
+
__proto__: null
|
|
55
|
+
}, [addonFitExports]);
|
|
56
|
+
export {
|
|
57
|
+
addonFit as a
|
|
58
|
+
};
|