Feat: sync progress for electron (#6662)

* fix: state shouldn't be returned in ipc

* feat: download && upload processing

* enhance(ui):  interaction of show password checkbox

* feat: time left

* feat: download progress

* Set download batch size to 100

* improve(ui): progress pane of file sync indicator

* improve(ui): progress pie of each file state

* improve(ui): progress pie of each file state

* improve(ui): progress pie of each downloading file

* fix: add last changed time

* enhance: time left

* fix: total needs to be larger than finished

* fix: wait for update-graphs-txid!

* enhance: show in-progress files first

* chore: ui polish

* improve(ui): persist stauts of sync files list toggle switch

* fix(ui): visibility of sync now button on mobile

* chore: remove ios static out after sync

* fix: debounce clicking on sync icon

* fix: repos not refreshed after unlink or delete

* enhance: automatically save page-metadata.edn to avoid sync when restart

* improve(ui): sync now shortcut for file sync progress pane

* enhance: data transfer icons

* fix: stop sync if switched to another graph

* fix: can't switch

* enhance: sort files first before uploading or downloading

* fix: clear current graph uuid when sync stops

* fix: separate progress by graphs

* fix: check files only in the current progress

* fix: prevent multiple sync managers for the same graph

* fix: remove redundant files watchers

* enhance(sync): re-exec remote->local-full-sync when exception

re-exec remote->local-full-sync when <update-local-files return exceptions

* enhance(sync): re-exec remote->local-full-sync when exception

re-exec remote->local-full-sync when <update-local-files return exceptions

* fix(sync): set-progress-callback, update rsapi

* fix(sync): uploading progress bar

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: charlie <xyhp915@qq.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
This commit is contained in:
Andelf
2022-09-23 02:00:24 +08:00
committed by GitHub
parent 4c3503ff1e
commit ae114afbd8
21 changed files with 962 additions and 438 deletions

View File

@@ -14,6 +14,9 @@
--ls-left-sidebar-width: 246px;
--ls-left-sidebar-sm-width: 70%;
--ls-left-sidebar-nav-btn-size: 38px;
--ls-color-file-sync-error: #ff0000;
--ls-color-file-sync-pending: #ffbb4d;
--ls-color-file-sync-idle: #04b404;
}
@media (prefers-color-scheme: dark) {
@@ -85,6 +88,8 @@ html[data-theme='dark'] {
--ls-search-icon-color: var(--ls-link-text-color);
--ls-a-chosen-bg: var(--ls-secondary-background-color);
--ls-right-sidebar-code-bg-color: #04303c;
--ls-pie-bg-color: #01303b;
--ls-pie-fg-color: #0b5869;
--color-level-1: var(--ls-secondary-background-color);
--color-level-2: var(--ls-tertiary-background-color);
--color-level-3: var(--ls-quaternary-background-color);
@@ -145,6 +150,8 @@ html[data-theme='light'] {
--ls-search-icon-color: var(--ls-icon-color);
--ls-a-chosen-bg: #f7f7f7;
--ls-right-sidebar-code-bg-color: var(--ls-secondary-background-color);
--ls-pie-bg-color: #e1e1e1;
--ls-pie-fg-color: #0a4a5d;
--color-level-1: var(--ls-secondary-background-color);
--color-level-2: var(--ls-tertiary-background-color);
--color-level-3: var(--ls-quaternary-background-color);
@@ -902,7 +909,7 @@ button.menu:focus {
background-color: var(--ls-menu-hover-color, #f4f5f7);
}
.menu-links-wrapper {
.menu-links-wrapper, .menu-links-outer {
@apply py-2 rounded-md shadow-lg overflow-y-auto;
max-height: calc(100vh - 100px) !important;