chore: small chore changes
Some checks reported warnings
/ phplint (push) Has been cancelled

This commit is contained in:
David Bailey 2025-02-13 10:46:09 +01:00
parent 9870967093
commit 77b3f858d1
3 changed files with 58 additions and 51 deletions

View file

@ -11,7 +11,8 @@
"conventionalCommits.scopes": [ "conventionalCommits.scopes": [
"search", "search",
"templates", "templates",
"css" "css",
"database"
] ]
} }
} }

97
www/composer.lock generated
View file

@ -184,16 +184,16 @@
}, },
{ {
"name": "laminas/laminas-escaper", "name": "laminas/laminas-escaper",
"version": "2.14.0", "version": "2.15.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laminas/laminas-escaper.git", "url": "https://github.com/laminas/laminas-escaper.git",
"reference": "0f7cb975f4443cf22f33408925c231225cfba8cb" "reference": "c612b0488ae486284c39885efca494c180f16351"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/0f7cb975f4443cf22f33408925c231225cfba8cb", "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/c612b0488ae486284c39885efca494c180f16351",
"reference": "0f7cb975f4443cf22f33408925c231225cfba8cb", "reference": "c612b0488ae486284c39885efca494c180f16351",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -205,12 +205,12 @@
"zendframework/zend-escaper": "*" "zendframework/zend-escaper": "*"
}, },
"require-dev": { "require-dev": {
"infection/infection": "^0.27.9", "infection/infection": "^0.27.11",
"laminas/laminas-coding-standard": "~3.0.0", "laminas/laminas-coding-standard": "~3.0.1",
"maglnet/composer-require-checker": "^3.8.0", "maglnet/composer-require-checker": "^3.8.0",
"phpunit/phpunit": "^9.6.16", "phpunit/phpunit": "^9.6.22",
"psalm/plugin-phpunit": "^0.19.0", "psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^5.21.1" "vimeo/psalm": "^5.26.1"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -242,7 +242,7 @@
"type": "community_bridge" "type": "community_bridge"
} }
], ],
"time": "2024-10-24T10:12:53+00:00" "time": "2024-12-17T19:39:54+00:00"
}, },
{ {
"name": "laminas/laminas-feed", "name": "laminas/laminas-feed",
@ -519,16 +519,16 @@
}, },
{ {
"name": "league/commonmark", "name": "league/commonmark",
"version": "2.5.3", "version": "2.6.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/commonmark.git", "url": "https://github.com/thephpleague/commonmark.git",
"reference": "b650144166dfa7703e62a22e493b853b58d874b0" "reference": "d990688c91cedfb69753ffc2512727ec646df2ad"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/b650144166dfa7703e62a22e493b853b58d874b0", "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d990688c91cedfb69753ffc2512727ec646df2ad",
"reference": "b650144166dfa7703e62a22e493b853b58d874b0", "reference": "d990688c91cedfb69753ffc2512727ec646df2ad",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -553,8 +553,9 @@
"phpstan/phpstan": "^1.8.2", "phpstan/phpstan": "^1.8.2",
"phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0",
"scrutinizer/ocular": "^1.8.1", "scrutinizer/ocular": "^1.8.1",
"symfony/finder": "^5.3 | ^6.0 || ^7.0", "symfony/finder": "^5.3 | ^6.0 | ^7.0",
"symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 || ^7.0", "symfony/process": "^5.4 | ^6.0 | ^7.0",
"symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0",
"unleashedtech/php-coding-standard": "^3.1.1", "unleashedtech/php-coding-standard": "^3.1.1",
"vimeo/psalm": "^4.24.0 || ^5.0.0" "vimeo/psalm": "^4.24.0 || ^5.0.0"
}, },
@ -564,7 +565,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "2.6-dev" "dev-main": "2.7-dev"
} }
}, },
"autoload": { "autoload": {
@ -621,7 +622,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-08-16T11:46:16+00:00" "time": "2024-12-29T14:10:59+00:00"
}, },
{ {
"name": "league/config", "name": "league/config",
@ -1062,12 +1063,12 @@
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"thanks": {
"url": "https://github.com/symfony/contracts",
"name": "symfony/contracts"
},
"branch-alias": { "branch-alias": {
"dev-main": "3.5-dev" "dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
} }
}, },
"autoload": { "autoload": {
@ -1136,8 +1137,8 @@
"type": "library", "type": "library",
"extra": { "extra": {
"thanks": { "thanks": {
"name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill",
"url": "https://github.com/symfony/polyfill" "name": "symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -1215,8 +1216,8 @@
"type": "library", "type": "library",
"extra": { "extra": {
"thanks": { "thanks": {
"name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill",
"url": "https://github.com/symfony/polyfill" "name": "symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -1289,8 +1290,8 @@
"type": "library", "type": "library",
"extra": { "extra": {
"thanks": { "thanks": {
"name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill",
"url": "https://github.com/symfony/polyfill" "name": "symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -1369,8 +1370,8 @@
"type": "library", "type": "library",
"extra": { "extra": {
"thanks": { "thanks": {
"name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill",
"url": "https://github.com/symfony/polyfill" "name": "symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -1427,16 +1428,16 @@
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
"version": "v7.2.0", "version": "v7.2.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/yaml.git", "url": "https://github.com/symfony/yaml.git",
"reference": "099581e99f557e9f16b43c5916c26380b54abb22" "reference": "ac238f173df0c9c1120f862d0f599e17535a87ec"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/099581e99f557e9f16b43c5916c26380b54abb22", "url": "https://api.github.com/repos/symfony/yaml/zipball/ac238f173df0c9c1120f862d0f599e17535a87ec",
"reference": "099581e99f557e9f16b43c5916c26380b54abb22", "reference": "ac238f173df0c9c1120f862d0f599e17535a87ec",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1479,7 +1480,7 @@
"description": "Loads and dumps YAML files", "description": "Loads and dumps YAML files",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/yaml/tree/v7.2.0" "source": "https://github.com/symfony/yaml/tree/v7.2.3"
}, },
"funding": [ "funding": [
{ {
@ -1495,20 +1496,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-10-23T06:56:12+00:00" "time": "2025-01-07T12:55:42+00:00"
}, },
{ {
"name": "twig/markdown-extra", "name": "twig/markdown-extra",
"version": "v3.16.0", "version": "v3.19.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/twigphp/markdown-extra.git", "url": "https://github.com/twigphp/markdown-extra.git",
"reference": "25f23c02936f8c7157a8413154c06a462c9c20d3" "reference": "6c464fc3e016ada9f17be4511daf2576ba4085c5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/twigphp/markdown-extra/zipball/25f23c02936f8c7157a8413154c06a462c9c20d3", "url": "https://api.github.com/repos/twigphp/markdown-extra/zipball/6c464fc3e016ada9f17be4511daf2576ba4085c5",
"reference": "25f23c02936f8c7157a8413154c06a462c9c20d3", "reference": "6c464fc3e016ada9f17be4511daf2576ba4085c5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1517,7 +1518,7 @@
"twig/twig": "^3.13|^4.0" "twig/twig": "^3.13|^4.0"
}, },
"require-dev": { "require-dev": {
"erusev/parsedown": "^1.7", "erusev/parsedown": "dev-master as 1.x-dev",
"league/commonmark": "^1.0|^2.0", "league/commonmark": "^1.0|^2.0",
"league/html-to-markdown": "^4.8|^5.0", "league/html-to-markdown": "^4.8|^5.0",
"michelf/php-markdown": "^1.8|^2.0", "michelf/php-markdown": "^1.8|^2.0",
@ -1555,7 +1556,7 @@
"twig" "twig"
], ],
"support": { "support": {
"source": "https://github.com/twigphp/markdown-extra/tree/v3.16.0" "source": "https://github.com/twigphp/markdown-extra/tree/v3.19.0"
}, },
"funding": [ "funding": [
{ {
@ -1567,20 +1568,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-09-03T20:17:35+00:00" "time": "2025-01-19T15:54:05+00:00"
}, },
{ {
"name": "twig/twig", "name": "twig/twig",
"version": "v3.16.0", "version": "v3.19.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/twigphp/Twig.git", "url": "https://github.com/twigphp/Twig.git",
"reference": "475ad2dc97d65d8631393e721e7e44fb544f0561" "reference": "d4f8c2b86374f08efc859323dbcd95c590f7124e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/475ad2dc97d65d8631393e721e7e44fb544f0561", "url": "https://api.github.com/repos/twigphp/Twig/zipball/d4f8c2b86374f08efc859323dbcd95c590f7124e",
"reference": "475ad2dc97d65d8631393e721e7e44fb544f0561", "reference": "d4f8c2b86374f08efc859323dbcd95c590f7124e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1635,7 +1636,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/twigphp/Twig/issues", "issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v3.16.0" "source": "https://github.com/twigphp/Twig/tree/v3.19.0"
}, },
"funding": [ "funding": [
{ {
@ -1647,7 +1648,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-11-29T08:27:05+00:00" "time": "2025-01-29T07:06:14+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],

View file

@ -42,7 +42,9 @@
<ul> <ul>
<li>Type normal words to search for post title, brief descriptions and main content</li> <li>Type normal words to search for post title, brief descriptions and main content</li>
<li>Use the syntax <code>tags:tag_a,tag_b,...</code> to search for specific tags</li> <li>Use the syntax <code>tags:tag_a,tag_b,...</code> to search for specific tags</li>
<li>Use <code>path:/some/example/path</code> to limit search to a specific path </li>
<li>Use the type selector to more precisely look for images, blogs, etc.</li> <li>Use the type selector to more precisely look for images, blogs, etc.</li>
<li>Annoy the dragons to implement more metadata search tags</li>
</ul> </ul>
{% elseif display_type == 'image' %} {% elseif display_type == 'image' %}
@ -61,14 +63,17 @@
{% endfor %} {% endfor %}
</ul> </ul>
{%elseif display_type == 'no results' %} {%elseif display_type == 'no results' %}
<h4>How sad. There are no images yet... What a real shame :c </h4> <h4>How sad. There are no search results here... :c </h4>
{%else%} {%else%}
<ul class="dergen_search_result_listing"> <ul class="dergen_search_result_listing">
{% for post in search_results %} {% for post in search_results %}
<li> <li>
<ul class="_details"> <ul class="_details">
<li class="_path_details"> <span>Score: {{post.search_score|round(2)}}</span> <span>Path: {{post.path}}</span> </li> <li class="_path_details"> <span>Score: {{post.search_score|round(2)}}</span> <span>Path: {{post.path}}</span> </li>
<li class="_title"> <a href="{{post.url}}" target="_blank"> <li class="_title">
<a href="{{post.url}}#:~:text={{ search_query.user_input|url_encode }}"
target="_blank"
rel="noopener">
{{post.title}} </a> {{post.title}} </a>
</li> </li>
<li class="_brief"> {{post.brief}} </li> <li class="_brief"> {{post.brief}} </li>