Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-10-11 10:03:01 +0300
committerJulius Härtl <jus@bitgrid.net>2021-10-12 16:14:25 +0300
commit0d2e05a0b57723b9f3dddc3ef2ad59c1844d7697 (patch)
treedf2763c4f7f4dcb3cbbfd85a0da88cc0ad0310a8 /core
parent62947867ce6b7408e565f4cab0c788dfac8fb128 (diff)
Add OpenDocument flat mimetypes and x-office/drawing alias
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r--core/img/filetypes/x-office-drawing.svg1
-rw-r--r--core/js/mimetypelist.js7
2 files changed, 8 insertions, 0 deletions
diff --git a/core/img/filetypes/x-office-drawing.svg b/core/img/filetypes/x-office-drawing.svg
new file mode 100644
index 00000000000..352347b6348
--- /dev/null
+++ b/core/img/filetypes/x-office-drawing.svg
@@ -0,0 +1 @@
+<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1c-.28 0-.5.22-.5.5v13c0 .28.22.5.5.5h11c.28 0 .5-.22.5-.5V4l-3-3H2.5zM4 6h2.8v1.2h2.4V6H12v3.2H9.2V8h-.8v3.2h.8V10H12v3.2H9.2V12H7.6V8h-.8v1.2H4V6z" style="fill:#ebc94a;fill-opacity:1"/></svg>
diff --git a/core/js/mimetypelist.js b/core/js/mimetypelist.js
index bd9b2bd69f1..a891aeec95c 100644
--- a/core/js/mimetypelist.js
+++ b/core/js/mimetypelist.js
@@ -55,7 +55,13 @@ OC.MimeTypeList={
"application/vnd.oasis.opendocument.text": "x-office/document",
"application/vnd.oasis.opendocument.text-master": "x-office/document",
"application/vnd.oasis.opendocument.text-template": "x-office/document",
+ "application/vnd.oasis.opendocument.graphics": "x-office/drawing",
+ "application/vnd.oasis.opendocument.graphics-template": "x-office/drawing",
"application/vnd.oasis.opendocument.text-web": "x-office/document",
+ "application/vnd.oasis.opendocument.text-flat-xml": "x-office/document",
+ "application/vnd.oasis.opendocument.spreadsheet-flat-xml": "x-office/spreadsheet",
+ "application/vnd.oasis.opendocument.graphics-flat-xml": "x-office/drawing",
+ "application/vnd.oasis.opendocument.presentation-flat-xml": "x-office/presentation",
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "x-office/presentation",
"application/vnd.openxmlformats-officedocument.presentationml.slideshow": "x-office/presentation",
"application/vnd.openxmlformats-officedocument.presentationml.template": "x-office/presentation",
@@ -129,6 +135,7 @@ OC.MimeTypeList={
"text-vcard",
"video",
"x-office-document",
+ "x-office-drawing",
"x-office-presentation",
"x-office-spreadsheet"
],