mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
## Summary Applied stylelint auto-fixes and resolved manual CSS issues across 25 files to achieve full compliance with stylelint rules. ## Changes - **What**: Auto-fixed 68 CSS issues (legacy color functions, font-weight keywords, shorthand properties, pseudo-element notation) and manually resolved 6 remaining issues (duplicate selectors, vendor prefix duplicates, font fallbacks, Vue v-bind whitelisting) - **Config**: Disabled `no-descending-specificity` rule (43 warnings require architectural CSS refactor) ## Review Focus Verify no visual regressions from modernized CSS syntax: - Modern [color function notation](https://www.w3.org/TR/css-color-4/#funcdef-rgb): `rgba(0, 0, 0, 0.5)` → `rgb(0 0 0 / 50%)` - Numeric font weights: `bold`/`normal` → `700`/`400` - Pseudo-element double colons: `:before` → `::before ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5940-apply-stylelint-auto-fixes-2846d73d365081ee8031c212a69a4bd4) by [Unito](https://www.unito.io) --------- Co-authored-by: DrJKL <DrJKL0424@gmail.com>
84 lines
2.1 KiB
Vue
84 lines
2.1 KiB
Vue
<template>
|
|
<BaseViewTemplate dark>
|
|
<div
|
|
class="h-screen w-screen grid items-center justify-around overflow-y-auto"
|
|
>
|
|
<div class="relative m-8 text-center">
|
|
<!-- Header -->
|
|
<h1 class="download-bg pi-download text-4xl font-bold">
|
|
{{ t('desktopUpdate.title') }}
|
|
</h1>
|
|
|
|
<div class="m-8">
|
|
<span>{{ t('desktopUpdate.description') }}</span>
|
|
</div>
|
|
|
|
<ProgressSpinner class="m-8 w-48 h-48" />
|
|
|
|
<!-- Console button -->
|
|
<Button
|
|
style="transform: translateX(-50%)"
|
|
class="fixed bottom-0 left-1/2 my-8"
|
|
:label="t('maintenance.consoleLogs')"
|
|
icon="pi pi-desktop"
|
|
icon-pos="left"
|
|
severity="secondary"
|
|
@click="toggleConsoleDrawer"
|
|
/>
|
|
|
|
<TerminalOutputDrawer
|
|
v-model="terminalVisible"
|
|
:header="t('g.terminal')"
|
|
:default-message="t('desktopUpdate.terminalDefaultMessage')"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Toast />
|
|
</BaseViewTemplate>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Button from 'primevue/button'
|
|
import ProgressSpinner from 'primevue/progressspinner'
|
|
import Toast from 'primevue/toast'
|
|
import { onUnmounted, ref } from 'vue'
|
|
|
|
import TerminalOutputDrawer from '@/components/maintenance/TerminalOutputDrawer.vue'
|
|
import { t } from '@/i18n'
|
|
import { electronAPI } from '@/utils/envUtil'
|
|
|
|
import BaseViewTemplate from './templates/BaseViewTemplate.vue'
|
|
|
|
const electron = electronAPI()
|
|
|
|
const terminalVisible = ref(false)
|
|
|
|
const toggleConsoleDrawer = () => {
|
|
terminalVisible.value = !terminalVisible.value
|
|
}
|
|
|
|
onUnmounted(() => electron.Validation.dispose())
|
|
</script>
|
|
|
|
<style scoped>
|
|
@reference '../assets/css/style.css';
|
|
|
|
.download-bg::before {
|
|
@apply m-0 absolute text-muted;
|
|
font-family: 'primeicons', sans-serif;
|
|
top: -2rem;
|
|
right: 2rem;
|
|
speak: none;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-variant: normal;
|
|
text-transform: none;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
-webkit-font-smoothing: antialiased;
|
|
opacity: 0.02;
|
|
font-size: min(14rem, 90vw);
|
|
z-index: 0;
|
|
}
|
|
</style>
|