From 02dcc1efb9756d8c1fb578d9a193db26ea512a95 Mon Sep 17 00:00:00 2001 From: foslyvn Date: Sun, 14 Jul 2024 17:32:08 +0700 Subject: [PATCH 1/4] update html --- .vscode/settings.json | 11 +++++++++++ nginx/web/desktop.html | 44 ------------------------------------------ server/Dockerfile | 2 +- server/server.go | 2 +- 4 files changed, 13 insertions(+), 46 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..db45ec0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "workbench.colorCustomizations": { + "[One Dark Pro Mix]": { + "activityBar.activeBackground": "#393E46", + "activityBar.activeBorder": "#E7F6F2", + "activityBar.background": "#222831" + }, + "minimap.background": "#00000000", + "scrollbar.shadow": "#00000000" + } +} \ No newline at end of file diff --git a/nginx/web/desktop.html b/nginx/web/desktop.html index 68099dc..cc3633c 100644 --- a/nginx/web/desktop.html +++ b/nginx/web/desktop.html @@ -35,50 +35,6 @@ - -
-
-

Right Click to place a pixel.

-
-

- Use the mouse wheel or + and - - buttons to zoom in. -

-
-

- Ctrl + Right Click to select a color from the canvas. -

-
-
-
-

Tap to place a pixel.

-
-

- Pinch to zoom or use the + and - - buttons. -

-
-

Long press to select a color from the canvas.

-
-
-

Set a hexadecimal color value in the lower left corner.

-
-

- Source code on - GitHub. -

- -
diff --git a/server/Dockerfile b/server/Dockerfile index 8ed26f7..46232ac 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -13,6 +13,6 @@ WORKDIR /app COPY --from=build /build/place . -EXPOSE 80 +EXPOSE 4000 CMD [ "/app/place", "--width", "1280", "--height", "720", "--save-location", "/place/place.png" ] diff --git a/server/server.go b/server/server.go index f3c5d88..e2616bc 100644 --- a/server/server.go +++ b/server/server.go @@ -18,7 +18,7 @@ import ( ) var ( - address = flag.String("address", ":80", "Address to listen on") + address = flag.String("address", ":4000", "Address to listen on") width = flag.Int("width", 1000, "Width of the canvas") height = flag.Int("height", 1000, "Height of the canvas") saveInterval = flag.Int("save-interval", 120, "Interval to save the canvas (in seconds)") From 9c447b4dcbe0dcf6f9f806ad6939534fb77550bd Mon Sep 17 00:00:00 2001 From: foslyvn Date: Sun, 14 Jul 2024 17:35:18 +0700 Subject: [PATCH 2/4] update html --- .gitignore | 1 + server/server.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1269488..d72b423 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +/.vscode data diff --git a/server/server.go b/server/server.go index e2616bc..f3c5d88 100644 --- a/server/server.go +++ b/server/server.go @@ -18,7 +18,7 @@ import ( ) var ( - address = flag.String("address", ":4000", "Address to listen on") + address = flag.String("address", ":80", "Address to listen on") width = flag.Int("width", 1000, "Width of the canvas") height = flag.Int("height", 1000, "Height of the canvas") saveInterval = flag.Int("save-interval", 120, "Interval to save the canvas (in seconds)") From 413a7d70d0c8b7931f04dd892161d78cba4a87f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Sun, 14 Jul 2024 17:37:34 +0700 Subject: [PATCH 3/4] Update Dockerfile --- server/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index 46232ac..8ed26f7 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -13,6 +13,6 @@ WORKDIR /app COPY --from=build /build/place . -EXPOSE 4000 +EXPOSE 80 CMD [ "/app/place", "--width", "1280", "--height", "720", "--save-location", "/place/place.png" ] From bee252cb3719d1d574c16edfdda0c6b8045536d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Sun, 14 Jul 2024 17:38:01 +0700 Subject: [PATCH 4/4] Delete .vscode/settings.json --- .vscode/settings.json | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index db45ec0..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "workbench.colorCustomizations": { - "[One Dark Pro Mix]": { - "activityBar.activeBackground": "#393E46", - "activityBar.activeBorder": "#E7F6F2", - "activityBar.background": "#222831" - }, - "minimap.background": "#00000000", - "scrollbar.shadow": "#00000000" - } -} \ No newline at end of file