Commit Graph

52 Commits

Author SHA1 Message Date
Utku
1634f24808 [MOB-1] Theme support for Mobile (#755)
* revert rspc changes and some theme stuff

* Run onboarding test first

* test adding a tag

* handle keyboard on Create Tag Modal

* listen system theme changes

* fix delete tag button

* wait add tag mutation

* remove duplicate assert

* fix edit location setting screen

* select theme & fix add tag test

* add how to run web app to contributing

* add note about how to use stores correctly

* use theme colors

* system theme

* remove metro-minify-terser

* final tweaks

* cleanup

* cleanup

---------

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2023-05-04 08:10:31 +00:00
Vítor Vasconcellos
164fcc34d3 Fix Windows CI + format (#767)
* Attempt to fix Windows CI:
- Ensure version 15 of LLVM is installed in Windows CI (due to` ffmpeg-sys-next`)
- Use `GITHUB_TOKEN` in setup-system.ps1 to avoid rate-limiting by github api in Windows CI
- Add `yaml` settings to `.editorconfig`
- Create a symbolic link from `.prettierignore` to `.eslintignore`
- Move `eslint` root to package root config
- Enable `fileNesting` to reduce dotfile clutter in vscode
- Pass `--strict` to apps/releases `lint` command to avoid making interactive queries and hanging `pnpm lint`
- Format with `prettier` and `eslint`
- Remove empty interface/hooks/useMediaQuery.ts

* Replace unmaintained `actions-rs/toolchain` with `dtolnay/rust-toolchain`
 - Change setup-system.ps1 to avoid installing pnpm in CI
 - Change `pnpm/action-setup` to lock only o major versions of the action
2023-04-27 07:32:15 +00:00
Vítor Vasconcellos
50442ede3e [ENG-469] Make Prettier and ESLint work together (#706)
* Make Prettier and ESLint work together
- Resolve conflicts between Prettier and ESLint regarding indentation and Tailwind rules order
- Add `.editorconfig` to standardize basic formatting options across tools and editors
- Add `.gitattributes` to hide `pnpm-lock.yaml` in `git diff` output
- Include EditorConfig in the recommended extensions for VSCode
- Replace some instances of `pnpm exec <command>` with `pnpm <command>`
- Remove superfluous Tauri config for Linux

* Revert Prettier changes (it was working correctly before)
 - Update ESLint to read Tailwind config from absolute path
 - Remove redundant Prettier dependency from subprojects
 - Specify the source folder for the lint script in subprojects

* use mobile's tailwind config with eslint

* pnpm format + pnpm lint:fix

---------

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2023-04-14 21:21:21 +00:00
Utku
abeebcfd88 Mobile CI with Tests (#631)
* stuff

* stuff (but for android)

* test mobile ci

* move pnpm up

* install ndk

* add ios & cleanup

* onboarding flow test

* test ci

* fixes, cleanup, caches

* why you do this cargo

* fix pnpm-lock

* add path to build rust script?

* ci is fun

* yolo

* fix broken flow..

* fix pnpm

* probably not gonna work

* test x2

* use real branch of pcr

* android emulator and try ios x2

* Use react native architectures, instead of all.

* override architecture to speed up android build

* protoc & build android on macos too

* fix java ndk

* android gradle

* disable ios for now

* use simulator sdk & debug configuration on ios build

* cleanup

* avd test

* fix avd settings.

* only build for x86_64 on ci

* Fix ios build

* Add IOS testing

* maestro script

* ios release build & wait for library creation

* clean up and disable android for now

* fix pnpm-lock

* Add concurrency to cancel previous runs

* fix pnpm-lock

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2023-04-03 08:12:28 +00:00
Utku
ca6ec598d4 Onboarding, Spacedrop & Location Settings Screen & Styled API (#596)
* fix wrong current lib logic

* add delete lib dialog to LibraryGeneralSettings

* add delete lib to mobile LibraryGeneralSettings too

* onboarding screens

* move zxcvbn to @sd/client

* get started screen and bloom

* merge fix

* move generatePassword back to interface

* add useZodForm to mobile and match react-hook-form versions

* new lib screen

* Implement styled api

* create lib screen and some tweaks

* password input

* fix password meter comp

* new library style tweaks

* Fix remove password bug (interface)

* master password screen

* privacy screen

* creating lib screen

* hexagons are cool

* Expo 48

* keyboard handling

* fix P2P on IOS

* fix types

* asset script

* new icons

* Spacedrop screen

* Fix mobile asset imports

* fix import cycle warning

* Edit Location Settings screen and style changes on other setting screens

* fix library creating bug? hopefully lol

* move PasswordMeter to interface

---------

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2023-03-17 02:00:02 +00:00
Utku
adb322b9f3 Tailwind Prettier Plugin (#557)
* add tailwind prettier plugin + run prettier

* add eslint tailwind plugin and eslint fix to turbo

* Ran eslint fix + fixed every other lint issues

* twStyle and lint stuff

* remove auto lint as it's buggy

* update eslint & add twStyle to tailwind regex

* Fix auto lint + config inconsistencies

* Add tailwind config to prettier config

* run lint:fix

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2023-02-16 07:04:19 +00:00
Utku
17865a6c96 Mobile - Settings & Tags (#479)
* Sync tailwind configs

* Switch to new colors part 1

* new colors part 2

* switched to new colors

* settings screens template

* settings progress

* Setting header titles

* Refactor settings icon

* Fix tsconfig relative path issue

* Move mobile eslint config to @sd/config

* Add no-restricted-imports rule to eslint

* rename TextInput to Input & tailwind font sizing

* General Settings screen + Card component

* Library settings screen & delete lib dialog

* autoform hook

* Mini tweaks and new packages

* Exclude android & ios from search

* Add Switch (Input)

* Library General settings screen

* Refactor settings + Switch and Switch Container

* Locations screen & delete and rescan locations

* Rename folder + small tweaks

* Make things Swipeable

* Create Tag Dialog with color picker

* Upgrade to Expo 47

* More tag stuff

* fix pnpm lock

* regen pnpm-lock

* Change CI node version to 16

* Move `isVideo` into shared package

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-12-13 15:18:03 +08:00
Jamie Pine
4b9b8f335f refactor switch component + update styles 2022-10-21 21:50:47 -07:00
Jamie Pine
b63c48ad47 fix window resize with virtualizer 2022-09-04 15:58:51 -07:00
Jamie Pine
d16fdedd3d valtio 2022-09-04 15:58:16 -07:00
Jamie Pine
75f9e34a6c Explorer Grid View (#334)
added grid view, as well as:
- moved location context to client lib
- merged library settings with main settings
- added some missing settings
- removed demo locations due to FileItem props syntax change, they are currently being replaced anyway by Oscar in another PR
- added functioning favorite button to the inspector, that works now
2022-07-14 13:50:48 -07:00
Jamie Pine
efd322c6d7 Location Settings (#302)
* Delete locations

+ Show online status

* style tweaks

* tweaks

* location rescan button

* fix location delete db locking bug

* opting to remove self referencial relation on file_path

* correct query

* consolodate migration

* consolodate migrations
2022-06-24 06:26:45 -07:00
Jamie Pine
7f826b2a94 (fix) job queue
- adding a location performs all jobs
- better logging for thumbnailer
2022-06-22 04:40:45 -07:00
Jamie Pine
ce796eb1c5 (chore): added better loggin 2022-06-21 22:53:07 -07:00
Jamie Pine
69e09db158 Eng 142 fix interface hot reload (#252)
* fix interface hot reloading

* AppPropsContext exsiting in App.tsx was the issue :D

* type export fix
2022-06-18 01:35:51 -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
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
maxichrome
06fcce9704 Merge branch 'main' into jamie-unsorted-changes 2022-05-23 00:03:45 -05:00
maxichrome
85c1404542 Format existing code with new conventions 2022-05-22 23:24:43 -05:00
maxichrome
2f14ff0b5f format using tabs 2022-05-22 23:07:35 -05:00
maxichrome
21841a3479 Merge branch 'main' into jamie-unsorted-changes 2022-05-22 22:58:50 -05:00
Jamie Pine
09d65366e2 Merge branch 'main' into jamie-unsorted-changes 2022-05-21 18:55:03 -07:00
Jamie Pine
d03cde5a66 removed redundant schema column + some demo data (unfinished) 2022-05-21 18:48:51 -07:00
maxichrome
0ed5226b3b remove outdated rust-analyzer option 2022-05-20 19:06:25 -05:00
maxichrome
241ee627a4 remove rust-analyzer display options 2022-05-20 19:00:46 -05:00
maxichrome
639e086dfc update rust-analyzer option names 2022-05-20 18:59:20 -05:00
Jamie Pine
6d9cccc103 Merge remote-tracking branch 'origin/main' into jamie-unsorted-changes 2022-05-11 11:13:23 -07:00
maxichrome
f506d2a00a WIP: fix up window styling 😩 2022-05-11 05:24:03 -05:00
Jamie Pine
81fa5f8a2f much 2022-05-10 09:03:20 -07:00
Jamie Pine
ce1d932111 fix library loader, add library statistics, tag flicker fix 2022-04-27 16:25:47 -07:00
Jamie Pine
70586a97b4 move dropdown to ui, added dropdown for landing mobile nav, fixed dropdown truncate on app sidebar 2022-04-25 11:44:55 -07:00
Jamie Pine
a9877c9204 vite pages on landing 2022-04-25 03:38:01 -07: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
b669482b99 icon importing, landing page updates, vite config 2022-04-20 18:57:41 -07:00
Jamie Pine
90d398e720 upgrade to latest prisma-client-rust 2022-04-20 02:25:50 -07:00
Jamie Pine
395a3f70bb pre brendan commit 2022-04-19 22:55:44 -07:00
Jamie Pine
470ceaffae interface has solo dev mode + made a lot of stuff work 2022-04-18 16:06:33 -07:00
Jamie Pine
6837fa608b mess pt.2 2022-04-17 11:44:50 -07:00
Jamie Pine
3c75f864c5 fixes, abolish underscores, folder restructure 2022-04-14 14:52:35 -07:00
Jamie Pine
83e2e9b84e ffmpeg progress 2022-04-14 13:46:54 -07:00
Jamie Pine
2b5f3f9de4 big explorer improvements 2022-04-12 15:31:17 -07:00
Oscar Beaumont
e4dce20cb8 add Cargo workspace & fix Prisma 2022-03-30 16:14:50 +08:00
Jamie Pine
939857a955 react query working with Rust
- other stuff
2022-03-12 10:00:58 -08:00
maxichrome
41dd4dc814 fix vscode workspace 2022-03-03 16:20:00 -08:00
Jamie
42b5b5a3e7 init monorepo 2021-12-24 01:13:21 -08:00
Jamie
fb0e9db591 temp icon, color tweaks and menu stuff 2021-10-25 12:29:00 -07:00
Jamie
c50728a4d6 commit before I tear out rusqlite 2021-09-30 00:34:42 -07:00
Jamie
6470067c08 hide name for now 2021-09-29 06:36:34 -07:00
Jamie
0ec1bfc0c7 spacedrive born 2021-09-29 05:59:04 -07:00