Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Alie | 6dab85e168 | |
Alie | 5296f27ed0 | |
Alie | cb81c4f20b |
|
@ -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
|
||||
|
|
18
src/App.tsx
18
src/App.tsx
|
@ -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} />;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue