283 Commits

Author SHA1 Message Date
Steve Repsher
2fe6203eae
Remove leftover packages from Rollup builds (#23344) 2024-12-19 15:16:08 -05:00
Steve Repsher
145a536156
Remove unused polyfills and adjust support for Intl.getCanonicalLocales (#23264) 2024-12-12 15:07:50 +02:00
Steve Repsher
3552417b39
Compress legacy build and shared static files using Brotli (#23233)
* Revert "Remove Zopfli compression (#23157)"

This reverts commit 4092f56ea5361299f31ddeca0938370fc392e07a.

* Revert "Fix compression of hassio builds (#21869)"

This reverts commit b69f0964c9cc330c2d3f732734764ca554c9c2c9.

* Compress legacy build and shared static files using Brotli
2024-12-11 15:05:17 +02:00
Charles Garwood
9e8d452438
Fix typo in translations build script (#23227)
* Fix typo in build script
2024-12-09 18:23:23 +00:00
Petar Petrov
af049274d9
Cleanup unused WDS deps and config (#23155)
* Cleanup unused WDS deps and config

* fix
2024-12-06 09:57:46 +01:00
Petar Petrov
4092f56ea5
Remove Zopfli compression (#23157) 2024-12-05 14:01:25 +01:00
martetassyns
5c7d9b3fa3
Made it easier to test the frontend against an existing core instance. (#23062)
* Made it easier to test the frontend against an existing core instance.

* Ensured that script works regardless of current working dir

* Use consistent quote style

* Also allow using variables in hassUrl override

* Improved the default behavior of the script

* more consistent variable naming

* don't install a global dependency

* documented caching wierdness where if you switch core endpoints the old one remains in use

* Simplified some code

* improved documentation

---------

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
2024-12-02 13:27:36 +00:00
Paul Bottein
3411967fd9
Only use duration poly-fill when necessary (#23030) 2024-11-27 17:13:29 +01:00
Paul Bottein
a532b4461d
Use explicit duration format for state formatting (#23017) 2024-11-27 12:49:21 +01:00
Wendelin
bd0bfc1fbe
Rspack (#22807)
* Add rspack

* Remove TransformAsyncModulesPlugin from rspack

* Migrate all webpack usage to rspack

* Migrate tests to vitest

* Fix test suites

* Remove chai dependency

* Fix compute_state_display tests

* Fix resolveTimeZone

* Reduces test pipeline

* Revert test ci

* optimize chunk filtering

* Migrate landing-page to rspack

* Update rspack dependencies

* Add rsdoctor

* Fix prod build bundle size

* Use rsdoctor for demo stats

* Remove unused webpack configs

* Update build-scripts/rspack.cjs

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>

* Fix eslint

* Update rspack

* Remove unused code

---------

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
2024-11-26 14:49:13 +01:00
Wendelin
6cc6d9fb45
Tolerant env vars (#22948) 2024-11-21 18:26:51 +01:00
Wendelin
5b8e63a213
Landing page (#22598) 2024-11-20 16:20:08 +00:00
Simon Lamon
89dc1a7ebc
ESLint Flat Config (#22221)
* Flat config file

* Plugin

* prettier

* Set eslint to latest version (non dev)

* yarn dedupe

* push changes from eslint type pr

* dedupe
2024-11-18 15:49:59 +01:00
Wendelin
ced70fd9a1
Fix 2fa login validation, add autofocus to login (#22856) 2024-11-18 15:25:51 +02:00
Joost Lekkerkerker
b056b71557
Only download verified translations (#22844) 2024-11-16 13:20:06 +01:00
Simon Lamon
ee79c3a983
Remove rollup build configuration (#22181)
Rollup remove
2024-11-08 10:19:52 +02:00
Petar Petrov
fa39595c37
Fix scanning of small QR codes with JS (#22651)
* Fix scanning of small QR codes with JS

* fix filename

* fix qr error and add device button

* fix yarn.lock
2024-11-05 16:00:05 +02:00
Bram Kragten
76ee9ce202
update regex for check html (#22596) 2024-10-30 10:08:46 +00:00
Wendelin
e55f32ae91
Fallback to formatjs pt for brazilian pt (#22570)
* Fallback to formatjs pt for brazilian pt

* Update build-scripts/gulp/locale-data.js

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2024-10-29 08:50:21 +01:00
Wendelin
9e4dc0d39e
Migrate add/edit resources dialog to @material/web (#21933)
* Remove dashboard resources options from advanced mode

* Add ha-dialog-new, use it for dashboard resources

* Add ha-dialog-new shake; Move resources delete to table

* Improve ha-dialog-new, resource-detail

* Rename ha-dialog-new to ha-md-dialog

* Update src/panels/config/lovelace/resources/dialog-lovelace-resource-detail.ts

Fix dialogClosed method naming

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* Add ha-md-dialog polyfill

* Fix ha-md-dialog for iOS 12

* Fix ha-md-dialog polyfill loading

* Fix ha-md-dialog open prop

* Fix ha-md-dialog legacy loading

* Improve ha-md-dialog legacy loading

* Fix multiple polyfill loads in ha-md-dialog

* Fix polyfill handleOpen in ha-md-dialog

* Improve polyfill handleOpen in ha-md-dialog

* Improve polyfill handleOpen ordering in ha-md-dialog

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2024-09-16 12:27:13 +00:00
Joakim Sørensen
b69f0964c9
Fix compression of hassio builds (#21869) 2024-09-04 10:01:58 +02:00
Steve Repsher
5e486d9cf0
Correct serving modern build to macOS companion app (#21724) 2024-08-21 11:51:07 -04:00
Steve Repsher
dfbf4abd5d
Link old service worker to new name (#21581) 2024-08-05 15:52:46 +02:00
Steve Repsher
dd74a35d3f
Use Brotli compression for modern build (#17906) 2024-07-31 10:57:52 +02:00
Steve Repsher
345000a0e9
Redefine browser requirements for modern (latest) builds (#16506)
* Redefine browser requirements for modern (latest) builds

* Rename babel class properties plugin

* Fix only allowing latest Android

* Add browsers released in last year

* Use at or above for utilization (no change to browsers currently)

* Only use time query (no effective change)

* Add transform for private methods

* Fix some typos in browserslist config

Co-authored-by: Quentame <polletquentin74@me.com>

* bump browserslist-useragent-regex

* Add fallback feature detection for Array.prototype.findLast

---------

Co-authored-by: Quentame <polletquentin74@me.com>
2024-07-19 10:49:19 -04:00
Steve Repsher
82d84de426
Enable service worker for legacy build (#21177) 2024-07-19 10:54:27 +02:00
Paulus Schoutsen
d833910796
Fix demo development inside a dev container (#21261) 2024-07-03 13:52:53 +02:00
Steve Repsher
5707ca0016
Fix English only translations build (#21245) 2024-07-02 15:13:04 +02:00
Steve Repsher
d01377da3c
Fix Webpack bundling of recorder worklet (#21239)
* Fix Webpack bundling of recorder worklet
2024-07-01 16:31:22 +02:00
Steve Repsher
686424fc70
Add CoreJS polyfills to modern build (#20676) 2024-06-21 11:07:39 +02:00
Steve Repsher
3e1227b064
Do not inject Intl polyfill into ecma402-abstract package (#21074) 2024-06-12 14:45:57 -04:00
Bram Kragten
c0e048023d format webpack.cjs 2024-05-29 18:04:24 +02:00
Bram Kragten
431f4937c1 Update webpack.cjs 2024-05-29 17:55:40 +02:00
Bram Kragten
0a55220837 Merge branch 'master' into dev 2024-05-29 17:53:04 +02:00
Steve Repsher
3eea7dc6cd
Use valid locale for translation test (#20899) 2024-05-29 15:44:56 +02:00
Steve Repsher
97206ee8fe
Inject element polyfills where used using Babel (#20689) 2024-05-29 14:02:40 +02:00
Steve Repsher
7748315fc3
Inject Intl polyfills where used (#20798)
* Inject Intl polyfills where used

* Replace Intl polyfill in localize method with loading intl-messageformat asynchronously

* Remove spurious feature tests for Intl
2024-05-29 14:01:21 +02:00
Steve Repsher
41e34c0d61
Inject ResizeObserver polyfill where needed (#20754) 2024-05-24 12:21:46 -04:00
Steve Repsher
e0062cf190
Inject ElementInternals polyfill where needed (#20818) 2024-05-23 14:25:58 -04:00
Steve Repsher
79cdc43699
Enhance webpack transform async plugin to use babel runtime (with fix) (#20745) 2024-05-06 18:06:21 -04:00
Paul Bottein
571ed6b9e9 Revert usage of babel runtime for legacy bundle (#20741)
Revert usage of babel runtine for legacy bundle
2024-05-06 17:48:21 +02:00
Steve Repsher
cdf64ccdaa
Refactor translation merges to use native transform stream (#20666) 2024-05-06 15:17:01 +02:00
Paul Bottein
bc41de0d9c
Revert usage of babel runtime for legacy bundle (#20741)
Revert usage of babel runtine for legacy bundle
2024-05-06 12:12:19 +02:00
Steve Repsher
84b436c08e
Fix self-injection for custom polyfills (#20718)
* Fix self-injection for custom polyfills

* Update build-scripts/bundle.cjs

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-05-03 16:37:40 -04:00
renovate[bot]
b2797ab8da
Update dependency gulp to v5 (#20601)
* Update dependency gulp to v5

* Fix premature cloasing of hash stream

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2024-05-01 15:13:28 +02:00
Steve Repsher
4b593c1c96
Enhance webpack transform async plugin to use babel runtime (#20543) 2024-04-22 09:40:20 +02:00
renovate[bot]
1df9c38a8c
Update dependency tar to v7 (#20513)
* Update dependency tar to v7

* Update fetch-nightly-translations.js

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2024-04-15 13:40:38 +00:00
Steve Repsher
e22e3e88a0
Speed up and simplify translations build (#19988)
* Speed up and simplify translations build

- Remove use of gulp-flatmap for merges (wasted input) and just loop over translation files.
- Parse and buffer master only once for all merges.
- Remove lokalise key reference transform from non-English files. This is already done by Lokalise when they are downloaded.
- Remove tabs from merged output to minimize buffer sizes.
- Pipe merges to a hashing stream, removing extra tasks and intermediate file I/O.
- Pipe hashed files to a single custom asynchronous transform stream to fragmentize the files. It expands the stream to push a new file for each fragment.
- Incorporate flattening into fragmentization.
- Delete entire ui.panel key for base translation (instead of leaving an empty object).
- Optimize flatten method to stop copying output over and over.
- Convert empty and test filters to JSON.parse() revivers for simplicity and better performance.
- Incorporate supervisor builds into main tasks using a simple toggle (i.e. remove duplicate code).
- Funcify local tasks and simplify exported tasks.
- Incorporate test metadata task into a simplified metadata task.

* Fix Lokalise key reference link

Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>

---------

Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
2024-04-12 12:49:18 +02:00
Paul Bottein
2d4a8e2e45
Fix search input outlined background color and margin (#20407) 2024-04-04 12:53:03 +02:00
Bram Kragten
c3b2ebf380
Don't use ES5 build for dev server (#19731) 2024-02-08 14:33:34 +01:00