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/accesslog.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/accesslog.js.map')
-rw-r--r-- | js/highlight/accesslog.js.map | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/highlight/accesslog.js.map b/js/highlight/accesslog.js.map index 836b6521f..c9c8b50e9 100644 --- a/js/highlight/accesslog.js.map +++ b/js/highlight/accesslog.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/accesslog.js"],"names":["module","exports","hljs","HTTP_VERBS","contains","className","begin","relevance","join","end","keywords","illegal"],"mappings":"mFAAAA,EAAOC,QAAU,SAASC,GAExB,IAAIC,EAAa,CACf,MAAO,OAAQ,OAAQ,MAAO,SAAU,UAAW,UAAW,QAAS,SAEzE,MAAO,CACLC,SAAU,CAER,CACEC,UAAW,SACXC,MAAO,4DACPC,UAAU,GAGZ,CACEF,UAAW,SACXC,MAAO,aACPC,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,KAAOH,EAAWK,KAAK,KAAO,IAAKC,IAAK,IAC/CC,SAAUP,EAAWK,KAAK,KAC1BG,QAAS,MACTJ,UAAW,EACXH,SAAU,CAAC,CACTE,MAAO,kBACPC,UAAU,KAId,CACEF,UAAW,SAIXC,MAAO,oBACPK,QAAS,MACTJ,UAAW,GAEb,CACEF,UAAW,SACXC,MAAO,KAAMG,IAAK,KAClBE,QAAS,MACTJ,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,yBAA2BG,IAAK,IACvCE,QAAS,MACTJ,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,IAAKG,IAAK,IACjBE,QAAS,MACTJ,UAAW","file":"highlight/accesslog.js?v=40437e1393fa6aa280de","sourcesContent":["module.exports = function(hljs) {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods\n var HTTP_VERBS = [\n \"GET\", \"POST\", \"HEAD\", \"PUT\", \"DELETE\", \"CONNECT\", \"OPTIONS\", \"PATCH\", \"TRACE\"\n ]\n return {\n contains: [\n // IP\n {\n className: 'number',\n begin: '^\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}(:\\\\d{1,5})?\\\\b',\n relevance:5\n },\n // Other numbers\n {\n className: 'number',\n begin: '\\\\b\\\\d+\\\\b',\n relevance: 0\n },\n // Requests\n {\n className: 'string',\n begin: '\"(' + HTTP_VERBS.join(\"|\") + ')', end: '\"',\n keywords: HTTP_VERBS.join(\" \"),\n illegal: '\\\\n',\n relevance: 5,\n contains: [{\n begin: 'HTTP/[12]\\\\.\\\\d',\n relevance:5\n }]\n },\n // Dates\n {\n className: 'string',\n // dates must have a certain length, this prevents matching\n // simple array accesses a[123] and [] and other common patterns\n // found in other languages\n begin: /\\[\\d[^\\]\\n]{8,}\\]/,\n illegal: '\\\\n',\n relevance: 1\n },\n {\n className: 'string',\n begin: /\\[/, end: /\\]/,\n illegal: '\\\\n',\n relevance: 0\n },\n // User agent / relevance boost\n {\n className: 'string',\n begin: '\"Mozilla/\\\\d\\\\.\\\\d \\\\\\(', end: '\"',\n illegal: '\\\\n',\n relevance: 3\n },\n // Strings\n {\n className: 'string',\n begin: '\"', end: '\"',\n illegal: '\\\\n',\n relevance: 0\n }\n ]\n };\n};"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/accesslog.js"],"names":["module","exports","hljs","HTTP_VERBS","contains","className","begin","relevance","join","end","keywords","illegal"],"mappings":"mFAAAA,EAAOC,QAAU,SAASC,GAExB,IAAIC,EAAa,CACf,MAAO,OAAQ,OAAQ,MAAO,SAAU,UAAW,UAAW,QAAS,SAEzE,MAAO,CACLC,SAAU,CAER,CACEC,UAAW,SACXC,MAAO,4DACPC,UAAU,GAGZ,CACEF,UAAW,SACXC,MAAO,aACPC,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,KAAOH,EAAWK,KAAK,KAAO,IAAKC,IAAK,IAC/CC,SAAUP,EAAWK,KAAK,KAC1BG,QAAS,MACTJ,UAAW,EACXH,SAAU,CAAC,CACTE,MAAO,kBACPC,UAAU,KAId,CACEF,UAAW,SAIXC,MAAO,oBACPK,QAAS,MACTJ,UAAW,GAEb,CACEF,UAAW,SACXC,MAAO,KAAMG,IAAK,KAClBE,QAAS,MACTJ,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,yBAA2BG,IAAK,IACvCE,QAAS,MACTJ,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,IAAKG,IAAK,IACjBE,QAAS,MACTJ,UAAW","file":"highlight/accesslog.js?v=5e6d3e8d33d87ecbf443","sourcesContent":["module.exports = function(hljs) {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods\n var HTTP_VERBS = [\n \"GET\", \"POST\", \"HEAD\", \"PUT\", \"DELETE\", \"CONNECT\", \"OPTIONS\", \"PATCH\", \"TRACE\"\n ]\n return {\n contains: [\n // IP\n {\n className: 'number',\n begin: '^\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}(:\\\\d{1,5})?\\\\b',\n relevance:5\n },\n // Other numbers\n {\n className: 'number',\n begin: '\\\\b\\\\d+\\\\b',\n relevance: 0\n },\n // Requests\n {\n className: 'string',\n begin: '\"(' + HTTP_VERBS.join(\"|\") + ')', end: '\"',\n keywords: HTTP_VERBS.join(\" \"),\n illegal: '\\\\n',\n relevance: 5,\n contains: [{\n begin: 'HTTP/[12]\\\\.\\\\d',\n relevance:5\n }]\n },\n // Dates\n {\n className: 'string',\n // dates must have a certain length, this prevents matching\n // simple array accesses a[123] and [] and other common patterns\n // found in other languages\n begin: /\\[\\d[^\\]\\n]{8,}\\]/,\n illegal: '\\\\n',\n relevance: 1\n },\n {\n className: 'string',\n begin: /\\[/, end: /\\]/,\n illegal: '\\\\n',\n relevance: 0\n },\n // User agent / relevance boost\n {\n className: 'string',\n begin: '\"Mozilla/\\\\d\\\\.\\\\d \\\\\\(', end: '\"',\n illegal: '\\\\n',\n relevance: 3\n },\n // Strings\n {\n className: 'string',\n begin: '\"', end: '\"',\n illegal: '\\\\n',\n relevance: 0\n }\n ]\n };\n};"],"sourceRoot":""}
\ No newline at end of file |