Compare commits

...

45 Commits
v1.0.2 ... main

Author SHA1 Message Date
bizcochito ed49a7f23a Merge pull request 'fix(deps): update dependency typescript to v5.7.3' () from renovate/typescript-5.x into main
Reviewed-on: 
2025-01-10 13:23:19 +00:00
bizcochito 9064d51ba1 Merge pull request 'chore(deps): update node.js to v23.6.0' () from renovate/node-23.x into main
Reviewed-on: 
2025-01-10 13:23:08 +00:00
bizcochito fec13f71fa Merge pull request 'chore(deps): update docker/build-push-action digest to b32b51a' () from renovate/docker-build-push-action-digest into main
Reviewed-on: 
2025-01-09 17:58:01 +00:00
Renovate Bot 63e3efac7d fix(deps): update dependency typescript to v5.7.3 2025-01-08 20:03:28 +00:00
Renovate Bot 51c92081c4 chore(deps): update docker/build-push-action digest to b32b51a 2025-01-08 10:01:03 +00:00
Renovate Bot abe31e46bd chore(deps): update node.js to v23.6.0 2025-01-08 02:00:47 +00:00
bizcochito d18ccefa26 fix: pin docker compose images 2025-01-07 10:14:33 +00:00
bizcochito 633a8e6192 Merge pull request 'chore(deps): update docker/setup-buildx-action action to v3' () from renovate/docker-setup-buildx-action-3.x into main
Reviewed-on: 
2025-01-03 11:46:32 +00:00
bizcochito c8b5baf66b Merge pull request 'chore(deps): update docker/build-push-action action to v6' () from renovate/docker-build-push-action-6.x into main
Reviewed-on: 
2025-01-03 11:46:08 +00:00
Renovate Bot 9f338ddac7 chore(deps): update docker/setup-buildx-action action to v3 2025-01-03 11:43:03 +00:00
Renovate Bot 82d00ffa41 chore(deps): update docker/build-push-action action to v6 2025-01-03 11:42:57 +00:00
Alie ff9744d46a add tool versions 2025-01-03 10:22:58 +01:00
bizcochito f8f3ea2614 Merge pull request 'fix(deps): pin dependencies' () from renovate/pin-dependencies into main
Reviewed-on: 
2025-01-03 08:46:56 +00:00
Renovate Bot 1c29e925a5 fix(deps): pin dependencies 2025-01-03 08:38:59 +00:00
bizcochito 2f904a1051 Merge pull request 'chore(deps): update dependency vite to v6.0.7' () from renovate/vite-6.x-lockfile into main
Reviewed-on: 
2025-01-03 08:27:43 +00:00
bizcochito 4e07fd63de Merge pull request 'chore(deps): pin dependency @types/react-dom to 19.0.2' () from renovate/react-monorepo into main
Reviewed-on: 
2025-01-03 08:27:31 +00:00
bizcochito 0320d987ed Merge pull request 'chore(deps): pin node.js' () from renovate/digests-pin into main
Reviewed-on: 
2025-01-03 08:27:19 +00:00
Renovate Bot ccf9aef580 chore(deps): pin node.js 2025-01-03 08:19:09 +00:00
Renovate Bot 621e86e5cb chore(deps): pin dependency @types/react-dom to 19.0.2 2025-01-03 08:19:00 +00:00
bizcochito 4a0b8ca6c7 Update renovate.json 2025-01-03 08:09:40 +00:00
Renovate Bot f1ec83c48a chore(deps): update dependency vite to v6.0.7 2025-01-02 20:04:43 +00:00
bizcochito edfa1f7b24 Merge pull request 'chore(deps): update dependency vite to v6.0.6' () from renovate/vite-6.x-lockfile into main
Reviewed-on: 
2024-12-30 08:01:14 +00:00
Renovate Bot 5b7b1c0d7c chore(deps): update dependency vite to v6.0.6 2024-12-26 03:01:51 +00:00
bizcochito e3c41fc573 Merge pull request 'chore(deps): update node docker tag to v23.5' () from renovate/node-23.x into main
Reviewed-on: 
2024-12-23 17:33:57 +00:00
bizcochito 34ed648a90 Merge pull request 'chore(deps): update dependency vite to v6.0.5' () from renovate/vite-6.x-lockfile into main
Reviewed-on: 
2024-12-23 17:33:07 +00:00
Renovate Bot b0206c0ccd chore(deps): update node docker tag to v23.5 2024-12-21 07:02:04 +00:00
Renovate Bot c129c09d19 chore(deps): update dependency vite to v6.0.5 2024-12-20 12:03:19 +00:00
Alie 6dab85e168 show image url as alt 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
bizcochito c795ca0d14 Merge pull request 'chore(deps): update dependency @types/react-dom to v19.0.2' () from renovate/react-dom-19.x-lockfile into main
Reviewed-on: 
2024-12-10 09:28:50 +00:00
Renovate Bot 7e952c1ef8 chore(deps): update dependency @types/react-dom to v19.0.2 2024-12-09 20:03:08 +00:00
Alie 7ebb596e83 uodate nginx 2024-12-09 10:36:19 +01:00
Renovate Bot cdd3d58b09 chore(deps): update dependency react-dom to v19 2024-12-09 10:36:19 +01:00
Alie e69435efab delete react since react-dom has react as dependency 2024-12-09 10:23:30 +01:00
Alie afb37d98b4 cambios docker compose 2024-12-09 09:49:13 +01:00
Alie 131d99a4f3 delete react since react-dom has react as dependency 2024-12-09 09:47:07 +01:00
bizcochito e798837998 Merge pull request 'chore(deps): update dependency @types/react-dom to v18.3.2' () from renovate/react-dom-18.x-lockfile into main
Reviewed-on: 
2024-12-06 10:08:00 +00:00
bizcochito 8a32a4967b Merge pull request 'chore(deps): update dependency @types/react to v18.3.14' () from renovate/react-18.x-lockfile into main
Reviewed-on: 
2024-12-06 10:07:35 +00:00
Renovate Bot d63adfb17d chore(deps): update dependency @types/react-dom to v18.3.2 2024-12-05 20:01:52 +00:00
Renovate Bot 8f3d7ded67 chore(deps): update dependency @types/react to v18.3.14 2024-12-05 20:01:40 +00:00
bizcochito 85d4cf1b93 Merge pull request 'chore(deps): update dependency @types/react to v18.3.13' () from renovate/react-18.x-lockfile into main
Reviewed-on: 
2024-12-05 17:58:40 +00:00
bizcochito bff65c4f7d Merge pull request 'chore(deps): update dependency vite to v6.0.3' () from renovate/vite-6.x-lockfile into main
Reviewed-on: 
2024-12-05 17:55:59 +00:00
Renovate Bot aa41495512 chore(deps): update dependency vite to v6.0.3 2024-12-05 16:01:29 +00:00
Renovate Bot 35f3d56e95 chore(deps): update dependency @types/react to v18.3.13 2024-12-04 17:01:38 +00:00
9 changed files with 496 additions and 109 deletions

View File

@ -21,10 +21,10 @@ jobs:
- name: Installing necessary packages - name: Installing necessary packages
run: apk add nodejs git curl bash run: apk add nodejs git curl bash
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: https://github.com/docker/metadata-action@v5 uses: https://github.com/docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
with: with:
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
@ -35,15 +35,15 @@ jobs:
type=ref,event=branch type=ref,event=branch
type=semver,pattern={{raw}} type=semver,pattern={{raw}}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
- name: Login to fai.st docker registry - name: Login to fai.st docker registry
uses: docker/login-action@v3 uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with: with:
registry: git.fai.st registry: git.fai.st
username: ${{ secrets.DOCKER_USER }} username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }} password: ${{ secrets.DOCKER_PASS }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6
with: with:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
context: . context: .

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
nodejs 23.6.0

View File

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

View File

@ -1,7 +1,7 @@
services: services:
mongodb: mongodb:
image: mongo:bionic image: mongo:bionic
container_name: mongodb container_name: mongodb-fe
ports: ports:
- "27017:27017" - "27017:27017"
environment: environment:
@ -13,10 +13,10 @@ services:
- mongodb_data:/data/db - mongodb_data:/data/db
bot-api: bot-api:
image: git.fai.st/fedi-image-bot/bot-api:latest image: git.fai.st/fedi-image-bot/bot-api:v1.0.2
container_name: bot-api container_name: bot-api-fe
ports: ports:
- "8080:8080" - 8080:8080
depends_on: depends_on:
- mongodb - mongodb
environment: environment:
@ -27,10 +27,10 @@ services:
JWTSECRET: "cooljwtsecret" JWTSECRET: "cooljwtsecret"
fe-middleware: fe-middleware:
image: git.fai.st/fedi-image-bot/fe-middleware:latest image: git.fai.st/fedi-image-bot/fe-middleware:v1.0.2
container_name: fe-middleware container_name: fe-middleware-fe
ports: ports:
- "8081:8081" - 8081:8081
depends_on: depends_on:
- bot-api - bot-api
environment: environment:
@ -43,7 +43,7 @@ services:
build: . build: .
container_name: bot-image-moderation-fe container_name: bot-image-moderation-fe
ports: ports:
- "80:80" - 80:80
develop: develop:
watch: watch:
- action: rebuild - action: rebuild

537
package-lock.json generated
View File

@ -8,19 +8,275 @@
"name": "bot-image-moderation-fe", "name": "bot-image-moderation-fe",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"react": "^18.2.0", "react-dom": "19.0.0",
"react-dom": "^18.2.0", "typescript": "5.7.3",
"typescript": "^5.2.2", "vite": "6.0.7"
"vite": "^6.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^18.2.43", "@types/react-dom": "19.0.2",
"@types/react-dom": "^18.2.17", "@vitejs/plugin-react-swc": "3.7.2"
"@vitejs/plugin-react-swc": "^3.5.0" }
},
"node_modules/@esbuild/aix-ppc64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz",
"integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==",
"cpu": [
"ppc64"
],
"license": "MIT",
"optional": true,
"os": [
"aix"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/android-arm": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz",
"integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==",
"cpu": [
"arm"
],
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/android-arm64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz",
"integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==",
"cpu": [
"arm64"
],
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/android-x64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz",
"integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/darwin-arm64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz",
"integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==",
"cpu": [
"arm64"
],
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/darwin-x64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz",
"integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/freebsd-arm64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz",
"integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==",
"cpu": [
"arm64"
],
"license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/freebsd-x64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz",
"integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-arm": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz",
"integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==",
"cpu": [
"arm"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-arm64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz",
"integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==",
"cpu": [
"arm64"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-ia32": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz",
"integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==",
"cpu": [
"ia32"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-loong64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz",
"integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==",
"cpu": [
"loong64"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-mips64el": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz",
"integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==",
"cpu": [
"mips64el"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-ppc64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz",
"integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==",
"cpu": [
"ppc64"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-riscv64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz",
"integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==",
"cpu": [
"riscv64"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-s390x": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz",
"integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==",
"cpu": [
"s390x"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
} }
}, },
"node_modules/@esbuild/linux-x64": { "node_modules/@esbuild/linux-x64": {
"version": "0.24.0", "version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz",
"integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@ -33,6 +289,134 @@
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/@esbuild/netbsd-arm64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz",
"integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==",
"cpu": [
"arm64"
],
"license": "MIT",
"optional": true,
"os": [
"netbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/netbsd-x64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz",
"integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"netbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/openbsd-arm64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz",
"integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==",
"cpu": [
"arm64"
],
"license": "MIT",
"optional": true,
"os": [
"openbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/openbsd-x64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz",
"integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"openbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/sunos-x64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz",
"integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"sunos"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/win32-arm64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz",
"integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==",
"cpu": [
"arm64"
],
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/win32-ia32": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz",
"integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==",
"cpu": [
"ia32"
],
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/win32-x64": {
"version": "0.24.2",
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz",
"integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.28.0", "version": "4.28.0",
"cpu": [ "cpu": [
@ -148,30 +532,31 @@
"undici-types": "~5.26.4" "undici-types": "~5.26.4"
} }
}, },
"node_modules/@types/prop-types": {
"version": "15.7.13",
"dev": true,
"license": "MIT"
},
"node_modules/@types/react": { "node_modules/@types/react": {
"version": "18.3.12", "version": "19.0.1",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.1.tgz",
"integrity": "sha512-YW6614BDhqbpR5KtUYzTA+zlA7nayzJRA9ljz9CQoxthR0sDisYZLuvSMsil36t4EH/uAt8T52Xb4sVw17G+SQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"peer": true,
"dependencies": { "dependencies": {
"@types/prop-types": "*",
"csstype": "^3.0.2" "csstype": "^3.0.2"
} }
}, },
"node_modules/@types/react-dom": { "node_modules/@types/react-dom": {
"version": "18.3.1", "version": "19.0.2",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.2.tgz",
"integrity": "sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "peerDependencies": {
"@types/react": "*" "@types/react": "^19.0.0"
} }
}, },
"node_modules/@vitejs/plugin-react-swc": { "node_modules/@vitejs/plugin-react-swc": {
"version": "3.7.2", "version": "3.7.2",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.7.2.tgz",
"integrity": "sha512-y0byko2b2tSVVf5Gpng1eEhX1OvPC7x8yns1Fx8jDzlJp4LS6CMkCPfLw47cjyoMrshQDoQw4qcgjsU9VvlCew==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -184,10 +569,13 @@
"node_modules/csstype": { "node_modules/csstype": {
"version": "3.1.3", "version": "3.1.3",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT",
"peer": true
}, },
"node_modules/esbuild": { "node_modules/esbuild": {
"version": "0.24.0", "version": "0.24.2",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz",
"integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"bin": { "bin": {
@ -197,44 +585,45 @@
"node": ">=18" "node": ">=18"
}, },
"optionalDependencies": { "optionalDependencies": {
"@esbuild/aix-ppc64": "0.24.0", "@esbuild/aix-ppc64": "0.24.2",
"@esbuild/android-arm": "0.24.0", "@esbuild/android-arm": "0.24.2",
"@esbuild/android-arm64": "0.24.0", "@esbuild/android-arm64": "0.24.2",
"@esbuild/android-x64": "0.24.0", "@esbuild/android-x64": "0.24.2",
"@esbuild/darwin-arm64": "0.24.0", "@esbuild/darwin-arm64": "0.24.2",
"@esbuild/darwin-x64": "0.24.0", "@esbuild/darwin-x64": "0.24.2",
"@esbuild/freebsd-arm64": "0.24.0", "@esbuild/freebsd-arm64": "0.24.2",
"@esbuild/freebsd-x64": "0.24.0", "@esbuild/freebsd-x64": "0.24.2",
"@esbuild/linux-arm": "0.24.0", "@esbuild/linux-arm": "0.24.2",
"@esbuild/linux-arm64": "0.24.0", "@esbuild/linux-arm64": "0.24.2",
"@esbuild/linux-ia32": "0.24.0", "@esbuild/linux-ia32": "0.24.2",
"@esbuild/linux-loong64": "0.24.0", "@esbuild/linux-loong64": "0.24.2",
"@esbuild/linux-mips64el": "0.24.0", "@esbuild/linux-mips64el": "0.24.2",
"@esbuild/linux-ppc64": "0.24.0", "@esbuild/linux-ppc64": "0.24.2",
"@esbuild/linux-riscv64": "0.24.0", "@esbuild/linux-riscv64": "0.24.2",
"@esbuild/linux-s390x": "0.24.0", "@esbuild/linux-s390x": "0.24.2",
"@esbuild/linux-x64": "0.24.0", "@esbuild/linux-x64": "0.24.2",
"@esbuild/netbsd-x64": "0.24.0", "@esbuild/netbsd-arm64": "0.24.2",
"@esbuild/openbsd-arm64": "0.24.0", "@esbuild/netbsd-x64": "0.24.2",
"@esbuild/openbsd-x64": "0.24.0", "@esbuild/openbsd-arm64": "0.24.2",
"@esbuild/sunos-x64": "0.24.0", "@esbuild/openbsd-x64": "0.24.2",
"@esbuild/win32-arm64": "0.24.0", "@esbuild/sunos-x64": "0.24.2",
"@esbuild/win32-ia32": "0.24.0", "@esbuild/win32-arm64": "0.24.2",
"@esbuild/win32-x64": "0.24.0" "@esbuild/win32-ia32": "0.24.2",
"@esbuild/win32-x64": "0.24.2"
} }
}, },
"node_modules/js-tokens": { "node_modules/fsevents": {
"version": "4.0.0", "version": "2.3.3",
"license": "MIT" "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
}, "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"node_modules/loose-envify": { "hasInstallScript": true,
"version": "1.4.0",
"license": "MIT", "license": "MIT",
"dependencies": { "optional": true,
"js-tokens": "^3.0.0 || ^4.0.0" "os": [
}, "darwin"
"bin": { ],
"loose-envify": "cli.js" "engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
} }
}, },
"node_modules/nanoid": { "node_modules/nanoid": {
@ -284,24 +673,25 @@
} }
}, },
"node_modules/react": { "node_modules/react": {
"version": "18.3.1", "version": "19.0.0",
"resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz",
"integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "peer": true,
"loose-envify": "^1.1.0"
},
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/react-dom": { "node_modules/react-dom": {
"version": "18.3.1", "version": "19.0.0",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz",
"integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"loose-envify": "^1.1.0", "scheduler": "^0.25.0"
"scheduler": "^0.23.2"
}, },
"peerDependencies": { "peerDependencies": {
"react": "^18.3.1" "react": "^19.0.0"
} }
}, },
"node_modules/rollup": { "node_modules/rollup": {
@ -340,11 +730,10 @@
} }
}, },
"node_modules/scheduler": { "node_modules/scheduler": {
"version": "0.23.2", "version": "0.25.0",
"license": "MIT", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz",
"dependencies": { "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==",
"loose-envify": "^1.1.0" "license": "MIT"
}
}, },
"node_modules/source-map-js": { "node_modules/source-map-js": {
"version": "1.2.1", "version": "1.2.1",
@ -354,7 +743,9 @@
} }
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "5.7.2", "version": "5.7.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
"license": "Apache-2.0", "license": "Apache-2.0",
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
@ -371,12 +762,12 @@
"peer": true "peer": true
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "6.0.2", "version": "6.0.7",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.0.2.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-6.0.7.tgz",
"integrity": "sha512-XdQ+VsY2tJpBsKGs0wf3U/+azx8BBpYRHFAyKm5VeEZNOJZRB63q7Sc8Iup3k0TrN3KO6QgyzFf+opSbfY1y0g==", "integrity": "sha512-RDt8r/7qx9940f8FcOIAH9PTViRrghKaK2K1jY3RaAURrEUbm9Du1mJ72G+jlhtG3WwodnfzY8ORQZbBavZEAQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"esbuild": "^0.24.0", "esbuild": "^0.24.2",
"postcss": "^8.4.49", "postcss": "^8.4.49",
"rollup": "^4.23.0" "rollup": "^4.23.0"
}, },

View File

@ -8,14 +8,12 @@
"build": "tsc && vite build" "build": "tsc && vite build"
}, },
"dependencies": { "dependencies": {
"react": "^18.2.0", "react-dom": "19.0.0",
"react-dom": "^18.2.0", "typescript": "5.7.3",
"typescript": "^5.2.2", "vite": "6.0.7"
"vite": "^6.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^18.2.43", "@types/react-dom": "19.0.2",
"@types/react-dom": "^18.2.17", "@vitejs/plugin-react-swc": "3.7.2"
"@vitejs/plugin-react-swc": "^3.5.0"
} }
} }

View File

@ -1,3 +1,5 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json" "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "helpers:pinGitHubActionDigests"],
"rangeStrategy": "pin"
} }

View File

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

View File

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