-
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acbaced
commit 6853066
Showing
18 changed files
with
166 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { ActionTypes, AppState, CustomAction } from '../reducers' | ||
import { Dispatch } from 'redux'; | ||
import { Dispatch } from 'redux' | ||
|
||
export const showError = (error?: string) => ({ | ||
error, | ||
type: ActionTypes.showError, | ||
}) | ||
|
||
export const toggleTheme = () => (dispatch: Dispatch<CustomAction>, getState: () => AppState) => { | ||
dispatch({ | ||
type: getState().globalState.theme === 'light' ? ActionTypes.setDarkTheme : ActionTypes.setLightTheme, | ||
}) | ||
} | ||
export const didLaunch = () => ({ | ||
type: ActionTypes.didLaunch, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export enum CodeBlockColors { | ||
text = "#080808", | ||
background = "#F9F9F9", | ||
numeric = "#811F24", | ||
boolean = "#811F24", | ||
string = "#0B6125", | ||
variable = "#234A97" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as React from 'react' | ||
import SplitPane from 'react-split-pane' | ||
import { Sidebar } from './Sidebar' | ||
import Tree from './Tree/Tree'; | ||
|
||
export default function ContentView(props: {heightProperty: any, paneDefaults: any, connectionId: any}) { | ||
return ( | ||
<SplitPane | ||
step={20} | ||
primary="second" | ||
className={props.heightProperty} | ||
split="vertical" | ||
minSize={250} | ||
defaultSize={500} | ||
resizerStyle={{ width: '2px', margin: '0 -10px 0 0px' }} | ||
allowResize={true} | ||
style={{ position: 'relative' }} | ||
pane1Style={{ overflow: 'hidden' }} | ||
> | ||
<div className={props.paneDefaults}> | ||
<Tree /> | ||
</div> | ||
<div className={props.paneDefaults}> | ||
<Sidebar connectionId={props.connectionId} /> | ||
</div> | ||
</SplitPane> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.