mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
optimized terminal
This commit is contained in:
parent
d8636b76ca
commit
3c56bf19ca
2 changed files with 9 additions and 6 deletions
|
@ -2,7 +2,6 @@
|
|||
<a-card :title="$gettext('Terminal')">
|
||||
<div class="console" id="terminal"></div>
|
||||
</a-card>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -34,6 +33,7 @@ export default {
|
|||
window.removeEventListener('resize', this.fit)
|
||||
clearInterval(this.ping)
|
||||
this.ping = null
|
||||
this.term.close()
|
||||
this.websocket.close()
|
||||
},
|
||||
methods: {
|
||||
|
@ -46,7 +46,10 @@ export default {
|
|||
convertEol: true,
|
||||
fontSize: 14,
|
||||
cursorStyle: 'block',
|
||||
scrollback: 30,
|
||||
scrollback: 1000,
|
||||
theme: {
|
||||
background: 'rgba(3,14,32,0.7)'
|
||||
},
|
||||
})
|
||||
const fitAddon = new FitAddon()
|
||||
term.loadAddon(fitAddon)
|
||||
|
@ -93,6 +96,6 @@ export default {
|
|||
|
||||
<style lang="less" scoped>
|
||||
.console {
|
||||
min-height: 800px;
|
||||
min-height: calc(100vh - 300px);
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":"1.4.0","build_id":4,"total_build":60}
|
||||
{"version":"1.4.0","build_id":5,"total_build":61}
|
Loading…
Add table
Add a link
Reference in a new issue