forked from pscpwzlfn/YunZhou_Rhymes
parent
6a4d1907d2
commit
c33772eef9
@ -0,0 +1,8 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_22" default="true" project-jdk-name="22" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/YunZhou_Rhymes.iml" filepath="$PROJECT_DIR$/.idea/YunZhou_Rhymes.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,24 @@
|
||||
# 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?
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["Vue.volar"]
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
# 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).
|
@ -0,0 +1,13 @@
|
||||
<!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
@ -0,0 +1,20 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<home />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import home from './view/home.vue'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
home
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,59 @@
|
||||
/* 全局样式 */
|
||||
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; /* 如果内容超出高度,显示滚动条 */
|
||||
}
|
After Width: | Height: | Size: 496 B |
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>飞花令游戏界面</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'FeiHuaLing'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 游戏样式 */
|
||||
</style>
|
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>交流论坛界面</h2>
|
||||
<p>这里是交流论坛。</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Forum'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 论坛样式 */
|
||||
</style>
|
@ -0,0 +1,17 @@
|
||||
<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>
|
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>经典诗词推荐界面</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PoetryRecommend'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 推荐样式 */
|
||||
</style>
|
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>智能诗词搜索界面</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PoetrySearch'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 搜索样式 */
|
||||
</style>
|
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>诗词游戏测试界面</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PoetryTest'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 游戏样式 */
|
||||
</style>
|
@ -0,0 +1,9 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(router)
|
||||
|
||||
app.mount('#app')
|
@ -0,0 +1,21 @@
|
||||
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
|
@ -0,0 +1,25 @@
|
||||
<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>
|
@ -0,0 +1,17 @@
|
||||
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))
|
||||
},
|
||||
},
|
||||
})
|
Loading…
Reference in new issue