Browse Source

🔧 chore(files): 重命名文件并更新构建配置

- 将 Index.html 重命名为 admin.html 以符合命名规范
- 删除 demo.html 文件
- 更新 vite.config.js 中的构建入口为 index.html
yourname 3 months ago
parent
commit
93ce52bcdd
3 changed files with 1 additions and 61 deletions
  1. 0 0
      admin.html
  2. 0 59
      demo.html
  3. 1 2
      vite.config.js

+ 0 - 0
Index.html → admin.html


+ 0 - 59
demo.html

@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html lang="zh-CN">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Juris 计数器 Demo</title>
-    <style>
-        body {
-            font-family: Arial, sans-serif;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-            min-height: 100vh;
-            margin: 0;
-            background-color: #f5f5f5;
-        }
-        #app {
-            text-align: center;
-        }
-        .counter {
-            font-size: 3rem;
-            font-weight: bold;
-            color: #333;
-            cursor: pointer;
-            padding: 20px;
-            border: 2px solid #ddd;
-            border-radius: 10px;
-            background-color: white;
-            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
-            transition: all 0.2s ease;
-        }
-        .counter:hover {
-            background-color: #f0f0f0;
-            transform: translateY(-2px);
-        }
-        .counter:active {
-            transform: translateY(0);
-        }
-    </style>
-</head>
-<body>
-    <div id="app"></div>
-
-    <script src="https://unpkg.com/juris"></script>
-    <script>
-        const app = new Juris({
-            states: { count: 0 },
-            layout: {
-                div: {
-                    className: 'counter',
-                    text: () => `点击次数: ${app.getState('count', 0)}`,
-                    onclick: () => app.setState('count', app.getState('count', 0) + 1)
-                }
-            }
-        });
-        app.render('#app');
-    </script>
-</body>
-</html>

+ 1 - 2
vite.config.js

@@ -3,12 +3,11 @@ import { defineConfig } from 'vite'
 export default defineConfig({
   server: {
     port: 8080,
-    open: true
   },
   build: {
     rollupOptions: {
       input: {
-        main: './demo.html'
+        main: './index.html'
       }
     }
   }