forked from zhongyidian/food-add-edu
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
47 lines
835 B
TypeScript
47 lines
835 B
TypeScript
/**
|
|
* 应用配置
|
|
* 修改此文件后需要重启开发服务
|
|
*/
|
|
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,
|
|
},
|
|
};
|