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") }}

- +