From 5ed511d3b64637f2540a001bc1ecf32fd8473f54 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Tue, 5 Mar 2024 19:35:03 -0300 Subject: [PATCH] frontend --- Dockerfile | 4 +- static/index.html | 3 + ts-client/Makefile | 2 +- ts-client/client.ts | 19 ++-- ts-client/package-lock.json | 174 +++++++++++++++++++----------------- ts-client/package.json | 17 ++-- 6 files changed, 121 insertions(+), 98 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc96f67..73b590e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ##### Builder #### -FROM rust:1.75-alpine3.19 as builder +FROM rust:1.76-alpine3.19 as builder # Install dependencies RUN apk add --no-cache sqlite npm musl-dev fd minify && npm install -g typescript @@ -37,7 +37,7 @@ WORKDIR /usr/src/huellas/ts-client/ RUN npm ci # Transpile and delete the first line of javascript ts-client -RUN tsc && sed -i '1d' build/client.js +RUN tsc && sed -i '1,2d' build/client.js # Minify static files COPY static /usr/src/huellas/static/ diff --git a/static/index.html b/static/index.html index a2335c5..8a68310 100644 --- a/static/index.html +++ b/static/index.html @@ -17,6 +17,9 @@ +