mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
31 lines
644 B
TypeScript
31 lines
644 B
TypeScript
import { atom } from "recoil";
|
|
import { ApiType } from "./types";
|
|
|
|
export const atomClashPort = atom<number>({
|
|
key: "atomClashPort",
|
|
default: 0,
|
|
});
|
|
|
|
export const atomLogData = atom<ApiType.LogItem[]>({
|
|
key: "atomLogData",
|
|
default: [],
|
|
});
|
|
|
|
// save the state of each profile item loading
|
|
export const atomLoadingCache = atom<Record<string, boolean>>({
|
|
key: "atomLoadingCache",
|
|
default: {},
|
|
});
|
|
|
|
// save update state
|
|
export const atomUpdateState = atom<boolean>({
|
|
key: "atomUpdateState",
|
|
default: false,
|
|
});
|
|
|
|
// current profile uid
|
|
export const atomCurrentProfile = atom<string>({
|
|
key: "atomCurrentProfile",
|
|
default: "",
|
|
});
|