~jpgleeson/caint

33ef43dd — jpgleeson 2 days ago master
FIX: Add ownerId to new comments.

ownerId is now added to new comments. Everything worked correctly before the way I was using and manipulating comments, but when I implemented the unapproved comments with the dashboard, I was filtering by ownerId on each comment rather than by threadId, and they didn't show up because they were all set to null.
2966a9e2 — jpgleeson 3 days ago
Handle null owner in thread.

Fixed crash that resulted from no owner being assigned to a thread. This was a legacy issue from updating the live database as I went without referencing the new owner id's.
6f3be0f7 — jpgleeson 5 days ago
OwnerId added to models

To allow for good tenant management. The Comment model itself only needs to have the ownerid as a convenience function for the dashboard, but I could refactor it out to only use thread ownerIds if that seemed better at some point.
9a6a9c60 — jpgleeson 5 days ago
Set to local rather than live

This queries the local server rather than the live version now for development.
54cf4dd9 — jpgleeson 5 days ago
Beginning to add multi-tenant capabilities.

Basic run through of checking the tenant names against a table with approved tenants. If tenantName is found in that list, then the comment is taken into the database, even if the tenant is not active. This includes migrations to add this to the database.
783e27ed — jpgleeson 6 days ago
Fixed javascript not loading thread on first load.
743c1af8 — jpgleeson 9 days ago
Change tenantName.

Tenant name should be set by the site admin to a certain name. This is an easier way of allowing all subdomains etc to a site to either use the same comment system, or for them to be separate.
c0919f81 — jpgleeson 9 days ago
Move to SQLite as database for now.

Changed to sqlite. Also removed admin stuff from the regular js file. DB migrations added.
82c24416 — jpgleeson 9 days ago
Use ORM for getting admin view of single thread

Was previously fetching all, then the server would cherrypick them itself. That's non idiomatic and a bit weird. Fixed now.
ceb1776a — jpgleeson 28 days ago
Merge remote-tracking branch 'sourcehut/master'
19a42f61 — jpgleeson 28 days ago
Comment post validation js. CSS changes
Small css update
06bade26 — jpgleeson 29 days ago
Moved Dashboard to separate js file
97976971 — jpgleeson a month ago
Ad hoc generation of threads

Lots of small things in this. There is now a thread table that keeps the thread ids for each page referenced by the host and path of the individual page. I need to work on having it deduplicate threads if a subdomain is different.
cf399afb — jpgleeson a month ago
Better CORS permissions. Better API usage from javascript.

Now uses a hidden value in the form to pass the threadId. This can/should be set at generation of page. I will have a little patch with piaine to make it work for my own sites.
114b9c42 — jpgleeson a month ago
Styling

Working on stylesheets for this. Also fixed a mistake where it was looking for the wrong value name for the approved bool. This is fixed, and now comments are shown in the admin dashboard with approved status.
c9e7269a — jpgleeson a month ago
First look at external thread views

Basic javascript and CSS to draw down a thread from the API. The thread id is served as an argument from the page so the question is do I make a function in the API that returns the thread id for a specific page or include the page as a const when I create the page statically.
94ad8b70 — jpgleeson a month ago
First look at an admin dashboard.
24b718ca — jpgleeson 2 months ago
DTO, Approval, and some Admin
05dcd1a8 — jpgleeson 2 months ago
First commit.

Basic creation and reading of comments with threads.