Commit Graph

58 Commits

Author SHA1 Message Date
Jianhui Zhao 35a1fe2913 ui: Implement direct paste functionality for terminal context menu
- Add pasteFromClipboard() method to enable direct clipboard paste
- Use Clipboard API with async/await for modern browser support
- Add fallback message for unsupported browsers or permission denied
- Add 'Pasted from clipboard' translations for English and Chinese
- Replace paste menu item action from showing instruction to actual paste

This allows users to paste content directly from the context menu instead
of requiring keyboard shortcuts, improving user experience.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-10 09:45:31 +08:00
Jianhui Zhao 313c13271a ui: Update clipboard copy message text
Simplify the copy success message from "Already copied to clipboard"

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-10 09:27:03 +08:00
Jianhui Zhao 7830a325f3 ui: Change message type from info to success in context menu actions
Replace $message.info() with $message.success() for copy, paste, and file
upload instructions in the terminal context menu to provide more positive
user feedback for these informational messages.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-10 09:18:57 +08:00
Jianhui Zhao a0bfc21d11 Refactor the message distribution process
To solve a major problem: when there are many devices connected,
the broker will blocked in processing messages.

By the way, I've rewritten and reorganized the entire code architecture,
improved performance.

Some new features has been added:
* support device grouping.
* support show device's IP address.

Change-Id: I250e18091be7fd42028c82767b6edef50b3f6d8f
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-07 12:21:36 +08:00
Jianhui Zhao 86420d878f ui: remove tooltip for operation icon
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-04 11:44:59 +08:00
Jianhui Zhao af9eaa7cb4 api: Optimizing Static Resource Handling
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-02 12:54:43 +08:00
Jianhui Zhao c45c5bf5bd ui: Fix placeholder in RttyWeb.vue
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-02 09:12:12 +08:00
Jianhui Zhao cefd50c5f8 ui: fix locale
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-07-01 20:11:55 +08:00
Jianhui Zhao 183aa31b2c ui: fix placeholder for web proxy
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-26 11:57:29 +08:00
Jianhui Zhao ef160cc70b ui: remove compositionOnly: false
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-25 22:17:29 +08:00
Jianhui Zhao a7db997ea7 ui: remove unused method in ContextMenu.vue
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-23 14:05:36 +08:00
Jianhui Zhao c9097e95df pretty ui title
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-23 12:19:47 +08:00
Jianhui Zhao dd2e8351a5 Fix language following the browser.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-23 12:18:56 +08:00
Jianhui Zhao 9dc80c91fc ui: fix translate
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-19 22:34:58 +08:00
Jianhui Zhao d926f0ac6c perf: Improve file upload speed
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-16 19:52:21 +08:00
Jianhui Zhao 1c41f1d90e feat(ui): More convenient access device web
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 18:07:43 +08:00
Jianhui Zhao ba05ea6764 perf(ui): improve code via create a vue component RttyCmd
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 18:07:09 +08:00
Jianhui Zhao 41723aca41 perf: Optimize HTTP session management
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 15:37:16 +08:00
Jianhui Zhao a6b008ed6e feat: more convenient to set the terminal font size.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 15:37:16 +08:00
Jianhui Zhao 8818c09d8d feat: submit on keyup of enter in Login page.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 15:37:16 +08:00
Jianhui Zhao cbfa9f8bd4 chore: use autofocus for el-input
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 15:37:16 +08:00
Jianhui Zhao f80ae5c7eb feat: update all packages to latest
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 15:37:16 +08:00
Jianhui Zhao 7f1ff94f83 chore: pretty Login page
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 15:37:16 +08:00
Jianhui Zhao 7db180c749 refactor: password not required for execute command
Usually, commands are executed in batches on multiple devices,
but the password for each device is different. Therefore, the
password parameter is removed.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-15 15:37:10 +08:00
Jianhui Zhao ab87db1f7d refactor: Remove device white list support
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-11 10:37:11 +08:00
Jianhui Zhao b1e592f1fa refactor: Remove database support
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-11 09:54:35 +08:00
Jianhui Zhao 6e896cac2b refactor: Remove multi user support
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-11 09:37:53 +08:00
Jianhui Zhao 6a4b0a650c refactor: Remove the fontsize API
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-06-10 20:05:14 +08:00
Jianhui Zhao 5b24011243 fix(ui): Fix copy text from term.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-01-15 18:14:48 +08:00
Jianhui Zhao 91f6e74116 feat(ui): add an error page to show error message.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2024-12-16 15:26:17 +08:00
Jianhui Zhao 3c640ccf72 fix(ui): Fix term window size for white-list device
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2024-12-13 12:20:51 +08:00
Jianhui Zhao 01aeef110a refactor(ui): Rewrite with latest element-plus
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2024-11-28 22:32:05 +08:00
Fu Jianrong 64cb5a494b feat: Add functionality to disable new sign up in config file (#164) 2024-11-22 13:03:41 +08:00
Jianhui Zhao 11be8de2ec fix(ui): fix css style of terminal
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2023-05-29 21:51:17 +08:00
Jianhui Zhao 1ea2a1464e fix(ui): fix css style for Home page
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2023-05-29 21:32:59 +08:00
Jianhui Zhao 06e0b501f9 docs(ui): update
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2023-05-29 19:25:58 +08:00
Jianhui Zhao 58c29ec208 feat: https proxy compatible old rtty
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-09-25 17:08:13 +08:00
dependabot[bot] 5b10a09757 build(deps): bump shell-quote from 1.7.2 to 1.7.3 in /ui (#114)
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-31 16:30:54 +08:00
dependabot[bot] 805490b60e build(deps): bump terser from 4.8.0 to 4.8.1 in /ui (#113)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-31 16:04:02 +08:00
dependabot[bot] f367140763 build(deps): bump eventsource from 1.1.0 to 1.1.1 in /ui (#109)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.1)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-31 16:03:51 +08:00
Jianhui Zhao 6cd409379b fix: ui: fix copy text from term
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-07-31 16:02:17 +08:00
Jianhui Zhao 06695ba338 feat: support https proxy
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-07-31 15:22:28 +08:00
Jianhui Zhao ed859122e0 feat: support specify path and query for web proxy
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-05-09 16:51:32 +08:00
Jianhui Zhao f8efeafa58 chore: ui: improve code
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-05-09 15:36:43 +08:00
Jianhui Zhao 522ab5e2bb feat: ui: add example for web proxy
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-05-09 15:16:25 +08:00
Jianhui Zhao a797ffbc4d chore: add a script to build ui
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-05-09 14:53:56 +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