Commit graph

18 commits

Author SHA1 Message Date
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 25e1ef9434 Started creating templates for the admin plugin
Also, replaced the old <!--AntCMS-SiteLink--> with a new filter called absUrl, which can be used to convert any link to an absolute URL by adding the base site URL
2023-02-12 17:02:07 -08:00
Belle Aerni af375a5499 Code styling /w Rector 2023-01-25 22:08:19 -08:00
Belle Aerni e1667b6374 Use actual twig variables for the page body
Replaces <!--AntCMS-Body--> with {{ AntCMSBody | raw }}
2023-01-25 21:32:38 -08:00
Belle Aerni 95ed5059f0 Cleaned up the code a bit 2023-01-24 17:48:40 -08:00
Belle Aerni 7ea9cb2e5d Some fixes to the admin plugin 2023-01-24 17:22:12 -08:00
Belle Aerni a3039f10ed Fixed the page editor after recent page list gen changes
This part of the plugin hadn't been setup to handle the new paths that were being generated.
2023-01-20 20:39:09 -08:00
Belle Aerni 97e6a8a4e6 Make renderWithTiwg a static function
There's zero need to create a new instance of the class before calling it, so this removes a very small amount of overhead, but more importantly removes the need to create and define a new class of it each time, which makes the code very slightly cleaner
2023-01-19 15:07:15 -08:00
Belle Aerni f388c99647 Added the ability to toggle page visibility 2023-01-17 19:23:48 -08:00
Belle Aerni 0eca5dd3e1 Admin Plugin: added the ability to delete pages 2023-01-17 18:54:44 -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 325221f527 Quick run with Rector 2023-01-12 00:20:13 -08:00
Belle Aerni 7adb5d51a6 Added missing type hints, bumped PHPStan to level 6 2023-01-10 18:20:24 -08:00
Belle Aerni c15bf1f449 Refactor AntConfig::currentConfig 2023-01-10 17:24:30 -08:00
Belle Aerni cb0a1917a9 Update admin plugin to render with twig 2023-01-10 00:26:05 -08:00
Belle Aerni 6d3f8a3da1 Admin plugin : added create page option
Also introduced AntTools::repairFilePath
2023-01-08 16:53:58 -08:00
Belle Aerni 7739b2875d + real time markdown preview
Also created admin plugin templates for the Bootstrap theme
2023-01-08 15:38:25 -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