]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add mindmap mimetype. 20481/head
authorACTom <i@actom.me>
Tue, 14 Apr 2020 17:19:58 +0000 (01:19 +0800)
committerACTom <i@actom.me>
Tue, 14 Apr 2020 17:19:58 +0000 (01:19 +0800)
Signed-off-by: ACTom <i@actom.me>
core/js/mimetypelist.js
resources/config/mimetypealiases.dist.json
resources/config/mimetypemapping.dist.json

index 760d503f23ea9738401a9da001914ae7988bfb42..bd9b2bd69f1c986282415d62aa25e18676ea317b 100644 (file)
@@ -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",
index 922ef7acf129ba3aa369050046b8e1b27adafed7..332daea197bf13b16fc723a4b3f0d2524e7e791b 100644 (file)
        "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"
 }
 
index 59f0e0a17cbe4b035ccd679d4bb0638a8b6af554..c59dfaefd30ddf119e463bce4012cd949a1ba460 100644 (file)
@@ -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"],
        "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"],
        "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"],