Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak JS code and rebuild assets #1445

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions assets/js/doclinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function() {
}

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

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

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

// Wraps Twig's functions
[...templateCode.querySelectorAll('.hljs-template-variable > .hljs-name')].forEach((elt) => {
templateCode.querySelectorAll('.hljs-template-variable > .hljs-name').forEach((elt) => {
const func = elt.textContent;
const url = 'https://twig.symfony.com/doc/3.x/functions/' + func + '.html#' + func;
elt.innerHTML = anchor(url, func);
Expand Down
8,942 changes: 8,942 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions public/build/384.af623ff4.js

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/41.64983f8e.js

This file was deleted.

24 changes: 0 additions & 24 deletions public/build/41.64983f8e.js.LICENSE.txt

This file was deleted.

2 changes: 2 additions & 0 deletions public/build/608.626b1a4f.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions public/build/608.626b1a4f.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/
1 change: 0 additions & 1 deletion public/build/630.ed629036.js

This file was deleted.

2 changes: 2 additions & 0 deletions public/build/673.a8a6034c.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/build/691.00474683.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions public/build/928.0e3059b2.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/admin.2e00d7c6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/build/admin.747eb0c9.js

This file was deleted.

1 change: 0 additions & 1 deletion public/build/app.09886d85.js

This file was deleted.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/build/app.d0240a16.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/build/app.d0240a16.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
36 changes: 18 additions & 18 deletions public/build/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
"entrypoints": {
"app": {
"js": [
"/build/runtime.5feae901.js",
"/build/41.64983f8e.js",
"/build/928.0e3059b2.js",
"/build/app.09886d85.js"
"/build/runtime.c56be18b.js",
"/build/608.626b1a4f.js",
"/build/691.00474683.js",
"/build/app.d0240a16.js"
],
"css": [
"/build/928.76194c5a.css",
"/build/app.3a149582.css"
"/build/691.5d22d6da.css",
"/build/app.c5f58d6f.css"
]
},
"admin": {
"js": [
"/build/runtime.5feae901.js",
"/build/41.64983f8e.js",
"/build/384.af623ff4.js",
"/build/admin.747eb0c9.js"
"/build/runtime.c56be18b.js",
"/build/608.626b1a4f.js",
"/build/673.a8a6034c.js",
"/build/admin.2e00d7c6.js"
],
"css": [
"/build/admin.2b1a6c83.css"
]
}
},
"integrity": {
"/build/runtime.5feae901.js": "sha384-Dj9HEwBUNZIrIUOJJ4vOrf8e+X7fhJTYGYb0F/RJLrIo5qMTyh/mBApfQI4FmH8F",
"/build/41.64983f8e.js": "sha384-XfOM8D6kvkEmauUMaczMxByKTBpbb9/aDqt1hPMgWDJh1X2ZQu5rIyRn3Ipx+rmn",
"/build/928.0e3059b2.js": "sha384-KjnlXhwQ0i93knq1SMzG1q6DBwLVJszQEwEQQhCSkiWbtamCjJIwvE/EQf+Sj7tL",
"/build/app.09886d85.js": "sha384-4l0f6J9YNcH3yqxVehcZCX4fNgWG3y3lvsGqK0kxdMJvcFUZwtauRSDYlL4PBLCJ",
"/build/928.76194c5a.css": "sha384-PoA8WLGz/za3OOW7qjoDiv5f8mBVtREO35Z70PFH8PVIdu1+nWVUEetA6Q1o6DhV",
"/build/app.3a149582.css": "sha384-nfrD0DNMpZazGQQAucFPYcE1VsR4Gg5Wut28sAVfEpTl6T5xVyF5D0qoc7GtumrW",
"/build/384.af623ff4.js": "sha384-DTkf7hVvZ08YUepoH5wzP+thJm6maRzLe8KxUgIc2OajdJkoSDct0pJMEPYcEEeF",
"/build/admin.747eb0c9.js": "sha384-vDe3FhM5HnWbM4nEdbmSv8AB5n/PfPJv0y0Goloka7w6jppc6di5LpKD1A252aFg",
"/build/runtime.c56be18b.js": "sha384-Cdl61iQY709LV5xk4fjbcXyComo/jpLrd2Q4lyCXTBFRFq4AqQsmJkF6DyKpj9tr",
"/build/608.626b1a4f.js": "sha384-E2b89OD+49Lsk6EXg/KCDPqwEd43B8Qjc8SdqMEdGdS7LQyDTw0KXV/PjfA1/njZ",
"/build/691.00474683.js": "sha384-IebcSy563+wytSYXkK+fxDGaR3Q7j+zmBrvadQzX3tHevDTxSKFhv29BMJkywEAS",
"/build/app.d0240a16.js": "sha384-4BU8VUhz6QMUbpucsazGKDfz6MYAEhLm/BcTFKYqnSr2iuhPJbnv8JDWbray+BYU",
"/build/691.5d22d6da.css": "sha384-Aj2DvjS/WxFSIf9uLVnmH9Dw6pixHWGKWrOnGxgr2eRW82BIPnXYihtUQyUMQmGm",
"/build/app.c5f58d6f.css": "sha384-eix1YtX/gerBqZXPGsQgWRRLic+Sh45PZhcoOx6y/GOnXvR3RxMTmv0vs3ITbfzo",
"/build/673.a8a6034c.js": "sha384-hsruohAAUG973CEl8FPGEzptQtqKi2m4i5/f7AK0WdjVA2HABqo4PDIl5F0ADoI2",
"/build/admin.2e00d7c6.js": "sha384-YdDZ6+TI8dzJ9EiFd0aE8XviYeBOqUkEs1AL2l+Xxwyr8bU/KuUdxdGefgKpJIYq",
"/build/admin.2b1a6c83.css": "sha384-ikQwASTRPK0sjWtW//EXsUjqkjNxc2Yndtt0m5a/I/qE+qEoikXP5ailZKDaqtN9"
}
}
17 changes: 8 additions & 9 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"build/app.css": "/build/app.3a149582.css",
"build/app.js": "/build/app.09886d85.js",
"build/app.css": "/build/app.c5f58d6f.css",
"build/app.js": "/build/app.d0240a16.js",
"build/admin.css": "/build/admin.2b1a6c83.css",
"build/admin.js": "/build/admin.747eb0c9.js",
"build/runtime.js": "/build/runtime.5feae901.js",
"build/admin.js": "/build/admin.2e00d7c6.js",
"build/runtime.js": "/build/runtime.c56be18b.js",
"build/206.b003fa5f.js": "/build/206.b003fa5f.js",
"build/41.64983f8e.js": "/build/41.64983f8e.js",
"build/928.76194c5a.css": "/build/928.76194c5a.css",
"build/928.0e3059b2.js": "/build/928.0e3059b2.js",
"build/630.ed629036.js": "/build/630.ed629036.js",
"build/384.af623ff4.js": "/build/384.af623ff4.js",
"build/608.626b1a4f.js": "/build/608.626b1a4f.js",
"build/691.5d22d6da.css": "/build/691.5d22d6da.css",
"build/691.00474683.js": "/build/691.00474683.js",
"build/673.a8a6034c.js": "/build/673.a8a6034c.js",
"build/images/fa-solid-900.svg": "/build/images/fa-solid-900.7a8b4f13.svg",
"build/images/fa-brands-400.svg": "/build/images/fa-brands-400.2f517e09.svg",
"build/fonts/lato-normal-italic.woff": "/build/fonts/lato-normal-italic.62a9c838.woff",
Expand Down
1 change: 0 additions & 1 deletion public/build/runtime.5feae901.js

This file was deleted.

1 change: 1 addition & 0 deletions public/build/runtime.c56be18b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Encore

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

// enables and configure @babel/preset-env polyfills
Expand Down