101 Commits

Author SHA1 Message Date
InfiniteStash
c69ab88efb Deprecate fuzzy date types (#378) 2022-05-20 11:21:12 +02:00
InfiniteStash
f3212e3a96 Deprecate measurements type (#381) 2022-05-20 11:06:42 +02:00
InfiniteStash
2ebecb324b Fix addition of duplicate tags from drafts in some cases (#376) 2022-05-18 08:19:09 +02:00
InfiniteStash
6835007eeb Add support for updating entities from drafts (#368) 2022-05-15 21:28:06 +02:00
InfiniteStash
9a20325ae0 Refactor time/date types (#370)
* Rename SQLiteDate -> SQLDate

* Switch from SQLiteTimestamp to time.Time
2022-05-12 08:01:42 +02:00
InfiniteStash
d4850d86ca Add findScenesBySceneFingerprints query that matches results to query (#357) 2022-05-10 18:51:39 +02:00
InfiniteStash
688a52abfd Add ability to amend edits (#365) 2022-05-10 17:47:46 +02:00
peolic
e9f3ef51fa Partial scene date (#314) 2022-04-14 23:12:47 +02:00
InfiniteStash
2eb35f8b2e Update go and libraries (#348) 2022-04-10 12:13:53 +02:00
InfiniteStash
da091d5d5b Switch gzip compression to klauspost/compress (#331) 2022-02-22 18:03:28 +01:00
peolic
7261b9ff2c Match scene draft URL site using regex (#323) 2022-02-18 21:06:31 +01:00
peolic
8a447c9191 Fix edit comment order (#307) 2022-02-13 23:00:48 +01:00
InfiniteStash
b5f0b56519 Add scene code field (#295) 2022-02-06 21:40:23 +01:00
InfiniteStash
d38241ba37 Refactor graphql query inputs (#292) 2022-02-06 21:28:50 +01:00
InfiniteStash
6bea8d523e Add optional profiler (#290) 2022-02-06 20:12:35 +01:00
peolic
3d55d0c7af Resolve tag redirects when submitting drafts (#268) 2022-01-28 23:37:38 +01:00
peolic
60f4974c2f Various fixes (#264)
* Set UpdatedAt when edit is applied

* Add missing timestamp fields

* Limit scene images to 1

* Fix missing draft ID for draft-created performers
2022-01-24 23:57:31 +01:00
InfiniteStash
6d1db1d068 Resolve studio/performer redirects when submitting drafts (#259) 2022-01-24 15:17:05 +01:00
InfiniteStash
11281408a4 Resolve tags in scene drafts (#254) 2022-01-21 12:46:17 +01:00
InfiniteStash
d594de9602 Add scene/performer draft submissions (#240) 2022-01-18 23:26:31 +01:00
InfiniteStash
c6ec6a80ad Favorite studios and performers (#242) 2022-01-18 15:15:45 +01:00
InfiniteStash
8bc21dca51 Update go libraries (#243) 2022-01-18 12:33:46 +01:00
InfiniteStash
1ff83e7cf3 Merge branch 'master' into develop 2021-12-30 11:13:21 +00:00
peolic
3d263ff7be [Hotfix] admin edit cancellation (#229) 2021-12-30 10:19:17 +01:00
InfiniteStash
80b01b9372 Fix url comparison when sites are different (#223) 2021-12-21 09:41:35 +01:00
peolic
6573988d0b Fix edit expiration (#217)
* Add `Edit.IsDestructive()`

* Expose `destructive` field and fix UI

* Scenes filter style

* Show edit vote status to edit owner

* Add direction toggle to scene sort select

* Dedupe current vote and adjust style

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-12-18 13:08:56 +01:00
peolic
8f0a2d84b9 Use imageList in PerformerEdit/StudioEdit (#221) 2021-12-18 13:04:57 +01:00
InfiniteStash
0e937cba10 Add customizable URL targets (#140)
* URL Sites WIP

* Fix site edit button positions

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Adjust studioForm width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove superfluous admin check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove superfluous admin check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove superfluous admin check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Use directive for mutation permissions check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix performerForm link tab width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix sceneForm link tab width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix siteForm class/width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Add `noopener` rel to site links

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix urlInput add button disable logic

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Review feedback

* Make generate

* Remove unnecessary code

* Refactor UrlInput to properly disable/enable add button

* Fix link editing error

* Tweak URLList rendering and add home URL to studio page

* Add target="_blank" to studio home link

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>
2021-12-18 11:22:09 +01:00
peolic
8314cacb7e Refactor edit diffing (#218)
* Update libs

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Use `URLFragment` and `ImageFragment`

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove bootstrap-4 classes

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* import order in api.integration_test

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Refactor edit diffing

- StudioSelect: change value shape
- StudioForm:
  - add tabs
  - add preview of changes on confirm tab
  - rename `name` field
  - add image upload warning
- PerformerForm:
  - fix auto breast type change on gender change
  - refactor preview of changes

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Add submission errors to edit pages

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Prevent empty tag edits

* Replace errors in edit manager

* Specify source/target where applicable

* Update vite react plugin

This seemed to fix Fast Refresh

* Add TagMerge submission error

not the best location, but better than nothing

* Split form schemas into separate files

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-12-09 19:59:35 +01:00
InfiniteStash
2b9f69df30 Add gql directives for modify/vote/edit/read (#200) 2021-12-06 22:49:49 +01:00
peolic
055efd0739 Add option to regenerate API key (#215) 2021-12-04 20:56:34 +01:00
peolic
39518ac0b0 TagEdit category resolver (#202) 2021-11-30 21:41:29 +01:00
InfiniteStash
2a10c80a85 Add UUID graphql scalar (#199) 2021-11-30 21:23:03 +01:00
InfiniteStash
1765a18b7a Refactor unnecessary panics (#196) 2021-11-28 23:34:58 +01:00
peolic
0379efaa34 Create edit votes for admin actions (#198) 2021-11-28 23:31:04 +01:00
InfiniteStash
9bc9d7386e Limit vote user details to users with vote role (#158) 2021-11-26 09:38:59 +01:00
InfiniteStash
669bef8d48 Add additional linters (#179) 2021-11-26 09:12:29 +01:00
InfiniteStash
913e500c79 User permission remediation (#185) 2021-11-26 09:09:12 +01:00
InfiniteStash
cc1839a272 Add version page (#190) 2021-11-26 08:53:02 +01:00
InfiniteStash
92c6c0c4d3 Update build versioning and release publishing (#188) 2021-11-24 23:33:41 +01:00
InfiniteStash
6a4b5acfe7 fmt 2021-11-24 11:16:29 +00:00
InfiniteStash
3298a2802c Add permission directives for user fields 2021-11-24 11:16:03 +00:00
InfiniteStash
5284e3c394 Optimize scene/performer/edit query (#178) 2021-11-23 20:47:45 +01:00
InfiniteStash
70ba9a8f64 Landing page revamp (#166) 2021-11-16 20:31:55 +01:00
InfiniteStash
2f7f28e3c8 Various UI and permissions fixes (#159) 2021-11-02 22:54:08 +01:00
InfiniteStash
b42ed7e21e Fix editQuery target parsing and error handling (#157) 2021-10-31 21:27:37 +01:00
InfiniteStash
98db3dad7a Add page and instance titles (#155) 2021-10-31 19:56:59 +01:00
WithoutPants
913c10bbe3 Refactor user fingerprints (#115) 2021-10-31 08:29:47 +01:00
InfiniteStash
66198f8314 Add voting on edits (#129) 2021-10-29 21:17:05 +02:00
InfiniteStash
b34d6848d8 Update libraries and readme (#136) 2021-10-13 13:21:07 +02:00