Move scroll animations to Rust/WASM, enable Hasura, and move bookmarks to home sidebar
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 12m7s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 12m7s
Port AutoScroll and Headline scroll logic from Vue/JS to Rust compiled to WASM via wasm-pack. Add multi-stage Docker build for WASM compilation, Vite WASM plugins, and top-level await for WASM init. Enable Hasura service in docker-compose. Move bookmarks from a separate route to an inline sidebar component on the home page. Fix ToggleHeader click propagation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
# Stage 1: Build WASM from Rust
|
||||
FROM rust:slim AS wasm-builder
|
||||
RUN rustup target add wasm32-unknown-unknown \
|
||||
&& cargo install wasm-pack
|
||||
WORKDIR /wasm
|
||||
COPY crates/stp_wasm/ crates/stp_wasm/
|
||||
RUN wasm-pack build crates/stp_wasm --target web --out-dir ../../src/wasm
|
||||
|
||||
# Stage 2: Build Vue frontend
|
||||
FROM node:22-slim
|
||||
RUN apt-get update && apt-get install -y make git && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
CMD ["sh", "-c", "npm run build -- --outDir /output --emptyOutDir"]
|
||||
COPY --from=wasm-builder /wasm/src/wasm/ src/wasm/
|
||||
CMD ["sh", "-c", "npx vite build --outDir /output --emptyOutDir"]
|
||||
|
||||
Reference in New Issue
Block a user