feat!: File Sync (#5355)

- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
Charlie
2022-09-01 00:31:49 +08:00
committed by GitHub
parent 252fec4dd6
commit 01d879c18e
111 changed files with 6507 additions and 1950 deletions

View File

@@ -87,7 +87,7 @@
}
.ui__modal {
@apply fixed px-4 pb-4 inset-0 flex items-baseline justify-center top-24;
@apply fixed px-4 pb-4 inset-0 flex items-baseline justify-center top-12 sm:top-24;
&-overlay {
@apply fixed inset-0 transition-opacity;
@@ -104,13 +104,17 @@
background: var(--ls-secondary-background-color);
.panel-content {
overflow: overlay;
overflow-y: auto;
overflow-x: hidden;
width: 94vw;
max-height: 85vh;
padding: 2rem;
max-height: 89vh;
padding: 2rem 1.5rem;
@screen md {
min-width: 768px;
@screen sm {
overflow-y: overlay;
min-width: 720px;
max-height: 85vh;
padding: 2rem;
width: auto;
.ls-card, .ls-search {
@@ -131,6 +135,15 @@
transition ease-in-out duration-150;
}
&[label="ls-modal-align-center"] {
top: 0;
.ui__modal-panel {
top: 50vh;
transform: translateY(-52%);
}
}
&[label="diff__cp"] {
.panel-content {
padding: 2rem 1rem;
@@ -143,7 +156,7 @@
&[label="flashcards__cp"] {
.panel-content {
padding: 2rem 0rem;
padding: 2rem 0;
@screen sm {
padding: 2rem 2rem;
@@ -171,7 +184,7 @@
}
}
html.is-native-andorid,
html.is-native-android,
html.is-native-iphone,
html.is-native-iphone-without-notch
{
@@ -235,7 +248,7 @@ html.is-mobile {
cursor: not-allowed;
}
&:hover {
&:hover:not([disabled]) {
opacity: 0.8;
}
@@ -274,6 +287,13 @@ html.is-mobile {
}
}
.dropdown-wrapper {
background-color: var(--ls-primary-background-color, #fff);
border: 1px solid var(--ls-tertiary-background-color);
min-width: 12rem;
border-radius: 6px;
}
.dropdown-caret {
display: inline-block;
width: 0;