Compare commits
4 Commits
f169e4f0de
...
d4e536e8ee
| Author | SHA1 | Date |
|---|---|---|
|
|
d4e536e8ee | |
|
|
090863bcd3 | |
|
|
b50e6c150b | |
|
|
2c6a69b3e6 |
|
|
@ -3,7 +3,7 @@ type: docker
|
||||||
name: flowable-engine-web
|
name: flowable-engine-web
|
||||||
steps:
|
steps:
|
||||||
- name: build-package-vue
|
- name: build-package-vue
|
||||||
image: node:14.20
|
image: node:14.17.3
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /drone/src/flowable-engine-web/node_modules
|
path: /drone/src/flowable-engine-web/node_modules
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Vue.prototype.$axios = axios;
|
||||||
|
|
||||||
export function getBaseUrl(){
|
export function getBaseUrl(){
|
||||||
return "http://gateway.mytwins.top"
|
return "http://gateway.mytwins.top"
|
||||||
// return "http://192.168.101.7:8000"
|
// return "http://192.168.101.8:8000"
|
||||||
// return "http://localhost:8000"
|
// return "http://localhost:8000"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,35 +2,23 @@
|
||||||
<codemirror ref="codeEdit"
|
<codemirror ref="codeEdit"
|
||||||
:options="cmOptions"
|
:options="cmOptions"
|
||||||
v-model="_value"
|
v-model="_value"
|
||||||
@input="inputChange"
|
|
||||||
class="code"/>
|
class="code"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { codemirror } from 'vue-codemirror'
|
import { codemirror } from 'vue-codemirror'
|
||||||
// 引入主题 可以从 codemirror/theme/ 下引入多个
|
// 引入主题 可以从 codemirror/theme/ 下引入多个
|
||||||
import "vue-codemirror/node_modules/codemirror/lib/codemirror.css";
|
import "codemirror/lib/codemirror.css";
|
||||||
import 'vue-codemirror/node_modules/codemirror/theme/idea.css'
|
import 'codemirror/theme/idea.css'
|
||||||
import 'vue-codemirror/node_modules/codemirror/theme/duotone-dark.css'
|
import 'codemirror/theme/duotone-dark.css'
|
||||||
// 引入语言模式 可以从 codemirror/mode/ 下引入多个
|
// 引入语言模式 可以从 codemirror/mode/ 下引入多个
|
||||||
import "vue-codemirror/node_modules/codemirror/mode/javascript/javascript"; // 代码高亮必须引入
|
import "codemirror/mode/javascript/javascript"; // 代码高亮必须引入
|
||||||
import "vue-codemirror/node_modules/codemirror/mode/sql/sql"; // 代码高亮必须引入
|
|
||||||
//代码补全
|
//代码补全
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/hint/javascript-hint.js';
|
import 'codemirror/addon/hint/javascript-hint.js';
|
||||||
// import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.css';
|
// import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.css';
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.js';
|
import 'codemirror/addon/hint/show-hint.js';
|
||||||
|
import "codemirror/keymap/sublime.js"
|
||||||
|
|
||||||
// 代码段折叠功能
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/foldcode'
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/foldgutter'
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/foldgutter.css'
|
|
||||||
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/brace-fold'
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/comment-fold'
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/xml-fold.js';
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/indent-fold.js';
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/markdown-fold.js';
|
|
||||||
import 'vue-codemirror/node_modules/codemirror/addon/fold/comment-fold.js';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CodeEdit",
|
name: "CodeEdit",
|
||||||
|
|
@ -61,6 +49,7 @@ export default {
|
||||||
// 当匹配只有一项的时候是否自动补全
|
// 当匹配只有一项的时候是否自动补全
|
||||||
completeSingle: false
|
completeSingle: false
|
||||||
},
|
},
|
||||||
|
keyMap: "sublime",
|
||||||
foldGutter: true, // 支持折叠
|
foldGutter: true, // 支持折叠
|
||||||
extraKeys: { 'Ctrl': 'autocomplete' }, // 可以用于为编辑器指定额外的键绑定,以及keyMap定义的键绑定
|
extraKeys: { 'Ctrl': 'autocomplete' }, // 可以用于为编辑器指定额外的键绑定,以及keyMap定义的键绑定
|
||||||
gutters: ['CodeMirror-linenumbers', "lock", "warn"],
|
gutters: ['CodeMirror-linenumbers', "lock", "warn"],
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,20 @@ import Ellipsis from '@/components/common/Ellipsis'
|
||||||
import WDialog from '@/components/common/WDialog'
|
import WDialog from '@/components/common/WDialog'
|
||||||
import Tip from '@/components/common/Tip'
|
import Tip from '@/components/common/Tip'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Vue.use(ElementUI);
|
Vue.use(ElementUI);
|
||||||
Vue.use(AvatarEllipsis);
|
Vue.use(AvatarEllipsis);
|
||||||
Vue.use(Ellipsis);
|
Vue.use(Ellipsis);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue