Go to file
ysm a431a5440f 调整时钟显示尺寸和布局
- 统一三种时钟样式的显示宽度为页面90%
- 增大翻页和滚动时钟的显示比例
- 优化响应式尺寸计算
- 调整页面布局使时钟占满宽度

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 22:12:22 +08:00
public 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
src 调整时钟显示尺寸和布局 2026-03-23 22:12:22 +08:00
.gitignore 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
.nvmrc 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
CLAUDE.md 优化时钟布局和响应式设计 2026-03-23 21:44:57 +08:00
eslint.config.js 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
git-commit.sh 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
index.html 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
package-lock.json 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
package.json 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
README.md first commit 2026-03-21 09:40:52 +08:00
tsconfig.app.json 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
tsconfig.json 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
tsconfig.node.json 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00
vite.config.ts 2026年 03月 21日 星期六 09:41:46 CST 2026-03-21 09:41:46 +08:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])