Commit Graph

95 Commits

Author SHA1 Message Date
Robbie Antenesse 875e6a75c8 Fix fastify onRequest hook 2021-04-21 21:41:18 -06:00
Robbie Antenesse 523e43d26d Opt out of Google Chrome tracking everything you do
Add `Permissions-Policy: interest-cohort=()` header to all responses.
2021-04-15 21:27:57 +00:00
Robbie Antenesse 391f2734d8 Add isFrontend check to Choo state 2020-09-21 20:49:02 -06:00
Robbie Antenesse 8f9fe6e97d Set up server-side rendering of Choo app on public route 2020-09-20 17:23:24 -06:00
Robbie Antenesse 0e956f6c67 Make request.language default to 'en'
Add i18n.pages.default using 'en' locale
2020-09-20 17:23:08 -06:00
Robbie Antenesse 2cfa08abe3 Allow fastify.i18n to be used outside of i18n routes 2020-09-20 16:42:33 -06:00
Robbie Antenesse 383607c7cf Correctly format & return shelf values 2020-09-14 12:44:54 -06:00
Robbie Antenesse f5a4db6dc9 Move formatReferenceSources() to BookReferenceController 2020-08-25 23:52:57 -06:00
Robbie Antenesse 86c5a3bc45 Fix adding ShelfItem to Shelf 2020-08-24 23:50:28 -06:00
Robbie Antenesse a6a819503f Consolidate and improve creating BookReferences 2020-08-24 17:14:08 -06:00
Robbie Antenesse 8283c1987a Update backend format for search; Delay cover image load 2020-08-24 17:09:56 -06:00
Robbie Antenesse 63c7d3676d Fix BooksController.createBookReference() 2020-08-24 12:13:14 -06:00
Robbie Antenesse 707c22dac7 Fix CSP to allow content from required domains 2020-08-24 11:29:43 -06:00
Robbie Antenesse 0b9e9d00fa PGSQL requires group by id for book search 2020-07-28 12:19:21 -06:00
Robbie Antenesse 97247373a9 Fix invalid PGSQL data type for permissionLevel 2020-07-28 11:53:05 -06:00
Robbie Antenesse 87786da9d4 Fix searchReferencesBySourceCodes 2020-07-28 10:53:21 -06:00
Robbie Antenesse a4d6fc9913 Start working on adding items to shelves from search 2020-06-24 20:56:59 -06:00
Robbie Antenesse ef54c0241b Add missing shelf ui text 2020-06-15 22:00:47 -06:00
Robbie Antenesse 6c80f3977a Hide reviews UI in Search if no reviews available 2020-06-14 14:39:12 -06:00
Robbie Antenesse bb60fefd08 Remove some things causing problems in Search 2020-06-14 14:11:30 -06:00
Robbie Antenesse e94cb890f5 Move fastify decorators to before start 2020-06-14 13:20:27 -06:00
Robbie Antenesse 9f736d4731 Set a cookie when locales are accessed
Allows server to know language with each request
2020-02-24 11:29:07 -07:00
Robbie Antenesse 1aa4d6346d Fix old column reference in shelf route 2020-02-24 11:13:12 -07:00
Robbie Antenesse e3b4809478 Fix login process: add permissionLevels 2020-02-24 10:56:41 -07:00
Robbie Antenesse f12f8b987a Give permissionLevel columns defaultValue of Private
If not included from UI or otherwise excluded, make it private
2020-02-24 10:47:08 -07:00
Robbie Antenesse e0a8c21051 Add deleteShelfItem endpoint 2020-02-24 09:59:55 -07:00
Robbie Antenesse 34403b8ec7 Create moveShelfItem endpoint 2020-02-08 13:01:15 -07:00
Robbie Antenesse 554fd3cf01 Create addShelfItem and endpoint 2020-02-08 12:50:28 -07:00
Robbie Antenesse f16aa470d8 Update shelf rename endpoint 2020-02-08 12:39:10 -07:00
Robbie Antenesse 7d20609cdf Create BookReferenceController 2020-02-07 16:12:40 -07:00
Robbie Antenesse 3600dd3d09 Update Inventaire bookData class to include source 2020-02-07 15:31:07 -07:00
Robbie Antenesse 5ab6d36314 Update how SearchController and searching works 2020-02-07 15:28:59 -07:00
Robbie Antenesse 326747c0ce Improve search return values and performance 2020-02-06 17:28:30 -07:00
Robbie Antenesse a3f6137dec Add extra scopes and associations for Review and BookReference 2020-02-06 17:27:45 -07:00
Robbie Antenesse ccf55e1955 Fix incorrect declarations 2020-02-06 17:27:22 -07:00
Robbie Antenesse 963049e4c8 Fix incorrect use of static Inventaire URL 2020-02-06 17:26:33 -07:00
Robbie Antenesse 8f0edf7e01 Make search api search BookReferences first (Untested) 2020-02-06 13:55:28 -07:00
Robbie Antenesse 0189a5cab0 Update BookReference model
Add locale; change sources to object with keys = source and value = id
2020-02-06 09:55:09 -07:00
Robbie Antenesse 03a939b643 Change what is passed to ShelfController 2020-02-04 16:05:08 -07:00
Robbie Antenesse abbc8b5591 Split Inventaire book methods into sepate class 2020-02-04 15:31:58 -07:00
Robbie Antenesse a596e685d6 Rename shelves/get endpoint to shelf/getAll for consistency 2020-02-04 15:00:45 -07:00
Robbie Antenesse ae95bf7a0c Add db diagram script and output
Will update NPM source if PR is accepted & published
2020-01-25 13:54:01 -07:00
Robbie Antenesse b1da2f81c7 Sequelize model relationship fixes 2020-01-25 13:52:37 -07:00
Robbie Antenesse b9c9c6bec6 Initial attempt at setting up a Follower scheme 2020-01-20 09:47:31 -08:00
Robbie Antenesse 6e16b36d49 Fix invalid syntax for node in server ShelfController 2020-01-15 16:57:27 -07:00
Robbie Antenesse 7d77a5a8f5 Add Reaction model with associations on Status & Review 2020-01-15 15:36:26 -07:00
Robbie Antenesse 071e1e6586 Update sequelize & DB setup:
- Split models & associations into their own files
- Update columns and requirements
- Create PermissionLevel model & add to relevant models
2020-01-14 15:47:44 -07:00
Robbie Antenesse 86897be78a DB: Split Review from Status; remove StatusTypes 2020-01-12 22:55:38 -07:00
Robbie Antenesse 243a4094d0 Get overwhelmed by ShelfController.scrubShelfData() 2020-01-11 20:37:27 -07:00
Robbie Antenesse 3d34467208 Verify shelf id and request from external domain if present 2020-01-11 20:35:51 -07:00