fix: 修复管理端前端 lint 与构建问题

- 收敛 easyflow-ui-admin 的 lint、格式和类型问题

- 修正 demo 页面与管理端前端构建失败点

- 验证 pnpm lint 与 pnpm build 均已通过
This commit is contained in:
2026-04-05 21:39:13 +08:00
parent bb72e19c84
commit 7e7c236c2a
240 changed files with 5151 additions and 4701 deletions

View File

@@ -237,10 +237,7 @@ onMounted(() => {
class="block truncate text-sm font-medium leading-6 text-[hsl(var(--text-strong))]"
>
<template
v-for="chunk in getHighlightedChunks(
item.name || '',
keyword,
)"
v-for="chunk in getHighlightedChunks(item.name || '', keyword)"
:key="`${item.path}-${chunk.text}-${chunk.matched}`"
>
<span

View File

@@ -6,7 +6,10 @@ import { Languages } from '@easyflow/icons';
import { loadLocaleMessages } from '@easyflow/locales';
import { preferences, updatePreferences } from '@easyflow/preferences';
import { EasyFlowDropdownRadioMenu, EasyFlowIconButton } from '@easyflow-core/shadcn-ui';
import {
EasyFlowDropdownRadioMenu,
EasyFlowIconButton,
} from '@easyflow-core/shadcn-ui';
defineOptions({
name: 'LanguageToggle',

View File

@@ -13,7 +13,10 @@ import {
usePreferences,
} from '@easyflow/preferences';
import { EasyFlowDropdownRadioMenu, EasyFlowIconButton } from '@easyflow-core/shadcn-ui';
import {
EasyFlowDropdownRadioMenu,
EasyFlowIconButton,
} from '@easyflow-core/shadcn-ui';
defineOptions({
name: 'AuthenticationLayoutToggle',

View File

@@ -5,7 +5,10 @@ import { useSlots } from 'vue';
import { CircleHelp } from '@easyflow/icons';
import { EasyFlowCheckButtonGroup, EasyFlowTooltip } from '@easyflow-core/shadcn-ui';
import {
EasyFlowCheckButtonGroup,
EasyFlowTooltip,
} from '@easyflow-core/shadcn-ui';
defineOptions({
name: 'PreferenceCheckboxItem',

View File

@@ -5,7 +5,7 @@ import { useSlots } from 'vue';
import { CircleHelp, CircleX } from '@easyflow/icons';
import { Input, EasyFlowTooltip } from '@easyflow-core/shadcn-ui';
import { EasyFlowTooltip, Input } from '@easyflow-core/shadcn-ui';
defineOptions({
name: 'PreferenceSelectItem',

View File

@@ -6,12 +6,12 @@ import { useSlots } from 'vue';
import { CircleHelp } from '@easyflow/icons';
import {
EasyFlowTooltip,
NumberField,
NumberFieldContent,
NumberFieldDecrement,
NumberFieldIncrement,
NumberFieldInput,
EasyFlowTooltip,
} from '@easyflow-core/shadcn-ui';
defineOptions({

View File

@@ -6,12 +6,12 @@ import { useSlots } from 'vue';
import { CircleHelp } from '@easyflow/icons';
import {
EasyFlowTooltip,
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
EasyFlowTooltip,
} from '@easyflow-core/shadcn-ui';
defineOptions({

View File

@@ -3,7 +3,7 @@ import { useSlots } from 'vue';
import { CircleHelp } from '@easyflow/icons';
import { Switch, EasyFlowTooltip } from '@easyflow-core/shadcn-ui';
import { EasyFlowTooltip, Switch } from '@easyflow-core/shadcn-ui';
defineOptions({
name: 'PreferenceSwitchItem',

View File

@@ -10,9 +10,9 @@ import {
} from '@easyflow/preferences';
import {
EasyFlowTooltip,
ToggleGroup,
ToggleGroupItem,
EasyFlowTooltip,
} from '@easyflow-core/shadcn-ui';
import ThemeButton from './theme-button.vue';

View File

@@ -7,9 +7,9 @@ import { useTimezoneStore } from '@easyflow/stores';
import { useEasyFlowModal } from '@easyflow-core/popup-ui';
import {
EasyFlowIconButton,
RadioGroup,
RadioGroupItem,
EasyFlowIconButton,
} from '@easyflow-core/shadcn-ui';
const TimezoneIcon = createIconifyIcon('fluent-mdl2:world-clock');