diff --git a/.github/ISSUE_TEMPLATE/1-app-bug.yml b/.github/ISSUE_TEMPLATE/1-app-bug.yml index 7b32068e0..39d7e2e1b 100644 --- a/.github/ISSUE_TEMPLATE/1-app-bug.yml +++ b/.github/ISSUE_TEMPLATE/1-app-bug.yml @@ -56,4 +56,4 @@ body: label: Additional context description: Add any other context about the problem here. validations: - required: false \ No newline at end of file + required: false diff --git a/.github/ISSUE_TEMPLATE/4-feature-request.yml b/.github/ISSUE_TEMPLATE/4-feature-request.yml index 42406120a..03450b468 100644 --- a/.github/ISSUE_TEMPLATE/4-feature-request.yml +++ b/.github/ISSUE_TEMPLATE/4-feature-request.yml @@ -43,4 +43,4 @@ body: label: Additional context description: Add any other context or screenshots about the suggested enhancement here. validations: - required: false \ No newline at end of file + required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 8d47deb5a..26d7b2397 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -11,4 +11,4 @@ contact_links: url: https://roadmap.modrinth.com - name: 📚 Documentation about: Useful documentation about Modrinth's API - url: https://docs.modrinth.com \ No newline at end of file + url: https://docs.modrinth.com diff --git a/.github/workflows/daedalus-docker.yml b/.github/workflows/daedalus-docker.yml index e347a0b33..42a67a22d 100644 --- a/.github/workflows/daedalus-docker.yml +++ b/.github/workflows/daedalus-docker.yml @@ -8,12 +8,12 @@ on: - .github/workflows/daedalus-docker.yml - 'apps/daedalus_client/**' pull_request: - types: [ opened, synchronize ] + types: [opened, synchronize] paths: - .github/workflows/daedalus-docker.yml - 'apps/daedalus_client/**' merge_group: - types: [ checks_requested ] + types: [checks_requested] jobs: docker: @@ -26,15 +26,13 @@ jobs: uses: docker/metadata-action@v3 with: images: ghcr.io/modrinth/daedalus - - - name: Login to GitHub Images + - name: Login to GitHub Images uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push + - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: diff --git a/.github/workflows/daedalus-run.yml b/.github/workflows/daedalus-run.yml index 5468af140..56fbd9f82 100644 --- a/.github/workflows/daedalus-run.yml +++ b/.github/workflows/daedalus-run.yml @@ -21,7 +21,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Pull Docker image from GHCR run: docker pull ghcr.io/modrinth/daedalus:main diff --git a/.github/workflows/labrinth-docker.yml b/.github/workflows/labrinth-docker.yml index f0fcd93ec..6f4080254 100644 --- a/.github/workflows/labrinth-docker.yml +++ b/.github/workflows/labrinth-docker.yml @@ -8,12 +8,12 @@ on: - .github/workflows/labrinth-docker.yml - 'apps/labrinth/**' pull_request: - types: [ opened, synchronize ] + types: [opened, synchronize] paths: - .github/workflows/labrinth-docker.yml - 'apps/labrinth/**' merge_group: - types: [ checks_requested ] + types: [checks_requested] jobs: docker: @@ -29,19 +29,17 @@ jobs: uses: docker/metadata-action@v3 with: images: ghcr.io/modrinth/labrinth - - - name: Login to GitHub Images + - name: Login to GitHub Images uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push + - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: context: ./apps/labrinth push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.docker_meta.outputs.labels }} diff --git a/.github/workflows/turbo-ci.yml b/.github/workflows/turbo-ci.yml index cd5dfa705..0061f621a 100644 --- a/.github/workflows/turbo-ci.yml +++ b/.github/workflows/turbo-ci.yml @@ -2,11 +2,11 @@ name: CI on: push: - branches: ["main"] + branches: ['main'] pull_request: types: [opened, synchronize] merge_group: - types: [ checks_requested ] + types: [checks_requested] jobs: build: diff --git a/.vscode/settings.json b/.vscode/settings.json index 00362a598..fbe97bcf7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,7 @@ { "prettier.endOfLine": "lf", "editor.formatOnSave": true, - "eslint.validate": [ - "javascript", - "javascriptreact", - "typescript", - "typescriptreact" - ], + "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"], "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" } diff --git a/apps/app-frontend/package.json b/apps/app-frontend/package.json index 5bd0edc65..88219e7cd 100644 --- a/apps/app-frontend/package.json +++ b/apps/app-frontend/package.json @@ -8,7 +8,8 @@ "build": "vue-tsc --noEmit && vite build", "tsc:check": "vue-tsc --noEmit", "lint": "eslint . && prettier --check .", - "fix": "eslint . --fix && prettier --write ." + "fix": "eslint . --fix && prettier --write .", + "intl:extract": "formatjs extract \"{,src/components,src/composables,src/helpers,src/pages,src/store}/**/*.{vue,ts,tsx,js,jsx,mts,cts,mjs,cjs}\" --ignore '**/*.d.ts' --ignore 'node_modules' --out-file src/locales/en-US/index.json --format crowdin --preserve-whitespace" }, "dependencies": { "@modrinth/assets": "workspace:*", @@ -28,12 +29,13 @@ "pinia": "^2.1.7", "posthog-js": "^1.158.2", "vite-svg-loader": "^5.1.0", - "vue": "^3.4.21", + "vue": "^3.5.13", "vue-multiselect": "3.0.0", "vue-router": "4.3.0", "vue-virtual-scroller": "v2.0.0-beta.8" }, "devDependencies": { + "@formatjs/cli": "^6.2.12", "@eslint/compat": "^1.1.1", "@nuxt/eslint-config": "^0.5.6", "@vitejs/plugin-vue": "^5.0.4", @@ -47,8 +49,9 @@ "tailwindcss": "^3.4.4", "tsconfig": "workspace:*", "typescript": "^5.5.4", - "vite": "^5.2.8", + "vite": "^5.4.6", "vue-tsc": "^2.1.6" }, - "packageManager": "pnpm@9.4.0" + "packageManager": "pnpm@9.4.0", + "web-types": "../../web-types.json" } diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index f5cd667b8..5b487522e 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -1,17 +1,24 @@ - diff --git a/packages/ui/src/components/base/ManySelect.vue b/packages/ui/src/components/base/ManySelect.vue index 85671398e..443f0d75d 100644 --- a/packages/ui/src/components/base/ManySelect.vue +++ b/packages/ui/src/components/base/ManySelect.vue @@ -6,6 +6,7 @@ :disabled="disabled" :position="position" :direction="direction" + :dropdown-id="dropdownId" @open=" () => { searchQuery = '' @@ -15,15 +16,15 @@