feat: modernize UI with Astro+Svelte and optimize Docker build

- Migrated frontend to Astro + Svelte 5 for cyberpunk aesthetic
- Switched to Bun for faster frontend builds
- Implemented multi-stage Docker build for smaller image size
- Refactored backend to serve static assets and proxy API requests
- Added recovery mode for manual file management
This commit is contained in:
wander 2026-02-04 15:30:04 -05:00
parent 985a05858a
commit aa94920650
62 changed files with 6589 additions and 18 deletions

View file

@ -0,0 +1,54 @@
#!/bin/bash
# build package
set -e
if [[ $(basename "$(pwd)") != 'browser-extension' ]]; then
echo 'not in browser-extension folder'
exit 1
fi
echo "latest tags:"
git tag | tail -n 5 | sort -r
printf "\ncreate new version:\n"
read -r VERSION
# build release zip files
function create_zip {
cd extension
# firefox
rm manifest.json
cp manifest-firefox.json manifest.json
zip -rq ../release/ta-companion-"$VERSION"-firefox.zip . \
-x manifest-chrome.json -x manifest-firefox.json
# chrome
rm manifest.json
cp manifest-chrome.json manifest.json
zip -rq ../release/ta-companion-"$VERSION"-chrome.zip . \
-x manifest-chrome.json -x manifest-firefox.json
rm manifest.json
cd ..
}
# create release tag
function create_release {
git tag -a "$VERSION" -m "new release version $VERSION"
git push origin "$VERSION"
}
create_zip
create_release
##
exit 0