diff options
author | ACTom <i@actom.me> | 2020-04-15 01:19:58 +0800 |
---|---|---|
committer | ACTom <i@actom.me> | 2020-04-15 01:19:58 +0800 |
commit | efb3481d413e4d1116c392ab2425a67c25f769da (patch) | |
tree | c1d4a51d956602998729606aa22588033eb2f29e | |
parent | 12e54047a14ffb684e6a305f6e8ef5fc747abf51 (diff) | |
download | nextcloud-server-efb3481d413e4d1116c392ab2425a67c25f769da.tar.gz nextcloud-server-efb3481d413e4d1116c392ab2425a67c25f769da.zip |
Add mindmap mimetype.
Signed-off-by: ACTom <i@actom.me>
-rw-r--r-- | core/js/mimetypelist.js | 6 | ||||
-rw-r--r-- | resources/config/mimetypealiases.dist.json | 5 | ||||
-rw-r--r-- | 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"], |