viktorstrate
107da91700
Refactor handling of environment variables
2021-01-17 16:50:48 +01:00
viktorstrate
9098bf38d1
Make Dockerfile build sqlite dependency without errors
2021-01-17 15:59:08 +01:00
viktorstrate
f0bc9fec0c
Merge remote-tracking branch 'origin/master' into v2.0.0
2021-01-17 13:21:18 +01:00
Viktor Strate Kløvedal
93748058cc
Merge pull request #167 from photoview/v2/multi-database-support
...
Multi database support
2021-01-17 13:16:42 +01:00
viktorstrate
621ad00fff
Update example.env with sqlite comments
2021-01-17 13:15:41 +01:00
viktorstrate
50d0aa0efb
Disable multithreaded scanners for sqlite
...
as it's not reliable
2021-01-17 13:08:44 +01:00
viktorstrate
fcdb5b4e7b
Work on sqlite support
2021-01-17 12:45:23 +01:00
viktorstrate
f711da4d9c
Merge branch 'v2.0.0' into v2/multi-database-support
2021-01-17 12:21:32 +01:00
Viktor Strate Kløvedal
2c2790c465
Merge pull request #166 from stz184/env-variables-refactoring
...
Prefixed the env variables to avoid naming collisions
2021-01-16 22:33:54 +01:00
stz184
26f2b753b7
Prefixed the env variables to avoid naming collisions
2021-01-16 23:27:23 +02:00
Viktor Strate Kløvedal
a10f8ad1ef
Merge pull request #164 from stz184/implement-db-connection-retry
...
Added db connection retry logic
2021-01-16 19:04:12 +01:00
Vladimir Ivanov
85ce3a1018
Update api/database/database.go
...
Co-authored-by: Viktor Strate Kløvedal <viktorstrate@gmail.com>
2021-01-16 19:35:02 +02:00
Viktor Strate Kløvedal
5b8660c5a9
Remove hyphen from default SQL password
...
Which, in some cases, could cause problems. This solves #96
2021-01-12 21:56:43 +01:00
stz184
5b7637cb3c
Added db connection retry logic
2021-01-12 20:14:28 +02:00
viktorstrate
41b122c461
Start on sqlite support
...
- TODO: Sqlite doesn't support MD5, all calls to this function should be done
beforehand.
2021-01-10 18:59:01 +01:00
viktorstrate
b3596751cc
Cleanup Dockerfile after removing old database migrations
2021-01-10 18:34:37 +01:00
viktorstrate
820ae78563
Delete old migrations
2021-01-10 18:29:33 +01:00
Viktor Strate Kløvedal
719dd633ce
Update Discord link with a new valid url
2021-01-06 23:35:58 +01:00
Viktor Strate Kløvedal
8700f98fd2
Merge pull request #157 from photoview/v2/user-multi-paths
...
Multiple and shared user paths
2021-01-06 17:28:49 +01:00
viktorstrate
a1a14286d6
Properly clean up when a user <-> album relation is deleted
2021-01-06 17:28:06 +01:00
Viktor Strate Kløvedal
2016489a5f
Add link to Discord server in Readme
2021-01-03 20:46:46 +01:00
viktorstrate
59048c8416
Fix various small errors regarding database change
...
- Fix media sidebar
- Fix Albums page
- Fix media and album shares
2021-01-02 23:07:44 +01:00
viktorstrate
d78cef300a
Finish add/remove root paths
2020-12-31 00:37:11 +01:00
Viktor Strate Kløvedal
82f4982e0e
Merge pull request #162 from Kjeldgaard/master
...
Add navigation control to map
2020-12-30 23:10:01 +01:00
Kjeldgaard
6c596c8462
Add navigation control to map
...
In places tab, navigation controls are added to the mapbox map.
2020-12-30 22:10:26 +01:00
viktorstrate
c198e68daf
Hook up UI to add and remove multiple root paths for each user
2020-12-30 18:36:26 +01:00
viktorstrate
6e2773cc65
Add UI for multi root users
2020-12-27 22:33:11 +01:00
viktorstrate
96546f6556
Add resolvers for user albums and root_albums
2020-12-27 20:07:54 +01:00
viktorstrate
aeb05bca49
get initial scanner up and running
2020-12-22 01:14:43 +01:00
viktorstrate
732ccd05ab
restructure user <-> albums relations in database
2020-12-20 17:10:00 +01:00
Viktor Strate Kløvedal
ae8e764539
Merge pull request #155 from stz184/search-orm-migration
...
Migrated the search to gorm
2020-12-19 09:46:24 +01:00
viktorstrate
d815472458
Simplify search query a little
2020-12-19 09:45:43 +01:00
stz184
e5cb91532a
implicitly join on the Album table
2020-12-19 01:07:43 +02:00
stz184
3ce4ab02cc
Migrated the search to gorm
2020-12-19 00:50:29 +02:00
viktorstrate
b38d7ab29a
Fix periodic scanner
...
and small bug related to user resolver
2020-12-17 23:21:51 +01:00
viktorstrate
907894dda3
Merge branch 'master' into v2.0.0
2020-12-17 23:18:00 +01:00
viktorstrate
4cd822f068
Update gomod to reflect repo transfer
2020-12-17 22:51:43 +01:00
viktorstrate
2903670255
Migrate album and media sharing
2020-12-17 22:29:24 +01:00
viktorstrate
092cbdb872
Migrate FormatSQL
2020-12-17 21:32:13 +01:00
Viktor Strate Kløvedal
c1f7146f85
Merge pull request #153 from stz184/fixed-issue-that-caused-scan-errors
...
Fixed issue that caused runtime error: invalid memory address or nil …
2020-12-15 13:09:51 +01:00
stz184
441134fcc8
Revert package-lock.json
2020-12-15 13:15:32 +02:00
stz184
7546987f85
Fixed issue that caused runtime error: invalid memory address or nil pointer dereference
...
because the sidecar file was trying to process before the highResMediaURL and thumbURL are actually created
2020-12-15 02:25:30 +02:00
viktorstrate
48c3ed93f2
Fix api tests
2020-12-14 10:41:00 +01:00
viktorstrate
4f370deab9
Merge remote-tracking branch 'origin/master' into v2.0.0
2020-12-10 12:30:10 +01:00
Viktor Strate Kløvedal
f2212988b7
Fix github actions docker builds ( #152 )
...
- Use QEMU for multiplatforms (needed after updating buildx-action)
- Cleanup Dockerfile
2020-12-09 19:24:39 +01:00
viktorstrate
4980a77efb
Properly merge SiteInfo in Apollo cache
...
This solves #146
2020-12-09 16:58:40 +01:00
Viktor Strate Kløvedal
d4900b76d0
Replace buildx action ( #151 )
...
Replace `crazy-max/ghaction-docker-buildx@v3` with `docker/setup-buildx-action@v1`, since the old version has been archived and moved to the new one
2020-12-09 11:52:36 +01:00
Vladimir Ivanov
6adc79001c
Photo duplication detection ( #148 )
...
* Fixes viktorstrate/photoview#8
- Added new property CounterpartPath to Media struct to hold the path to the counterpart JPEG file (if any)
- Added new MediaType method isBasicSupportedisBasicTypeSupported()
- Added new function isFileExists() to minimize the code duplication
* Fixes viktorstrate/photoview#8
- Chaned CounterpartPath definition from string to *string
- Added new helper method FileExtensions()
- Simplified the logic inside scanForRawCounterpartFile() and scanForCompressedCounterpartFile() functions, reducing the code duplication
* Fixes viktorstrate/photoview#8
- Added debug to fileExists() function
* Cleanup fileExists logging
Co-authored-by: viktorstrate <viktorstrate@gmail.com>
2020-12-09 11:40:37 +01:00
viktorstrate
1fbdaf101f
Update dependencies
2020-12-08 16:35:39 +01:00
viktorstrate
f0d580116b
Improve album and media resolvers
2020-12-08 16:24:08 +01:00