From 4be29cc02fc13a36667b7316292c6ca2c632bbae Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Wed, 26 Aug 2026 18:01:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(plugin):=20=E5=AE=8C=E5=96=84=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E5=AE=89=E8=A3=85=E7=8A=B6=E6=80=81=E4=B8=8E=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E6=9D=A5=E6=BA=90=E9=80=89=E6=8B=A9=20(#723)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 24 ++--- src/components/cards/PluginAppCard.vue | 4 +- src/components/cards/PluginCard.vue | 11 ++- src/components/cards/PluginMixedSortCard.vue | 3 + .../cards/__tests__/PluginCard.spec.ts | 13 +++ .../dialog/PluginMarketDetailDialog.vue | 86 ++++++++++++++--- .../PluginMarketDetailDialog.spec.ts | 12 ++- src/locales/en-US.ts | 1 + src/locales/zh-CN.ts | 1 + src/locales/zh-TW.ts | 1 + src/views/plugin/PluginCardListView.vue | 70 +++++++++----- .../__tests__/PluginCardListView.spec.ts | 92 ++++++++++++++++++- 12 files changed, 259 insertions(+), 59 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index ca10e965..9a293b86 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,7 +3,10 @@ import sonarjs from 'eslint-plugin-sonarjs' import pluginVue from 'eslint-plugin-vue' import globals from 'globals' import tseslint from 'typescript-eslint' -import { defineConfig, globalIgnores } from 'eslint/config' +import { defineConfig, globalIgnores, includeIgnoreFile } from 'eslint/config' +import { fileURLToPath } from 'node:url' + +const gitignorePath = fileURLToPath(new URL('.gitignore', import.meta.url)) const javascriptFiles = ['**/*.{js,mjs,cjs,jsx}'] @@ -91,17 +94,14 @@ const vueConfigs = pluginVue.configs['flat/essential'].map(config => ({ })) export default defineConfig([ - globalIgnores([ - '**/node_modules/**', - '**/dist/**', - '**/dev-dist/**', - '**/coverage/**', - '**/.worktrees/**', - '**/vite.config.*.timestamp-*.mjs', - 'public/plugin_icon/**', - 'src/@iconify/**', - '**/*.d.ts', - ]), + includeIgnoreFile(gitignorePath, { + gitignoreResolution: true, + name: 'moviepilot/gitignore', + }), + globalIgnores( + ['**/.worktrees/**', '**/vite.config.*.timestamp-*.mjs', 'src/@iconify/**', '**/*.d.ts'], + 'moviepilot/eslint-only-ignores', + ), { ...js.configs.recommended, name: 'moviepilot/javascript', diff --git a/src/components/cards/PluginAppCard.vue b/src/components/cards/PluginAppCard.vue index 9cf28813..fa256007 100644 --- a/src/components/cards/PluginAppCard.vue +++ b/src/components/cards/PluginAppCard.vue @@ -1,7 +1,7 @@