This commit is contained in:
Orionis312050 committed 2026-10-10 14:34:43 +02:00
1 parent 1198528f31
commit ea9ff203ba
5 files changed
+145 -11

No files matched your search

-9
View File
@@ -1,9 +0,0 @@
{
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "1.7.1",
"resolved": "ghcr.io/devcontainers/features/node@sha256:8c0de46939b61958041700ee89e3493f3b2e4131a06dc46b4d9423427d06e5f6",
"integrity": "sha256:8c0de46939b61958041700ee89e3493f3b2e4131a06dc46b4d9423427d06e5f6"
}
}
}
+6 -1
View File
@@ -17,7 +17,11 @@
"containerEnv": { "containerEnv": {
"UV_LINK_MODE": "copy" "UV_LINK_MODE": "copy"
}, },
"mounts": [
"mistral-vibe-home:/home/vscode/.vibe"
],
"postCreateCommand": "uv sync && npm --prefix web install && python --version && node --version && ffmpeg -version | head -n 1 && command -v makemkvcon && uv --version", "postCreateCommand": "uv sync && npm --prefix web install && python --version && node --version && ffmpeg -version | head -n 1 && command -v makemkvcon && uv --version",
"postStartCommand": "sudo chown -R vscode:vscode /home/vscode/.vibe || true",
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [
@@ -25,7 +29,8 @@
"ms-python.python", "ms-python.python",
"ms-python.vscode-pylance", "ms-python.vscode-pylance",
"dbaeumer.vscode-eslint", "dbaeumer.vscode-eslint",
"esbenp.prettier-vscode" "esbenp.prettier-vscode",
"mistralai.mistral-vibe-code"
] ]
} }
}, },
+106
View File
@@ -0,0 +1,106 @@
stages:
- build
- test
include:
- template: Jobs/Code-Quality.gitlab-ci.yml
- template: Jobs/Container-Scanning.gitlab-ci.yml
- template: Jobs/Secret-Detection.gitlab-ci.yml
- template: Jobs/SAST.gitlab-ci.yml
default:
interruptible: true
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH
variables:
UV_LINK_MODE: copy
UV_CACHE_DIR: "$CI_PROJECT_DIR/.uv-cache"
npm_config_cache: "$CI_PROJECT_DIR/.npm-cache"
api:build:
stage: build
image: ghcr.io/astral-sh/uv:python3.13-bookworm
script:
- uv sync --frozen
cache:
- key:
files:
- uv.lock
paths:
- .uv-cache
web:build:
stage: build
image: node:22
script:
- npm --prefix web ci
- npm --prefix web run build
artifacts:
paths:
- web/dist
expire_in: 1 week
cache:
- key:
files:
- web/package-lock.json
paths:
- .npm-cache
api:test:
stage: test
image: ghcr.io/astral-sh/uv:python3.13-bookworm
script:
- uv sync --frozen
- uv run ruff check .
- uv run pytest --junitxml=pytest-report.xml
artifacts:
when: always
reports:
junit: pytest-report.xml
cache:
- key:
files:
- uv.lock
paths:
- .uv-cache
web:test:
stage: test
image: node:22
script:
- npm --prefix web ci
- npm --prefix web run lint
cache:
- key:
files:
- web/package-lock.json
paths:
- .npm-cache
container:build:
stage: build
image: docker:29.1.4
services:
- name: docker:29.1.4-dind
command: ['--tls=false', '--host=tcp://0.0.0.0:2375']
variables:
DOCKER_DRIVER: overlay2
DOCKER_CERT_PATH: ""
DOCKER_TLS_CERTDIR: ""
DOCKER_TLS_VERIFY: ""
IMAGE_TAG: "$CI_REGISTRY_IMAGE/devcontainer:$CI_COMMIT_SHA"
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- docker build -f .devcontainer/Dockerfile -t "$IMAGE_TAG" .
- docker push "$IMAGE_TAG"
container_scanning:
variables:
CS_IMAGE: "$CI_REGISTRY_IMAGE/devcontainer:$CI_COMMIT_SHA"
CS_REGISTRY_USER: "$CI_REGISTRY_USER"
CS_REGISTRY_PASSWORD: "$CI_REGISTRY_PASSWORD"
+28
View File
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
export default tseslint.config([
{ ignores: ['dist'] },
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-refresh': reactRefresh,
},
rules: {
'react-refresh/only-export-components': 'warn',
'react-hooks/set-state-in-effect': 'off',
},
},
])
+5 -1
View File
@@ -832,7 +832,11 @@ export default function App() {
onKeyDown={(event) => { onKeyDown={(event) => {
if (event.key === "Enter" || event.key === " ") { if (event.key === "Enter" || event.key === " ") {
event.preventDefault(); event.preventDefault();
selectMode ? toggleSelect(movie.id) : openMovie(movie); if (selectMode) {
toggleSelect(movie.id);
} else {
openMovie(movie);
}
} }
}} }}
> >