This commit is contained in:
split / May 2023-02-27 20:11:25 -08:00
parent 12f56d5b51
commit caa67a8eb6
8 changed files with 16 additions and 9 deletions

1
assets/icons/error.svg Normal file
View file

@ -0,0 +1 @@
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm3.53 6.47-.084-.073a.75.75 0 0 0-.882-.007l-.094.08L12 10.939l-2.47-2.47-.084-.072a.75.75 0 0 0-.882-.007l-.094.08-.073.084a.75.75 0 0 0-.007.882l.08.094L10.939 12l-2.47 2.47-.072.084a.75.75 0 0 0-.007.882l.08.094.084.073a.75.75 0 0 0 .882.007l.094-.08L12 13.061l2.47 2.47.084.072a.75.75 0 0 0 .882.007l.094-.08.073-.084a.75.75 0 0 0 .007-.882l-.08-.094L13.061 12l2.47-2.47.072-.084a.75.75 0 0 0 .007-.882l-.08-.094-.084-.073.084.073Z" fill="#ed8796"/></svg>

After

Width:  |  Height:  |  Size: 635 B

View file

@ -0,0 +1 @@
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2v6a2 2 0 0 0 2 2h6v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h6Z" fill="#a6da95"/><path d="M13.5 2.5V8a.5.5 0 0 0 .5.5h5.5l-6-6Z" fill="#a6da95"/></svg>

After

Width:  |  Height:  |  Size: 267 B

View file

@ -0,0 +1 @@
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m11.256 13 .238-1.5h1.481l-.237 1.5h-1.482Z" fill="#8aadf4"/><path d="M17.75 2.001a2.25 2.25 0 0 1 2.245 2.096L20 4.25v15.498a2.25 2.25 0 0 1-2.096 2.245l-.154.005H6.25a2.25 2.25 0 0 1-2.245-2.096L4 19.75V4.251a2.25 2.25 0 0 1 2.096-2.245l.154-.005h11.5Zm-5.355 13.16a.75.75 0 1 0 1.482.234l.142-.895h.731a.75.75 0 0 0 0-1.5h-.494l.238-1.5h.756a.75.75 0 0 0 0-1.5h-.519l.162-1.025a.75.75 0 1 0-1.481-.234l-.2 1.259h-1.48l.161-1.025a.75.75 0 1 0-1.481-.234l-.2 1.259H9.25a.75.75 0 1 0 0 1.5h.725L9.738 13H8.75a.75.75 0 1 0 0 1.5h.75l-.105.66a.75.75 0 0 0 1.482.235l.142-.895H12.5l-.105.66Z" fill="#8aadf4"/></svg>

After

Width:  |  Height:  |  Size: 716 B

View file

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>monofile</title>
<title>$FileId</title>
<!--metaTags-->
@ -16,6 +16,12 @@
rel="stylesheet"
href="/static/style/downloads.css"
>
<link
rel="icon"
type="image/svg"
href="/static/assets/icons/file_icon.svg"
>
</head>
<body>
<div id="appContent">

View file

@ -11,8 +11,8 @@
<link
rel="icon"
type="image/png"
href="/static/assets/monofile-circ.png"
type="image/svg"
href="/static/assets/icons/error.svg"
>
<meta

View file

@ -16,8 +16,8 @@
<link
rel="icon"
type="image/png"
href="/static/assets/monofile-circ.png"
type="image/svg"
href="/static/assets/icons/icon_temp.svg"
>
<meta

View file

@ -16,7 +16,6 @@ export interface Account {
salt : string
}
files : string[]
collections : string[]
admin : boolean
defaultFileVisibility : FileVisibility
}
@ -30,7 +29,6 @@ export function create(username:string,pwd:string,admin:boolean=false) {
username: username,
password: password.hash(pwd),
files: [],
collections: [],
admin: admin,
defaultFileVisibility: "public"
}

View file

@ -30,12 +30,12 @@ fileApiRoutes.get("/list", (req,res) => {
if (!acc) return
res.send(JSON.stringify(acc.files.map((e) => {
res.send(acc.files.map((e) => {
return {
...files.getFilePointer(e),
messageids: null,
id:e
}
})))
}))
})