今天分享一个用Vue写的网页端终端插件,可以在web页面模拟原生命令行终端实现一些高级的操作,简单易上手,文档写的很详细 插件地址:https://github.com/tzfun/vue-web-terminalnpm地址:https://www.npmjs.com/package/vue-web
vue-web-terminal是一个基于Vue.js的Web终端组件,通常用于提供命令行界面(CLI)功能,使用户能够通过Web浏览器与服务器进行交互。它可以用于多种场景,如远程服务器管理、实时日志查看、在线编程环境等。 2. 搭建前端Vue项目,并集成vue-web-terminal组件 首先,确保你已经安装了Vue CLI,用于快速搭建Vue项目。
我使用的是2.1.3版本,我是将demo中的LocalTerminal.vue文件拿出来使用了,但是界面显示就是这样的。 tzfun commentedon Mar 15, 2023 tzfun tzfun commentedon Mar 15, 2023 tzfun littlepoi commentedon Mar 15, 2023 littlepoi 然后,我按照git上的文档创建demo,只有2.0.8版本可以正常使用。之后的版本都会出现...
let _this=this//建立连接对象let sockUrl ='ws://127.0.0.1:8086/web-terminal'let socket=newWebSocket(sockUrl)//获取STOMP子协议的客户端对象_this.stompClient =Stomp.over(socket)//向服务器发起websocket连接this.stompClient.connect({}, (res) =>{ _this.initXterm() _this.stompClient.subscribe('...
tzfun / vue-web-terminal Public Notifications Fork 35 Star 279 Code Issues Pull requests Discussions Actions Projects Security Insights New issue 官网使用vitepress改造 #24 Closed birdmanmandbir opened this issue Dec 20, 2022· 2 comments ...
浅析如何使用Vue + Xterm.js + SpringBoot + Websocket / Stomp + JSch 实现一个 web terminal 网页版的终端工具,先看下具体效果:相当于就是一个网页版的Xshell工具,操作起来跟Xshell操作一样。前端主要使用Vue+Xterm+Websocket/Stomp,后端主要使用SpringBoot+Websocket