chore(config): 更新格式化和 lint 配置,格式化部分文件

This commit was merged in pull request #10.
This commit is contained in:
2026-02-10 02:03:35 +08:00
parent 3c98ee0d47
commit 2c4951ff9b
7 changed files with 37 additions and 38 deletions

View File

@@ -96,7 +96,7 @@ const onCreateCourseGreenSubmit = async (
BaseResponse<resp.gen.GBVideoCreate>
>('App.Digital_VideoTask.Create', payload)
.then((res) => {
if (!!res.data.task_id) {
if (res.data.task_id) {
toast.add({
title: '创建成功',
description: '视频已加入生成队列',

View File

@@ -135,10 +135,10 @@ onMounted(async () => {
</script>
<template>
<div class="relative grid w-full min-h-screen">
<div class="relative grid min-h-screen w-full">
<header>
<h1 class="inline-flex flex-col">
<span class="text-lg text-neutral-600 dark:text-neutral-300 font-bold">
<span class="text-lg font-bold text-neutral-600 dark:text-neutral-300">
AIGC 微课视频研创平台
</span>
<!-- <span class="text-xs text-neutral-600 dark:text-neutral-300">眩生花科技</span> -->
@@ -198,7 +198,7 @@ onMounted(async () => {
</UBadge>
</p>
<p
class="truncate whitespace-nowrap max-w-40 font-medium text-gray-900 dark:text-white"
class="max-w-40 truncate whitespace-nowrap font-medium text-gray-900 dark:text-white"
>
{{ loginState.user?.username }}
</p>
@@ -208,7 +208,7 @@ onMounted(async () => {
<span class="truncate">{{ item.label }}</span>
<UIcon
:name="item.icon"
class="flex-shrink-0 h-4 w-4 text-gray-400 dark:text-gray-500 ms-auto"
class="ms-auto size-4 flex-shrink-0 text-gray-400 dark:text-gray-500"
/>
</template>
</UDropdown>
@@ -230,7 +230,7 @@ onMounted(async () => {
<style>
body {
@apply bg-neutral-50 dark:bg-neutral-950 bg-fixed;
@apply bg-neutral-50 bg-fixed dark:bg-neutral-950;
/* @apply bg-[url('~/assets/background-pattern.svg')] dark:bg-[url('~/assets/background-pattern-dark.svg')]; */
}
@@ -271,10 +271,10 @@ body {
<style scoped>
header {
@apply fixed inset-x-0 h-16 bg-white border-b z-30;
@apply dark:bg-neutral-900 dark:border-neutral-800;
@apply fixed inset-x-0 z-30 h-16 border-b bg-white;
@apply dark:border-neutral-800 dark:bg-neutral-900;
@apply flex flex-row items-center justify-between px-4;
@apply bg-opacity-50 dark:bg-opacity-50 backdrop-blur-3xl backdrop-saturate-150;
@apply bg-opacity-50 backdrop-blur-3xl backdrop-saturate-150 dark:bg-opacity-50;
}
main {
@@ -282,8 +282,8 @@ main {
}
footer {
@apply h-16 bg-white border-t z-30;
@apply dark:bg-neutral-900 dark:border-neutral-800;
@apply z-30 h-16 border-t bg-white;
@apply dark:border-neutral-800 dark:bg-neutral-900;
@apply flex flex-row items-center justify-between px-4;
}
</style>

View File

@@ -58,11 +58,11 @@ onMounted(() => {
</script>
<template>
<div class="w-full flex relative">
<div class="relative flex w-full">
<div
class="absolute -translate-x-full md:sticky md:translate-x-0 z-10 flex flex-col h-[calc(100vh-4rem)] bg-neutral-100 dark:bg-neutral-900 p-4 w-full md:w-[300px] border-r border-neutral-200 dark:border-neutral-700 transition-all duration-300 ease-out"
class="absolute z-10 flex h-[calc(100vh-4rem)] w-full -translate-x-full flex-col border-r border-neutral-200 bg-neutral-100 p-4 transition-all duration-300 ease-out md:sticky md:w-[300px] md:translate-x-0 dark:border-neutral-700 dark:bg-neutral-900"
>
<div class="flex flex-col flex-1 overflow-auto overflow-x-hidden">
<div class="flex flex-1 flex-col overflow-auto overflow-x-hidden">
<div class="flex flex-col gap-1">
<ClientOnly>
<NavItem
@@ -107,7 +107,7 @@ onMounted(() => {
.subpage-enter-from,
.subpage-leave-to {
@apply opacity-0 translate-x-4;
@apply translate-x-4 opacity-0;
}
.loading-screen-leave-active {