47 Commits

Author SHA1 Message Date
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
e41ff4902b Add index for studio favorite subquery (#371) 2022-05-12 07:59:08 +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
9b1092797b Fix offset when perPage is over max (#330) 2022-02-22 19:41:30 +01:00
peolic
943470dc24 Ensure trending scenes order across pagination (#309) 2022-02-14 09:53:48 +01:00
InfiniteStash
c8d6b8f900 Hide deleted sub-studios (#296) 2022-02-07 00:24:01 +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
08bdaa5fd5 Fix edit failing when pg transaction is aborted (#294) 2022-02-06 21:23:53 +01:00
peolic
f5a66c19bc Trim names/aliases/descriptions (#288) 2022-02-06 21:19:07 +01:00
peolic
3d3fecdd38 Fix tag.FindByNameOrAlias arguments (#278) 2022-01-29 08:47:28 +01:00
peolic
3d55d0c7af Resolve tag redirects when submitting drafts (#268) 2022-01-28 23:37:38 +01:00
peolic
d110fbdcaa Fix WithTxn rollback (#273) 2022-01-28 23:29:22 +01:00
InfiniteStash
6d1db1d068 Resolve studio/performer redirects when submitting drafts (#259) 2022-01-24 15:17:05 +01:00
InfiniteStash
76b26ed7c7 Make tag matching for scene drafts case insensitive 2022-01-22 12:38:11 +00:00
InfiniteStash
8aa12c94cc Fix dupe scenes when using scene fingerprint filter 2022-01-21 19:46:53 +00: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
peolic
be57d94ab6 Improve performer search (#241) 2022-01-17 14:12:04 +01:00
peolic
fa3230fe07 Assorted UI changes (#238)
* Update react imports

(doesn't affect bundle size)

* fix join table name

* import routes into Login.tsx

* add EditCard class

* CI: Make sure generate does not need to be run

* replace legacy markdown plugin

https://github.com/remarkjs/remark-external-links

* Refactor edit card header

* Add padding to page bottom

* Fix EditHeader styles (merge, destroy)

* Make create edit diffs full width

* Remove unnecessary padding

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

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2022-01-16 11:39:23 +01:00
InfiniteStash
80b01b9372 Fix url comparison when sites are different (#223) 2021-12-21 09:41:35 +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
432f742efb Fix scenes fingerprints criterion (#216) 2021-12-06 20:16:33 +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
InfiniteStash
a4f19957c1 Add failing of edits with edit notes (#193) 2021-11-28 23:05:32 +01:00
InfiniteStash
669bef8d48 Add additional linters (#179) 2021-11-26 09:12:29 +01:00
InfiniteStash
97ff07ef7c Fix trending scene query count/paging (#186) 2021-11-25 08:36:10 +01:00
InfiniteStash
5284e3c394 Optimize scene/performer/edit query (#178) 2021-11-23 20:47:45 +01:00
InfiniteStash
1fd8554638 Refactor query builder distinct handling (#176) 2021-11-22 22:02:31 +01:00
peolic
bcbbc10297 Ensure order for studios (#172) 2021-11-19 20:59:24 +01:00
InfiniteStash
fb7167e565 Optimize landing page query performance (#169) 2021-11-17 10:18:41 +01:00
InfiniteStash
70ba9a8f64 Landing page revamp (#166) 2021-11-16 20:31:55 +01:00
InfiniteStash
b42ed7e21e Fix editQuery target parsing and error handling (#157) 2021-10-31 21:27:37 +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
peolic
2ae7153d4a Misc fixes (#138)
* update scene fragment

* fix missing buttons

* Fix compile error

* Fix studio edit submit disabled

* Fix skewed edit image

* Show error if image not uploaded

* Format

* mark deleted scenes

* Hide deleted scenes from scene lists and search

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2021-10-13 12:51:14 +02:00
InfiniteStash
6e53daaf06 Switch linting to golangci-lint (#132) 2021-09-23 23:01:36 +02:00
WithoutPants
7f6a0f63a0 Scene edit (#128)
* Initial changes

* Add integration tests

* Bug fixes

* Bug fixes

* Bug fixes

* UI support

* Add edits tab to scene view

* Add edits field to scene type

* Refactor scene form validation and changelog

* Set empty strings to null when submitting an edit

* Omit empty fields in scene edit

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-09-23 22:42:14 +02:00
WithoutPants
d5b20f51cf Fix studio redirect table spec 2021-09-02 11:31:03 +10:00
WithoutPants
e4abf2fb92 Studio edits (#127)
* Refactor edit code
* Remove child studio mutations
* Studio edit processing
* Refactor/reduce boilerplate
* Add integration test
* Add studio to edit query
* Make Studio in list mandatory
* Exclude delete studios from query
* Add UI pages
* Add missing build directives
* Fix application of image/url studio edits
* Add diff of studio urls and edit target header link
* Fix validate error message
* Fix destroy edit target link

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-09-02 09:23:18 +10:00
InfiniteStash
6f9384ea7a Add name filtering to users list (#117)
* Add name filtering to users list

* Add perPage param to users list

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

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>
2021-08-19 20:13:55 +02:00
peolic
44fc45130a Misc backend changes (#106)
* split out enum functions to utils

* split out ApplyEdit to a function

* fix InsertJoinsWithConflictHandling comment

* getRepoFactory once

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-07-20 23:55:04 +02:00
InfiniteStash
36c846c963 Refactor config (#104) 2021-06-25 20:41:18 +02:00
WithoutPants
2f60f8afbb Major refactor (#98) 2021-06-15 19:26:02 +10:00