Commit Graph

88 Commits

Author SHA1 Message Date
Brendan Allan
eb84add14b Merge branch 'main' into eslint-overhaul 2023-01-23 01:44:28 -08:00
maxichrome
4b7f13da66 Add clean command (#540)
Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
2023-01-22 22:38:52 -08:00
Brendan Allan
3e4ca13766 simplify eslint configs + add CI job 2023-01-22 16:01:15 +08:00
maxichrome
66c0f08a51 fix prettier unparseable file issues 2023-01-20 23:40:30 -08:00
maxichrome
d7ff841441 rm not-strictly-necessary pnpm before lefthook install 2023-01-19 20:31:35 -08:00
maxichrome
6271fd25ff prefix lefthook install with pnpm because executability is broken 2023-01-19 19:58:49 -08:00
maxichrome
650c2aee8a let prettier determine its own supported types 2023-01-19 19:27:46 -08:00
maxichrome
7975db33f8 install lint-staged 2023-01-19 19:19:35 -08:00
maxichrome
3780703e94 integrate lefthook precommit formatting 2023-01-19 13:08:55 -08:00
Brendan Allan
3cc7a44435 relative imports in @sd/interface (#504) 2023-01-06 19:07:24 -08:00
Utku Bakir
fcbc92203b Bump node to lts (v18) 2022-12-14 12:43:02 +03:00
jake
ed8fd999e1 [ENG-251] Crypto Jobs (#475)
* add base crypto job

* leave hashing to the KM and not keyslots

* add latest header object versions and update examples

* add a very experimental (local file!) encrypt job

* working file encryption with default key

* working file decryption

* non-working encrypt file dialog

* general code cleanup

* comments and correct feature locking

* fix the `Dialog`

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>

* WIP encrypt dialog

* massive encrypt dialog overhaul

* add generic explorer alert dialog

* better key naming/numbering, alerts for unsupported scenarios

* cleanup + decrypt file dialog

* remove debugging stuff

* remove dead code & fix a bug with key select being empty

* clean up dialog UI massively

* add support for setting output path

* add correct button type to prevent early dialog submits

* add "nice" job data for encrypt/decrypt

* tweak functionality of key setting in encrypt dialog

* include full file metadata if selected, and lay out groundwork for preview media inclusion

* add comment about not restoring metadata/pvm just yet

* general cleanup

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
2022-12-07 15:16:13 +00:00
Brendan Allan
7311205146 use node 16 2022-11-06 10:14:09 +08:00
Olen Latham
2b70ba8931 ignore last commit derp 2022-11-05 18:05:40 +00:00
Olen Latham
28905c8339 looking over I think we want our @type/node to be in line with our node version requirements 2022-11-05 17:55:32 +00:00
Olen Latham
ae2c647e2c Updated pnpm to 7.14.0 and added .nvmrc 2022-11-05 17:34:48 +00:00
Olen Latham
f77e0f4ca1 Update package.json
Updated node version to streamline with contribution.md which calls for version 17.
2022-11-03 01:19:20 -04:00
Jamie Pine
ed20c0ca1d merge 2022-10-20 21:55:39 -07:00
Brendan Allan
60df0aaa53 add postinstall script for react-native-codegen 2022-10-17 23:42:32 +08:00
Oscar Beaumont
d9e348f21b 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
Oscar Beaumont
450ad0daa2 merge duplicate prettier config and format repo with it 2022-10-07 07:45:15 +08:00
Oscar Beaumont
90644be566 Expo committed cringe 2022-10-07 04:56:59 +08:00
Oscar Beaumont
6d7285b2ea upgrade workspace dependencies 2022-10-06 14:03:58 +08:00
Brendan Allan
a37deaa159 merge main into update-rspc-and-more 2022-10-05 12:01:50 +08:00
Brendan Allan
414b8eb47d 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
Jamie Pine
b9ce8e9f57 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
74b42bf45c [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
ba5c3fe660 db:gen in core 2022-10-04 18:42:40 +08:00
Jamie Pine
6796262619 Added crates folder (#389)
* restructure core for crates folder

- improve naming consistency
- added placeholder files for near future code
- added docs

* - removed all typescript from core
- moved rspc bindings to client

* remove useless git ignore & rustfmt
2022-09-29 21:02:29 -07:00
Oscar Beaumont
b01887c5ab Rustify mobile (#361)
* Refactor navigation flow & types

* Remove drawer screen wrapper

* Remove DrawerItem + cleanup

* Switch to JS Stack Nav & header animations

* [WIP] Spacedrive core on Android & IOS

* Update Podfile and cleanup Contributing guide.

* Remove @sd/core from mobile

* File Modal

* Prettify File Modal & Add date-fns

* IOS subscriptions

* Update package versions

* Custom header for stack screens

* android subscriptions

* Animate Drawer button & template for Search screen

* Search header

* Fix Search icon being weird

* Merge branch 'main' into rustify-mobile

* fix rspc dep + setup script for mobile

* Less margin on header

* Move shared assets & drawer logo for mobile

* support for IOS simulator

* add type safe rspc hooks to mobile

* Cleanup PR & Update packages

* Updated bindings from main

* Update lefthook.yml

* Remove `tag` folder from core
The `tag` folder came back from the dead. Maybe it got confused in merge conflict?

* update pnpm lockfile + fix tsc errors

* fix asset import

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2022-08-29 04:59:09 -07:00
Oscar Beaumont
8cc0967bae fix landing page 2022-08-29 17:36:34 +08:00
Utku Bakir
56495719d5 Move eslint to config package 2022-08-10 18:43:04 +03:00
Utku
8a79b07293 Mobile app (#352)
* Mobile app: Initial Commit!

* Fix monorepo issues and add tailwind.

Fix & Test tailwind.

working ball app

Fix workspace module import

* Mobile app cleanup and structure

* App Icons, Splash screen and eslint config

* More cleanup

* Use SVGs directly in React Native

* Add placeholder files for project structrate

* Cleanup all svg icons and modify metro config to use icons from interface package (temporary)

* Potentially fix types for react & update some packages.

* Onboarding screen + add reanimated & moti

* Finishing touches on Onboarding screen

* Persist onboarding, Button comp and Nav. flow.

* Add mobile info to Contributing.md

* Add .prettierignore for disabling auto import ordering for some files.

* Introducing the new navigation flow

* Change package name

* use the new @sd/assets package

* Add a temp. folder for @sd/assets organization

* Drawer nav bar looks good now.

* Hacky method to get the active route on drawer

* Fix react native types & update few packages.

* Drawer animation

* Add counter

* Collapsible Tags / Locations

* rename Counter and add saveState prop

* Sync counter with desktop version

* Move some screens to BottomTab Nav.

* Add Overview Stats

* [WIP] - Device component

* Upgrade to Expo 46 and fix types.

* Add @sd/core to mobile

* Fix eslint stuff

* placeholder and some notes

* Show folder icons on overview screen

* Fixed android build, style and some screen tweaks

* Add bottom sheet package

* Fix bundler issues and rename landing package.json

* Rename landing package.json

* update all packages to latest React

* Eject expo app

* fix pnpm & expo & monorepo

* monorepo debugging

* cleanup dependencies & static link to shared packages

* cleanup, switch to hermes, pollyfill intl for ios

* Cleanup monorepo

* Fix: Style for FileItem

* Above average app icons

* cleanup ios

* update msrv

* update codeowners for mobile

* fix typecheck

* update lockfile

* fix ffmpeg install

* rename UI to 'SpacedriveInterface' for clarity

* Update codeowners

* Fix eslint config mobile.

* Refactor navigation flow, move types to navigators

Co-authored-by: Utku <74243531+utkubkr@users.noreply.github.com>
Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-08-08 20:29:14 -07:00
Oscar Beaumont
3804f034f1 Move Rust backend to rspc (#345)
* move Rust backend to rspc

* move server to Axum + remove parts of old bridge

* move frontend over to @rspc/client

* move core to rspc + update deps

* fix Typescript errors + upgrade deps

* document invalidate_query! macro

* general cleanup + upgrade to PCR 0.6.0

* prisma error handling

* upgrade to rspc 0.0.4

* update vite-plugin-ssr

* fix typescript

* fix builds

* put landing page app name back

* hardcode ffmpeg version on Windows

* rename 'command' to 'mutation' to line up with react-query terminology

* upgrade rspc to v0.0.5 + fix types

* use shared ffmpeg binaries

* general Typescript cleanup

* fix clippy workflow failing due to tauri proc-macro

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-08-03 08:36:03 -07:00
Ericson "Fogo" Soares
1d30850c21 Resumable Jobs + Lefthook Integration (#344)
* Introducing Lefthook for git hooks automation
* TypeScript typechecking and linting
* Rust formatting and linting
* Spellchecking (also corrected spell errors in some files)
* Check links in md files

* Introducing resumable jobs
* Abstractions to pause and resume jobs automatically when application exits and is started
* Changing database to use Bytes for UUID fields
* Changing uuid fields on core to use uuid::Uuid instead of String
* Updating some dependencies and introducing msg_pack serialization to save job state on database

* Fixing some clippy warnings

* Fixing a regression introduced on identifier job, doing too much db accesses concurrently
2022-07-27 00:06:34 -07:00
Oscar Beaumont
9cdf87c00c fix @rpath/libswiftCore.dylib error + etc (#255)
update Tauri + fix `@rpath/libswiftCore.dylib` error + make Typechecks pass
2022-06-18 17:00:57 -07:00
Oscar Beaumont
bd17602ae6 build(deps): update dependencies across workspace 2022-05-30 20:45:37 +08:00
maxichrome
d171f17b18 fix format script config filename 2022-05-23 04:41:21 -05:00
maxichrome
c791f7dc5e fix prettier plugin loading 2022-05-23 02:53:53 -05:00
maxichrome
85c1404542 Format existing code with new conventions 2022-05-22 23:24:43 -05:00
Harry Hopkinson
ac54625593 Add a type-check script (#149)
* Implement a typecheck script for typescript work.

* remove typescript as root dependency

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
2022-05-12 21:02:23 -05:00
Marques Scripps
cea5a497e6 added experimental submenu (#30)
+ debug toggle for experimental view

Co-authored-by: Marques <hello@marques.gg>
Co-authored-by: Jamie Pine <32987599+jamiepine@users.noreply.github.com>
2022-05-04 11:18:19 -07:00
Brendan Allan
d19344e0b4 fix: remove auto bindings generation 2022-05-01 21:30:44 +08:00
Brendan Allan
4f81d32e08 tsconfig refactor 2022-05-01 12:17:55 +08:00
Brendan Allan
1b720ea873 Merge remote-tracking branch 'upstream/main' into new-ci 2022-05-01 09:36:12 +08:00
Jamie Pine
4320d81180 fix prep command 2022-04-25 10:57:16 -07:00
Brendan Allan
d614de169a ci: escape pnpm desktop tauri 2022-04-24 12:56:03 +08:00
Brendan Allan
78d0393805 new ci 2022-04-22 18:21:18 +08:00
Brendan Allan
7d08454449 Basic CI (#12)
* ci:

* ci: run ci on ci branch

* ci: update pnpm version

* ci: Standardise naming

* ci: update lockfile

* ci: install ffmpeg on unix ci

* ci: run codegen prep before build

* ci: add libavutil to ubuntu dependencies

* ci: add libavutil-dev to ubuntu dependencies

* ci: dependencies

* ci: fix ubuntu dependencies

* ci: only build frontend with desktop

* ci: setup cmake and vcpkg for windows

* ci: install ffmpeg on windows

* ci: fix windows ffmpeg install

* ci: fix conditional windows ci commands

* ci: remove vcpkg from windows

* ci: optimizations

* ci: use custom rust cache version
2022-04-22 02:26:03 +08:00
Jamie Pine
395a3f70bb pre brendan commit 2022-04-19 22:55:44 -07:00