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"; ...@@ -8,7 +8,6 @@ export * from "./moraStore";
export * from "./placeStore"; export * from "./placeStore";
export * from "./playerStore"; export * from "./playerStore";
import { proxy } from "valtio";
import { devtools } from "valtio/utils"; import { devtools } from "valtio/utils";
import { cardStore } from "./cardStore"; import { cardStore } from "./cardStore";
...@@ -20,15 +19,11 @@ import { moraStore } from "./moraStore"; ...@@ -20,15 +19,11 @@ import { moraStore } from "./moraStore";
import { placeStore } from "./placeStore"; import { placeStore } from "./placeStore";
import { playerStore } from "./playerStore"; import { playerStore } from "./playerStore";
export const store = proxy({ devtools(playerStore, { name: "player", enabled: true });
playerStore, devtools(chatStore, { name: "chat", enabled: true });
chatStore, devtools(joinStore, { name: "join", enabled: true });
joinStore, devtools(moraStore, { name: "mora", enabled: true });
moraStore, devtools(matStore, { name: "mat", enabled: true });
matStore, // 决斗盘 devtools(messageStore, { name: "message", enabled: true });
messageStore, // 决斗的信息,包括模态框 devtools(cardStore, { name: "card", enabled: true });
cardStore, devtools(placeStore, { name: "place", enabled: true });
placeStore,
});
devtools(store, { name: "valtio store", 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