From efb3481d413e4d1116c392ab2425a67c25f769da Mon Sep 17 00:00:00 2001 From: ACTom Date: Wed, 15 Apr 2020 01:19:58 +0800 Subject: [PATCH] Add mindmap mimetype. Signed-off-by: ACTom --- core/js/mimetypelist.js | 6 +++++- resources/config/mimetypealiases.dist.json | 5 ++++- resources/config/mimetypemapping.dist.json | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/core/js/mimetypelist.js b/core/js/mimetypelist.js index 760d503f23e..bd9b2bd69f1 100644 --- a/core/js/mimetypelist.js +++ b/core/js/mimetypelist.js @@ -101,7 +101,10 @@ OC.MimeTypeList={ "text/x-python": "text/code", "text/x-shellscript": "text/code", "web": "text/code", - "application/internet-shortcut": "link" + "application/internet-shortcut": "link", + "application/km": "mindmap", + "application/x-freemind": "mindmap", + "application/vnd.xmind.workbook": "mindmap" }, files: [ "application", @@ -118,6 +121,7 @@ OC.MimeTypeList={ "image", "link", "location", + "mindmap", "package-x-generic", "text", "text-calendar", diff --git a/resources/config/mimetypealiases.dist.json b/resources/config/mimetypealiases.dist.json index 922ef7acf12..332daea197b 100644 --- a/resources/config/mimetypealiases.dist.json +++ b/resources/config/mimetypealiases.dist.json @@ -101,6 +101,9 @@ "text/x-python": "text/code", "text/x-shellscript": "text/code", "web": "text/code", - "application/internet-shortcut": "link" + "application/internet-shortcut": "link", + "application/km": "mindmap", + "application/x-freemind": "mindmap", + "application/vnd.xmind.workbook": "mindmap" } diff --git a/resources/config/mimetypemapping.dist.json b/resources/config/mimetypemapping.dist.json index 59f0e0a17cb..c59dfaefd30 100644 --- a/resources/config/mimetypemapping.dist.json +++ b/resources/config/mimetypemapping.dist.json @@ -85,6 +85,7 @@ "kdc": ["image/x-dcraw"], "key": ["application/x-iwork-keynote-sffkey"], "keynote": ["application/x-iwork-keynote-sffkey"], + "km": ["application/km"], "kml": ["application/vnd.google-earth.kml+xml"], "kmz": ["application/vnd.google-earth.kmz"], "kra": ["application/x-krita"], @@ -104,6 +105,7 @@ "mkd": ["text/markdown"], "mef": ["image/x-dcraw"], "mkv": ["video/x-matroska"], + "mm": ["application/x-freemind"], "mobi": ["application/x-mobipocket-ebook"], "mov": ["video/quicktime"], "mp3": ["audio/mpeg"], @@ -201,6 +203,7 @@ "xlt": ["application/vnd.ms-excel"], "xltm": ["application/vnd.ms-excel.template.macroEnabled.12"], "xltx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.template"], + "xmind": ["application/vnd.xmind.workbook"], "xml": ["application/xml", "text/plain"], "xrf": ["image/x-dcraw"], "yaml": ["application/yaml", "text/plain"],