Compare commits

..

No commits in common. "main" and "Front-end" have entirely different histories.

14 changed files with 3285 additions and 1 deletions

30
.gitignore vendored Normal file
View File

@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
/cypress/videos/
/cypress/screenshots/
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.tsbuildinfo

3
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}

View File

@ -1,2 +1,29 @@
# GraduationDesign
# front-end
This template should help get you started developing with Vue 3 in Vite.
## Recommended IDE Setup
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
## Customize configuration
See [Vite Configuration Reference](https://vite.dev/config/).
## Project Setup
```sh
npm install
```
### Compile and Hot-Reload for Development
```sh
npm run dev
```
### Compile and Minify for Production
```sh
npm run build
```

13
index.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>钱景斌的毕业设计</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

8
jsconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}

3102
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

21
package.json Normal file
View File

@ -0,0 +1,21 @@
{
"name": "front-end",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.10.0",
"vue": "^3.5.13",
"vue-router": "^4.5.1"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.3",
"vite": "^6.2.4",
"vite-plugin-vue-devtools": "^7.7.2"
}
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

10
src/App.vue Normal file
View File

@ -0,0 +1,10 @@
<script setup lang="zh-cn">
</script>
<template>
<header></header>
</template>
<style scoped>
</style>

18
src/assets/main.css Normal file
View File

@ -0,0 +1,18 @@
*{
box-sizing: border-box;
padding: 0;
margin: 0;
}
.container {
position: relative;
width: 100vw;
height: 100vh;
border: 1px solid #000;
}
.content {
width: 50vw;
height: 50vh;
background-color: lightblue;
}

7
src/main.js Normal file
View File

@ -0,0 +1,7 @@
import './assets/main.css'
import { createApp } from 'vue'
import routes from "./router/router";
import App from "@/App.vue";
createApp(App).use(routes).mount('#app')

16
src/router/router.js Normal file
View File

@ -0,0 +1,16 @@
import {createRouter, createWebHashHistory} from "vue-router";
import Home from "@/views/Home.vue"
const router = createRouter({
history:createWebHashHistory(),
routes:[
{
path:'/',
component:Home,
},
]
})
export default router

11
src/views/Home.vue Normal file
View File

@ -0,0 +1,11 @@
<script setup lang="zh-cn">
</script>
<template>
</template>
<style scoped>
</style>

18
vite.config.js Normal file
View File

@ -0,0 +1,18 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
})