Compare commits

...

3 Commits
v1.0.3 ... main

Author SHA1 Message Date
Alie 6dab85e168 show image url as alt
Build image / build (push) Successful in 1m4s Details
2024-12-12 13:01:23 +01:00
Alie 5296f27ed0 remove uneeded tags 2024-12-12 12:58:48 +01:00
Alie cb81c4f20b update dockerfile 2024-12-12 12:58:48 +01:00
3 changed files with 9 additions and 14 deletions

View File

@ -1,9 +1,9 @@
FROM --platform=$BUILDPLATFORM node:23-alpine AS install
FROM --platform=$BUILDPLATFORM node:23.4-alpine AS install
RUN mkdir -p /temp/prod
COPY package*.json /temp/prod/
RUN cd /temp/prod && npm install --frozen-lockfile
COPY . /temp/prod/
RUN cd /temp/prod && npm run build
FROM nginx:1-alpine3.20-slim AS release
FROM nginx:1.27.3-alpine3.20-slim AS release
COPY --from=install /temp/prod/dist /usr/share/nginx/html

View File

@ -11,20 +11,14 @@ function App() {
if (token) {
return (
<>
<ImageModerator
token={token}
apiUrl={apiUrl}
middlewareUrl={middlewareUrl}
/>
</>
<ImageModerator
token={token}
apiUrl={apiUrl}
middlewareUrl={middlewareUrl}
/>
);
} else {
return (
<>
<Login setRemote={setRemote} />
</>
);
return <Login setRemote={setRemote} />;
}
}

View File

@ -65,6 +65,7 @@ export default function ImageModerator({
const url = data.url;
const tags = data.tags;
setImageData({ url, tags });
setImageAlt(url);
})
.catch((error) => {
setImageAlt("Error");