Skip to content

Commit

Permalink
#255: Read plugins manifest from CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
John authored and John committed Oct 30, 2023
1 parent b9dcdb7 commit 6bf5b7d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion electron/core/plugin-manager/execution/facade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions plugins/data-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"module": "dist/cjs/module.js",
"author": "Jan <[email protected]>",
"license": "MIT",
"supportCloudNative": true,
"url": "/plugins/data-plugin/index.js",
"activationPoints": [
"init"
],
Expand Down
2 changes: 2 additions & 0 deletions plugins/inference-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"module": "dist/module.js",
"author": "Jan <[email protected]>",
"license": "MIT",
"supportCloudNative": true,
"url": "/plugins/inference-plugin/index.js",
"activationPoints": [
"init"
],
Expand Down
2 changes: 2 additions & 0 deletions plugins/model-management-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"module": "dist/module.js",
"author": "Jan <[email protected]>",
"license": "MIT",
"supportCloudNative": true,
"url": "/plugins/model-management-plugin/index.js",
"activationPoints": [
"init"
],
Expand Down
2 changes: 2 additions & 0 deletions plugins/monitoring-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"module": "dist/module.js",
"author": "Jan <[email protected]>",
"license": "MIT",
"supportCloudNative": true,
"url": "/plugins/monitoring-plugin/index.js",
"activationPoints": [
"init"
],
Expand Down

0 comments on commit 6bf5b7d

Please sign in to comment.