diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-26 17:06:11 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-04-20 16:06:47 +0300 |
commit | 1061537667fc37e4a0c0500920cc680fe4af92af (patch) | |
tree | 71e828cb15d9e6cd516fa0c3fc1fc9ed87ccf2dd /js/highlight/properties.js.map | |
parent | edbb47d0ff845b1fae5edcf81d2e15890609c1e3 (diff) |
Enable Text to be used by Viewer outside Files app
Since Nextcloud 18.0.4 the Files app triggers the "LoadViewer" event, so
that event can be used to register Text with Viewer instead of doing it
through the "OCA\Files::loadAdditionalScripts" event.
Besides being more correct for the Files app it also makes possible to
use Text when opening files through Viewer in other apps, like Talk.
Note, however, that in public share pages Text is still opened using the
fallback actions instead of through Viewer, as Viewer currently does not
provide the share token of the public shared folder that contains the
file to be opened.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'js/highlight/properties.js.map')
-rw-r--r-- | js/highlight/properties.js.map | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/highlight/properties.js.map b/js/highlight/properties.js.map index 9467c886b..0e0c2cfcb 100644 --- a/js/highlight/properties.js.map +++ b/js/highlight/properties.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/properties.js"],"names":["module","exports","hljs","WS0","DELIM","KEY_OTHER","DELIM_AND_VALUE","end","relevance","starts","className","contains","begin","case_insensitive","illegal","COMMENT","returnBegin","endsParent"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GAGxB,IAAIC,EAAM,aAGNC,EAAQ,IAAMD,EAAI,OAAOA,EAAjB,eAERE,EAAY,+BAEZC,EAAkB,CAEdC,IAAKH,EACLI,UAAW,EACXC,OAAQ,CAENC,UAAW,SACXH,IAAK,IACLC,UAAW,EACXG,SAAU,CACR,CAAEC,MAAO,cAKrB,MAAO,CACLC,kBAAkB,EAClBC,QAAS,KACTH,SAAU,CACRT,EAAKa,QAAQ,YAAa,KAG1B,CACEH,MA1Ba,kCA0BSR,EACtBY,aAAa,EACbL,SAAU,CACR,CACED,UAAW,OACXE,MA/BS,kCAgCTK,YAAY,EACZT,UAAW,IAGfC,OAAQH,GAGV,CACEM,MAAOP,EAAYD,EACnBY,aAAa,EACbR,UAAW,EACXG,SAAU,CACR,CACED,UAAW,OACXE,MAAOP,EACPY,YAAY,EACZT,UAAW,IAGfC,OAAQH,GAGV,CACEI,UAAW,OACXF,UAAW,EACXI,MAAOP,EAAYF,EAAM","file":"highlight/properties.js?v=330bbf4162e6db5ca665","sourcesContent":["module.exports = function(hljs) {\n\n // whitespaces: space, tab, formfeed\n var WS0 = '[ \\\\t\\\\f]*';\n var WS1 = '[ \\\\t\\\\f]+';\n // delimiter\n var DELIM = '(' + WS0+'[:=]'+WS0+ '|' + WS1 + ')';\n var KEY_ALPHANUM = '([^\\\\\\\\\\\\W:= \\\\t\\\\f\\\\n]|\\\\\\\\.)+';\n var KEY_OTHER = '([^\\\\\\\\:= \\\\t\\\\f\\\\n]|\\\\\\\\.)+';\n\n var DELIM_AND_VALUE = {\n // skip DELIM\n end: DELIM,\n relevance: 0,\n starts: {\n // value: everything until end of line (again, taking into account backslashes)\n className: 'string',\n end: /$/,\n relevance: 0,\n contains: [\n { begin: '\\\\\\\\\\\\n' }\n ]\n }\n };\n\n return {\n case_insensitive: true,\n illegal: /\\S/,\n contains: [\n hljs.COMMENT('^\\\\s*[!#]', '$'),\n // key: everything until whitespace or = or : (taking into account backslashes)\n // case of a \"normal\" key\n {\n begin: KEY_ALPHANUM + DELIM,\n returnBegin: true,\n contains: [\n {\n className: 'attr',\n begin: KEY_ALPHANUM,\n endsParent: true,\n relevance: 0\n }\n ],\n starts: DELIM_AND_VALUE\n },\n // case of key containing non-alphanumeric chars => relevance = 0\n {\n begin: KEY_OTHER + DELIM,\n returnBegin: true,\n relevance: 0,\n contains: [\n {\n className: 'meta',\n begin: KEY_OTHER,\n endsParent: true,\n relevance: 0\n }\n ],\n starts: DELIM_AND_VALUE\n },\n // case of an empty key\n {\n className: 'attr',\n relevance: 0,\n begin: KEY_OTHER + WS0 + '$'\n }\n ]\n };\n};"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/properties.js"],"names":["module","exports","hljs","WS0","DELIM","KEY_OTHER","DELIM_AND_VALUE","end","relevance","starts","className","contains","begin","case_insensitive","illegal","COMMENT","returnBegin","endsParent"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GAGxB,IAAIC,EAAM,aAGNC,EAAQ,IAAMD,EAAI,OAAOA,EAAjB,eAERE,EAAY,+BAEZC,EAAkB,CAEdC,IAAKH,EACLI,UAAW,EACXC,OAAQ,CAENC,UAAW,SACXH,IAAK,IACLC,UAAW,EACXG,SAAU,CACR,CAAEC,MAAO,cAKrB,MAAO,CACLC,kBAAkB,EAClBC,QAAS,KACTH,SAAU,CACRT,EAAKa,QAAQ,YAAa,KAG1B,CACEH,MA1Ba,kCA0BSR,EACtBY,aAAa,EACbL,SAAU,CACR,CACED,UAAW,OACXE,MA/BS,kCAgCTK,YAAY,EACZT,UAAW,IAGfC,OAAQH,GAGV,CACEM,MAAOP,EAAYD,EACnBY,aAAa,EACbR,UAAW,EACXG,SAAU,CACR,CACED,UAAW,OACXE,MAAOP,EACPY,YAAY,EACZT,UAAW,IAGfC,OAAQH,GAGV,CACEI,UAAW,OACXF,UAAW,EACXI,MAAOP,EAAYF,EAAM","file":"highlight/properties.js?v=b9f3145df9d903e1a709","sourcesContent":["module.exports = function(hljs) {\n\n // whitespaces: space, tab, formfeed\n var WS0 = '[ \\\\t\\\\f]*';\n var WS1 = '[ \\\\t\\\\f]+';\n // delimiter\n var DELIM = '(' + WS0+'[:=]'+WS0+ '|' + WS1 + ')';\n var KEY_ALPHANUM = '([^\\\\\\\\\\\\W:= \\\\t\\\\f\\\\n]|\\\\\\\\.)+';\n var KEY_OTHER = '([^\\\\\\\\:= \\\\t\\\\f\\\\n]|\\\\\\\\.)+';\n\n var DELIM_AND_VALUE = {\n // skip DELIM\n end: DELIM,\n relevance: 0,\n starts: {\n // value: everything until end of line (again, taking into account backslashes)\n className: 'string',\n end: /$/,\n relevance: 0,\n contains: [\n { begin: '\\\\\\\\\\\\n' }\n ]\n }\n };\n\n return {\n case_insensitive: true,\n illegal: /\\S/,\n contains: [\n hljs.COMMENT('^\\\\s*[!#]', '$'),\n // key: everything until whitespace or = or : (taking into account backslashes)\n // case of a \"normal\" key\n {\n begin: KEY_ALPHANUM + DELIM,\n returnBegin: true,\n contains: [\n {\n className: 'attr',\n begin: KEY_ALPHANUM,\n endsParent: true,\n relevance: 0\n }\n ],\n starts: DELIM_AND_VALUE\n },\n // case of key containing non-alphanumeric chars => relevance = 0\n {\n begin: KEY_OTHER + DELIM,\n returnBegin: true,\n relevance: 0,\n contains: [\n {\n className: 'meta',\n begin: KEY_OTHER,\n endsParent: true,\n relevance: 0\n }\n ],\n starts: DELIM_AND_VALUE\n },\n // case of an empty key\n {\n className: 'attr',\n relevance: 0,\n begin: KEY_OTHER + WS0 + '$'\n }\n ]\n };\n};"],"sourceRoot":""}
\ No newline at end of file |