Commit Graph

737 Commits

Author SHA1 Message Date
Jianhui Zhao 978d87ebc1 feat: support build statically
Use `modernc.org/sqlite` implemented in pure go,
so we can building with `CGO_ENABLED=0`.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-05-03 00:26:34 +08:00
dependabot[bot] 63c9984648 build(deps): bump async from 2.6.3 to 2.6.4 in /ui (#106)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 19:46:42 +08:00
dependabot[bot] 39490afb8d build(deps): bump minimist from 1.2.5 to 1.2.6 in /ui (#104)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 16:14:16 +08:00
dependabot[bot] ac76421fad build(deps): bump url-parse from 1.5.3 to 1.5.10 in /ui (#103)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 16:14:06 +08:00
dependabot[bot] e547ea99de build(deps): bump follow-redirects from 1.14.4 to 1.14.8 in /ui (#101)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 16:13:56 +08:00
Jianhui Zhao 87ac722304 fix: panic: send on closed channel
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-04-12 17:25:37 +08:00
Jianhui Zhao 03b976a9d1 chore: fix code style
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-04-12 17:24:17 +08:00
docooler 4a55679095 perf: force use tls 1.1 #99 2021-12-22 17:12:01 +08:00
linG 18ecdb50ef code fs, _ := fs.Sub(staticFs, ui/dist) file directory not exist (#98)
* update `html` to `ui`

* add `node` version

* fixed `fs, _ := fs.Sub(staticFs, ui/dist)` used file directory not exist at build time
2021-12-17 14:22:51 +08:00
linG 21d3f4748f update html to ui and add node version (#97)
* update `html` to `ui`

* add `node` version
2021-12-16 12:22:11 +08:00
Jianhui Zhao 80c8a0868d fix: ui: A abnormity caused by click 'OK' when no file selected.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-12-15 09:05:21 +00:00
Jianhui Zhao 56d8e3365e feat: ui: clear last selected file on upload file
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-12-15 08:50:35 +00:00
Jianhui Zhao 43ed146e44 fix: deadlock caused by sending keepalive frame
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-12-15 08:23:08 +00:00
Jianhui Zhao 0e7632d113 perf: verify message length for msgTypeRegister
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-10-12 06:12:55 +00:00
Jianhui Zhao 79f88f5671 chore: remove redundant code
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-10-12 04:14:21 +00:00
Jianhui Zhao 21a1a7081b feat: it's configurable whether log caller
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-27 23:43:04 +08:00
Jianhui Zhao cc5e8b7896 fix: panic: send on closed channel
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-22 11:58:41 +00:00
Jianhui Zhao 45486898f8 chore: bump version 4.0.0
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-22 09:36:49 +00:00
Jianhui Zhao de28788e42 fix: panic: send on closed channel
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-22 05:47:30 +00:00
Jianhui Zhao 289f4a1979 perf: ui: rewrite with view-design and fix some bug
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-22 03:27:20 +00:00
Jianhui Zhao 342bd9d37e chore: improve code
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-20 00:00:09 +08:00
Jianhui Zhao 33ed98e253 perf: improve http proxy
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-19 23:40:09 +08:00
Jianhui Zhao 9141dd3ab3 perf: Write file data to local while transferring
Before, the download was started after all file data were sent from the device to the browser.
Now, the download starts when the file data begins to transfer.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-19 03:27:32 +08:00
Jianhui Zhao 6f4b25159c perf: Use flow control
For more details please refer to: https://xtermjs.org/docs/guides/flowcontrol/

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-17 01:39:37 +08:00
Jianhui Zhao e26337f3ea chore: improve code
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-16 11:53:15 +00:00
Jianhui Zhao a690e3a54a feat: upload/download file support per tty
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-16 10:44:47 +00:00
Jianhui Zhao d00831af35 perf: improve code
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-16 16:56:09 +08:00
Jianhui Zhao 80885c6165 docs: update
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-15 14:28:49 +00:00
Jianhui Zhao a58a798090 chore: database source default to "sqlite3://rttys.db"
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-15 14:24:47 +00:00
Jianhui Zhao c9eb0af81c ci: only build linux amd64
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-15 14:21:19 +00:00
Jianhui Zhao 59b1d337da refactor: Match the protocol version between rtty and rttys
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-15 08:31:47 +00:00
Jianhui Zhao fa2cbd14b1 refactor: change the login process to improve stability
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-15 06:46:54 +00:00
Jianhui Zhao b860073afc chore: bump version 3.7.0
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-15 06:21:17 +00:00
Jianhui Zhao 2291340776 perf: gzip ui asserts
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-14 16:01:55 +00:00
Jianhui Zhao 29a925d4a9 chore: improve code
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-11 02:13:32 +08:00
Jianhui Zhao f7813ce574 perf: improve write message to device
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-09 15:13:23 +00:00
Jianhui Zhao 86ad5e5a1b fix: Msgf call has arguments but no formatting directives
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-09 15:06:08 +00:00
Jianhui Zhao 54359e99e0 chore: improve code style
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-09 14:47:22 +00:00
Jianhui Zhao 2fc4c7796b chore: improve code
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 12:26:20 +00:00
Jianhui Zhao 187b9e36ad chore: update all go modules to latest
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 11:52:41 +00:00
Jianhui Zhao 1541bdc9e6 chore: use go 1.17
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 11:43:42 +00:00
Jianhui Zhao d18dfb16ab chore: remove .travis.yml
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 11:36:57 +00:00
Jianhui Zhao c857cc305b chore: rename go module to rttys
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 10:33:47 +00:00
Jianhui Zhao a0c4f76dcb perf: disconnect early when an invalid message was received
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 10:11:58 +00:00
Jianhui Zhao c4a64067b6 chore: change config comment
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 09:36:07 +00:00
Jianhui Zhao deb5377437 chore: rename frontend to ui
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-09-08 09:34:29 +00:00
dependabot[bot] ba8dd6e1f9 build(deps): bump path-parse from 1.0.6 to 1.0.7 in /frontend (#90)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-17 11:36:17 +08:00
dependabot[bot] 5cc96bd664 build(deps): bump dns-packet from 1.3.1 to 1.3.4 in /frontend (#82)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 13:45:38 +08:00
dependabot[bot] 386652802d build(deps): bump ws from 6.2.1 to 6.2.2 in /frontend (#84)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 13:45:29 +08:00
dependabot[bot] d5067096e8 build(deps): bump github.com/gin-gonic/gin from 1.5.0 to 1.7.0 (#89)
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.5.0 to 1.7.0.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.5.0...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 13:45:19 +08:00