Commit graph

1412 commits

Author SHA1 Message Date
JulesGuesnon 4db0116bad refactor(Explorer): Removed long check by a stopPropagation 2023-02-10 11:59:31 +09:00
JulesGuesnon 3a2e34664c fix(Explorer): Added unhighlightning when clicking outside a file 2023-02-09 20:25:07 +09:00
jake 5b78bbbb7d
[ENG-358] Malicious client protection for the KM (#562)
* add `queue_check`, `mount_check` and `unlock_check`

* make `unlock_check` marginally more readable

* clippy

* clean up & rename functions

* remove unlock check on `keys.list`

* use american spelling of `favorite`

* use `then_some` (thanks clippy)

* more american spelling
2023-02-09 09:30:26 +00:00
Jules Guesnon 07401ac08f
[Fix] Dropdown focus when app is launching (#563)
fix(Interface): Removed the focus when app is launching
2023-02-08 13:37:25 -08:00
Oscar Beaumont b94eab8517 fix invalid submodule 2023-02-08 14:24:20 +08:00
Brendan Allan 1436d779b8
Move location online status out of database (#560)
* move location online status out of database

* remove useLibrarySubscription

* remove old code
2023-02-07 05:58:47 -08:00
Brendan Allan 21b3a5a504 Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2023-02-07 21:26:06 +08:00
Brendan Allan 8396d0f3ee damn i'm stupid 2023-02-07 21:00:27 +08:00
jake d1b6263ae7
[ENG-355] Keychain integration (and some typesafety) (#558)
* update crypto MSRV

* rename `keychain` to `keyring`

* make a start on the keymanager unlock refactor/keychain integration

* update routes

* update bindings

* add const identifiers

* add UI/front-end support for unlocking KM with OS keychains

* remove SK from lib creation dialog

* update query name

* add keyring functions

* attempt to update `change_master_password()` to use the keychain

* cleanup, fix master password change ui, better secret key in keyring detection

* cleanup TS a little

* add route for getting secret key from keyring

* update bindings

* update var names + show secret key in keys settings

* add `react-qr-code` and option to view the secret key (if it's in the OS keyring)

* allow copying SK to clipboard

* add `key_type` so we're not reliant on specific UUIDs for root/verification key handling

* clippy

* fix mobile typecheck

* fix typecheck, fix typo and tweak balloon hash parameters

* minor cleanup + typo fix

* use newtype structs

* WIP type refactoring (major readability boost!)

* update `use`

* add tokio `sync` feature

* too many structs? idk

* more cleanup

* add `generate` and `Nonce`

* `Nonce` and `Key` typesafety (beautiful)

* clippy + cleanup

* update code & examples

* fix bug & remove `ProtectedVec` as it looked out of place

* use `Key`

* add a query invalidation to make the UI extremely responsive

* ci pls work

* remove `keyringHasSk` route
2023-02-07 12:03:12 +00:00
Brendan Allan d99adcf7ca move data_dir dev check to desktop only 2023-02-06 17:46:55 +08:00
Brendan Allan e0ead286cf
Merge pull request #556 from spacedriveapp/update-msrv
update msrv to 1.67
2023-02-01 12:30:31 +08:00
Brendan Allan 19765404f2 update msrv to 1.67 2023-02-01 12:21:34 +08:00
Brendan Allan d1aa927203
Merge pull request #553 from spacedriveapp/non-unique-objects
Store CAS ids on file paths
2023-02-01 12:11:03 +08:00
Brendan Allan 58da1822e5 remove TryInto usage in sync manager 2023-02-01 11:42:43 +08:00
Brendan Allan 95ba2e1246 remove temp_cas_id 2023-02-01 11:23:59 +08:00
jake 9fb01fc9d2
[ENG-341] OS Keychains (#554)
* super barebones keychain start

* working+unfinished linux keychain

* add `copy` to `Identifier` and add `delete()`

* add generic errors + code cleanup

* cleanup code & add support for apple keychains

* remove `users` dep

* use uppercase UUID and tweak apple `account` variable

* revert uppercase change and clean up linux labels

* code cleanup & add a readme to the crypto crate

* remove useless `map`

* correctly handle keyring not supported errors

* add `Send` to `Box<dyn Keyring>`

* remove useless `cfg`s

* only return `Ok()` if we support keychains (pls work CI)

* clippy

* Minor fixes

---------

Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com>
2023-02-01 00:11:03 +00:00
Ericson Fogo Soares dd1db0338e A bunch of minor fixes 2023-01-31 20:02:23 -03:00
brxken128 c3c51afcb8 remove tokio git patch and update to 1.25.0 2023-01-31 23:38:33 +08:00
Brendan Allan 494e87d115 Merge branch 'main' into non-unique-objects 2023-01-30 12:11:35 +08:00
Brendan Allan 024c838911
Merge pull request #549 from spacedriveapp/eng-348-async-crypto
[ENG-348] Asynchronous crypto
2023-01-29 03:00:40 -08:00
Brendan Allan bf362eadd6 store cas ids on file paths 2023-01-28 11:42:24 +08:00
brxken128 6874c23c01
make requested changes 2023-01-26 10:39:18 +00:00
brxken128 2abf75defd
update things to use workspace tokio 2023-01-25 22:03:10 +00:00
brxken128 3f2a62feb4
Merge branch 'main' into eng-348-async-crypto 2023-01-25 22:02:23 +00:00
Ericson "Fogo" Soares 1a684104bc
Merge pull request #552 from spacedriveapp/eng-351-tokio-git
[ENG-351] Tokio git patch
2023-01-25 16:34:28 -03:00
brxken128 a11d81549f
use a tokio::sync::Mutex just to be safe 2023-01-25 18:20:29 +00:00
brxken128 dbe9b9157c
use spacedriveapp/tokio 2023-01-25 15:00:24 +00:00
brxken128 a3b1c8f5b8
tell everything to use workspace tokio + add tokio git patch 2023-01-25 14:36:29 +00:00
brxken128 7623bf9a6c
change fs and macros tokio features to dev-deps 2023-01-25 14:03:00 +00:00
brxken128 fa147f3e87
add correct features to tokio dep 2023-01-25 12:47:26 +00:00
Brendan Allan fcad42f388
Merge pull request #551 from spacedriveapp/shared-sync-infra
update shared sync functions to use new system
2023-01-24 21:20:26 -08:00
Brendan Allan 3c7c05cc87 update shared sync functions to use new system 2023-01-25 13:17:01 +08:00
Brendan Allan 74fe603535
Merge pull request #542 from niikeec/closable-job-manager
Inner closable overlay panel
2023-01-24 20:38:51 -08:00
Brendan Allan 8c4cdb1ede Merge branch 'main' into closable-job-manager 2023-01-25 12:25:05 +08:00
Brendan Allan c1cccc29cc convert overlay to popover 2023-01-25 12:24:38 +08:00
nikec b4ebe9e3e9 Update Popover.tsx 2023-01-25 02:02:00 +01:00
brxken128 2381798790
fix stream reading due to read()
Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com>
2023-01-24 23:28:16 +00:00
nikec cd3b95bc3d popover 2023-01-24 23:54:01 +01:00
nikec a90cc42385 Revert "overlay panel ctx, closable job manager"
This reverts commit 96978785b9.
2023-01-24 22:53:57 +01:00
brxken128 c75e983fd4
bring in Salt, Key and EncryptedKey type aliases 2023-01-24 17:01:50 +00:00
brxken128 546bf643b2
add ProtectedVec type alias 2023-01-24 16:47:41 +00:00
brxken128 3ed106e27b
clippy 2023-01-24 16:35:31 +00:00
brxken128 5053b6ab53
fix broken forms 2023-01-24 16:23:03 +00:00
brxken128 0ba0945662
use alertDialog within key mnanager panel 2023-01-24 16:22:48 +00:00
brxken128 d8b6789cb7
update cli to use async crypto 2023-01-24 16:19:30 +00:00
brxken128 ecc6ac9a53
update bindings and TS mutations 2023-01-24 14:57:44 +00:00
brxken128 3fd547ab2d
disable benchmarks as they need async support 2023-01-24 14:25:42 +00:00
brxken128 f13c247aec
update examples 2023-01-24 14:25:19 +00:00
brxken128 371ac93bcf
async crypto! 2023-01-24 14:19:27 +00:00
brxken128 87b75cfe62
return to match/for statements for async iterators (until rust gets better support) 2023-01-24 14:04:18 +00:00