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

Remove jQuery dependency #30

Closed
lil5 opened this issue Nov 23, 2018 · 8 comments
Closed

Remove jQuery dependency #30

lil5 opened this issue Nov 23, 2018 · 8 comments
Assignees
Milestone

Comments

@lil5
Copy link
Contributor

lil5 commented Nov 23, 2018

GLightbox does from what I can tell all the things featherlight does:

@dom111
Copy link
Owner

dom111 commented Nov 28, 2018

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!

@dom111 dom111 changed the title Remove jQuery dependency and Use GLightbox Remove jQuery dependency Dec 4, 2018
@dom111
Copy link
Owner

dom111 commented Dec 4, 2018

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!

dom111 added a commit that referenced this issue Dec 20, 2018
dom111 pushed a commit that referenced this issue Dec 27, 2018
@chrysn
Copy link
Contributor

chrysn commented Aug 19, 2019

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.

@dom111
Copy link
Owner

dom111 commented Sep 27, 2019

@chrysn

Is there a short bookmarks-bar-style JS snippet with which I could test this branch?

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!

@dom111
Copy link
Owner

dom111 commented Oct 2, 2019

@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:

javascript:["https://cdn.jsdelivr.net/gh/dom111/webdav-js@feature%2Fconvert-to-modules/assets/css/style-min.css","https://cdn.jsdelivr.net/gh/dom111/webdav-js@feature%2Fconvert-to-modules/src/webdav-min.js"].forEach((function(e,t){/css$/.test(e)?((t=document.createElement("link")).href=e,t.rel="stylesheet"):(t=document.createElement("script")).src=e,document.head.appendChild(t)}));

@chrysn
Copy link
Contributor

chrysn commented Oct 3, 2019

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.

@dom111 dom111 self-assigned this Oct 3, 2019
@dom111 dom111 added this to the 2.0.0 milestone Oct 3, 2019
@dom111
Copy link
Owner

dom111 commented Oct 12, 2019

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!

javascript:["https://cdn.jsdelivr.net/gh/dom111/webdav-js@feature/convert-to-modules/assets/css/style-min.css","https://cdn.jsdelivr.net/gh/dom111/webdav-js@feature/convert-to-modules/src/webdav-min.js"].forEach((function(e,s){/css$/.test(e)?((s=document.createElement("link")).href=e,s.rel="stylesheet"):(s=document.createElement("script")).src=e,document.head.appendChild(s)}));

dom111 added a commit that referenced this issue Nov 8, 2019
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`.
@dom111
Copy link
Owner

dom111 commented Nov 22, 2019

Fixed in v2.0.0!

@dom111 dom111 closed this as completed Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants