Commit graph

25 commits

Author SHA1 Message Date
Belle Aerni ebb0fce492
Bump AntLoader to version 2 (#46)
* Bump AntLoader to version 2

* Whoops - I forgot about the tests

* Oh yeah, cron.

Note to self: turn the autoloader into an individual file that can be included by the tests / cron file so I don't need to update 3 of them manually
2023-05-27 02:14:33 -07:00
Belle Aerni b61ac80227
Started work on routing improvements (#42)
* Started work on routing improvements

Creates a helper class to make handling routes a bit easier. Also should an issue that prevented SSL certs from being renewed via the .well-known folder

* Bugfix

* Added PHPDocs
2023-05-26 05:44:27 -07:00
Belle Aerni d03ec564f6 Remove AntKeywords, minor formatting changes 2023-05-13 13:08:33 -07:00
Belle Aerni b31e88a428
Move to using AntLoader (#38)
* Move to using AntLoader

* Update composer lockfile

I fixed the wrong classname in AntLoader

* Update tests

* It works!

* Use AntLoader 1.0.0
2023-05-04 19:36:15 -07:00
Belle Aerni 23e8b18ba3
Implemented multi-user support (#27)
* Implemented rudimentary multi-user support

* Delete src.zip

* Improve the update user function

And added a new function to the auth module to invalidate a session

* Update AntAuth.php

* Rename the configs, a bit more auth stuff

* Fix test and JS regex

* Turn the admin landing page into a twig template

* plugin/admin/ -> admin/

* Refactored templating for plugins

Plus. I finally converted the remaining options in the admin plugin to twig templates. No extra styling, but it'll be easier now

* Fix PHPStan warnings

* Basic "first time" user setup

* Improved styling

* Started implementing user management

* Completed user management in the admin panel

* Renamed templates, added support for sub-dirs

* Limit and validate allowed chars for usernames

* Finished the basics of the profile plugin

* Styling for the bootstrap theme

* Some more final touches

* Added an example to show author

* Tweak to the readme
2023-03-07 02:09:32 -08:00
Belle Aerni ff9583bfdf
Rector (#19)
* Rector code quality run

* Ran Rector with coding style ruleset

* Ran Rector with the naming setlist
2023-01-14 20:44:27 -08:00
Belle Aerni 91395db9c4 Added robots.txt plugin
Automatically generates the content, including the correct link to the sitemap.
2023-01-14 00:30:29 -08:00
Belle Aerni eaca96fd6b Added a sitemap generator 2023-01-13 23:46:17 -08:00
Belle Aerni c15bf1f449 Refactor AntConfig::currentConfig 2023-01-10 17:24:30 -08:00
Belle Aerni b60439a9a9 Tests
Test, tests, baby (insert sounds from ice, ice, baby)
2023-01-09 10:47:55 -08:00
Belle Aerni e09d4ca60d Experimenting with unit tests 2023-01-08 23:43:17 -08:00
Belle Aerni 90a31b2941 Created a cron file to cleanup cache
+ use a few directory separators for better portability in the code
2023-01-08 09:14:40 -08:00
Belle Aerni 457cce525b
Basic plugin support + admin plugin (#5)
* Started writing plugin support

* Started work on the Admin plugin

* Added page list regeneration option

* Started work on the config editor

* Rebased

* Admin plugin can now edit the config

* Ability to edit pages + verify config before saving

* Make PHPStan happy :)

* Implemented authentication
2023-01-08 08:54:54 -08:00
Belle Aerni f5844cb2cc Rewrote to server content through index.php 2023-01-07 17:44:16 -08:00
Belle Aerni a36755bb80 Improved caching 2023-01-07 12:15:29 -08:00
Belle Aerni 2fc2775720 Slightly better theming support 2023-01-07 01:28:04 -08:00
Belle Aerni 28ca1b87e4 Add PHPStan 2023-01-06 18:25:28 -08:00
Belle Aerni 7ab664e18f Automated page list generation 2023-01-06 16:16:11 -08:00
Belle Aerni bb5da2fc50 Added support for index pages 2023-01-06 15:17:31 -08:00
Belle Aerni ba585f7616 Initial config support + force HTTPs 2023-01-06 14:17:33 -08:00
Belle Aerni d6e4338689 Created an autoloader 2023-01-06 13:40:02 -08:00
Belle Aerni 1d020543c0 Rudimentary keyword generation + cache 2023-01-06 02:46:38 -08:00
Belle Aerni 02919b797f Initial support for theming 2023-01-05 23:43:31 -08:00
Belle Aerni a6be3d7b2c Create new Markdown class, add strikethrough 2023-01-05 20:17:07 -08:00
Belle Aerni 23b05394b4 Created a skeleton of the app 2023-01-05 20:01:00 -08:00