[Update/TMP] Save plugin status that if enabled or not(on store.js, yet).
Handle download.
This commit is contained in:
@@ -2,7 +2,7 @@ import { fetch as tauriFetch, ResponseType } from "@tauri-apps/api/http";
|
||||
|
||||
export const useFetch = () => {
|
||||
const asyncTauriFetchGithub = async (url) => {
|
||||
console.log("tauriFetch");
|
||||
console.log("tauriFetch", url);
|
||||
|
||||
const release_response = await tauriFetch(url, {
|
||||
method: "GET",
|
||||
|
||||
@@ -4,6 +4,7 @@ import { invoke } from "@tauri-apps/api/tauri";
|
||||
import {
|
||||
createAtomWithHook,
|
||||
useStore_LoadedPluginsList,
|
||||
useStore_SavedPluginsStatus,
|
||||
useStore_PluginsInfoList,
|
||||
} from "@store";
|
||||
|
||||
@@ -21,6 +22,7 @@ const PLUGIN_LIST_URL = "https://raw.githubusercontent.com/ShiinaSakamoto/vrct_p
|
||||
|
||||
export const usePlugins = () => {
|
||||
const { currentLoadedPluginsList, updateLoadedPluginsList } = useStore_LoadedPluginsList();
|
||||
const { currentSavedPluginsStatus, updateSavedPluginsStatus } = useStore_SavedPluginsStatus();
|
||||
const { currentPluginsInfoList, updatePluginsInfoList, pendingPluginsInfoList } = useStore_PluginsInfoList();
|
||||
const { currentSoftwareVersion } = useSoftwareVersion();
|
||||
|
||||
@@ -245,6 +247,9 @@ export const usePlugins = () => {
|
||||
currentLoadedPluginsList,
|
||||
updateLoadedPluginsList,
|
||||
|
||||
currentSavedPluginsStatus,
|
||||
updateSavedPluginsStatus,
|
||||
|
||||
currentPluginsInfoList,
|
||||
updatePluginsInfoList,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user