Custom-built bitwise calculator, new number types, and improved UI (#46)

This commit is contained in:
Borys Levytskyi
2023-05-10 13:59:20 +03:00
committed by GitHub
parent 38af3721fd
commit 23748831ba
38 changed files with 1099 additions and 582 deletions

View File

@@ -3,7 +3,6 @@ import hash from '../core/hash';
import AppState from './AppState';
import { Env } from './interfaces';
import appStateStore from './appStateStore';
import CommandLink from '../core/components/CommandLink';
export type StartupAppData = {
appState: AppState,
@@ -11,7 +10,7 @@ export type StartupAppData = {
}
const STARTUP_COMMAND_KEY = 'StartupCommand';
const DEFAULT_COMMANDS = ['help', '127.0.0.1 192.168.0.0/8', '-1 -1L', '1|2&6', '4 0b1000000 0x80'];
const DEFAULT_COMMANDS = ['help', '127.0.0.1 192.168.0.1/8', '-1b -1s -1 -1l', '1|2&6', '4 0b1000000 0x80'];
function bootstrapAppData() : StartupAppData {
const env = window.location.host === "bitwisecmd.com" ? 'prod' : 'stage';