#255: Read plugins manifest from CDN
This commit is contained in:
parent
b9dcdb737c
commit
6bf5b7d906
@ -65,7 +65,10 @@ export async function getActive() {
|
||||
return;
|
||||
}
|
||||
// eslint-disable-next-line no-undef
|
||||
const plgList = await window.pluggableElectronIpc.getActive();
|
||||
const plgList = await window.pluggableElectronIpc?.getActive() ??
|
||||
import(
|
||||
/* webpackIgnore: true */ PLUGIN_CATALOG + `?t=${Date.now()}`
|
||||
).then((data) => data.default.filter((e) => e.supportCloudNative));
|
||||
return plgList.map(
|
||||
(plugin) =>
|
||||
new Plugin(
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
"module": "dist/cjs/module.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
"license": "MIT",
|
||||
"supportCloudNative": true,
|
||||
"url": "/plugins/data-plugin/index.js",
|
||||
"activationPoints": [
|
||||
"init"
|
||||
],
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
"module": "dist/module.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
"license": "MIT",
|
||||
"supportCloudNative": true,
|
||||
"url": "/plugins/inference-plugin/index.js",
|
||||
"activationPoints": [
|
||||
"init"
|
||||
],
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
"module": "dist/module.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
"license": "MIT",
|
||||
"supportCloudNative": true,
|
||||
"url": "/plugins/model-management-plugin/index.js",
|
||||
"activationPoints": [
|
||||
"init"
|
||||
],
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
"module": "dist/module.js",
|
||||
"author": "Jan <service@jan.ai>",
|
||||
"license": "MIT",
|
||||
"supportCloudNative": true,
|
||||
"url": "/plugins/monitoring-plugin/index.js",
|
||||
"activationPoints": [
|
||||
"init"
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user