forked from zhongyidian/food-add-edu
feat: 重构页面、路由与业务组件,新增课程演示
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d3ae0a8ca7
commit
7b326ee025
29 files changed
+2005
-57
No files matched your search
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 应用配置
|
||||
* 修改此文件后需要重启开发服务
|
||||
*/
|
||||
const env = (import.meta as ImportMeta & { env?: Record<string, string> }).env;
|
||||
|
||||
export const appConfig = {
|
||||
/** 应用标题 */
|
||||
title: "React Vite App",
|
||||
|
||||
/** 网站描述 */
|
||||
description: "易班 H5 课程模板",
|
||||
|
||||
/** Favicon 路径(相对于 public 目录) */
|
||||
favicon: "./vite.svg",
|
||||
|
||||
/** 课程配置 */
|
||||
course: {
|
||||
id: env?.VITE_COURSE_ID ?? "course-demo",
|
||||
name: env?.VITE_COURSE_NAME ?? "标准课程页示例",
|
||||
},
|
||||
|
||||
/** 设计稿配置 */
|
||||
design: {
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
},
|
||||
|
||||
/** 整体缩放配置 */
|
||||
scale: {
|
||||
max: 1,
|
||||
},
|
||||
|
||||
/** 本地存储配置 */
|
||||
storage: {
|
||||
prefix: "yiban-course-template",
|
||||
},
|
||||
|
||||
/** 视口配置 */
|
||||
viewport: {
|
||||
width: "device-width",
|
||||
initialScale: 1.0,
|
||||
minimumScale: 1.0,
|
||||
maximumScale: 1.0,
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user