Belle Aerni
8d9e894af8
~ 50% reduction in the time to render a page ( #49 )
2023-06-19 16:18:49 -07:00
dependabot[bot]
d920b26f52
Bump antcms/antloader from 2.0.0 to 2.0.1 ( #47 )
...
Bumps [antcms/antloader](https://github.com/AntCMS-org/AntLoader ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/AntCMS-org/AntLoader/releases )
- [Commits](https://github.com/AntCMS-org/AntLoader/compare/2.0.0...2.0.1 )
---
updated-dependencies:
- dependency-name: antcms/antloader
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 19:40:17 -07:00
dependabot[bot]
ccf05911ef
Bump twig/twig from 3.6.0 to 3.6.1 ( #48 )
...
Bumps [twig/twig](https://github.com/twigphp/Twig ) from 3.6.0 to 3.6.1.
- [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG )
- [Commits](https://github.com/twigphp/Twig/compare/v3.6.0...v3.6.1 )
---
updated-dependencies:
- dependency-name: twig/twig
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 19:40:06 -07:00
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
945881365e
Implement per-page template functionality ( #45 )
...
Can be enabled by adding "Template: templatename" to a file header.
Then AntCMS will attempt to load the associated template from the "Templates" directory of your current theme
2023-05-27 00:24:28 -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
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
dependabot[bot]
fa87852dc5
Bump embed/embed from 4.4.7 to 4.4.8 ( #43 )
...
Bumps [embed/embed](https://github.com/oscarotero/Embed ) from 4.4.7 to 4.4.8.
- [Release notes](https://github.com/oscarotero/Embed/releases )
- [Changelog](https://github.com/oscarotero/Embed/blob/master/CHANGELOG.md )
- [Commits](https://github.com/oscarotero/Embed/compare/v4.4.7...v4.4.8 )
---
updated-dependencies:
- dependency-name: embed/embed
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-23 02:52:04 -07:00
Belle Aerni
d03ec564f6
Remove AntKeywords, minor formatting changes
2023-05-13 13:08:33 -07:00
dependabot[bot]
95c2774222
Bump antcms/antloader from 1.0.1 to 1.0.2 ( #41 )
...
Bumps [antcms/antloader](https://github.com/AntCMS-org/AntLoader ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/AntCMS-org/AntLoader/releases )
- [Commits](https://github.com/AntCMS-org/AntLoader/compare/1.0.1...1.0.2 )
---
updated-dependencies:
- dependency-name: antcms/antloader
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-09 19:22:41 -07:00
dependabot[bot]
18e83c915a
Bump antcms/antloader from 1.0.0 to 1.0.1 ( #40 )
...
Bumps [antcms/antloader](https://github.com/AntCMS-org/AntLoader ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/AntCMS-org/AntLoader/releases )
- [Commits](https://github.com/AntCMS-org/AntLoader/compare/1.0.0...1.0.1 )
---
updated-dependencies:
- dependency-name: antcms/antloader
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-07 19:15:14 -07:00
Belle Aerni
e01a00d638
Update dependabot.yml
2023-05-04 19:41:13 -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
dependabot[bot]
e6a59c0b16
Bump twig/twig from 3.5.1 to 3.6.0 ( #37 )
...
Bumps [twig/twig](https://github.com/twigphp/Twig ) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/twigphp/Twig/releases )
- [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG )
- [Commits](https://github.com/twigphp/Twig/compare/v3.5.1...v3.6.0 )
---
updated-dependencies:
- dependency-name: twig/twig
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 07:57:30 -07:00
Belle Aerni
a58113087f
Fix PHPStan action
2023-05-03 18:37:53 -07:00
dependabot[bot]
3239a19245
Bump tailwindcss from 3.3.1 to 3.3.2 ( #35 )
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.3.2/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.3.1...v3.3.2 )
---
updated-dependencies:
- dependency-name: tailwindcss
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 19:09:08 -07:00
Belle Aerni
480ab7185d
Small bugfix
2023-04-25 14:11:58 -07:00
dependabot[bot]
2e737545ad
Bump nyholm/psr7 from 1.6.1 to 1.7.0 ( #34 )
...
Bumps [nyholm/psr7](https://github.com/Nyholm/psr7 ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/Nyholm/psr7/releases )
- [Changelog](https://github.com/Nyholm/psr7/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Nyholm/psr7/compare/1.6.1...1.7.0 )
---
updated-dependencies:
- dependency-name: nyholm/psr7
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 00:21:35 -07:00
dependabot[bot]
79eef0aa46
Bump nyholm/psr7 from 1.6.0 to 1.6.1 ( #33 )
...
Bumps [nyholm/psr7](https://github.com/Nyholm/psr7 ) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/Nyholm/psr7/releases )
- [Changelog](https://github.com/Nyholm/psr7/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Nyholm/psr7/compare/1.6.0...1.6.1 )
---
updated-dependencies:
- dependency-name: nyholm/psr7
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 19:59:52 -07:00
dependabot[bot]
0cff3b92df
Bump nyholm/psr7 from 1.5.1 to 1.6.0 ( #32 )
...
Bumps [nyholm/psr7](https://github.com/Nyholm/psr7 ) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/Nyholm/psr7/releases )
- [Changelog](https://github.com/Nyholm/psr7/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Nyholm/psr7/compare/1.5.1...1.6.0 )
---
updated-dependencies:
- dependency-name: nyholm/psr7
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-09 20:00:49 -07:00
Belle Aerni
8e018600a5
Minor, but important improvements
2023-04-01 19:30:12 -07:00
Belle Aerni
0663fbc604
Incorporate TinyZoom.JS
2023-03-30 23:01:08 -07:00
dependabot[bot]
c084208db6
Bump tailwindcss from 3.3.0 to 3.3.1 ( #31 )
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.3.1/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.3.0...v3.3.1 )
---
updated-dependencies:
- dependency-name: tailwindcss
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 19:10:58 -07:00
Belle Aerni
1770d5376a
Minor tweak
2023-03-30 17:02:12 -07:00
dependabot[bot]
226d100673
Bump tailwindcss from 3.2.7 to 3.3.0 ( #30 )
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.2.7 to 3.3.0.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.2.7...v3.3.0 )
---
updated-dependencies:
- dependency-name: tailwindcss
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 19:15:23 -07:00
Belle Aerni
0e252133e2
Cleanly handle no default attributes being set
2023-03-26 23:40:02 -07:00
Belle Aerni
90f0f96f13
Fix those pesky tests
2023-03-26 23:34:17 -07:00
Belle Aerni
70ff0a106f
Per-theme config, default attributes, and bump BS ver
2023-03-26 23:29:17 -07:00
dependabot[bot]
acb00af6f7
Bump league/commonmark from 2.3.9 to 2.4.0 ( #29 )
...
Bumps [league/commonmark](https://github.com/thephpleague/commonmark ) from 2.3.9 to 2.4.0.
- [Release notes](https://github.com/thephpleague/commonmark/releases )
- [Changelog](https://github.com/thephpleague/commonmark/blob/2.4/CHANGELOG.md )
- [Commits](https://github.com/thephpleague/commonmark/compare/2.3.9...2.4.0 )
---
updated-dependencies:
- dependency-name: league/commonmark
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-26 19:29:32 -07:00
Belle Aerni
61fa0fc533
Fix file name
2023-03-21 13:16:53 -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
cba9f71f78
Lazy load images
2023-02-25 04:32:07 -08:00
dependabot[bot]
404c093ccb
Bump tailwindcss from 3.2.6 to 3.2.7 ( #25 )
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.2.6 to 3.2.7.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.2.6...v3.2.7 )
---
updated-dependencies:
- dependency-name: tailwindcss
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-16 18:10:17 -08:00
dependabot[bot]
a653154f85
Bump league/commonmark from 2.3.8 to 2.3.9 ( #24 )
...
Bumps [league/commonmark](https://github.com/thephpleague/commonmark ) from 2.3.8 to 2.3.9.
- [Release notes](https://github.com/thephpleague/commonmark/releases )
- [Changelog](https://github.com/thephpleague/commonmark/blob/2.3/CHANGELOG.md )
- [Commits](https://github.com/thephpleague/commonmark/compare/2.3.8...2.3.9 )
---
updated-dependencies:
- dependency-name: league/commonmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 18:06:48 -08:00
Belle Aerni
d08d136990
Implement a basic session expiration
...
It's rudimentary, but this should ensure that people will need to re-authenticate after closing their browser session
2023-02-12 19:41:52 -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
94f251fc3f
Remove the version from package.json
...
AntCMS hasn't even had a release yet, so that version number is meaningless
2023-02-12 15:50:26 -08:00
dependabot[bot]
29ef7ec779
Bump tailwindcss from 3.2.4 to 3.2.6 ( #22 )
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.2.4 to 3.2.6.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.2.4...v3.2.6 )
---
updated-dependencies:
- dependency-name: tailwindcss
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 17:45:46 -08:00
dependabot[bot]
d262f22c98
Bump twig/twig from 3.5.0 to 3.5.1 ( #23 )
...
Bumps [twig/twig](https://github.com/twigphp/Twig ) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/twigphp/Twig/releases )
- [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG )
- [Commits](https://github.com/twigphp/Twig/compare/v3.5.0...v3.5.1 )
---
updated-dependencies:
- dependency-name: twig/twig
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 17:45:04 -08:00
Belle Aerni
3ce0896af5
Created a lighttpd config
...
Tested and working :)
2023-02-06 18:34:34 -08:00
Belle Aerni
9eb24fee30
First try to render exceptions using twig
2023-01-28 20:54:53 -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
e2ca10d51d
Made exception rendering more flexible
2023-01-25 18:45:36 -08:00
Belle Aerni
95ed5059f0
Cleaned up the code a bit
2023-01-24 17:48:40 -08:00
dependabot[bot]
686caf149b
Bump symfony/yaml from 6.0.17 to 6.0.19 ( #21 )
...
Bumps [symfony/yaml](https://github.com/symfony/yaml ) from 6.0.17 to 6.0.19.
- [Release notes](https://github.com/symfony/yaml/releases )
- [Changelog](https://github.com/symfony/yaml/blob/6.2/CHANGELOG.md )
- [Commits](https://github.com/symfony/yaml/compare/v6.0.17...v6.0.19 )
---
updated-dependencies:
- dependency-name: symfony/yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-24 17:22:43 -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
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
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