ZooTools / email-spell-checker

📮 An ultratiny (1.9 KB) and fast JavaScript email checker to reduce users typing a wrong email. Written in TypeScript. Enterprise-grade.
https://zootools.co/tools/email-spell-checker
MIT License
164 stars 11 forks source link

feat: add interactive demos #24

Closed erayalkis closed 1 year ago

erayalkis commented 1 year ago

demo

This PR creates 3 new interactive demos, as written in issue #15. I have tested the behaviour of the frontend, and everything seems to work as expected. No tests have been written for this new feature so far, and I will get to work on them ASAP if necessary. :)

Description of change

Pull-Request Checklist

ferreiro commented 1 year ago

@erayalkis wow! this is awesome, thanks for doing this. will review it in the upcoming days. mind to record a gif or screenshots and attach them to this PR so we can document it?

for another PRs, it'd be cool to replicate your example into other popular FE libraries like React or Vue. what do you think?

erayalkis commented 1 year ago

Thanks Jorge! Absolutely, I'll set up a short gif for the PR description real quick.😄I'll also get started on setting up the example on React and Vue, it'll be more helpful this way for sure!

ferreiro commented 1 year ago

cool @erayalkis -- ty!

ferreiro commented 1 year ago

@erayalkis hey! I tried your html version and I got a CORS issue. Know what's happening and how to fix it? Also, any other way to import the JS from the CDN that will be browser-compatible? I saw you are using the import and wondering if that will break in some browsers.

https://www.loom.com/share/67dd16d0a9974032a1a25b28a2ba6abe?from_recorder=1&focus_title=1

erayalkis commented 1 year ago

Hi @ferreiro ! Yep, I think I know what's going on. IIRC, a CORS error like this is caused by trying to import local files, it should be quite easy to fix :) I'll open an issue and create a PR to fix it as soon as possible!