From 605687a6683c302ce2b2f3140c320308b1a6823c Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Mon, 23 Jun 2025 11:41:10 +0000 Subject: [PATCH] Start using new frontend I know this still needs work, but may as well start using it --- Dockerfile.debian | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/Dockerfile.debian b/Dockerfile.debian index 7283bc5..5314578 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -309,7 +309,7 @@ RUN \ # Install Web Frontend ARG NODE_VERSION="v20" -ARG FRONTEND_VERSION=a8eb92f +ARG FRONTEND_VERSION=29e93b2 RUN \ echo "**** Install Node ${NODE_VERSION} ****" \ && mkdir -p /tmp/nodejs \ @@ -326,18 +326,34 @@ RUN \ && mkdir -p /opt \ && cd /opt \ && rm -rf /opt/frontend \ - && git clone https://github.com/Steam-Headless/frontend.git --branch master /opt/frontend \ + && git clone https://github.com/Steam-Headless/frontend.git --branch dev-SHUI /opt/frontend \ && cd /opt/frontend \ && git checkout ${FRONTEND_VERSION} 2> /dev/null \ && git submodule init \ && git submodule update --depth 1 --recursive \ && rm -rf /opt/frontend/.git \ && \ + echo "**** Install SHUIv2 requirements ****" \ + && cd /opt/frontend \ + && python3 -m venv --symlinks ./venv \ + && ./venv/bin/python3 -m pip install --no-cache-dir --upgrade pip \ + && ./venv/bin/python3 -m pip install --no-cache-dir -r ./requirements.txt \ + && \ + echo "**** Build SHUIv2 vue ****" \ + && cd /opt/frontend \ + && cd ./shui2/shui-vue/ \ + && npm ci \ + && npm run build \ + && cd /opt/frontend \ + && cd ./shui2/server/ \ + && npm ci \ + && \ echo "**** Configure Web Frontend ****" \ - && echo '' > /opt/frontend/index.html \ - && echo '

If you are not redirected, click here.

' >> /opt/frontend/index.html \ - && chmod -R 755 /opt/frontend \ - && convert /opt/frontend/web/images/icons/novnc-ios-180.png -resize "128x128" /tmp/steam-headless.png \ + && cd /opt/frontend \ + && echo '' > ./index.html \ + && echo '

If you are not redirected, click here.

' >> ./index.html \ + && chmod -R a+r . \ + && convert ./web/images/icons/novnc-ios-180.png -resize "128x128" /tmp/steam-headless.png \ && xdg-icon-resource install --novendor --size 128 /tmp/steam-headless.png \ && \ echo "**** Section cleanup ****" \