commit
8ccc2e2758
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 100 100" xml:space="preserve" height="32" width="32" version="1.1" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 32 32"><path d="m16.274 1c-5.674 0-10.274 4.6006-10.274 10.274 0 5.674 10.274 19.726 10.274 19.726s10.274-14.052 10.274-19.726c0-5.6734-4.601-10.274-10.274-10.274zm0 16.027c-3.1775 0-5.7529-2.5754-5.7529-5.7537 0-3.1775 2.5754-5.7522 5.7529-5.7522 3.1782 0 5.7529 2.5747 5.7529 5.7522 0.00074 3.1783-2.5747 5.7537-5.7529 5.7537z" fill="#969696"/></svg>
|
After Width: | Height: | Size: 713 B |
|
@ -12,6 +12,7 @@ OC.MimeTypeList={
|
|||
"application/epub+zip": "text",
|
||||
"application/font-sfnt": "image",
|
||||
"application/font-woff": "image",
|
||||
"application/gpx+xml": "location",
|
||||
"application/illustrator": "image",
|
||||
"application/javascript": "text/code",
|
||||
"application/json": "text/code",
|
||||
|
@ -25,6 +26,9 @@ OC.MimeTypeList={
|
|||
"application/rss+xml": "application/xml",
|
||||
"application/vnd.android.package-archive": "package/x-generic",
|
||||
"application/vnd.lotus-wordpro": "x-office/document",
|
||||
"application/vnd.garmin.tcx+xml": "location",
|
||||
"application/vnd.google-earth.kml+xml": "location",
|
||||
"application/vnd.google-earth.kmz": "location",
|
||||
"application/vnd.ms-excel": "x-office/spreadsheet",
|
||||
"application/vnd.ms-excel.addin.macroEnabled.12": "x-office/spreadsheet",
|
||||
"application/vnd.ms-excel.sheet.binary.macroEnabled.12": "x-office/spreadsheet",
|
||||
|
@ -86,8 +90,8 @@ OC.MimeTypeList={
|
|||
"text/x-c": "text/code",
|
||||
"text/x-c++src": "text/code",
|
||||
"text/x-h": "text/code",
|
||||
"text/x-ldif": "text/code",
|
||||
"text/x-java-source": "text/code",
|
||||
"text/x-ldif": "text/code",
|
||||
"text/x-python": "text/code",
|
||||
"text/x-shellscript": "text/code",
|
||||
"web": "text/code"
|
||||
|
@ -104,6 +108,7 @@ OC.MimeTypeList={
|
|||
"folder-shared",
|
||||
"folder-starred",
|
||||
"image",
|
||||
"location",
|
||||
"package-x-generic",
|
||||
"text",
|
||||
"text-calendar",
|
||||
|
|
|
@ -129,6 +129,17 @@ class RepairMimeTypes implements IRepairStep {
|
|||
$this->updateMimetypes($updatedMimetypes);
|
||||
}
|
||||
|
||||
private function introduceLocationTypes() {
|
||||
$updatedMimetypes = [
|
||||
'gpx' => 'application/gpx+xml',
|
||||
'kml' => 'application/vnd.google-earth.kml+xml',
|
||||
'kmz' => 'application/vnd.google-earth.kmz',
|
||||
'tcx' => 'application/vnd.garmin.tcx+xml',
|
||||
];
|
||||
|
||||
$this->updateMimetypes($updatedMimetypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix mime types
|
||||
*/
|
||||
|
@ -146,5 +157,9 @@ class RepairMimeTypes implements IRepairStep {
|
|||
if (version_compare($ocVersionFromBeforeUpdate, '12.0.0.13', '<') && $this->introduceWindowsProgramTypes()) {
|
||||
$out->info('Fixed windows program mime types');
|
||||
}
|
||||
|
||||
if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.0', '<') && $this->introduceLocationTypes()) {
|
||||
$out->info('Fixed geospatial mime types');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"application/epub+zip": "text",
|
||||
"application/font-sfnt": "image",
|
||||
"application/font-woff": "image",
|
||||
"application/gpx+xml": "location",
|
||||
"application/illustrator": "image",
|
||||
"application/javascript": "text/code",
|
||||
"application/json": "text/code",
|
||||
|
@ -25,6 +26,9 @@
|
|||
"application/rss+xml": "application/xml",
|
||||
"application/vnd.android.package-archive": "package/x-generic",
|
||||
"application/vnd.lotus-wordpro": "x-office/document",
|
||||
"application/vnd.garmin.tcx+xml": "location",
|
||||
"application/vnd.google-earth.kml+xml": "location",
|
||||
"application/vnd.google-earth.kmz": "location",
|
||||
"application/vnd.ms-excel": "x-office/spreadsheet",
|
||||
"application/vnd.ms-excel.addin.macroEnabled.12": "x-office/spreadsheet",
|
||||
"application/vnd.ms-excel.sheet.binary.macroEnabled.12": "x-office/spreadsheet",
|
||||
|
@ -87,6 +91,7 @@
|
|||
"text/x-c++src": "text/code",
|
||||
"text/x-h": "text/code",
|
||||
"text/x-java-source": "text/code",
|
||||
"text/x-ldif": "text/code",
|
||||
"text/x-python": "text/code",
|
||||
"text/x-shellscript": "text/code",
|
||||
"web": "text/code"
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
"flac": ["audio/flac"],
|
||||
"flv": ["video/x-flv"],
|
||||
"gif": ["image/gif"],
|
||||
"gpx": ["application/gpx+xml"],
|
||||
"gz": ["application/x-gzip"],
|
||||
"gzip": ["application/x-gzip"],
|
||||
"h": ["text/x-h"],
|
||||
|
@ -81,6 +82,8 @@
|
|||
"kdc": ["image/x-dcraw"],
|
||||
"key": ["application/x-iwork-keynote-sffkey"],
|
||||
"keynote": ["application/x-iwork-keynote-sffkey"],
|
||||
"kml": ["application/vnd.google-earth.kml+xml"],
|
||||
"kmz": ["application/vnd.google-earth.kmz"],
|
||||
"kra": ["application/x-krita"],
|
||||
"ldif": ["text/x-ldif"],
|
||||
"lwp": ["application/vnd.lotus-wordpro"],
|
||||
|
@ -159,6 +162,7 @@
|
|||
"tar.bz2": ["application/x-bzip2"],
|
||||
"tar.gz": ["application/x-compressed"],
|
||||
"tbz2": ["application/x-bzip2"],
|
||||
"tcx": ["application/vnd.garmin.tcx+xml"],
|
||||
"tex": ["application/x-tex"],
|
||||
"tgz": ["application/x-compressed"],
|
||||
"tiff": ["image/tiff"],
|
||||
|
|
Loading…
Reference in New Issue