Commit Graph

1114 Commits

Author SHA1 Message Date
Oscar Beaumont
f140d75ece move from try to try_exists for explicit error handling 2022-10-15 05:18:42 +08:00
Oscar Beaumont
bea74aede4 fix hot reload + move navigate() to <Link /> 2022-10-15 03:56:55 +08:00
jake
4cd2dde35c CAS ID Improvements (#413)
* remove `ring` dependency and use `sha2` instead

* use BLAKE3 and include full file checksum

* update schema comments
2022-10-13 15:31:47 -07:00
jake
b5c571541e [ENG-256] Crypto Crate Refinements (#410)
* add experimental preview media support

* clippy+formatting

* add support for mk/pvm nonces

* fix cursor positioning+size deserialization bug

* clippy+formatting

* cleanup code and add `decrypt_preview_media()`

* update comment

* remove `Mode` from `Keyslot`

* use little-endian `usize` for media length

* remove memory objects

* remove mode enum

* add `.zeroize()` to `Protected<>`

* remove `Mode` ser/de

* refactor, remove `Mode`, add helper functions

* formatting

* remove unused error

* update comments/docs

* comments, fix large files, insane performance

* doc updates and fix decrypt zeroize

* revert to 1048576 byte `BLOCK_SIZE`

* `Keyslot` and `PreviewMedia` constructors now handle encryption

* add metadata item with associated functions

* update comments, clean up useless items

* add metadata support within the header

* remove stray 128 in length calcs

* include metadata in header ser/de

* fmt+clippy

* rework keyslot decryption

* formatting

* api changes, code cleanup

* docs for `stream.rs`

* massive documentation re-write

* mark expensive doc test as ignore

* minor api tweaks

* add examples

* formatting+linting

* finalise documentation and add more examples

* formatting
2022-10-13 15:25:42 -07:00
Oscar Beaumont
c0b51bcd4a update rspc to version with fixed httpz rev
Main was broken because it was pulling httpz from main and I have been refactoring it.
2022-10-13 15:03:43 +08:00
maxichrome
3bed836989 Merge pull request #409 from Looskie/main
ui/ux: fix z index issue on NewBanner
2022-10-09 11:16:01 -05:00
Cody Miller
19bbfd60b2 ui/ux: fix z index issue on NewBanner 2022-10-09 11:50:19 -04:00
Jamie Pine
b94d2ed736 (hotfix) p2p preventing compile 2022-10-08 11:30:17 -07:00
Oscar Beaumont
2b8473e1ef Merge pull request #404 from kor-pixel/patch-1
fixed the overflow
2022-10-08 02:43:20 +08:00
jake
d236b28f84 [ENG-250] Crypto Library (#400)
* add crypto crate with some functionality

* formatting

* add `argon2id` parameter levels

* add descriptive comments

* add stream decryption objects

* add `StreamEncryptor` struct

* add `StreamDecryptor`

* general cleanup

* add `thiserror` and error handling

* add header structs

* add basic serialization functionality

* advance serialization

* finish serialization

* clean up serialization and use `impl`

* finalise deserialization

* add stream helper functions and remove old code

* add AAD creation and retrieval

* add important comment

* add `ChaCha20Rng` as a CSPRNG

* cleanup and crate-wide clippy lints

* apply nursery lints

* add in-memory encryption objects

* rename `utils` to `objects`

* move (de)serialization rules to separate file

* add header-write helper function

* add password hash helper function

* add `decrypt_master_key` function

* cleanup, formatting, linting

* move keyslots to separate file, and rename them

* add basic comments

* remove `secrecy` dependency and import `protected`

* add `to_array` helper function

* `sd_crypto` -> `sd-crypto`

* remove manual drops

* add clippy allows

* add `new()` for `Keyslot` and `FileHeader`

* remove license

* zeroize read buffer on error

* magic bytes are now `ballapp`

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
Co-authored-by: Jamie Pine <32987599+jamiepine@users.noreply.github.com>
2022-10-07 07:31:40 -07:00
사무엘
b301efb79c Added overflow-hidden to main 2022-10-07 10:50:18 +09:00
사무엘
eb47a2e341 removed overflow previously added 2022-10-07 10:39:00 +09:00
Jamie Pine
900ee618ce Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2022-10-06 18:10:08 -07:00
Jamie Pine
e402fc52b7 sd extensions crate
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-10-06 18:10:03 -07:00
사무엘
90e90e8c55 fixed the overflow 2022-10-07 09:09:32 +09:00
Oscar Beaumont
e5d7eb4300 Merge pull request #401 from spacedriveapp/merge-p2p-code
P2P code
2022-10-07 07:47:42 +08:00
Oscar Beaumont
aacdf33216 merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00
Oscar Beaumont
fe4da9048a cargo fmt + fix clippy lints 2022-10-07 07:39:59 +08:00
Oscar Beaumont
162eef60ab toast notification hook 2022-10-07 07:36:22 +08:00
Oscar Beaumont
75c4680b43 Merge remote-tracking branch 'origin/main' into merge-p2p-code 2022-10-07 05:56:05 +08:00
Oscar Beaumont
d7fddc83f7 fix major bugs in p2p PR 2022-10-07 05:51:40 +08:00
Oscar Beaumont
598ba38a9d merge in P2P code 2022-10-07 05:32:45 +08:00
Oscar Beaumont
bdb0e984dc Merge pull request #391 from spacedriveapp/update-rspc-and-more
upgrade rspc + lazy loading in React
2022-10-07 04:59:12 +08:00
Oscar Beaumont
2ae02f202d Expo committed cringe 2022-10-07 04:56:59 +08:00
Brendan Allan
c44b959e63 remove stats.html 2022-10-07 03:55:36 +08:00
Jamie Pine
ddad55860b tests for magic bytes 2022-10-06 09:49:14 -07:00
Jamie Pine
cff4801c93 tests for magic bytes 2022-10-06 09:48:55 -07:00
Oscar Beaumont
dec2697740 Fix mobile + upgrade Expo + even newer rspc 2022-10-06 21:07:46 +08:00
Brendan Allan
f1b55f1101 merge main into update-rspc-and-more 2022-10-06 18:34:18 +08:00
Oscar Beaumont
20523a94c9 upgrade workspace dependencies 2022-10-06 14:03:58 +08:00
Oscar Beaumont
a5e81a898e move arg structs into the builder closure 2022-10-06 13:30:57 +08:00
Jamie Pine
5ab432ae46 Magic bytes 🪄
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-10-05 13:16:22 -07:00
Brendan Allan
35144be8a1 separate fetch & check 2022-10-05 17:20:40 +08:00
Brendan Allan
e5359f042d please formatter 2022-10-05 12:14:04 +08:00
Brendan Allan
4eb53615a3 update pcr to 0.6.2 branch 2022-10-05 12:07:41 +08:00
Brendan Allan
45ff212e97 merge main into update-rspc-and-more 2022-10-05 12:01:50 +08:00
Jamie Pine
d27ff3cd80 Object Kind (#397)
* add temp custom icons and tweak styles

* tweaks

* - added Object type structs
- added extension enums with variant macros
- improved explorer rendering
- added database migration hotfix

* - added dev only data folder
- improved explorer image loading

* macros do rule !

* remove baselining

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-10-04 20:34:41 -07:00
Brendan Allan
985796b560 update pcr 2022-10-05 11:32:25 +08:00
Brendan Allan
9bf071e5d9 bump rust cache key 2022-10-05 10:46:56 +08:00
Brendan Allan
b827e024ba update lockfile 2022-10-05 10:20:04 +08:00
Brendan Allan
a634727e1b merge meain into update-rspc-and-more 2022-10-05 10:11:52 +08:00
Brendan Allan
cd7dddde4b format web 2022-10-05 10:05:25 +08:00
Brendan Allan
a7f37f7732 Use turborepo for desktop & web apps (#399)
* add turborepo

* give docs a package.json

* tabs not spaces

* tabs not spaces
2022-10-04 18:59:28 -07:00
Brendan Allan
162f3d7782 Improve CI Speed (#398)
* use different cache

* cache prisma client in rustfmt

* cleanup prettier config

* build server image in sub-action

* server image + prisma client custom actions

* remove lefthoook checks that are in ci

* fix build-server-image

* rename Clippy job

* rename build core job

* use custom rust caching action

* fix rust cache shared key

* cleanup custom action job names

* remove platform check in clippy ci

* setup pnpm in clippy ci

* update mobile package name

* make ios compiling conditional

* use pnpm cache

* run clippy in release

* force use release for all jobs
2022-10-04 18:45:54 -07:00
Brendan Allan
723058e060 merge main into update-rspc-and-more 2022-10-05 08:58:03 +08:00
Brendan Allan
0821ef575a update pcr version 2022-10-05 04:20:59 +08:00
Jamie Pine
cbd58ee438 Rename Files to Objects (#396)
* backend rename complete

* finalize Object refactor frontend
+ remove some exhaustive dep suppression
+ FIX INVALIDATE QUERY BUG
2022-10-04 09:16:49 -07:00
Brendan Allan
ed06e3051e [ENG-84] Sync library (#394)
* new sql lib stuff

* add sync stuff + rename all crates

* build sd-core

* add sync/example/dist to source

* fix sync example in monorepop

* appease clippy

* update lockfile

* update commit hooks

* fix typescript

* fix typescript build

* please rustfmt
2022-10-04 05:25:12 -07:00
Brendan Allan
e3f92ab4ec please rustfmt 2022-10-04 20:07:05 +08:00
Brendan Allan
7d15ce0152 run rustfmt in ci 2022-10-04 20:03:49 +08:00