mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-15 11:44:10 +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)
72 lines
1.9 KiB
Vue
72 lines
1.9 KiB
Vue
<template>
|
|
<div v-if="shouldShow" class="flex justify-end">
|
|
<div
|
|
class="flex items-center text-[0.75rem] leading-[normal] whitespace-nowrap drop-shadow-[1px_1px_8px_rgba(0,0,0,0.4)]"
|
|
role="status"
|
|
aria-live="polite"
|
|
aria-atomic="true"
|
|
>
|
|
<div class="flex items-center text-base-foreground">
|
|
<span class="font-normal">
|
|
{{ t('sideToolbar.queueProgressOverlay.inlineTotalLabel') }}:
|
|
</span>
|
|
<span class="w-[5ch] shrink-0 text-right font-bold tabular-nums">
|
|
{{ totalPercentFormatted }}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="flex items-center text-muted-foreground">
|
|
<span
|
|
class="w-[16ch] shrink-0 truncate text-right"
|
|
:title="currentNodeName"
|
|
>
|
|
{{ currentNodeName }}:
|
|
</span>
|
|
<span class="w-[5ch] shrink-0 text-right tabular-nums">
|
|
{{ currentNodePercentFormatted }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import { st } from '@/i18n'
|
|
import { useQueueProgress } from '@/composables/queue/useQueueProgress'
|
|
import { useExecutionStore } from '@/stores/executionStore'
|
|
import { resolveNodeDisplayName } from '@/utils/nodeTitleUtil'
|
|
|
|
const props = defineProps<{
|
|
hidden?: boolean
|
|
}>()
|
|
|
|
const { t } = useI18n()
|
|
|
|
const executionStore = useExecutionStore()
|
|
const {
|
|
totalPercent,
|
|
totalPercentFormatted,
|
|
currentNodePercent,
|
|
currentNodePercentFormatted
|
|
} = useQueueProgress()
|
|
|
|
const currentNodeName = computed(() => {
|
|
return resolveNodeDisplayName(executionStore.executingNode, {
|
|
emptyLabel: t('g.emDash'),
|
|
untitledLabel: t('g.untitled'),
|
|
st
|
|
})
|
|
})
|
|
|
|
const shouldShow = computed(
|
|
() =>
|
|
!props.hidden &&
|
|
(!executionStore.isIdle ||
|
|
totalPercent.value > 0 ||
|
|
currentNodePercent.value > 0)
|
|
)
|
|
</script>
|