Small Cleaning and autorun bug fix

This commit is contained in:
Myx
2022-01-02 05:45:05 +01:00
parent bcdab6b162
commit 3140a78f00
48 changed files with 208 additions and 698 deletions

View File

@@ -1,8 +1,7 @@
import { AddressStorageKey, PortStorageKey, ProtocolStorageKey } from "../gotobed.models";
import { addressStorageKey, portStorageKey, protocolStorageKey } from '../gotobed.models';
export const storeName = 'Gotobed';
export interface GotobedState {
command: string;
isLoading: boolean;
@@ -15,9 +14,9 @@ export interface GotobedState {
export const initialGotoBedState: GotobedState = {
command: '',
isLoading: false,
protocol: localStorage.getItem(ProtocolStorageKey) ?? "http",
port: localStorage.getItem(PortStorageKey) ?? '3000',
address: localStorage.getItem(AddressStorageKey) ?? 'localhost:8080',
protocol: localStorage.getItem(protocolStorageKey) ?? 'http',
port: localStorage.getItem(portStorageKey) ?? '3000',
address: localStorage.getItem(addressStorageKey) ?? 'localhost:8080',
isConnected: false,
};
@@ -25,4 +24,4 @@ export interface LoadSettingsState {
protocol: string;
port: string;
address: string;
}
}