mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Structure change (#4220)
* Structure change * Remove duplicate folders from previous structure * Cleanup websocket protocol * Updating from based off PR * Fixup - remove wrong files during conflict and get the websocket working * renaming tsx to ts Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
a0deb73df6
commit
1ddc9cc929
123 changed files with 424 additions and 228 deletions
18
webclient/src/store/server/server.selectors.ts
Normal file
18
webclient/src/store/server/server.selectors.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { ServerState } from "./server.interfaces";
|
||||
|
||||
interface State {
|
||||
server: ServerState
|
||||
}
|
||||
|
||||
export const Selectors = {
|
||||
getMessage: ({ server }: State) => server.info.message,
|
||||
getName: ({ server }: State) => server.info.name,
|
||||
getVersion: ({ server }: State) => server.info.version,
|
||||
getDescription: ({ server }: State) => server.status.description,
|
||||
getState: ({ server }: State) => server.status.state,
|
||||
getUser: ({ server }: State) => server.user,
|
||||
getUsers: ({ server }: State) => server.users,
|
||||
getLogs: ({ server }: State) => server.logs,
|
||||
getBuddyList: ({ server }: State) => server.buddyList,
|
||||
getIgnoreList: ({ server }: State) => server.ignoreList
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue