Commit Graph

18 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 38e51166c3
Implemented APCu caching (#44)
* Start implementing APCu caching

* Fix tests

* Now make PHPStan happy :)

* Fix tests

* Also enable the APCu extension in the tests

* Set maxlife to 7 days & clear with cron

* Implement a more correct way to clear the cache

* Also mention the APCu caching in the readme
2023-05-26 23:46:42 -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 90f0f96f13 Fix those pesky tests 2023-03-26 23:34:17 -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 ecf94d36da Removed the keyword generator
It didn't really work, added a bunch to the overall file size, and computer-generated keywords just won't compare to human created ones, unless you're to use AI or a particularly advanced algorithm, which I feel is outside the scope of the project.

I've left the class in place, so if needed, it'll be really easy to add it back
2023-01-19 18:01:03 -08:00
Belle Aerni cbb978ccad AntConfig::saveConfig verify primary keys exist
Before saving the new config, verify that the config appears to be complete by checking for the primary keys in the array
2023-01-17 12:38:38 -08:00
Belle Aerni 4386451516 Added a test for AntTools::repairURL 2023-01-15 12:42:37 -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 a2f8c3617a Slightly cleanup auth + enable CGIPassAuth
Should hopefully fix any issues with CGI servers.
Also renamed the 'SiteInfo' config key to 'siteInfo' to follow the naming scheme for everything else
2023-01-11 19:30:34 -08:00
Belle Aerni 55e20d3f25 Update CMSTest.php 2023-01-09 10:55:34 -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 37a0f2ffcd Make testMarkdownIsFast much stricter
Now it runs 10 times and averages the time spent, it needs to be less than 0.015 seconds
2023-01-09 10:15:50 -08:00
Belle Aerni 1f4b40a787 Fix assertion 2023-01-09 01:09:11 -08:00
Belle Aerni 2acfc2d50d And added some more 2023-01-09 01:05:24 -08:00
Belle Aerni 5df8872a62 Fix AntTools::repairFilePath 2023-01-09 00:32:49 -08:00
Belle Aerni 22efe315c4 More unit tests 2023-01-09 00:26:30 -08:00
Belle Aerni e09d4ca60d Experimenting with unit tests 2023-01-08 23:43:17 -08:00