- 添加 .dockerignore 和 .env.example 配置文件 - 添加 .gitignore 忽略规则配置 - 创建服务端代理API路由(_file、_modules、_server) - 集成 Ant Design Vue 组件库并配置SSR样式提取 - 定义API响应类型封装 - 创建基础布局组件(blank、console) - 实现应用中心页面和组件(AppsCenter) - 添加文章列表测试页面 - 配置控制台导航菜单结构 - 实现控制台头部组件 - 创建联系页面表单
75 lines
1.1 KiB
TypeScript
75 lines
1.1 KiB
TypeScript
/**
|
|
* 首页布局样式
|
|
*/
|
|
export interface Layout {
|
|
// 内容区域的宽度
|
|
width?: string;
|
|
// 文字颜色
|
|
color?: string;
|
|
// 高亮颜色
|
|
hover?: string;
|
|
// 背景颜色
|
|
backgroundColor?: string;
|
|
headerStyle?: any;
|
|
siteNameStyle?: any;
|
|
}
|
|
|
|
/**
|
|
* 修改密码参数
|
|
*/
|
|
export interface UpdatePasswordParam {
|
|
// 新密码
|
|
password: string;
|
|
// 原始密码
|
|
oldPassword: string;
|
|
}
|
|
|
|
/**
|
|
* 通知数据格式
|
|
*/
|
|
export interface NoticeModel {
|
|
// 图标颜色
|
|
color?: string;
|
|
// 图标
|
|
icon?: string;
|
|
// 标题
|
|
title?: string;
|
|
// 时间
|
|
time?: string;
|
|
}
|
|
|
|
/**
|
|
* 私信数据格式
|
|
*/
|
|
export interface LetterModel {
|
|
// 头像
|
|
avatar?: string;
|
|
// 标题
|
|
title?: string;
|
|
// 内容
|
|
content?: string;
|
|
// 时间
|
|
time?: string;
|
|
}
|
|
|
|
/**
|
|
* 代办数据格式
|
|
*/
|
|
export interface TodoModel {
|
|
// 状态
|
|
status?: number;
|
|
// 标题
|
|
title?: string;
|
|
// 描述
|
|
description?: string;
|
|
}
|
|
|
|
/**
|
|
* 查询未读通知返回结果
|
|
*/
|
|
export interface NoticeResult {
|
|
notice: NoticeModel[];
|
|
letter: LetterModel[];
|
|
todo: TodoModel[];
|
|
}
|