Commit Graph

151 Commits

Author SHA1 Message Date
Ericson "Fogo" Soares
07d9b121f5 Video thumbnails (#376)
* Preparing some scaffolding for video thumbnails

* Implemented thumbnail generation for videos
* Propagating errors of `Node` creation
* Using ffmpeg feature gate

* Introducing ffmpegthumbnailer-rs as a subcrate on core

* - rename to thumbnailer
- fix explorer thumbnail bug
- add more supported video types
- re-fix explorer performance

* remove nested licence

Co-authored-by: Jamie Pine <ijamespine@me.com>
2022-09-24 01:21:13 -07:00
Brendan Allan
a7c3816419 Use feature gated database branch of PCR (#387)
use feature gating branch of pcr
2022-09-22 23:40:15 -07:00
Brendan Allan
18079ba378 Use PCR for migrations (#385)
* use pcr migrations branch

* use 0.6.2 branch with migrations

* use latest prisma stuff

* allow force reset of db in dev

* remove .spacedrive file

* update rspc in apps/server

* use rspc 0.0.5 in all crates

* add os to prisma client cache key

* add runner os to clippy prisma cache
2022-09-22 00:50:21 -07:00
maxichrome
bf50c61332 Merge remote-tracking branch 'origin/main' into use-rust-shortcuts 2022-09-14 15:59:59 -05:00
Oscar Beaumont
3338506119 properly shutdown the core when using server 2022-09-14 19:02:11 +08:00
maxichrome
1210a0b786 update cargo crates 2022-09-13 19:04:58 -05:00
Oscar Beaumont
efb451ee36 Better db migrations (#381)
* use prisma migration engine for migrations

* squash migrations + remove excessive logging
2022-09-08 15:57:07 -07:00
Brendan Allan
e9336a1417 utilise include instead of with for type safety 2022-09-07 04:09:57 +08:00
Oscar Beaumont
873dc7b89c Upgraded rspc with libraries + upgrade PCR 0.6.0 2022-09-06 22:08:19 +08:00
Ericson "Fogo" Soares
ddd638723a Introducing Indexer rules (#363)
* Introducing indexer rules for the indexer job
* Solving a minor race condition at `Worker::spawn`
* Many refactors at database accesses with prisma
* Documenting some features of indexer rules

* Updating to new prisma rev

* Updating photo

* Some documentation tweaks

* fix note editing

* Implementing some requested changes
* Fixing unit tests on walk function
* Using rsps::Error::with_cause instead of new

* Introducing a compoung unique key between `node_id` and `local_path` at `locations` table

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-09-01 16:38:26 -07:00
Oscar Beaumont
1a6d3d1d37 settings keyboard shortcut + fix Tauri menu items 2022-08-30 13:49:29 +08: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
Brendan Allan
dc81c83825 use latest prisma-client-rust 2022-08-19 07:41:08 +08: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
Ericson Fogo Soares
428bd9be80 Merging with main 2022-07-11 18:21:50 -03:00
Oscar Beaumont
017ef8b005 Library manager (#258) 2022-07-10 19:05:24 -07:00
Ericson Fogo Soares
86ba1bd04a Fixing Clippy warnings
* Using tokio on all filesystem operations
* Some minor tweaks to be more consistent on paths between &str, AsRef<Path> and PathBuf
* Using logging instead of println
2022-06-28 22:56:49 -03:00
Jamie Pine
ce796eb1c5 (chore): added better loggin 2022-06-21 22:53:07 -07:00
Jamie Pine
b3c0b6e956 (fix) dropdown ui tweak + identifier code comments + add log 2022-06-21 21:31:39 -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
maxichrome
fa2585b7ed [macOS] native sidebar blur effect (#239)
* wip rust bindings

* wip rust bindings

* attempt raw objc for window blur -- still nothing

* some minor blurring success...

* Fix macOS sidebar blur

* darken sidebar

* lock to dark theme

* remove commented, unused window-blur lines

* remove xcode user state

* ADD SWIFT WINDOW CODE

* refactor: use swift window code

* remove stupid cas warning

* add webview swift util for reload

* remove objc and cocoa

* remove old unused swift build fix

* simplify swift package fn calls

* enumify app theme

* fix main content view not expanding

* fix sidebar folder item layout

* fix swift version requirement

* fix landing package json

* landing tweaks

* sidebar style tweaks for macOS

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
Co-authored-by: Jamie Pine <ijamespine@me.com>
2022-06-15 13:53:42 -07:00
Oscar Beaumont
d44b5cb7ae Static Generate Landing (#245)
* Wrote blog

* feat: implement new team page

* refactor: reusable link comp

* chore: update images

* perf: compress images

* refactor: update link

* refactor: update icons, remove white border in favor or rounded corners, add investors

* changes to roles

* team changes

* refactor: add a few changes

* style: slightly better styling

* update team images paths

* use proper image element

* update haris to match team style + keep constant

* improve team member styling

* use vite import pattern

* team tweaks

* fix brendan crop

* fix text and gradient color to match brand colors

* engineer not developer!!!

* add annoucement banner since this can not be merged until post annoucement anyway

* fade in stuff

* better copy

* better haris.jpg

* style: slight update to styling

* Update apps/landing/src/pages/team.tsx

* update my image

* chore: remove unused log

* Update team.tsx

* use incorp'd name everywhere

* update team credits

* hoist headings in credits

* consistent marketing copy in cargo

* fix types

* style tweaks

* blog updates

* blog title tweaks

* fix demo

* jj said lets round it up

* vite-plugin-ssr & ssg

* delete old landing + prerender

* don't use vite-plugin-vercel

* make deploy.sh executable

* add ncc

* treat as static site

Co-authored-by: Lu Hill <email@lewie.me>
Co-authored-by: Benjamin Akar <benjaminakar2001@gmail.com>
Co-authored-by: Jamie Pine <ijamespine@me.com>
Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
Co-authored-by: xPolar <50601857+xPolar@users.noreply.github.com>
2022-06-14 16:54:15 -07:00
maxichrome
56f8e48870 add debug menu items 2022-06-10 21:55:25 -05:00
Oscar Beaumont
572ce1cdb9 remove anyhow
We are using `thiserror` instead.
2022-05-30 22:54:21 +08:00
Oscar Beaumont
52fd99bebe remove unused code + cleanup Rust imports 2022-05-30 22:26:59 +08:00
Oscar Beaumont
bd17602ae6 build(deps): update dependencies across workspace 2022-05-30 20:45:37 +08:00
Jamie Pine
fa5c7e0761 fixed explorer 2022-05-28 22:23:50 -07:00
Brendan Allan
2e6ff18347 cleanup + update to prisma-client-rust 0.5.0
still waiting to rebase for changes to identifier
2022-05-26 16:17:46 +08:00
Jamie Pine
e587480bc4 database fixes 2022-05-22 22:28:33 -07:00
Jamie Pine
d2f7a3af94 remove migration history (#173), fix incorect name 2022-05-22 22:02:18 -07:00
maxichrome
1b8ae5d084 use native window controls on macOS 2022-05-11 01:59:03 -05:00
Jamie Pine
264293a93b added semi functional statistics, working macos traffic lights 2022-04-27 19:15:55 -07:00
Oscar Beaumont
3ae90351a6 feature gated p2p + update deps + pushed bindings 2022-04-27 17:22:26 +08:00
Jamie Pine
a2365042a1 server transport via websocket
Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-04-23 06:50:17 -07:00
Jamie Pine
09fe2d44c7 added unique file identifier 2022-04-23 01:12:35 -07: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
5848971731 server start, landing tweaks 2022-04-20 23:35:48 -07:00
Jamie Pine
90d398e720 upgrade to latest prisma-client-rust 2022-04-20 02:25:50 -07:00
Jamie Pine
3c75f864c5 fixes, abolish underscores, folder restructure 2022-04-14 14:52:35 -07:00
Jamie Pine
4a5682a0b6 Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2022-04-14 13:49:39 -07:00
Jamie Pine
83e2e9b84e ffmpeg progress 2022-04-14 13:46:54 -07:00
Brendan Allan
b1b66a039c feat: update prisma-client-rust 2022-04-15 04:04:35 +08:00
Jamie Pine
fa448c6e76 sync engine + big schema changes 2022-04-12 00:05:58 -07:00
Jamie Pine
3a3c4eb2ee debug + derive dep 2022-04-11 21:46:57 -07:00
Oscar Beaumont
46f44b8061 fix: react-query working in production builds + fix Linux compilation issue 2022-04-09 02:19:27 +08:00
Jamie Pine
96ed81686b explorer upgrades
- file navigation works
- thumbnails display
2022-04-08 02:44:57 -07:00
Jamie Pine
9117f35a42 restructure project files layout 2022-03-31 17:41:17 -07:00
Jamie Pine
aa71da5163 fixed indexer database write
- fixed job history query
2022-03-30 04:25:40 -07:00
Jamie Pine
2d4a627c89 fix missing dependencies & revert color change 2022-03-30 02:37:03 -07:00