mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	Merge pull request #4278 from Nriver/master
sort mime types alphabetically
This commit is contained in:
		
						commit
						c14ce2c428
					
				@ -3,25 +3,25 @@ import options from "./options.js";
 | 
				
			|||||||
const MIME_TYPES_DICT = [
 | 
					const MIME_TYPES_DICT = [
 | 
				
			||||||
    { default: true, title: "Plain text", mime: "text/plain" },
 | 
					    { default: true, title: "Plain text", mime: "text/plain" },
 | 
				
			||||||
    { title: "APL", mime: "text/apl" },
 | 
					    { title: "APL", mime: "text/apl" },
 | 
				
			||||||
    { title: "PGP", mime: "application/pgp" },
 | 
					 | 
				
			||||||
    { title: "ASN.1", mime: "text/x-ttcn-asn" },
 | 
					    { title: "ASN.1", mime: "text/x-ttcn-asn" },
 | 
				
			||||||
 | 
					    { title: "ASP.NET", mime: "application/x-aspx" },
 | 
				
			||||||
    { title: "Asterisk", mime: "text/x-asterisk" },
 | 
					    { title: "Asterisk", mime: "text/x-asterisk" },
 | 
				
			||||||
    { title: "Brainfuck", mime: "text/x-brainfuck" },
 | 
					    { title: "Brainfuck", mime: "text/x-brainfuck" },
 | 
				
			||||||
    { default: true, title: "C", mime: "text/x-csrc" },
 | 
					    { default: true, title: "C", mime: "text/x-csrc" },
 | 
				
			||||||
    { default: true, title: "C++", mime: "text/x-c++src" },
 | 
					 | 
				
			||||||
    { title: "Cobol", mime: "text/x-cobol" },
 | 
					 | 
				
			||||||
    { default: true, title: "C#", mime: "text/x-csharp" },
 | 
					    { default: true, title: "C#", mime: "text/x-csharp" },
 | 
				
			||||||
 | 
					    { default: true, title: "C++", mime: "text/x-c++src" },
 | 
				
			||||||
    { title: "Clojure", mime: "text/x-clojure" },
 | 
					    { title: "Clojure", mime: "text/x-clojure" },
 | 
				
			||||||
    { title: "ClojureScript", mime: "text/x-clojurescript" },
 | 
					    { title: "ClojureScript", mime: "text/x-clojurescript" },
 | 
				
			||||||
    { title: "Closure Stylesheets (GSS)", mime: "text/x-gss" },
 | 
					    { title: "Closure Stylesheets (GSS)", mime: "text/x-gss" },
 | 
				
			||||||
    { title: "CMake", mime: "text/x-cmake" },
 | 
					    { title: "CMake", mime: "text/x-cmake" },
 | 
				
			||||||
 | 
					    { title: "Cobol", mime: "text/x-cobol" },
 | 
				
			||||||
    { title: "CoffeeScript", mime: "text/coffeescript" },
 | 
					    { title: "CoffeeScript", mime: "text/coffeescript" },
 | 
				
			||||||
    { title: "Common Lisp", mime: "text/x-common-lisp" },
 | 
					    { title: "Common Lisp", mime: "text/x-common-lisp" },
 | 
				
			||||||
    { title: "Cypher", mime: "application/x-cypher-query" },
 | 
					    { title: "CQL", mime: "text/x-cassandra" },
 | 
				
			||||||
    { title: "Cython", mime: "text/x-cython" },
 | 
					 | 
				
			||||||
    { title: "Crystal", mime: "text/x-crystal" },
 | 
					    { title: "Crystal", mime: "text/x-crystal" },
 | 
				
			||||||
    { default: true, title: "CSS", mime: "text/css" },
 | 
					    { default: true, title: "CSS", mime: "text/css" },
 | 
				
			||||||
    { title: "CQL", mime: "text/x-cassandra" },
 | 
					    { title: "Cypher", mime: "application/x-cypher-query" },
 | 
				
			||||||
 | 
					    { title: "Cython", mime: "text/x-cython" },
 | 
				
			||||||
    { title: "D", mime: "text/x-d" },
 | 
					    { title: "D", mime: "text/x-d" },
 | 
				
			||||||
    { title: "Dart", mime: "application/dart" },
 | 
					    { title: "Dart", mime: "application/dart" },
 | 
				
			||||||
    { title: "diff", mime: "text/x-diff" },
 | 
					    { title: "diff", mime: "text/x-diff" },
 | 
				
			||||||
@ -38,11 +38,11 @@ const MIME_TYPES_DICT = [
 | 
				
			|||||||
    { title: "Embedded Ruby", mime: "application/x-erb" },
 | 
					    { title: "Embedded Ruby", mime: "application/x-erb" },
 | 
				
			||||||
    { title: "Erlang", mime: "text/x-erlang" },
 | 
					    { title: "Erlang", mime: "text/x-erlang" },
 | 
				
			||||||
    { title: "Esper", mime: "text/x-esper" },
 | 
					    { title: "Esper", mime: "text/x-esper" },
 | 
				
			||||||
 | 
					    { title: "F#", mime: "text/x-fsharp" },
 | 
				
			||||||
    { title: "Factor", mime: "text/x-factor" },
 | 
					    { title: "Factor", mime: "text/x-factor" },
 | 
				
			||||||
    { title: "FCL", mime: "text/x-fcl" },
 | 
					    { title: "FCL", mime: "text/x-fcl" },
 | 
				
			||||||
    { title: "Forth", mime: "text/x-forth" },
 | 
					    { title: "Forth", mime: "text/x-forth" },
 | 
				
			||||||
    { title: "Fortran", mime: "text/x-fortran" },
 | 
					    { title: "Fortran", mime: "text/x-fortran" },
 | 
				
			||||||
    { title: "F#", mime: "text/x-fsharp" },
 | 
					 | 
				
			||||||
    { title: "Gas", mime: "text/x-gas" },
 | 
					    { title: "Gas", mime: "text/x-gas" },
 | 
				
			||||||
    { title: "Gherkin", mime: "text/x-feature" },
 | 
					    { title: "Gherkin", mime: "text/x-feature" },
 | 
				
			||||||
    { title: "GitHub Flavored Markdown", mime: "text/x-gfm" },
 | 
					    { title: "GitHub Flavored Markdown", mime: "text/x-gfm" },
 | 
				
			||||||
@ -52,33 +52,34 @@ const MIME_TYPES_DICT = [
 | 
				
			|||||||
    { default: true, title: "Haskell", mime: "text/x-haskell" },
 | 
					    { default: true, title: "Haskell", mime: "text/x-haskell" },
 | 
				
			||||||
    { title: "Haskell (Literate)", mime: "text/x-literate-haskell" },
 | 
					    { title: "Haskell (Literate)", mime: "text/x-literate-haskell" },
 | 
				
			||||||
    { title: "Haxe", mime: "text/x-haxe" },
 | 
					    { title: "Haxe", mime: "text/x-haxe" },
 | 
				
			||||||
    { title: "HXML", mime: "text/x-hxml" },
 | 
					 | 
				
			||||||
    { title: "ASP.NET", mime: "application/x-aspx" },
 | 
					 | 
				
			||||||
    { default: true, title: "HTML", mime: "text/html" },
 | 
					    { default: true, title: "HTML", mime: "text/html" },
 | 
				
			||||||
    { default: true, title: "HTTP", mime: "message/http" },
 | 
					    { default: true, title: "HTTP", mime: "message/http" },
 | 
				
			||||||
 | 
					    { title: "HXML", mime: "text/x-hxml" },
 | 
				
			||||||
    { title: "IDL", mime: "text/x-idl" },
 | 
					    { title: "IDL", mime: "text/x-idl" },
 | 
				
			||||||
    { title: "Pug", mime: "text/x-pug" },
 | 
					 | 
				
			||||||
    { default: true, title: "Java", mime: "text/x-java" },
 | 
					    { default: true, title: "Java", mime: "text/x-java" },
 | 
				
			||||||
    { title: "Java Server Pages", mime: "application/x-jsp" },
 | 
					    { title: "Java Server Pages", mime: "application/x-jsp" },
 | 
				
			||||||
    { default: true, title: 'JS frontend', mime: 'application/javascript;env=frontend' },
 | 
					    { title: "Jinja2", mime: "text/jinja2" },
 | 
				
			||||||
    { default: true, title: 'JS backend', mime: 'application/javascript;env=backend' },
 | 
					    { default: true, title: "JS backend", mime: "application/javascript;env=backend" },
 | 
				
			||||||
 | 
					    { default: true, title: "JS frontend", mime: "application/javascript;env=frontend" },
 | 
				
			||||||
    { default: true, title: "JSON", mime: "application/json" },
 | 
					    { default: true, title: "JSON", mime: "application/json" },
 | 
				
			||||||
    { title: "JSON-LD", mime: "application/ld+json" },
 | 
					    { title: "JSON-LD", mime: "application/ld+json" },
 | 
				
			||||||
    { title: "JSX", mime: "text/jsx" },
 | 
					    { title: "JSX", mime: "text/jsx" },
 | 
				
			||||||
    { title: "Jinja2", mime: "text/jinja2" },
 | 
					 | 
				
			||||||
    { title: "Julia", mime: "text/x-julia" },
 | 
					    { title: "Julia", mime: "text/x-julia" },
 | 
				
			||||||
    { default: true, title: "Kotlin", mime: "text/x-kotlin" },
 | 
					    { default: true, title: "Kotlin", mime: "text/x-kotlin" },
 | 
				
			||||||
 | 
					    { title: "LaTeX", mime: "text/x-latex" },
 | 
				
			||||||
    { title: "LESS", mime: "text/x-less" },
 | 
					    { title: "LESS", mime: "text/x-less" },
 | 
				
			||||||
    { title: "LiveScript", mime: "text/x-livescript" },
 | 
					    { title: "LiveScript", mime: "text/x-livescript" },
 | 
				
			||||||
    { title: "Lua", mime: "text/x-lua" },
 | 
					    { title: "Lua", mime: "text/x-lua" },
 | 
				
			||||||
    { default: true, title: "Markdown", mime: "text/x-markdown" },
 | 
					 | 
				
			||||||
    { title: "mIRC", mime: "text/mirc" },
 | 
					 | 
				
			||||||
    { title: "MariaDB SQL", mime: "text/x-mariadb" },
 | 
					    { title: "MariaDB SQL", mime: "text/x-mariadb" },
 | 
				
			||||||
 | 
					    { default: true, title: "Markdown", mime: "text/x-markdown" },
 | 
				
			||||||
    { title: "Mathematica", mime: "text/x-mathematica" },
 | 
					    { title: "Mathematica", mime: "text/x-mathematica" },
 | 
				
			||||||
    { title: "Modelica", mime: "text/x-modelica" },
 | 
					 | 
				
			||||||
    { title: "MUMPS", mime: "text/x-mumps" },
 | 
					 | 
				
			||||||
    { title: "MS SQL", mime: "text/x-mssql" },
 | 
					 | 
				
			||||||
    { title: "mbox", mime: "application/mbox" },
 | 
					    { title: "mbox", mime: "application/mbox" },
 | 
				
			||||||
 | 
					    { title: "mIRC", mime: "text/mirc" },
 | 
				
			||||||
 | 
					    { title: "Modelica", mime: "text/x-modelica" },
 | 
				
			||||||
 | 
					    { title: "MS SQL", mime: "text/x-mssql" },
 | 
				
			||||||
 | 
					    { title: "mscgen", mime: "text/x-mscgen" },
 | 
				
			||||||
 | 
					    { title: "msgenny", mime: "text/x-msgenny" },
 | 
				
			||||||
 | 
					    { title: "MUMPS", mime: "text/x-mumps" },
 | 
				
			||||||
    { title: "MySQL", mime: "text/x-mysql" },
 | 
					    { title: "MySQL", mime: "text/x-mysql" },
 | 
				
			||||||
    { title: "Nginx", mime: "text/x-nginx-conf" },
 | 
					    { title: "Nginx", mime: "text/x-nginx-conf" },
 | 
				
			||||||
    { title: "NSIS", mime: "text/x-nsis" },
 | 
					    { title: "NSIS", mime: "text/x-nsis" },
 | 
				
			||||||
@ -90,6 +91,7 @@ const MIME_TYPES_DICT = [
 | 
				
			|||||||
    { title: "Pascal", mime: "text/x-pascal" },
 | 
					    { title: "Pascal", mime: "text/x-pascal" },
 | 
				
			||||||
    { title: "PEG.js", mime: "null" },
 | 
					    { title: "PEG.js", mime: "null" },
 | 
				
			||||||
    { default: true, title: "Perl", mime: "text/x-perl" },
 | 
					    { default: true, title: "Perl", mime: "text/x-perl" },
 | 
				
			||||||
 | 
					    { title: "PGP", mime: "application/pgp" },
 | 
				
			||||||
    { default: true, title: "PHP", mime: "text/x-php" },
 | 
					    { default: true, title: "PHP", mime: "text/x-php" },
 | 
				
			||||||
    { title: "Pig", mime: "text/x-pig" },
 | 
					    { title: "Pig", mime: "text/x-pig" },
 | 
				
			||||||
    { title: "PLSQL", mime: "text/x-plsql" },
 | 
					    { title: "PLSQL", mime: "text/x-plsql" },
 | 
				
			||||||
@ -97,8 +99,9 @@ const MIME_TYPES_DICT = [
 | 
				
			|||||||
    { title: "PowerShell", mime: "application/x-powershell" },
 | 
					    { title: "PowerShell", mime: "application/x-powershell" },
 | 
				
			||||||
    { title: "Properties files", mime: "text/x-properties" },
 | 
					    { title: "Properties files", mime: "text/x-properties" },
 | 
				
			||||||
    { title: "ProtoBuf", mime: "text/x-protobuf" },
 | 
					    { title: "ProtoBuf", mime: "text/x-protobuf" },
 | 
				
			||||||
    { default: true, title: "Python", mime: "text/x-python" },
 | 
					    { title: "Pug", mime: "text/x-pug" },
 | 
				
			||||||
    { title: "Puppet", mime: "text/x-puppet" },
 | 
					    { title: "Puppet", mime: "text/x-puppet" },
 | 
				
			||||||
 | 
					    { default: true, title: "Python", mime: "text/x-python" },
 | 
				
			||||||
    { title: "Q", mime: "text/x-q" },
 | 
					    { title: "Q", mime: "text/x-q" },
 | 
				
			||||||
    { title: "R", mime: "text/x-rsrc" },
 | 
					    { title: "R", mime: "text/x-rsrc" },
 | 
				
			||||||
    { title: "reStructuredText", mime: "text/x-rst" },
 | 
					    { title: "reStructuredText", mime: "text/x-rst" },
 | 
				
			||||||
@ -116,8 +119,8 @@ const MIME_TYPES_DICT = [
 | 
				
			|||||||
    { title: "Slim", mime: "text/x-slim" },
 | 
					    { title: "Slim", mime: "text/x-slim" },
 | 
				
			||||||
    { title: "Smalltalk", mime: "text/x-stsrc" },
 | 
					    { title: "Smalltalk", mime: "text/x-stsrc" },
 | 
				
			||||||
    { title: "Smarty", mime: "text/x-smarty" },
 | 
					    { title: "Smarty", mime: "text/x-smarty" },
 | 
				
			||||||
    { title: "Solr", mime: "text/x-solr" },
 | 
					 | 
				
			||||||
    { title: "SML", mime: "text/x-sml" },
 | 
					    { title: "SML", mime: "text/x-sml" },
 | 
				
			||||||
 | 
					    { title: "Solr", mime: "text/x-solr" },
 | 
				
			||||||
    { title: "Soy", mime: "text/x-soy" },
 | 
					    { title: "Soy", mime: "text/x-soy" },
 | 
				
			||||||
    { title: "SPARQL", mime: "application/sparql-query" },
 | 
					    { title: "SPARQL", mime: "application/sparql-query" },
 | 
				
			||||||
    { title: "Spreadsheet", mime: "text/x-spreadsheet" },
 | 
					    { title: "Spreadsheet", mime: "text/x-spreadsheet" },
 | 
				
			||||||
@ -125,10 +128,9 @@ const MIME_TYPES_DICT = [
 | 
				
			|||||||
    { title: "SQLite", mime: "text/x-sqlite" },
 | 
					    { title: "SQLite", mime: "text/x-sqlite" },
 | 
				
			||||||
    { default: true, title: "SQLite (Trilium)", mime: "text/x-sqlite;schema=trilium" },
 | 
					    { default: true, title: "SQLite (Trilium)", mime: "text/x-sqlite;schema=trilium" },
 | 
				
			||||||
    { title: "Squirrel", mime: "text/x-squirrel" },
 | 
					    { title: "Squirrel", mime: "text/x-squirrel" },
 | 
				
			||||||
 | 
					    { title: "sTeX", mime: "text/x-stex" },
 | 
				
			||||||
    { title: "Stylus", mime: "text/x-styl" },
 | 
					    { title: "Stylus", mime: "text/x-styl" },
 | 
				
			||||||
    { default: true, title: "Swift", mime: "text/x-swift" },
 | 
					    { default: true, title: "Swift", mime: "text/x-swift" },
 | 
				
			||||||
    { title: "sTeX", mime: "text/x-stex" },
 | 
					 | 
				
			||||||
    { title: "LaTeX", mime: "text/x-latex" },
 | 
					 | 
				
			||||||
    { title: "SystemVerilog", mime: "text/x-systemverilog" },
 | 
					    { title: "SystemVerilog", mime: "text/x-systemverilog" },
 | 
				
			||||||
    { title: "Tcl", mime: "text/x-tcl" },
 | 
					    { title: "Tcl", mime: "text/x-tcl" },
 | 
				
			||||||
    { title: "Textile", mime: "text/x-textile" },
 | 
					    { title: "Textile", mime: "text/x-textile" },
 | 
				
			||||||
@ -140,24 +142,22 @@ const MIME_TYPES_DICT = [
 | 
				
			|||||||
    { title: "TTCN", mime: "text/x-ttcn" },
 | 
					    { title: "TTCN", mime: "text/x-ttcn" },
 | 
				
			||||||
    { title: "TTCN_CFG", mime: "text/x-ttcn-cfg" },
 | 
					    { title: "TTCN_CFG", mime: "text/x-ttcn-cfg" },
 | 
				
			||||||
    { title: "Turtle", mime: "text/turtle" },
 | 
					    { title: "Turtle", mime: "text/turtle" },
 | 
				
			||||||
 | 
					    { title: "Twig", mime: "text/x-twig" },
 | 
				
			||||||
    { title: "TypeScript", mime: "application/typescript" },
 | 
					    { title: "TypeScript", mime: "application/typescript" },
 | 
				
			||||||
    { title: "TypeScript-JSX", mime: "text/typescript-jsx" },
 | 
					    { title: "TypeScript-JSX", mime: "text/typescript-jsx" },
 | 
				
			||||||
    { title: "Twig", mime: "text/x-twig" },
 | 
					 | 
				
			||||||
    { title: "Web IDL", mime: "text/x-webidl" },
 | 
					 | 
				
			||||||
    { title: "VB.NET", mime: "text/x-vb" },
 | 
					    { title: "VB.NET", mime: "text/x-vb" },
 | 
				
			||||||
    { title: "VBScript", mime: "text/vbscript" },
 | 
					    { title: "VBScript", mime: "text/vbscript" },
 | 
				
			||||||
    { title: "Velocity", mime: "text/velocity" },
 | 
					    { title: "Velocity", mime: "text/velocity" },
 | 
				
			||||||
    { title: "Verilog", mime: "text/x-verilog" },
 | 
					    { title: "Verilog", mime: "text/x-verilog" },
 | 
				
			||||||
    { title: "VHDL", mime: "text/x-vhdl" },
 | 
					    { title: "VHDL", mime: "text/x-vhdl" },
 | 
				
			||||||
    { title: "Vue.js Component", mime: "text/x-vue" },
 | 
					    { title: "Vue.js Component", mime: "text/x-vue" },
 | 
				
			||||||
 | 
					    { title: "Web IDL", mime: "text/x-webidl" },
 | 
				
			||||||
    { default: true, title: "XML", mime: "text/xml" },
 | 
					    { default: true, title: "XML", mime: "text/xml" },
 | 
				
			||||||
    { title: "XQuery", mime: "application/xquery" },
 | 
					    { title: "XQuery", mime: "application/xquery" },
 | 
				
			||||||
 | 
					    { title: "xu", mime: "text/x-xu" },
 | 
				
			||||||
    { title: "Yacas", mime: "text/x-yacas" },
 | 
					    { title: "Yacas", mime: "text/x-yacas" },
 | 
				
			||||||
    { default: true, title: "YAML", mime: "text/x-yaml" },
 | 
					    { default: true, title: "YAML", mime: "text/x-yaml" },
 | 
				
			||||||
    { title: "Z80", mime: "text/x-z80" },
 | 
					    { title: "Z80", mime: "text/x-z80" }
 | 
				
			||||||
    { title: "mscgen", mime: "text/x-mscgen" },
 | 
					 | 
				
			||||||
    { title: "xu", mime: "text/x-xu" },
 | 
					 | 
				
			||||||
    { title: "msgenny", mime: "text/x-msgenny" }
 | 
					 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let mimeTypes = null;
 | 
					let mimeTypes = null;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user