Commit graph

2553 commits

Author SHA1 Message Date
ameer2468 43b4865914
[ENG-1395] Use data from shortcuts hook (#1805)
use data from shortcuts hook
2023-11-23 11:39:36 +00:00
Ericson "Fogo" Soares f662bf7594
[ENG-1398] Make thumbnailer parallelism configurable (#1780)
* Removing migrator

* Adding serde_repr dep

* Generalizing version manager

* Updating library config to use version manager

* Updating node config to use version manager

* Updating stuff to use new configs

* More async

* Library manager errors

* Node and thumbnailer preferences

* Small warning on prep

* Upgrading batch construction for thumbnailer

* Updating thumb version file to new version manager

* Configurable parallelism for thumbnailer

* Integration with frontend and refresh batch

Co-authored-by: Vítor Vasconcellos <HeavenVolkoff@users.noreply.github.com>

---------

Co-authored-by: Vítor Vasconcellos <HeavenVolkoff@users.noreply.github.com>
2023-11-23 11:23:32 +00:00
Utku 43b6453706
Mobile changes (#1784)
* privacy link

* remove spacedrop screens, add browse

* icon

* changes and network screen

* bump react native
2023-11-22 00:49:52 +00:00
ameer2468 3de321e23e
[ENG-1448] Better meta image (#1803)
Update opengraph-image.png
2023-11-21 11:28:24 +00:00
Brendan Allan 5e3802a424
[ENG-433] removeTab on middle click (#1802)
removeTab on middle click
2023-11-21 05:31:47 +00:00
Brendan Allan a827fa382d
[ENG-1452] Default to Home (#1801)
* use React.children for SeeMore

* use Home dir as default route when available
2023-11-21 05:22:52 +00:00
Utku bbc01294f6
[ENG-1447] Add meta image (#1799)
* meta image

* woops
2023-11-19 18:49:59 +00:00
Brendan Allan 18c3063283
Use raw search params for search data in url (#1797)
use raw search params
2023-11-18 11:53:24 +00:00
Vítor Vasconcellos f3ad0d7513
Pin rust to 1.73 (Workaround Internal Compiler Error) (#1796)
* Pin rust to 1.73
- Clippy fixes

* Don't install cargo-watch on CI
2023-11-17 22:47:06 +00:00
Brendan Allan ae31e10e0b
[ENG-1436] Store search state in search params (#1795)
* source search query from search params

* store filters in search params with round trip

* the rest bc apparently i forgot some?

* remove all references to overview

* add /:libraryId redirect
2023-11-17 21:07:33 +00:00
Brendan Allan f69959a580
[ENG-1443] Reset search store on search bar unmount (#1794)
reset search store on search bar unmount
2023-11-17 20:08:34 +00:00
Vítor Vasconcellos 2e6e00bc6d
[ENG-1184, ENG-1286, ENG-1330] Rework native dependencies (+ deb fixes) (#1685)
* Almost working

* Downgrade libplacebo
 - FFMpeg 6.0 uses some now removed deprecated functions

* Use -Oz for zimg

* Fix CI script to run the new ffmpeg build script

* Fix heif step name + Ignore docker cache while building in CI

* Fix Opencl build on linux

* Fix adding incorrect -target argument to linker
 - Update zig for windows target

* Disable opengl for ffmpeg, it only uses it as an outdev, not for processing
 - Disable opengl and directx for libplacebo, ffmpeg only supports vulkan when using it
 - Add WIN32_LEAN_AND_MEAN to global cflags to optimize windows api usage
 - Fix 99-heif.sh incorrect bsdtar flag

* Remove WIN32_LEAN_AND_MEAN from global CFLAGS as that was breaking OpenCL build
 - Fix Dockerfile step for cleaning up the out dir
 - Improve licensing handling

* x86_64 windows and linux builds are working

* Fix aarch64 build for windows and linux

* Fix symbol visibility in linux builds
 - Fix soxr failing to download due to sourcefourge
 - Only patch zimg on windows targets
 - Tell cmake to hide libheif symbols

* Fix Linux .so rpath
 - Add lzo dependency
 - Publish source for the built libs
 - Add warning for missing nasm in tauri.mjs
 - Remove ffmpeg install from setup.sh
 - Add download logic for our linux ffmpeg bundle in preprep.mjs

* Remove jobs, docker doesn't support this

* Fix typing

* Change ffmpeg references to native deps
 - Rename FFMpeg.framework to Spacedrive.framework
 - Centralize the macOS native deps build with the windows and linux one
 - Change the preprep script to only download our native deps
 - Remove old macOS ffmpeg build scripts

* Compress native deps before creating github artifact
 - The zip implementation for github artifact does not mantain symlinks and permissions
 - Remove conditional protoc, it is now always included

* Don't strip dylibs, it was breaking them
 - Only download macOS Framework for darwin targets
 - Fix preprep script
 - Improve README.md for native-deps
 - Fix not finding native-deps src

* Attempt to fix macOS dylib

* Fix macOS dylibs
 - Replace lld.ld64 with apple's own linker
 - Add stages for building apple's compiler tools to use instead of LLVM ones

* Ensure sourced file exists

* All targets should build now
 - Fix environment sourcing in build.sh
 - Some minor improvements to cc.sh
 - Fix incorrect flag in zlib.sh
 - Improve how -f[...] flags are passed to compiler and linker
 - Add more stack hardening flags

* We now can support macOS 11.0 on arm64

* Improve macOS Framework generation
 - Remove installed unused deps
 - Improve cleanup and organization logic in Dockerfile last step
 - Move libav* .dll.a to .lib to fix missing files in windows target
 - Remove apple tools from /srv folder after installation to prevent their files from being copied by other stage steps
 - Create all the necessary symlinks for the macOS targets while building
 - Remove symlink logic for macOS target from preprep.mjs

* Remove native-deps from spacedrive repo
 - It now resides in https://github.com/spacedriveapp/native-deps
 - Modify preprep script to dowload native-deps from new location
 - Remove Github API code from scripts (not needed anymore)
 - Add flock.mjs to allow running tauri.mjs cleanup as soon as cargo finishes building in linux

* Handle flock not present in system
 - Allow macOS to try using flock

* Fix preprep on macOS

* Add script that patch deb to fix errors and warnings raised by lintian

* Fix ctrl+c/ctrl+v typo

* Remove gstreamer1.0-gtk3 from deb dependencies

* eval is evil

* Handle tauri build release with an explicit target in fix-deb.sh

* Preserve environment variables when re-executing fix-deb with sudo

* Only execute fix-deb.sh when building a deb bundle

* Improvements fix-deb.sh

* Improve setup.sh (Add experiemental alpine support)
2023-11-17 19:20:14 +00:00
nikec 0457643179
[ENG-1444] Fix list view observer (#1793)
Fix observer
2023-11-17 18:17:18 +00:00
nikec 7a701ea8c5
[ENG-1441] Fix search filters overflow (#1792)
* Fix search filters overflow

* comment out save search
2023-11-17 18:07:04 +00:00
Brendan Allan b6e7bd58e8
[ENG-1440] Move tab bar to below main top bar content (#1790)
* move tab bar below top bar

* center text inside tabs
2023-11-17 16:32:57 +00:00
Brendan Allan 5578ff9cd5
[ENG-1437] don't render tab bar if <2 tabs (#1789)
don't render tab bar if <2 tabs
2023-11-17 16:32:40 +00:00
nikec 1e512572be
[ENG-1439] Align search option internals (#1788)
align internals
2023-11-17 15:52:20 +00:00
Brendan Allan 15b68477e1
Move search to top bar (#1787)
* move search to top bar

* maybe eslint isn't so bad
2023-11-17 11:59:04 +00:00
Brendan Allan 3c6b2183a8
fix dialogs (#1786) 2023-11-17 10:26:44 +00:00
Jamie Pine 27f077ea0b
[ENG-1269] Search options (#1561)
* search options start

* small progress

* more

* bunch of stuff

* semi functioning filters

* cleanup setup api

* progress

* remove filters

* hooked up to query epic moment

* fix

* move db stuff to specific modules

* in/notIn for some fields

* generate ts

* big gains

* working filter options for locations, tags and kind

* working search query

* perfect fixed filters

* saved searches lol

* merge error

* saved searches via api

* better routing

* [ENG-1338] Fix fresh Spacedrive install failing to start due to attempting to query a nonexistent Library (#1649)

Fix Spacedrive failing to start due to attempting to query a nonexistent Library
 - Rename useShoudRedirect to useRedirectToNewLocations
 - Improve behaviour for the immedite redirection after adding a new location

* Show hidden files false by default (#1652)

bool

* fix remove filter in list

* tweaks

* fix nav buttons

* unify MediaData search handling

* cleanup saved search writing

* Add left top bar portals for tags and search + fixed media view on tags

* added search to filter dropdown

* render cycle improvements

* hotfix

* wip

* Refactor with Brendan, but this is a WIP and the search query no longer works

Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com>

* progress

* fix location/$id page

* fix tags too

Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com>

* 3rd refactor lol

epic style

* half-done with enum-ification of SearchFilterArgs

* broken fixed filters but working inNotIn filters

* search name + extension kinda working

* hidden filter

* fixed filters working??

* deferred search value

* extensions works

* filtered search items mostly working

* tweaks

* stacked approach working for non-search filters

* move to Explorer/Search

* actually use filterArgs in queries

things actually work properly now

* added new icons from Mint

* goof

* cleanup types, filters and mutation logic

* actually use search value

* remove overview from sidebar

* don't shrink LibrariesDropdown ga

* remove overview from sidebar and default to /network

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com>
2023-11-17 06:58:44 +00:00
Brendan Allan 0ef65fce2d
[ENG-1423] Multiple tabs (#1777)
* tabs w/ multiple router instances

* fix router switching

* keybinds

* manual history tracking

* eslint

* remove scroll restoration

* fix tab removal

* route title + tab create delay

* typescript

* put tab list up top

* Remove import + show close button only if tabs length more than 1

* lint

* unify blur across whole top bar

* add to keybindings page, tauri drag region, and tooltip

* fix blur

* more drag regions

* merge moment

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2023-11-16 15:14:47 +00:00
ameer2468 9cf71c1511
[ENG-1397] Quickpreview images slider (#1773)
* wip

* wip

* wip

* Update ImageSlider.tsx

* wip

* wip

* wip

* Update ImageSlider.tsx

* bump virtual-grid version for horizontal support

* quickpreview image slider almost

* cleanup

* add mouse wheel support

* Update ImageSlider.tsx

* Update ImageSlider.tsx

* feedback

* block down and up if quickview is open

* Update GridList.tsx

* spacing

* Update GridList.tsx

* Update GridList.tsx

* feedback and fixes

* refactor

* Update GridList.tsx

* Update ImageSlider.tsx

* Update ImageSlider.tsx

* remove unnecessary checks & update scroll behavior

* add shortcut to trigger image slider, full width aswell.

* persist value

* Fix Esc explorer shortcut, fix quick preview move between items shortcut & support multiple selected items on image slider

* fix list view key selection

* don't exit selection if slider is toggled off

---------

Co-authored-by: nikec <nikec.job@gmail.com>
2023-11-16 13:16:29 +00:00
nikec 06246198c0
[ENG-1429] Disable show inspector shortcut if quick preview is open (#1783)
disable show inspector shortcut if quick preview is open
2023-11-16 12:40:33 +00:00
jake 8e8e355b76
[ENG-1026] Full Disk Access (#1778)
* basic FDA start

* FDA checks and prompt

* lockfile

* misc clippy

* Some small warnings

---------

Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com>
2023-11-15 19:59:50 +00:00
Carter 36cd5bf365
Fix Clippy Warnings (#1776)
Fix Warnings
2023-11-14 20:48:17 +00:00
Vítor Vasconcellos 5b73c5b9f2
[ENG-1424] Link sd-server build/docker push action with release action (#1772)
Trigger server docker build action after a public release
2023-11-14 20:26:14 +00:00
Utku 142975b114
Fix closing tag window (#1771)
* fix closing tag window

* remove onsubmit
2023-11-14 17:15:14 +00:00
Brendan Allan 031ac7b670
[ENG-1276] move assigned tags to top of tag assign list (#1768)
* move assigned tags to top of tag assign list

* sort tags by most recently assigned

* console.log

* error boundary
2023-11-14 09:35:50 +00:00
Vítor Vasconcellos c673882ea2
Work-around broken webgl (#1645)
* Check if we can instantiate WebGLRenderer in `hasWebGLContext`
 - Work-around broken webgl support

* Instantiate WebGLRenderer manually, in Space background, so we can check if it fails
 - Try WebGL1Renderer if WebGLRenderer fails
 - Fallback to Bubbles background if no WebGL Renderer works
 - Update threejs, @react-three/drei, @react-three/fiber

* Remove superfluous WebGLRenderer intantiation check
2023-11-13 17:51:44 +00:00
Carter be004e2cf2
Clarify error that occurs when getting the hash of an on-demand file (#1722)
* Clarify Error

- Clarifies error that occurs when attempting to read the metadata from an on-demand file

* Make error more better

Changed 'Attempted' to 'Failed'

* Add comment and conditional compilation
2023-11-13 17:39:22 +00:00
Oscar Beaumont 5705f40aae
[ENG-1333] Display active P2P listeners (#1644)
* wip

* share the actual port

* fixes

* wip: remove it

* cargo fmt

* thanks @niikeec
2023-11-13 07:02:03 +00:00
Oscar Beaumont 561eacfb6e
[ENG-1201] P2P Error Handling (#1705)
* squash

* wip

* wip

* wip

* wip

* finish it up
2023-11-13 06:58:01 +00:00
Vítor Vasconcellos 7f145c5ee3
[ENG-1359] Revert "Fix pdf thumb crashing app (#1460)" (#1766)
Revert "[ENG-1220] Fix pdf thumb crashing app (#1460)"

This reverts commit 6fd8bd4ad8.
2023-11-12 22:47:10 +00:00
ameer2468 236ef1c106
[ENG-1422] Explorer pathbar nested locations bug (#1767)
* Update ExplorerPath.tsx

* Update ExplorerPath.tsx

* Update ExplorerPath.tsx
2023-11-12 12:37:30 +00:00
nikec 0dafd89741
[ENG-1419] Table sorting (#1765)
table sorting
2023-11-10 22:14:20 +00:00
Ericson "Fogo" Soares 80f16eb888
Update tokio's version (#1761) 2023-11-10 20:37:21 +00:00
nikec b8d13a8cfc
[ENG-1418] Explorer settings (#1764)
* preferences

* useShortcut and move location id to function

* void

* rescan
2023-11-10 10:23:51 +00:00
ameer2468 826401efae
[ENG-1417] Explorer path nav fix from tag routes (#1763)
* initial navigation fix for explorer path from tag routes

* fix hover effect
2023-11-10 09:06:59 +00:00
Utku ac0078cd59
[ENG-1416] Add black bars back to grid and list view (#1760)
Add black bars back to grid and list view
2023-11-09 18:25:29 +00:00
Ericson "Fogo" Soares 88859026b1
[ENG-1360] Not always unlink objects from file_paths on update (#1751)
* Small warnings

* Introducing file and line number into tracing logs

* Update walker to account for existing object_ids

* Only unlinking at indexer for file_path with
object referencing more than one file_path

* Better filtering orphans file_paths

* Foreground thumbs generation for shallow media
processor

* Watcher tweaks to preserve existing object
Also fixing a media_data extraction/update bug
2023-11-09 13:47:38 +00:00
Utku cda07b5f63
[ENG-1412] Fix blog/docs image sizes (#1758)
* fix

* Add image placeholder to NextImage component
2023-11-09 07:33:47 +00:00
ameer2468 efbb4ef689
[ENG-1167] Explorer path tags route (#1757)
* Tags explorer path

* Update ExplorerPath.tsx
2023-11-08 19:21:00 +00:00
nikec ae89ee71a0
[ENG-1386] Fix explorer view scrollBy (#1755)
remove scroll behavior
2023-11-07 19:58:50 +00:00
nikec 3739ba859c
[ENG-1409] Add frame to list view thumbs (#1754)
Add frame to list view thumbs
2023-11-07 08:54:28 +00:00
nikec 97b39f2667
[ENG-1408] Remove frame from video thumbs (#1753)
remove frame from video
2023-11-07 08:54:13 +00:00
nikec c79bf3d191
[ENG-1407] Inspector load original only when one item is selected (#1752)
load original
2023-11-07 08:53:40 +00:00
Utku 4d139e3229
[ENG-1406] Fix search bar take 2 (#1750)
oh man
2023-11-06 20:07:56 +00:00
Utku 8a4281edd2
Fix search bar (#1749)
layout messing scss order somehow
2023-11-06 16:30:35 +00:00
nikec 1acfbafbfb
[ENG-1405] Remove black bars around thumbs (#1748)
remove black bars
2023-11-06 15:50:33 +00:00
ameer2468 308803e769
fix quickpreview shortcut (#1747) 2023-11-06 12:11:00 +00:00