-
Notifications
You must be signed in to change notification settings - Fork 895
[Master] release/2025-08-04 #9679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
236 commits
Select commit
Hold shift + click to select a range
ed216b8
chore!: support only the most recent 3 years of browser versions
cwillisf fb1f2e4
add link to BAC
varunbiniwale 9e61023
Merge pull request #9615 from scratchfoundation/release/2025-07-03
cwillisf cd474eb
fix(deps): update dependency scratch-l10n to v5.0.295
renovate[bot] 49cea5c
Merge pull request #9617 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] d92887c
fix(deps): update dependency scratch-storage to ^4.0.180
renovate[bot] 06d30be
Merge pull request #9618 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 1e05787
chore(deps): update babel monorepo to v7.28.0
renovate[bot] f2156f6
Merge pull request #9619 from scratchfoundation/renovate/babel-monorepo
renovate[bot] 52a00dd
fix(deps): update dependency scratch-l10n to v5.0.296
renovate[bot] d74c6bf
Merge pull request #9620 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] a9c1226
chore(deps): update dependency query-string to v9.2.2
renovate[bot] 61f09c1
Merge pull request #9621 from scratchfoundation/renovate/query-string…
renovate[bot] ff01298
fix(deps): update dependency scratch-l10n to v5.0.297
renovate[bot] 619a5e1
Merge pull request #9622 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 32f7ac8
fix(deps): update dependency scratch-l10n to v5.0.299
renovate[bot] cd3477f
Merge pull request #9623 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 2bc169c
fix(deps): update dependency scratch-storage to ^4.0.181
renovate[bot] 80467d6
Merge pull request #9624 from scratchfoundation/renovate/scratch-stor…
renovate[bot] ede0540
feat: [UEPR-252] add manual save of thumnails
MiroslavDionisiev 9f177b1
fix(deps): update dependency scratch-l10n to v5.0.301
renovate[bot] 16f4872
Merge pull request #9625 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 4a47ce2
fix(deps): update dependency scratch-storage to ^4.0.182
renovate[bot] 75547a1
Merge pull request #9626 from scratchfoundation/renovate/scratch-stor…
renovate[bot] a14b437
fix(deps): update dependency scratch-l10n to v5.0.303
renovate[bot] f2c875d
Merge pull request #9627 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] ecf6d2e
fix(deps): update dependency scratch-storage to ^4.0.183
renovate[bot] 87b82c1
search: send along token if admin
varunbiniwale f46f1ed
Merge pull request #9628 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 6dd3799
fix(deps): update dependency scratch-l10n to v5.0.304
renovate[bot] f6714d8
Merge pull request #9630 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 38658b1
fix(deps): update dependency scratch-storage to ^4.0.184
renovate[bot] e31d344
Merge pull request #9631 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 371ca6b
fix(deps): update dependency scratch-l10n to v5.0.306
renovate[bot] 00fd25b
Merge pull request #9632 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 1776f44
fix(deps): update dependency scratch-storage to ^4.0.185
renovate[bot] ae1309c
Merge pull request #9633 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 3ad8f27
chore(deps): update dependency webpack to v5.100.0
renovate[bot] a3f316f
Merge pull request #9634 from scratchfoundation/renovate/webpack-5.x
renovate[bot] 4a7bea0
fix(deps): update dependency scratch-l10n to v5.0.307
renovate[bot] 2072573
Merge pull request #9635 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 0348d6a
fix(deps): update dependency scratch-storage to ^4.0.186
renovate[bot] 729855e
Merge pull request #9636 from scratchfoundation/renovate/scratch-stor…
renovate[bot] db95194
chore(deps): update dependency webpack to v5.100.1
renovate[bot] 6259721
Merge pull request #9637 from scratchfoundation/renovate/webpack-5.x
renovate[bot] f8f5e98
feat: add user messaging on first open of thumbnail update feature
KManolov3 367f414
Update webpack.config.js
KManolov3 5a0299f
fix: lint errors
KManolov3 0b99c24
Merge remote-tracking branch 'upstream/UEPR-252' into UEPR-252
KManolov3 71e3a9a
fix: remove todo
KManolov3 95226f5
fix(deps): update dependency scratch-l10n to v5.0.308
renovate[bot] 4ba6b77
feat: support thumbnail save on project creation
KManolov3 a7743b4
Merge pull request #9639 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 8ca09ca
fix(deps): update dependency scratch-storage to ^4.0.187
renovate[bot] e7b7f8b
Merge pull request #9640 from scratchfoundation/renovate/scratch-stor…
renovate[bot] f73f818
fix(deps): update dependency scratch-l10n to v5.0.309
renovate[bot] 3531a2c
Merge pull request #9641 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 4fd2b84
chore(deps): update dependency scratch-l10n to v6
renovate[bot] 5b03ed3
Merge pull request #9643 from scratchfoundation/renovate/scratch-l10n…
cwillisf 1e7b766
fix(deps): update dependency scratch-storage to ^4.0.188
renovate[bot] 5c1b6f5
Merge pull request #9642 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 2c287ba
fix(deps): update dependency scratch-l10n to v6.0.2
renovate[bot] f26ad50
Merge pull request #9645 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] dab7666
fix(deps): update dependency scratch-storage to ^4.0.189
renovate[bot] 852d93c
Merge pull request #9646 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 71150b0
fix(deps): update dependency scratch-l10n to v6.0.3
renovate[bot] 1d65f65
Merge pull request #9647 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 73f6c92
fix(deps): update dependency scratch-l10n to v6.0.4
renovate[bot] ef92869
Update comment in src/views/preview/project-view.jsx
KManolov3 35e8c85
Merge pull request #9648 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 26ed055
fix(deps): update dependency scratch-storage to ^4.0.190
renovate[bot] e0548ef
Merge pull request #9650 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 7a8121e
chore(deps): update dependency webpack to v5.100.2
renovate[bot] 809a22b
explore: WIP admin mode
varunbiniwale a589710
explore: admin mode only for admins
varunbiniwale 4e08e77
explore: admin mode call endpoint
varunbiniwale 0573172
Merge pull request #9651 from scratchfoundation/renovate/webpack-5.x
renovate[bot] d6676e1
fix(deps): update dependency scratch-l10n to v6.0.6
renovate[bot] f26f06d
Merge pull request #9652 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] b8d35a9
fix(deps): update dependency scratch-storage to ^4.0.192
renovate[bot] 97f2a62
Merge pull request #9653 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 1978ed7
fix(deps): update dependency scratch-l10n to v6.0.7
renovate[bot] 5dc774d
Merge pull request #9654 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 8f82de8
Add success and error alerts on manual thumbnail update
KManolov3 f842822
fix: lint errors
KManolov3 b94d220
fix(deps): update dependency scratch-storage to ^4.0.193
renovate[bot] 9891d58
chore: update scratch-gui version
KManolov3 c30c592
Merge pull request #9655 from scratchfoundation/renovate/scratch-stor…
renovate[bot] b1ebe6c
feat(deps): update dependency @scratch/scratch-gui to v11.4.0
renovate[bot] 9e6cb1b
Revert "chore: update scratch-gui version"
KManolov3 ad862ec
Merge remote-tracking branch 'upstream/develop' into HEAD
KManolov3 452ab62
Merge pull request #9657 from scratchfoundation/renovate/scratch-scra…
KManolov3 7213efc
Merge pull request #9638 from scratchfoundation/UEPR-252
KManolov3 a74537d
fix(deps): lock file maintenance
renovate[bot] 15a0010
Merge pull request #9656 from scratchfoundation/renovate/lock-file-ma…
renovate[bot] 89a2b58
fix(deps): update dependency scratch-l10n to v6.0.8
renovate[bot] 1601f81
feat: [UEPR-289] face sensing extension chip and updated privacy warning
MiroslavDionisiev cd3b854
Merge pull request #9658 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 4191fd8
fix(deps): update dependency scratch-storage to ^4.0.194
renovate[bot] 7377c9b
Merge pull request #9660 from scratchfoundation/renovate/scratch-stor…
renovate[bot] e09e844
fix: manual thumbnail save fixes
KManolov3 f934f04
fix: lint errors
KManolov3 aa590e9
Merge pull request #9661 from scratchfoundation/UEPR-252
KManolov3 dfe71c3
fix(deps): update dependency scratch-l10n to v6.0.9
renovate[bot] 1816790
style: fix indenting error
cwillisf 390e64c
Merge pull request #9662 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] f2273f6
fix(deps): update dependency scratch-storage to ^4.0.195
renovate[bot] 5dca8c3
Merge pull request #9663 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 5fb12b1
feat(deps): update dependency @scratch/scratch-gui to v11.5.0
renovate[bot] 5ef7b9c
Merge pull request #9664 from scratchfoundation/renovate/scratch-scra…
renovate[bot] 65dcde6
fix(deps): update dependency scratch-storage to ^4.0.196
renovate[bot] e62ca12
Merge pull request #9665 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 178ef12
fix(deps): update dependency scratch-storage to ^4.0.197
renovate[bot] c5b9aba
Merge pull request #9667 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 2ab39da
fix(deps): update dependency scratch-l10n to v6.0.11
renovate[bot] bf8b088
Merge pull request #9666 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 649545d
fix(deps): lock file maintenance
renovate[bot] a5995ee
Merge pull request #9668 from scratchfoundation/renovate/lock-file-ma…
renovate[bot] 1ad0392
fix(deps): update dependency scratch-storage to ^4.0.198
renovate[bot] 40ba047
Merge pull request #9669 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 2a00655
fix(deps): update dependency scratch-l10n to v6.0.12
renovate[bot] fd0eb83
Merge pull request #9670 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 00b1c62
fix(deps): update dependency scratch-storage to ^4.0.200
renovate[bot] 64924c8
Merge pull request #9672 from scratchfoundation/renovate/scratch-stor…
renovate[bot] ee38609
fix(deps): update dependency scratch-l10n to v6.0.13
renovate[bot] 1eaf914
chore: remove ChromeAndroid from browserslist
cwillisf 451f106
docs: add browserslist.html to build output
cwillisf c744382
Merge pull request #9673 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 0a1dac8
Merge pull request #9561 from scratchfoundation/update-browser-support
cwillisf c88a295
chore(deps): update dependency webpack to v5.101.0
renovate[bot] 7d2a73a
Merge pull request #9674 from scratchfoundation/renovate/webpack-5.x
renovate[bot] bb8864e
fix(deps): update dependency scratch-l10n to v6.0.14
renovate[bot] 32114e5
Merge pull request #9675 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 7132917
fix(deps): update dependency scratch-storage to ^4.0.201
renovate[bot] 85d729e
Merge pull request #9676 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 636d8e0
fix(deps): update dependency scratch-l10n to v6.0.15
renovate[bot] 980c481
Merge pull request #9677 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] be774ee
Merge remote-tracking branch 'origin/develop' into release/2025-08-04
KManolov3 6680b18
Merge pull request #9659 from scratchfoundation/UEPR-289
KManolov3 c8321e2
chore: use face sensing pre-release version
KManolov3 21a1180
Merge pull request #9681 from KManolov3/chore/UEPR-282-use-gui-face-s…
KManolov3 01dde6c
fix(deps): update dependency @scratch/scratch-gui to v11.6.0-gui-stan…
renovate[bot] f263bcc
Merge pull request #9682 from scratchfoundation/renovate/scratch-scra…
renovate[bot] 24bf9d3
chore(deps): tell Renovate to track face sensing tag for GUI
cwillisf 5323502
chore(deps): go back to scratch-gui@face-sensing
cwillisf 71dcfa0
fix(deps): update dependency scratch-l10n to v6.0.16
renovate[bot] 47ba336
Merge pull request #9680 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] e96b79a
fix(deps): update dependency scratch-l10n to v6.0.17
renovate[bot] d7d0da1
Merge pull request #9686 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 2c8fced
Merge pull request #9606 from varunbiniwale/bac
colbygk 0ca80d8
fix(deps): update dependency scratch-storage to ^4.0.202
renovate[bot] 1c432c8
explore: address lint issues
varunbiniwale dcc10c6
Merge pull request #9687 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 6acf36b
fix(deps): update dependency scratch-l10n to v6.0.19
renovate[bot] 8342942
Merge pull request #9688 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] d185a91
Merge pull request #9629 from varunbiniwale/search-admin
colbygk e6da01b
fix(deps): update dependency scratch-storage to ^4.0.203
renovate[bot] 91cb2b4
Merge pull request #9689 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 63b3dcc
fix(deps): update dependency scratch-l10n to v6.0.20
renovate[bot] 1d3b870
Merge pull request #9693 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 3bfa421
fix(deps): update dependency scratch-storage to ^4.0.204
renovate[bot] 8b761ef
Merge pull request #9692 from scratchfoundation/renovate/scratch-stor…
renovate[bot] dc004fd
fix(deps): update dependency scratch-l10n to v6.0.21
renovate[bot] a37a0c0
Merge pull request #9695 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 4a9b73b
fix(deps): update dependency scratch-storage to ^4.0.206
renovate[bot] a0d2a3a
Merge pull request #9696 from scratchfoundation/renovate/scratch-stor…
renovate[bot] c424d30
chore(deps): update dependency sass to v1.90.0
renovate[bot] 75d4799
Merge pull request #9697 from scratchfoundation/renovate/sass-1.x
renovate[bot] 3a97163
fix(deps): update dependency scratch-l10n to v6.0.22
renovate[bot] b2b2d94
Merge pull request #9699 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 84b92a6
fix(deps): update dependency scratch-storage to ^4.0.207
renovate[bot] 542cf1a
Merge pull request #9700 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 50382e1
fix(deps): update dependency scratch-l10n to v6.0.23
renovate[bot] 7639c9f
Merge pull request #9701 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 442d5bb
fix(deps): update dependency scratch-l10n to v6.0.24
renovate[bot] fc58fcb
Merge pull request #9702 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 174fda4
fix(deps): update dependency scratch-storage to ^4.0.209
renovate[bot] 8f620f0
Merge pull request #9703 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 10b0a8e
fix(deps): update dependency scratch-l10n to v6.0.25
renovate[bot] 66c9a07
feat: copy mediapipe files to the build folder to enable local serving
adzhindzhi 8f243f4
Merge pull request #9705 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] e354cea
feat: enhance manual thumbnail with modal on share
KManolov3 c9a90d5
fix: address comment
KManolov3 60a4e97
feat: move update thumbnail info modal to modal/ directory
KManolov3 df50d49
fix: align modal title text vertically
KManolov3 7e9960d
fix: copy the whole mediapipe folder instead of specific files
adzhindzhi aecc75d
feat: add MANUALLY_SAVE_THUMBNAILS env variable to cicd workflow
KManolov3 dc2b623
fix(deps): update dependency scratch-storage to ^4.0.210
renovate[bot] def51b8
fix: change the icon displayed on the face sensing extension chip to …
adzhindzhi c841bc3
Merge pull request #9706 from KManolov3/feature/UEPR-300-thumbnail-pr…
KManolov3 f3334ae
Merge pull request #9708 from scratchfoundation/renovate/scratch-stor…
renovate[bot] e963b85
Merge pull request #9678 from scratchfoundation/release/2025-08-04
KManolov3 a6d1d4f
Merge pull request #9711 from adzhindzhi/UEPR-306-face-sensing-high-c…
adzhindzhi 13c3286
chore: update scratch-gui version to face-sensing.2
adzhindzhi 85bdd8b
Merge pull request #9707 from adzhindzhi/UEPR-290-update-face-sensing…
adzhindzhi 146d4b2
fix(deps): update dependency scratch-l10n to v6.0.26
renovate[bot] 5f2858a
Merge pull request #9710 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] deee478
fix: share preview modal fixes
KManolov3 faa91a8
Merge pull request #9712 from KManolov3/feature/UEPR-300-thumbnail-pr…
KManolov3 bc91e1c
Merge pull request #9713 from scratchfoundation/release/2025-08-04
KManolov3 864d4c6
fix(deps): lock file maintenance
renovate[bot] 384ec3d
fix: ensure thumbnail is refetched upon successful thumbnail update
KManolov3 01abe7e
Merge pull request #9709 from scratchfoundation/renovate/lock-file-ma…
renovate[bot] 7e2ae94
fix(deps): update dependency scratch-l10n to v6.0.27
renovate[bot] f3dae5b
feat: update thumbnail preview modal texts
KManolov3 5071490
feat: use local blob on page when updating thumbnail instead of refet…
KManolov3 f3f3a73
feat: update default value of thumbnail url
KManolov3 4db85d0
Merge pull request #9716 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 02c7810
fix(deps): update dependency scratch-storage to ^4.0.211
renovate[bot] 671c085
Merge pull request #9717 from scratchfoundation/renovate/scratch-stor…
renovate[bot] ab537ea
fix(deps): update dependency scratch-l10n to v6.0.28
renovate[bot] dec0589
Merge pull request #9719 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] fe6df54
chore(deps): update dependency webpack to v5.101.1
renovate[bot] 99f3341
Merge pull request #9718 from scratchfoundation/renovate/webpack-5.x
renovate[bot] ebc8654
chore(deps): update dependency selenium-webdriver to v4.35.0
renovate[bot] e03af21
Merge pull request #9720 from scratchfoundation/renovate/selenium-web…
renovate[bot] 13d61d3
fix(deps): update dependency scratch-l10n to v6.0.30
renovate[bot] 8f7ec90
Merge pull request #9722 from scratchfoundation/renovate/scratch-l10n…
renovate[bot] 883c5f3
fix(deps): update dependency scratch-storage to ^4.0.213
renovate[bot] abb9817
Merge pull request #9723 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 8f12031
chore(deps): update babel monorepo to v7.28.3
renovate[bot] 5378278
Merge pull request #9725 from scratchfoundation/renovate/babel-monorepo
renovate[bot] 20106cc
chore(deps): update dependency webpack to v5.101.2
renovate[bot] f9bc3cd
Merge pull request #9726 from scratchfoundation/renovate/webpack-5.x
renovate[bot] e19c183
fix(deps): lock file maintenance
renovate[bot] aef1891
Merge pull request #9724 from scratchfoundation/renovate/lock-file-ma…
renovate[bot] 5c9160a
Merge pull request #9715 from KManolov3/feature/UEPR-300-thumbnail-pr…
KManolov3 b4934f3
Merge pull request #9728 from scratchfoundation/release/2025-08-04
KManolov3 b6e23e8
fix(deps): update dependency scratch-storage to ^4.0.214
renovate[bot] a5bed10
Merge pull request #9727 from scratchfoundation/renovate/scratch-stor…
renovate[bot] 24791c0
feat: track set thumbnail button clicks
KManolov3 f5e6216
bugfix: fix thumbnail image border radius
KManolov3 83e8ae1
feat: change event name
KManolov3 1d0c6ff
Merge pull request #9729 from KManolov3/feature/uepr-310-add-ga-click…
KManolov3 a098f60
Merge pull request #9730 from scratchfoundation/release/2025-08-04
KManolov3 d7592da
Merge pull request #9732 from scratchfoundation/develop
colbygk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#!/usr/bin/env node | ||
|
||
const readline = require('node:readline'); | ||
|
||
const friendlyBrowsers = { | ||
and_chr: 'Android Chrome', | ||
chrome: 'Chrome', | ||
edge: 'Edge', | ||
firefox: 'Firefox', | ||
ios_saf: 'iOS Safari', | ||
safari: 'Safari' | ||
}; | ||
|
||
/** | ||
* Zips together multiple iterables. Most implementations stop as soon as one iterable is exhausted, | ||
* but this implementation continues until all iterables are exhausted, filling in `undefined` for | ||
* any missing values. | ||
* @param {...Iterable} iterables The iterables to zip together. | ||
* @yields {Array} An array containing the next value from each iterable, or `undefined` if an iterable is exhausted. | ||
* @example | ||
* const zipped = zipAll([1, 2], ['a', 'b', 'c'], [true]); | ||
* console.log([...zipped]); // [[1, 'a', true], [2, 'b', undefined], [undefined, 'c', undefined]] | ||
*/ | ||
const zipAll = function*(...iterables) { | ||
const iterators = iterables.map(iterable => iterable[Symbol.iterator]()); | ||
while (true) { | ||
const results = iterators.map(iterator => iterator.next()); | ||
if (results.every(result => result.done)) { | ||
return; | ||
} | ||
yield results.map(result => result.value); | ||
} | ||
}; | ||
|
||
const main = async () => { | ||
const input = readline.createInterface({ | ||
input: process.stdin | ||
}); | ||
|
||
const browsers = {}; | ||
|
||
for await (const line of input) { | ||
const [browser, version] = line.split(' '); | ||
if (!browsers[browser]) { | ||
browsers[browser] = []; | ||
} | ||
browsers[browser].unshift(version); | ||
} | ||
|
||
process.stdout.write([ | ||
'<!DOCTYPE html>', | ||
'<html>', | ||
' <head>', | ||
' <title>Scratch: Supported Browsers</title>', | ||
' <meta charset="utf-8">', | ||
' <style>', | ||
' table { border-collapse: collapse; }', | ||
' th, td { border: 1px solid black; padding: 0.25rem 0.5rem; text-align: center; }', | ||
' </style>', | ||
' </head>', | ||
' <body>', | ||
' <table>', | ||
' <caption>Supported Browsers</caption>', | ||
' <thead>', | ||
' <tr>', | ||
'' | ||
].join('\n')); | ||
|
||
const browserIds = Object.keys(browsers).sort(); | ||
for (const browserId of browserIds) { | ||
process.stdout.write(` <th scope="col">${friendlyBrowsers[browserId] || browserId}</th>\n`); | ||
} | ||
process.stdout.write([ | ||
' </tr>', | ||
' </thead>', | ||
' <tbody>', | ||
'' | ||
].join('\n')); | ||
for (const versions of zipAll(...Object.values(browsers))) { | ||
process.stdout.write(' <tr>\n'); | ||
for (const version of versions) { | ||
process.stdout.write(` <td>${version || ''}</td>\n`); | ||
} | ||
process.stdout.write(' </tr>\n'); | ||
} | ||
process.stdout.write([ | ||
' </tbody>', | ||
' </table>', | ||
' </body>', | ||
'</html>', | ||
'' | ||
].join('\n')); | ||
}; | ||
|
||
main(); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also Chromium so put "chromium: 'Chromium Based'"