parent
1da1bcd450
commit
eb9143edf9
4 changed files with 79 additions and 45 deletions
@ -0,0 +1,29 @@ |
|||||||
|
import React, { useState, useEffect } from 'react'; |
||||||
|
import { ThemeProvider, CssBaseline, createMuiTheme, Box, LinearProgress } from '@material-ui/core'; |
||||||
|
import { QueryElem, toApiQuery } from '../lib/query/Query'; |
||||||
|
import QueryBuilder from './querybuilder/QueryBuilder'; |
||||||
|
import * as serverApi from '../api'; |
||||||
|
import { SongTable } from './tables/ResultsTable'; |
||||||
|
import stringifyList from '../lib/stringifyList'; |
||||||
|
import { getArtists, getSongTitles, getAlbums, getTags } from '../lib/query/Getters'; |
||||||
|
import { grey } from '@material-ui/core/colors'; |
||||||
|
import AppBar from './appbar/AppBar'; |
||||||
|
import QueryWindow from './windows/QueryWindow'; |
||||||
|
var _ = require('lodash'); |
||||||
|
|
||||||
|
const darkTheme = createMuiTheme({ |
||||||
|
palette: { |
||||||
|
type: 'dark', |
||||||
|
primary: { |
||||||
|
main: grey[100], |
||||||
|
} |
||||||
|
}, |
||||||
|
}); |
||||||
|
|
||||||
|
export default function MainWindow(props: any) { |
||||||
|
return <ThemeProvider theme={darkTheme}> |
||||||
|
<CssBaseline /> |
||||||
|
<AppBar /> |
||||||
|
<QueryWindow /> |
||||||
|
</ThemeProvider> |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
import React from 'react'; |
||||||
|
import { AppBar as MuiAppBar, Box } from '@material-ui/core'; |
||||||
|
|
||||||
|
export interface IProps { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
export default function AppBar(props: IProps) { |
||||||
|
return <MuiAppBar position="static" style={{ background: 'grey' }}> |
||||||
|
<Box m={0.5} display="flex" alignItems="center"> |
||||||
|
<img height="30px" src={process.env.PUBLIC_URL + "/logo.svg"} alt="error"></img> |
||||||
|
</Box> |
||||||
|
</MuiAppBar> |
||||||
|
} |
Loading…
Reference in new issue