File manager - Edit - /home/opticamezl/www/newok/jsx.zip
Back
PK �X�\��$� � jsx.min.js.gznu �[��� � �VMo�8�ﯰ�� Z�{��E�C�Ͷ����hilӑ)-I�.T��I����� 5�|o8c�mTne�����QC������5��js��"�{ͱ*�F�Z �5RAI�&IZ�M�W�֕F�M��c�~�H�I�\��N��ҬOZ�V*�t(ad�8�p$__.�M���}c�f�|� �����d� ǰ�2�h5(f[�Y�3��{ic����8V�2��힋�Qkx⦋Q �i��6Z�|�m�L��F��tNY��1���0.H8Q��$�r[@���WѬ���3�e��m4k�8B�<J�,����v�����R*���� e?c��.�/ό���f~�Qf����F��MY�|" S"�≫�,WNm�H��� C�!DW=vkfGx��N�JY8��G�gQN��/�1T0���[b{R�[���$}H.��iJ׃�2��<���Q����ʢ��Hj�GB9G-�����r�X ���߿�OQ�j��Z]�㱒���.���ś�͗���J�U�7ͼv��~�-�h̓fu&_7�{п(i3��%�d.J�I�_R�P�J���ҹ\�E�TF�� |=�E�Pf�Մ"�����$M�}��^×�6�`#����x����}�����~��[Z�s��\$�zE�ł+I�h�^e���~c��~�&�%9]��o��ʵ�Y����&�������?��%��9��+O��Ӗ���k��ԤJJP;�_(��Ǵ�<�3�06 �j ��J�w�ɵ�4�`f��_?-�qg<=71����p�|G��c�GTa���U� ��e��x���z�1y }��m�C;^3��}pm�p(3��X\.�;<�/��c��ٞL'�������u�"�GǤR��~x��1P�u,쥳��x{C��L����E��?��y��VS6�4l�q[��]��?����4 PK �X�\����4 4 jsx.min.jsnu �[��� (function(i){typeof exports=="object"&&typeof module=="object"?i(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript"],i):i(CodeMirror)})(function(i){"use strict";function f(r,l,a,s){this.state=r,this.mode=l,this.depth=a,this.prev=s}function d(r){return new f(i.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&d(r.prev))}i.defineMode("jsx",function(r,l){var a=i.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),s=i.getMode(r,l&&l.base||"javascript");function v(e){var n=e.tagName;e.tagName=null;var t=a.indent(e,"","");return e.tagName=n,t}function h(e,n){return n.context.mode==a?k(e,n,n.context):b(e,n,n.context)}function k(e,n,t){if(t.depth==2)return e.match(/^.*?\*\//)?t.depth=1:e.skipToEnd(),"comment";if(e.peek()=="{"){a.skipAttribute(t.state);var u=v(t.state),p=t.state.context;if(p&&e.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?u-=r.indentUnit:t.prev.state.lexical&&(u=t.prev.state.lexical.indented)}else t.depth==1&&(u+=r.indentUnit);return n.context=new f(i.startState(s,u),s,0,n.context),null}if(t.depth==1){if(e.peek()=="<")return a.skipAttribute(t.state),n.context=new f(i.startState(a,v(t.state)),a,0,n.context),null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.depth=2,h(e,n)}var c=a.token(e,t.state),o=e.current(),j;return/\btag\b/.test(c)?/>$/.test(o)?t.state.context?t.depth=0:n.context=n.context.prev:/^</.test(o)&&(t.depth=1):!c&&(j=o.indexOf("{"))>-1&&e.backUp(o.length-j),c}function b(e,n,t){if(e.peek()=="<"&&s.expressionAllowed(e,t.state))return n.context=new f(i.startState(a,s.indent(t.state,"","")),a,0,n.context),s.skipExpression(t.state),null;var u=s.token(e,t.state);if(!u&&t.depth!=null){var p=e.current();p=="{"?t.depth++:p=="}"&&--t.depth==0&&(n.context=n.context.prev)}return u}return{startState:function(){return{context:new f(i.startState(s),s)}},copyState:function(e){return{context:d(e.context)}},token:h,indent:function(e,n,t){return e.context.mode.indent(e.context.state,n,t)},innerMode:function(e){return e.context}}},"xml","javascript"),i.defineMIME("text/jsx","jsx"),i.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}); PK �X�\a#X_q q jsx.jsnu �[��� // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript")) else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], mod) else // Plain browser env mod(CodeMirror) })(function(CodeMirror) { "use strict" // Depth means the amount of open braces in JS context, in XML // context 0 means not in tag, 1 means in tag, and 2 means in tag // and js block comment. function Context(state, mode, depth, prev) { this.state = state; this.mode = mode; this.depth = depth; this.prev = prev } function copyContext(context) { return new Context(CodeMirror.copyState(context.mode, context.state), context.mode, context.depth, context.prev && copyContext(context.prev)) } CodeMirror.defineMode("jsx", function(config, modeConfig) { var xmlMode = CodeMirror.getMode(config, {name: "xml", allowMissing: true, multilineTagIndentPastTag: false, allowMissingTagName: true}) var jsMode = CodeMirror.getMode(config, modeConfig && modeConfig.base || "javascript") function flatXMLIndent(state) { var tagName = state.tagName state.tagName = null var result = xmlMode.indent(state, "", "") state.tagName = tagName return result } function token(stream, state) { if (state.context.mode == xmlMode) return xmlToken(stream, state, state.context) else return jsToken(stream, state, state.context) } function xmlToken(stream, state, cx) { if (cx.depth == 2) { // Inside a JS /* */ comment if (stream.match(/^.*?\*\//)) cx.depth = 1 else stream.skipToEnd() return "comment" } if (stream.peek() == "{") { xmlMode.skipAttribute(cx.state) var indent = flatXMLIndent(cx.state), xmlContext = cx.state.context // If JS starts on same line as tag if (xmlContext && stream.match(/^[^>]*>\s*$/, false)) { while (xmlContext.prev && !xmlContext.startOfLine) xmlContext = xmlContext.prev // If tag starts the line, use XML indentation level if (xmlContext.startOfLine) indent -= config.indentUnit // Else use JS indentation level else if (cx.prev.state.lexical) indent = cx.prev.state.lexical.indented // Else if inside of tag } else if (cx.depth == 1) { indent += config.indentUnit } state.context = new Context(CodeMirror.startState(jsMode, indent), jsMode, 0, state.context) return null } if (cx.depth == 1) { // Inside of tag if (stream.peek() == "<") { // Tag inside of tag xmlMode.skipAttribute(cx.state) state.context = new Context(CodeMirror.startState(xmlMode, flatXMLIndent(cx.state)), xmlMode, 0, state.context) return null } else if (stream.match("//")) { stream.skipToEnd() return "comment" } else if (stream.match("/*")) { cx.depth = 2 return token(stream, state) } } var style = xmlMode.token(stream, cx.state), cur = stream.current(), stop if (/\btag\b/.test(style)) { if (/>$/.test(cur)) { if (cx.state.context) cx.depth = 0 else state.context = state.context.prev } else if (/^</.test(cur)) { cx.depth = 1 } } else if (!style && (stop = cur.indexOf("{")) > -1) { stream.backUp(cur.length - stop) } return style } function jsToken(stream, state, cx) { if (stream.peek() == "<" && jsMode.expressionAllowed(stream, cx.state)) { state.context = new Context(CodeMirror.startState(xmlMode, jsMode.indent(cx.state, "", "")), xmlMode, 0, state.context) jsMode.skipExpression(cx.state) return null } var style = jsMode.token(stream, cx.state) if (!style && cx.depth != null) { var cur = stream.current() if (cur == "{") { cx.depth++ } else if (cur == "}") { if (--cx.depth == 0) state.context = state.context.prev } } return style } return { startState: function() { return {context: new Context(CodeMirror.startState(jsMode), jsMode)} }, copyState: function(state) { return {context: copyContext(state.context)} }, token: token, indent: function(state, textAfter, fullLine) { return state.context.mode.indent(state.context.state, textAfter, fullLine) }, innerMode: function(state) { return state.context } } }, "xml", "javascript") CodeMirror.defineMIME("text/jsx", "jsx") CodeMirror.defineMIME("text/typescript-jsx", {name: "jsx", base: {name: "javascript", typescript: true}}) }); PK �X�\��$� � jsx.min.js.gznu �[��� PK �X�\����4 4 jsx.min.jsnu �[��� PK �X�\a#X_q q � jsx.jsnu �[��� PK � 2"