Commit graph

10 commits

Author SHA1 Message Date
7e2010efb0
JSON views: albums, events (#22)
* Provide location in Directus client event payload

* Add Feed controller with views: album.json

* Enable Feedcontroller :albums view

* Add event json to Feed Controller

* Enable Feed Controller event json view
2024-10-07 14:32:15 +02:00
b6164295f3
List and show Brutal legends (#19)
* Add album item view

* Add album styles

* Simplify album field selection

* Fetch album in item controller

* Use correct permalink
2024-10-04 13:15:27 +02:00
794752592e
List all items annually (#18)
* Add year filter to Directus client

* Add Timeline module to combine several streams

* Fetch annual view by pokemon route

* Add annual view

* Remove scaffold route
2024-10-04 13:09:50 +02:00
a6d34d17fc
List and show events (#17)
* Improve Directus client

- Rearrange and group functions to match
- Allow whitespace when searching
- provide category to event list

* Add event list view

* Show band information on festival-ish events

* Extract view helpers to reusable module

Code is shared between ItemHTML and PageHTML,
and they really do not belong in web anyway
since it is usable outside web scope as well.

* Rename utils to event helpers

It is a file that handles the poor design choice
of the datamodel for events, so let the module
name describe that.

* Sync event view

- Replace scaffold markup with production markup
- Send more data from Directus client
2024-10-03 22:52:40 +02:00
bb3726d071
Article search (#16)
* Cleanup CSS file

* Add free text query to Directus client

* Add search form to article list view

* Search titles instead of contents

Will prevent DDOS slighty.
2024-10-03 15:31:19 +02:00
89b93cf231
List shared links (#15)
* Exclude not published items in directus client

* Add link view to page controller

* Add page controller links list view to router

* Add links list view CSS

* Add permalink view for link

* Improve page titles

* Let user copy link permalink to clipboard

if alt, shift or ctrl are pressed, fallback to
default behavior.
2024-10-03 14:38:56 +02:00
ebff42d899
Brutal legends (albums) data (#13)
* Improve Directus client event sorting and filtering

* Add Directus client getters: albums, album

* Rearrange home view

Add brutal legends move some things around.
2024-10-03 09:55:44 +02:00
f17558daaf
Add homepage view (#10)
* Ignore rel dir

* Add assets

* Add assets to esbuild bundle

* Add upcoming filter to Directus events

* Add homepage
2024-10-01 16:44:34 +02:00
8bbe8a1b24
Item views (#7)
* Add Earmark dependency

For markdown to HTML conversion

* Display items by slug: articles, pages

* Handle 401 Forbidden responses in Directus

* Add item controller as pokemon route

* Strip out generated layouts

* Plan future routes

* Look for item in order: article, link, event, album

* Add item templates
2024-09-06 22:41:12 +02:00
e907e347c9
Directus client (#1)
* Add Req dependency

* Introduce dev.secrets file

* Configure directus by env vars in prod

* Add Directus module

* Add item getters

* Add list getters

---------

Co-authored-by: Anders Englöf Ytterström <anders@playmaker.ai>
2024-09-05 00:45:14 +02:00