157 Commits

Author SHA1 Message Date
Bram Kragten
70953788cc Add back zopfli compression (#23555) 2025-01-03 15:41:50 +01:00
Steve Repsher
2fe6203eae
Remove leftover packages from Rollup builds (#23344) 2024-12-19 15:16:08 -05: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
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
5b8e63a213
Landing page (#22598) 2024-11-20 16:20:08 +00: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
3eea7dc6cd
Use valid locale for translation test (#20899) 2024-05-29 15:44:56 +02:00
Steve Repsher
cdf64ccdaa
Refactor translation merges to use native transform stream (#20666) 2024-05-06 15:17:01 +02: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
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
Bram Kragten
c3b2ebf380
Don't use ES5 build for dev server (#19731) 2024-02-08 14:33:34 +01:00
Steve Repsher
4046534fa8
Compress static HTML/XML (#19437) 2024-01-17 17:58:32 -05:00
Bram Kragten
979085a9de
Fix supervisor dev build (#19266) 2024-01-03 20:35:54 +01:00
Bram Kragten
db68c7faa9
Log errors when downloading lokalise translations (#18781) 2023-11-28 08:21:19 +01:00
renovate[bot]
15395275ba
Update dependency prettier to v3.1.0 (#18675)
* Update dependency prettier to v3.1.0

* Reformat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2023-11-19 23:31:56 -05:00
Steve Repsher
e16a101de8
Compress service worker (#18407) 2023-10-25 17:17:11 +02:00
Steve Repsher
434b9595c0
Remove SystemJS loader from Webpack builds (#18249) 2023-10-16 12:42:46 +02:00
Steve Repsher
294df396f4
Remove test language from production (really) (#18137) 2023-10-09 14:40:06 +02:00
Steve Repsher
bf9e2cd404
Move polyfill time zone data out of bundles (#18142) 2023-10-09 14:28:16 +02:00
Bram Kragten
29aed5371c
Move translation fetching to gulp action (#17827) 2023-09-06 00:28:26 +02:00
Steve Repsher
945c8e0320
Minify and compress Intl locale data (#17506) 2023-08-07 11:59:02 +02:00
Steve Repsher
edcdc865c4
Remove test language from production (#17507) 2023-08-07 11:54:40 +02:00
Paul Bottein
7dbae75e50
Remove hot reload for gallery (#17484) 2023-08-04 09:45:32 +00:00
Bram Kragten
35a427afad
Update download-translations.js 2023-07-10 13:17:35 +02:00
Bram Kragten
9f74af56ed
Update download-translations.js 2023-07-05 17:32:08 +02:00
Bram Kragten
c95232fecb
Update download-translations.js 2023-07-05 17:23:24 +02:00
Bram Kragten
cc8ab184e3
Update download-translations.js 2023-07-05 17:05:13 +02:00
Bram Kragten
1b503a6af1
Convert and filter backend translations to old format (#17161) 2023-07-05 13:29:42 +02:00
Simon Lamon
5fc4e7a95d
Introduce Intl.ListFormat (#16857)
Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-06-13 15:22:23 +02:00
Joakim Sørensen
5006dfc138
Use __STATIC_PATH__ in more places so the supervisor panel can reach paths (#16665)
Use __STATIC_PATH__ in more places so the supervisor panel can reach paths
2023-05-30 10:45:58 +02:00
Steve Repsher
586079917d
Convert remaining gulp modules to ESM (#16430) 2023-05-08 17:43:29 +02:00