[Update] Plugins: Send all logics to the plugins when it's registered.

This commit is contained in:
Sakamoto Shiina
2025-03-30 04:18:54 +09:00
parent 5681038c22
commit b0b68233aa
5 changed files with 11 additions and 49 deletions

View File

@@ -16,7 +16,9 @@ import JSZip from "jszip";
import { useFetch } from "@logics_common";
import { useSoftwareVersion } from "@logics_configs";
import * as logic_configs from "@logics_configs";
import * as logics_configs from "@logics_configs";
import * as logics_main from "@logics_main";
import * as logics_common from "@logics_common";
// PLUGIN_LIST_URL は中央リポジトリにある、各プラグインの plugin_info.json への URL の配列を保持する JSON の URL
@@ -51,7 +53,7 @@ export const usePlugins = () => {
});
},
createAtomWithHook: (...args) => createAtomWithHook(...args),
logic_configs: logic_configs,
logics: { ...logics_common, ...logics_configs, ...logics_main }
};
return plugin_context;
}