软件规格说明书

main
Rainshineking 4 months ago
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"
}
}

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

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; /* 如果内容超出高度,显示滚动条 */
}

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>

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…
Cancel
Save