forked from pscpwzlfn/YunZhou_Rhymes
parent
c33772eef9
commit
b26f032838
@ -1,24 +0,0 @@
|
|||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
pnpm-debug.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
node_modules
|
|
||||||
dist
|
|
||||||
dist-ssr
|
|
||||||
*.local
|
|
||||||
|
|
||||||
# Editor directories and files
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/extensions.json
|
|
||||||
.idea
|
|
||||||
.DS_Store
|
|
||||||
*.suo
|
|
||||||
*.ntvs*
|
|
||||||
*.njsproj
|
|
||||||
*.sln
|
|
||||||
*.sw?
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": ["Vue.volar"]
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
# Vue 3 + Vite
|
|
||||||
|
|
||||||
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
||||||
|
|
||||||
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
|
|
@ -1,13 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Vite + Vue</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="app"></div>
|
|
||||||
<script type="module" src="/src/main.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
File diff suppressed because it is too large
Load Diff
@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "poetry_sys",
|
|
||||||
"private": true,
|
|
||||||
"version": "0.0.0",
|
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
|
||||||
"dev": "vite",
|
|
||||||
"build": "vite build",
|
|
||||||
"preview": "vite preview"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"router": "^1.3.8",
|
|
||||||
"vue": "^3.5.13",
|
|
||||||
"vue-router": "^4.5.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@vitejs/plugin-vue": "^5.2.1",
|
|
||||||
"vite": "^6.2.0"
|
|
||||||
}
|
|
||||||
}
|
|
Before Width: | Height: | Size: 1.5 KiB |
@ -1,16 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div id="app">
|
|
||||||
<home />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import home from './view/home.vue'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'App',
|
|
||||||
components: {
|
|
||||||
home
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,59 +0,0 @@
|
|||||||
/* 全局样式 */
|
|
||||||
body {
|
|
||||||
margin: 0; /* 移除默认 body 的 margin */
|
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
background-color: #f0f4f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
#app {
|
|
||||||
display: flex; /* 使用 flex 布局 */
|
|
||||||
width: 100%; /* 宽度占满整个视口 */
|
|
||||||
height: 100vh; /* 高度占满整个视口 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 左侧导航栏 */
|
|
||||||
.navbar {
|
|
||||||
width: 250px; /* 增加宽度 */
|
|
||||||
background-color: white; /* 背景改为白色 */
|
|
||||||
color: #007bff; /* 文字颜色改为蓝色 */
|
|
||||||
padding: 20px; /* 内边距 */
|
|
||||||
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 阴影 */
|
|
||||||
display: flex; /* 使用 flex 布局 */
|
|
||||||
flex-direction: column; /* 垂直排列 */
|
|
||||||
justify-content: space-around; /* 均分空间 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar ul {
|
|
||||||
list-style: none; /* 移除默认列表样式 */
|
|
||||||
padding: 0;
|
|
||||||
margin: 0; /* 移除默认外边距 */
|
|
||||||
flex: 1; /* 占据剩余空间 */
|
|
||||||
display: flex; /* 使用 flex 布局 */
|
|
||||||
flex-direction: column; /* 垂直排列 */
|
|
||||||
justify-content: space-around; /* 均分空间 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar ul li {
|
|
||||||
text-align: center; /* 文字居中 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar ul li a {
|
|
||||||
color: #007bff; /* 链接文字颜色改为蓝色 */
|
|
||||||
text-decoration: none; /* 移除下划线 */
|
|
||||||
font-size: 18px; /* 调大字体 */
|
|
||||||
font-weight: 500; /* 字体加粗 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar ul li a:hover {
|
|
||||||
text-decoration: underline; /* 鼠标悬停时显示下划线 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 右侧内容区域 */
|
|
||||||
.content {
|
|
||||||
flex: 1; /* 占据剩余空间 */
|
|
||||||
width: 100%; /* 宽度占满 */
|
|
||||||
padding: 20px; /* 内边距 */
|
|
||||||
background-color: white; /* 背景颜色 */
|
|
||||||
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); /* 阴影 */
|
|
||||||
overflow-y: auto; /* 如果内容超出高度,显示滚动条 */
|
|
||||||
}
|
|
Before Width: | Height: | Size: 496 B |
@ -1,15 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<h2>飞花令游戏界面</h2>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'FeiHuaLing'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* 游戏样式 */
|
|
||||||
</style>
|
|
@ -1,16 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<h2>交流论坛界面</h2>
|
|
||||||
<p>这里是交流论坛。</p>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'Forum'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* 论坛样式 */
|
|
||||||
</style>
|
|
@ -1,17 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="navbar">
|
|
||||||
<ul>
|
|
||||||
<li><router-link to="/recommend">诗词推荐</router-link></li>
|
|
||||||
<li><router-link to="/search">诗词搜索</router-link></li>
|
|
||||||
<li><router-link to="/game">诗词测验</router-link></li>
|
|
||||||
<li><router-link to="/feihua">飞花令</router-link></li>
|
|
||||||
<li><router-link to="/forum">交流论坛</router-link></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'Navigation'
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,15 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<h2>经典诗词推荐界面</h2>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'PoetryRecommend'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* 推荐样式 */
|
|
||||||
</style>
|
|
@ -1,15 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<h2>智能诗词搜索界面</h2>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'PoetrySearch'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* 搜索样式 */
|
|
||||||
</style>
|
|
@ -1,15 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<h2>诗词游戏测试界面</h2>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'PoetryTest'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* 游戏样式 */
|
|
||||||
</style>
|
|
@ -1,9 +0,0 @@
|
|||||||
import { createApp } from 'vue'
|
|
||||||
import App from './App.vue'
|
|
||||||
import router from './router'
|
|
||||||
|
|
||||||
const app = createApp(App)
|
|
||||||
|
|
||||||
app.use(router)
|
|
||||||
|
|
||||||
app.mount('#app')
|
|
@ -1,21 +0,0 @@
|
|||||||
import { createRouter, createWebHistory } from 'vue-router'
|
|
||||||
import PoetryRecommend from '@/components/PoetryRecommend.vue'
|
|
||||||
import PoetrySearch from '@/components/PoetrySearch.vue'
|
|
||||||
import PoetryGame from '@/components/PoetryTest.vue'
|
|
||||||
import Forum from '@/components/Forum.vue'
|
|
||||||
import feihua from '@/components/FeiHuaLing.vue'
|
|
||||||
|
|
||||||
const router = createRouter({
|
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
|
||||||
routes :
|
|
||||||
[
|
|
||||||
{path: '/', redirect: '/recommend'},
|
|
||||||
{ path: '/recommend', component: PoetryRecommend },
|
|
||||||
{ path: '/search', component: PoetrySearch },
|
|
||||||
{ path: '/game', component: PoetryGame },
|
|
||||||
{ path: '/feihua', component: feihua },
|
|
||||||
{ path: '/forum', component: Forum }
|
|
||||||
]
|
|
||||||
})
|
|
||||||
|
|
||||||
export default router
|
|
@ -1,25 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div id="app">
|
|
||||||
<Navigation />
|
|
||||||
<div class="content">
|
|
||||||
<router-view></router-view>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import Navigation from '@/components/Navigation.vue'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'home',
|
|
||||||
components: {
|
|
||||||
Navigation
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
|
||||||
@import '../assets/style.css';
|
|
||||||
</style>
|
|
@ -1,17 +0,0 @@
|
|||||||
import { fileURLToPath, URL } from 'node:url'
|
|
||||||
|
|
||||||
import { defineConfig } from 'vite'
|
|
||||||
import vue from '@vitejs/plugin-vue'
|
|
||||||
|
|
||||||
|
|
||||||
// https://vite.dev/config/
|
|
||||||
export default defineConfig({
|
|
||||||
plugins: [
|
|
||||||
vue(),
|
|
||||||
],
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
Binary file not shown.
Loading…
Reference in new issue