@runeya/runeya 1.33.19 → 1.33.20
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/node-red-contrib-runeya.tar +0 -0
- package/package.json +2 -3
- package/public/assets/{App-Zd1wzq6w.js → App-CxWYnNM-.js} +1 -1
- package/public/assets/{CurrentEditor-DLPmlCCH.js → CurrentEditor-C38cqf-Z.js} +1 -1
- package/public/assets/{Editor-BGkwp83-.js → Editor-Ck3cFVn3.js} +6 -6
- package/public/assets/{ImportCreate-Cb9Yo4_T.js → ImportCreate-DFEf3KiI.js} +1 -1
- package/public/assets/{Init-C32Q3Vuy.js → Init-Lt-2DFbi.js} +1 -1
- package/public/assets/{LeftLogo-7mp987n7.js → LeftLogo-fTp83qX1.js} +1 -1
- package/public/assets/{Markdown-CkEWgBbg.js → Markdown-CNWZoHio.js} +1 -1
- package/public/assets/{Overview-Butnf29p.js → Overview-DR4QmO04.js} +1 -1
- package/public/assets/{Section-DArSOaS2.js → Section-BC6pA1HZ.js} +1 -1
- package/public/assets/{Settings-CEcFg3LS.js → Settings-Dp_ktsgs.js} +1 -1
- package/public/assets/{StackChooser-BsG17xPQ.js → StackChooser-CsNxPvyi.js} +1 -1
- package/public/assets/{StackChooser-CH4WGtD8.js → StackChooser-vHgodEvA.js} +1 -1
- package/public/assets/{StackMultiple-CnhHiGG6.js → StackMultiple-BeZmv6DX.js} +1 -1
- package/public/assets/{StackSingle-DzMAOzU6.js → StackSingle-Bza6Vusw.js} +1 -1
- package/public/assets/{Tabs-VGIyn9Mu.js → Tabs-DMteuptw.js} +1 -1
- package/public/assets/{cssMode-CzzL7NLn.js → cssMode-DptFVzSA.js} +1 -1
- package/public/assets/{freemarker2-Dir7A35Q.js → freemarker2-Nj-3NhAz.js} +1 -1
- package/public/assets/{handlebars-Bwt7SUKz.js → handlebars-DccXq6O-.js} +1 -1
- package/public/assets/{html-BVMS5MXg.js → html-BFezHwqy.js} +1 -1
- package/public/assets/{htmlMode-DtatUs1Z.js → htmlMode-8pIWMfce.js} +1 -1
- package/public/assets/{index-BnoOVDVz.js → index-DVXSyllr.js} +2 -2
- package/public/assets/{javascript-D-oImBdK.js → javascript-B0mQdjwH.js} +1 -1
- package/public/assets/{jsonMode-ChekEzF3.js → jsonMode-BuKXiIei.js} +1 -1
- package/public/assets/{liquid-Cx00nEdK.js → liquid-9G58QM1k.js} +1 -1
- package/public/assets/{mdx-B_3CUkN7.js → mdx-DWeREtqy.js} +1 -1
- package/public/assets/{python-PnVqLAvu.js → python-BZtttaDe.js} +1 -1
- package/public/assets/{razor-B-e3gtRB.js → razor-CIhED9yj.js} +1 -1
- package/public/assets/{router-imsD-DjM.css → router-BIesWMTV.css} +1 -1
- package/public/assets/{router-59CbSGll.js → router-BaBuIyxA.js} +94 -94
- package/public/assets/{system-Bck6co6p.js → system-IAlLmFx7.js} +1 -1
- package/public/assets/{tsMode-aTnOdaF2.js → tsMode-BMdhWjVC.js} +1 -1
- package/public/assets/{typescript-D4fq51ct.js → typescript-DurNSXGF.js} +1 -1
- package/public/assets/{xml-aY-jq2ZR.js → xml-Ckok0faQ.js} +1 -1
- package/public/assets/{yaml-BH_SsNz5.js → yaml-C2OtFevY.js} +1 -1
- package/public/index.html +1 -1
- package/www.js +15 -128
- package/www.js.map +1 -1
- package/runeya.vsix +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as o,r as a,k as e}from"./index-
|
|
1
|
+
import{V as o,r as a,k as e}from"./index-DVXSyllr.js";function s(){this.infos=o({cpu:0,mem:0}),this.globalInfos=o({nbCpus:0,totalmem:0,freemem:0,memPercentage:0,cpu:0}),this.version=a("0.0.0")}s.prototype.getInfos=async function(t){const{data:n}=await e.get(`/system/${t}/infos`);return this.infos=n,this.infos};s.prototype.proxyImg=function(t){return`${e.defaults.baseURL==="/"?"":e.defaults.baseURL}/system/proxy-img?url=${encodeURIComponent(t)}`};s.prototype.getVersion=async function(){const{data:t}=await e.get("/version");return this.version.value=t,this.version.value};s.prototype.disconnect=async function(){return e.get("/system/disconnect")};s.prototype.hasUpdate=async function(){const{data:t}=await e.get("/stack/has-update");return t};const i=new s;export{i as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as O,m as I}from"./Editor-
|
|
1
|
+
import{t as O,m as I}from"./Editor-Ck3cFVn3.js";import"./index-DVXSyllr.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as s}from"./Editor-
|
|
1
|
+
import{m as s}from"./Editor-Ck3cFVn3.js";import"./index-DVXSyllr.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as r}from"./Editor-
|
|
1
|
+
import{m as r}from"./Editor-Ck3cFVn3.js";import"./index-DVXSyllr.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as l}from"./Editor-
|
|
1
|
+
import{m as l}from"./Editor-Ck3cFVn3.js";import"./index-DVXSyllr.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
package/public/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/assets/favicon-ClgyP8FQ.ico"><title>runeya</title><style>:host(*),html{margin:0;font-family:Jost,sans-serif;font-size:.9em}.pre-loading{width:100vw;height:100vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;backdrop-filter:blur(10px);color:#0076bc;background-color:rgba(255,255,255,.5)}.spinner{border:3px solid #0076bc;width:70px;height:70px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;border-bottom-color:transparent;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);-ms-flex-negative:0;flex-shrink:0}.spinner::before{content:" ";-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;background-color:#0076bc;position:absolute;border-radius:100%}.spinner::after{content:" ";width:30%;height:30%;background-color:#0076bc;position:absolute;border-radius:100%}@-webkit-keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@-webkit-keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}@keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}</style><script type="module" crossorigin src="/assets/index-
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/assets/favicon-ClgyP8FQ.ico"><title>runeya</title><style>:host(*),html{margin:0;font-family:Jost,sans-serif;font-size:.9em}.pre-loading{width:100vw;height:100vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;backdrop-filter:blur(10px);color:#0076bc;background-color:rgba(255,255,255,.5)}.spinner{border:3px solid #0076bc;width:70px;height:70px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;border-bottom-color:transparent;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);-ms-flex-negative:0;flex-shrink:0}.spinner::before{content:" ";-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;background-color:#0076bc;position:absolute;border-radius:100%}.spinner::after{content:" ";width:30%;height:30%;background-color:#0076bc;position:absolute;border-radius:100%}@-webkit-keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@-webkit-keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}@keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}</style><script type="module" crossorigin src="/assets/index-DVXSyllr.js"></script><link rel="stylesheet" crossorigin href="/assets/index--FPUu8lq.css"></head><body><noscript><strong>We're sorry but runeya doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"><div class="pre-loading"><div class="spinner" v-if="display" :style="{
|
|
2
2
|
width: size + 'px',
|
|
3
3
|
height: size + 'px',
|
|
4
4
|
}"></div>Loading...</div></div></body></html>
|
package/www.js
CHANGED
|
@@ -1853,124 +1853,8 @@ var require_backend11 = __commonJS({
|
|
|
1853
1853
|
}
|
|
1854
1854
|
});
|
|
1855
1855
|
|
|
1856
|
-
// ../../modules/vscode/backend/routes.js
|
|
1857
|
-
var require_routes9 = __commonJS({
|
|
1858
|
-
"../../modules/vscode/backend/routes.js"(exports2, module2) {
|
|
1859
|
-
"use strict";
|
|
1860
|
-
var express = require("express");
|
|
1861
|
-
var open = require("open");
|
|
1862
|
-
var pathfs = require("path");
|
|
1863
|
-
var ws = require("workspace-tools");
|
|
1864
|
-
var { readFile } = require("fs/promises");
|
|
1865
|
-
var { readFileSync, existsSync } = require("fs");
|
|
1866
|
-
var { execAsync } = require_exec();
|
|
1867
|
-
var router = express.Router();
|
|
1868
|
-
var routes = (runeya) => {
|
|
1869
|
-
router.post("/vscode/install", async (req, res) => {
|
|
1870
|
-
await execAsync("code --install-extension ./runeya.vsix", { cwd: __dirname });
|
|
1871
|
-
res.send("ok");
|
|
1872
|
-
});
|
|
1873
|
-
router.delete("/vscode/uninstall", async (req, res) => {
|
|
1874
|
-
await execAsync("code --uninstall-extension runeya.runeya", { cwd: __dirname });
|
|
1875
|
-
res.send("ok");
|
|
1876
|
-
});
|
|
1877
|
-
router.get("/vscode/open-url", async (req, res) => {
|
|
1878
|
-
const url = req.query.url?.toString();
|
|
1879
|
-
if (url) open(url);
|
|
1880
|
-
res.send("ok");
|
|
1881
|
-
});
|
|
1882
|
-
router.get("/vscode/get-services-from-file", async (req, res) => {
|
|
1883
|
-
try {
|
|
1884
|
-
if (!req.query.file) return res.status(400).send("file params is required");
|
|
1885
|
-
const packageRoot = ws.findPackageRoot(req.query.file?.toString());
|
|
1886
|
-
let projectRoot;
|
|
1887
|
-
try {
|
|
1888
|
-
projectRoot = ws.findProjectRoot(req.query.file?.toString());
|
|
1889
|
-
} catch (error) {
|
|
1890
|
-
projectRoot = packageRoot;
|
|
1891
|
-
}
|
|
1892
|
-
if (!packageRoot) return res.status(400).send("no package found");
|
|
1893
|
-
if (!projectRoot) return res.status(400).send("no package found");
|
|
1894
|
-
const monorepo = packageRoot !== projectRoot;
|
|
1895
|
-
if (monorepo) {
|
|
1896
|
-
const packageInfos = await ws.getPackageInfosAsync(projectRoot);
|
|
1897
|
-
const { dependents: dependentsMap } = ws.createDependencyMap(packageInfos);
|
|
1898
|
-
const packageJSON = JSON.parse(await readFile(pathfs.resolve(packageRoot, "./package.json"), "utf-8"));
|
|
1899
|
-
const dependents = [
|
|
1900
|
-
...dependentsMap.get(packageJSON.name) || []
|
|
1901
|
-
];
|
|
1902
|
-
const services = runeya.getServices().filter((service) => {
|
|
1903
|
-
const servicePackageNames = [
|
|
1904
|
-
service.getRootPath(),
|
|
1905
|
-
...service.commands.map((cmd) => cmd.spawnOptions?.env)
|
|
1906
|
-
].flat(100).filter((a, i, arr) => a && !arr.slice(0, i).includes(a) && a.toString() !== projectRoot && existsSync(pathfs.resolve(a.toString(), "./package.json"))).map((path) => JSON.parse(readFileSync(pathfs.resolve(path?.toString() || "", "./package.json"), "utf-8")).name);
|
|
1907
|
-
return dependents.some((packageName) => servicePackageNames.includes(packageName)) || servicePackageNames.includes(packageJSON.name);
|
|
1908
|
-
});
|
|
1909
|
-
res.json(services);
|
|
1910
|
-
} else {
|
|
1911
|
-
const packageRoot2 = ws.findPackageRoot(req.query.file?.toString());
|
|
1912
|
-
let projectRoot2;
|
|
1913
|
-
try {
|
|
1914
|
-
projectRoot2 = ws.findProjectRoot(req.query.file?.toString());
|
|
1915
|
-
} catch (error) {
|
|
1916
|
-
projectRoot2 = packageRoot2;
|
|
1917
|
-
}
|
|
1918
|
-
if (!packageRoot2) return res.status(400).send("no package found");
|
|
1919
|
-
if (!projectRoot2) return res.status(400).send("no package found");
|
|
1920
|
-
const services = runeya.getServices().filter((service) => {
|
|
1921
|
-
const servicePaths = [
|
|
1922
|
-
service.getRootPath(),
|
|
1923
|
-
...service.commands.map((cmd) => cmd.spawnOptions?.env)
|
|
1924
|
-
].flat(100).filter((a, i, arr) => a && !arr.slice(0, i).includes(a) && existsSync(pathfs.resolve(a.toString(), "./package.json")));
|
|
1925
|
-
return servicePaths.includes(projectRoot2);
|
|
1926
|
-
});
|
|
1927
|
-
res.json(services);
|
|
1928
|
-
}
|
|
1929
|
-
} catch (error) {
|
|
1930
|
-
console.error(error);
|
|
1931
|
-
res.json([]);
|
|
1932
|
-
}
|
|
1933
|
-
return null;
|
|
1934
|
-
});
|
|
1935
|
-
router.get("/vscode/download", (req, res) => {
|
|
1936
|
-
const vsixPath = pathfs.resolve(__dirname, "./runeya.vsix");
|
|
1937
|
-
res.download(vsixPath, "runeya.vsix");
|
|
1938
|
-
});
|
|
1939
|
-
return router;
|
|
1940
|
-
};
|
|
1941
|
-
module2.exports = routes;
|
|
1942
|
-
}
|
|
1943
|
-
});
|
|
1944
|
-
|
|
1945
|
-
// ../../modules/vscode/backend/index.js
|
|
1946
|
-
var require_backend12 = __commonJS({
|
|
1947
|
-
"../../modules/vscode/backend/index.js"(exports2, module2) {
|
|
1948
|
-
"use strict";
|
|
1949
|
-
var commandExists = require("command-exists");
|
|
1950
|
-
var plugin = {
|
|
1951
|
-
enabled: true,
|
|
1952
|
-
name: "Vscode",
|
|
1953
|
-
displayName: "Vscode",
|
|
1954
|
-
description: "interact with vscode extension",
|
|
1955
|
-
icon: "fab fa-git-alt",
|
|
1956
|
-
export: null,
|
|
1957
|
-
order: Infinity,
|
|
1958
|
-
placements: [{
|
|
1959
|
-
position: "sidebar",
|
|
1960
|
-
label: "VScode extension",
|
|
1961
|
-
img: "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Visual_Studio_Code_1.35_icon.svg/512px-Visual_Studio_Code_1.35_icon.svg.png",
|
|
1962
|
-
goTo: { path: "/Vscode" },
|
|
1963
|
-
active: "Vscode"
|
|
1964
|
-
}],
|
|
1965
|
-
hidden: () => commandExists("code").then(() => false).catch(() => true),
|
|
1966
|
-
routes: require_routes9()
|
|
1967
|
-
};
|
|
1968
|
-
module2.exports = plugin;
|
|
1969
|
-
}
|
|
1970
|
-
});
|
|
1971
|
-
|
|
1972
1856
|
// ../../modules/docker/backend/routes.js
|
|
1973
|
-
var
|
|
1857
|
+
var require_routes9 = __commonJS({
|
|
1974
1858
|
"../../modules/docker/backend/routes.js"(exports2, module2) {
|
|
1975
1859
|
"use strict";
|
|
1976
1860
|
var express = require("express");
|
|
@@ -2018,7 +1902,7 @@ var require_routes10 = __commonJS({
|
|
|
2018
1902
|
});
|
|
2019
1903
|
|
|
2020
1904
|
// ../../modules/docker/backend/index.js
|
|
2021
|
-
var
|
|
1905
|
+
var require_backend12 = __commonJS({
|
|
2022
1906
|
"../../modules/docker/backend/index.js"(exports2, module2) {
|
|
2023
1907
|
"use strict";
|
|
2024
1908
|
var plugin = {
|
|
@@ -2035,7 +1919,7 @@ var require_backend13 = __commonJS({
|
|
|
2035
1919
|
if (!service?.container) return true;
|
|
2036
1920
|
return !service.container.enabled;
|
|
2037
1921
|
},
|
|
2038
|
-
routes:
|
|
1922
|
+
routes: require_routes9()
|
|
2039
1923
|
};
|
|
2040
1924
|
module2.exports = plugin;
|
|
2041
1925
|
}
|
|
@@ -2377,7 +2261,7 @@ var require_ports = __commonJS({
|
|
|
2377
2261
|
});
|
|
2378
2262
|
|
|
2379
2263
|
// ../../modules/workflows/backend/routes.js
|
|
2380
|
-
var
|
|
2264
|
+
var require_routes10 = __commonJS({
|
|
2381
2265
|
"../../modules/workflows/backend/routes.js"(exports2, module2) {
|
|
2382
2266
|
"use strict";
|
|
2383
2267
|
var { express, getServer } = require_src6();
|
|
@@ -2484,7 +2368,7 @@ var require_routes11 = __commonJS({
|
|
|
2484
2368
|
});
|
|
2485
2369
|
|
|
2486
2370
|
// ../../modules/workflows/backend/index.js
|
|
2487
|
-
var
|
|
2371
|
+
var require_backend13 = __commonJS({
|
|
2488
2372
|
"../../modules/workflows/backend/index.js"(exports2, module2) {
|
|
2489
2373
|
"use strict";
|
|
2490
2374
|
var Workflows = require_Workflows();
|
|
@@ -2508,7 +2392,7 @@ var require_backend14 = __commonJS({
|
|
|
2508
2392
|
finder: (search, runeya) => {
|
|
2509
2393
|
return [];
|
|
2510
2394
|
},
|
|
2511
|
-
routes:
|
|
2395
|
+
routes: require_routes10()
|
|
2512
2396
|
};
|
|
2513
2397
|
module2.exports = plugin;
|
|
2514
2398
|
}
|
|
@@ -2530,9 +2414,8 @@ var require_plugins = __commonJS({
|
|
|
2530
2414
|
toolbox: require_backend9(),
|
|
2531
2415
|
help: require_backend10(),
|
|
2532
2416
|
openapi: require_backend11(),
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
nodered: require_backend14()
|
|
2417
|
+
docker: require_backend12(),
|
|
2418
|
+
nodered: require_backend13()
|
|
2536
2419
|
};
|
|
2537
2420
|
module2.exports = Object.keys(plugins).reduce((acc, key) => {
|
|
2538
2421
|
if (plugins[key].enabled) acc[key] = plugins[key];
|
|
@@ -4358,7 +4241,11 @@ var require_plugins3 = __commonJS({
|
|
|
4358
4241
|
});
|
|
4359
4242
|
router.post("/:plugin/call/:method", async (req, res) => {
|
|
4360
4243
|
const result = await plugins.call(req.params.plugin, req.params.method, req.body?.args || []);
|
|
4361
|
-
|
|
4244
|
+
if (typeof result === "function") {
|
|
4245
|
+
await result(req, res);
|
|
4246
|
+
} else {
|
|
4247
|
+
res.json(result);
|
|
4248
|
+
}
|
|
4362
4249
|
});
|
|
4363
4250
|
module2.exports = router;
|
|
4364
4251
|
}
|
|
@@ -4995,7 +4882,7 @@ var require_config = __commonJS({
|
|
|
4995
4882
|
});
|
|
4996
4883
|
|
|
4997
4884
|
// routes/index.js
|
|
4998
|
-
var
|
|
4885
|
+
var require_routes11 = __commonJS({
|
|
4999
4886
|
"routes/index.js"(exports2, module2) {
|
|
5000
4887
|
"use strict";
|
|
5001
4888
|
var { express } = require_src6();
|
|
@@ -5055,7 +4942,7 @@ var require_app = __commonJS({
|
|
|
5055
4942
|
"use strict";
|
|
5056
4943
|
require("express-async-errors");
|
|
5057
4944
|
var { express } = require_src6();
|
|
5058
|
-
var indexRouter =
|
|
4945
|
+
var indexRouter = require_routes11();
|
|
5059
4946
|
var { stopCpu } = require_cpu();
|
|
5060
4947
|
var { stopWatchers } = require_stack();
|
|
5061
4948
|
var app = express();
|