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

TASK: remove plow-js and refactor build stack #75

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

markusguenther
Copy link

@markusguenther markusguenther commented Oct 4, 2024

Since we changed the build stack in the Neos-UI to esbuild we are able to use the optional chaining (?.) operator in JavaScript. As the modern JavaScript is pretty powerful, we don’t need the helper methods from the plow-js library anymore.

The newer Neos versions also have the new feature to resize the left bar with the content and document tree. So the flatnav containers should also be resizable. This PR removes plow-js and therefore we get rid of the error messages in the console. We also use now esbuild with CSS modules to build the module assets.

With this change, we also lower the external dependencies.

@lorenzulrich
Copy link
Collaborator

@markusguenther Thanks for this work! Does this change anything related to Neos dependencies?
https://github.com/psmb/Psmb.FlatNav/blob/master/composer.json#L6C1-L8C1
If so, I suggest we adjust the constraints and release a new major (1.0.0).

@markusguenther
Copy link
Author

Thanks @lorenzulrich as we have transpiled assets, we can use the package also with older Neos Instances. I tried it with Neos 7.3 and Neos 8.0 and it works.

But when you want to name it 1.0 I am also fine with that :)

flatnav-neos73.1.mp4

@markusguenther
Copy link
Author

Maybe found a bug with scrolling in div containers. 🙈

@lorenzulrich
Copy link
Collaborator

Maybe found a bug with scrolling in div containers. 🙈

@markusguenther What's the status on this? Is there a bug or not? If not, I will merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants