yeungalan 4 years ago
parent
commit
678ae1d8e5
29 changed files with 10 additions and 81 deletions
  1. 0 0
      photo/node_modules/.cache/babel-loader/142ccf2a274c229bdf8ec40fbd8a018f.json
  2. 0 0
      photo/node_modules/.cache/babel-loader/154e97cc3ab0826af7ce3823a1b26a08.json
  3. 0 0
      photo/node_modules/.cache/babel-loader/2e32f9653f57f06ff41a9d84d23985aa.json
  4. 0 0
      photo/node_modules/.cache/babel-loader/30af268053954009b5f68954c21d977b.json
  5. 0 0
      photo/node_modules/.cache/babel-loader/55aa1f79085feda7b65fed7e82824b4f.json
  6. 0 0
      photo/node_modules/.cache/babel-loader/5694bfdc02812d46858904d798bfe077.json
  7. 0 0
      photo/node_modules/.cache/babel-loader/65d0b2642ee6c4187490e57e2b67f444.json
  8. 0 0
      photo/node_modules/.cache/babel-loader/7c32b25c4a37fdb33acf880cf30b05be.json
  9. 0 0
      photo/node_modules/.cache/babel-loader/879045bcafd2ddfdf9d99f268576c9ed.json
  10. 0 0
      photo/node_modules/.cache/babel-loader/910e6dbda0634c72fc9198ba1b5bf450.json
  11. 0 0
      photo/node_modules/.cache/babel-loader/94ba237cdfeffd0a06ca30f3d5858dbd.json
  12. 0 0
      photo/node_modules/.cache/babel-loader/b09e8b14d3a75a698d8cd5cd11a1bdcd.json
  13. 0 0
      photo/node_modules/.cache/babel-loader/cd2df92ef6e88d2529191430736eccb9.json
  14. 0 0
      photo/node_modules/.cache/babel-loader/e6763e1ce74f2fe181cb48d534866514.json
  15. BIN
      photo/node_modules/.cache/eslint-loader/03ad3e2e495d35424eb8fb350fa76de3330da3b2.json.gz
  16. BIN
      photo/node_modules/.cache/eslint-loader/184209d391da53d396f41096bc4eedac01bef033.json.gz
  17. BIN
      photo/node_modules/.cache/eslint-loader/37e0aac70ae5a54fd13cbc35a39fa3674e68a163.json.gz
  18. BIN
      photo/node_modules/.cache/eslint-loader/44412431c37aaee01dc62f23cd0f087ca09d821b.json.gz
  19. BIN
      photo/node_modules/.cache/eslint-loader/5d087bfd0a3640b82c1e1b8f3a36ad5f79f50014.json.gz
  20. BIN
      photo/node_modules/.cache/eslint-loader/6142dad4cb889d1ba557ce33095c604be422753b.json.gz
  21. BIN
      photo/node_modules/.cache/eslint-loader/682c0a58e40c4919c4f7398e40782bb134e75335.json.gz
  22. BIN
      photo/node_modules/.cache/eslint-loader/6ab8897684183f9c8bba9003dab16542f360309f.json.gz
  23. BIN
      photo/node_modules/.cache/eslint-loader/6c567f94411d80fe4dbe24c3e2caf0bdd3bcf7be.json.gz
  24. BIN
      photo/node_modules/.cache/eslint-loader/7be03377d08f091281a530c4ba5dc6900cddc4fa.json.gz
  25. BIN
      photo/node_modules/.cache/eslint-loader/8588c98ecd06934c38841a54ce8826adc5d92e63.json.gz
  26. BIN
      photo/node_modules/.cache/eslint-loader/e4098937243b563d2cf495fcdb7a22db0c8fc47b.json.gz
  27. BIN
      photo/node_modules/.cache/eslint-loader/fdeb53e02c7c0210db1611d67230446c895f4b1e.json.gz
  28. BIN
      photo/node_modules/.cache/eslint-loader/feb7a9c7528c318d1d8e0731d19715659c030eaf.json.gz
  29. 10 81
      photo/src/SearchAppMenu.js

File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/142ccf2a274c229bdf8ec40fbd8a018f.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/154e97cc3ab0826af7ce3823a1b26a08.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/2e32f9653f57f06ff41a9d84d23985aa.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/30af268053954009b5f68954c21d977b.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/55aa1f79085feda7b65fed7e82824b4f.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/5694bfdc02812d46858904d798bfe077.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/65d0b2642ee6c4187490e57e2b67f444.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/7c32b25c4a37fdb33acf880cf30b05be.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/879045bcafd2ddfdf9d99f268576c9ed.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/910e6dbda0634c72fc9198ba1b5bf450.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/94ba237cdfeffd0a06ca30f3d5858dbd.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/b09e8b14d3a75a698d8cd5cd11a1bdcd.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/cd2df92ef6e88d2529191430736eccb9.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/e6763e1ce74f2fe181cb48d534866514.json


BIN
photo/node_modules/.cache/eslint-loader/03ad3e2e495d35424eb8fb350fa76de3330da3b2.json.gz


BIN
photo/node_modules/.cache/eslint-loader/184209d391da53d396f41096bc4eedac01bef033.json.gz


BIN
photo/node_modules/.cache/eslint-loader/37e0aac70ae5a54fd13cbc35a39fa3674e68a163.json.gz


BIN
photo/node_modules/.cache/eslint-loader/44412431c37aaee01dc62f23cd0f087ca09d821b.json.gz


BIN
photo/node_modules/.cache/eslint-loader/5d087bfd0a3640b82c1e1b8f3a36ad5f79f50014.json.gz


BIN
photo/node_modules/.cache/eslint-loader/6142dad4cb889d1ba557ce33095c604be422753b.json.gz


BIN
photo/node_modules/.cache/eslint-loader/682c0a58e40c4919c4f7398e40782bb134e75335.json.gz


BIN
photo/node_modules/.cache/eslint-loader/6ab8897684183f9c8bba9003dab16542f360309f.json.gz


BIN
photo/node_modules/.cache/eslint-loader/6c567f94411d80fe4dbe24c3e2caf0bdd3bcf7be.json.gz


BIN
photo/node_modules/.cache/eslint-loader/7be03377d08f091281a530c4ba5dc6900cddc4fa.json.gz


BIN
photo/node_modules/.cache/eslint-loader/8588c98ecd06934c38841a54ce8826adc5d92e63.json.gz


BIN
photo/node_modules/.cache/eslint-loader/e4098937243b563d2cf495fcdb7a22db0c8fc47b.json.gz


BIN
photo/node_modules/.cache/eslint-loader/fdeb53e02c7c0210db1611d67230446c895f4b1e.json.gz


BIN
photo/node_modules/.cache/eslint-loader/feb7a9c7528c318d1d8e0731d19715659c030eaf.json.gz


+ 10 - 81
photo/src/SearchAppMenu.js

@@ -33,9 +33,6 @@ import Icon from '@material-ui/core/Icon';
 import AddCircle from '@material-ui/icons/AddCircle';
 import CloudIcon from '@material-ui/icons/Cloud';
 import LinearProgress from '@material-ui/core/LinearProgress';
-import ImageList from './imageList';
-
-const drawerWidth = 240;
 
 const BorderLinearProgress = withStyles((theme) => ({
     colorPrimary: {
@@ -49,62 +46,17 @@ const BorderLinearProgress = withStyles((theme) => ({
 
 const useStyles = makeStyles((theme) => ({
     root: {
-        display: 'flex',
-    },
-    appBar: {
-        transition: theme.transitions.create(['margin', 'width'], {
-            easing: theme.transitions.easing.sharp,
-            duration: theme.transitions.duration.leavingScreen,
-        }),
-    },
-    appBarShift: {
-        width: `calc(100% - ${drawerWidth}px)`,
-        marginLeft: drawerWidth,
-        transition: theme.transitions.create(['margin', 'width'], {
-            easing: theme.transitions.easing.easeOut,
-            duration: theme.transitions.duration.enteringScreen,
-        }),
+        flexGrow: 1,
     },
     menuButton: {
         marginRight: theme.spacing(2),
     },
-    hide: {
-        display: 'none',
-    },
-    drawer: {
-        width: drawerWidth,
-        flexShrink: 0,
-    },
-    drawerPaper: {
-        width: drawerWidth,
-    },
-    drawerHeader: {
-        display: 'flex',
-        alignItems: 'center',
-        padding: theme.spacing(0, 1),
-        // necessary for content to be below app bar
-        ...theme.mixins.toolbar,
-        justifyContent: 'flex-end',
-    },
-    content: {
+    title: {
         flexGrow: 1,
-        padding: theme.spacing(3),
-        transition: theme.transitions.create('margin', {
-            easing: theme.transitions.easing.sharp,
-            duration: theme.transitions.duration.leavingScreen,
-        }),
-        marginLeft: -drawerWidth,
-    },
-    contentShift: {
-        transition: theme.transitions.create('margin', {
-            easing: theme.transitions.easing.easeOut,
-            duration: theme.transitions.duration.enteringScreen,
-        }),
-        marginLeft: 0,
     },
 }));
 
-export default function PersistentDrawerLeft() {
+export default function ButtonAppBar() {
     const classes = useStyles();
     const theme = useTheme();
     const [open, setOpen] = React.useState(false);
@@ -119,37 +71,22 @@ export default function PersistentDrawerLeft() {
 
     return (
         <div className={classes.root}>
-            <CssBaseline />
-            <AppBar
-                position="fixed"
-                style={
-                    { background: '#2196f3' }
-                }
-                className={clsx(classes.appBar, {
-                    [classes.appBarShift]: open,
-                })}
-            >
+            <AppBar position="static">
                 <Toolbar>
-                    <IconButton
-                        color="inherit"
-                        aria-label="open drawer"
-                        onClick={handleDrawerOpen}
-                        edge="start"
-                        className={clsx(classes.menuButton, open && classes.hide)}
-                    >
+                    <IconButton edge="start" onClick={handleDrawerOpen} className={classes.menuButton} color="inherit" aria-label="menu">
                         <MenuIcon />
                     </IconButton>
-                    <Typography variant="h6" noWrap>
+                    <Typography variant="h6" className={classes.title}>
                         谷狗相薄
-                    </Typography>
-                    <Button variant="contained" startIcon={<CloudUploadIcon/>}>Upload</Button>
+          </Typography>
+                    <Button variant="contained" startIcon={<CloudUploadIcon />}>Upload</Button>
                     <IconButton style={{ color: '#ffffff' }} aria-label="delete">
-                        <HelpOutlineIcon/>
+                        <HelpOutlineIcon />
                     </IconButton>
                     <IconButton style={{ color: '#ffffff' }} aria-label="delete">
                         <SettingsIcon />
                     </IconButton>
-                    <Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg"/> 
+                    <Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" />
                 </Toolbar>
             </AppBar>
             <Drawer
@@ -185,14 +122,6 @@ export default function PersistentDrawerLeft() {
                     ))}
                 </List>
             </Drawer>
-            <main
-                className={clsx(classes.content, {
-                    [classes.contentShift]: open,
-                })}
-            >
-                <div className={classes.drawerHeader} />
-                    <ImageList/>
-            </main>
         </div>
     );
 }

Some files were not shown because too many files changed in this diff