Refactor map renderer and server API
- Updated index.html to enhance UI with new elements for hidden shapes and catalog CSVs. - Changed download button to a button element for better accessibility. - Modified server.js to improve API endpoints: - Renamed overlays endpoint to scene for clarity. - Updated tile rendering endpoints to use atlas instead of tile coordinates. - Added new endpoint for downloading shape catalog CSV files. - Removed unused options in build creation.
This commit is contained in:
parent
ab5e514e61
commit
f93cfc31c8
17 changed files with 2228 additions and 1199 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:20-alpine
|
||||
FROM node:20-alpine AS base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
@ -6,6 +6,31 @@ COPY package.json package-lock.json* ./
|
|||
RUN npm ci --omit=dev --no-audit --no-fund
|
||||
|
||||
COPY src ./src
|
||||
COPY Catalogs ./Catalogs
|
||||
|
||||
ENV PORT=3000
|
||||
EXPOSE 3000
|
||||
|
||||
FROM base AS dev
|
||||
|
||||
CMD ["npm", "start"]
|
||||
|
||||
FROM base AS precache
|
||||
|
||||
COPY STATIC ./STATIC
|
||||
COPY STATIC_REGRET ./STATIC_REGRET
|
||||
RUN npm run build-cache
|
||||
|
||||
FROM node:20-alpine AS production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=precache /app/package.json ./package.json
|
||||
COPY --from=precache /app/package-lock.json ./package-lock.json
|
||||
COPY --from=precache /app/node_modules ./node_modules
|
||||
COPY --from=precache /app/src ./src
|
||||
COPY --from=precache /app/Catalogs ./Catalogs
|
||||
COPY --from=precache /app/.cache ./.cache
|
||||
|
||||
ENV PORT=3000
|
||||
EXPOSE 3000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue