fix: 修复管理端前端 lint 与构建问题
- 收敛 easyflow-ui-admin 的 lint、格式和类型问题 - 修正 demo 页面与管理端前端构建失败点 - 验证 pnpm lint 与 pnpm build 均已通过
This commit is contained in:
@@ -32,10 +32,10 @@
|
||||
"vite-plugin-vue-devtools": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@easyflow/node-utils": "workspace:*",
|
||||
"@pnpm/workspace.read-manifest": "catalog:",
|
||||
"@types/archiver": "catalog:",
|
||||
"@types/html-minifier-terser": "catalog:",
|
||||
"@easyflow/node-utils": "workspace:*",
|
||||
"@vitejs/plugin-vue": "catalog:",
|
||||
"@vitejs/plugin-vue-jsx": "catalog:",
|
||||
"dayjs": "catalog:",
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import type {CSSOptions, UserConfig} from 'vite';
|
||||
import {defineConfig, loadEnv, mergeConfig} from 'vite';
|
||||
import type { CSSOptions, UserConfig } from 'vite';
|
||||
|
||||
import type {DefineApplicationOptions} from '../typing';
|
||||
import type { DefineApplicationOptions } from '../typing';
|
||||
|
||||
import path, {relative} from 'node:path';
|
||||
import path, { relative } from 'node:path';
|
||||
|
||||
import {findMonorepoRoot} from '@easyflow/node-utils';
|
||||
import { findMonorepoRoot } from '@easyflow/node-utils';
|
||||
|
||||
import {NodePackageImporter} from 'sass';
|
||||
import { NodePackageImporter } from 'sass';
|
||||
import { defineConfig, loadEnv, mergeConfig } from 'vite';
|
||||
|
||||
import {defaultImportmapOptions, getDefaultPwaOptions} from '../options';
|
||||
import {loadApplicationPlugins} from '../plugins';
|
||||
import {loadAndConvertEnv} from '../utils/env';
|
||||
import {getCommonConfig} from './common';
|
||||
import { defaultImportmapOptions, getDefaultPwaOptions } from '../options';
|
||||
import { loadApplicationPlugins } from '../plugins';
|
||||
import { loadAndConvertEnv } from '../utils/env';
|
||||
import { getCommonConfig } from './common';
|
||||
|
||||
function defineApplicationConfig(userConfigPromise?: DefineApplicationOptions) {
|
||||
return defineConfig(async (config) => {
|
||||
|
||||
@@ -100,38 +100,54 @@
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-10px); }
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%, 80%, 100% {
|
||||
0%,
|
||||
80%,
|
||||
100% {
|
||||
transform: scale(0);
|
||||
}
|
||||
40% {
|
||||
transform: scale(1.0);
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes progress {
|
||||
0% { width: 0; left: 0; }
|
||||
50% { width: 100%; left: 0; }
|
||||
100% { width: 0; left: 100%; }
|
||||
0% {
|
||||
width: 0;
|
||||
left: 0;
|
||||
}
|
||||
50% {
|
||||
width: 100%;
|
||||
left: 0;
|
||||
}
|
||||
100% {
|
||||
width: 0;
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div class="loadingContainer" id="__app-loading__">
|
||||
<div class="loadingContent">
|
||||
<div class="logoAnimation">
|
||||
<img src="/logo.svg" alt="品牌Logo" class="logo" />
|
||||
<div class="loadingDots">
|
||||
<span class="dot"></span>
|
||||
<span class="dot"></span>
|
||||
<span class="dot"></span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="loadingText">正在启动您的 AI 平台...</p>
|
||||
<div class="progressBar">
|
||||
<div class="progress"></div>
|
||||
</div>
|
||||
<div class="loadingContent">
|
||||
<div class="logoAnimation">
|
||||
<img src="/logo.svg" alt="品牌Logo" class="logo" />
|
||||
<div class="loadingDots">
|
||||
<span class="dot"></span>
|
||||
<span class="dot"></span>
|
||||
<span class="dot"></span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="loadingText">正在启动您的 AI 平台...</p>
|
||||
<div class="progressBar">
|
||||
<div class="progress"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type {PluginOption} from 'vite';
|
||||
import type { PluginOption } from 'vite';
|
||||
|
||||
import {lazyImport, VxeResolver} from 'vite-plugin-lazy-import';
|
||||
import { lazyImport, VxeResolver } from 'vite-plugin-lazy-import';
|
||||
|
||||
async function viteVxeTableImportsPlugin(): Promise<PluginOption> {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user