Commit 56da0de2 authored by timel's avatar timel

feat: store display in devtool

parent 8d8c9023
Pipeline #22345 failed with stages
in 13 minutes and 32 seconds
......@@ -8,7 +8,6 @@ export * from "./moraStore";
export * from "./placeStore";
export * from "./playerStore";
import { proxy } from "valtio";
import { devtools } from "valtio/utils";
import { cardStore } from "./cardStore";
......@@ -20,15 +19,11 @@ import { moraStore } from "./moraStore";
import { placeStore } from "./placeStore";
import { playerStore } from "./playerStore";
export const store = proxy({
playerStore,
chatStore,
joinStore,
moraStore,
matStore, // 决斗盘
messageStore, // 决斗的信息,包括模态框
cardStore,
placeStore,
});
devtools(store, { name: "valtio store", enabled: true });
devtools(playerStore, { name: "player", enabled: true });
devtools(chatStore, { name: "chat", enabled: true });
devtools(joinStore, { name: "join", enabled: true });
devtools(moraStore, { name: "mora", enabled: true });
devtools(matStore, { name: "mat", enabled: true });
devtools(messageStore, { name: "message", enabled: true });
devtools(cardStore, { name: "card", enabled: true });
devtools(placeStore, { name: "place", enabled: true });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment