feat: Tauri + React + Vite + TypeScript 前端脚手架

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 00:14:31 +08:00
parent 820f35f444
commit a17fba8ff5
18 changed files with 2811 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
+9
View File
@@ -0,0 +1,9 @@
function App() {
return (
<div className="app">
<h1> v2.0</h1>
</div>
);
}
export default App;
+7
View File
@@ -0,0 +1,7 @@
html, body, #root {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
+10
View File
@@ -0,0 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './index.css';
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>
);
+1
View File
@@ -0,0 +1 @@
/// <reference types="vite/client" />