Skip to content

Commit

Permalink
v0.0.1 基础版本
Browse files Browse the repository at this point in the history
  • Loading branch information
何全 committed Aug 1, 2019
1 parent c00494e commit 535f529
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
go-webssh.exe
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ func NewSshClient() (*ssh.Client, error) {
}

```
> go install

> go run main.go
```shell script

go build main.go
go run main.go

```

## 前端
> 我测试的时候用得是 vue,你可以放进你们项目里面。在web/vue/index.vue里面,记得修改32行的 后端地址
Expand Down
6 changes: 2 additions & 4 deletions web/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title> webssh 例子</title>
<title> go webssh 例子</title>


<link href="/static/css/xterm.min.css" rel="stylesheet" type="text/css"/>
Expand All @@ -14,9 +14,7 @@
.terminal {
border: #000 solid 5px;
font-family: cursive;
{# font-family: Arial, Helvetica, Tahoma ,"Monaco", "DejaVu Sans Mono", "Liberation Mono", sans-serif;#}{# font-family: Tahoma, Helvetica, Arial, sans-serif;#}{# font-family: "\5B8B\4F53","","Monaco", "DejaVu Sans Mono", "Liberation Mono", "Microsoft YaHei", monospace;#} font-size: 15px;
{# color: #f0f0f0;#} background: #000;
{# width: 893px;#}{# height: 550px;#} box-shadow: rgba(0, 0, 0, 0.8) 2px 2px 20px;
font-size: 15px;
}

.reverse-video {
Expand Down

0 comments on commit 535f529

Please sign in to comment.