aurweb/templates/partials/packages
Kevin Morris fc28aad245
feat(FastAPI): add pkgbase comments (new, edit)
In PHP, this was implemented using an /rpc type 'get-comment-form'.
With FastAPI, we've decided to reorganize this into a non-RPC route:
`/pkgbase/{name}/comments/{id}/form`, rendered via the new
`templates/partials/packages/comment_form.html` template.

When the comment_form.html template is provided a `comment` object,
it will produce an edit comment form. Otherwise, it will produce a new
comment form.

A few new FastAPI routes have been introduced:

- GET `/pkgbase/{name}/comments/{id}/form`
    - Produces a JSON response based on {"form": "<form_markup>"}.
- POST `/pkgbase/{name}/comments'
    - Creates a new comment.
- POST `/pkgbase/{name}/comments/{id}`
    - Edits an existing comment.

In addition, some Javascript has been modified for our new routes.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-02 16:59:10 -07:00
..
widgets [FastAPI] Modularize homepage and add side panel 2021-08-17 19:58:32 -07:00
actions.html jinja2: rename filter 'urlencode' to 'quote_plus' 2021-08-31 13:28:54 -07:00
comment.html feat(FastAPI): add pkgbase comments (new, edit) 2021-10-02 16:59:10 -07:00
comment_form.html feat(FastAPI): add pkgbase comments (new, edit) 2021-10-02 16:59:10 -07:00
comments.html feat(FastAPI): add pkgbase comments (new, edit) 2021-10-02 16:59:10 -07:00
details.html routers.packages: Simplify some existence checks 2021-08-09 23:42:54 -07:00
package_metadata.html [FastAPI] include DepArch in dependency list 2021-08-30 18:48:53 -07:00
pkgbase_metadata.html add /pkgbase/{name} route 2021-07-27 20:48:40 -07:00
requests.html routers.html: add authenticated dashboard to homepage 2021-08-17 21:59:13 -07:00
results.html fix(FastAPI): voted/notified query efficiency 2021-09-19 00:34:08 -07:00
search.html feat(FastAPI): add /packages (get) search 2021-09-19 12:44:19 -07:00
search_actions.html feat(FastAPI): add /packages (get) search 2021-09-19 12:44:19 -07:00
search_results.html feat(FastAPI): add /packages (get) search 2021-09-19 12:44:19 -07:00