Skip to content

Commit 6a6fe75

Browse files
committed
Tweak JS code and rebuild assets
1 parent 578246c commit 6a6fe75

25 files changed

+8998
-69
lines changed

assets/js/doclinks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function() {
2121
}
2222

2323
// Wrap Symfony Doc urls in comments
24-
[...modalElt.querySelectorAll('.hljs-comment')].forEach((commentElt) => {
24+
modalElt.querySelectorAll('.hljs-comment').forEach((commentElt) => {
2525
commentElt.innerHTML = commentElt.innerHTML.replace(/https:\/\/symfony.com\/[\w/.#-]+/g, (url) => anchor(url, url));
2626
});
2727

@@ -31,12 +31,12 @@ document.addEventListener('DOMContentLoaded', function() {
3131
'Route': 'https://symfony.com/doc/current/routing.html#creating-routes-as-attributes',
3232
'IsGranted': 'https://symfony.com/doc/current/security.html#security-securing-controller-annotations'
3333
};
34-
[...controllerCode.querySelectorAll('.hljs-meta')].forEach((elt) => {
34+
controllerCode.querySelectorAll('.hljs-meta').forEach((elt) => {
3535
elt.innerHTML = wrap(elt.textContent, attributes);
3636
});
3737

3838
// Wraps Twig's tags
39-
[...templateCode.querySelectorAll('.hljs-template-tag + .hljs-name')].forEach((elt) => {
39+
templateCode.querySelectorAll('.hljs-template-tag + .hljs-name').forEach((elt) => {
4040
const tag = elt.textContent;
4141
if ('else' === tag || tag.match(/^end/)) {
4242
return;
@@ -46,7 +46,7 @@ document.addEventListener('DOMContentLoaded', function() {
4646
});
4747

4848
// Wraps Twig's functions
49-
[...templateCode.querySelectorAll('.hljs-template-variable > .hljs-name')].forEach((elt) => {
49+
templateCode.querySelectorAll('.hljs-template-variable > .hljs-name').forEach((elt) => {
5050
const func = elt.textContent;
5151
const url = 'https://twig.symfony.com/doc/3.x/functions/' + func + '.html#' + func;
5252
elt.innerHTML = anchor(url, func);

package-lock.json

Lines changed: 8942 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/384.af623ff4.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/build/41.64983f8e.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/build/41.64983f8e.js.LICENSE.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

public/build/608.626b1a4f.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*!
2+
* jQuery JavaScript Library v3.7.1
3+
* https://jquery.com/
4+
*
5+
* Copyright OpenJS Foundation and other contributors
6+
* Released under the MIT license
7+
* https://jquery.org/license
8+
*
9+
* Date: 2023-08-28T13:37Z
10+
*/

public/build/630.ed629036.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/build/673.a8a6034c.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)