mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-12-27 00:41:53 +11:00
Update Message.vue
This commit is contained in:
parent
eb0a1189ce
commit
7954396120
1 changed files with 40 additions and 0 deletions
|
@ -674,6 +674,46 @@ export default {
|
|||
components: {
|
||||
CommsInput
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
fileTypes: {
|
||||
png: "mdi-file-image",
|
||||
jpg: "mdi-file-image",
|
||||
jpeg: "mdi-file-image",
|
||||
gif: "mdi-file-image",
|
||||
mp4: "mdi-file-video",
|
||||
mp3: "mdi-file-music",
|
||||
pdf: "mdi-file-pdf",
|
||||
doc: "mdi-file-word",
|
||||
docx: "mdi-file-word",
|
||||
xls: "mdi-file-excel",
|
||||
xlsx: "mdi-file-excel",
|
||||
ppt: "mdi-file-powerpoint",
|
||||
pptx: "mdi-file-powerpoint",
|
||||
zip: "mdi-file-zip",
|
||||
rar: "mdi-file-zip",
|
||||
txt: "mdi-file-document",
|
||||
csv: "mdi-file-spreadsheet",
|
||||
html: "mdi-file-html",
|
||||
htm: "mdi-file-html",
|
||||
js: "mdi-file-code",
|
||||
json: "mdi-file-code",
|
||||
css: "mdi-file-css",
|
||||
otf: "mdi-file-font",
|
||||
ttf: "mdi-file-font",
|
||||
woff: "mdi-file-font",
|
||||
woff2: "mdi-file-font",
|
||||
otf2: "mdi-file-font",
|
||||
ttf2: "mdi-file-font",
|
||||
eot: "mdi-file-font",
|
||||
svg: "mdi-file-image",
|
||||
ico: "mdi-file-image",
|
||||
webp: "mdi-file-image",
|
||||
other: "mdi-file",
|
||||
xml: "mdi-file-code"
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
friendlySize(size) {
|
||||
if (size < 1024) {
|
||||
|
|
Loading…
Reference in a new issue