update
This commit is contained in:
parent
bcdd5ffa4c
commit
1dcf7250ba
12
README.md
12
README.md
|
@ -1,12 +1,12 @@
|
||||||
# HomeDisk cloud server
|
# HomeDisk cloud server
|
||||||
|
|
||||||
[![docs](https://img.shields.io/badge/docs-rust_docs-fff)](https://homedisk-doc.vercel.app/cloud/)
|
[![docs](https://img.shields.io/badge/docs-rust_docs-fff)](https://homedisk-doc.vercel.app)
|
||||||
[![license badge](https://img.shields.io/github/license/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
[![](https://img.shields.io/github/license/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
||||||
[![code size badge](https://img.shields.io/github/languages/code-size/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
[![](https://img.shields.io/github/languages/code-size/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
||||||
[![total lines badge](https://img.shields.io/tokei/lines/github/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
[![](https://img.shields.io/tokei/lines/github/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
||||||
[![Build release binaries (and publish them if this is a tag)](https://github.com/MedzikUser/HomeDisk/actions/workflows/build-release-binaries.yml/badge.svg)](https://github.com/MedzikUser/HomeDisk/actions/workflows/build-release-binaries.yml)
|
[![Rust CI](https://github.com/MedzikUser/HomeDisk/actions/workflows/rust.yml/badge.svg)](https://github.com/MedzikUser/HomeDisk/actions/workflows/rust.yml)
|
||||||
|
|
||||||
![](https://i.imgur.com/gi7KBVE.png)
|
![](https://i.imgur.com/fOtiSf7.png)
|
||||||
|
|
||||||
![](https://i.imgur.com/vLautmq.png)
|
![](https://i.imgur.com/vLautmq.png)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
import styled from "styled-components"
|
||||||
|
|
||||||
|
const IconDiv = styled.div`
|
||||||
|
padding-right: 5px;
|
||||||
|
padding-left: 5px;
|
||||||
|
`
|
||||||
|
|
||||||
|
export default IconDiv
|
|
@ -17,11 +17,11 @@ const Table = styled.table`
|
||||||
}
|
}
|
||||||
|
|
||||||
td:first-child {
|
td:first-child {
|
||||||
width: 70%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
td:last-child {
|
td:last-child {
|
||||||
width: 10%;
|
width: 20%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ import Icon from "../../components/other/icon"
|
||||||
import Table from "../../components/user/table"
|
import Table from "../../components/user/table"
|
||||||
import UploadModal from "../../components/user/modals/upload"
|
import UploadModal from "../../components/user/modals/upload"
|
||||||
import CreateFolderModal from "../../components/user/modals/create-folder"
|
import CreateFolderModal from "../../components/user/modals/create-folder"
|
||||||
|
import IconDiv from "../../components/other/icon-div"
|
||||||
|
|
||||||
export default function Files() {
|
export default function Files() {
|
||||||
const [cookies] = useCookies(["token"])
|
const [cookies] = useCookies(["token"])
|
||||||
|
@ -54,26 +55,30 @@ export default function Files() {
|
||||||
<title>Files - HomeDisk</title>
|
<title>Files - HomeDisk</title>
|
||||||
</Head>
|
</Head>
|
||||||
|
|
||||||
<MuiLink>
|
<MuiLink sx={{display: "flex"}}>
|
||||||
<IconButton
|
<IconDiv>
|
||||||
size="large"
|
<IconButton
|
||||||
edge="start"
|
size="large"
|
||||||
color="inherit"
|
edge="start"
|
||||||
aria-label="logo"
|
color="inherit"
|
||||||
onClick={() => setUploadModal(true)}
|
aria-label="logo"
|
||||||
>
|
onClick={() => setUploadModal(true)}
|
||||||
<CloudUpload />
|
>
|
||||||
</IconButton>
|
<CloudUpload />
|
||||||
|
</IconButton>
|
||||||
|
</IconDiv>
|
||||||
|
|
||||||
<IconButton
|
<IconDiv>
|
||||||
size="large"
|
<IconButton
|
||||||
edge="start"
|
size="large"
|
||||||
color="inherit"
|
edge="start"
|
||||||
aria-label="logo"
|
color="inherit"
|
||||||
onClick={() => setCreateFolderModal(true)}
|
aria-label="logo"
|
||||||
>
|
onClick={() => setCreateFolderModal(true)}
|
||||||
<CreateNewFolder />
|
>
|
||||||
</IconButton>
|
<CreateNewFolder />
|
||||||
|
</IconButton>
|
||||||
|
</IconDiv>
|
||||||
</MuiLink>
|
</MuiLink>
|
||||||
|
|
||||||
<UploadModal open={uploadModal} setOpen={setUploadModal} path={path} refresh={refreshFolder} />
|
<UploadModal open={uploadModal} setOpen={setUploadModal} path={path} refresh={refreshFolder} />
|
||||||
|
|
Loading…
Reference in New Issue