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/css.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/css.js.map')
-rw-r--r-- | js/highlight/css.js.map | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/highlight/css.js.map b/js/highlight/css.js.map index b5e2a1b7c..3ece17794 100644 --- a/js/highlight/css.js.map +++ b/js/highlight/css.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/css.js"],"names":["module","exports","hljs","RULE","begin","returnBegin","end","endsWithParent","contains","className","excludeEnd","starts","APOS_STRING_MODE","QUOTE_STRING_MODE","CSS_NUMBER_MODE","C_BLOCK_COMMENT_MODE","case_insensitive","illegal","lexemes","keywords","relevance"],"mappings":"oFAAAA,EAAOC,QAAU,SAASC,GACxB,IA0CIC,EAAO,CACTC,MAAO,wCAAyCC,aAAa,EAAMC,IAAK,IAAKC,gBAAgB,EAC7FC,SAAU,CA3BI,CACdC,UAAW,YACXL,MAAO,KAAME,IAAK,IAAKI,YAAY,EACnCC,OAAQ,CACNJ,gBAAgB,EAAMG,YAAY,EAClCF,SAAU,CAtBM,CAClBJ,MAAO,WAAYC,aAAa,EAChCG,SAAU,CACR,CACEC,UAAW,WACXL,MAAO,UAET,CACEA,MAAO,KAAME,IAAK,KAClBE,SAAU,CACRN,EAAKU,iBACLV,EAAKW,kBACLX,EAAKY,oBAYPZ,EAAKY,gBACLZ,EAAKW,kBACLX,EAAKU,iBACLV,EAAKa,qBACL,CACEN,UAAW,SAAUL,MAAO,iBAE9B,CACEK,UAAW,OAAQL,MAAO,mBAiBlC,MAAO,CACLY,kBAAkB,EAClBC,QAAS,YACTT,SAAU,CACRN,EAAKa,qBACL,CACEN,UAAW,cAAeL,MAAO,mBAEnC,CACEK,UAAW,iBAAkBL,MAAO,oBAEtC,CACEK,UAAW,gBACXL,MAAO,KAAME,IAAK,KAClBW,QAAS,IACTT,SAAU,CACRN,EAAKU,iBACLV,EAAKW,oBAGT,CACEJ,UAAW,kBACXL,MAAO,kCAKT,CACEA,MAAO,oBACPc,QAzCc,WA0CdC,SAAU,oBAEZ,CACEf,MAAO,IAAKE,IAAK,OAIjBW,QAAS,IACTZ,aAAa,EACbG,SAAU,CACR,CACEC,UAAW,UACXL,MAnDW,uBAqDb,CACEA,MAAO,KAAMG,gBAAgB,EAAMG,YAAY,EAC/CU,UAAW,EACXD,SA1DS,kBA2DTX,SAAU,CACR,CACEJ,MAAO,WACPK,UAAU,aAEZP,EAAKU,iBACLV,EAAKW,kBACLX,EAAKY,oBAKb,CACEL,UAAW,eAAgBL,MArElB,0BAsETgB,UAAW,GAEb,CACEhB,MAAO,IAAKE,IAAK,IACjBW,QAAS,KACTT,SAAU,CACRN,EAAKa,qBACLZ","file":"highlight/css.js?v=0011daae1ac1efc5ed29","sourcesContent":["module.exports = function(hljs) {\n var FUNCTION_LIKE = {\n begin: /[\\w-]+\\(/, returnBegin: true,\n contains: [\n {\n className: 'built_in',\n begin: /[\\w-]+/\n },\n {\n begin: /\\(/, end: /\\)/,\n contains: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.CSS_NUMBER_MODE,\n ]\n }\n ]\n }\n var ATTRIBUTE = {\n className: 'attribute',\n begin: /\\S/, end: ':', excludeEnd: true,\n starts: {\n endsWithParent: true, excludeEnd: true,\n contains: [\n FUNCTION_LIKE,\n hljs.CSS_NUMBER_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'number', begin: '#[0-9A-Fa-f]+'\n },\n {\n className: 'meta', begin: '!important'\n }\n ]\n }\n }\n var AT_IDENTIFIER = '@[a-z-]+' // @font-face\n var AT_MODIFIERS = \"and or not only\"\n var MEDIA_TYPES = \"all print screen speech\"\n var AT_PROPERTY_RE = /@\\-?\\w[\\w]*(\\-\\w+)*/ // @-webkit-keyframes\n var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';\n var RULE = {\n begin: /(?:[A-Z\\_\\.\\-]+|--[a-zA-Z0-9_-]+)\\s*:/, returnBegin: true, end: ';', endsWithParent: true,\n contains: [\n ATTRIBUTE\n ]\n };\n\n return {\n case_insensitive: true,\n illegal: /[=\\/|'\\$]/,\n contains: [\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'selector-id', begin: /#[A-Za-z0-9_-]+/\n },\n {\n className: 'selector-class', begin: /\\.[A-Za-z0-9_-]+/\n },\n {\n className: 'selector-attr',\n begin: /\\[/, end: /\\]/,\n illegal: '$',\n contains: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n ]\n },\n {\n className: 'selector-pseudo',\n begin: /:(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\"'.]+/\n },\n // matching these here allows us to treat them more like regular CSS\n // rules so everything between the {} gets regular rule highlighting,\n // which is what we want for page and font-face\n {\n begin: '@(page|font-face)',\n lexemes: AT_IDENTIFIER,\n keywords: '@page @font-face'\n },\n {\n begin: '@', end: '[{;]', // at_rule eating first \"{\" is a good thing\n // because it doesn’t let it to be parsed as\n // a rule set but instead drops parser into\n // the default mode which is how it should be.\n illegal: /:/, // break on Less variables @var: ...\n returnBegin: true,\n contains: [\n {\n className: 'keyword',\n begin: AT_PROPERTY_RE\n },\n {\n begin: /\\s/, endsWithParent: true, excludeEnd: true,\n relevance: 0,\n keywords: AT_MODIFIERS,\n contains: [\n {\n begin: /[a-z-]+:/,\n className:\"attribute\"\n },\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.CSS_NUMBER_MODE\n ]\n }\n ]\n },\n {\n className: 'selector-tag', begin: IDENT_RE,\n relevance: 0\n },\n {\n begin: '{', end: '}',\n illegal: /\\S/,\n contains: [\n hljs.C_BLOCK_COMMENT_MODE,\n RULE,\n ]\n }\n ]\n };\n};"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/css.js"],"names":["module","exports","hljs","RULE","begin","returnBegin","end","endsWithParent","contains","className","excludeEnd","starts","APOS_STRING_MODE","QUOTE_STRING_MODE","CSS_NUMBER_MODE","C_BLOCK_COMMENT_MODE","case_insensitive","illegal","lexemes","keywords","relevance"],"mappings":"oFAAAA,EAAOC,QAAU,SAASC,GACxB,IA0CIC,EAAO,CACTC,MAAO,wCAAyCC,aAAa,EAAMC,IAAK,IAAKC,gBAAgB,EAC7FC,SAAU,CA3BI,CACdC,UAAW,YACXL,MAAO,KAAME,IAAK,IAAKI,YAAY,EACnCC,OAAQ,CACNJ,gBAAgB,EAAMG,YAAY,EAClCF,SAAU,CAtBM,CAClBJ,MAAO,WAAYC,aAAa,EAChCG,SAAU,CACR,CACEC,UAAW,WACXL,MAAO,UAET,CACEA,MAAO,KAAME,IAAK,KAClBE,SAAU,CACRN,EAAKU,iBACLV,EAAKW,kBACLX,EAAKY,oBAYPZ,EAAKY,gBACLZ,EAAKW,kBACLX,EAAKU,iBACLV,EAAKa,qBACL,CACEN,UAAW,SAAUL,MAAO,iBAE9B,CACEK,UAAW,OAAQL,MAAO,mBAiBlC,MAAO,CACLY,kBAAkB,EAClBC,QAAS,YACTT,SAAU,CACRN,EAAKa,qBACL,CACEN,UAAW,cAAeL,MAAO,mBAEnC,CACEK,UAAW,iBAAkBL,MAAO,oBAEtC,CACEK,UAAW,gBACXL,MAAO,KAAME,IAAK,KAClBW,QAAS,IACTT,SAAU,CACRN,EAAKU,iBACLV,EAAKW,oBAGT,CACEJ,UAAW,kBACXL,MAAO,kCAKT,CACEA,MAAO,oBACPc,QAzCc,WA0CdC,SAAU,oBAEZ,CACEf,MAAO,IAAKE,IAAK,OAIjBW,QAAS,IACTZ,aAAa,EACbG,SAAU,CACR,CACEC,UAAW,UACXL,MAnDW,uBAqDb,CACEA,MAAO,KAAMG,gBAAgB,EAAMG,YAAY,EAC/CU,UAAW,EACXD,SA1DS,kBA2DTX,SAAU,CACR,CACEJ,MAAO,WACPK,UAAU,aAEZP,EAAKU,iBACLV,EAAKW,kBACLX,EAAKY,oBAKb,CACEL,UAAW,eAAgBL,MArElB,0BAsETgB,UAAW,GAEb,CACEhB,MAAO,IAAKE,IAAK,IACjBW,QAAS,KACTT,SAAU,CACRN,EAAKa,qBACLZ","file":"highlight/css.js?v=57421587b84dc7122b01","sourcesContent":["module.exports = function(hljs) {\n var FUNCTION_LIKE = {\n begin: /[\\w-]+\\(/, returnBegin: true,\n contains: [\n {\n className: 'built_in',\n begin: /[\\w-]+/\n },\n {\n begin: /\\(/, end: /\\)/,\n contains: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.CSS_NUMBER_MODE,\n ]\n }\n ]\n }\n var ATTRIBUTE = {\n className: 'attribute',\n begin: /\\S/, end: ':', excludeEnd: true,\n starts: {\n endsWithParent: true, excludeEnd: true,\n contains: [\n FUNCTION_LIKE,\n hljs.CSS_NUMBER_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'number', begin: '#[0-9A-Fa-f]+'\n },\n {\n className: 'meta', begin: '!important'\n }\n ]\n }\n }\n var AT_IDENTIFIER = '@[a-z-]+' // @font-face\n var AT_MODIFIERS = \"and or not only\"\n var MEDIA_TYPES = \"all print screen speech\"\n var AT_PROPERTY_RE = /@\\-?\\w[\\w]*(\\-\\w+)*/ // @-webkit-keyframes\n var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';\n var RULE = {\n begin: /(?:[A-Z\\_\\.\\-]+|--[a-zA-Z0-9_-]+)\\s*:/, returnBegin: true, end: ';', endsWithParent: true,\n contains: [\n ATTRIBUTE\n ]\n };\n\n return {\n case_insensitive: true,\n illegal: /[=\\/|'\\$]/,\n contains: [\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'selector-id', begin: /#[A-Za-z0-9_-]+/\n },\n {\n className: 'selector-class', begin: /\\.[A-Za-z0-9_-]+/\n },\n {\n className: 'selector-attr',\n begin: /\\[/, end: /\\]/,\n illegal: '$',\n contains: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n ]\n },\n {\n className: 'selector-pseudo',\n begin: /:(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\"'.]+/\n },\n // matching these here allows us to treat them more like regular CSS\n // rules so everything between the {} gets regular rule highlighting,\n // which is what we want for page and font-face\n {\n begin: '@(page|font-face)',\n lexemes: AT_IDENTIFIER,\n keywords: '@page @font-face'\n },\n {\n begin: '@', end: '[{;]', // at_rule eating first \"{\" is a good thing\n // because it doesn’t let it to be parsed as\n // a rule set but instead drops parser into\n // the default mode which is how it should be.\n illegal: /:/, // break on Less variables @var: ...\n returnBegin: true,\n contains: [\n {\n className: 'keyword',\n begin: AT_PROPERTY_RE\n },\n {\n begin: /\\s/, endsWithParent: true, excludeEnd: true,\n relevance: 0,\n keywords: AT_MODIFIERS,\n contains: [\n {\n begin: /[a-z-]+:/,\n className:\"attribute\"\n },\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.CSS_NUMBER_MODE\n ]\n }\n ]\n },\n {\n className: 'selector-tag', begin: IDENT_RE,\n relevance: 0\n },\n {\n begin: '{', end: '}',\n illegal: /\\S/,\n contains: [\n hljs.C_BLOCK_COMMENT_MODE,\n RULE,\n ]\n }\n ]\n };\n};"],"sourceRoot":""}
\ No newline at end of file |