### 运行 uni-app 课程表组件开发环境 Source: https://github.com/nei1ee/colortimetable/blob/main/README.md 启动 uni-app 课程表组件的开发服务器,通常用于微信小程序平台。 ```bash pnpm run dev:mp-weixin ``` -------------------------------- ### 构建 uni-app 课程表组件发行版本 Source: https://github.com/nei1ee/colortimetable/blob/main/README.md 为 uni-app 课程表组件构建用于生产环境的发行版本,同样针对微信小程序平台。 ```bash pnpm run build:mp-weixin ``` -------------------------------- ### 安装 uni-app 课程表组件依赖 Source: https://github.com/nei1ee/colortimetable/blob/main/README.md 在 uni-app 项目中安装 ColorTimetable 组件所需的依赖。这包括克隆仓库和使用 pnpm 进行安装。 ```bash git clone https://github.com/zguolee/ColorTimetable.git cd ColorTimetable pnpm install ``` -------------------------------- ### Viewport Meta Tag Generation Source: https://github.com/nei1ee/colortimetable/blob/main/index.html This snippet checks for CSS environment variable support ('env(a)' or 'constant(a)') and dynamically writes a viewport meta tag. It includes 'viewport-fit=cover' if CSS cover support is detected, optimizing for devices with notches or cutouts. ```javascript const coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) document.write( ``) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.