Compare commits

..

976 Commits

Author SHA1 Message Date
lollipopkit🏳️‍⚧️
0c7b72fb2c bump: v1246 2025-09-05 12:31:33 +08:00
lollipopkit🏳️‍⚧️
a869b97502 fix: server stat l10n 2025-09-05 00:24:18 +08:00
lollipopkit🏳️‍⚧️
eadd343205 readd: home drawer
Fixes #900
2025-09-05 00:12:41 +08:00
lollipopkit🏳️‍⚧️
1bac986fe0 bug: single server providers should be keepalived (#899) 2025-09-04 23:50:00 +08:00
lollipopkit🏳️‍⚧️
a94be6c2c3 fix: macOS appstore rejection (#893) 2025-09-03 22:19:04 +08:00
lollipopkit🏳️‍⚧️
fc8e9b4bb1 bump: v1241 2025-09-03 09:24:33 +08:00
lollipopkit🏳️‍⚧️
ec4b633889 fix: watchOS app cfg (#890) 2025-09-03 01:41:08 +08:00
lollipopkit🏳️‍⚧️
e51804fa70 new: custom tabs (#889) 2025-09-03 01:05:03 +08:00
lollipopkit🏳️‍⚧️
2466341999 feat: server conn statistics (#888) 2025-09-02 19:41:56 +08:00
lollipopkit🏳️‍⚧️
929061213f refactor: docker status parsing (#886) 2025-09-02 13:22:54 +08:00
lollipopkit🏳️‍⚧️
6b52679942 fix: resolve Docker interface blank issue caused by LateInitializationError (#884) 2025-09-02 12:44:05 +08:00
lollipopkit🏳️‍⚧️
efc0315c93 new: CLAUDE.md 2025-09-01 23:32:44 +08:00
lollipopkit🏳️‍⚧️
8e4c2a7cde fix: fallback to df on incompatible system (#880) 2025-09-01 23:32:20 +08:00
lollipopkit🏳️‍⚧️
4ec7f5895e fix: imported servers from ssh config are the same (#882) 2025-09-01 23:06:58 +08:00
lollipopkit🏳️‍⚧️
ee22cdb55f fix: private key can't be selected in edit page (#879) 2025-09-01 13:05:54 +08:00
lollipopkit🏳️‍⚧️
b1b0d9a18f bump: v1231 2025-09-01 01:19:23 +08:00
lollipopkit🏳️‍⚧️
56e67f4725 fix: sync will refresh the entire app (#877) 2025-09-01 01:18:06 +08:00
lollipopkit🏳️‍⚧️
3b7fdf36fb opt. 2025-08-31 23:59:53 +08:00
lollipopkit🏳️‍⚧️
5291d316a2 fix: ensure unique IDs for bulk server import to prevent overwriting (#875) 2025-08-31 21:20:27 +08:00
lollipopkit🏳️‍⚧️
4c369546da fix: replace String.fromCharCodes with utf8.decode for proper Chinese character handling in JSON import (#874) 2025-08-31 20:06:47 +08:00
lollipopkit🏳️‍⚧️
12a243d139 feat: import servers from ~/.ssh/config (#873) 2025-08-31 19:33:29 +08:00
lollipopkit🏳️‍⚧️
a97b3cf43e opt.: bak pwd is optional (#872) 2025-08-31 11:11:47 +08:00
lollipopkit🏳️‍⚧️
53a7c0d8ff migrate: riverpod + freezed (#870) 2025-08-31 00:55:54 +08:00
lollipopkit🏳️‍⚧️
9cb705f8dd fix: parsing hostname (#865) 2025-08-22 09:18:21 +08:00
lollipopkit🏳️‍⚧️
8270674b7d chore: tests 2025-08-22 00:25:26 +08:00
lxdklp
24fd4b782d fix: GBK decoding fallback (#863)
* fix #757

* fix #757

* apply the code recommendations from sourcery ai

* Make sure raw is non-empty data

* Modified the way to judge gbk, fixed the problem that null cannot throw an error
2025-08-21 23:28:06 +08:00
lollipopkit🏳️‍⚧️
fcb3d7e2b3 bump: v1220 2025-08-18 12:21:52 +08:00
lollipopkit🏳️‍⚧️
f5634d6e88 bump: v1218 2025-08-18 12:08:29 +08:00
lollipopkit🏳️‍⚧️
5497ad83e0 opt.: bio auth settings 2025-08-17 17:56:26 +08:00
dsvf
4a7827f41a Delay bio auth (#642) 2025-08-17 14:06:24 +08:00
lollipopkit🏳️‍⚧️
60671fe461 feat: native widget url settings dialog (#856) 2025-08-16 23:07:19 +08:00
lollipopkit🏳️‍⚧️
bc1b6e5a4a feat: GitHub Gist sync (#854) 2025-08-14 23:21:33 +08:00
lollipopkit🏳️‍⚧️
1d553eccd5 rm: claude pr review 2025-08-13 23:33:03 +08:00
lollipopkit🏳️‍⚧️
68734a9e52 fix: disable command menu doesnt work (#852) 2025-08-13 23:32:22 +08:00
lollipopkit🏳️‍⚧️
ed8a1d18b9 opt.: systemd page (#851) 2025-08-13 22:16:55 +08:00
shamnad-sherief
e4a9875620 fix: Systemd shows nothing (#850) 2025-08-13 20:19:28 +08:00
lollipopkit🏳️‍⚧️
6f9aa2ece9 add: Claude Code GitHub Workflow (#849)
* "Claude PR Assistant workflow"

* "Claude Code Review workflow"
2025-08-13 15:23:30 +08:00
lollipopkit🏳️‍⚧️
13e28675af opt.: watchOS & iOS widget (#847) 2025-08-13 01:44:02 +08:00
lollipopkit🏳️‍⚧️
8c0e0f89d5 fix: term opening on Linux (#845) 2025-08-12 23:55:31 +08:00
lollipopkit🏳️‍⚧️
9b01da5a23 feat: term session mgr (#846) 2025-08-12 23:43:42 +08:00
lollipopkit🏳️‍⚧️
584af5423a bump: v1206 2025-08-09 12:45:45 +08:00
lollipopkit🏳️‍⚧️
95f8e571c1 feat: ability to disable monitoring cmds (#840) 2025-08-09 12:37:30 +08:00
lollipopkit🏳️‍⚧️
9c9648656d fix: macOS ssh term unusable (#838) 2025-08-08 18:59:25 +08:00
lollipopkit🏳️‍⚧️
6880bcc192 opt.: m3 layout breakpoints (#837) 2025-08-08 17:12:13 +08:00
lollipopkit🏳️‍⚧️
3a615449e3 feat: Windows compatibility (#836)
* feat: win compatibility

* fix

* fix: uptime parse

* opt.: linux uptime accuracy

* fix: windows temperature fetching

* opt.

* opt.: powershell exec

* refactor: address PR review feedback and improve code quality

### Major Improvements:
- **Refactored Windows status parsing**: Broke down large `_getWindowsStatus` method into 13 smaller, focused helper methods for better maintainability and readability
- **Extracted system detection logic**: Created dedicated `SystemDetector` helper class to separate OS detection concerns from ServerProvider
- **Improved concurrency handling**: Implemented proper synchronization for server updates using Future-based locks to prevent race conditions

### Bug Fixes:
- **Fixed CPU percentage parsing**: Removed incorrect '*100' multiplication in BSD CPU parsing (values were already percentages)
- **Enhanced memory parsing**: Added validation and error handling to BSD memory fallback parsing with proper logging
- **Improved uptime parsing**: Added support for multiple Windows date formats and robust error handling with validation
- **Fixed division by zero**: Added safety checks in Swap.usedPercent getter

### Code Quality Enhancements:
- **Added comprehensive documentation**: Documented Windows CPU counter limitations and approach
- **Strengthened error handling**: Added detailed logging and validation throughout parsing methods
- **Improved robustness**: Enhanced BSD CPU parsing with percentage validation and warnings
- **Better separation of concerns**: Each parsing method now has single responsibility

### Files Changed:
- `lib/data/helper/system_detector.dart` (new): System detection helper
- `lib/data/model/server/cpu.dart`: Fixed percentage parsing and added validation
- `lib/data/model/server/memory.dart`: Enhanced fallback parsing and division-by-zero protection
- `lib/data/model/server/server_status_update_req.dart`: Refactored into 13 focused parsing methods
- `lib/data/provider/server.dart`: Improved synchronization and extracted system detection

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor: parse & shell fn struct

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-08 16:56:36 +08:00
lollipopkit🏳️‍⚧️
46a12bc844 bump: v1201 2025-07-28 22:27:56 +08:00
lollipopkit🏳️‍⚧️
8d597294a4 feat: amd gpu (#831) 2025-07-28 22:26:29 +08:00
lollipopkit🏳️‍⚧️
682a6e4f2d feat: custom pwd of bak (#827) 2025-07-25 16:38:28 +08:00
lollipopkit🏳️‍⚧️
8c3302cf0d chore: update script location in Attention notice (#825)
Fixes #824
2025-07-21 16:42:16 +08:00
lollipopkit🏳️‍⚧️
ec4bf3df24 opt.: sftp dl 2025-07-21 16:20:27 +08:00
lollipopkit🏳️‍⚧️
263d4eabb4 feat: store critical data in secure store (#821) 2025-07-17 18:26:34 +08:00
lollipopkit🏳️‍⚧️
c6439673b8 feat: shift key in ssh term (#819) 2025-07-17 18:18:18 +08:00
lollipopkit🏳️‍⚧️
a35d21981b opt.: watch sync mechanism (#817)
* opt.: watch sync mechanism
Fixes #816

* opt.
2025-07-17 16:55:56 +08:00
Tom
dbc873c0c0 feat: enhance server card layout and add logo display functionality (#804) 2025-06-27 18:55:48 +08:00
Integral
e69808a2f6 fix: disable APK signing block to resolve F-Droid build issues (#793)
Thanks for the patch from @linsui.
2025-06-16 01:51:30 +08:00
lollipopkit🏳️‍⚧️
55b3ba63ec opt.: ui 2025-06-12 22:04:03 +08:00
ИEØ_ΙΙØZ
006e66d825 update: app_zh_tw.arb (#790) 2025-06-11 17:07:22 +08:00
lollipopkit🏳️‍⚧️
c556c0f1b5 bump: v1189 2025-06-11 17:02:47 +08:00
lollipopkit🏳️‍⚧️
c42c701ffc bug: incorrect disk smart info (#789) 2025-06-11 16:45:25 +08:00
lollipopkit🏳️‍⚧️
e6db2db320 fix: container not working (#787) 2025-06-11 14:53:43 +08:00
lollipopkit🏳️‍⚧️
66ecb02d9e migrate: freezed v3 2025-06-10 14:27:27 +08:00
lollipopkit🏳️‍⚧️
8e7de604ee fix: linux build 2025-06-09 18:50:01 +08:00
lollipopkit🏳️‍⚧️
6f2a58ce18 bump: v1184 2025-06-09 16:01:39 +08:00
lollipopkit🏳️‍⚧️
066629d7e0 fix: android build 2025-06-08 20:59:58 +08:00
lollipopkit🏳️‍⚧️
4b3953e0d2 readd: serverTabPreferDiskAmount (#780)
Fixes #643
2025-06-08 11:15:54 +08:00
lollipopkit🏳️‍⚧️
b5aec55106 fix android reload when physical keyboard changes (#779) 2025-06-08 10:46:47 +08:00
lollipopkit🏳️‍⚧️
ba686db847 fix: ssh terminal ui 2025-06-07 17:18:42 +08:00
lollipopkit🏳️‍⚧️
4d52023982 opt.: ssh terminal ux (#778) 2025-06-07 17:07:13 +08:00
lollipopkit🏳️‍⚧️
7a71a96442 fix: examples UI of importing (#777)
Fixes #601
2025-06-05 09:22:54 +08:00
lollipopkit🏳️‍⚧️
79c515c903 new: bio_auth -> local_auth (#776)
Fixes #722
2025-06-05 09:07:28 +08:00
lollipopkit🏳️‍⚧️
4701757857 feat: SSH page background (#775) 2025-06-05 08:53:00 +08:00
lollipopkit🏳️‍⚧️
176cb7da03 feat: disk smart info (#773) 2025-06-05 07:31:45 +08:00
lollipopkit🏳️‍⚧️
741a6442e0 fix: batch delete servers (#772) 2025-06-04 19:28:58 +08:00
lollipopkit🏳️‍⚧️
f6d394c71e opt.: custom terminal emulator (#771) 2025-06-04 19:13:31 +08:00
lollipopkit🏳️‍⚧️
7127c960f7 opt.: server detail page columns 2025-06-04 17:29:03 +08:00
lollipopkit🏳️‍⚧️
1084c49a5f opt.: ui 2025-06-04 01:52:27 +08:00
lollipopkit🏳️‍⚧️
bc824691e0 opt.: server card loading UI 2025-06-04 00:47:18 +08:00
lollipopkit🏳️‍⚧️
0c1ada0067 fix: cloud sync (#769) 2025-06-04 00:11:31 +08:00
lollipopkit🏳️‍⚧️
9547d92ac5 migrate: flutter 3.32 2025-05-25 17:05:46 +08:00
lollipopkit🏳️‍⚧️
7e16d2f159 new: parse disk info via lsblk output Fixes #709 (#760) 2025-05-17 00:45:38 +08:00
lollipopkit🏳️‍⚧️
d88e97e699 new: use generated ids for servers (#765)
* new: use generated ids for servers
Fixes #743

* fix: deps.

* fix: migrate related settings

* fix: restore servers from json
2025-05-16 21:50:44 +08:00
lollipopkit🏳️‍⚧️
d29bd1d806 opt.: ssh page sftp path checking (#763) 2025-05-15 21:01:10 +08:00
lollipopkit🏳️‍⚧️
2b2f1ddb60 opt.: handle esc btn in ssh page (#761) 2025-05-15 20:35:45 +08:00
lollipopkit🏳️‍⚧️
4f16d510c8 fix: code editor page popping (#759)
Fixes #713
2025-05-14 18:58:58 +08:00
lollipopkit🏳️‍⚧️
94cded39a6 fix: horizontal ssh virt keys ui (#758)
Fixes #737
2025-05-14 18:21:18 +08:00
lollipopkit🏳️‍⚧️
12082e1235 chore: README 2025-05-14 16:54:28 +08:00
lollipopkit🏳️‍⚧️
28e34e2183 opt.: editor lang parse 2025-05-14 16:19:26 +08:00
lollipopkit🏳️‍⚧️
4d45d01074 feat: searching in editor page (#756)
* feat: searching in editor page
Fixes #734

* opt.: editor searching ui
2025-05-14 05:09:32 +08:00
lollipopkit🏳️‍⚧️
f6b3ec2a62 opt.: editor (#755)
Fixes #753
2025-05-14 04:07:21 +08:00
lollipopkit🏳️‍⚧️
d6cf33fb70 bug: can't select file on macOS (#754)
Fixes #750
2025-05-14 04:04:19 +08:00
lollipopkit🏳️‍⚧️
1eea133b69 opt.: appbar scrolledUnderElevation (#752)
Fixes #751
2025-05-14 04:02:30 +08:00
lollipopkit🏳️‍⚧️
2b46cb6dcc fix: android monochrome icon (#749)
Fixes #732
2025-05-14 03:22:02 +08:00
lollipopkit🏳️‍⚧️
8627ff823f optimization: desktop UI (#747) 2025-05-13 04:57:37 +08:00
lollipopkit🏳️‍⚧️
e520929411 chore: migrate fl_lib 2025-04-28 23:15:54 +08:00
lollipopkit🏳️‍⚧️
8f09085cf3 Merge remote-tracking branch 'origin/lollipopkit/issue727' 2025-04-25 18:33:36 +08:00
lollipopkit🏳️‍⚧️
9e66071cb0 opt. 2025-04-25 18:32:29 +08:00
Noo6
fa90c1ef31 opt: navigation bar (#740) 2025-04-22 11:54:29 +08:00
Noo6
ede238c647 feat: adaptive navigation bar (#739) 2025-04-22 11:19:19 +08:00
lollipopkit🏳️‍⚧️
6e7fee20b8 opt.: routes 2025-04-10 15:28:47 +08:00
lollipopkit🏳️‍⚧️
391e4f6b65 opt.: page struct 2025-04-09 12:15:42 +08:00
lollipopkit🏳️‍⚧️
e185414355 fix: logo url dist null check 2025-04-08 14:49:26 +08:00
lollipopkit🏳️‍⚧️
2a2f348063 migrate: fl_lib 2025-03-24 23:07:52 +08:00
moli765
95ca6bcfc9 reslove issue 717 about logo url and add coreelec support (#718) 2025-03-22 23:19:54 +08:00
lollipopkit🏳️‍⚧️
275041247a migrate: webdav_client_plus (#729)
Fixes #723
2025-03-22 01:27:17 +08:00
lollipopkit🏳️‍⚧️
24d64b835d opt.: app bar
Fixes #727
2025-03-20 20:20:13 +08:00
lollipopkit🏳️‍⚧️
dd5fea09b1 opt.: skip updating home widget on desktop 2025-03-13 16:07:45 +08:00
𝗛𝗼𝗹𝗶
0a404e035e Improve Turkish Language (#721) 2025-03-10 15:21:17 +08:00
Noo6
b5ab5b1cab fix: window title bar might not be displayed (#701) 2025-02-12 13:33:49 +08:00
Noo6
5cb83001c6 opt: windows app icon (#700) 2025-02-12 13:17:54 +08:00
Noo6
20a39f0292 feat: record window position (#692) 2025-02-05 20:59:04 +08:00
Noo6
900686f955 chore: Fns & FnRes (#690) 2025-02-04 22:41:03 +08:00
Calvin lin
a10321e3de Update release.yml
It may work now :)
2025-02-03 16:22:18 +08:00
Calvin lin
0691ab2213 Update release.yml 2025-02-03 16:16:45 +08:00
Calvin lin
ef05203ea3 Update release.yml 2025-02-03 16:08:31 +08:00
Calvin lin
28410707a8 Update release.yml 2025-02-03 16:03:49 +08:00
Calvin lin
06b966caa8 Merge pull request #687 from lollipopkit/fix_action_linux
fix github action build linux
2025-02-03 16:01:36 +08:00
calvin
11b0806083 fix github action build linux 2025-02-03 15:48:19 +08:00
lollipopkit🏳️‍⚧️
749fd4d800 fix: ci 2025-01-29 23:56:27 +08:00
lollipopkit🏳️‍⚧️
bec4a3b314 chore: bump version 2025-01-29 23:44:44 +08:00
lollipopkit🏳️‍⚧️
9e5babec76 opt.: close after saving (#684) 2025-01-29 15:10:50 +08:00
lollipopkit🏳️‍⚧️
dbbb10364b fix: webdav settings (#683) 2025-01-29 13:13:12 +08:00
lollipopkit🏳️‍⚧️
16948c3e0f new: provide .deb & .rpm 2025-01-29 12:56:03 +08:00
lollipopkit🏳️‍⚧️
e39fb23b66 bug: unix perm switcher (#674) 2025-01-14 11:19:47 +08:00
lollipopkit🏳️‍⚧️
4777166dd9 migrate: fl_lib v235 2025-01-13 21:57:12 +08:00
Noo6
0ae0241800 opt: window title bar (#672)
* opt: window title bar

* rm: `VirtualWindowFrame` on `SettingsPage`
2025-01-10 15:19:03 +08:00
lollipopkit🏳️‍⚧️
e7a5f43cc4 fix: disabled android service related (#670)
Fixes #662
2025-01-07 20:36:12 +08:00
lollipopkit🏳️‍⚧️
7f58237589 fix: catch crash of fg service (#669) 2025-01-04 16:22:20 +08:00
lollipopkit🏳️‍⚧️
0bbd0b43b3 opt.: display settings btn in fullscreen mode (#660) 2024-12-15 23:53:31 +08:00
lollipopkit🏳️‍⚧️
aaa1eddeaf opt.: display err if home widget fails (#659) 2024-12-15 23:39:38 +08:00
lollipopkit🏳️‍⚧️
2f6db2961f fix: crash while opening terminal (#658)
Fixes #639
2024-12-14 21:06:37 +08:00
lollipopkit
831efa833b fix: file_picker err 2024-12-14 16:21:25 +08:00
lollipopkit
867fcbfc0d chore: migrate to flutter 3.27 2024-12-14 14:45:04 +08:00
lollipopkit
41886be649 opt.: home top bar 2024-12-14 14:11:26 +08:00
lollipopkit
029b4e0dba chore: README 2024-12-03 00:13:58 +08:00
lollipopkit🏳️‍⚧️
3a3c29764a bug: can't share server via qr_code (#651)
Fixes #650
2024-12-02 22:22:14 +08:00
lollipopkit
4ace4af7da opt.: home ui
- new: top left settings btn
- opt.: top logo
2024-12-02 21:41:17 +08:00
lollipopkit🏳️‍⚧️
ddd32e82d4 opt.: migrate to new fl_lib (#649)
Fixes #648
2024-12-02 21:06:44 +08:00
dsvf
b882baeafa Added Function keys (F1-F12) to SSH virtual keyboard options (#641) 2024-11-24 13:19:20 +08:00
fei1025
046f2c06d0 修复路径在windos下读取不到的问题 (#630)
* 修复路径在windos下读取不到的问题

* opt: `local.dart` fmt

---------

Co-authored-by: Noo6 <72285529+No06@users.noreply.github.com>
2024-11-14 14:42:15 +08:00
Noo6
d706886343 fix: sftp open file on windows (#633) 2024-11-14 14:24:57 +08:00
Noo6
7dda63af8a fix: add file on windows 2024-11-14 11:20:45 +08:00
lollipopkit🏳️‍⚧️
00d303ac36 fix: editing pref store (#618) 2024-10-29 19:37:19 +08:00
lollipopkit🏳️‍⚧️
229983d82e chore: bump version 2024-10-17 14:06:45 +08:00
Mased
4928ca600d [Translation] some Russian fixes (#604) 2024-10-07 21:04:36 +08:00
lollipopkit🏳️‍⚧️
89ec2d94d6 opt.: virt keys loading 2024-10-05 10:18:00 +08:00
lollipopkit🏳️‍⚧️
393c3e6388 Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-10-05 10:00:41 +08:00
Gitro
dee458e926 new: material you icon (#599) 2024-10-04 12:19:10 +08:00
lollipopkit🏳️‍⚧️
f89228db40 opt.: ssh page 2024-09-28 17:09:35 +08:00
lollipopkit🏳️‍⚧️
3b6fb6194b opt.: more virtual keys (#596) 2024-09-28 14:40:22 +08:00
lollipopkit🏳️‍⚧️
02444fc2f0 new: ios18 dark app icon (#594)
Fixes #593
2024-09-25 19:16:14 +08:00
lollipopkit🏳️‍⚧️
aef317a140 opt.: dismiss notification if no ssh conn (#592) 2024-09-24 22:01:35 +08:00
lollipopkit🏳️‍⚧️
47aedb2f2e fix: rename file 2024-09-22 16:06:09 +08:00
lollipopkit🏳️‍⚧️
eab06abcaf opt. 2024-09-21 23:12:15 +08:00
lollipopkit🏳️‍⚧️
c062c12a0e opt.: redesigned settings page (#587) 2024-09-21 22:37:42 +08:00
lollipopkit🏳️‍⚧️
d7669c94b8 opt.: spi with same id (#585) 2024-09-21 11:54:56 +08:00
lollipopkit🏳️‍⚧️
50af289574 migrate: fl_lib 2024-09-21 11:01:41 +08:00
lollipopkit🏳️‍⚧️
90b88ed795 opt.: sync immediately after changes (#577) 2024-09-14 17:08:51 +08:00
CakesTwix
d611fdcd50 l10n: Added Ukrainian lang (#574) 2024-09-14 14:48:23 +08:00
lollipopkit🏳️‍⚧️
db9b2dd818 fix: snippet fmt (#570) 2024-09-01 21:07:32 +08:00
lollipopkit🏳️‍⚧️
edb49ead67 opt.: split webdav & other settings (#569) 2024-08-31 21:45:09 +08:00
lollipopkit🏳️‍⚧️
7f0dc656b8 Merge pull request #568 from lollipopkit/lollipopkit/issue564 2024-08-31 19:36:50 +08:00
lollipopkit🏳️‍⚧️
b33d0bbc3e opt.: back btn on scan page
Fixes #564
2024-08-31 19:33:57 +08:00
lollipopkit🏳️‍⚧️
7d0ea8a58b Merge branch 'android_service' 2024-08-31 19:28:04 +08:00
Noo6
c18732d8f3 fix: backup on windows (#563) 2024-08-30 22:44:08 +08:00
Shin
157af0a354 l10n: fixed Japanese translations. (#558) 2024-08-30 11:35:13 +08:00
lollipopkit🏳️‍⚧️
2d9dc044f9 new: custom foreground service on Android (#556) 2024-08-28 16:42:09 +08:00
lollipopkit🏳️‍⚧️
479250c207 init 2024-08-28 13:44:54 +08:00
Noo6
aef7ec911f opt: ssh tab page 2024-08-28 13:18:21 +08:00
lollipopkit🏳️‍⚧️
4f9ee7781f fix: ssh tab page UI (#555) 2024-08-27 17:20:47 +08:00
lollipopkit🏳️‍⚧️
eb83d05c81 fix: ssh alter url (#554) 2024-08-27 15:22:26 +08:00
lollipopkit🏳️‍⚧️
329fd33b69 fix: lang switch (#553) 2024-08-27 14:36:00 +08:00
lollipopkit🏳️‍⚧️
931c5f0bf6 opt.: alterUrl (#550) 2024-08-25 22:52:47 +08:00
lollipopkit🏳️‍⚧️
bcbf1fbc17 fix: fdroid build (#548) 2024-08-25 22:06:55 +08:00
Noo6
3e7315dac6 fix: ssh page displays the CustomAppBar on desktop 2024-08-18 20:04:39 +08:00
Noo6
4cecfdf7a8 opt: ssh card text overflow 2024-08-18 13:57:20 +08:00
Noo6
0346821cf5 opt: windows and linux drag area 2024-08-18 13:27:16 +08:00
lollipopkit🏳️‍⚧️
966a60a82d migrate: appleos 2024-08-17 22:59:32 +08:00
lollipopkit🏳️‍⚧️
76e98c6468 feat: custom shell script install path (#545) 2024-08-17 22:44:35 +08:00
lollipopkit🏳️‍⚧️
d7ae8b75b8 feat: custom net dev (#543) 2024-08-17 21:57:39 +08:00
lollipopkit🏳️‍⚧️
b5329e2692 fix: tags dialog 2024-08-16 21:02:05 +08:00
lollipopkit🏳️‍⚧️
ef297673f3 fix: privatekey update actually creates a new key (#541)
Fixes #540
2024-08-16 21:00:34 +08:00
lollipopkit🏳️‍⚧️
7558b4806d opt.: TagSwitcher related 2024-08-16 19:09:54 +08:00
Noo6
f7ef8a3915 opt: hidden at launch on linux and macos 2024-08-16 16:19:58 +08:00
lollipopkit🏳️‍⚧️
38366a2ef3 refactors (#539) 2024-08-16 01:24:43 +08:00
lollipopkit🏳️‍⚧️
7e5bb54c98 opt.: hide logo if distribution == null (#536) 2024-08-15 18:02:31 +08:00
lollipopkit🏳️‍⚧️
7ce3854392 opt.: use json_serializable 2024-08-15 16:44:13 +08:00
lollipopkit🏳️‍⚧️
195ddd2bcc refactor: SSHClientX.exec 2024-08-15 11:27:22 +08:00
lollipopkit🏳️‍⚧️
267b0b0a69 opt.: sftp home & back (#533) 2024-08-14 19:01:44 +08:00
lollipopkit🏳️‍⚧️
41e3fcb23a feat: systemd management (#532) 2024-08-14 14:29:03 +08:00
lollipopkit🏳️‍⚧️
46d5840276 feat: share server via qrcode (#530) 2024-08-13 20:04:01 +08:00
lollipopkit🏳️‍⚧️
fe566e97ca chore: README 2024-08-11 23:29:11 +08:00
lollipopkit🏳️‍⚧️
ddd1524d63 opt.: macos icon (#527) 2024-08-11 22:40:11 +08:00
lollipopkit🏳️‍⚧️
4d8268c614 fix: ssh tab focus mgmt (#525)
Fixes #522
2024-08-11 22:36:52 +08:00
lollipopkit🏳️‍⚧️
568b97606a opt.: split single list into multiples on desktop (#524) 2024-08-11 20:53:25 +08:00
lollipopkit🏳️‍⚧️
42cc2416a1 chore: README 2024-08-09 11:59:45 +08:00
lollipopkit🏳️‍⚧️
aaa69f0f95 chore: bump version 2024-08-04 19:26:31 +08:00
lollipopkit🏳️‍⚧️
64676bc5cb chore: l10n 2024-08-04 13:05:29 +08:00
lollipopkit🏳️‍⚧️
a15c04956c opt.: TipText 2024-08-04 12:02:57 +08:00
lollipopkit🏳️‍⚧️
e3c885483b opt.: use ssh term to decompress (#519) 2024-08-04 11:40:38 +08:00
lollipopkit🏳️‍⚧️
493c86cacb fix: home widget url (#517) 2024-08-04 00:17:21 +08:00
lollipopkit🏳️‍⚧️
ea7c8caf14 bug: color seed setting not working (#516) 2024-08-03 23:17:18 +08:00
lollipopkit🏳️‍⚧️
9db04a60c2 opt.: l10n & fix: write script (#514) 2024-08-03 22:44:21 +08:00
lollipopkit🏳️‍⚧️
610f46da0d opt.: bulk import servers (#512) 2024-08-03 14:52:39 +08:00
lollipopkit🏳️‍⚧️
b8e5418ff2 feat: import snippets from network (#510)
Fixes #507
2024-08-03 14:25:58 +08:00
lollipopkit🏳️‍⚧️
0e21755acb opt.: remove internal SharePreference keys while using KvEditor (#509)
Fixes #508
2024-08-03 12:37:16 +08:00
lollipopkit🏳️‍⚧️
73248011a1 migrate: fl_lib 2024-08-01 13:44:32 +08:00
lollipopkit🏳️‍⚧️
969643d3df opt.: debug page copy logs 2024-07-28 22:12:07 +08:00
lollipopkit🏳️‍⚧️
c90d0e4b3b fix: manual restore 2024-07-28 20:37:34 +08:00
lollipopkit🏳️‍⚧️
f9aadc6b0f opt.: Btn 2024-07-28 20:26:08 +08:00
lollipopkit🏳️‍⚧️
8fd4cc1fe1 opt.: TagsEditor & Btn 2024-07-28 19:05:31 +08:00
lollipopkit🏳️‍⚧️
432d76f024 fix: builtin editor (#503) 2024-07-28 15:06:34 +08:00
𝗦𝗵𝗟𝗲𝗿𝗣
ca8211e1a4 Add TR Locales (#497) 2024-07-27 16:42:09 +08:00
lollipopkit🏳️‍⚧️
a3b48fc01c chore: bump version 2024-07-26 23:35:59 +08:00
lollipopkit🏳️‍⚧️
8be94aa09c feat: use $EDITOR to edit files (#496)
Fixes #489
2024-07-26 23:32:57 +08:00
lollipopkit🏳️‍⚧️
5db1253ab8 fix: termux compatibility (#495) 2024-07-26 22:31:17 +08:00
lollipopkit🏳️‍⚧️
ceedd86310 rm: pkg (#494)
Fixes #470
2024-07-26 21:31:45 +08:00
lollipopkit🏳️‍⚧️
6a0254623f opt.: json input experience 2024-07-26 20:22:30 +08:00
lollipopkit🏳️‍⚧️
1c6ec56032 Create FUNDING.yml 2024-07-25 10:42:18 +08:00
lollipopkit🏳️‍⚧️
287869ed45 opt.: simplify settings page (#488) 2024-07-24 00:30:17 +08:00
lollipopkit🏳️‍⚧️
e4dbc3ba12 feat: set envs in term (#485) 2024-07-23 21:34:34 +08:00
lollipopkit🏳️‍⚧️
426e5689f8 fix: uploaded file's path on windows (#484) 2024-07-23 19:59:58 +08:00
lollipopkit🏳️‍⚧️
afda5fd4a4 fix: bio auth (#482) 2024-07-23 19:26:03 +08:00
lollipopkit🏳️‍⚧️
0a21b2820c fix: letterCacheTip translation 2024-07-23 12:14:31 +08:00
lollipopkit🏳️‍⚧️
87b3b76b0b feat: display cpu model (#477) 2024-07-23 12:03:10 +08:00
lollipopkit🏳️‍⚧️
41ec46f1d3 opt.: show loading dialog 2024-07-22 23:33:21 +08:00
lollipopkit🏳️‍⚧️
7a359588db opt.: input field suggestion 2024-07-22 22:03:56 +08:00
lollipopkit🏳️‍⚧️
255abe8b11 rollback: write script to /dev/shm (#474) 2024-07-21 17:58:14 +08:00
lollipopkit🏳️‍⚧️
b0936c5e6e fix: termux compatibility (#472) 2024-07-20 20:35:30 +08:00
lollipopkit🏳️‍⚧️
2907ac74d4 chore: bump version 2024-07-18 23:44:01 +08:00
lollipopkit🏳️‍⚧️
ea678f37b0 chore: bump version 2024-07-18 23:15:40 +08:00
lollipopkit🏳️‍⚧️
076082c945 feat: sftp perm setting & path copy (#467) 2024-07-18 21:40:40 +08:00
lollipopkit🏳️‍⚧️
5ee98f90e8 fix: update changelog (#466) 2024-07-18 20:53:22 +08:00
lollipopkit🏳️‍⚧️
c988dd88d7 fix: linux duplicated title bar (#462)
Fixes #459
2024-07-15 17:38:30 +08:00
lollipopkit🏳️‍⚧️
f7d6c461dc fix: version display (#458)
Fixes #457
2024-07-10 15:12:05 +08:00
lollipopkit🏳️‍⚧️
14771ae946 chore: README 2024-07-09 14:36:04 +08:00
lollipopkit🏳️‍⚧️
7e9086b20e fix: chmod perm 2024-07-09 14:02:23 +08:00
Noo6
4b3c4870ba fix: desktop window appbar (#450) 2024-07-05 12:42:38 +08:00
Noo6
43cebd0c04 fix: window blink on startup (#447) 2024-07-04 12:23:20 +08:00
Noo6
5ce13109b0 fix: ssh card tap area (#448) 2024-07-04 12:22:19 +08:00
lollipopkit🏳️‍⚧️
6e428c91d1 feat: disable letter cache (#446)
Fixes #445
2024-07-03 19:55:33 +08:00
lollipopkit🏳️‍⚧️
4430045550 feat: write script into /dev/shm (#444)
Fixes #443
2024-07-03 19:14:27 +08:00
lollipopkit🏳️‍⚧️
282cb06091 fix: picker dialog (#442)
Fixes #440
2024-07-03 18:19:09 +08:00
lollipopkit🏳️‍⚧️
772c2743b5 fix: no appBar in server detail page (#441)
Fixes #435
2024-07-03 16:42:52 +08:00
lollipopkit🏳️‍⚧️
90199b89a5 chore: README 2024-07-03 00:52:28 +08:00
Integral
e1d2e3f3e5 l10n: fix remaining translations (#439)
* l10n: Url -> URL

* l10n: Logo Address -> Logo URL

* l10n: fix ttl translation

* l10n: fix all zh-tw translations

* l10n: fix all zh-cn translations

* l10n: fix all en translations
2024-07-02 15:02:49 +00:00
Integral
3f9fe1f2c6 l10n: alterUrl -> fallbackSshDest (#437) 2024-07-02 13:15:19 +00:00
Integral
c79bbc5756 l10n: fix two acronyms (MAC, URL) (#436)
* l10n: Mac Address -> MAC Address

* l10n: PVE addr -> URL
2024-07-01 14:56:38 +00:00
Integral
63e1bec2b9 l10n: fix translation of net/network (#433) 2024-07-01 07:01:51 +00:00
Integral
d26b7c6f75 l10n: add noLineChartForCpu field (#431) 2024-07-01 05:24:31 +00:00
Integral
da8dc4fa54 docs(README): add f-droid & reorganize other installation methods (#429)
* docs(README): add f-droid & reorganize other installation methods

* docs(README): update Chinese README from English
2024-06-30 11:51:36 +00:00
Integral
413b81c47f l10n: fix Japanese translations (#425) 2024-06-25 16:00:42 +00:00
Integral
9ef419e3df l10n: fix English translations (#424) 2024-06-25 16:00:26 +00:00
Integral
39893912d9 Merge pull request #423 from Integral-Tech/fix-fdroid-typo
chore: fix typo of "F-Droid"
2024-06-25 14:04:16 +00:00
Integral
49456ca6c3 chore: fix typo of "F-Droid" 2024-06-25 22:00:46 +08:00
lollipopkit🏳️‍⚧️
6b9b8f0dbb chore: bump version 2024-06-25 13:15:29 +08:00
lollipopkit🏳️‍⚧️
5eb48b2717 fix: linux build (#422)
Fixes #421
2024-06-25 11:48:56 +08:00
lollipopkit🏳️‍⚧️
5339cfca70 chore: lib vers bump (#420)
Fixes #419
2024-06-25 11:16:34 +08:00
lollipopkit🏳️‍⚧️
1462b2d0b8 fix: always enter intro page (#418)
Fixes #417
2024-06-24 16:32:37 +08:00
lollipopkit🏳️‍⚧️
3798a23183 chore: bump version 2024-06-24 00:56:45 +08:00
lollipopkit🏳️‍⚧️
ddaf916170 feat: intro page (#416)
Fixes #415
2024-06-24 00:43:52 +08:00
lollipopkit🏳️‍⚧️
d6e37b058f fix: docker parse (#414)
Fixes #395
2024-06-23 18:37:05 +08:00
lollipopkit🏳️‍⚧️
2e9ad7d7cb chore: missing l10n noLineChart (#413)
Fixes #412
2024-06-23 15:39:30 +08:00
lollipopkit🏳️‍⚧️
190da74f66 chore: add participants (#410)
Fixes #409
2024-06-23 00:27:26 +08:00
lollipopkit🏳️‍⚧️
f1315dda7f fix: batch delete servers (#408)
Fixes #393
2024-06-23 00:24:30 +08:00
lollipopkit🏳️‍⚧️
43e6105eb3 fix: hideTitleBar doesn't work (#407)
Fixes #406
2024-06-22 22:58:22 +08:00
lollipopkit🏳️‍⚧️
d785209eb6 opt.: share on desktop (#405) 2024-06-22 22:50:17 +08:00
lollipopkit🏳️‍⚧️
da8b6a9010 feat: remember window size (#404)
Fixes #398
2024-06-22 21:52:48 +08:00
lollipopkit🏳️‍⚧️
1fd68722da fix: watchos settings (#403)
Fixes #401
2024-06-22 21:09:05 +08:00
lollipopkit🏳️‍⚧️
c9a2c1d0e4 Android - default to English (#402) 2024-06-18 14:39:18 +08:00
lollipopkit
161f536a62 fix: conform fdroid version fmt
Signed-off-by: lollipopkit <10864310+lollipopkit@users.noreply.github.com>
2024-06-13 23:51:10 +08:00
lollipopkit
1a32e9944e opt.: put version logic somewhere else (#381)
Signed-off-by: lollipopkit <10864310+lollipopkit@users.noreply.github.com>
2024-06-13 22:40:18 +08:00
lollipopkit
6deb753198 fix: version change logic (#381) 2024-06-13 21:29:03 +08:00
lollipopkit
4e33a98631 chore: fl_build 2024-06-13 21:22:44 +08:00
lollipopkit
dcb9464d8f fix
Signed-off-by: lollipopkit <10864310+lollipopkit@users.noreply.github.com>
2024-06-13 20:39:06 +08:00
lollipopkit
b94936b29f fix: reproducible (#381)
Signed-off-by: lollipopkit <10864310+lollipopkit@users.noreply.github.com>
2024-06-13 20:28:22 +08:00
lollipopkit
108d0a5a5b chore: bump version
Signed-off-by: lollipopkit <10864310+lollipopkit@users.noreply.github.com>
2024-06-13 00:45:24 +08:00
Integral
4814a2de28 Merge pull request #391 from Integral-Tech/add-abiCodes
Add abiCodes
2024-06-12 16:21:13 +00:00
Integral
5d8eeff502 Add abiCodes 2024-06-13 00:18:04 +08:00
lollipopkit
0bc4087266 chore: correct version for fdroid 2024-06-13 00:00:20 +08:00
lollipopkit
921209b901 chore: specify flutter version (#381) 2024-06-12 19:51:04 +08:00
lollipopkit
fa9d754470 rm: android wear settings 2024-06-12 19:42:38 +08:00
Integral
1f50a1f0f4 Merge pull request #389 from Integral-Tech/clean-up-proguard-rules
fix: clean up proguard-rules to remove depends on google libraries
2024-06-11 18:03:44 +00:00
Integral
80e84c0421 fix: clean up proguard-rules to remove depends on google libraries 2024-06-12 01:36:29 +08:00
lollipopkit
5059872c3f chore: README 2024-06-11 22:54:48 +08:00
lollipopkit
8add244776 fix: fdroid version fmt 2024-06-11 22:47:48 +08:00
lollipopkit
04e23fd7e4 fix: pubspec version 2024-06-11 22:18:27 +08:00
lollipopkit
336b11b808 chore: change dart pkg id 2024-06-11 22:06:29 +08:00
lollipopkit
8d9dba361c chore: completely rm countly 2024-06-11 22:03:17 +08:00
Integral
64ce3638cb chore: add distributionSha256Sum in gradle (#385) 2024-06-11 18:43:41 +08:00
lollipopkit
f3ceb73f0e fix: rm gms (#379 #381) 2024-06-11 16:40:05 +08:00
Integral
131dbe934c chore: setup fastlane for F-Droid submission (#384) 2024-06-11 16:18:39 +08:00
lollipopkit
58288e89bd Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-06-10 21:35:59 +08:00
lollipopkit🏳️‍⚧️
22c43c7124 Lollipopkit/issue382 (#383) 2024-06-10 21:34:56 +08:00
lollipopkit
2bf0b25ee5 fix: podman term 2024-06-10 21:32:45 +08:00
lollipopkit
3bc03c1364 opt.: add tip (#380 #382) 2024-06-10 21:29:41 +08:00
lollipopkit
490d71f8c9 feat: snippet with term ctrl (#380 #382) 2024-06-10 21:08:33 +08:00
lollipopkit
edceb5900e opt.: write script to server tip 2024-06-09 13:57:02 +08:00
lollipopkit
e5ef28415b opt.: ssh tab 2024-06-08 21:39:42 +08:00
lollipopkit
46b98df153 Merge branch 'dev' 2024-06-08 20:58:41 +08:00
lollipopkit
9f34021c90 fix: docker ps parse if id/name is too long 2024-06-08 20:57:56 +08:00
lollipopkit
8121eef839 opt.: RNode 2024-06-08 15:35:19 +08:00
lollipopkit
da48d1f66c opt.: IME popup after opening drawer if ssh term is focusing 2024-06-08 13:53:23 +08:00
lollipopkit
b167287c5b opt.: ssh tab page's tab bar 2024-06-07 23:53:13 +08:00
lollipopkit
41f9da6bf8 fix: ssh tab PageView animteToPage 2024-06-07 21:51:00 +08:00
lollipopkit
e7c7fc8186 fix: ssh tab name generaton 2024-06-07 21:43:38 +08:00
lollipopkit
b950dd2d68 fix: ssh tab 2024-06-07 21:09:17 +08:00
lollipopkit
6d34de14d3 Merge branch 'dev' 2024-06-06 21:26:03 +08:00
lollipopkit
a5a84c0cdd fix: podman log 2024-06-06 18:52:20 +08:00
lollipopkit
701b1b811f feat: beta program 2024-06-06 16:18:10 +08:00
lollipopkit
97267cdfbf fix: docker container status (#374) 2024-06-05 21:58:19 +08:00
lollipopkit
40ce37d230 opt.: sftp del dir 2024-06-05 18:48:44 +08:00
lollipopkit
8a9ade355c fix: update check 2024-06-05 18:26:02 +08:00
lollipopkit
9bffec64b5 fix: wol cfg (#373) 2024-06-05 18:16:17 +08:00
lollipopkit
a03ee2ae0e fix: term help 2024-06-05 11:12:43 +08:00
PaperCube
ee889235fe Fixed UI representation of server reorder page (#372) 2024-06-04 18:57:57 +01:00
lollipopkit
94d6d80497 chore: README 2024-06-04 23:17:32 +08:00
lollipopkit
413c45a559 opt.: backup 2024-06-04 22:33:59 +08:00
lollipopkit
6dc5536c48 fix: batch import 2024-06-04 19:57:56 +08:00
lollipopkit
76c4bf56fa fix: sync 2024-06-02 16:04:45 +08:00
lollipopkit
a0c6642230 fix: ios watch config 2024-06-02 15:50:01 +08:00
lollipopkit
4198d7bd13 opt.: ios watch config 2024-06-02 15:30:21 +08:00
lollipopkit
b06fddec07 new: windows release actions 2024-06-02 15:29:53 +08:00
lollipopkit
d1f14bee59 opt.: speed up docker page 2024-06-01 22:36:02 +08:00
lollipopkit
8953f63197 opt.: pve 2024-06-01 17:10:22 +08:00
lollipopkit🏳️‍⚧️
193d80d826 Merge pull request #370 from leganck/main
Add pve http proxy
2024-05-31 14:15:18 +08:00
leganck
9e308792aa Add pve http proxy 2024-05-30 23:30:45 +08:00
lollipopkit
fbabd8c351 new: wear settings (#358) & opt.: android widget edit 2024-05-27 20:52:46 +08:00
lollipopkit
1a3cb09ca2 fix: ssh term (#365) 2024-05-27 11:32:52 +08:00
lollipopkit
ccab4040b1 new: github actions 2024-05-25 19:29:18 +08:00
lollipopkit
ee5f4d10ea chore: update deps. 2024-05-24 21:29:03 +08:00
lollipopkit
57b83dc226 Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-05-24 21:10:46 +08:00
lollipopkit
dddec01070 opt.: snippet confirmation (#363) 2024-05-24 17:04:17 +08:00
lollipopkit
3524b059c6 fix: bakPath & lib l10n 2024-05-24 16:29:05 +08:00
PaperCube
5888cb7172 Improve backup functionality and error handling
- (Windows) Fix not selecting the right backup file in explorer
- Fix progress indicator not stopping on WebDAV failure

#188 #364
2024-05-23 20:41:56 +01:00
PaperCube
17b8bbd269 Always display app bar in SSH Page on Linux/Windows
#361
2024-05-23 17:12:31 +01:00
lollipopkit
5bcb950275 opt: toleranter on gpu parsing 2024-05-23 20:05:56 +08:00
lollipopkit
eb0100d432 opt. 2024-05-23 18:23:26 +08:00
lollipopkit
cf5810d6ca fix: no-pwd WOL 2024-05-22 22:30:08 +08:00
lollipopkit
7c3818bc51 opt.
- hideTitleBar tip
- android home widget err handle
- sftp loading dialog
2024-05-22 20:45:11 +08:00
lollipopkit
9304a0377b fix: ssh tab multi page FocusNode 2024-05-22 19:17:46 +08:00
lollipopkit
2c5886de09 new: wearos detect (#358) 2024-05-22 18:45:23 +08:00
lollipopkit
9919f9038f fix: flutter 3.22 multi-dex 2024-05-20 16:56:37 +08:00
lollipopkit
ed05bddbbc fix: gpu parse 2024-05-20 15:57:51 +08:00
lollipopkit
381acbf5ed Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-05-16 17:26:17 +08:00
lollipopkit
9eb16f4703 opt.: l10n 2024-05-16 17:25:38 +08:00
lollipopkit
eefdc9b2d1 Merge pull request #357 from FrancXPT/patch-french-translation
Patch french translation
2024-05-15 21:43:55 +08:00
Achraf BenBamoula
8c4c15584f Second pass 2024-05-15 14:38:32 +01:00
Achraf BenBamoula
7223f3d4e1 Updated french translation 2024-05-15 14:31:34 +01:00
lollipopkit
ba4abcecfb opt. 2024-05-14 23:39:17 +08:00
lollipopkit
04dfede535 opt.: migrate fl_lib 2024-05-14 22:29:37 +08:00
lollipopkit
248430e5b0 opt.: global server logo url & new {BRIGHT} param 2024-05-12 15:17:59 +08:00
lollipopkit
6b5f98cb2d fix: click blank to show fab 2024-05-10 21:46:05 +08:00
lollipopkit
5bc28a0560 opt.: sensors 2024-05-10 21:02:36 +08:00
lollipopkit
f9efd6acfa fix: sensors (#350) 2024-05-10 20:15:30 +08:00
lollipopkit
ed5bcb17ed rm: r_upgrade 2024-05-10 12:55:32 +08:00
lollipopkit
52a9cc6852 fix: WOL config edit 2024-05-10 11:30:06 +08:00
lollipopkit
d538367354 fix: logo display 2024-05-10 11:28:27 +08:00
lollipopkit
9a60e8f075 fix: auto refresh 2024-05-09 23:32:23 +08:00
lollipopkit
e2ddd48a79 feat: Wake On LAN 2024-05-09 23:27:05 +08:00
lollipopkit
b876981243 feat: manually close conn 2024-05-09 22:29:44 +08:00
lollipopkit
7767cc4b51 opt.: more friendly err tip 2024-05-09 21:50:30 +08:00
lollipopkit
131ece725a opt.: server tab navigation bar when landscape 2024-05-09 18:26:31 +08:00
lollipopkit
4d2a944310 feat: custom server logo 2024-05-09 17:08:37 +08:00
lollipopkit
91a9d5aab5 opt.: collapse custom cmd output 2024-05-09 16:03:33 +08:00
lollipopkit
dc16574a04 fix: disk parse 2024-05-09 14:51:41 +08:00
lollipopkit
8ed6a3869e opt.: server tab if landscape & ignore stderr 2024-05-09 13:39:11 +08:00
lollipopkit
faacbe088b feat: auto hide fab 2024-05-09 12:31:59 +08:00
lollipopkit
f70449d67d feat: general wake lock (#347) 2024-05-07 15:48:08 +08:00
lollipopkit
d0523c1e54 feat: keyboard-interactive auth (#349) 2024-05-07 15:22:31 +08:00
lollipopkit
026e414388 feat: wake lock (#347) 2024-04-27 15:40:23 +08:00
lollipopkit
2535c8c7c3 new: sftp search (#345) 2024-04-26 23:26:56 +08:00
lollipopkit
ece74d7552 opt. 2024-04-26 20:11:03 +08:00
lollipopkit
3237d9eb21 opt. & new: icons 2024-04-26 00:39:03 +08:00
lollipopkit
3ccb61fba2 opt. 2024-04-23 19:49:02 +08:00
lollipopkit
73f2926469 feat: turn off countly 2024-04-23 00:58:04 +08:00
lollipopkit
1249055668 feat: only one line ssh virt keys (#332) 2024-04-23 00:42:54 +08:00
lollipopkit
d312b783e9 opt.: ssh 2024-04-23 00:36:44 +08:00
lollipopkit
4044f43808 opt.: terminal selection 2024-04-22 01:19:07 +08:00
lollipopkit
d94b2a7805 fix: preferTempDev 2024-04-21 11:57:51 +08:00
lollipopkit
a0ea95b1c3 fix & opt.: prefer temperature dev 2024-04-21 01:04:43 +08:00
lollipopkit
23764f8c93 readd: jump server 2024-04-21 00:42:00 +08:00
lollipopkit
9d1df94f89 new: use browser to upgrade 2024-04-21 00:20:49 +08:00
lollipopkit
0f226b3620 new: editor softWrap (#338) 2024-04-19 20:32:06 +08:00
lollipopkit
536b7f3b2c fix: auth cancel 2024-04-19 00:13:33 +08:00
lollipopkit
1c0ea9e7bb fix: details card page 2024-04-17 00:08:00 +08:00
lollipopkit
ff8bc49074 fix: wrong hostname display (#336) 2024-04-16 00:19:00 +08:00
lollipopkit
b80bf51a61 new: update in browser (#337) 2024-04-16 00:07:00 +08:00
lollipopkit
a28fabedef opt.: server card seq page 2024-04-13 00:45:48 +08:00
lollipopkit
b989953b7a new: cpu view settings 2024-04-12 23:53:37 +08:00
lollipopkit
39cd8ff63e Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-04-12 23:33:59 +08:00
lollipopkit
57fc8c2687 chore: README 2024-04-12 00:26:00 +08:00
lollipopkit
0befb32571 Merge pull request #333 from QazCetelic/feature/dutch_localisation
Dutch localisation
2024-04-11 18:53:02 +08:00
QazCetelic
824d7c7bb6 Fix formatting errors 2024-04-11 12:49:23 +02:00
QazCetelic
a45716e0cb Dutch localisation 2024-04-11 12:46:23 +02:00
lollipopkit
64066e9622 new: ios orientation 2024-04-10 21:27:00 +08:00
lollipopkit
5836275a3f new: fullscreen mode 2024-04-10 21:23:00 +08:00
lollipopkit
11956aee00 fix: ssh page icon color 2024-04-10 20:41:00 +08:00
lollipopkit
a38cc9a1ee fix: count down btn 2024-04-10 08:23:00 +08:00
lollipopkit
107548aa36 fix: android widget id (#323) 2024-04-10 08:20:00 +08:00
lollipopkit
4d58eafc19 opt.: set min window size 2024-04-09 22:39:53 +08:00
lollipopkit
fbc6f6e887 fix: pve cert ignore (#317) 2024-04-09 08:54:00 +08:00
lollipopkit
991d91b636 opt.: only calc cpu0 2024-04-09 16:51:00 +08:00
lollipopkit
5f701980a4 fix: desktop init 2024-04-09 00:13:00 +08:00
lollipopkit
4fd82afade new: hideTitlebar & cupertinoRoute 2024-04-08 23:43:24 +08:00
lollipopkit
7d2fbde2fe opt.: cpu line chart 2024-04-08 21:31:00 +08:00
lollipopkit
819c53df7e new: cpu line chart 2024-04-08 21:24:00 +08:00
lollipopkit
aed5a63a19 opt.: only req noti perm on Android 2024-04-08 20:13:00 +08:00
lollipopkit
439208605b Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-04-07 22:55:12 +08:00
lollipopkit
3c7bb77f3e new: FIFO list impl 2024-04-07 22:55:00 +08:00
lollipopkit
f126a59ff2 opt.: add tip for upgrading pkgs (#326) 2024-04-07 17:44:47 +08:00
lollipopkit
c1a729f542 fix: ssh virt key icon color 2024-04-07 10:25:06 +08:00
lollipopkit
2f96a090c4 new: auto request noti perm 2024-04-03 11:27:06 +08:00
lollipopkit
704a93713f opt.: ignore unknown pve res type 2024-04-02 12:41:27 +08:00
lollipopkit
78e156bfb2 fix: condig dir perm (#299) 2024-04-02 12:35:05 +08:00
lollipopkit
765404f55d fix: apple privacy info 2024-04-01 14:35:38 +08:00
nezha
d08a3df440 fix(iOS): privacy info warnings when archiving 2024-03-30 20:58:20 +08:00
lollipopkit
3ad1e7a196 new: customCmds tips 2024-03-30 17:34:02 +08:00
lollipopkit
dacc042a85 fix: repeatedly auth (#294 #320) 2024-03-28 11:48:01 +08:00
lollipopkit
f5d5bf9c37 fix & opt.
- fix: db type err
- opt.: server detail page `customCmd` card
2024-03-28 11:10:12 +08:00
lollipopkit
bfece9ae7d opt.: ssh tab top padding 2024-03-25 16:41:34 +08:00
lollipopkit
b6a797c993 new: custom cmds (#313) 2024-03-25 15:03:39 +08:00
lollipopkit
96866565c4 new: option of ignoring pve cert (#317) 2024-03-23 12:16:46 +08:00
lollipopkit
6ed2e558cb new: add PrivacyInfo for ios/macos 2024-03-22 23:15:04 +08:00
lollipopkit
2681e4eb28 opt. & fix
- fix: pve text color
- opt.: rm ssh tab appbar
- opt.: ssh tab only display fab on `Add` page
2024-03-22 22:52:31 +08:00
lollipopkit
7feebb8c1f try: fix repeated auth (#294) 2024-03-21 17:24:07 +08:00
lollipopkit
32da0c8283 opt.: pve err 2024-03-21 17:06:49 +08:00
lollipopkit
e11d505409 opt.: rm settings of backup 2024-03-20 14:29:22 +08:00
lollipopkit
fae3a20a9e new: VersionRelated 2024-03-20 14:26:22 +08:00
lollipopkit
d5ce11c788 new: docker icon 2024-03-20 14:24:05 +08:00
lollipopkit
cedade1d01 opt.: only calc real-disk's speed (#314) 2024-03-19 16:39:37 +08:00
lollipopkit
7edef87a4f opt.: pve dashboard (#307) 2024-03-19 16:26:53 +08:00
lollipopkit
48fdf4cc84 new: pve ctrl (#307) 2024-03-19 15:00:28 +08:00
lollipopkit
2597f99571 new: pve dashboard (#307) 2024-03-19 11:11:30 +08:00
lollipopkit
26264ecdea new: pve (#307) 2024-03-18 18:34:25 +08:00
lollipopkit
8bfb0eb9e0 opt.: server item onTap when err occurs (#310) 2024-03-16 23:52:11 +08:00
lollipopkit
f654557fae fix: NAS disk amount 2024-03-16 10:55:12 +08:00
lollipopkit
cf3a246520 opt.: ignore all disk not start with /dev 2024-03-15 18:22:32 +08:00
lollipopkit
5993231c2a opt. & fix 2024-03-15 18:01:24 +08:00
lollipopkit
7be9c5fb9c fix: ssh page keyboard type (#308) 2024-03-15 17:30:53 +08:00
lollipopkit
98bee2aae7 opt.: term padding 2024-03-13 14:08:27 +08:00
lollipopkit
3747e2fc40 new: compatibility of Chinese Android safe keyboard 2024-03-13 12:18:33 +08:00
lollipopkit
150c8f014b opt. & new
new: term respond to tap event
opt.: term selection
2024-03-13 10:55:17 +08:00
lollipopkit
e361e509af fix: bsd status (#284) 2024-03-12 15:47:18 +08:00
lollipopkit
0ad7b4f8b8 fix: disk io (#304) 2024-03-12 15:10:53 +08:00
lollipopkit
13df750473 new: pkg supports 'deepin' (#306) 2024-03-12 14:58:47 +08:00
lollipopkit
baffe6dbe0 feat: separate ssh term theme setting (#305) 2024-03-12 14:56:19 +08:00
lollipopkit
f187bc6ccf new: remember pwd in mem 2024-03-11 10:15:24 +08:00
lollipopkit
5e9f0bf8a1 new: bulk import servers (#301) 2024-03-10 16:20:27 +08:00
lollipopkit
ff1780bb04 new: ios widget l10n 2024-03-09 17:43:28 +08:00
lollipopkit
96a0b9cfd2 opt.: use cdn as default 2024-03-09 17:43:15 +08:00
lollipopkit
519ca23556 opt.: container asks pwd repeatly 2024-03-08 17:14:06 +08:00
lollipopkit
2ddc29f45e new: setting of termCursor type 2024-03-08 17:03:11 +08:00
lollipopkit
b9aa4ba124 new: useCDN option 2024-03-08 15:52:02 +08:00
lollipopkit
7b74d83c23 new: ssh page zoom (#256) 2024-03-08 15:18:11 +08:00
lollipopkit
9ad710fade fix #300 2024-03-08 14:10:00 +08:00
lollipopkit
58f0a1fade fix #298 2024-03-08 14:06:19 +08:00
lollipopkit
c65525ac86 new: macos l10n 2024-03-08 13:55:36 +08:00
lollipopkit
466ec45f7b new: 日本語 2024-03-07 11:12:19 +08:00
lollipopkit
9c6e6b8be8 new: ru es pt l10n 2024-03-06 17:55:20 +08:00
lollipopkit
157d7239c6 Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-03-06 15:33:06 +08:00
lollipopkit
602ef60bf0 opt.: replace first with firstOrNull 2024-03-06 15:33:00 +08:00
lollipopkit
fc00b4b961 opt.: display total disk space on server tab 2024-03-06 15:31:54 +08:00
lollipopkit
4e6ea086e3 new: only calc non-virt net iface (#295) 2024-03-06 14:59:37 +08:00
lollipopkit
2e31076171 Merge pull request #296 from upbeat-backbone-bose/main
Update analysis checkout action version to avoid build warnning message
2024-03-06 14:42:18 +08:00
debian-go
14b8608be1 Update analysis checkout action version to avoid build warnning message 2024-03-06 12:18:19 +08:00
lollipopkit
5baf683278 readd: double column on server page 2024-03-06 11:35:24 +08:00
lollipopkit
44a431c19f rm: refresh key (#291) 2024-03-01 10:57:33 +08:00
lollipopkit
183fc7f160 opt.: loading dialog 2024-02-29 18:12:44 +08:00
lollipopkit
2137bfbcd0 new: prefer temperature device (#285) 2024-02-26 09:57:59 +08:00
lollipopkit
1f586a2c31 new: sensors view (#285) 2024-02-23 12:33:42 +08:00
lollipopkit
fad3f41e58 opt.: install script 2024-02-23 11:01:47 +08:00
PaperCube
37dc1056c9 Build script QoL update
- make.dart: Added an alias "apk" for "android"
- Prevent reading commit message s.t. commit counting will not malfunction on Windows
- build.gradle: Check key.properties and storeFile prior to building
- build.gradle: Do not specify abiFilters when --split-per-abi is specified via CLI
2024-02-22 12:31:23 +00:00
PaperCube
2993e1236a Add missing android notification permission 2024-02-22 12:28:16 +00:00
lollipopkit
8e484a575c readd: server tab double column (#277) 2024-02-20 18:02:08 +08:00
lollipopkit
ba564a886b new: pick dialog support tags 2024-02-20 16:13:36 +08:00
lollipopkit
1a64dc5cba readd: server tags 2024-02-20 15:40:14 +08:00
lollipopkit
f4bf7a4d5e new: auto refresh container page 2024-02-20 15:16:40 +08:00
lollipopkit
813cfb56a2 opt.: snippet auto run ids 2024-02-20 15:03:45 +08:00
lollipopkit
828752e354 new: container stats (#272) 2024-02-20 15:00:13 +08:00
lollipopkit
483bf51c2f opt.: webdav sync 2024-02-20 11:11:36 +08:00
lollipopkit
7557bacb60 new: keepStatusWhenErr 2024-02-20 10:44:05 +08:00
lollipopkit
8fa3a2d0e4 fix: linux build 2024-02-19 10:57:49 +08:00
lollipopkit
ab058cc094 fix: bad check of script writing result (#275) 2024-02-18 17:34:42 +08:00
lollipopkit
b802c97a8d new: settings of containerTrySudo usePodman 2024-02-18 16:54:13 +08:00
lollipopkit
61ddb56639 new: auto run snippet (#67) 2024-02-18 15:00:41 +08:00
lollipopkit
8bfea497a0 chore: migrate flutter 3.19 2024-02-18 12:46:39 +08:00
lollipopkit
b1b8332a7c Merge branch 'main' of github.com:lollipopkit/flutter_server_box 2024-02-18 10:33:55 +08:00
lollipopkit
fb2809e4c2 opt. & fix 2024-02-18 10:33:49 +08:00
PaperCube
21860daf41 Fix sudo pswd dialog neither re-appearing nor closing session
- Fixed that when empty password was provided the dialog should have stopped the session
- Fixed that when wrong password was provided the dialog should have appeared again but it didn't
2024-02-17 01:46:02 +00:00
PaperCube
52e94e902b Option in settings to disable SFTP folders-first 2024-02-17 00:58:57 +00:00
PaperCube
8d722da799 SFTP supports reversed sorting 2024-02-17 00:26:01 +00:00
PaperCube
18b33ee0a2 Sort files with directories first in SFTP 2024-02-16 17:48:03 +00:00
PaperCube
1d8f6bed6b Experimental support for haptic feedback 2024-02-16 13:48:57 +00:00
PaperCube
6b41459281 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2024-02-16 12:39:08 +00:00
PaperCube
b34b504bf3 Auto-close the tab where session is done 2024-02-16 12:38:14 +00:00
lollipopkit
026c26cea7 Merge pull request #282 from PaperCube/main 2024-02-15 20:06:57 +08:00
PaperCube
c360dd7f84 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2024-02-15 11:13:34 +00:00
lollipopkit
e20adee0e2 opt.: seq settings (#273) 2024-02-15 16:44:41 +08:00
lollipopkit
2c79c25436 rm: fullscreen mode (#271) 2024-02-15 15:51:06 +08:00
lollipopkit
d605db5c8f fix: docker version (#276) 2024-02-15 15:49:07 +08:00
PaperCube
1f69f88b81 Docker: Adaptive sudo 2024-02-14 15:02:59 +00:00
PaperCube
71e6e18e09 Fix: bad detection of docker installation on fish 2024-02-13 22:15:00 +00:00
PaperCube
694854a89f Rework shell installer script writer s.t. fish shell doesn't rely on sftp 2024-02-13 21:03:14 +00:00
lollipopkit
7c816ec20a Merge pull request #281 from PaperCube/main 2024-02-13 12:46:57 +08:00
PaperCube
b2b5c21cf0 fix: redundant punctuation in some languages 2024-02-13 01:55:15 +00:00
PaperCube
c796cf4009 Fix "PEM header must end with -----" by standardizing CRLF 2024-02-13 01:25:40 +00:00
lollipopkit
4d78f1b11a fix: icloud upload (#267) 2024-02-02 22:50:27 +08:00
lollipopkit
991189dbca fix: disk used text (#268) 2024-02-02 21:39:38 +08:00
lollipopkit
a1af24be47 fix: empty disk list on busybox 2024-02-01 17:31:04 +08:00
lollipopkit
17c50000db new: use foreground service to keep ssh conn (#265) 2024-02-01 17:30:21 +08:00
lollipopkit
6f3c916273 opt.: ssh alive 2024-02-01 14:35:15 +08:00
lollipopkit
3d5ce4b863 new: clipboard backup (#263) 2024-02-01 11:57:18 +08:00
lollipopkit
3093230400 new: participants 2024-01-30 16:20:30 +08:00
lollipopkit
5b0081d914 chore: README 2024-01-30 14:43:55 +08:00
lollipopkit
a117e5fd77 fix: ssh page 2024-01-30 11:29:00 +08:00
lollipopkit
5168995ed9 fix: ssh page pop (#261) 2024-01-29 13:30:49 +08:00
lollipopkit
e04fede462 fix: ssh virt keys (#260) 2024-01-29 10:55:33 +08:00
lollipopkit
d1441fbafe fix 2024-01-28 16:47:57 +08:00
lollipopkit
b9640c380f opt.: debug page (#259) 2024-01-28 15:43:11 +08:00
lollipopkit
799a1ac5f0 opt.: reconnect logic (#258) 2024-01-28 14:53:48 +08:00
lollipopkit
2e11d8827e fix: store type 2024-01-27 23:14:46 +08:00
lollipopkit
b08265221f fix: backup merge 2024-01-27 21:11:40 +08:00
lollipopkit
dacf8f0864 chore: macos icons 2024-01-26 21:05:07 +08:00
lollipopkit
6c08b7b45d fix: sftp download/upload (#255) 2024-01-26 16:54:48 +08:00
lollipopkit
9edbc5cc89 fix: disk size display 2024-01-25 22:34:11 +08:00
lollipopkit
47560173f9 fix: snippet tag 2024-01-25 20:49:40 +08:00
lollipopkit
292a29a611 opt.: backup restore 2024-01-25 20:00:40 +08:00
lollipopkit
c910696735 fix: webdav restore & container page UI 2024-01-23 16:04:26 +08:00
lollipopkit
2ead60a13a fix: linux build script 2024-01-22 17:45:17 +08:00
lollipopkit
83dccfda1a opt.: container status 2024-01-21 19:03:31 +08:00
lollipopkit
1434556e0b new: iperf 2024-01-21 18:53:17 +08:00
lollipopkit
50d6ed919b opt.: disk size (#252) 2024-01-21 18:01:11 +08:00
lollipopkit
362dcdf288 opt.: server status update interval 2024-01-21 17:45:01 +08:00
lollipopkit
7414dcc8da new: snippet fmt 2024-01-21 17:42:43 +08:00
lollipopkit
07cc0a22e8 opt. 2024-01-21 15:41:35 +08:00
lollipopkit
e57b63a76f opt.: multi process 2024-01-21 15:30:50 +08:00
lollipopkit
50bcabbc54 new: podman 2024-01-21 15:12:43 +08:00
lollipopkit
7156f08eb8 new: control server detail page cards 2024-01-19 17:32:03 +08:00
lollipopkit
1f654fb4a6 chore: README 2024-01-16 15:01:34 +08:00
lollipopkit
a26efc5ca6 fix: gpu view 2024-01-16 12:06:35 +08:00
lollipopkit
ee96f2696e opt.: file view (#249) 2024-01-16 11:42:30 +08:00
lollipopkit
9eeacb3bdd fix: android home widget blank 2024-01-15 18:46:40 +08:00
lollipopkit
df800aba70 fix: CRLF of private key (#7) 2024-01-14 21:32:32 +08:00
lollipopkit
11dca4c37c fix: restore logic 2024-01-14 18:50:25 +08:00
lollipopkit
460f3f957e opt.: auto add date for manual webdav backup 2024-01-11 18:37:57 +08:00
lollipopkit
7032677def chore: add contributors 2024-01-06 13:39:17 +08:00
lollipopkit
c337e959b5 fix: ssh term deletion on safe keyboard (#242) & new: bgRunTip 2024-01-05 22:14:00 +08:00
lollipopkit
b442e0f914 new: setting of default collapse 2024-01-05 21:58:43 +08:00
lollipopkit
43fb481aee fix: follow system color scheme 2024-01-05 21:00:00 +08:00
lollipopkit
9f299079f8 Merge pull request #245 from FrancXPT/main 2023-12-30 10:48:38 +08:00
FrancXPT
aa0f941624 generate 2023-12-29 17:23:03 +01:00
Achraf BenBamoula
cca3a35229 Added French translation 2023-12-29 16:48:39 +01:00
Achraf BenBamoula
23783ae411 add french file 2023-12-29 16:41:43 +01:00
lollipopkit
72a2a392c3 Merge pull request #243 from dccif/main 2023-12-29 10:02:15 +08:00
dccif
1d9894ce5b opt.:try add high refresh rate support 2023-12-28 23:24:33 +08:00
lollipopkit
5284ceefd6 opt. 2023-12-27 11:44:45 +08:00
lollipopkit
3a3ba4de37 opt. & rm: server detail cards seq 2023-12-25 14:02:46 +08:00
lollipopkit
527e161264 opt.: battery status 2023-12-21 17:34:04 +08:00
lollipopkit
14260fa180 fix: init icloud sync (#239) 2023-12-21 14:14:29 +08:00
lollipopkit
e686387d88 opt.: docker rm container -f & font setting item 2023-12-21 14:06:18 +08:00
lollipopkit
4a93b326db new: more battery data & fix: auto reload 2023-12-20 17:26:04 +08:00
lollipopkit
7283c968ae opt.: server batch delete & fullscreen 2023-12-20 14:02:59 +08:00
lollipopkit
6924290626 opt. 2023-12-20 11:34:18 +08:00
lollipopkit
eec13678a1 fix: webdav 2023-12-19 15:24:21 +08:00
lollipopkit
2b1b6c7afb new & opt.: server page font size 2023-12-19 14:27:59 +08:00
lollipopkit
0d1a720f03 new: custom titlebar on linux/win 2023-12-19 11:00:00 +08:00
lollipopkit
48bc6da7b5 new: battery (#235) 2023-12-18 17:43:38 +08:00
lollipopkit
dd2555fc3f fix: sftp upload (#175) 2023-12-18 16:17:57 +08:00
lollipopkit
3ff94413e4 chore: README 2023-12-15 17:40:27 +08:00
lollipopkit
c2afe134f6 opt.: temperature display 2023-12-15 12:05:46 +08:00
lollipopkit
ee18b85108 opt.: tag switcher 2023-12-15 12:01:55 +08:00
lollipopkit
f10c5b9ea8 fix: net dev (#234 #236) 2023-12-15 11:37:34 +08:00
lollipopkit
54c75ecbe5 fix: restore loop & opt. 2023-12-12 16:16:15 +08:00
lollipopkit
2200ff98d7 chore: README 2023-12-12 14:18:09 +08:00
lollipopkit
47280b1339 new: bakup includes history 2023-12-11 11:37:01 +08:00
lollipopkit
2b3f70393b new: switch of displaying pwd 2023-12-11 11:31:05 +08:00
lollipopkit
ce9929e93f opt. 2023-12-11 11:13:49 +08:00
lollipopkit
73752bffc3 opt.: backup & titlebar 2023-12-09 18:48:22 +08:00
lollipopkit
b2eb96ec16 new: no titlebar on desktop 2023-12-09 16:31:18 +08:00
lollipopkit
cd9d5567fb rm: vnc 2023-12-06 11:31:00 +08:00
lollipopkit
8a3fd342c6 opt.: upgrade linter & fix lint issues 2023-12-06 11:09:05 +08:00
lollipopkit
143cb1e7c1 opt.: sync switch 2023-12-05 10:49:14 +08:00
lollipopkit
03b9a46a4c opt.: webdav sync logic 2023-12-04 15:11:12 +08:00
lollipopkit
5a982ae32e fix: reload after restoring 2023-12-04 14:40:11 +08:00
lollipopkit
22901bb856 opt.: detect sync conflict 2023-12-04 14:36:32 +08:00
lollipopkit
38cdef9458 new: webdav sync test 2023-12-04 14:21:20 +08:00
lollipopkit
2dc86a9da2 new: webdav sync 2023-12-04 13:39:13 +08:00
lollipopkit
3524d92013 opt.: icloud sync (#187) 2023-12-04 10:44:51 +08:00
lollipopkit
5035fdce86 new: vnc (beta #227) 2023-12-03 14:16:07 +08:00
lollipopkit
7c2480f027 fix: servers batch del 2023-12-03 14:14:30 +08:00
lollipopkit
66d344c910 chore: screenshots 2023-12-03 13:16:51 +08:00
lollipopkit
440dabfca8 opt.: server tab 2023-12-02 17:35:14 +08:00
lollipopkit
fc0c9b3a49 opt.: android only arm64 & ssh tab page 2023-12-02 00:21:07 +08:00
lollipopkit
90403b655b new: gpu percent / fanSpeed 2023-11-27 17:54:57 +08:00
lollipopkit
ad49593fe3 opt. 2023-11-27 17:35:15 +08:00
lollipopkit
05de760c41 new: gpu status (#201) 2023-11-27 16:49:26 +08:00
lollipopkit
ac94b33ad4 init: nvdia-smi 2023-11-26 13:45:08 +08:00
lollipopkit
f9f419f03f new: edit docker host on err 2023-11-23 22:22:56 +08:00
lollipopkit
d74819b198 new: add back ping 2023-11-22 20:18:46 +08:00
lollipopkit
d1d11e7b70 new: force delete docker container 2023-11-22 20:17:19 +08:00
lollipopkit
b696cdff08 fix: docker cmd wrap 2023-11-20 16:57:31 +08:00
lollipopkit
f093853d21 fix: docker (#162 #167) 2023-11-20 13:28:17 +08:00
lollipopkit
4153713ce7 opt: ssh tab & del script 2023-11-19 15:49:47 +08:00
lollipopkit
1a49c7870c fix: temporarily disable jump server 2023-11-19 14:47:27 +08:00
lollipopkit
691471dae5 new: setting of preferDiskAmount 2023-11-19 13:34:06 +08:00
lollipopkit
5660c0e0db new: disk view option & chore: flutter 3.16 2023-11-19 13:15:12 +08:00
lollipopkit
d3a6b1639c fix #214 2023-11-13 10:42:42 +08:00
lollipopkit
b2f6094a1d opt.: ssh page 2023-11-13 10:31:59 +08:00
lollipopkit
55ba013977 opt.: ssh tab 2023-11-12 17:09:43 +08:00
lollipopkit
790812901d new: ssh tab 2023-11-12 15:58:54 +08:00
lollipopkit
8693ce07a2 new: auto amoled 2023-11-07 18:22:31 +08:00
lollipopkit
2133302397 new: delete scripts when delete server 2023-11-07 18:10:38 +08:00
lollipopkit
e80f6d4cc2 opt.
- spi: use ip as name if empty
- server tab ui
- only display io speed when available
2023-11-03 22:13:18 +08:00
lollipopkit
a1b9cecebb new: manual refresh failed servers 2023-11-03 10:38:06 +08:00
lollipopkit
a9f9a1650e new: secure store 2023-11-03 10:23:57 +08:00
lollipopkit
e80d115e4f opt.: server detail page 2023-11-02 15:27:17 +08:00
lollipopkit
be714bec12 fix #207 2023-11-02 13:43:49 +08:00
lollipopkit
402045a53d opt.: display name of server func btns 2023-11-02 13:43:15 +08:00
lollipopkit
220f4c6723 opt.: server provider 2023-11-02 13:41:28 +08:00
lollipopkit
9000228698 opt.: server detail page 2023-11-01 15:25:09 +08:00
lollipopkit
a5341b00c1 new: tap server tab disk io view to switch 2023-11-01 14:59:54 +08:00
lollipopkit
37e5c4d092 new: tap server tab net io view to switch type 2023-11-01 14:38:51 +08:00
lollipopkit
a363e97dd4 opt.: display server func btns' name 2023-11-01 11:53:11 +08:00
lollipopkit
3d47390bf1 opt.: detail page cpu collapse / expand 2023-11-01 11:01:09 +08:00
lollipopkit
040cd6a29f new: detail page net sort 2023-10-31 20:13:57 +08:00
lollipopkit
b4dbde9a80 fix: swap 2023-10-31 19:53:30 +08:00
lollipopkit
37df072711 new: detail status page 2023-10-31 19:41:54 +08:00
lollipopkit
f2edd14117 fix: sftp mission error display 2023-10-31 18:50:37 +08:00
lollipopkit
bff799afd9 fix: jump server (#190) 2023-10-30 17:10:29 +08:00
lollipopkit
4971239bfc fix: macos build 2023-10-30 16:17:52 +08:00
lollipopkit
2b52e8e6ee fix (#195) & opt.
- fix: debug provider color
- fix: can't write script through SFTP (#195)
- opt.: go next refresh only after current refresh task is done
2023-10-30 12:01:07 +08:00
lollipopkit
eb0b219505 opt. (#202) 2023-10-30 11:19:05 +08:00
lollipopkit
1023f092f6 chore: dart 3+ 2023-10-28 21:52:18 +08:00
lollipopkit
7de5987355 fix: store item type & update file check 2023-10-28 19:02:54 +08:00
lollipopkit
c3ca5725a4 fix: constantly write script by sftp 2023-10-27 22:13:45 +08:00
lollipopkit
92bb653e81 fix & opt.
- fix: `sftpGoPath`
- opt.: `PersistentStore.toJson`
- rm: `first` store
- opt.: log print
2023-10-27 18:13:02 +08:00
lollipopkit
6579190ae4 opt: Shares 2023-10-26 10:18:37 +08:00
lollipopkit
02be466954 opt.: linux/win window size & server reconnect 2023-10-22 15:47:22 +08:00
lollipopkit
86c6b149d7 fix: windows bakup (#188) 2023-10-22 14:27:31 +08:00
lollipopkit
307ec25524 new: jump serevr (#190) 2023-10-22 14:20:13 +08:00
lollipopkit
e89ccd7ad4 fix: can't restore settings from backup 2023-10-21 19:02:21 +08:00
lollipopkit
bcf7e2125c fix #189 2023-10-21 18:38:41 +08:00
lollipopkit
476e0d5542 fix: ios home widget 2023-10-21 18:00:29 +08:00
lollipopkit
4984953287 default: mac window size & opt.: snippet result 2023-10-18 19:57:47 +08:00
lollipopkit
cf4f74dcfc opt.: snippet result 2023-10-18 19:14:06 +08:00
lollipopkit
cf231f9fe6 opt.: backup page 2023-10-17 20:27:47 +08:00
lollipopkit
8ce2cc579c new: icloud manual 2023-10-17 20:03:55 +08:00
lollipopkit
439aa913b6 update: win dl link 2023-10-15 20:39:17 +08:00
lollipopkit
2e17054037 opt.: ios home widget 2023-10-15 16:56:53 +08:00
lollipopkit
9cf9a6fbc5 new: ios interactive home widget (#82 #185) 2023-10-15 13:32:46 +08:00
lollipopkit
93b52655b5 update: README 2023-10-14 23:20:07 +08:00
lollipopkit
a397f81988 new: open sftp with last viewed path 2023-10-14 23:03:12 +08:00
lollipopkit
c9d54f4fea new: ExpandTile & fix: macos Podfile 2023-10-14 22:28:18 +08:00
lollipopkit
79df3c847e #177 update: README 2023-10-14 20:04:23 +08:00
lollipopkit
533e32abac new: win/linux update 2023-10-14 19:14:21 +08:00
lollipopkit
43506e19f1 new: linux build 2023-10-14 19:13:45 +08:00
lollipopkit
9a4a7cef4c fix: SystemType(#184) & opt.: ios home widget 2023-10-14 13:26:15 +08:00
lollipopkit
930697d033 #82 #185 new: StandBy 2023-10-13 22:17:32 +08:00
lollipopkit
70f6e1d22b opt.: bio auth setting 2023-10-13 13:13:24 +08:00
lollipopkit
3cce2c1e1b opt.: temperature parse 2023-10-13 13:12:21 +08:00
lollipopkit
a2bb4f1287 opt.: shell_func only get useful mem data 2023-10-13 12:48:54 +08:00
lollipopkit
7388ad4524 new: setting of editor highlight 2023-10-12 13:28:01 +08:00
lollipopkit
a43a000c68 #163 #176 #184 opt.: wrap with try-catch 2023-10-12 13:12:19 +08:00
lollipopkit
7148015037 update: README 2023-10-12 12:10:56 +08:00
lollipopkit
c90cd4ce1a update README / LICENSE 2023-10-12 11:27:02 +08:00
lollipopkit
da65babd56 opt. 2023-10-05 21:17:04 +08:00
lollipopkit
a23a284d1a new: picker & opt. rm -r 2023-10-05 19:51:24 +08:00
lollipopkit
ef144e27cb opt.: confirm of suspend & etc. 2023-10-05 17:08:21 +08:00
lollipopkit
153bfc191d opt.: sftp rename 2023-09-25 19:47:20 +08:00
lollipopkit
4d06a52e99 new & opt.
- new: support suspend and WOL #172
- opt.: `execWithPwd` when cancel
- opt.: extentions
2023-09-25 18:51:14 +08:00
lollipopkit
df84aeb8b2 chore: sync tip 2023-09-25 17:43:45 +08:00
lollipopkit
7bbaa5f5ab fix: auto reload after restoring 2023-09-24 15:53:53 +08:00
lollipopkit
4619b6ef9c #170 fix & opt.
`VirtKeyProvider` only used in ssh_term.dart`
2023-09-24 15:20:56 +08:00
lollipopkit
1194a87c76 fix
- fix: same name snippet caused err
- fix: auto load servers from db after restoring
2023-09-24 14:51:51 +08:00
lollipopkit
5a9fd74470 opt. 2023-09-23 10:54:42 +08:00
lollipopkit
f2981c5b15 fix #168 2023-09-23 10:36:30 +08:00
lollipopkit
09576285c9 #168 fix 2023-09-21 10:13:23 +08:00
lollipopkit
e928a29353 opt.: no app restart required 2023-09-21 20:08:54 +08:00
lollipopkit
cc4a05bf11 new: rebuild impl 2023-09-21 19:24:05 +08:00
lollipopkit
453eb200a8 opt.: logger & shell script 2023-09-19 19:36:07 +08:00
lollipopkit
e74a6cf3d5 fix: xcode 15 incompatibility 2023-09-19 19:01:37 +08:00
lollipopkit
96d5b750ba fix & opt.
fix: servers will only refresh once if `spi.autoConnect` is false
opt.: `UrlText` algo
2023-09-19 13:31:06 +08:00
lollipopkit
f47aacaf6f opt.: OS type 2023-09-17 15:21:12 +08:00
lollipopkit
603e226995 tidy: settings page 2023-09-17 14:30:34 +08:00
lollipopkit
1edd54b4df opt.: ios / watch 2023-09-17 00:26:44 +08:00
lollipopkit
cf943bf41f fix: bio auth on Android 2023-09-16 22:51:22 +08:00
lollipopkit
6c6c9cdc98 #150 new: net view sort 2023-09-16 21:46:54 +08:00
lollipopkit
3c3ca33cda opt.: watch app 2023-09-16 21:43:31 +08:00
lollipopkit
f51934396f new: watchOS phone end 2023-09-16 18:45:11 +08:00
lollipopkit
ef880c67af new: watchOS watch end app 2023-09-16 17:53:34 +08:00
lollipopkit
f74c5cd9ba fix: ios pbxproj 2023-09-16 17:30:18 +08:00
lollipopkit
8152829c89 #165 new: bio auth 2023-09-16 17:26:40 +08:00
lollipopkit
2e8761f533 opt.: divide platform 2023-09-16 17:06:47 +08:00
lollipopkit
2a6c2f7c72 opt.: method channels 2023-09-16 16:56:11 +08:00
lollipopkit
c07958fa73 new: Providers 2023-09-14 15:13:11 +08:00
lollipopkit
eb158e63a2 opt.: mem usage 2023-09-13 15:22:48 +08:00
lollipopkit
278d5984b2 opt. 2023-09-13 14:28:02 +08:00
lollipopkit
6c84d2f52b opt.: Loggers 2023-09-13 13:41:09 +08:00
lollipopkit
269c2a0a10 opt.: backup 2023-09-13 13:05:19 +08:00
lollipopkit
9ce7138d9b new: manual icloud sync 2023-09-12 14:02:31 +08:00
lollipopkit
700322c603 fix: mark sftp mission as completed when dispose 2023-09-12 13:26:14 +08:00
lollipopkit
730a62831b #157 opt. 2023-09-11 23:23:46 +08:00
lollipopkit
932a9ef3ff fix: server detail cards order 2023-09-11 22:54:47 +08:00
lollipopkit
6e4aa8e56e #157 opt.: icloud sync 2023-09-11 22:39:44 +08:00
lollipopkit
82b0abaab3 #161 opt. 2023-09-11 21:55:27 +08:00
lollipopkit
e4fd75ac5a #157 new: icloud sync 2023-09-11 19:20:29 +08:00
lollipopkit
ddaee7c2f3 opt.: primaryColor 2023-09-10 11:13:02 +08:00
lollipopkit
b187ec88be #159 opt. 2023-09-08 20:05:43 +08:00
lollipopkit
84e99048ab #158 new: follow system color 2023-09-08 19:47:43 +08:00
lollipopkit
7c853e3ea5 #159 opt.: diff shell path 2023-09-08 19:09:53 +08:00
lollipopkit
1f29fde5d2 fix: macOS app zip struct 2023-09-08 18:17:57 +08:00
lollipopkit
6e4cc8eb28 new: note of Snippet 2023-09-07 19:17:49 +08:00
lollipopkit
4bdf3694c3 new: snippet for installing ServerBoxMonitor 2023-09-07 19:05:46 +08:00
lollipopkit
03f9e88bad new: setting of doubleColumn on Desktop 2023-09-07 18:54:35 +08:00
lollipopkit
b55b8bf831 opt.: performance 2023-09-07 18:41:18 +08:00
lollipopkit
3b698fc062 chore: upgrade deps for CVE-2023-39139 2023-09-07 17:14:22 +08:00
lollipopkit
567f1442f5 #156 opt.: show error of settings json 2023-09-07 16:41:38 +08:00
lollipopkit
459b647b68 #156 new: setting of textFactor 2023-09-06 21:05:30 +08:00
lollipopkit
806a223e00 fix: tag changed without saving 2023-09-06 20:54:17 +08:00
lollipopkit
f3970b9fb2 opt.: server edit page 2023-09-06 18:22:35 +08:00
lollipopkit
191ffe0173 #155 new: option autoConnect 2023-09-05 21:14:39 +08:00
lollipopkit
e32f7536b5 opt.: use ssh term to upgrade pkg 2023-09-03 17:36:12 +08:00
lollipopkit
61218f9ca3 new: shutdown | reboot on rootless user 2023-09-03 16:40:29 +08:00
lollipopkit
ab09fa6614 fix: server card height 2023-09-03 15:43:08 +08:00
lollipopkit
b417cca906 opt.: sftp rm -rf 2023-09-01 12:57:48 +08:00
lollipopkit
acaec6e2d8 new: fast poweroff | reboot (#119) 2023-09-01 12:36:40 +08:00
lollipopkit
28660b82ef new: setting item of record history 2023-08-30 19:33:06 +08:00
lollipopkit
f4b6326652 new: custom timeout 2023-08-30 19:07:32 +08:00
lollipopkit
c899a84b29 new: delete all in settings page 2023-08-30 18:52:28 +08:00
lollipopkit
be62767d45 opt.: handle situation that font file not existing 2023-08-30 17:15:36 +08:00
lollipopkit
2f4b522189 new: upgrade on macos 2023-08-30 17:06:24 +08:00
lollipopkit
8004c41094 #146 new: option of server tab old ui 2023-08-30 15:41:41 +08:00
lollipopkit
f7278fc890 #144 opt.: only show decompress option when valid 2023-08-30 13:52:25 +08:00
lollipopkit
685faa0627 #152 fix 2023-08-30 13:44:19 +08:00
lollipopkit
1cdcff120d fix: backup restore failed 2023-08-29 10:53:38 +08:00
lollipopkit
57b72ae440 fix: avoid display cutout in fullscreen mode 2023-08-29 10:38:57 +08:00
lollipopkit
2062bf082d #151 fix 2023-08-29 10:28:55 +08:00
lollipopkit
a302050431 fix: null dist 2023-08-28 22:03:21 +08:00
lollipopkit
d9c26e01f4 #148 fix 2023-08-28 19:26:17 +08:00
lollipopkit
d06ffdacd0 new: backup support settings 2023-08-28 18:21:43 +08:00
lollipopkit
0420793e21 new: edit settings in json 2023-08-28 18:08:26 +08:00
lollipopkit
11c3bf795b opt.: store 2023-08-28 18:07:22 +08:00
lollipopkit
e20f2d32e8 #148 fix: alpine process 2023-08-28 17:11:58 +08:00
lollipopkit
e1284feae6 opt.: more params of editor page 2023-08-28 15:22:12 +08:00
lollipopkit
a53ebb334b #147 fix 2023-08-28 15:16:06 +08:00
lollipopkit
7abadfb5a6 new & fix
- new: switch of sftp `rm -rf` dir
- fix: sftp upload
- fix: sftp uploading progress
- opt.: editor will save content if is editing file
2023-08-27 00:10:01 +08:00
lollipopkit
65de4a8ca5 #144 new: sftp decompress 2023-08-26 23:07:16 +08:00
lollipopkit
7d4c30732a opt. 2023-08-24 21:24:27 +08:00
lollipopkit
536fbedda2 opt.: use new routes 2023-08-23 21:51:50 +08:00
lollipopkit
93f6368753 new: sftp jump history 2023-08-23 20:37:29 +08:00
lollipopkit
ad11b9fcc5 opt.: route 2023-08-22 21:25:51 +08:00
lollipopkit
3475e6ec91 opt.: bsd cpu 2023-08-22 21:18:46 +08:00
lollipopkit
417cb4c89d #43 new: bsd base support 2023-08-22 21:07:17 +08:00
lollipopkit
e3f2b211a9 new & opt.
opt.: input field auto focus
opt.: snippet page top padding
new: setting of editor font size
2023-08-21 13:54:09 +08:00
lollipopkit
6a2191ff92 opt.: cntering btn text 2023-08-21 13:04:07 +08:00
lollipopkit
8111a83703 opt. 2023-08-20 23:30:44 +08:00
lollipopkit
e643378249 update: README 2023-08-20 22:55:32 +08:00
lollipopkit
d663106f9f opt.: UI 2023-08-20 22:40:39 +08:00
lollipopkit
d5f8cf6cf0 new: animation of circle_chart 2023-08-20 21:59:28 +08:00
lollipopkit
a0287a9f36 #139 fix 2023-08-20 21:34:32 +08:00
lollipopkit
9c8ed3dfa8 opt.: TagBtn 2023-08-20 21:33:27 +08:00
lollipopkit
f02cca1981 opt.: move logic of reorder to settings page 2023-08-20 20:14:02 +08:00
lollipopkit
46cc363413 #94 new: option of moving out server func btns 2023-08-20 19:07:20 +08:00
lollipopkit
a59286473f opt.
- move out btns from more vert btn (docker, sftp & etc.)
- redesigned routes
- confirmation before deleting private key
2023-08-20 18:30:08 +08:00
lollipopkit
f88f5c3bda Merge pull request #141 from lollipopkit/lollipopkit/issue140
#140 feat: double columns of servers tab
2023-08-20 14:05:17 +08:00
lollipopkit
b5d8b8771e #140 feat: double columns of servers tab 2023-08-20 14:01:41 +08:00
lollipopkit
35e9ecedd0 Merge pull request #137 from lollipopkit/lollipopkit/issue136
Lollipopkit/issue136
2023-08-18 20:08:30 +08:00
lollipopkit
b5c705a1fe feat: no titlebar on macOS
Fixes #136
2023-08-18 20:01:18 +08:00
lollipopkit
fe51669369 chore: update l10n 2023-08-18 16:33:16 +08:00
lollipopkit
46cffb836c new & opt.
- new: ssh discontinuity test
- opt.: server cmds
- opt.: check ssh client status before exec cmds
- new: #124 notify on discontinuity
2023-08-17 21:36:00 +08:00
lollipopkit
b78949cf0c opt.: only display virt keys on mobile devices 2023-08-17 18:43:41 +08:00
lollipopkit
1be87d0ec0 fix: ssh session not inited 2023-08-17 14:59:23 +08:00
lollipopkit
329922a836 opt.: settings 2023-08-16 15:11:22 +08:00
lollipopkit
c62c8e2c43 #135 opt. 2023-08-15 23:05:51 +08:00
lollipopkit
cfca40b7be #130 opt. 2023-08-14 11:07:05 +08:00
lollipopkit
8057c24947 opt. 2023-08-13 22:19:08 +08:00
lollipopkit
1af7271a06 fix: alterUrl will change spi's props 2023-08-13 21:19:16 +08:00
calvinweb
7ce03c18b2 Merge pull request #126 from lollipopkit/fix_system_private_prompt
FIX:Fix system private prompt
2023-08-12 09:28:27 +08:00
calvin
ab8fdf3106 FIX:Fix system private prompt 2023-08-12 09:27:55 +08:00
lollipopkit
1d1b186d1e Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-08-11 23:48:51 +08:00
lollipopkit
fb1f868c42 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-08-11 23:48:35 +08:00
lollipopkit
e08fa188ec Merge pull request #123 from lollipopkit/remove_header_bar
FEAT:Remove headerbar for linux so it will look better
2023-08-11 23:37:55 +08:00
lollipopkit
e30bf47f0d new: AGP 7.4.2 2023-08-11 23:35:29 +08:00
calvin
253ab40e5c FEAT:Remove headerbar for linux so it will look better 2023-08-11 13:48:31 +08:00
lollipopkit
58a08757f5 #118 fix 2023-08-11 11:45:22 +08:00
lollipopkit
9ca096094f add: refresh btn on desktop 2023-08-10 18:39:58 +08:00
lollipopkit
4788f1dddc #116 fix 2023-08-10 18:05:24 +08:00
lollipopkit
cf1c9643b9 opt.: check client before route pushed 2023-08-10 00:37:51 +08:00
lollipopkit
c512a6a274 opt. 2023-08-09 23:58:38 +08:00
lollipopkit
58fbd62779 #86 fix: docker loading forever 2023-08-08 20:31:35 +08:00
lollipopkit
173b7f6362 fix: typo 2023-08-08 18:43:17 +08:00
lollipopkit
9fb738eda1 #114 fix 2023-08-08 18:38:56 +08:00
lollipopkit
d35d106ad4 opt. 2023-08-08 17:46:04 +08:00
lollipopkit
159942de95 #112 new: check hash during upgrade 2023-08-08 16:31:28 +08:00
lollipopkit
693eef8f7e new: animation for process page 2023-08-08 15:21:22 +08:00
lollipopkit
2887d23381 new: animation 2023-08-08 14:55:13 +08:00
lollipopkit
096d41088f rm: fvm 2023-08-08 12:52:28 +08:00
lollipopkit
bd84eeca0b Merge pull request #111 from lollipopkit/lollipopkit/issue95
#95 fix
2023-08-07 20:05:48 +08:00
lollipopkit
b804f43d5a opt. 2023-08-07 20:03:48 +08:00
lollipopkit
36b24bedb4 #95 fix 2023-08-07 20:02:09 +08:00
lollipopkit
c1b3ff7bfd Merge pull request #110 from lollipopkit/lollipopkit/issue109
Lollipopkit/issue109
2023-08-07 18:04:55 +08:00
lollipopkit
20c859b0a1 #109 fix: path sep on win 2023-08-07 17:41:35 +08:00
lollipopkit
c4925ee2c7 opt.: delete key after use 2023-08-07 16:51:47 +08:00
lollipopkit
d37a1fbea7 feat: use native ssh terminal on desktop
Implement #109
2023-08-07 16:27:00 +08:00
lollipopkit
2142ae3e1c new: kill process 2023-08-07 15:01:58 +08:00
lollipopkit
e686df45c9 new: actions analysis 2023-08-07 14:57:21 +08:00
calvinweb
ed9ed905ed Merge pull request #108 from calvinweb/call_system_terminal
FEAT:Support call system terminal(Macos&Linux)
2023-08-07 14:31:46 +08:00
lollipopkit
98e77b9d0f #105 new: switch of auto check update 2023-08-07 13:30:53 +08:00
lollipopkit
879a347f23 update: README 2023-08-07 13:10:24 +08:00
lollipopkit
cab58c30a7 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-08-07 12:55:04 +08:00
lollipopkit
75b9a3eeb0 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-08-07 12:54:56 +08:00
lollipopkit
00bf34965a Merge pull request #102 from gaelthas/main
Update: FileDescription in Windows
2023-08-07 12:51:07 +08:00
lollipopkit
81ab841fa5 #100 fix 2023-08-07 12:46:22 +08:00
lollipopkit
df313adf39 Update README.md 2023-08-07 12:41:49 +08:00
Galois
c991c20cc1 Update: FileDescription in Windows
Signed-off-by: Galois <fv10015@outlook.com>
2023-08-06 20:02:47 +08:00
lollipopkit
0e54be8f66 Merge pull request #101 from gaelthas/main
Update the title in Windows and Linux.
2023-08-06 20:01:55 +08:00
Galois
140a3de5ed Update: linux BINARY_NAME
Signed-off-by: Galois <fv10015@outlook.com>
2023-08-06 19:54:17 +08:00
Galois
ae97012456 Update: Windows title
Signed-off-by: Galois <fv10015@outlook.com>
2023-08-06 19:48:39 +08:00
Galois
20d81e4353 Fix: readme_zh 上述
Signed-off-by: Galois <fv10015@outlook.com>
2023-08-06 11:35:18 +08:00
lollipopkit
8abdcf15d4 #96 opt. 2023-08-05 22:09:54 +08:00
lollipopkit
7f35ddfe30 #96 opt. 2023-08-05 21:19:19 +08:00
lollipopkit
7431de094f #97 fix 2023-08-05 21:15:29 +08:00
lollipopkit
4b7397de46 opt. 2023-08-05 17:48:56 +08:00
lollipopkit
a716254557 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-08-05 15:20:05 +08:00
lollipopkit
c406d92b82 opt.: refactor AppShellFunc 2023-08-05 15:19:37 +08:00
lollipopkit
432e3b1824 add: more contributors 2023-08-05 14:32:21 +08:00
calvin
73611dacf1 FEAT:Support call system terminal(Macos&Linux) 2023-08-05 14:12:08 +08:00
lollipopkit
8f4f141a64 new: import local file & rm local dir 2023-08-05 13:34:55 +08:00
lollipopkit
51af3c63f1 Merge pull request #93 from Liloupar/Liloupar-patch-1
typo
2023-08-05 13:07:08 +08:00
Liloupar
b3c35b385b typo 2023-08-05 13:02:21 +08:00
lollipopkit
5b2ed02428 opt.: move docker stats to more btn 2023-08-05 12:40:45 +08:00
lollipopkit
3405172d76 #90 #91 fix 2023-08-05 12:23:29 +08:00
lollipopkit
d88a078cd6 rm: field password of PrivateKeyInfo 2023-08-04 23:47:22 +08:00
lollipopkit
ee3e30d9b5 #88 #74 fix: firstWhere 2023-08-04 22:53:26 +08:00
lollipopkit
0250589be2 Merge pull request #89 from lollipopkit/lollipopkit/issue88
#88 #74 fix: rootDisk if not found
2023-08-04 22:01:33 +08:00
lollipopkit
a66204f672 #88 #74 fix: rootDisk if not found 2023-08-04 21:58:48 +08:00
lollipopkit
91967e6ce3 #87 new: auto ask add system key (~/.ssh/id_rsa) 2023-08-04 21:46:44 +08:00
lollipopkit
60507ea4bc Merge pull request #87 from calvinweb/system_privatekey
DRAFT:Add support of reading system privatekey (.ssh/id_rsa)
2023-08-04 18:50:52 +08:00
calvin
486b920d6b DRAFT:Add support of reading system privatekey (.ssh/id_rsa) 2023-08-04 18:41:04 +08:00
lollipopkit
0260444ca0 #84 fix: sftp upload 2023-08-03 13:42:30 +08:00
lollipopkit
43d3e576e2 fix: local page 2023-08-02 23:33:56 +08:00
lollipopkit
0038ed347f opt. & new
- opt.: docker page perf
- new: docker stats
2023-08-02 23:07:11 +08:00
lollipopkit
336c31e48d #81 #72 #65 #20 fix 2023-08-02 20:03:02 +08:00
lollipopkit
411bef9320 fix: LocalStoragePage.initDir 2023-08-02 19:33:52 +08:00
lollipopkit
027b9cc4f7 #83 opt.: batch delete servers 2023-08-01 13:55:05 +08:00
lollipopkit
33932f7428 fix: import backup 2023-08-01 13:41:00 +08:00
lollipopkit
0f83d10bfa opt.: cancel sftp mission 2023-07-29 18:24:22 +08:00
lollipopkit
e13c5910ec #78 opt.: alter url 2023-07-29 16:53:57 +08:00
lollipopkit
7f4dcc1357 opt.
- add help for ssh virt keys
- rm unused lib
2023-07-29 16:24:47 +08:00
lollipopkit
1163f2e418 opt.: TimeSeq 2023-07-28 20:21:15 +08:00
lollipopkit
6045e7e7f0 fix: sftp dl 2023-07-28 19:08:34 +08:00
lollipopkit
6803e9fa40 Merge pull request #79 from azkadev/main
Add Indonesian Language And Fix Editor Page
2023-07-28 17:26:13 +08:00
Your Name
f1852aa83a update 2023-07-28 15:21:51 +07:00
Your Name
287df4a1cc Add Indonesian Language 2023-07-28 15:21:25 +07:00
Your Name
177b3ab66a Fix editor on open 2023-07-28 15:04:19 +07:00
lollipopkit
df4836458f #78 fix 2023-07-28 14:11:38 +08:00
lollipopkit
389d1753c4 #78 new: alter host 2023-07-28 13:59:32 +08:00
lollipopkit
ed3201db6d new: delete all servers btn 2023-07-27 13:04:49 +08:00
lollipopkit
08a4dba659 #77 new: also when backing app 2023-07-25 12:24:26 +08:00
lollipopkit
9e6f386b28 #77 opt. 2023-07-21 16:57:17 +08:00
lollipopkit
eef38f0949 #74 probably fix 2023-07-21 16:56:50 +08:00
lollipopkit
262b4486e4 #73 opt.: reorderable 2023-07-21 15:05:09 +08:00
lollipopkit
aac556f769 #76 add translation 2023-07-21 14:40:04 +08:00
lollipopkit
b443870e62 #76 opt. 2023-07-21 14:37:29 +08:00
lollipopkit
0d5707a1df #76 new: switch net view 2023-07-21 14:25:07 +08:00
lollipopkit
5a5e2fd1d1 #73 fix & opt.
- fix: reorder list default drag
- opt.: android home widget grey text
2023-07-20 18:26:17 +08:00
lollipopkit
7f8fbfead3 #26 new & fix
- new: click to refresh
- fix: SharedPreference setPrefix
2023-07-19 19:23:05 +08:00
lollipopkit
2ed578c0ca update README 2023-07-19 18:39:57 +08:00
lollipopkit
9ce221935e #26 android home widget 2023-07-19 18:26:10 +08:00
lollipopkit
0ee55d4873 #26 new: ios home widget 2023-07-16 22:46:32 +08:00
lollipopkit
814e9c853a Add translation 2023-07-08 15:09:01 +08:00
lollipopkit
291c737a40 #54 fix order 2023-07-08 14:18:15 +08:00
lollipopkit
0bc176b603 #54 run multi snippets on multi servers 2023-07-08 11:23:21 +08:00
lollipopkit
fefd3f9701 #54 run multiple snippets 2023-07-08 00:12:15 +08:00
lollipopkit
cb16b3a8b6 fix 2023-07-07 21:09:29 +08:00
lollipopkit
bb50fbc589 #54 snippet group 2023-07-07 20:37:50 +08:00
lollipopkit
d8155e7771 update deps. 2023-06-30 20:59:38 +08:00
lollipopkit
6d6048bc5c fix 2023-06-27 14:40:10 +08:00
lollipopkit
92e2e2a75f new: fullscreen rotation angel 2023-06-27 13:31:35 +08:00
lollipopkit
76e8a1efca new: set light/dark editor theme 2023-06-27 12:52:11 +08:00
lollipopkit
9ffe5583fd #64 opt. for process page 2023-06-27 12:27:16 +08:00
lollipopkit
0022294ea4 #71 new & opt.
- ssh page virt key long press
- custom ssh virt keys
2023-06-27 00:41:56 +08:00
lollipopkit
dc63d902e5 opt. for settings page 2023-06-26 21:00:13 +08:00
lollipopkit
f0b31a9b08 #65 new: custom keyboard type 2023-06-23 16:59:27 +08:00
lollipopkit
743e5bfbff #64 new: process page 2023-06-23 14:30:35 +08:00
lollipopkit
06d6500ef6 opt. & fix
opt.: upload file
fix: surplus server order
opt.: sftp view
2023-06-21 18:30:52 +08:00
lollipopkit
3a8e189dd7 new: server tab process 2023-06-21 17:47:57 +08:00
lollipopkit
625bc280f0 opt.: auto switch status bar 2023-06-21 16:57:06 +08:00
lollipopkit
0aff5b3b72 opt. for fullscreen jitter 2023-06-20 21:04:55 +08:00
lollipopkit
2095b79b9a new: full screen jitter 2023-06-08 22:45:38 +08:00
lollipopkit
0ddfc4ec75 new: full screen 2023-06-08 22:17:26 +08:00
lollipopkit
342c3ea295 new: launch image 2023-06-08 20:48:16 +08:00
lollipopkit
7b1c1b9a5a opt. for performance 2023-06-05 17:51:52 +08:00
lollipopkit
378baf589a rm: linux dist logos 2023-06-05 16:50:22 +08:00
lollipopkit
d2cdbe4774 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-06-05 16:42:53 +08:00
lollipopkit
d66e570e01 opt.: use ValueBuilder 2023-06-05 16:39:54 +08:00
lollipopkit
88cc6542a9 Update LICENSE 2023-06-05 16:38:28 +08:00
lollipopkit
2ab2306469 Merge pull request #62 from its-tom/main
fix translation (german), use save icon for servers & snippets
2023-06-04 18:50:54 +08:00
Thomas
86ae4df790 fix translation (german), use save icon for servers & snippets 2023-06-04 12:46:06 +02:00
lollipopkit
a11507d0d2 Update README.md 2023-06-04 17:42:59 +08:00
lollipopkit
5600d713a6 new: app icon 2023-06-04 17:19:22 +08:00
lollipopkit
261b8e9d29 opt. 2023-06-03 21:15:26 +08:00
lollipopkit
8c25b5e60b #33 new: upload file to sftp from file picker 2023-06-02 21:51:39 +08:00
lollipopkit
f0bf95a7d2 #33 new: upload file in sftp 2023-06-01 16:07:09 +08:00
lollipopkit
026e951604 #57 AMOLED theme 2023-06-01 15:18:54 +08:00
lollipopkit
6091cd0da8 new: server tag animation 2023-05-31 18:10:18 +08:00
lollipopkit
55a13799b2 new: tag rename 2023-05-31 17:56:08 +08:00
lollipopkit
d24fe5ff5d opt. for tag 2023-05-31 17:19:56 +08:00
lollipopkit
472a441c8e new: server tag 2023-05-30 22:44:45 +08:00
lollipopkit
92ffed6541 #25 new: sftp upload 2023-05-30 19:49:54 +08:00
lollipopkit
a1e80fd806 #54 new: grouped snippet & tab snippet 2023-05-30 18:05:46 +08:00
lollipopkit
96438313a1 update ISSUE_TEMPLATE 2023-05-29 17:37:24 +08:00
lollipopkit
0837f1619a Update README.md 2023-05-28 19:49:17 +08:00
lollipopkit
edaffb736c new: open sftp in ssh 2023-05-28 18:58:38 +08:00
lollipopkit
06be4503ca #24 #25 #33 new: sftp file edit 2023-05-28 18:21:03 +08:00
lollipopkit
dbabe81e3c new: editor custom theme 2023-05-28 16:25:12 +08:00
lollipopkit
68c1fe4943 #24 #25 #33 new: editor 2023-05-28 15:03:02 +08:00
lollipopkit
ae822de737 opt.
- `TerminalColors`
- ssh virtual key auto switch
2023-05-27 20:43:40 +08:00
lollipopkit
02494651fc fix & opt.
- fix: ssh paste
- opt.: docker logs & shell
2023-05-27 18:58:38 +08:00
lollipopkit
4f45ce3f50 Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-05-27 17:49:12 +08:00
lollipopkit
5d774bfd33 Merge pull request #51 from kalashnikov/main
Support zh_TW
2023-05-27 17:48:39 +08:00
lollipopkit
b04c2a9693 #51 new: custom language 2023-05-27 17:47:48 +08:00
Kala Kuo
371f60c68a Fix connection problem in macos 2023-05-27 16:54:46 +08:00
Kala Kuo
79ebd89e8b Support zh_TW 2023-05-27 16:51:03 +08:00
lollipopkit
a8194319b6 #50 new: docker shell 2023-05-27 14:24:54 +08:00
lollipopkit
7a211b9a55 fix: cards order 2023-05-26 20:09:13 +08:00
lollipopkit
00fdcb1ee8 Server detail page cards support sorting 2023-05-26 18:03:43 +08:00
lollipopkit
20ef9d4575 opt. 2023-05-26 17:01:52 +08:00
lollipopkit
c1c009863d Update README.md 2023-05-26 13:18:37 +08:00
lollipopkit
c4594559a2 opt.: custom diskIgnorePath 2023-05-26 12:46:47 +08:00
lollipopkit
46350b7522 #48 display all support devices temperature 2023-05-25 16:44:26 +08:00
lollipopkit
29683572b9 #46 SSH term fontSize 2023-05-25 15:21:57 +08:00
lollipopkit
472599498e #42 new: docker logs 2023-05-18 22:06:12 +08:00
lollipopkit
a9fa981e96 fix: servers missed due to ServerOrder 2023-05-16 16:47:21 +08:00
lollipopkit
82ed2e70dc #40 new: docker container restart 2023-05-16 16:45:46 +08:00
lollipopkit
2161596efc opt. 2023-05-14 17:39:34 +08:00
lollipopkit
5714e26c4d Update ISSUE_TEMPLATE 2023-05-13 21:55:51 +08:00
lollipopkit
eedeff6caa Merge branch 'main' of https://github.com/lollipopkit/flutter_server_box 2023-05-13 19:41:20 +08:00
lollipopkit
d7c0be045a opt. UI 2023-05-13 19:40:18 +08:00
lollipopkit
a61c440484 Update issue templates 2023-05-13 15:14:35 +08:00
lollipopkit
91b2145c6e Merge pull request #37 from its-tom/main
UI Improvements
2023-05-12 21:55:00 +08:00
Thomas
7684c280bc remove unnecessary padding 2023-05-12 15:37:30 +02:00
Thomas
d0656ba157 Merge branch 'lollipopkit:main' into main 2023-05-12 15:30:17 +02:00
Thomas
62d8285c1a show Menu when clicking on ListTile, correct german typo, use multiline for snippets 2023-05-12 15:29:44 +02:00
lollipopkit
fee02a53b6 fix: typo 2023-05-12 21:18:41 +08:00
lollipopkit
cbeaa9705f #35 new: servers tab reorderable 2023-05-12 18:35:56 +08:00
lollipopkit
2ee0c6f995 Merge pull request #36 from its-tom/main
Add german
2023-05-11 23:33:36 +08:00
Thomas
f72ec4452b Merge branch 'lollipopkit:main' into main 2023-05-11 17:18:35 +02:00
Thomas
9239c04c4b add german (final) 2023-05-11 17:18:22 +02:00
lollipopkit
9b0bb414db migrate: flutter 3.10.0 2023-05-11 12:24:39 +08:00
lollipopkit
91f97e52b0 #34 fix & new
- fix: `ping`
- new: support busybox `ping`
- new: flutter 3.10.0
2023-05-11 12:06:30 +08:00
Thomas
c7cbf1a9f3 german (only partly) 2023-05-10 22:25:12 +02:00
lollipopkit
4f82eb09d8 #30 fix: parse mem 2023-05-10 13:25:46 +08:00
lollipopkit
c1d1af8c01 opt.: popupmenu 2023-05-09 22:04:45 +08:00
lollipopkit
b4f3fce64a #30 fix: context.pop() 2023-05-09 19:49:31 +08:00
lollipopkit
3f9f589178 constraint: share_plus 6.3.2 2023-05-08 17:43:25 +08:00
lollipopkit
6a4d4f9bca fix: sysVer of older CentOS 2023-05-08 17:30:39 +08:00
lollipopkit
7f16c27dcf opt. 2023-05-08 16:25:31 +08:00
lollipopkit
a2361da560 opt. for pkg 2023-05-07 20:44:15 +08:00
lollipopkit
ffae93cc72 #29 opt. for TextInput 2023-05-07 18:25:30 +08:00
lollipopkit
29ea43a10f #29 opt. for material 3 2023-05-07 16:34:21 +08:00
lollipopkit
5afa543ba5 migrate: material 3 2023-05-07 01:28:51 +08:00
lollipopkit
e932241df0 Merge pull request #29 from its-tom/main
Material 3
2023-05-06 20:46:19 +08:00
Thomas
7505f77b4a use ColorSchemeSeed instead of own ColorScheme 2023-05-06 13:05:58 +02:00
Thomas
e61597b3ce use Material3, changed color selection 2023-05-06 12:53:32 +02:00
lollipopkit
90e25856cf rewrite pkg 2023-04-27 18:46:13 +08:00
lollipopkit
3a17a24774 Merge pull request #28 from lollipopkit/fix/synology
Fix & opt.
2023-04-27 16:24:31 +08:00
zhaoyingbo
50e0a0b688 feat: Modify the header image to the right size 2023-04-27 16:18:40 +08:00
zhaoyingbo
4cb7dc03a7 feat: Use hostname when Sysver is unknown 2023-04-27 13:02:48 +08:00
zhaoyingbo
658d6ec0c8 fix: parseDisk error in deal with multiline data 2023-04-27 12:59:27 +08:00
lollipopkit
6d7a47a228 update README.md 2023-04-23 14:52:01 +08:00
lollipopkit
167d65a97b fix: dio < 5.0.0 vulnerability 2023-04-23 14:51:46 +08:00
lollipopkit
71243ea1fe opt.: servers list -> map 2023-04-23 14:08:46 +08:00
lollipopkit
bd608ce06f update README.md 2023-04-23 13:04:12 +08:00
lollipopkit
fe3055f77c auto reconnect & opt. perf. 2023-04-23 12:54:54 +08:00
lollipopkit
1ccda52f6f update README.md 2023-04-20 12:40:12 +08:00
640 changed files with 72695 additions and 13279 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,581 +0,0 @@
import 'l10n.dart';
/// The translations for English (`en`).
class SEn extends S {
SEn([String locale = 'en']) : super(locale);
@override
String get about => 'About';
@override
String get aboutThanks => '\nThanks to the following people who participated in the test.';
@override
String get addAServer => 'add a server';
@override
String get addOne => 'Add one';
@override
String get addPrivateKey => 'Add private key';
@override
String get alreadyLastDir => 'Already in last directory.';
@override
String get appPrimaryColor => 'App primary color';
@override
String get attention => 'Attention';
@override
String get auto => 'Auto';
@override
String get backDir => 'Back';
@override
String get backup => 'Backup';
@override
String get backupAndRestore => 'Backup and Restore';
@override
String get backupTip => 'The exported data is simply encrypted. \nPlease keep it safe.';
@override
String get backupVersionNotMatch => 'Backup version is not match.';
@override
String get bgRun => 'Run in backgroud';
@override
String get cancel => 'Cancel';
@override
String get choose => 'Choose';
@override
String get chooseDestination => 'Choose destination';
@override
String get chooseFontFile => 'Choose a font file';
@override
String get choosePrivateKey => 'Choose private key';
@override
String get clear => 'Clear';
@override
String get clickSee => 'Click here';
@override
String get close => 'Close';
@override
String get cmd => 'Command';
@override
String get containerStatus => 'Container status';
@override
String get convert => 'Convert';
@override
String get copy => 'Copy';
@override
String get copyPath => 'Copy path';
@override
String get createFile => 'Create file';
@override
String get createFolder => 'Create folder';
@override
String get currentMode => 'Current Mode';
@override
String get dark => 'Dark';
@override
String get debug => 'Debug';
@override
String get decode => 'Decode';
@override
String get delete => 'Delete';
@override
String get disconnected => 'Disconnected';
@override
String dl2Local(Object fileName) {
return 'Download [$fileName] to local?';
}
@override
String get dockerContainerName => 'Container name';
@override
String get dockerEditHost => 'Edit DOCKER_HOST';
@override
String get dockerEmptyRunningItems => 'No running container. \nIt may be that the env DOCKER_HOST is not read correctly. You can found it by running `echo \$DOCKER_HOST` in terminal.';
@override
String get dockerImage => 'Image';
@override
String dockerImagesFmt(Object count) {
return '$count images';
}
@override
String get dockerNotInstalled => 'Docker not installed';
@override
String dockerStatusRunningAndStoppedFmt(Object runningCount, Object stoppedCount) {
return '$runningCount running, $stoppedCount container stopped.';
}
@override
String dockerStatusRunningFmt(Object count) {
return '$count container running.';
}
@override
String get download => 'Download';
@override
String get downloadFinished => 'Download finished';
@override
String downloadStatus(Object percent, Object size) {
return '$percent% of $size';
}
@override
String get edit => 'Edit';
@override
String get encode => 'Encode';
@override
String get error => 'Error';
@override
String get exampleName => 'Example name';
@override
String get experimentalFeature => 'Experimental feature';
@override
String get export => 'Export';
@override
String get extraArgs => 'Extra args';
@override
String get failed => 'Failed';
@override
String get feedback => 'Feedback';
@override
String get feedbackOnGithub => 'If you have any questions, please feedback on Github.';
@override
String get fieldMustNotEmpty => 'These fields must not be empty.';
@override
String fileNotExist(Object file) {
return '$file not exist';
}
@override
String fileTooLarge(Object file, Object size, Object sizeMax) {
return 'File \'$file\' too large $size, max $sizeMax';
}
@override
String get files => 'Files';
@override
String foundNUpdate(Object count) {
return 'Found $count update';
}
@override
String get getPushTokenFailed => 'Can\'t fetch push token';
@override
String get gettingToken => 'Getting token...';
@override
String get go => 'Go';
@override
String get goto => 'Go to';
@override
String get host => 'Host';
@override
String httpFailedWithCode(Object code) {
return 'request failed, status code: $code';
}
@override
String get imagesList => 'Images list';
@override
String get import => 'Import';
@override
String get inputDomainHere => 'Input Domain here';
@override
String get install => 'install';
@override
String get installDockerWithUrl => 'Please https://docs.docker.com/engine/install docker first.';
@override
String get invalidJson => 'Invalid JSON';
@override
String get invalidVersion => 'Invalid version';
@override
String invalidVersionHelp(Object url) {
return 'Please make sure that docker is installed correctly, or that you are using a non-self-compiled version. If you don\'t have the above issues, please submit an issue on $url.';
}
@override
String get isBusy => 'Is busy now';
@override
String get keepForeground => 'Keep app foreground!';
@override
String get keyAuth => 'Key Auth';
@override
String get lastTry => 'Last try!';
@override
String get launchPage => 'Launch page';
@override
String get license => 'License';
@override
String get light => 'Light';
@override
String get loadingFiles => 'Loading files...';
@override
String get loss => 'loss';
@override
String madeWithLove(Object myGithub) {
return 'Made with ❤️ by $myGithub';
}
@override
String get max => 'max';
@override
String get maxRetryCount => 'Number of server reconnection';
@override
String get maxRetryCountEqual0 => 'Will retry again and again.';
@override
String get min => 'min';
@override
String get ms => 'ms';
@override
String get name => 'Name';
@override
String get needRestart => 'Need to restart app';
@override
String get newContainer => 'New container';
@override
String get noClient => 'No client';
@override
String get noInterface => 'No interface';
@override
String get noResult => 'No result';
@override
String get noSavedPrivateKey => 'No saved private keys.';
@override
String get noSavedSnippet => 'No saved snippets.';
@override
String get noServerAvailable => 'No server available.';
@override
String get noUpdateAvailable => 'No update available';
@override
String get notSelected => 'Not selected';
@override
String get nullToken => 'Null token';
@override
String get ok => 'OK';
@override
String get onServerDetailPage => 'On server detail page';
@override
String get onlyIOS => 'Only valid on iOS';
@override
String get open => 'Open';
@override
String get paste => 'Paste';
@override
String get path => 'Path';
@override
String get pickFile => 'Pick file';
@override
String get ping => 'Ping';
@override
String get pingAvg => 'Avg:';
@override
String get pingInputIP => 'Please input a target IP/domain.';
@override
String get pingNoServer => 'No server to ping.\nPlease add a server in server tab.';
@override
String get pkg => 'Pkg';
@override
String get platformNotSupportUpdate => 'Current platform does not support in app update.\nPlease build from source and install it.';
@override
String get plzEnterHost => 'Please enter host.';
@override
String get plzSelectKey => 'Please select a key.';
@override
String get port => 'Port';
@override
String get preview => 'Preview';
@override
String get privateKey => 'Private Key';
@override
String get pushToken => 'Push token';
@override
String get pwd => 'Password';
@override
String get rename => 'Rename';
@override
String reportBugsOnGithubIssue(Object url) {
return 'Please report bugs on $url';
}
@override
String get restart => 'Restart';
@override
String get restore => 'Restore';
@override
String get restoreSuccess => 'Restore success. Restart app to apply.';
@override
String restoreSureWithDate(Object date) {
return 'Are you sure to restore from $date ?';
}
@override
String get result => 'Result';
@override
String get run => 'Run';
@override
String get save => 'Save';
@override
String get second => 's';
@override
String get server => 'Server';
@override
String get serverTabConnecting => 'Connecting...';
@override
String get serverTabEmpty => 'There is no server.\nClick the fab to add one.';
@override
String get serverTabFailed => 'Failed';
@override
String get serverTabLoading => 'Loading...';
@override
String get serverTabPlzSave => 'Please \'save\' this private key again.';
@override
String get serverTabUnkown => 'Unknown state';
@override
String get setting => 'Setting';
@override
String get sftpDlPrepare => 'Preparing to connect...';
@override
String get sftpNoDownloadTask => 'No download task.';
@override
String get sftpSSHConnected => 'SFTP Connected';
@override
String get showDistLogo => 'Show distribution logo';
@override
String get snippet => 'Snippet';
@override
String spentTime(Object time) {
return 'Spent time: $time';
}
@override
String sshTip(Object url) {
return 'This function is now in the experimental stage.\n\nPlease report bugs on $url or join our development.';
}
@override
String get start => 'Start';
@override
String get stop => 'Stop';
@override
String get success => 'Success';
@override
String sureDelete(Object name) {
return 'Are you sure to delete [$name]?';
}
@override
String get sureDirEmpty => 'Make sure dir is empty.';
@override
String get sureNoPwd => 'Are you sure to use no password?';
@override
String sureToDeleteServer(Object server) {
return 'Are you sure to delete server [$server]?';
}
@override
String get termTheme => 'Terminal theme';
@override
String get themeMode => 'Theme mode';
@override
String get times => 'Times';
@override
String get ttl => 'ttl';
@override
String get unknown => 'unknown';
@override
String get unknownError => 'Unknown error';
@override
String get unkownConvertMode => 'Unknown convert mode';
@override
String get update => 'Update';
@override
String get updateAll => 'Update all';
@override
String get updateIntervalEqual0 => 'You set to 0, will not update automatically.\nCan\'t calculate CPU status.';
@override
String get updateServerStatusInterval => 'Server status update interval';
@override
String updateTip(Object newest) {
return 'Update: v1.0.$newest';
}
@override
String updateTipTooLow(Object newest) {
return 'Current version is too low, please update to v1.0.$newest';
}
@override
String get upsideDown => 'Upside Down';
@override
String get urlOrJson => 'URL or JSON';
@override
String get user => 'User';
@override
String versionHaveUpdate(Object build) {
return 'Found: v1.0.$build, click to update';
}
@override
String versionUnknownUpdate(Object build) {
return 'Current: v1.0.$build';
}
@override
String versionUpdated(Object build) {
return 'Current: v1.0.$build, is up to date';
}
@override
String get waitConnection => 'Please wait for the connection to be established.';
@override
String get willTakEeffectImmediately => 'Will take effect immediately';
}

View File

@@ -1,581 +0,0 @@
import 'l10n.dart';
/// The translations for Chinese (`zh`).
class SZh extends S {
SZh([String locale = 'zh']) : super(locale);
@override
String get about => '关于';
@override
String get aboutThanks => '\n感谢以下参与软件测试的各位。';
@override
String get addAServer => '添加服务器';
@override
String get addOne => '前去新增';
@override
String get addPrivateKey => '添加一个私钥';
@override
String get alreadyLastDir => '已经是最上层目录了';
@override
String get appPrimaryColor => 'App主要色';
@override
String get attention => '注意';
@override
String get auto => '自动';
@override
String get backDir => '返回上一级';
@override
String get backup => '备份';
@override
String get backupAndRestore => '备份和恢复';
@override
String get backupTip => '导出的数据仅进行了简单加密,请妥善保管。';
@override
String get backupVersionNotMatch => '备份版本不匹配,无法恢复';
@override
String get bgRun => '后台运行';
@override
String get cancel => '取消';
@override
String get choose => '选择';
@override
String get chooseDestination => '选择目标';
@override
String get chooseFontFile => '选择字体文件';
@override
String get choosePrivateKey => '选择私钥';
@override
String get clear => '清除';
@override
String get clickSee => '点击查看';
@override
String get close => '关闭';
@override
String get cmd => '命令';
@override
String get containerStatus => '容器状态';
@override
String get convert => '转换';
@override
String get copy => '复制';
@override
String get copyPath => '复制路径';
@override
String get createFile => '创建文件';
@override
String get createFolder => '创建文件夹';
@override
String get currentMode => '当前模式';
@override
String get dark => '';
@override
String get debug => '调试';
@override
String get decode => '解码';
@override
String get delete => '删除';
@override
String get disconnected => '连接断开';
@override
String dl2Local(Object fileName) {
return '下载 [$fileName] 到本地?';
}
@override
String get dockerContainerName => '容器名';
@override
String get dockerEditHost => '编辑 DOCKER_HOST';
@override
String get dockerEmptyRunningItems => '没有正在运行的容器。\n这可能是因为环境变量 DOCKER_HOST 没有被正确读取。你可以通过在终端内运行 `echo \$DOCKER_HOST` 来获取。';
@override
String get dockerImage => '镜像';
@override
String dockerImagesFmt(Object count) {
return '$count 个镜像';
}
@override
String get dockerNotInstalled => 'Docker未安装';
@override
String dockerStatusRunningAndStoppedFmt(Object runningCount, Object stoppedCount) {
return '$runningCount个正在运行, $stoppedCount个已停止';
}
@override
String dockerStatusRunningFmt(Object count) {
return '$count个容器正在运行';
}
@override
String get download => '下载';
@override
String get downloadFinished => '下载完成!';
@override
String downloadStatus(Object percent, Object size) {
return '$size$percent%';
}
@override
String get edit => '编辑';
@override
String get encode => '编码';
@override
String get error => '出错了';
@override
String get exampleName => '名称示例';
@override
String get experimentalFeature => '实验性功能';
@override
String get export => '导出';
@override
String get extraArgs => '额外参数';
@override
String get failed => '失败';
@override
String get feedback => '反馈';
@override
String get feedbackOnGithub => '如果你有任何问题请在GitHub反馈';
@override
String get fieldMustNotEmpty => '这些输入框不能为空。';
@override
String fileNotExist(Object file) {
return '$file 不存在';
}
@override
String fileTooLarge(Object file, Object size, Object sizeMax) {
return '文件 \'$file\' 过大 \'$size\',超过了 $sizeMax';
}
@override
String get files => '文件';
@override
String foundNUpdate(Object count) {
return '找到 $count 个更新';
}
@override
String get getPushTokenFailed => '未能获取到推送token';
@override
String get gettingToken => '正在获取Token...';
@override
String get go => '开始';
@override
String get goto => '前往';
@override
String get host => '主机';
@override
String httpFailedWithCode(Object code) {
return '请求失败, 状态码: $code';
}
@override
String get imagesList => '镜像列表';
@override
String get import => '导入';
@override
String get inputDomainHere => '在这里输入域名';
@override
String get install => '安装';
@override
String get installDockerWithUrl => '请先 https://docs.docker.com/engine/install docker';
@override
String get invalidJson => '无效的json存在格式问题';
@override
String get invalidVersion => '不支持的版本';
@override
String invalidVersionHelp(Object url) {
return '请确保正确安装了docker或者使用的非自编译版本。如果没有以上问题请在 $url 提交问题。';
}
@override
String get isBusy => '当前正忙';
@override
String get keepForeground => '请保持应用处于前台!';
@override
String get keyAuth => '公钥认证';
@override
String get lastTry => '最后尝试';
@override
String get launchPage => '启动页';
@override
String get license => '开源证书';
@override
String get light => '';
@override
String get loadingFiles => '正在加载目录。。。';
@override
String get loss => '丢包率';
@override
String madeWithLove(Object myGithub) {
return '用❤️制作 by $myGithub';
}
@override
String get max => '最大';
@override
String get maxRetryCount => '服务器尝试重连次数';
@override
String get maxRetryCountEqual0 => '会无限重试';
@override
String get min => '最小';
@override
String get ms => '毫秒';
@override
String get name => '名称';
@override
String get needRestart => '需要重启 App';
@override
String get newContainer => '新建容器';
@override
String get noClient => '没有SSH连接';
@override
String get noInterface => '没有可用的接口';
@override
String get noResult => '无结果';
@override
String get noSavedPrivateKey => '没有已保存的私钥。';
@override
String get noSavedSnippet => '没有已保存的代码片段。';
@override
String get noServerAvailable => '没有可用的服务器。';
@override
String get noUpdateAvailable => '没有可用更新';
@override
String get notSelected => '未选择';
@override
String get nullToken => '无Token';
@override
String get ok => '';
@override
String get onServerDetailPage => '在服务器详情页';
@override
String get onlyIOS => '仅在iOS上有效';
@override
String get open => '打开';
@override
String get paste => '粘贴';
@override
String get path => '路径';
@override
String get pickFile => '选择文件';
@override
String get ping => 'Ping';
@override
String get pingAvg => '平均:';
@override
String get pingInputIP => '请输入目标IP或域名';
@override
String get pingNoServer => '没有服务器可用于Ping\n请在服务器tab添加服务器后再试';
@override
String get pkg => '包管理';
@override
String get platformNotSupportUpdate => '当前平台不支持更新,请编译最新源码后手动安装';
@override
String get plzEnterHost => '请输入主机';
@override
String get plzSelectKey => '请选择私钥';
@override
String get port => '端口';
@override
String get preview => '预览';
@override
String get privateKey => '私钥';
@override
String get pushToken => '消息推送 Token';
@override
String get pwd => '密码';
@override
String get rename => '重命名';
@override
String reportBugsOnGithubIssue(Object url) {
return '请到 $url 提交问题';
}
@override
String get restart => '重启';
@override
String get restore => '恢复';
@override
String get restoreSuccess => '恢复成功需要重启App来应用更改';
@override
String restoreSureWithDate(Object date) {
return '确定恢复 $date 的备份吗?';
}
@override
String get result => '结果';
@override
String get run => '运行';
@override
String get save => '保存';
@override
String get second => '';
@override
String get server => '服务器';
@override
String get serverTabConnecting => '连接中...';
@override
String get serverTabEmpty => '现在没有服务器。\n点击右下方按钮来添加。';
@override
String get serverTabFailed => '失败';
@override
String get serverTabLoading => '加载中...';
@override
String get serverTabPlzSave => '请再次保存该私钥';
@override
String get serverTabUnkown => '未知状态';
@override
String get setting => '设置';
@override
String get sftpDlPrepare => '准备连接至服务器...';
@override
String get sftpNoDownloadTask => '没有下载任务';
@override
String get sftpSSHConnected => 'SFTP 已连接,即将开始下载...';
@override
String get showDistLogo => '显示发行版 Logo';
@override
String get snippet => '代码片段';
@override
String spentTime(Object time) {
return '耗时: $time';
}
@override
String sshTip(Object url) {
return '该功能目前处于测试阶段。\n\n请在 $url 反馈问题,或者加入我们开发。';
}
@override
String get start => '开始';
@override
String get stop => '停止';
@override
String get success => '成功';
@override
String sureDelete(Object name) {
return '确定删除[$name]';
}
@override
String get sureDirEmpty => '请确保文件夹为空';
@override
String get sureNoPwd => '确认使用无密码?';
@override
String sureToDeleteServer(Object server) {
return '你确定要删除服务器 [$server] 吗?';
}
@override
String get termTheme => '终端主题';
@override
String get themeMode => '主题模式';
@override
String get times => '';
@override
String get ttl => '缓存时间';
@override
String get unknown => '未知';
@override
String get unknownError => '未知错误';
@override
String get unkownConvertMode => '未知转换模式';
@override
String get update => '更新';
@override
String get updateAll => '更新全部';
@override
String get updateIntervalEqual0 => '你设置为0服务器状态不会自动刷新。\n且不能计算CPU使用情况。';
@override
String get updateServerStatusInterval => '服务器状态刷新间隔';
@override
String updateTip(Object newest) {
return '新版本: v1.0.$newest';
}
@override
String updateTipTooLow(Object newest) {
return '当前版本过低,请升级至 v1.0.$newest';
}
@override
String get upsideDown => '上下交换';
@override
String get urlOrJson => '链接或JSON';
@override
String get user => '用户';
@override
String versionHaveUpdate(Object build) {
return '找到新版本v1.0.$build, 点击更新';
}
@override
String versionUnknownUpdate(Object build) {
return '当前v1.0.$build';
}
@override
String versionUpdated(Object build) {
return '当前v1.0.$build, 已是最新版本';
}
@override
String get waitConnection => '请等待连接建立';
@override
String get willTakEeffectImmediately => '更改将会立即生效';
}

View File

@@ -1,3 +0,0 @@
# Generated by the flutter tool
name: synthetic_package
description: The Flutter application's synthetic package.

1
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1 @@
custom: ['https://cdn.lpkt.cn/donate']

53
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,53 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
<!--
Thanks for your feedback
1、Please check if there is a similar issue first
2、If it is a function or UI suggestion, please go to Discussion
-->
**Describe the bug**
<!--A clear and concise description of what the bug is.-->
**To Reproduce**
<!--
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->
**Desired Results**
<!--A clear description of the result you expected.-->
**Actual Results**
<!--A clear description of the actual result.-->
**Screenshots**
<!--If applicable, add screenshots(both bug screen and logs
screen) to help explain your problem.-->
**Device**
<!--
- OS: e.g. iOS16 or Android13
- App Version: e.g. 1.0.302
-->
**Additional context**
<!--Add any other context about the problem here.-->

51
.github/ISSUE_TEMPLATE/bug_report_cn.md vendored Normal file
View File

@@ -0,0 +1,51 @@
---
name: Bug 反馈
about: 帮助我们改进错误
title: ''
labels: ''
assignees: ''
---
<!--
感谢您反馈问题,请先阅读以下内容:
1、请先查看是否已存在相似 issue
2、如果是功能、UI建议请移步至 Discussion
-->
**描述BUG**
<!--一个关于BUG的清晰描述。-->
**复现步骤**
<!--
如何复现:
1. 打开 '...'
2. 点击 '....'
3. 滚动到 '....'
4. 看到错误
-->
**期望结果**
<!--一个关于你期望的结果的清晰描述。-->
**实际结果**
<!--一个关于实际结果的清晰描述。-->
**截图**
<!--如果可以,请添加截图(包括错误界面和日志界面)来帮助解释你的问题。-->
**设备**
<!--
- 系统: e.g. iOS16 or Android13
- App版本 e.g. 1.0.302
-->
**更多信息**
<!--在这里添加关于这个问题的更多信息。-->

51
.github/workflows/analysis.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: flutter analysis
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
- name: Cache pub dependencies
uses: actions/cache@v4
with:
path: |
${{ env.PUB_CACHE }}
~/.pub-cache
${{ runner.tool_cache }}/flutter
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-
- name: Install dependencies
run: flutter pub get
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: dart analyze
# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
run: flutter test

66
.github/workflows/claude.yml vendored Normal file
View File

@@ -0,0 +1,66 @@
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
claude:
if: |
github.actor == 'lollipopkit' && (
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
)
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@beta
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# This is an optional setting that allows Claude to read CI results on PRs
additional_permissions: |
actions: read
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
# model: "claude-opus-4-1-20250805"
# Optional: Customize the trigger phrase (default: @claude)
# trigger_phrase: "/claude"
# Optional: Trigger when specific user is assigned to an issue
# assignee_trigger: "claude-bot"
# Optional: Allow Claude to run specific commands
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
# Optional: Add custom instructions for Claude to customize its behavior for your project
# custom_instructions: |
# Follow our coding standards
# Ensure all new code has tests
# Use TypeScript for new files
# Optional: Custom environment variables for Claude
# claude_env: |
# NODE_ENV: test

114
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,114 @@
name: Flutter Release
on:
workflow_dispatch:
push:
tags:
- "v*"
permissions:
contents: write
# Set by fl_build
# env:
# APP_NAME: ServerBox
# BUILD_NUMBER: ${{ github.ref_name }}
jobs:
releaseAndroid:
name: Release android
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.35.3"
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
- name: Fetch secrets
run: |
curl -u ${{ secrets.BASIC_AUTH }} -o android/app/app.key ${{ secrets.URL_PREFIX }}app.key
curl -u ${{ secrets.BASIC_AUTH }} -o android/key.properties ${{ secrets.URL_PREFIX }}key.properties
- name: Build
run: dart run fl_build -p android
- name: Rename for fdroid
run: |
mv build/app/outputs/flutter-apk/${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_arm64.apk build/app/outputs/flutter-apk/${{ env.APP_NAME }}_v1.0.${{ env.BUILD_NUMBER }}_arm64.apk
mv build/app/outputs/flutter-apk/${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_arm.apk build/app/outputs/flutter-apk/${{ env.APP_NAME }}_v1.0.${{ env.BUILD_NUMBER }}_arm.apk
mv build/app/outputs/flutter-apk/${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.apk build/app/outputs/flutter-apk/${{ env.APP_NAME }}_v1.0.${{ env.BUILD_NUMBER }}_amd64.apk
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
build/app/outputs/flutter-apk/${{ env.APP_NAME }}_v1.0.${{ env.BUILD_NUMBER }}_arm64.apk
build/app/outputs/flutter-apk/${{ env.APP_NAME }}_v1.0.${{ env.BUILD_NUMBER }}_arm.apk
build/app/outputs/flutter-apk/${{ env.APP_NAME }}_v1.0.${{ env.BUILD_NUMBER }}_amd64.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
releaseLinux:
name: Release linux
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
- name: Install dependencies
run: |
sudo apt update
# Basic
sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev mesa-utils libvulkan-dev desktop-file-utils wget
# App Specific
sudo apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev libsecret-1-dev
- name: Build
run: |
dart run fl_build -p linux
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
releaseWin:
name: Release windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
- name: Build
run: dart run fl_build -p windows
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_windows_amd64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# releaseApple:
# name: Release ios and macos
# runs-on: macos-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Install Flutter
# uses: subosito/flutter-action@v2
# - name: Build
# run: dart run fl_build -p ios
# - name: Create Release
# uses: softprops/action-gh-release@v2
# with:
# files: |
# ${{ env.APP_NAME }}_universal.ipa
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

19
.gitignore vendored
View File

@@ -46,10 +46,23 @@ app.*.map.json
/android/app/release
/android/app/fjy.androidstudio.key
/android/app/app.key
/release
test.dart
.fvm
# Keep generated l10n files
/.dart_tool/*
!/.dart_tool/flutter_gen
# /.dart_tool/*
# !/.dart_tool/flutter_gen
.dart_tool
# Linux release
linux.AppDir
**/*.AppImage
untranlated.json
.vscode/settings.json
more_build_data.json
trans.txt
android/app/.cxx

View File

@@ -1,11 +1,11 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
# This file should be version controlled and should not be manually edited.
version:
revision: 9944297138845a94256f1cf37beb88ff9a8e811a
channel: stable
revision: "761747bfc538b5af34aa0d3fac380f1bc331ec49"
channel: "stable"
project_type: app
@@ -13,11 +13,26 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
base_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
- platform: android
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
- platform: ios
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
- platform: linux
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
- platform: macos
create_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
base_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
- platform: web
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
- platform: windows
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
# User provided section

13
.vscode/launch.json vendored
View File

@@ -5,12 +5,19 @@
"version": "0.2.0",
"configurations": [
{
"name": "toolbox",
"name": "debug",
"request": "launch",
"type": "dart"
"type": "dart",
"env": {
// Comment this line to use the default display
"DISPLAY": ":1"
}
// "args": [
// "-v"
// ]
},
{
"name": "toolbox (profile mode)",
"name": "profile",
"request": "launch",
"type": "dart",
"flutterMode": "profile",

12
.vscode/settings.json vendored
View File

@@ -1,12 +0,0 @@
{
"dart.flutterSdkPath": ".fvm",
"files.watcherExclude": {
"**/.fvm": true
},
"git.ignoredRepositories": [
".fvm"
],
"search.exclude": {
"**/.fvm": true
}
}

95
CLAUDE.md Normal file
View File

@@ -0,0 +1,95 @@
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Commands
### Development
- `flutter run` - Run the app in development mode
- `dart run fl_build -p PLATFORM` - Build the app for specific platform (see fl_build package)
- `dart run build_runner build --delete-conflicting-outputs` - Generate code for models with annotations (json_serializable, freezed, hive, riverpod)
- Every time you change model files, run this command to regenerate code (Hive adapters, Riverpod providers, etc.)
- Generated files include: `*.g.dart`, `*.freezed.dart` files
### Testing
- `flutter test` - Run unit tests
- `flutter test test/battery_test.dart` - Run specific test file
## Architecture
This is a Flutter application for managing Linux servers with the following key architectural components:
### Project Structure
- `lib/core/` - Core utilities, extensions, and routing
- `lib/data/` - Data layer with models, providers, and storage
- `model/` - Data models organized by feature (server, container, ssh, etc.)
- `provider/` - Riverpod providers for state management
- `store/` - Local storage implementations using Hive
- `lib/view/` - UI layer with pages and widgets
- `lib/generated/` - Generated localization files
- `lib/hive/` - Hive adapters for local storage
### Key Technologies
- **State Management**: Riverpod with code generation (riverpod_annotation)
- **Local Storage**: Hive for persistent data with generated adapters
- **SSH/SFTP**: Custom dartssh2 fork for server connections
- **Terminal**: Custom xterm.dart fork for SSH terminal interface
- **Networking**: dio for HTTP requests
- **Charts**: fl_chart for server status visualization
- **Localization**: Flutter's built-in i18n with ARB files
- **Code Generation**: Uses build_runner with json_serializable, freezed, hive_generator, riverpod_generator
### Data Models
- Server management models in `lib/data/model/server/`
- Container/Docker models in `lib/data/model/container/`
- SSH and SFTP models in respective directories
- Most models use freezed for immutability and json_annotation for serialization
### Features
- Server status monitoring (CPU, memory, disk, network)
- SSH terminal with virtual keyboard
- SFTP file browser
- Docker container management
- Process and systemd service management
- Server snippets and custom commands
- Multi-language support (12+ languages)
- Cross-platform support (iOS, Android, macOS, Linux, Windows)
### State Management Pattern
- Uses Riverpod providers for dependency injection and state management
- Uses Freezed for immutable state models
- Providers are organized by feature in `lib/data/provider/`
- State is often persisted using Hive stores in `lib/data/store/`
### Build System
- Uses custom `fl_build` package for cross-platform building
- `make.dart` script handles pre/post build tasks (metadata generation)
- Supports building for multiple platforms with platform-specific configurations
- Many dependencies are custom forks hosted on GitHub (dartssh2, xterm, fl_lib, etc.)
### Important Notes
- **Never run code formatting commands** - The codebase has specific formatting that should not be changed
- **Always run code generation** after modifying models with annotations (freezed, json_serializable, hive, riverpod)
- Generated files (`*.g.dart`, `*.freezed.dart`) should not be manually edited
- AGAIN, NEVER run code formatting commands.
- USE dependency injection via GetIt for services like Stores, Services and etc.
- Generate all l10n files using `flutter gen-l10n` command after modifying ARB files.
- USE `hive_ce` not `hive` package for Hive integration.
- Which no need to config `HiveField` and `HiveType` manually.
- USE widgets and utilities from `fl_lib` package for common functionalities.
- Such as `CustomAppBar`, `context.showRoundDialog`, `Input`, `Btnx.cancelOk`, etc.
- You can use context7 MCP to search `lppcg fl_lib KEYWORD` to find relevant widgets and utilities.
- USE `libL10n` and `l10n` for localization strings.
- `libL10n` is from `fl_lib` package, and `l10n` is from this project.
- Before adding new strings, check if it already exists in `libL10n`.
- Prioritize using strings from `libL10n` to avoid duplication, even if the meaning is not 100% exact, just use the substitution of `libL10n`.
- Split UI into Widget build, Actions, Utils. use `extension on` to achieve this

View File

@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -645,14 +645,14 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.

146
README.md
View File

@@ -1,104 +1,88 @@
English | [简体中文](README_zh.md)
<!-- Title-->
<p align="center">
<h1 align="center">Server Box</h1>
</p>
<!-- Badges-->
<p align="center">
<a href="https://apps.apple.com/app/id1586449703">
<img style="height: 37px" src="screenshots/appstore.svg">
</a>
<a href="https://github.com/lollipopkit/flutter_server_box/releases/latest">
<img style="height: 37px" src="screenshots/dl-android.svg">
</a>
</p>
<h2 align="center">Flutter Server Box</h2>
<div align="center">
<a href="https://cdn.lpkt.cn/donate"><img alt="donate" src="https://img.shields.io/badge/donate-me-pink"></a>
<img alt="lang" src="https://img.shields.io/badge/lang-dart-cyan">
<img alt="license" src="https://img.shields.io/badge/license-GPLv3-yellow">
<a href="https://deepwiki.com/lollipopkit/flutter_server_box"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
</div>
<p align="center">
<a href="https://count.ly/f/badge" rel="nofollow">
<img style="height: 37px" src="https://count.ly/badges/light.svg">
</a>
</p>
<p align="center">
A Flutter project which provide charts to display server status and tools to manage server.
A Flutter project which provides charts to display Linux, Unix and Windows server status and tools to manage servers.
<br>
Especially thanks to <a href="https://github.com/TerminalStudio/dartssh2">dartssh2</a> & <a href="https://github.com/TerminalStudio/xterm.dart">xterm.dart</a>.
</p>
## 🏙️ Screenshots
## 🔖 Feature
- [x] Functions
- [x] `SSH` Terminal, `SFTP`
- [x] `Docker & Pkg` Manager
- [x] Status charts
- [x] `Ping` and etc.
- [x] i18n (English, Chinese)
- Welcome contribution :), [How to contribute?](#l10n-guide)
- [x] Desktop support
<table>
<tr>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/1.jpg"></td>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/2.jpg"></td>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/3.jpg"></td>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/4.jpg"></td>
</tr>
</table>
## 📥 Installation
## 📩 Push
You need to install [ServerBoxMonitor](https://github.com/lollipopkit/server_box_monitor) on your servers.
And config `iOS / Webhook / ServerChan` to push server status to your portable device without using ServerBox app.
|Platform| From|
|--|--|
| iOS / macOS | [AppStore](https://apps.apple.com/app/id1586449703) |
| Android | [GitHub](https://github.com/lollipopkit/flutter_server_box/releases) / [CDN](https://cdn.lpkt.cn/serverbox/pkg/?sort=time&order=desc&layout=grid) / [F-Droid](https://f-droid.org/packages/tech.lolli.toolbox) / [OpenAPK](https://www.openapk.net/serverbox/tech.lolli.toolbox/) |
| Linux / Windows | [GitHub](https://github.com/lollipopkit/flutter_server_box/releases) / [CDN](https://cdn.lpkt.cn/serverbox/pkg/?sort=time&order=desc&layout=grid) |
Please only download pkgs from the source that **you trust**!
## 🔖 Features
- `Status chart` (CPU, Sensors, GPU...), `SSH` Term, `SFTP`, `Docker & Process & Systemd`, `S.M.A.R.T`...
- Platform specific: `Bio auth``Msg push``Home widget``watchOS App`...
- English, 简体中文; Deutsch [@its-tom](https://github.com/its-tom), 繁體中文 [@kalashnikov](https://github.com/kalashnikov), Indonesian [@azkadev](https://github.com/azkadev), Français [@FrancXPT](https://github.com/FrancXPT), Dutch [@QazCetelic](https://github.com/QazCetelic), Türkçe [@mikropsoft](https://github.com/mikropsoft), Українська мова [@CakesTwix](https://github.com/CakesTwix); Español, Русский язык, Português, 日本語 (Generated by GPT)
## 🆘 Help
If you have any question or feature request, please open a [discussion](https://github.com/lollipopkit/flutter_server_box/discussions/new/choose).
If ServerBox app has any bug, please open an [issue](https://github.com/lollipopkit/flutter_server_box/issues/new).
<div align="center">
<a href="https://qm.qq.com/q/daCGa7eShG"><img alt="qq" src="https://img.shields.io/badge/QQ-Group-pink"></a>
<a href="https://t.me/lpktg"><img alt="donate" src="https://img.shields.io/badge/Telegram-lpktg-green"></a>
<a href="https://discord.gg/SsVNbRhK7w"><img alt="discord" src="https://img.shields.io/badge/Discord-lpkt-purple"></a>
</div>
## 📱 ScreenShots
<table>
<tr>
<td>
<img width="200px" src="screenshots/server.jpg">
</td>
<td>
<img width="200px" src="screenshots/detail.jpg">
</td>
<td>
<img width="200px" src="screenshots/ssh.jpg">
</td>
<td>
<img width="200px" src="screenshots/apt.png">
</td>
</tr>
</table>
<table>
<tr>
<td>
<img width="200px" src="screenshots/ping.png">
</td>
<td>
<img width="200px" src="screenshots/sftp.jpg">
</td>
<td>
<img width="200px" src="screenshots/docker.jpg">
</td>
<td>
<img width="200px" src="screenshots/convert.png">
</td>
</tr>
</table>
- In order to push server status to your portable device without opening ServerBox app (Such as **message push** and **home widget**), you need to install [ServerBoxMonitor](https://github.com/lollipopkit/server_box_monitor) on your servers, and config it correctly. See [wiki](https://github.com/lollipopkit/server_box_monitor/wiki) for more details.
- **Common issues** can be found in [app wiki](https://github.com/lollipopkit/flutter_server_box/wiki).
Before you open an issue, please read the following:
## 🖥 Platform
Status|Platform
--- | ---
Full Support| Android / iOS / macOS
Support, but not tested| Windows / Linux
1. Paste the **entire log** (click the top right of the home page) in the issue template.
2. Make sure whether the issue is caused by ServerBox app.
3. Welcome all valid and positive feedback, subjective feedback (such as you think other UI is better) may not be accepted.
After you read the above, you can open an [issue](https://github.com/lollipopkit/flutter_server_box/issues/new).
## l10n guide
1. Fork this repo and clone forked repo to your local machine.
2. Create `arb` file in `lib/l10n/` directory
- File name should be `intl_XX.arb`, where `XX` is the language code. Such as `intl_en.arb` for English and `intl_zh.arb` for Chinese.
3. Add content to the file. You can refer to `intl_en.arb` and `intl_zh.arb` for the format.
4. Run `flutter gen-l10n` to generate files.
5. Pull commit to your forked repo.
6. Request a pull request on my repo.
## 🧱 Contributions
Any positive contribution is welcome.
If I forgot to add your name to the contributors list, please add a comment in the issue or PR you opened to let me know, I will add it as soon as possible.
### Development
1. Setup [Flutter](https://flutter.dev/docs/get-started/install) environment.
2. Clone this repo, run `flutter run` to start the app.
3. Run `dart run fl_build -p PLATFORM` to build the app.
### Translation
- [Guide](https://blog.lpkt.cn/posts/faq/) can be found in my blog.
- We need your help! Just feel free to open a PR.
## 💡 My other apps
- [GPT Box](https://github.com/lollipopkit/flutter_gpt_box) - A third-party GPT Client for OpenAI API on all platforms.
- [More](https://github.com/lollipopkit) - Tools & etc.
## 📝 License
`GPL v3. lollipopkit 2023`
`GPL v3 lollipopkit`

View File

@@ -1,104 +1,89 @@
简体中文 | [English](README.md)
<!-- Title-->
<p align="center">
<h1 align="center">Server Box</h1>
</p>
<!-- Badges-->
<p align="center">
<a href="https://apps.apple.com/app/id1586449703">
<img style="height: 37px" src="screenshots/appstore.svg">
</a>
<a href="https://github.com/lollipopkit/flutter_server_box/releases/latest">
<img style="height: 37px" src="screenshots/dl-android.svg">
</a>
</p>
<h2 align="center">Flutter Server Box</h2>
<div align="center">
<a href="https://cdn.lpkt.cn/donate"><img alt="donate" src="https://img.shields.io/badge/捐赠-我-pink"></a>
<img alt="语言" src="https://img.shields.io/badge/语言-dart-cyan">
<img alt="license" src="https://img.shields.io/badge/证书-GPLv3-yellow">
<a href="https://deepwiki.com/lollipopkit/flutter_server_box"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
</div>
<p align="center">
<a href="https://count.ly/f/badge" rel="nofollow">
<img style="height: 37px" src="https://count.ly/badges/light.svg">
</a>
</p>
<p align="center">
使用Flutter开发的服务器工具箱提供服务器状态图表和管理工具。
使用 Flutter 开发的 Linux, Unix, Windows 服务器工具箱,提供服务器状态图表和管理工具。
<br>
特别感谢 <a href="https://github.com/TerminalStudio/dartssh2">dartssh2</a> & <a href="https://github.com/TerminalStudio/xterm.dart">xterm.dart</a>.
特别感谢 <a href="https://github.com/TerminalStudio/dartssh2">dartssh2</a> & <a href="https://github.com/TerminalStudio/xterm.dart">xterm.dart</a>
</p>
## 🏙️ 截屏
<table>
<tr>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/1.jpg"></td>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/2.jpg"></td>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/3.jpg"></td>
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/4.jpg"></td>
</tr>
</table>
## 📥 安装
平台|下载
--|--
iOS / macOS | [AppStore](https://apps.apple.com/app/id1586449703)
Android | [GitHub](https://github.com/lollipopkit/flutter_server_box/releases) / [CDN](https://cdn.lpkt.cn/serverbox/pkg/?sort=time&order=desc&layout=grid) / [F-Droid](https://f-droid.org/packages/tech.lolli.toolbox) / [OpenAPK](https://www.openapk.net/serverbox/tech.lolli.toolbox/)
Linux / Windows | [GitHub](https://github.com/lollipopkit/flutter_server_box/releases) / [CDN](https://cdn.lpkt.cn/serverbox/pkg/?sort=time&order=desc&layout=grid)
请从 **信任** 的来源下载!
## 🔖 特点
- [x] 功能
- [x] `SSH` 终端, `SFTP`
- [x] `Docker & 包` 管理器
- [x] 状态图表
- [x] `Ping` 和 更多
- [x] 本地化 ( 英语, 中文 )
- 欢迎贡献 :)[怎么贡献?](#l10n)
- [x] 桌面端支持
## 📩 推送
你需要在你的服务器上安装 [ServerBoxMonitor](https://github.com/lollipopkit/server_box_monitor)。
并且配置 `iOS / Webhook / Server酱` 推送服务,这样,你可以在不使用 ServerBox app 时获取服务器状态。
- `状态图表`CPU、传感器、GPU 等), `SSH` 终端, `SFTP`, `Docker & 进程 & Systemd` 管理,`S.M.A.R.T`...
- 特殊支持:`生物认证``推送``桌面小部件``watchOS App``跟随系统颜色`...
- 本地化
- English, 简体中文
- Español, Русский язык, Português, 日本語 (Generated by GPT)
- Deutsch [@its-tom](https://github.com/its-tom), 繁體中文 [@kalashnikov](https://github.com/kalashnikov), Indonesian [@azkadev](https://github.com/azkadev), Français [@FrancXPT](https://github.com/FrancXPT), Dutch [@QazCetelic](https://github.com/QazCetelic), Türkçe [@mikropsoft](https://github.com/mikropsoft), Українська мова [@CakesTwix](https://github.com/CakesTwix);
- 感谢贡献者们!
## 🆘 帮助
如果你有任何问题或者功能请求,请在 [讨论](https://github.com/lollipopkit/flutter_server_box/discussions/new/choose) 中交流。
如果 ServerBox app 有任何 bug请在 [问题](https://github.com/lollipopkit/flutter_server_box/issues/new) 中反馈。
<div align="center">
<a href="https://qm.qq.com/q/daCGa7eShG"><img alt="qq" src="https://img.shields.io/badge/QQ-群-pink"></a>
<a href="https://t.me/lpktg"><img alt="donate" src="https://img.shields.io/badge/Telegram-lpktg-green"></a>
<a href="https://discord.gg/SsVNbRhK7w"><img alt="discord" src="https://img.shields.io/badge/Discord-lpkt-purple"></a>
</div>
## 📱 截屏
<table>
<tr>
<td>
<img width="200px" src="screenshots/server.jpg">
</td>
<td>
<img width="200px" src="screenshots/detail.jpg">
</td>
<td>
<img width="200px" src="screenshots/ssh.jpg">
</td>
<td>
<img width="200px" src="screenshots/apt.png">
</td>
</tr>
</table>
<table>
<tr>
<td>
<img width="200px" src="screenshots/ping.png">
</td>
<td>
<img width="200px" src="screenshots/sftp.jpg">
</td>
<td>
<img width="200px" src="screenshots/docker.jpg">
</td>
<td>
<img width="200px" src="screenshots/convert.png">
</td>
</tr>
</table>
- 为了可以在不使用 ServerBox app 时获取服务器状态(例如:桌面小部件、推送服务),你需要在你的服务器上安装 [ServerBoxMonitor](https://github.com/lollipopkit/server_box_monitor),详情见 [wiki](https://github.com/lollipopkit/server_box_monitor/wiki/%E4%B8%BB%E9%A1%B5)。
- **常见问题** 可以在 [app wiki](https://github.com/lollipopkit/flutter_server_box/wiki/主页) 查看。
反馈前须知:
## 🖥 平台
状态|平台
--- | ---
完整支持 | Android / iOS / macOS
可能支持,未测试 | Windows / Linux
1. 反馈问题请附带 log点击首页右上角并以 bug 模版提交。
2. 反馈问题前请检查是否是 serverbox 的问题。
3. 欢迎所有有效、正面的反馈主观比如你觉得其他UI更好看的反馈不一定会接受
## 🧱 贡献
## l10n
1. Fork本项目并Clone你Fork的项目至你的电脑
2.`lib/l10n/` 文件夹内创建 `.arb` 本地化文件
- 文件名应该类似 `intl_XX.arb`, `XX` 是语言标识码。 例如 `intl_en.arb` 是给英语的, `intl_zh.arb` 是给中文的
3.`.arb` 本地化文件添加内容。 你可以查看 `intl_en.arb``intl_zh.arb` 的内容,并理解其含义,来创建新的本地化文件
4. 运行 `flutter gen-l10n` 来生成所需文件
5. Commit 变更到你的 Fork 的 Repo
6. 在我的项目中发起 Pull Request.
任何正面的贡献都欢迎。
如果我忘记在贡献者列表中添加你的名字,请在你打开的 issue 或 PR 中添加评论让我知道,我会尽快添加。
## 📝 License
`GPL v3. lollipopkit 2023`
### 开发
1. 安装 [Flutter](https://flutter.dev/docs/get-started/install)
2. 克隆这个仓库, 运行 `flutter run` 启动应用
3. 运行 `dart run fl_build -p PLATFORM` 构建应用
### 翻译
[指南](https://blog.lpkt.cn/faq/) 可在我的博客中找到。
## 💡 我的其它 Apps
- [GPT Box](https://github.com/lollipopkit/flutter_gpt_box) - 支持 OpenAI API 的 第三方全平台客户端。
- [更多](https://github.com/lollipopkit) - 工具 & etc.
## 📝 协议
`GPL v3 lollipopkit`

View File

@@ -9,6 +9,16 @@
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- "**/*.g.dart"
language:
# strict-casts: true
# strict-inference: true
# strict-raw-types: true
errors:
invalid_annotation_target: ignore
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
@@ -22,10 +32,20 @@ linter:
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
library_private_types_in_public_api: false
library_private_types_in_public_api: true
use_build_context_synchronously: false
depend_on_referenced_packages: false
prefer_final_locals: true
unnecessary_parenthesis: true
implicit_call_tearoffs: true
always_declare_return_types: true
always_use_package_imports: true
annotate_overrides: true
avoid_empty_else: true
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
avoid_return_types_on_setters: true
directives_ordering: true # Enable sorting of imports
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

View File

@@ -1,3 +1,9 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
@@ -10,11 +16,12 @@ def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
} else {
System.err.printf(" [!] key.properties not found in %s (%s). Build will fail. \n", rootProject, rootProject.file('.'))
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
if (keystoreProperties['storeFile'] == null || !file(keystoreProperties['storeFile']).exists()) {
System.err.printf(" [!] storeFile defined in key.properties does not exist in %s. Build will fail. \n", file('.'))
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
@@ -27,12 +34,10 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 33
namespace "tech.lolli.toolbox"
compileSdk flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
@@ -49,10 +54,18 @@ android {
defaultConfig {
applicationId "tech.lolli.toolbox"
minSdkVersion 21
targetSdkVersion 30
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
ndk {
if(!splits.abi.enable) { // abiFilters cannot be present when splits abi filters are set
abiFilters 'arm64-v8a', 'armeabi-v7a'
}
}
}
signingConfigs {
@@ -72,19 +85,35 @@ android {
}
debug {
applicationIdSuffix '.debug'
// No applicationIdSuffix or resValue here
}
profile {
applicationIdSuffix '.debug'
// No applicationIdSuffix or resValue here
}
}
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
dependencies {}
ext.abiCodes = ["x86_64": 1, "armeabi-v7a": 2, "arm64-v8a": 3]
import com.android.build.OutputFile
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def abiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
if (abiVersionCode != null) {
output.versionCodeOverride = variant.versionCode * 10 + abiVersionCode
}
}
}

View File

@@ -1,7 +1 @@
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
-keep class com.jcraft.** { *; }

View File

@@ -1,21 +1,30 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="tech.lolli.toolbox">
<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<application
android:label="ServerBox"
android:label="@string/app_name"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:allowBackup="true"
android:allowBackup="true"
android:fullBackupContent="@xml/backup_rules"
android:hasFragileUserData="true"
android:restoreAnyVersion="true">
android:restoreAnyVersion="true"
tools:targetApi="q">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|layoutDirection|fontScale|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
@@ -23,12 +32,12 @@
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
@@ -36,5 +45,51 @@
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<activity
android:name=".widget.WidgetConfigureActivity"
android:exported="false"
android:theme="@android:style/Theme.Material.Light.Dialog">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<receiver
android:name=".widget.HomeWidget"
android:exported="false"
android:label="StatusWidget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="tech.lolli.toolbox.UPDATE_WIDGET" />
<action android:name="miui.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<!--
<meta-data
android:name="miuiWidget"
android:value="true" />
-->
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/home_widget" />
</receiver>
<service
android:name=".ForegroundService"
android:enabled="true"
android:foregroundServiceType="dataSync"
android:exported="false" />
</application>
</manifest>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility?hl=en and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT" />
<data android:mimeType="text/plain" />
</intent>
</queries>
</manifest>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,288 @@
package tech.lolli.toolbox
import android.app.*
import android.content.Intent
import android.os.Build
import android.os.IBinder
import android.util.Log
import org.json.JSONArray
import org.json.JSONObject
import java.io.File
import java.util.*
class ForegroundService : Service() {
companion object {
@Volatile
var isRunning: Boolean = false
}
private val chanId = "ForegroundServiceChannel"
private val GROUP_KEY = "ssh_sessions_group"
private val SUMMARY_ID = 1000
private val ACTION_STOP_FOREGROUND = "ACTION_STOP_FOREGROUND"
private val ACTION_UPDATE_SESSIONS = "tech.lolli.toolbox.ACTION_UPDATE_SESSIONS"
private val ACTION_DISCONNECT_SESSION = "tech.lolli.toolbox.ACTION_DISCONNECT_SESSION"
private var isFgStarted = false
private val postedIds = mutableSetOf<Int>()
// Stable mapping from session-id -> notification-id to avoid hash collisions
private val notificationIdMap = mutableMapOf<String, Int>()
private val nextNotificationId = java.util.concurrent.atomic.AtomicInteger(2001)
private fun logError(message: String, error: Throwable? = null) {
Log.e("ForegroundService", message, error)
try {
val logFile = File(getExternalFilesDir(null), "server_box.log")
val timestamp = java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.US).format(Date())
val logMessage = "$timestamp [ForegroundService] ERROR: $message\n${error?.stackTraceToString() ?: ""}\n"
logFile.appendText(logMessage)
} catch (e: Exception) {
Log.e("ForegroundService", "Failed to write log", e)
}
}
override fun onCreate() {
super.onCreate()
Log.d("ForegroundService", "Service onCreate")
isRunning = true
createNotificationChannel()
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU &&
androidx.core.content.ContextCompat.checkSelfPermission(
this, android.Manifest.permission.POST_NOTIFICATIONS
) != android.content.pm.PackageManager.PERMISSION_GRANTED
) {
Log.w("ForegroundService", "Notification permission denied. Stopping service.")
stopForegroundService()
return START_NOT_STICKY
}
if (intent == null) {
Log.w("ForegroundService", "onStartCommand called with null intent")
stopForegroundService()
return START_NOT_STICKY
}
val action = intent.action
Log.d("ForegroundService", "onStartCommand action=$action")
return when (action) {
ACTION_STOP_FOREGROUND -> {
clearAll()
stopForegroundService()
START_NOT_STICKY
}
ACTION_UPDATE_SESSIONS -> {
val payload = intent.getStringExtra("payload") ?: "{}"
handleUpdateSessions(payload)
START_STICKY
}
else -> {
// Default bring up foreground with placeholder
ensureForeground(createSummaryNotification(0, emptyList()))
START_STICKY
}
}
} catch (e: Exception) {
logError("Error in onStartCommand", e)
stopSelf()
return START_NOT_STICKY
}
}
override fun onBind(intent: Intent?): IBinder? {
return null
}
private fun createNotificationChannel() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val manager = getSystemService(NotificationManager::class.java)
if (manager == null) {
Log.e("ForegroundService", "Failed to get NotificationManager")
return
}
val serviceChannel = NotificationChannel(
chanId,
"ForegroundServiceChannel",
NotificationManager.IMPORTANCE_DEFAULT
).apply {
description = "For foreground service"
}
manager.createNotificationChannel(serviceChannel)
}
}
private fun ensureForeground(notification: Notification) {
try {
if (!isFgStarted) {
startForeground(SUMMARY_ID, notification)
isFgStarted = true
} else {
val nm = getSystemService(NotificationManager::class.java)
nm?.notify(SUMMARY_ID, notification)
}
} catch (e: Exception) {
logError("Failed to start/update foreground", e)
}
}
private fun createSummaryNotification(count: Int, lines: List<String>): Notification {
val notificationIntent = Intent(this, MainActivity::class.java)
val pendingIntent = PendingIntent.getActivity(
this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE
)
val stopIntent = Intent(this, ForegroundService::class.java).apply { action = ACTION_STOP_FOREGROUND }
val stopPending = PendingIntent.getService(this, 0, stopIntent, PendingIntent.FLAG_IMMUTABLE)
val builder = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
Notification.Builder(this, chanId)
} else {
Notification.Builder(this)
}
val inbox = Notification.InboxStyle()
lines.forEach { inbox.addLine(it) }
return builder
.setContentTitle("SSH sessions: $count active")
.setContentText(if (lines.isNotEmpty()) lines.first() else "Running")
.setSmallIcon(R.mipmap.ic_launcher)
.setStyle(inbox)
.setOngoing(true)
.setOnlyAlertOnce(true)
.setGroup(GROUP_KEY)
.setGroupSummary(true)
.setContentIntent(pendingIntent)
.addAction(android.R.drawable.ic_delete, "Stop", stopPending)
.build()
}
private fun handleUpdateSessions(payload: String) {
val nm = getSystemService(NotificationManager::class.java)
if (nm == null) {
logError("NotificationManager null")
return
}
val sessions = mutableListOf<SessionItem>()
try {
val obj = JSONObject(payload)
val arr: JSONArray = obj.optJSONArray("sessions") ?: JSONArray()
for (i in 0 until arr.length()) {
val s = arr.optJSONObject(i) ?: continue
val id = s.optString("id")
val title = s.optString("title")
val sub = s.optString("subtitle")
val whenMs = s.optLong("startTimeMs", System.currentTimeMillis())
val status = s.optString("status", "connected")
if (id.isNotEmpty()) {
sessions.add(SessionItem(id, title, sub, whenMs, status))
}
}
} catch (e: Exception) {
logError("Failed to parse payload", e)
}
// Clear if empty
if (sessions.isEmpty()) {
clearAll()
return
}
// Build per-session notifications
val currentIds = mutableSetOf<Int>()
val summaryLines = mutableListOf<String>()
sessions.forEach { s ->
// Assign a stable, collision-resistant id per session for this service lifecycle
val nid = notificationIdMap.getOrPut(s.id) { nextNotificationId.getAndIncrement() }
currentIds.add(nid)
summaryLines.add("${s.title}: ${s.status}")
val disconnectIntent = Intent(this, MainActivity::class.java).apply {
action = ACTION_DISCONNECT_SESSION
putExtra("session_id", s.id)
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP)
}
val disconnectPending = PendingIntent.getActivity(
this, nid, disconnectIntent, PendingIntent.FLAG_IMMUTABLE
)
val builder = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
Notification.Builder(this, chanId)
} else {
Notification.Builder(this)
}
val noti = builder
.setContentTitle(s.title)
.setContentText("${s.subtitle} · ${s.status}")
.setSmallIcon(R.mipmap.ic_launcher)
.setWhen(s.startWhen)
.setUsesChronometer(true)
.setOngoing(true)
.setOnlyAlertOnce(true)
.setGroup(GROUP_KEY)
.addAction(android.R.drawable.ic_media_pause, "Disconnect", disconnectPending)
.build()
nm.notify(nid, noti)
}
// Cancel stale ones
val toCancel = postedIds - currentIds
toCancel.forEach { nm.cancel(it) }
// Clean up id mappings for canceled notifications to prevent growth
if (toCancel.isNotEmpty()) {
val keysToRemove = notificationIdMap.filterValues { it in toCancel }.keys
keysToRemove.forEach { notificationIdMap.remove(it) }
}
postedIds.clear()
postedIds.addAll(currentIds)
// Post/update summary and ensure foreground
val maxSummaryLines = 5
val truncated = summaryLines.size > maxSummaryLines
val displaySummaryLines = if (truncated) {
summaryLines.take(maxSummaryLines) + "...and ${summaryLines.size - maxSummaryLines} more"
} else {
summaryLines
}
val summary = createSummaryNotification(sessions.size, displaySummaryLines)
ensureForeground(summary)
}
private fun clearAll() {
val nm = getSystemService(NotificationManager::class.java)
nm?.cancel(SUMMARY_ID)
postedIds.forEach { id -> nm?.cancel(id) }
postedIds.clear()
isFgStarted = false
}
data class SessionItem(
val id: String,
val title: String,
val subtitle: String,
val startWhen: Long,
val status: String,
)
private fun stopForegroundService() {
try {
stopForeground(true)
} catch (e: Exception) {
logError("Error stopping foreground", e)
}
stopSelf()
Log.d("ForegroundService", "ForegroundService stopped")
}
override fun onDestroy() {
super.onDestroy()
Log.d("ForegroundService", "Service onDestroy")
isRunning = false
}
}

View File

@@ -1,21 +1,142 @@
package tech.lolli.toolbox
import io.flutter.embedding.android.FlutterActivity
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.Manifest
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import io.flutter.embedding.android.FlutterFragmentActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
import android.appwidget.AppWidgetManager
import tech.lolli.toolbox.widget.HomeWidget
class MainActivity: FlutterFragmentActivity() {
private lateinit var channel: MethodChannel
private val ACTION_UPDATE_SESSIONS = "tech.lolli.toolbox.ACTION_UPDATE_SESSIONS"
private val ACTION_DISCONNECT_SESSION = "tech.lolli.toolbox.ACTION_DISCONNECT_SESSION"
class MainActivity : FlutterActivity() {
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
val binaryMessenger = flutterEngine.dartExecutor.binaryMessenger
MethodChannel(binaryMessenger, "tech.lolli.toolbox/app_retain").apply {
setMethodCallHandler { method, result ->
if (method.method == "sendToBackground") {
moveTaskToBack(true)
result.success(null)
} else {
result.notImplemented()
channel = MethodChannel(binaryMessenger, "tech.lolli.toolbox/main_chan")
channel.setMethodCallHandler { method, result ->
when (method.method) {
"sendToBackground" -> {
moveTaskToBack(true)
result.success(null)
}
"isServiceRunning" -> {
result.success(ForegroundService.isRunning)
}
"startService" -> {
try {
reqPerm()
if (!notificationsAllowed()) {
// Don't start foreground service without notification permission on API 33+
result.error("NOTIFICATION_PERMISSION_DENIED", "Notification permission not granted", null)
return@setMethodCallHandler
}
val serviceIntent = Intent(this@MainActivity, ForegroundService::class.java)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForegroundService(serviceIntent)
} else {
startService(serviceIntent)
}
result.success(null)
} catch (e: Exception) {
// Log error but don't crash
android.util.Log.e("MainActivity", "Failed to start service: ${e.message}")
result.error("SERVICE_ERROR", e.message, null)
}
}
"stopService" -> {
val serviceIntent = Intent(this@MainActivity, ForegroundService::class.java)
stopService(serviceIntent)
result.success(null)
}
"updateHomeWidget" -> {
val intent = Intent(this@MainActivity, HomeWidget::class.java)
intent.action = AppWidgetManager.ACTION_APPWIDGET_UPDATE
sendBroadcast(intent)
result.success(null)
}
"updateSessions" -> {
try {
if (!notificationsAllowed()) {
// Avoid starting/continuing service updates when notifications are blocked
result.error("NOTIFICATION_PERMISSION_DENIED", "Notification permission not granted", null)
return@setMethodCallHandler
}
val serviceIntent = Intent(this@MainActivity, ForegroundService::class.java)
serviceIntent.action = ACTION_UPDATE_SESSIONS
serviceIntent.putExtra("payload", method.arguments as String)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForegroundService(serviceIntent)
} else {
startService(serviceIntent)
}
result.success(null)
} catch (e: Exception) {
android.util.Log.e("MainActivity", "Failed to update sessions: ${e.message}")
result.error("SERVICE_ERROR", e.message, null)
}
}
else -> {
result.notImplemented()
}
}
}
// Handle intent if launched via notification action
handleActionIntent(intent)
}
private fun reqPerm() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) return
// Check if we already have the permission to avoid unnecessary prompts
if (ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS)
!= PackageManager.PERMISSION_GRANTED) {
try {
ActivityCompat.requestPermissions(
this,
arrayOf(Manifest.permission.POST_NOTIFICATIONS),
123,
)
} catch (e: Exception) {
// Log error but don't crash
android.util.Log.e("MainActivity", "Failed to request permissions: ${e.message}")
}
}
}
private fun notificationsAllowed(): Boolean {
return if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
true
} else {
ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED
}
}
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
handleActionIntent(intent)
}
private fun handleActionIntent(intent: Intent?) {
if (intent == null) return
when (intent.action) {
ACTION_DISCONNECT_SESSION -> {
val sessionId = intent.getStringExtra("session_id")
if (sessionId != null && ::channel.isInitialized) {
try {
channel.invokeMethod("disconnectSession", mapOf("id" to sessionId))
} catch (e: Exception) {
android.util.Log.e("MainActivity", "Failed to invoke disconnect: ${e.message}")
}
}
}
}

View File

@@ -0,0 +1,221 @@
package tech.lolli.toolbox.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.content.Intent
import android.os.Build
import android.util.Log
import android.view.View
import android.widget.RemoteViews
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeoutOrNull
import org.json.JSONObject
import org.json.JSONException
import tech.lolli.toolbox.R
import java.net.URL
import java.net.HttpURLConnection
import java.net.SocketTimeoutException
import java.io.FileNotFoundException
import java.io.IOException
import java.util.concurrent.ConcurrentHashMap
class HomeWidget : AppWidgetProvider() {
companion object {
private const val TAG = "HomeWidget"
private const val NETWORK_TIMEOUT = 10_000L // 10 seconds
private const val COROUTINE_TIMEOUT = 15_000L // 15 seconds
private val activeUpdates = ConcurrentHashMap<Int, Boolean>()
}
override fun onUpdate(context: Context, appWidgetManager: AppWidgetManager, appWidgetIds: IntArray) {
for (appWidgetId in appWidgetIds) {
updateAppWidget(context, appWidgetManager, appWidgetId)
}
}
private fun updateAppWidget(context: Context, appWidgetManager: AppWidgetManager, appWidgetId: Int) {
// Prevent concurrent updates for the same widget
if (activeUpdates.putIfAbsent(appWidgetId, true) == true) {
Log.d(TAG, "Widget $appWidgetId is already updating, skipping")
return
}
val views = RemoteViews(context.packageName, R.layout.home_widget)
val url = getWidgetUrl(context, appWidgetId)
if (url.isNullOrEmpty()) {
Log.w(TAG, "URL not found for widget $appWidgetId")
showErrorState(views, appWidgetManager, appWidgetId, "Please configure the widget URL.")
activeUpdates.remove(appWidgetId)
return
}
setupClickIntent(context, views, appWidgetId)
showLoadingState(views, appWidgetManager, appWidgetId)
CoroutineScope(Dispatchers.IO).launch {
withTimeoutOrNull(COROUTINE_TIMEOUT) {
try {
val serverData = fetchServerData(url)
if (serverData != null) {
withContext(Dispatchers.Main) {
showSuccessState(views, appWidgetManager, appWidgetId, serverData)
}
} else {
withContext(Dispatchers.Main) {
showErrorState(views, appWidgetManager, appWidgetId, "Invalid server data received.")
}
}
} catch (e: Exception) {
Log.e(TAG, "Error updating widget $appWidgetId: ${e.message}", e)
withContext(Dispatchers.Main) {
val errorMessage = when (e) {
is SocketTimeoutException -> "Connection timeout. Please check your network."
is IOException -> "Network error. Please check your connection."
is JSONException -> "Invalid data format received from server."
else -> "Failed to retrieve data: ${e.message}"
}
showErrorState(views, appWidgetManager, appWidgetId, errorMessage)
}
}
} ?: run {
Log.w(TAG, "Widget update timed out for widget $appWidgetId")
withContext(Dispatchers.Main) {
showErrorState(views, appWidgetManager, appWidgetId, "Update timed out. Please try again.")
}
}
activeUpdates.remove(appWidgetId)
}
}
private fun getWidgetUrl(context: Context, appWidgetId: Int): String? {
val sp = context.getSharedPreferences("FlutterSharedPreferences", Context.MODE_PRIVATE)
return sp.getString("widget_$appWidgetId", null)
?: sp.getString("$appWidgetId", null)
?: sp.getString("widget_*", null)
}
private fun setupClickIntent(context: Context, views: RemoteViews, appWidgetId: Int) {
val intentConfigure = Intent(context, WidgetConfigureActivity::class.java).apply {
putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId)
}
val flag = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
} else {
PendingIntent.FLAG_UPDATE_CURRENT
}
val pendingConfigure = PendingIntent.getActivity(context, appWidgetId, intentConfigure, flag)
views.setOnClickPendingIntent(R.id.widget_container, pendingConfigure)
}
private suspend fun fetchServerData(url: String): ServerData? = withContext(Dispatchers.IO) {
var connection: HttpURLConnection? = null
try {
connection = (URL(url).openConnection() as HttpURLConnection).apply {
requestMethod = "GET"
connectTimeout = NETWORK_TIMEOUT.toInt()
readTimeout = NETWORK_TIMEOUT.toInt()
setRequestProperty("User-Agent", "ServerBox-Widget/1.0")
setRequestProperty("Accept", "application/json")
}
if (connection.responseCode != HttpURLConnection.HTTP_OK) {
throw IOException("HTTP ${connection.responseCode}: ${connection.responseMessage}")
}
val jsonStr = connection.inputStream.bufferedReader().use { it.readText() }
parseServerData(jsonStr)
} finally {
connection?.disconnect()
}
}
private fun parseServerData(jsonStr: String): ServerData? {
return try {
val jsonObject = JSONObject(jsonStr)
val data = jsonObject.getJSONObject("data")
val server = data.optString("name", "Unknown Server")
val cpu = data.optString("cpu", "").takeIf { it.isNotBlank() } ?: "N/A"
val mem = data.optString("mem", "").takeIf { it.isNotBlank() } ?: "N/A"
val disk = data.optString("disk", "").takeIf { it.isNotBlank() } ?: "N/A"
val net = data.optString("net", "").takeIf { it.isNotBlank() } ?: "N/A"
// Return data even if some fields are missing, providing defaults
// Only reject if we can't parse the JSON structure properly
ServerData(server, cpu, mem, disk, net)
} catch (e: JSONException) {
Log.e(TAG, "JSON parsing error: ${e.message}", e)
null
}
}
private fun showLoadingState(views: RemoteViews, appWidgetManager: AppWidgetManager, appWidgetId: Int) {
views.apply {
setTextViewText(R.id.widget_name, "Loading...")
setViewVisibility(R.id.error_message, View.GONE)
setViewVisibility(R.id.widget_content, View.VISIBLE)
setViewVisibility(R.id.widget_cpu_label, View.VISIBLE)
setViewVisibility(R.id.widget_mem_label, View.VISIBLE)
setViewVisibility(R.id.widget_disk_label, View.VISIBLE)
setViewVisibility(R.id.widget_net_label, View.VISIBLE)
setViewVisibility(R.id.widget_progress, View.VISIBLE)
setFloat(R.id.widget_name, "setAlpha", 0.7f)
}
appWidgetManager.updateAppWidget(appWidgetId, views)
}
private fun showSuccessState(views: RemoteViews, appWidgetManager: AppWidgetManager, appWidgetId: Int, data: ServerData) {
views.apply {
setTextViewText(R.id.widget_name, data.name)
setTextViewText(R.id.widget_cpu, data.cpu)
setTextViewText(R.id.widget_mem, data.mem)
setTextViewText(R.id.widget_disk, data.disk)
setTextViewText(R.id.widget_net, data.net)
val timeStr = android.text.format.DateFormat.format("HH:mm", java.util.Date()).toString()
setTextViewText(R.id.widget_time, timeStr)
setViewVisibility(R.id.error_message, View.GONE)
setViewVisibility(R.id.widget_content, View.VISIBLE)
setViewVisibility(R.id.widget_progress, View.GONE)
// Smooth fade-in animation
setFloat(R.id.widget_name, "setAlpha", 1f)
setFloat(R.id.widget_cpu_label, "setAlpha", 1f)
setFloat(R.id.widget_mem_label, "setAlpha", 1f)
setFloat(R.id.widget_disk_label, "setAlpha", 1f)
setFloat(R.id.widget_net_label, "setAlpha", 1f)
setFloat(R.id.widget_time, "setAlpha", 1f)
}
appWidgetManager.updateAppWidget(appWidgetId, views)
}
private fun showErrorState(views: RemoteViews, appWidgetManager: AppWidgetManager, appWidgetId: Int, errorMessage: String) {
views.apply {
setTextViewText(R.id.widget_name, "Error")
setViewVisibility(R.id.error_message, View.VISIBLE)
setTextViewText(R.id.error_message, errorMessage)
setViewVisibility(R.id.widget_content, View.GONE)
setViewVisibility(R.id.widget_progress, View.GONE)
setFloat(R.id.widget_name, "setAlpha", 1f)
setFloat(R.id.error_message, "setAlpha", 1f)
}
appWidgetManager.updateAppWidget(appWidgetId, views)
}
data class ServerData(
val name: String,
val cpu: String,
val mem: String,
val disk: String,
val net: String
)
}

View File

@@ -0,0 +1,82 @@
package tech.lolli.toolbox.widget
import android.app.Activity
import android.appwidget.AppWidgetManager
import android.content.Intent
import android.os.Bundle
import android.util.Patterns
import android.widget.Button
import android.widget.EditText
import tech.lolli.toolbox.R
class WidgetConfigureActivity : Activity() {
private var appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID
private lateinit var urlEditText: EditText
private lateinit var saveButton: Button
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.widget_configure)
// 设置结果为取消,以防用户在完成配置前退出
setResult(RESULT_CANCELED)
// 获取 widget ID
val extras = intent.extras
if (extras != null) {
appWidgetId = extras.getInt(
AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID
)
}
// 如果没有有效的 widget ID完成 activity
if (appWidgetId == AppWidgetManager.INVALID_APPWIDGET_ID) {
finish()
return
}
// 初始化 UI 元素
urlEditText = findViewById(R.id.url_edit_text)
saveButton = findViewById(R.id.save_button)
// 从 SharedPreferences 加载现有配置
val sp = getSharedPreferences("FlutterSharedPreferences", MODE_PRIVATE)
val existingUrl = sp.getString("widget_$appWidgetId", "")
urlEditText.setText(existingUrl)
// 设置保存按钮点击事件
saveButton.setOnClickListener {
val url = urlEditText.text.toString().trim()
if (url.isEmpty()) {
urlEditText.error = "Please enter a URL"
return@setOnClickListener
}
// 验证 URL 格式
if (!Patterns.WEB_URL.matcher(url).matches()) {
urlEditText.error = "Please enter a valid URL"
return@setOnClickListener
}
// 保存 URL 到 SharedPreferences
val editor = sp.edit()
editor.putString("widget_$appWidgetId", url)
editor.apply()
// 更新 widget 使用 AppWidgetManager
val appWidgetManager = AppWidgetManager.getInstance(this)
val updateIntent = Intent(this, HomeWidget::class.java).apply {
action = AppWidgetManager.ACTION_APPWIDGET_UPDATE
putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, intArrayOf(appWidgetId))
}
sendBroadcast(updateIntent)
// 设置结果并结束 activity
val resultValue = Intent()
resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId)
setResult(RESULT_OK, resultValue)
finish()
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -6,4 +6,4 @@
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
</layer-list>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -6,4 +6,4 @@
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
</layer-list>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -6,4 +6,4 @@
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
</layer-list>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -6,4 +6,4 @@
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
</layer-list>

View File

@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="@color/widgetSummaryText"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M15,9L9,9v6h6L15,9zM13,13h-2v-2h2v2zM21,11L21,9h-2L19,7c0,-1.1 -0.9,-2 -2,-2h-2L15,3h-2v2h-2L11,3L9,3v2L7,5c-1.1,0 -2,0.9 -2,2v2L3,9v2h2v2L3,13v2h2v2c0,1.1 0.9,2 2,2h2v2h2v-2h2v2h2v-2h2c1.1,0 2,-0.9 2,-2v-2h2v-2h-2v-2h2zM17,17L7,17L7,7h10v10z"/>
</vector>

View File

@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="@color/widgetSummaryText"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M7.77,6.76L6.23,5.48 0.82,12l5.41,6.52 1.54,-1.28L3.42,12l4.35,-5.24zM7,13h2v-2L7,11v2zM17,11h-2v2h2v-2zM11,13h2v-2h-2v2zM17.77,5.48l-1.54,1.28L20.58,12l-4.35,5.24 1.54,1.28L23.18,12l-5.41,-6.52z"/>
</vector>

View File

@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="@color/widgetSummaryText"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
</vector>

View File

@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="@color/widgetSummaryText"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M20.38,8.57l-1.23,1.85a8,8 0,0 1,-0.22 7.58L5.07,18A8,8 0,0 1,15.58 6.85l1.85,-1.23A10,10 0,0 0,3.35 19a2,2 0,0 0,1.72 1h13.85a2,2 0,0 0,1.74 -1,10 10,0 0,0 -0.27,-10.44zM10.59,15.41a2,2 0,0 0,2.83 0l5.66,-8.49 -8.49,5.66a2,2 0,0 0,0 2.83z"/>
</vector>

View File

@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="@color/widgetSummaryText"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M2,20h20v-4L2,16v4zM4,17h2v2L4,19v-2zM2,4v4h20L22,4L2,4zM6,7L4,7L4,5h2v2zM2,14h20v-4L2,10v4zM4,11h2v2L4,13v-2z"/>
</vector>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="16dp"/>
<solid android:color="@color/widgetBackground" />
</shape>

View File

@@ -0,0 +1,213 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widget_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/widget_background"
android:padding="17dp"
android:orientation="vertical" >
<TextView
android:id="@+id/widget_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/widgetText"
android:textSize="20sp"
android:textStyle="bold"
android:maxLines="1"
android:ellipsize="end"
android:alpha="0"
android:animateLayoutChanges="true"
android:fadingEdge="horizontal"
android:singleLine="true"
tools:text="Server Name" />
<!-- Wrap the content in a LinearLayout for easy visibility management -->
<LinearLayout
android:id="@+id/widget_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_below="@id/widget_name"
android:layout_marginTop="8dp">
<RelativeLayout
android:id="@+id/widget_container_inner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true">
<LinearLayout
android:id="@+id/widget_cpu_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:alpha="0"
android:animateLayoutChanges="true">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/speed_24"
android:layout_gravity="center_vertical"
android:contentDescription="CPU usage" />
<TextView
android:id="@+id/widget_cpu"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="8dp"
android:singleLine="true"
android:ellipsize="end"
android:textColor="@color/widgetSummaryText"
android:textSize="12sp"
tools:text="CPU: 25.6%" />
</LinearLayout>
<LinearLayout
android:id="@+id/widget_mem_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_below="@id/widget_cpu_label"
android:gravity="center_vertical"
android:orientation="horizontal"
android:alpha="0"
android:animateLayoutChanges="true">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/memory_24"
android:layout_gravity="center_vertical"
android:contentDescription="Memory usage" />
<TextView
android:id="@+id/widget_mem"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="8dp"
android:maxLines="1"
android:ellipsize="end"
android:textColor="@color/widgetSummaryText"
android:textSize="12sp"
tools:text="Memory: 4.2GB / 8GB" />
</LinearLayout>
<LinearLayout
android:id="@+id/widget_disk_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_below="@id/widget_mem_label"
android:gravity="center_vertical"
android:orientation="horizontal"
android:alpha="0"
android:animateLayoutChanges="true">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/storage_24"
android:layout_gravity="center_vertical"
android:contentDescription="Disk usage" />
<TextView
android:id="@+id/widget_disk"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="8dp"
android:maxLines="1"
android:ellipsize="end"
android:textColor="@color/widgetSummaryText"
android:textSize="12sp"
tools:text="Disk: 125GB / 250GB" />
</LinearLayout>
<LinearLayout
android:id="@+id/widget_net_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/widget_disk_label"
android:gravity="center_vertical"
android:orientation="horizontal"
android:alpha="0"
android:animateLayoutChanges="true">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/net_24"
android:layout_gravity="center_vertical"
android:contentDescription="Network usage" />
<TextView
android:id="@+id/widget_net"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="8dp"
android:maxLines="1"
android:ellipsize="end"
android:textColor="@color/widgetSummaryText"
android:textSize="12sp"
tools:text="Network: 15MB/s ↓ 8MB/s ↑" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<!-- Error message display -->
<TextView
android:id="@+id/error_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/widget_name"
android:layout_marginTop="8dp"
android:textColor="@color/widgetSummaryText"
android:textSize="11sp"
android:visibility="gone"
android:alpha="0"
android:animateLayoutChanges="true"
android:lineSpacingMultiplier="1.2"
android:maxLines="3"
android:ellipsize="end"
tools:text="Error message text that might be longer than usual" />
<TextView
android:id="@+id/widget_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:maxLines="1"
android:textColor="@color/widgetSummaryText"
android:textSize="10sp"
android:alpha="0"
android:animateLayoutChanges="true"
android:fontFamily="monospace"
tools:text="12:34" />
<!-- Progress indicator for loading state -->
<ProgressBar
android:id="@+id/widget_progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_centerInParent="true"
android:visibility="gone"
android:indeterminate="true" />
</RelativeLayout>

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Widget URL"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginBottom="16dp"
android:textColor="@android:color/black" />
<EditText
android:id="@+id/url_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="https://server/status"
android:inputType="textUri"
android:layout_marginBottom="16dp"
android:background="@android:drawable/edit_text"
android:padding="12dp"
android:textColor="@android:color/black"
android:textColorHint="@android:color/darker_gray" />
<Button
android:id="@+id/save_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Save"
android:background="#8b2252"
android:textColor="@android:color/white"
android:padding="12dp" />
</LinearLayout>

View File

@@ -2,4 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowSplashScreenBackground">#121212</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="widgetBackground">#000000</color>
<color name="widgetText">#FFFFFF</color>
<color name="widgetSummaryText">#BBBBBB</color>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#372D2D</color>
</resources>

View File

@@ -7,6 +7,8 @@
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
@@ -17,4 +19,4 @@
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
</resources>

View File

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowSplashScreenBackground">#ffffff</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<color name="colorLaunch">#EEEEEE</color>
<color name="widgetBackground">#FFFFFF</color>
<color name="widgetText">#000000</color>
<color name="widgetSummaryText">#333333</color>
</resources>

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#083963</color>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">ServerBox</string>
</resources>

View File

@@ -7,6 +7,8 @@
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
@@ -17,4 +19,4 @@
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<exclude domain="sharedpref" path="FlutterSecureStorage"/>
</full-backup-content>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="110dp"
android:maxHeight="110dp"
android:maxWidth="110dp"
android:minHeight="110dp"
android:updatePeriodMillis="1800001"
android:initialLayout="@layout/home_widget"
android:configure="tech.lolli.toolbox.widget.WidgetConfigureActivity"
android:resizeMode="none"
android:widgetCategory="home_screen">
</appwidget-provider>

View File

@@ -1,16 +1,3 @@
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
@@ -21,9 +8,28 @@ allprojects {
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects { subproject ->
// Only works on com.android.application(the main app module)
if (subproject.plugins.hasPlugin('com.android.application')) {
subproject.afterEvaluate {
android.buildTypes.matching { it.name == 'profile' }.all { buildType ->
buildType.applicationIdSuffix = ".profile"
buildTypes.profile.resValue 'string', 'app_name', 'SrvBxP'
}
android.buildTypes.matching { it.name == 'debug' }.all { buildType ->
buildType.applicationIdSuffix = ".debug"
buildTypes.debug.resValue 'string', 'app_name', 'SrvBxD'
}
}
}
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}

View File

@@ -1,3 +1,6 @@
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

View File

@@ -1,6 +1,5 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

View File

@@ -1,11 +1,26 @@
include ':app'
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version '8.6.0' apply false
id "org.jetbrains.kotlin.android" version "2.1.21" apply false
}
include ":app"

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Some files were not shown because too many files have changed in this diff Show More