Skip to content

Commit

Permalink
feature #5715 Expose javascript App class as window object. See #5707.…
Browse files Browse the repository at this point in the history
… (raress96)

This PR was merged into the 4.x branch.

Discussion
----------

Expose javascript App class as window object. See #5707.

Fixes #5707

PS: I used node 18.16.0 and Yarn 1.22 to build the assets. Even without the change I made, the `public/app` file was still changed when I did an initial build, not sure if they weren't built properly before or if my setup differs from what was used.

Commits
-------

4248018 Expose javascript App class as window object. See #5707.
  • Loading branch information
javiereguiluz committed Apr 18, 2023
2 parents 4866d5e + 4248018 commit bf9499d
Show file tree
Hide file tree
Showing 7 changed files with 293 additions and 296 deletions.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {toggleVisibilityClasses} from "./helpers";
window.bootstrap = bootstrap;

document.addEventListener('DOMContentLoaded', () => {
new App();
window.EasyAdminApp = new App();
});

class App {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/Resources/public/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"entrypoints": {
"app": {
"css": [
"/app.8b66671c.css",
"/app.8b66671c.rtl.css"
"/app.a444d0a8.css",
"/app.a444d0a8.rtl.css"
],
"js": [
"/app.3f8ee14e.js"
"/app.66ec07ca.js"
]
},
"form": {
Expand Down
565 changes: 281 additions & 284 deletions src/Resources/public/manifest.json

Large diffs are not rendered by default.

0 comments on commit bf9499d

Please sign in to comment.