You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
13 KiB
1 lines
13 KiB
{"remainingRequest":"/home/lefos/repos/swarmlab-playground-client/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/lefos/repos/swarmlab-playground-client/src/components/docgrep/GrepView.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/lefos/repos/swarmlab-playground-client/src/components/docgrep/GrepView.vue","mtime":1615930840866},{"path":"/home/lefos/repos/swarmlab-playground-client/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/lefos/repos/swarmlab-playground-client/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/home/lefos/repos/swarmlab-playground-client/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/lefos/repos/swarmlab-playground-client/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCB7bWFwU3RhdGUsIG1hcEdldHRlcnMsIG1hcEFjdGlvbnMsZGlzcGF0Y2h9IGZyb20gJ3Z1ZXgnCmltcG9ydCBWdWUgZnJvbSAndnVlJwppbXBvcnQgc3RvcmUgZnJvbSAnQC9zdG9yZS9pbmRleCcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKCgppbXBvcnQgeyBjb2RlbWlycm9yIH0gZnJvbSAndnVlLWNvZGVtaXJyb3InCmltcG9ydCAnY29kZW1pcnJvci9saWIvY29kZW1pcnJvci5jc3MnCmltcG9ydCAnY29kZW1pcnJvci90aGVtZS9uZWF0LmNzcycKICBpbXBvcnQgJ2NvZGVtaXJyb3IvdGhlbWUvcGFyYWlzby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XdDb2RlKSB7CiAgICAgIHRoaXMuY29kZSA9IG5ld0NvZGUKICAgIH0sCiAgICBoYW5kbGVDaGFuZ2UoKSB7CiAgICB9LAogICAgc2V0S2V5bWFwICgpIHsKICAgICAgdGhpcy5jbU9wdGlvbnMua2V5TWFwID0gdGhpcy5zZWxlY3RlZAogICAgfQoKICB9LAogIGNvbXB1dGVkOiB7CiAgICBjb2RlbWlycm9yKCkgewogICAgICByZXR1cm4gdGhpcy4kcmVmcy5teUNtLmNvZGVtaXJyb3IKICAgfQoKCX0sCgltb3VudGVkKCkgewoKCQl0aGlzLiRyb290LiRvbignR1JFUF92aWV3X2RhdGEnLCAodikgPT4gewoJCQl0aGlzLiRuZXh0VGljayhmdW5jdGlvbiAoKSB7CiAgICAgICAgICB0aGlzLmNvZGUgKz0gdgogICAgICAgICAgdGhpcy50cnlDb25zb2xlPXRydWUKCQkJfSkKCQl9KQogICAgdGhpcy4kcmVmcy5teUNtLmNvZGVtaXJyb3Iuc2V0U2l6ZShudWxsLCczNTAnKTsKCX0sCiAgYmVmb3JlRGVzdHJveSAoKSB7CgkJdGhpcy4kcm9vdC4kb2ZmKCdHUkVQX3ZpZXdfZGF0YScpCiB9LAoKCQljcmVhdGVkICgpIHsKCQl9Cn07Cg=="},{"version":3,"sources":["GrepView.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","file":"GrepView.vue","sourceRoot":"src/components/docgrep","sourcesContent":["<template>\n <div>\n\n <b-row no-gutters w-100 h-100 \n v-if=\"showlloedit\"\n >\n <b-col cols=\"12\" sm=\"12\" md=\"12\" >\n\n<hr \n v-if=\"!tryConsole\"\n>\n <div class=\"input-group input-group-sm d-flex justify-content-end\">\n <div class=\"input-group-append\">\n <button type=\"button\"\n round\n class=\"btn btn-outline-warning btn-sm\"\n v-if=\"tryConsole\"\n @click=\"clear()\">\n Clear</button>\n </div>\n </div>\n\n <div class=\"CodeMirrorGrep\" >\n <codemirror\n ref=\"myCm\"\n :value=\"code\"\n :options=\"cmOptions\"\n @cursorActivity=\"onCmCursorActivity\"\n @ready=\"onCmReady\"\n @focus=\"onCmFocus\"\n @input=\"onCmCodeChange\"\n ></codemirror>\n </div>\n\n </b-col>\n </b-row>\n\n\n\n\t</div>\n</template>\n<script>\nimport {mapState, mapGetters, mapActions,dispatch} from 'vuex'\nimport Vue from 'vue'\nimport store from '@/store/index' \n\n\nimport { codemirror } from 'vue-codemirror'\nimport 'codemirror/lib/codemirror.css'\nimport 'codemirror/theme/neat.css'\n import 'codemirror/theme/paraiso-light.css'\nimport'codemirror/addon/selection/active-line.js'\n\nimport'codemirror/addon/hint/show-hint.js'\nimport'codemirror/addon/hint/show-hint.css'\nimport'codemirror/addon/hint/javascript-hint.js'\nimport'codemirror/addon/selection/active-line.js'\nimport'codemirror/addon/scroll/annotatescrollbar.js'\nimport'codemirror/addon/search/matchesonscrollbar.js'\nimport'codemirror/addon/search/searchcursor.js'\nimport'codemirror/addon/search/match-highlighter.js'\n\nimport'codemirror/mode/shell/shell.js'\nimport'codemirror/addon/edit/matchbrackets.js'\nimport'codemirror/addon/comment/comment.js'\nimport'codemirror/addon/dialog/dialog.js'\nimport'codemirror/addon/dialog/dialog.css'\nimport'codemirror/addon/search/searchcursor.js'\nimport'codemirror/addon/search/search.js'\nimport'codemirror/keymap/sublime.js'\nimport'codemirror/keymap/vim.js'\n\nimport'codemirror/addon/fold/foldgutter.css'\nimport'codemirror/addon/fold/brace-fold.js'\nimport'codemirror/addon/fold/comment-fold.js'\nimport'codemirror/addon/fold/foldcode.js'\nimport'codemirror/addon/fold/foldgutter.js'\nimport'codemirror/addon/fold/indent-fold.js'\nimport'codemirror/addon/fold/markdown-fold.js'\nimport'codemirror/addon/fold/xml-fold.js'\nimport 'codemirror/lib/codemirror';\nimport 'codemirror/addon/display/placeholder';\n\nexport default {\n components: {\n\t\t\tcodemirror\n },\n data () {\n return {\n tryConsole:false,\n getinfo:'',\n code: '',\n optionsedit: [\n { text: 'code', value: 'code' },\n { text: 'text', value: 'text' }\n ],\n\t\t searchLLO: [],\n searchLLOactive : false,\n showllo:true,\n showlloedit:true,\n \t\tselected: 'sublime',\n options: [\n { text: 'vim', value: 'vim' },\n { text: 'sublime', value: 'sublime' }\n ],\n optionsmime: [\n { text: 'sh', value: 'bash' },\n { text: 'javascript', value: 'javascript' },\n { text: 'python', value: 'python' },\n { text: 'php', value: 'php' },\n { text: 'sql', value: 'sq;' },\n { text: 'xml', value: 'xml' },\n { text: 'c', value: 'c' }\n ],\n pValidate: false,\n cmOptions: {\n tabSize: 2,\n styleActiveLine: true,\n lineNumbers: true,\n lineSeparator:'\\n',\n line: true,\n foldGutter: true,\n gutters: [\"CodeMirror-linenumbers\", \"CodeMirror-foldgutter\"],\n highlightSelectionMatches: { showToken: /\\w/, annotateScrollbar: true },\n styleSelectedText: true,\n mode: 'shell',\n hintOptions:{\n completeSingle: false\n },\n keyMap: \"sublime\",\n //keyMap: \"vim\",\n matchBrackets: true,\n showCursorWhenSelecting: true,\n indentUnit:this.ADOC_html_code,\n lineWrapping: true,\n //theme: 'neat',\n theme: 'paraiso-light',\n refresh:true,\n readOnly: true,\n autofocus: false,\n extraKeys: { \"Ctrl\": \"autocomplete\" }\n },\n ADOC_html_code:'',\n }\n },\n methods: {\n\n socketconnect () {\n // send to runLLO\n },\n clear () {\n this.tryConsole = false\n this.code = ''\n },\n async getdata () {\n\n },\n\n async showactive(index) {\n this.topwindow(index)\n\t\t},\n onCmReady(cm) {\n cm.on('change', (cm, chg) => {\n }),\n cm.on('keypress', () => {\n cm.showHint({completeSingle:false})\n })\n },\n onCmCursorActivity(a, b, c) {\n },\n onCmFocus(cm) {\n },\n onCmCodeChange(newCode) {\n this.code = newCode\n },\n handleChange() {\n },\n setKeymap () {\n this.cmOptions.keyMap = this.selected\n }\n\n },\n computed: {\n codemirror() {\n return this.$refs.myCm.codemirror\n }\n\n\t},\n\tmounted() {\n\n\t\tthis.$root.$on('GREP_view_data', (v) => {\n\t\t\tthis.$nextTick(function () {\n this.code += v\n this.tryConsole=true\n\t\t\t})\n\t\t})\n this.$refs.myCm.codemirror.setSize(null,'350');\n\t},\n beforeDestroy () {\n\t\tthis.$root.$off('GREP_view_data')\n },\n\n\t\tcreated () {\n\t\t}\n};\n</script>\n\n<style>\n\n</style>\n"]}]}
|