Added server
This commit is contained in:
28
Client/src/app/store/gotobed.state.ts
Normal file
28
Client/src/app/store/gotobed.state.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { AddressStorageKey, PortStorageKey, ProtocolStorageKey } from "../gotobed.models";
|
||||
|
||||
export const storeName = 'Gotobed';
|
||||
|
||||
|
||||
export interface GotobedState {
|
||||
command: string;
|
||||
isLoading: boolean;
|
||||
protocol: string;
|
||||
port: string;
|
||||
address: string;
|
||||
isConnected: boolean;
|
||||
}
|
||||
|
||||
export const initialGotoBedState: GotobedState = {
|
||||
command: '',
|
||||
isLoading: false,
|
||||
protocol: localStorage.getItem(ProtocolStorageKey) ?? "http",
|
||||
port: localStorage.getItem(PortStorageKey) ?? '3000',
|
||||
address: localStorage.getItem(AddressStorageKey) ?? 'localhost:8080',
|
||||
isConnected: false,
|
||||
};
|
||||
|
||||
export interface LoadSettingsState {
|
||||
protocol: string;
|
||||
port: string;
|
||||
address: string;
|
||||
}
|
||||
Reference in New Issue
Block a user