HackerTrans
TopNewTrendsCommentsPastAskShowJobs

popchat

no profile record

Submissions

Popstart, a library for rapid JavaScript front-end development

github.com
4 points·by popchat·قبل 3 سنوات·1 comments

comments

popchat
·قبل 3 سنوات·discuss
Google Pixel phones have unlocked bootloaders[0] (see the excellent projects GrapheneOS[1] and Calyx[2]), so if that's something that is important to you (it's good that it is), then you should purchase your next phone with that in mind.

0. usually, but not always. Sometimes you need to install, for example, a T-mobile app for some previously GoogleFi phones in order for the phone to check with T-mobile's servers and get unlocking approved, but the phone can be purchased unlocked directly from Google as well.

1. https://grapheneos.org/

2. https://calyxos.org/ from https://www.calyxinstitute.org/
popchat
·قبل 3 سنوات·discuss
Popstart is MIT licensed.

There are no dependencies and no build process. It's simple and lightweight. There is no shadow DOM, no virtual DOM diffing, and function binding is optimized for larger applications.

Popstart offers a straightforward visual representation of exactly what events are tied to which objects and it's very fast, even with thousands of objects on-screen and off. It's optimized for SPA's, but works well with page-oriented applications as well.

Here's an example to send a completed form to the server via AJAX:

  <form submit=__.scrape,__.show,__.post,__.hide
    scrape-selector=".example .form"
    show-selector=".example .spinner"
    post-url=/api/example/form
    post-error=__.hide
    hide-selector=".example .spinner">
Draws inspiration from AlpineJS, HTMX, Angular, and even jQuery and Moo from back in the day, so if this isn't what you're looking for, check out one of those or one of the heavier alternatives like Vue/React.

It would be easy to code as a helper, but FYI there is no router right now.