mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
icon
This commit is contained in:
parent
12f56d5b51
commit
caa67a8eb6
1
assets/icons/error.svg
Normal file
1
assets/icons/error.svg
Normal 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 |
1
assets/icons/file_icon.svg
Normal file
1
assets/icons/file_icon.svg
Normal 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 |
1
assets/icons/icon_temp.svg
Normal file
1
assets/icons/icon_temp.svg
Normal 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 |
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>monofile</title>
|
<title>$FileId</title>
|
||||||
|
|
||||||
<!--metaTags-->
|
<!--metaTags-->
|
||||||
|
|
||||||
|
@ -16,6 +16,12 @@
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="/static/style/downloads.css"
|
href="/static/style/downloads.css"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/svg"
|
||||||
|
href="/static/assets/icons/file_icon.svg"
|
||||||
|
>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="appContent">
|
<div id="appContent">
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
|
|
||||||
<link
|
<link
|
||||||
rel="icon"
|
rel="icon"
|
||||||
type="image/png"
|
type="image/svg"
|
||||||
href="/static/assets/monofile-circ.png"
|
href="/static/assets/icons/error.svg"
|
||||||
>
|
>
|
||||||
|
|
||||||
<meta
|
<meta
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
|
|
||||||
<link
|
<link
|
||||||
rel="icon"
|
rel="icon"
|
||||||
type="image/png"
|
type="image/svg"
|
||||||
href="/static/assets/monofile-circ.png"
|
href="/static/assets/icons/icon_temp.svg"
|
||||||
>
|
>
|
||||||
|
|
||||||
<meta
|
<meta
|
||||||
|
|
|
@ -16,7 +16,6 @@ export interface Account {
|
||||||
salt : string
|
salt : string
|
||||||
}
|
}
|
||||||
files : string[]
|
files : string[]
|
||||||
collections : string[]
|
|
||||||
admin : boolean
|
admin : boolean
|
||||||
defaultFileVisibility : FileVisibility
|
defaultFileVisibility : FileVisibility
|
||||||
}
|
}
|
||||||
|
@ -30,7 +29,6 @@ export function create(username:string,pwd:string,admin:boolean=false) {
|
||||||
username: username,
|
username: username,
|
||||||
password: password.hash(pwd),
|
password: password.hash(pwd),
|
||||||
files: [],
|
files: [],
|
||||||
collections: [],
|
|
||||||
admin: admin,
|
admin: admin,
|
||||||
defaultFileVisibility: "public"
|
defaultFileVisibility: "public"
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,12 +30,12 @@ fileApiRoutes.get("/list", (req,res) => {
|
||||||
|
|
||||||
if (!acc) return
|
if (!acc) return
|
||||||
|
|
||||||
res.send(JSON.stringify(acc.files.map((e) => {
|
res.send(acc.files.map((e) => {
|
||||||
return {
|
return {
|
||||||
...files.getFilePointer(e),
|
...files.getFilePointer(e),
|
||||||
messageids: null,
|
messageids: null,
|
||||||
id:e
|
id:e
|
||||||
}
|
}
|
||||||
})))
|
}))
|
||||||
|
|
||||||
})
|
})
|
Loading…
Reference in a new issue