mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 09:19:43 +00:00
## Summary Enable `better-tailwindcss/enforce-consistent-class-order` lint rule and auto-fix all 1027 violations across 263 files. Stacked on #9427. ## Changes - **What**: Sort Tailwind classes into consistent order via `eslint --fix` - Enable `enforce-consistent-class-order` as `'error'` in eslint config - Purely cosmetic reordering — no behavioral or visual changes ## Review Focus Mechanical auto-fix PR — all changes are class reordering only. This is the largest diff but lowest risk since it changes no class names, only their order. **Stack:** #9417 → #9427 → **this PR** Fixes #9300 (partial — 3 of 3 rules) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9428-fix-enable-enforce-consistent-class-order-tailwind-lint-rule-31a6d73d3650811c9065f5178ba3e724) by [Unito](https://www.unito.io)
53 lines
1.2 KiB
Vue
53 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import Popover from '@/components/ui/Popover.vue'
|
|
import Button from '@/components/ui/button/Button.vue'
|
|
|
|
const { t } = useI18n()
|
|
|
|
const { rename, remove } = defineProps<{
|
|
title: string
|
|
subTitle?: string
|
|
rename?: () => void
|
|
remove?: () => void
|
|
}>()
|
|
|
|
const entries = computed(() => {
|
|
const items = []
|
|
if (rename)
|
|
items.push({
|
|
label: t('g.rename'),
|
|
command: rename,
|
|
icon: 'icon-[lucide--pencil]'
|
|
})
|
|
if (remove)
|
|
items.push({
|
|
label: t('g.delete'),
|
|
command: remove,
|
|
icon: 'icon-[lucide--trash-2]'
|
|
})
|
|
return items
|
|
})
|
|
</script>
|
|
<template>
|
|
<div class="my-2 flex items-center-safe gap-2 rounded-lg p-2">
|
|
<div
|
|
class="drag-handle mr-auto inline max-w-max min-w-0 flex-[4_1_0%] truncate"
|
|
v-text="title"
|
|
/>
|
|
<div
|
|
class="drag-handle inline max-w-max min-w-0 flex-[2_1_0%] truncate text-end text-muted-foreground"
|
|
v-text="subTitle"
|
|
/>
|
|
<Popover :entries>
|
|
<template #button>
|
|
<Button variant="muted-textonly">
|
|
<i class="icon-[lucide--ellipsis]" />
|
|
</Button>
|
|
</template>
|
|
</Popover>
|
|
</div>
|
|
</template>
|