umbrella
govuk-puppet
umbrella | govuk-puppet | |
---|---|---|
7 | 405 | |
2,250 | 125 | |
- | - | |
2.0 | 9.3 | |
15 days ago | 3 months ago | |
JavaScript | Puppet | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
umbrella
- Ask HN: Good resource on writing web app with plain JavaScript/HTML/CSS
-
The impact of removing jQuery on our web performance
If you are mainly using jquery for its DOM manipulation¹ rather than for browser compatibility² or things that didn't exist consistently in older browsers³ then there are much smaller libraries that do that job which may be worth looking into. https://github.com/fabiospampinato/cash or https://github.com/franciscop/umbrella to give a couple of examples. Some explicitly support IE11 so you are not dropping as much support for legacy browsers as you might otherwise.
Though if jQuery works for you and isn't a performance issue, then by all means keep with it. It may not be ideal, but good enough and does the job. Let the naysayers spend their time debating whether you should or not, and just get on with making things!
---
[1] selection engine, chained selections, chained modifications, …
[2] not the issue it once was, if you can abandon IE and old Android browsers from your supported UAs or can deal with any issues that crop up individually
[3] again, if you can afford to drop support for legacy UAs
-
Gov.uk drops jQuery from their front end
Yes, and if you continue long enough you end up with one of the many jQuery alternatives, like mine:
https://umbrellajs.com/
- Umbrella JavaScript: Tiny library for DOM manipulation and events
-
Ask HN: Should I even bother with React?
If you're learning React just to get a job, you're doing it wrong, since recruiters are always changing their requirements. They will add `proficient in Svelte` just to annoy you, (after having learning React) and now you're no longer relevant to them.
That's why I say: stick to the baseline of HTML, CSS, & JS. Learn to write vanilla JS for common things, maybe learn UmbrellaJS[0] for syntactic sugar and manipulating the DOM.
Oh and learn some APIs to do back-end stuff too. And for forms, there's loads of projects out there to automate that[1]
[0] https://umbrellajs.com/
[1] https://www.producthunt.com/search?q=forms
- Make Front End Shit Again
-
Replacing jQuery (110kb) With UmbrellaJS (8kb)
const insertAfter = (col, html) => col.forEach(el => el.insertAdjacentElement('afterend', html));
Keep going a bit like that, until you realize you are basically reinventing jQuery. Add a couple of very nice-to-haves, like chaining (instead of nesting in these examples above) and that's exactly what Umbrella JS is, very thin methods to manipulate the DOM and handle events. In fact, compare our "addClass" implementation in this comment to [Umbrella's addClass](https://github.com/franciscop/umbrella/blob/master/src/plugi...), it's almost the same size but hundred times more flexible:
// Add class(es) to the matched nodes
govuk-puppet
-
Ask HN: Examples of best practice modern website design?
For usability and accessibility check out https://www.gov.uk/
-
Help with my income tax calculations, should salary sacrifices be considered as part of the taxable income or not?
Look up adjusted net income on www.gov.uk
-
Should I report suspicious behaviour in my street?
Start by checking the registration plate on www.gov.uk to see if the car is MOTd and insured. If they are then I would probably not think too much more about it. If the car is not MOTd or insured then it probably suggests that they're up to no good and as a good citizen, it is your duty to dig further. Maybe try walking past the car and see if you can see what they're doing in the boot and maybe just start up a general conversation with them by asking if they have a light or if there is a shop nearby??
-
Do I need a Transit Visa?
The visa checker on www.gov.uk is the authority here: if that says you don't need a transit visa then you don't need one.
-
Expats - what did you do about your savings accounts when you moved here?
From the www.gov.uk website:
-
I think HR asked me to commit minor VAT fraud
The supplier advised -If it is for my own personal use, it is eligible for VAT relief because it is being used as part of a system that includes a PC customised for my needs "Assistive technology involves the pre-installation of specialist software which is specifically required by the disabled individual. Where such a purchase is made, the complete system will be defined as designed solely for use by that disabled person, and will be eligible for the relief."Reliefs from VAT for disabled and older people (VAT Notice 701/7) - GOV.UK (www.gov.uk) -If it is for work related tasks- then VAT may need to be paid, but supply of equipment for employment related tasks should be dealt with by my employer. -But this may lead to ownership issues. If the Trust buys the program do, they own all material produced with the program?
-
Ask HN: What are some well-designed websites?
I'll throw https://www.gov.uk/ into the ring here. Heard it's one of the best designed websites for disabled accessibility.
-
Boox Tab Ultra C impressions after a full day of use
Work. I've tried to integrate e-reader devices into my workflow before and failed. I'm too used to OSX, and find other environments frustrating for work. I use a MacBook Pro in combination with a Mira e-ink monitor (I work on the design of GOV.UK).
-
Does this mean my DBS has been done?
Your DBS certificate for application ******** has been issued by the DBS. If you need any further advice or information go to www.gov.uk/. dbs
-
Would they send this if I was denied? There is no decision attached and the two day wait will kill me 😅
Refer at Visa decision waiting times: applications outside the UK - GOV.UK (www.gov.uk) to know visa processing timelines. VFS Global will notify you when the passport is ready for collection.
What are some alternatives?
cash - An absurdly small jQuery alternative for modern browsers.
coronavirus-dashboard - Dashboard for tracking Coronavirus (COVID-19) across the UK
femtoJS - femtoJS - Really small JavaScript (ES6) library for DOM manipulation.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
uswds - The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
uMatrix - uMatrix: Point and click matrix to filter net requests according to source, destination and type
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
DOM_Maker - JavaScript library for creating DOM structures in the browser.
frontend - The Guardian DotCom.
nl-covid19-data-dashboard - The dashboard provides information on the outbreak and prevalence of COVID-19 in The Netherlands
info-frontend - Serves /info pages to display user needs and performance data about a page on GOV.UK