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
Belle Aerni
ea7f3ac65b
Micro-optimization to the createCacheKey function
...
Testing showed the in_array function made it overall slower than simply calling MD4. Using a define, I was able to get the overhead down to virtually nothing:
PHP 8.2:
Execution time for MD4: 0.064558029174805 seconds
Execution time for XXH128: 0.015785932540894 seconds
Execution time for Check: 0.0119788646698 seconds
PHP 8.1:
Execution time for MD4: 0.034939050674438 seconds
Execution time for XXH128: 0.0058550834655762 seconds
Execution time for Check: 0.0062451362609863 seconds
2023-01-19 01:41:17 -08:00
Belle Aerni
bf3b425c8d
MD5 -> MD4
2023-01-18 23:11:18 -08:00
Belle Aerni
612adb5a17
Revert "Use the official twig StringLoaderExtension"
...
This reverts commit b2036b765f
.
2023-01-18 22:05:50 -08:00
Belle Aerni
b2036b765f
Use the official twig StringLoaderExtension
...
Not sure how I missed the fact that this exists, but let's use it instead of an unofficial extension
2023-01-18 22:02:33 -08:00
Belle Aerni
08cfdcf460
Stip 'index' off when generating the page list
2023-01-17 20:18:13 -08:00
Belle Aerni
02e4492ecd
Improve the way the pagelist is generated
...
Now it automatically strips off the .md extension since it's unneeded, and it sorts it so that the 'index' of the site is always the first item in the array, since that dictates the order they appear in the browser
2023-01-17 19:45:59 -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
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
cdee7c8a04
Update config.php to delete all, including dirs
2023-01-16 18:05:33 -08:00
Belle Aerni
4386451516
Added a test for AntTools::repairURL
2023-01-15 12:42:37 -08:00
Belle Aerni
588811ec7a
Created a feature list doc
2023-01-14 22:45: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
81824132fe
Merge pull request #18 from AntCMS-org/tests
...
Run unit tests on PHP 8.0, 8.1, and 8.2
2023-01-14 15:52:31 -08:00
Belle Aerni
fcd9e31af9
Run unit tests on PHP 8.0, 8.1, and 8.2
2023-01-14 15:50:05 -08:00
Belle Aerni
c90823afbe
Default to having keyword generation off
2023-01-14 15:37:57 -08:00
Belle Aerni
5669e8a429
Merge pull request #17 from AntCMS-org/mdextensions
...
Adding some new markdown extensions
2023-01-14 03:31:19 -08:00
Belle Aerni
8ed69831ee
Check for cache before setting up the MD parser
2023-01-14 03:04:56 -08:00
Belle Aerni
b8956614b0
Add nyholm/psr7
2023-01-14 02:44:13 -08:00
Belle Aerni
c5b999294b
Added embed extension for markdown
2023-01-14 02:38:20 -08:00
Belle Aerni
3353be4920
Replaced my homebrew keyword generator
...
It now uses the one found here: https://github.com/Donatello-za/rake-php-plus
This is much better than the one I had hacked together.
Makes AntCMS a bit bigger.. but not by too much. I may end up removing the keyword generator outright, but for now I'm going to keep it.
2023-01-14 00:49:21 -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
ca54a56eaa
fix active page highlight in the Bootstrap theme
2023-01-13 01:38:07 -08:00
Belle Aerni
44de365946
Fix header regex (again)
2023-01-13 01:18:43 -08:00
Belle Aerni
4f96f5c496
Highlight the active page in the navbar
...
Closes #6
Also dropped PHPStan back down to level 5 because I decided level 6 was a bit much
2023-01-12 19:08:35 -08:00
Belle Aerni
325221f527
Quick run with Rector
2023-01-12 00:20:13 -08:00
Belle Aerni
36ab96bf8c
Added some info to composer.json
2023-01-11 21:09:36 -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
0979d4ee03
Merge pull request #12 from AntCMS-org/dependabot/composer/phpstan/phpstan-1.9.9
...
Bump phpstan/phpstan from 1.9.8 to 1.9.9
2023-01-11 17:48:16 -08:00
dependabot[bot]
ab5a46a4cd
Bump phpstan/phpstan from 1.9.8 to 1.9.9
...
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan ) from 1.9.8 to 1.9.9.
- [Release notes](https://github.com/phpstan/phpstan/releases )
- [Changelog](https://github.com/phpstan/phpstan/blob/1.10.x/CHANGELOG.md )
- [Commits](https://github.com/phpstan/phpstan/compare/1.9.8...1.9.9 )
---
updated-dependencies:
- dependency-name: phpstan/phpstan
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 01:37:41 +00:00
Belle Aerni
891012f6ff
Fixed AntCMS matching the page header multiple times
2023-01-11 14:07:39 -08:00
Belle Aerni
c513b01bad
Workaround for AntCMS trying to extract header
...
data from the body of the getting started block. Will find a fix soonish
2023-01-10 23:48:58 -08:00
Belle Aerni
584f99bac7
Created gettingstarted
2023-01-10 23:36:58 -08:00
Belle Aerni
016103f7cd
Updated readme, moved minimum PHP ver to 8.0
2023-01-10 18:50:10 -08:00