This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dock): moving to use autocomplete
Simplifies the dock seach logic.
- Loading branch information
1 parent
7f920e7
commit 0fd9389
Showing
54 changed files
with
898 additions
and
547 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,33 +1,23 @@ | ||
import { createStyles, Box, Grid, Theme, withStyles, WithStyles } from "@material-ui/core"; | ||
import { Box } from "@material-ui/core"; | ||
import * as React from "react"; | ||
import { Search, SearchHelp, SearchResults } from "../Search"; | ||
import { Search, SearchButton, SearchHelp } from "../Search"; | ||
import { DragHandle, PowerButton } from "../System"; | ||
|
||
const styles = (theme: Theme) => | ||
createStyles({ | ||
padding: { | ||
padding: theme.spacing(1, 1, 1, 0), | ||
}, | ||
}); | ||
|
||
class AppShell extends React.PureComponent<WithStyles<typeof styles>> { | ||
export class AppShell extends React.PureComponent { | ||
public render() { | ||
const { classes } = this.props; | ||
|
||
return ( | ||
<Box display="flex" flexDirection="column" flex={1}> | ||
<Grid container wrap="nowrap"> | ||
<DragHandle /> | ||
<Grid className={classes.padding} container wrap="nowrap"> | ||
<Search /> | ||
<PowerButton /> | ||
</Grid> | ||
</Grid> | ||
<SearchResults /> | ||
<Search | ||
startAdornment={ | ||
<> | ||
<DragHandle /> | ||
<SearchButton /> | ||
</> | ||
} | ||
endAdornment={<PowerButton />} | ||
/> | ||
<SearchHelp /> | ||
</Box> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(styles)(AppShell); |
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
11 changes: 11 additions & 0 deletions
11
packages/desktop-dock/src/components/App/FilterStoreProvider.tsx
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,11 @@ | ||
import * as React from "react"; | ||
import { Provider } from "mobx-react"; | ||
import { ObservableFilterStore } from "../../stores"; | ||
|
||
export class FilterStoreProvider extends React.PureComponent { | ||
private readonly filterStore = new ObservableFilterStore(); | ||
|
||
public render() { | ||
return <Provider filterStore={this.filterStore}>{this.props.children}</Provider>; | ||
} | ||
} |
21 changes: 4 additions & 17 deletions
21
packages/desktop-dock/src/components/App/SearchStoreProvider.tsx
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
11 changes: 11 additions & 0 deletions
11
packages/desktop-dock/src/components/App/TabStoreProvider.tsx
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,11 @@ | ||
import * as React from "react"; | ||
import { Provider } from "mobx-react"; | ||
import { ObservableTabStore } from "../../stores"; | ||
|
||
export class TabStoreProvider extends React.PureComponent { | ||
private readonly tabStore = new ObservableTabStore(); | ||
|
||
public render() { | ||
return <Provider tabStore={this.tabStore}>{this.props.children}</Provider>; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/desktop-dock/src/components/App/ThemeStoreProvider.tsx
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,11 @@ | ||
import * as React from "react"; | ||
import { Provider } from "mobx-react"; | ||
import { ObservableThemeStore } from "../../stores"; | ||
|
||
export class ThemeStoreProvider extends React.PureComponent { | ||
private readonly themeStore = new ObservableThemeStore(); | ||
|
||
public render() { | ||
return <Provider themeStore={this.themeStore}>{this.props.children}</Provider>; | ||
} | ||
} |
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.