Skip to content

Commit 354677c

Browse files
authored
Merge branch 'main' into main
2 parents 9bf53dc + aff005e commit 354677c

File tree

15 files changed

+72
-42
lines changed

15 files changed

+72
-42
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,28 @@ Code v99.99.999
2222

2323
## Unreleased
2424

25+
Code v1.101.1
26+
27+
### Fixed
28+
29+
- Fix web views not loading due to 401 when requesting the service worker.
30+
31+
## [4.101.1](https://github.com/coder/code-server/releases/tag/v4.101.1) - 2025-06-20
32+
33+
Code v1.101.1
34+
35+
### Changed
36+
37+
- Update to Code 1.101.1.
38+
39+
## [4.101.0](https://github.com/coder/code-server/releases/tag/v4.101.0) - 2025-06-20
40+
41+
Code v1.101.0
42+
43+
### Changed
44+
45+
- Update to Code 1.101.0.
46+
2547
## [4.100.3](https://github.com/coder/code-server/releases/tag/v4.100.3) - 2025-06-03
2648

2749
Code v1.100.3

ci/dev/gen_icons.sh

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,40 @@
11
#!/bin/sh
22
set -eu
33

4+
# Generate icons from a single favicon.svg. favicon.svg should have no fill
5+
# colors set.
46
main() {
57
cd src/browser/media
68

7-
# We need .ico for backwards compatibility.
8-
# The other two are the only icon sizes required by Chrome and
9-
# we use them for stuff like apple-touch-icon as well.
10-
# https://web.dev/add-manifest/
9+
# We need .ico for backwards compatibility. The other two are the only icon
10+
# sizes required by Chrome and we use them for stuff like apple-touch-icon as
11+
# well. https://web.dev/add-manifest/
1112
#
1213
# This should be enough and we can always add more if there are problems.
13-
14+
#
15+
# -quiet to avoid https://github.com/ImageMagick/ImageMagick/issues/884
1416
# -background defaults to white but we want it transparent.
17+
# -density somehow makes the image both sharper and smaller in file size.
18+
#
1519
# https://imagemagick.org/script/command-line-options.php#background
16-
convert -quiet -background transparent -resize 256x256 favicon.svg favicon.ico
17-
# We do not generate the pwa-icon from the favicon as they are slightly different
18-
# designs and sizes.
19-
# See favicon.afdesign and #2401 for details on the differences.
20-
convert -quiet -background transparent -resize 192x192 pwa-icon.png pwa-icon-192.png
21-
convert -quiet -background transparent -resize 512x512 pwa-icon.png pwa-icon-512.png
20+
convert -quiet -background transparent \
21+
-resize 256x256 -density 256x256 \
22+
favicon.svg favicon.ico
2223

23-
# We use -quiet above to avoid https://github.com/ImageMagick/ImageMagick/issues/884
24+
# Generate PWA icons. There should be enough padding to support masking.
25+
convert -quiet -border 60x60 -bordercolor white -background white \
26+
-resize 192x192 -density 192x192 \
27+
favicon.svg pwa-icon-192.png
28+
convert -quiet -border 160x160 -bordercolor white -background white \
29+
-resize 512x512 -density 512x512 \
30+
favicon.svg pwa-icon-512.png
2431

25-
# The following adds dark mode support for the favicon as favicon-dark-support.svg
26-
# There is no similar capability for pwas or .ico so we can only add support to the svg.
27-
favicon_dark_style="<style>
28-
@media (prefers-color-scheme: dark) {
29-
* {
30-
fill: white;
31-
}
32-
}
33-
</style>"
34-
# See https://stackoverflow.com/a/22901380/4283659
35-
# This escapes all newlines so that sed will accept them.
36-
favicon_dark_style="$(printf "%s\n" "$favicon_dark_style" | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/\\n/g')"
37-
sed "$(
38-
cat -n << EOF
39-
s%<rect id="favicon"%$favicon_dark_style<rect id="favicon"%
40-
EOF
41-
)" favicon.svg > favicon-dark-support.svg
32+
# The following adds dark mode support for the favicon as
33+
# favicon-dark-support.svg There is no similar capability for pwas or .ico so
34+
# we can only add support to the svg.
35+
favicon_dark_style="<style>@media (prefers-color-scheme: dark) {* { fill: white; }}</style>"
36+
cp favicon.svg favicon-dark-support.svg
37+
sed "s%<path%$favicon_dark_style\n <path%" favicon.svg > favicon-dark-support.svg
4238
}
4339

4440
main "$@"

ci/helm-chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 3.27.3
18+
version: 3.28.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 4.100.3
23+
appVersion: 4.101.1

ci/helm-chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replicaCount: 1
66

77
image:
88
repository: codercom/code-server
9-
tag: '4.100.3'
9+
tag: '4.101.1'
1010
pullPolicy: Always
1111

1212
# Specifies one or more secrets to be used when pulling images from a

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
in {
1515
devShells.default = pkgs.mkShell {
1616
nativeBuildInputs = with pkgs; [
17+
imagemagick
1718
nodejs
1819
python3
1920
pkg-config

patches/webview.diff

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,19 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index
7171

7272
<meta http-equiv="Content-Security-Policy"
7373
- content="default-src 'none'; script-src 'sha256-gEAyFzmkyqMoTTnN+3KReFUYoHsK4RAJEb+6eiul+UY=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
74-
+ content="default-src 'none'; script-src 'sha256-1qYtPnTQa4VwKNJO61EOhs2agF9TvuQSYIJ27OgzZqI=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
74+
+ content="default-src 'none'; script-src 'sha256-Oi71Tq4Buohx0KDH3yEbVJUzABnqYv9iVLo420HZXqI=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
7575

7676
<!-- Disable pinch zooming -->
7777
<meta name="viewport"
78+
@@ -238,7 +238,7 @@
79+
}
80+
81+
const swPath = encodeURI(`service-worker.js?v=${expectedWorkerVersion}&vscode-resource-base-authority=${searchParams.get('vscode-resource-base-authority')}&remoteAuthority=${searchParams.get('remoteAuthority') ?? ''}`);
82+
- navigator.serviceWorker.register(swPath, { type: 'module' })
83+
+ navigator.serviceWorker.register(swPath)
84+
.then(async registration => {
85+
/**
86+
* @param {MessageEvent} event
7887
@@ -351,6 +351,12 @@
7988

8089
const hostname = location.hostname;
Lines changed: 4 additions & 7 deletions
Loading

src/browser/media/favicon.ico

-500 Bytes
Binary file not shown.

src/browser/media/favicon.svg

Lines changed: 3 additions & 1 deletion
Loading

src/browser/media/pwa-icon-192.png

-3.6 KB
Loading

src/browser/media/pwa-icon-512.png

-9.2 KB
Loading

src/browser/media/pwa-icon.png

-18.9 KB
Binary file not shown.

src/node/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ export const runCodeServer = async (
151151
logger.info(" - Using password from $PASSWORD")
152152
} else if (args.usingEnvHashedPassword) {
153153
logger.info(" - Using password from $HASHED_PASSWORD")
154+
} else if (args["hashed-password"]) {
155+
logger.info(` - Using hashed-password from ${args.config}`)
154156
} else {
155157
logger.info(` - Using password from ${args.config}`)
156158
}

src/node/routes/vscode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ router.get("/manifest.json", async (req, res) => {
190190
src: `{{BASE}}/_static/src/browser/media/pwa-icon-${size}.png`,
191191
type: "image/png",
192192
sizes: `${size}x${size}`,
193+
purpose: "maskable",
193194
})),
194195
},
195196
null,

0 commit comments

Comments
 (0)