50 Commits

Author SHA1 Message Date
InfiniteStash
a9a029d910 Update closed_at/updated_at values in edit updating migration (#374) 2022-05-18 08:20:01 +02:00
InfiniteStash
e41ff4902b Add index for studio favorite subquery (#371) 2022-05-12 07:59:08 +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
81fa75e1ea Add config options for postgres connection params (#326) 2022-02-18 21:08:04 +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
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
ecdf22ac2b Replace all IMMEDIATE_REJECTED with CANCELED (#227) 2021-12-30 17:27:48 +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
InfiniteStash
669bef8d48 Add additional linters (#179) 2021-11-26 09:12:29 +01:00
peolic
53e609e262 Implement migration logging (#187) 2021-11-25 08:45:04 +01:00
peolic
f7e55f14f8 Alter edit_* foreign keys to cascade on delete (#174) 2021-11-23 22:20:10 +01:00
InfiniteStash
fb7167e565 Optimize landing page query performance (#169) 2021-11-17 10:18:41 +01:00
peolic
aa5534d1fb Fix fingerprint user migration (#165) 2021-11-15 09:09:52 +01:00
WithoutPants
913c10bbe3 Refactor user fingerprints (#115) 2021-10-31 08:29:47 +01:00
peolic
d6a83cc414 Set updated_at on migration edit rejection (#151) 2021-10-30 11:55:02 +02: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
InfiniteStash
ddca0309ca Replace packr with go:embed (#118) 2021-08-19 20:19:56 +02:00
WithoutPants
2f60f8afbb Major refactor (#98) 2021-06-15 19:26:02 +10:00
InfiniteStash
5f6419f1fb Fix studio name not being updated in search table for scene updates (#96) 2021-06-10 23:11:49 +02:00
InfiniteStash
6d4f43ee41 Add linting and additional error checkers (#84) 2021-05-24 18:46:22 +02:00
InfiniteStash
ad4be87e89 Add submissions count/time tracking to fingerprints (#72) 2021-05-21 16:22:00 +02:00
InfiniteStash
2b2231d549 Add distance matching for phashes (#81) 2021-05-21 16:04:41 +02:00
peolic
245dd9ba78 Fix issue when using parentStudio filter (#73) 2021-05-19 07:41:02 +02:00
InfiniteStash
d158e640fc Move CI pipeline to Github actions (#70) 2021-05-17 13:50:32 +02:00
InfiniteStash
ab1eafcb43 Fix performer ordering and add index to scene_search (#68) 2021-05-11 21:54:01 +02:00
InfiniteStash
5efb00c542 Fix roundup (#66)
* Prevent submission of fingerprints with 0s duration

* Escape email address in activation email link

* Sort edit comments by timestamp

* Use local timezone for edit/editnote timestamps

* Order user list ascending

* Disable submit buttons while edits are submitting.

* Fix performer/scene update triggers to concatenate and update correctly

* Add scene duration to scene page and search card

* Allow unsetting studio parent id

* Fix performer ordering by scene_count

* Add performer order by created_at

* Fix updating of column names with reserved names

* Allow users to cancel own edits

* Fix edit diff of partial performer birthdates

* Fix birthdate showing up in edit diffs when being removed

* Add career start ordering for performers

* Support searching by tag name with uuid

* Change edit diff checkboxes to icons for visibility

* Add markdown to edit comments

* Add scene filtering by fingerprint

* Switch markdown library to react-markdown

* Prevent generation of image uuids that start with ad

* Fix timestamp timezone

* Restore #60

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

* Fix breasttype issues for male performers

* Fix breasttype issue for performers with null breasttype

* Add shortcut for changing performers in scenes

* Linting

* Coalesce breast type to Unknown rather than NA

* Fix breasttype diff logic

* Fix text truncation of performer name in scene form

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>
2021-05-09 13:38:38 +02:00
InfiniteStash
952fced6fa UI update (#45) 2021-02-24 18:38:27 +01:00
InfiniteStash
72474a4b44 Add Tag Categories (#28) 2021-01-29 22:27:59 +01:00
InfiniteStash
b1bf1fea1a Rename namespace to stash-box and update linux compiles to be static (#41) 2021-01-29 13:25:26 +01:00
WithoutPants
ef73f2ee8b Image local storage and editing (#33) 2021-01-12 18:31:52 +01:00
WithoutPants
5102bd8073 User registration (#31)
* Add configuration keys
* Move user stuff to separate package
* Add grant/repeal token implementation
* Invite key generation
* Initial new user implementation
* Send activation email
* Add new user activation implementation
* Allow resending activation email
* Return activation key if verification not required
* Implement reset password
* Add generate-ui make target
* Invite token and code management
* Restore original generated ts files
* Don't format generated files
* Add register page
* Add activate new user page
* Add reset password UI
* Add config documentation
2020-11-12 10:48:56 +11:00
InfiniteStash
f9b2425ad6 Query optimizations (#27)
* Change default scene sort to date DESC
2020-08-23 11:34:34 +10:00
InfiniteStash
a28da0a89b Add dataloaders (#25) 2020-08-23 11:22:26 +10:00
InfiniteStash
206f49c741 Add editing support for tags (#21)
* Schema/api changes for edit
* Add StrSliceCompare
* Edit Tag mutation
* Tag edit creation
* ApplyEdit for tags
* Add migration
* Edit comments
* Add edits to tag resolver
* QueryEdit filters
* Add frontend tag editing support
* Upgrade apollo-client to version 3
* Upgrade react-router to 5.2.0
* Upgrade react-hook-form and yup
* Update various libraries
* Search fixes
* Show tag description and aliases
* Update libraries
* Move scene_tags in tag migrations
* Add edits menu item and tweak graphql schema
* Show merge edits for tags that have been merged

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2020-08-20 15:31:03 +10:00
InfiniteStash
4bb9469f88 Fix bugs and allow for unsetting performer metadata. (#20)
* Fix various editing/display bugs
* Add entity create buttons and fix button style/behaviors
* Show country name in performer info
2020-07-24 13:50:47 +10:00
InfiniteStash
0d9f46c6f1 Omnibus stashdb changes (#19)
* Add fuzzy performer/scene search
* Add frontend support for users
* Add support for tags and fingerprints
* Fingerprint duration and UI updates
* Add image entity for performers/scenes/studios
* Switch frontend to create-react-app and typescript 3.9
* Remove image fields from URL type
* Remove image fields from studio
* Fix bugs, and update frontend config/readme
* Add pg_trgm info
* Fix integration tests
* Create image url resolver and remove unused image fields
* Don't open browser by default
* Fix development auth cookie issues

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2020-06-25 13:40:09 +10:00
WithoutPants
bfdd2de65f Remove sqlite (#14) 2020-02-04 18:02:09 +11:00
WithoutPants
09392a009e Add User management (#13)
* Add user
* Generate root user
* Add create/update validation
* Disallow removing root user
* Fix packr deprecation message
* Change authorisation to user apikey
* Return error message when apikey fails
* Add integration tests for unauthorised calls
* Ignore .vscode
* Add gitattributes to fix UI eol lint issue
* Misc changes
* Prevent caching of integration test results
* Disallow changing root name or roles
* Remove old api key config
* Ensure api key matches stored key
* Add session management
* Fix empty key detection code
* Allow users to query users, hiding some info
* Add regenerate api key and change password
2020-01-23 07:22:30 +11:00
WithoutPants
3c669105ff Fix integration tests (#12)
* Fix test compile error and panic

* Remove irrelevant tests

* Fix NULLS LAST change

* Support integration test against postgres

* Fix postgres test failure
2020-01-18 09:22:05 +11:00
InfiniteStash
388dc71d1f Align backend and frontend (#10)
* Update URLs
2019-12-21 20:35:18 +11:00
WithoutPants
a887119656 Implement MultiIDCriterion filters for scene (#8) 2019-12-09 06:39:21 +11:00
InfiniteStash
84d42c619f Change type of IDs from int64 to uuid (#7)
* Change type of IDs from int64 to uuid
* Rename insertJoins -> insertObjects
2019-12-08 08:57:48 +11:00
WithoutPants
132ca6a511 Add support for postgres database (#4)
* Generalise database
* Add postgres migration
* Add optional support for postgres database
* Add postgres documentation to README
2019-11-29 11:16:59 +11:00
WithoutPants
856ebd6c94 Add studio, tags, scene (#3)
* Add tags
* Add studio
* Add scenes support
* Add integration test
* Add gitattributes. Add test targets
* Add DB interface and refactor
* Add performer image
* Replace checksums with fingerprints
* Update dependencies
* Make performers unique on name/disambiguation
* Add first draft of README
2019-11-27 13:17:46 +11:00
WithoutPants
0f29cf0c84 Initial performer prototype (#1)
* Initial performer prototype

* Drop file: from migration url to fix panic

* Remove vendor requirement
2019-11-18 21:13:05 +11:00