DBMS Submit static webpage

Removed all fetch function
This commit is contained in:
2021-11-28 18:56:33 +08:00
parent be2515231c
commit 3457fde522
25 changed files with 613 additions and 170 deletions

View File

@@ -15,14 +15,11 @@ function FileDialog(props) {
<dialog open={props.showStatus}>
<p>{props.file.filename}</p>
<p>
Download 使用浏览器下载原文件
Download using browser
<br />
Play 调用网页播放器播放
Play on the web page
<br />
</p>
<a href={downloadURL} download>
<button>Download</button>
</a>
<button
onClick={() => {
props.setPlayingFile(props.file);
@@ -33,11 +30,10 @@ function FileDialog(props) {
</button>
<button
onClick={() => {
navigate(`/share/${props.file.id}`);
props.setShowStatus(false);
navigate(`/file/${props.file.id}`);
}}
>
Share
Info
</button>
<button onClick={() => props.setShowStatus(false)}>Close</button>
</dialog>