Skip to content

Commit 1f5547f

Browse files
committed
minor #1445 Tweak JS code and rebuild assets (javiereguiluz)
This PR was merged into the main branch. Discussion ---------- Tweak JS code and rebuild assets A minor tweak in the JS code updated in #1441. Also, rebuild front-end assets because in this project we embed those. In real apps, the best practice is of course to not do this ... but this Demo project is special and needs to be fully working without running any command or installing anything else. Commits ------- 6a6fe75 Tweak JS code and rebuild assets
2 parents 23ff699 + 6a6fe75 commit 1f5547f

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.

public/build/691.00474683.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.

public/build/928.76194c5a.css renamed to public/build/691.5d22d6da.css

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

public/build/928.0e3059b2.js

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

public/build/admin.2e00d7c6.js

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

public/build/admin.747eb0c9.js

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

public/build/app.09886d85.js

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

public/build/app.3a149582.css renamed to public/build/app.c5f58d6f.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/app.d0240a16.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

public/build/entrypoints.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22
"entrypoints": {
33
"app": {
44
"js": [
5-
"/build/runtime.5feae901.js",
6-
"/build/41.64983f8e.js",
7-
"/build/928.0e3059b2.js",
8-
"/build/app.09886d85.js"
5+
"/build/runtime.c56be18b.js",
6+
"/build/608.626b1a4f.js",
7+
"/build/691.00474683.js",
8+
"/build/app.d0240a16.js"
99
],
1010
"css": [
11-
"/build/928.76194c5a.css",
12-
"/build/app.3a149582.css"
11+
"/build/691.5d22d6da.css",
12+
"/build/app.c5f58d6f.css"
1313
]
1414
},
1515
"admin": {
1616
"js": [
17-
"/build/runtime.5feae901.js",
18-
"/build/41.64983f8e.js",
19-
"/build/384.af623ff4.js",
20-
"/build/admin.747eb0c9.js"
17+
"/build/runtime.c56be18b.js",
18+
"/build/608.626b1a4f.js",
19+
"/build/673.a8a6034c.js",
20+
"/build/admin.2e00d7c6.js"
2121
],
2222
"css": [
2323
"/build/admin.2b1a6c83.css"
2424
]
2525
}
2626
},
2727
"integrity": {
28-
"/build/runtime.5feae901.js": "sha384-Dj9HEwBUNZIrIUOJJ4vOrf8e+X7fhJTYGYb0F/RJLrIo5qMTyh/mBApfQI4FmH8F",
29-
"/build/41.64983f8e.js": "sha384-XfOM8D6kvkEmauUMaczMxByKTBpbb9/aDqt1hPMgWDJh1X2ZQu5rIyRn3Ipx+rmn",
30-
"/build/928.0e3059b2.js": "sha384-KjnlXhwQ0i93knq1SMzG1q6DBwLVJszQEwEQQhCSkiWbtamCjJIwvE/EQf+Sj7tL",
31-
"/build/app.09886d85.js": "sha384-4l0f6J9YNcH3yqxVehcZCX4fNgWG3y3lvsGqK0kxdMJvcFUZwtauRSDYlL4PBLCJ",
32-
"/build/928.76194c5a.css": "sha384-PoA8WLGz/za3OOW7qjoDiv5f8mBVtREO35Z70PFH8PVIdu1+nWVUEetA6Q1o6DhV",
33-
"/build/app.3a149582.css": "sha384-nfrD0DNMpZazGQQAucFPYcE1VsR4Gg5Wut28sAVfEpTl6T5xVyF5D0qoc7GtumrW",
34-
"/build/384.af623ff4.js": "sha384-DTkf7hVvZ08YUepoH5wzP+thJm6maRzLe8KxUgIc2OajdJkoSDct0pJMEPYcEEeF",
35-
"/build/admin.747eb0c9.js": "sha384-vDe3FhM5HnWbM4nEdbmSv8AB5n/PfPJv0y0Goloka7w6jppc6di5LpKD1A252aFg",
28+
"/build/runtime.c56be18b.js": "sha384-Cdl61iQY709LV5xk4fjbcXyComo/jpLrd2Q4lyCXTBFRFq4AqQsmJkF6DyKpj9tr",
29+
"/build/608.626b1a4f.js": "sha384-E2b89OD+49Lsk6EXg/KCDPqwEd43B8Qjc8SdqMEdGdS7LQyDTw0KXV/PjfA1/njZ",
30+
"/build/691.00474683.js": "sha384-IebcSy563+wytSYXkK+fxDGaR3Q7j+zmBrvadQzX3tHevDTxSKFhv29BMJkywEAS",
31+
"/build/app.d0240a16.js": "sha384-4BU8VUhz6QMUbpucsazGKDfz6MYAEhLm/BcTFKYqnSr2iuhPJbnv8JDWbray+BYU",
32+
"/build/691.5d22d6da.css": "sha384-Aj2DvjS/WxFSIf9uLVnmH9Dw6pixHWGKWrOnGxgr2eRW82BIPnXYihtUQyUMQmGm",
33+
"/build/app.c5f58d6f.css": "sha384-eix1YtX/gerBqZXPGsQgWRRLic+Sh45PZhcoOx6y/GOnXvR3RxMTmv0vs3ITbfzo",
34+
"/build/673.a8a6034c.js": "sha384-hsruohAAUG973CEl8FPGEzptQtqKi2m4i5/f7AK0WdjVA2HABqo4PDIl5F0ADoI2",
35+
"/build/admin.2e00d7c6.js": "sha384-YdDZ6+TI8dzJ9EiFd0aE8XviYeBOqUkEs1AL2l+Xxwyr8bU/KuUdxdGefgKpJIYq",
3636
"/build/admin.2b1a6c83.css": "sha384-ikQwASTRPK0sjWtW//EXsUjqkjNxc2Yndtt0m5a/I/qE+qEoikXP5ailZKDaqtN9"
3737
}
3838
}

public/build/manifest.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
"build/app.css": "/build/app.3a149582.css",
3-
"build/app.js": "/build/app.09886d85.js",
2+
"build/app.css": "/build/app.c5f58d6f.css",
3+
"build/app.js": "/build/app.d0240a16.js",
44
"build/admin.css": "/build/admin.2b1a6c83.css",
5-
"build/admin.js": "/build/admin.747eb0c9.js",
6-
"build/runtime.js": "/build/runtime.5feae901.js",
5+
"build/admin.js": "/build/admin.2e00d7c6.js",
6+
"build/runtime.js": "/build/runtime.c56be18b.js",
77
"build/206.b003fa5f.js": "/build/206.b003fa5f.js",
8-
"build/41.64983f8e.js": "/build/41.64983f8e.js",
9-
"build/928.76194c5a.css": "/build/928.76194c5a.css",
10-
"build/928.0e3059b2.js": "/build/928.0e3059b2.js",
11-
"build/630.ed629036.js": "/build/630.ed629036.js",
12-
"build/384.af623ff4.js": "/build/384.af623ff4.js",
8+
"build/608.626b1a4f.js": "/build/608.626b1a4f.js",
9+
"build/691.5d22d6da.css": "/build/691.5d22d6da.css",
10+
"build/691.00474683.js": "/build/691.00474683.js",
11+
"build/673.a8a6034c.js": "/build/673.a8a6034c.js",
1312
"build/images/fa-solid-900.svg": "/build/images/fa-solid-900.7a8b4f13.svg",
1413
"build/images/fa-brands-400.svg": "/build/images/fa-brands-400.2f517e09.svg",
1514
"build/fonts/lato-normal-italic.woff": "/build/fonts/lato-normal-italic.62a9c838.woff",

public/build/runtime.5feae901.js

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

public/build/runtime.c56be18b.js

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

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Encore
4848

4949
// configure Babel
5050
.configureBabel((config) => {
51-
config.plugins.push('@babel/plugin-proposal-class-properties');
51+
config.plugins.push('@babel/plugin-transform-class-properties');
5252
})
5353

5454
// enables and configure @babel/preset-env polyfills

0 commit comments

Comments
 (0)