From df16dc94f72c2b677316524e87cccf7d4fb3eb2e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 14:52:59 +0000 Subject: [PATCH] chore: auto-fix lint & formatting [skip ci] --- CONTRIBUTING.md | 26 +++++++++++----------- app/components/FilterNodeEditor.vue | 8 +++---- app/components/RouteEditor.vue | 20 +++++++++++------ app/components/TagInput.vue | 4 +++- app/composables/useFilterNode.ts | 7 ++---- app/types.ts | 19 ++++++++-------- docs/api/admin.md | 6 ++--- docs/guide/configuration.md | 18 +++++++-------- docs/guide/filters.md | 34 +++++++++++++++-------------- docs/guide/routes.md | 12 +++++----- docs/zh/guide/configuration.md | 18 +++++++-------- docs/zh/guide/filters.md | 34 +++++++++++++++-------------- docs/zh/guide/routes.md | 12 +++++----- server/lib/events/filter-ast.ts | 2 +- server/lib/fragments.ts | 9 ++------ server/lib/types.ts | 9 +------- server/lib/web/admin.ts | 29 +++++++++++++++++++----- 17 files changed, 142 insertions(+), 125 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6ca6a40..f129035 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,19 +17,19 @@ bun run dev # Start Nuxt dev server (HMR + Nitro) ## Scripts -| Command | Description | -| ---------------------- | ---------------------------------------- | -| `bun run dev` | Start Nuxt dev server | -| `bun run build` | Production build (cloudflare preset) | -| `bunx wrangler dev` | Preview a built worker (Miniflare) | -| `bun run typecheck` | TypeScript type checking | -| `bun run lint` | ESLint (TypeScript) | -| `bun run lint:md` | Markdownlint | -| `bun test` | Run the unit-test suite | -| `bun run format` | Format all files with Prettier | -| `bun run format:check` | Check Prettier formatting | -| `bun run docs:dev` | Start the VitePress docs dev server | -| `bun run db:migrate` | Apply D1 migrations locally | +| Command | Description | +| ---------------------- | ------------------------------------ | +| `bun run dev` | Start Nuxt dev server | +| `bun run build` | Production build (cloudflare preset) | +| `bunx wrangler dev` | Preview a built worker (Miniflare) | +| `bun run typecheck` | TypeScript type checking | +| `bun run lint` | ESLint (TypeScript) | +| `bun run lint:md` | Markdownlint | +| `bun test` | Run the unit-test suite | +| `bun run format` | Format all files with Prettier | +| `bun run format:check` | Check Prettier formatting | +| `bun run docs:dev` | Start the VitePress docs dev server | +| `bun run db:migrate` | Apply D1 migrations locally | ## Code Style diff --git a/app/components/FilterNodeEditor.vue b/app/components/FilterNodeEditor.vue index 17a1ea9..693a711 100644 --- a/app/components/FilterNodeEditor.vue +++ b/app/components/FilterNodeEditor.vue @@ -5,10 +5,10 @@ import { FILTER_TYPES, FILTER_OPS } from "~/types"; defineOptions({ name: "FilterNodeEditor" }); -const props = withDefaults( - defineProps<{ node: NodeForm; depth?: number; deletable?: boolean }>(), - { depth: 0, deletable: false }, -); +const props = withDefaults(defineProps<{ node: NodeForm; depth?: number; deletable?: boolean }>(), { + depth: 0, + deletable: false, +}); const emit = defineEmits<{ (e: "remove"): void }>(); diff --git a/app/components/RouteEditor.vue b/app/components/RouteEditor.vue index dbcf6bd..afc0719 100644 --- a/app/components/RouteEditor.vue +++ b/app/components/RouteEditor.vue @@ -3,7 +3,13 @@ import { computed, reactive, ref, watch } from "vue"; import type { Filter, FilterNode, NamedFragment, Route, RouteTarget, RouteTemplate } from "~/types"; import { FRAGMENT_PRESETS, ROUTE_TEMPLATES } from "~/types"; import type { NodeForm } from "~/composables/useFilterNode"; -import { blankLeafForm, blankNode, nodeToForm, nodeFormToRouteFilters, formToNode } from "~/composables/useFilterNode"; +import { + blankLeafForm, + blankNode, + nodeToForm, + nodeFormToRouteFilters, + formToNode, +} from "~/composables/useFilterNode"; interface TargetForm { platform: "discord" | "telegram"; @@ -392,11 +398,7 @@ watch(

{{ t("routeEditor.testMatch") }}

- +