-
Notifications
You must be signed in to change notification settings - Fork 17
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
Remove jQuery dependency #30
Comments
This is a good idea for sure and would reduce the overhead. jQuery is used extensively in the main module so it'd be worthwhile rewriting that functionality as well for sure! |
I've updated this to be just remove jQuery dependency. The comment about gLightbox is a useful jump-off point to save rebuilding lightbox functionality! |
Is there a short bookmarks-bar-style JS snippet with which I could test this branch? The README of feature/30-remove-jquery-dependency still imports jQuery. |
I'm afraid I'm still not much closer to that point, but I've re-worked this under a new branch of feature/convert-to-modules (which forked from feature/30-remove-jquery-dependency. I'm not sure when I'll have time to work on this again, but as soon as there's a testable version, I'll update here. Thanks for your interest! |
@chrysn I've got an updated version that is hopefully working with most functionality. I've not tested hugely, but I think I've got it working on the basics:
|
Thanks! I've tested it on viewing only (my WebDAV server is read-only), but there it rendered all directory listings well, including a bunch of exotic character cases. |
Hey @chrysn, I've made a few more changes (quite a few actually!) it should properly handle errors now and let you know what was wrong. If you have time to test, that would be great!
|
UI from the core functionality. - Rewote code and organised into ES modules. - Remove jQuery dependency (#30). - Add keyboard navigation. - Switch WebDAV test container to Alpine Linux. - Add `eslint` for code style validation. - Add `karma`/`jasmine` for testing. - Add `.babelrc`. - Add some basic unit tests. - Rework `package.json` scripts. - Add `Webpack` for building. - Remove inlined external assets to resolve as module dependencies. - Update document title on navigation - Add toasts to notify of errors (#49). - Add `.gitattributes` file to avoid CSS being counted incorrectly on GitHub. - Add `EventObject` class for handling events within the UI. - Add a check (`HEAD` request) before trying to show images, fonts, videos, audio to prevent invalid lightbox from showing up. - Update `.editorconfig`. - Add `stylelint`.
Fixed in v2.0.0! |
GLightbox does from what I can tell all the things featherlight does:
The text was updated successfully, but these errors were encountered: