Skip to content

Commit 3586efa

Browse files
chore(devtool): remove the experimental in devtool development
1 parent 1d08899 commit 3586efa

File tree

7 files changed

+0
-99
lines changed

7 files changed

+0
-99
lines changed

packages/node_modules/overmind-devtools-client/src/components/AppHostIFrame/index.tsx

Lines changed: 0 additions & 47 deletions
This file was deleted.

packages/node_modules/overmind-devtools-client/src/components/RuntimeConfig/index.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,6 @@ const RuntimeConfig: FunctionComponent = () => {
2020
}}>{state.isConnecting ? 'Disconnected' : 'Connected'}</strong>
2121
</div>
2222
</div>
23-
<div className={styles.configWrapper}>
24-
<div className={styles.configDescription}>
25-
<h4 className={styles.configTitle}>Run application</h4>
26-
<div>You can run your application inside the devtool, focusing on implementing state and logic.</div>
27-
</div>
28-
<div className={styles.configValue}>
29-
<input
30-
className={styles.appHost}
31-
defaultValue={state.appHost}
32-
placeholder="localhost:4000..."
33-
onClick={(event) => event.stopPropagation()}
34-
onKeyDown={(event) => {
35-
if (event.keyCode === 13) {
36-
// @ts-ignore
37-
const value = event.target.value
38-
actions.setAppHost(value)
39-
}
40-
}}
41-
/>
42-
</div>
43-
</div>
4423
<div className={styles.configWrapper}>
4524
<div className={styles.configDescription}>
4625
<h4 className={styles.configTitle}>Devtool port</h4>

packages/node_modules/overmind-devtools-client/src/components/Workspace/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Components from '../Components'
1111
import Flushes from '../Flushes'
1212
import History from '../History'
1313
import Charts from '../Charts'
14-
import AppHostIFrame from '../AppHostIFrame'
1514
import { FaChrome } from 'react-icons/fa'
1615

1716
const pages: { [key in Tab]: SFC } = {
@@ -43,7 +42,6 @@ const Workspace: SFC = () => {
4342
) : <Page />}
4443
</div>
4544
</div>
46-
<AppHostIFrame />
4745
</div>
4846
)
4947
}

packages/node_modules/overmind-devtools-client/src/overmind/actions.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,6 @@ export const submitState: Action<string> = ({ state, effects }, newState) => {
221221
state.currentApp.selectedStatePath = null
222222
}
223223

224-
export const setAppHost: Action<string> = ({ state, effects }, host) => {
225-
state.isConnecting = true
226-
227-
let fullHost = host
228-
if (host) {
229-
fullHost = host.startsWith('http') ? host : `http://${host}`
230-
}
231-
232-
state.appHost = fullHost
233-
234-
effects.storage.set('devtool.appHost', fullHost)
235-
}
236-
237224
export const toggleRuntimeConfig: Action = ({ state }) => {
238225
state.isShowingRuntime = !state.isShowingRuntime
239226
}

packages/node_modules/overmind-devtools-client/src/overmind/state.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ type State = {
4848
actionsSplitSize: number
4949
chartsSplitSize: number
5050
isExecutingAction: boolean
51-
appHost: string
5251
}
5352

5453
const state: State = {
@@ -61,7 +60,6 @@ const state: State = {
6160
chartsSplitSize: 200,
6261
port: 3031,
6362
apps: {},
64-
appHost: '',
6563
newPortValue: '',
6664
currentTab: Tab.State,
6765
isExecutingAction: false,

packages/overmind-website/src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const overmind = createOvermind(
2020
}
2121
)
2222

23-
overmind.actions.login()
24-
2523
setConfig({
2624
ignoreSFC: true, // RHL will be __completely__ disabled for SFC
2725
pureRender: true, // RHL will not change render method

packages/overmind-website/src/overmind/state.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Statemachine, statemachine } from 'overmind'
2-
31
import {
42
Api,
53
Demo,
@@ -39,7 +37,6 @@ type State = {
3937
versions: {
4038
[name: string]: string
4139
}
42-
mode: Statemachine<Mode>
4340
}
4441

4542
const state: State = {
@@ -63,15 +60,6 @@ const state: State = {
6360
isLoadingVideos: false,
6461
showViewHelp: false,
6562
versions: {},
66-
mode: statemachine<Mode>({
67-
initial: 'unauthenticated',
68-
states: {
69-
unauthenticated: ['authenticating'],
70-
authenticating: ['unauthenticated', 'authenticated'],
71-
authenticated: ['unauthenticating'],
72-
unauthenticating: ['unauthenticated', 'authenticated'],
73-
},
74-
}),
7563
}
7664

7765
export default state

0 commit comments

Comments
 (0)