Browse Source

build and update nre version menou 1 - add auto resixe console and font

master
zeus 3 years ago
parent
commit
5ecf9ace4d
  1. 8
      dist/css/app.0ed1a948.css
  2. 8
      dist/css/app.c7e96b2f.css
  3. 2
      dist/index.html
  4. 2
      dist/js/app.935a411b.js
  5. 1
      dist/js/app.935a411b.js.map
  6. 2
      dist/js/app.94d673b4.js
  7. 1
      dist/js/app.94d673b4.js.map
  8. 89
      src/components/mynetwork/AdhocView.vue
  9. 5
      src/components/mynetwork/availablemicroservices.vue

8
dist/css/app.0ed1a948.css

File diff suppressed because one or more lines are too long

8
dist/css/app.c7e96b2f.css

File diff suppressed because one or more lines are too long

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.0ed1a948.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.935a411b.js" rel="preload" as="script"><link href="/js/chunk-vendors.dd2c43c6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.0ed1a948.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.dd2c43c6.js"></script><script src="/js/app.935a411b.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.c7e96b2f.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.94d673b4.js" rel="preload" as="script"><link href="/js/chunk-vendors.dd2c43c6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.c7e96b2f.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.dd2c43c6.js"></script><script src="/js/app.94d673b4.js"></script></body></html>

2
dist/js/app.935a411b.js

File diff suppressed because one or more lines are too long

1
dist/js/app.935a411b.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.94d673b4.js

File diff suppressed because one or more lines are too long

1
dist/js/app.94d673b4.js.map

File diff suppressed because one or more lines are too long

89
src/components/mynetwork/AdhocView.vue

@ -1,12 +1,15 @@
<template> <template>
<card class="card-user" style="max-height:100%"> <card class="card-user" style="max-height:100%">
<div class="author"
<div class="author"
v-if="vieconsoleicon" v-if="vieconsoleicon"
> >
<img class="avatar border-white" src="@/assets/img/code-128.png" alt="..."> <img class="avatar border-white" src="@/assets/img/code-128.png" alt="...">
</div> </div>
<b-container fluid class="bv-example-row"> <b-container fluid class="bv-example-row">
<div class=" col text-center"> <div class="row text-center">
<div class=" col text-center">
<v-wait for="myRunInstance1"> <v-wait for="myRunInstance1">
<template slot="waiting"> <template slot="waiting">
<div> <div>
@ -15,47 +18,73 @@
</div> </div>
</template> </template>
</v-wait> </v-wait>
</div>
</div>
</b-container>
<b-container fluid class="bv-example-row"> <b-container fluid class="bv-example-row">
<div class="row text-center">
<div class="col-12 text-center"> <div class="col-12 text-center">
<b> <span class="text-muted">Your</span> <span class="text-info"> System Console</span></b> <b> <span class="text-muted">Your</span> <span class="text-info"> System Console</span></b>
</div> </div>
</div>
</b-container> </b-container>
<b-container fluid class="bv-example-row"> <b-container fluid class="bv-example-row">
<div class="row text-center">
<div class="col-12"> <div class="col-12">
</div> <br>
</b-container>
<button type="button" <button type="button"
round round
class="btn btn-outline-danger btn-sm" class="btn btn-outline-danger btn-sm float-left"
v-if="extenderror" v-if="extenderror"
@click="runextenderror()"> @click="runextenderror()">
Error: max depth exceeded</button> Error: max depth exceeded</button>
<button type="button" <button type="button"
round round
class="btn btn-outline-warning btn-sm" class="btn btn-outline-warning btn-sm float-left"
v-if="tryConsole" v-if="tryConsole"
@click="clear()"> @click="clear()">
Clear</button> Clear</button>
<button type="button" <button type="button"
round round
class="btn btn-outline-info btn-sm" class="btn btn-outline-info btn-sm float-left"
disabled
>
Console</button>
<button type="button"
round
class="btn btn-outline-info btn-sm"
v-if="cmOptions.keyMap == 'sublime'" v-if="cmOptions.keyMap == 'sublime'"
@click="infoFilter"> @click="infoFilter">
i</button> i</button>
<button
class="btn btn-sm float-center"
round
type="button"
>
&nbsp; &nbsp;
</button>
<button
class="ti-zoom-out btn btn-lg float-right"
round
type="button"
@click="viewminus()">
</button>
<button
class="btn btn-lg text-muted float-right"
round
type="button"
>
<b> {{ fontsize }}</b>px
</button>
<button
class="ti-zoom-in btn btn-lg float-right"
round
type="button"
@click="viewplus()">
</button>
</div> </div>
</div>
<div class="row"> <div class="row text-center">
<div class="col-12"> <div class="col-12">
<div class="codemirror" > <div class="codemirror" >
<codemirror <codemirror
@ -68,8 +97,8 @@
@input="onCmCodeChange" @input="onCmCodeChange"
></codemirror> ></codemirror>
</div> </div>
</div>
</div> </div>
</div>
</b-container> </b-container>
</card> </card>
@ -234,11 +263,22 @@ export default {
autofocus: false, autofocus: false,
extraKeys: { "Ctrl": "autocomplete" } extraKeys: { "Ctrl": "autocomplete" }
}, },
fontsize:11,
ADOC_html:[] ADOC_html:[]
} }
}, },
methods: { methods: {
viewplus(){
this.fontsize++
document.documentElement.style.setProperty('--myCmfontSize', this.fontsize+'px')
this.$refs.myCm.codemirror.refresh()
},
viewminus(){
this.fontsize--
document.documentElement.style.setProperty('--myCmfontSize', this.fontsize+'px')
this.$refs.myCm.codemirror.refresh()
},
socketconnect () { socketconnect () {
// send to runLLO // send to runLLO
this.$root.$emit('SERVER_socket_connect') this.$root.$emit('SERVER_socket_connect')
@ -440,7 +480,7 @@ export default {
}) })
// from microservices not view icon // from microservices not view icon
this.$root.$on('hybrid_console_not_view', (v) => { this.$root.$on('hybrid_console_not_view', (v) => {
//console.log(v) console.log(v)
if(v){ if(v){
this.vieconsoleicon = true this.vieconsoleicon = true
}else if (!v){ }else if (!v){
@ -466,10 +506,19 @@ export default {
<style> <style>
:root {
--myCmfontSize: 11px;
}
.CodeMirror { .CodeMirror {
font-family: monospace; font-size: var(--myCmfontSize);
/*
font-size: 11px; font-size: 11px;
*/
font-family: monospace;
height: 550px; height: 550px;
resize: vertical;
overflow: auto !important;
} }
</style> </style>

5
src/components/mynetwork/availablemicroservices.vue

@ -815,6 +815,7 @@ export default {
var grepju = new RegExp(filterju); var grepju = new RegExp(filterju);
// newVERSION // newVERSION
//if(grepju.test(data.swarmlabname)){ //if(grepju.test(data.swarmlabname)){
/*
if(grepju.test(this.hybridoptions.swarmlabname)){ if(grepju.test(this.hybridoptions.swarmlabname)){
this.viewhybridoptions = false this.viewhybridoptions = false
let value = {} let value = {}
@ -829,7 +830,9 @@ export default {
//Vue.set(this.testactionrowindex, value.index, value.swarmlabname) //Vue.set(this.testactionrowindex, value.index, value.swarmlabname)
// newVERSION // newVERSION
//}else if(grepmicrosoft.test(data.swarmlabname)){ //}else if(grepmicrosoft.test(data.swarmlabname)){
}else if(grepmicrosoft.test(this.hybridoptions.swarmlabname)){ }else
*/
if(grepmicrosoft.test(this.hybridoptions.swarmlabname)){
this.viewhybridoptions = true this.viewhybridoptions = true
this.heavy = true this.heavy = true
this.heavytext = 'Note that this image is somewhat heavy (~2GB) since they embed some of the kernel debug symbols for Microsoft Windows. It can take some time to build the Instance' this.heavytext = 'Note that this image is somewhat heavy (~2GB) since they embed some of the kernel debug symbols for Microsoft Windows. It can take some time to build the Instance'

Loading…
Cancel
Save