commit
						391007d114
					
				| @ -0,0 +1,4 @@ | ||||
| > 1% | ||||
| last 2 versions | ||||
| not dead | ||||
| not ie 11 | ||||
| @ -0,0 +1,17 @@ | ||||
| module.exports = { | ||||
|   root: true, | ||||
|   env: { | ||||
|     node: true | ||||
|   }, | ||||
|   'extends': [ | ||||
|     'plugin:vue/vue3-essential', | ||||
|     'eslint:recommended' | ||||
|   ], | ||||
|   parserOptions: { | ||||
|     parser: '@babel/eslint-parser' | ||||
|   }, | ||||
|   rules: { | ||||
|     'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||||
|     'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,23 @@ | ||||
| .DS_Store | ||||
| node_modules | ||||
| /dist | ||||
| 
 | ||||
| 
 | ||||
| # local env files | ||||
| .env.local | ||||
| .env.*.local | ||||
| 
 | ||||
| # Log files | ||||
| npm-debug.log* | ||||
| yarn-debug.log* | ||||
| yarn-error.log* | ||||
| pnpm-debug.log* | ||||
| 
 | ||||
| # Editor directories and files | ||||
| .idea | ||||
| .vscode | ||||
| *.suo | ||||
| *.ntvs* | ||||
| *.njsproj | ||||
| *.sln | ||||
| *.sw? | ||||
| @ -0,0 +1,24 @@ | ||||
| # demo | ||||
| 
 | ||||
| ## Project setup | ||||
| ``` | ||||
| npm install | ||||
| ``` | ||||
| 
 | ||||
| ### Compiles and hot-reloads for development | ||||
| ``` | ||||
| npm run serve | ||||
| ``` | ||||
| 
 | ||||
| ### Compiles and minifies for production | ||||
| ``` | ||||
| npm run build | ||||
| ``` | ||||
| 
 | ||||
| ### Lints and fixes files | ||||
| ``` | ||||
| npm run lint | ||||
| ``` | ||||
| 
 | ||||
| ### Customize configuration | ||||
| See [Configuration Reference](https://cli.vuejs.org/config/). | ||||
| @ -0,0 +1,5 @@ | ||||
| module.exports = { | ||||
|   presets: [ | ||||
|     '@vue/cli-plugin-babel/preset' | ||||
|   ] | ||||
| } | ||||
| @ -0,0 +1,19 @@ | ||||
| { | ||||
|   "compilerOptions": { | ||||
|     "target": "es5", | ||||
|     "module": "esnext", | ||||
|     "baseUrl": "./", | ||||
|     "moduleResolution": "node", | ||||
|     "paths": { | ||||
|       "@/*": [ | ||||
|         "src/*" | ||||
|       ] | ||||
|     }, | ||||
|     "lib": [ | ||||
|       "esnext", | ||||
|       "dom", | ||||
|       "dom.iterable", | ||||
|       "scripthost" | ||||
|     ] | ||||
|   } | ||||
| } | ||||
											
												
													File diff suppressed because it is too large
													Load Diff
												
											
										
									
								| @ -0,0 +1,28 @@ | ||||
| { | ||||
|   "name": "demo", | ||||
|   "version": "0.1.0", | ||||
|   "private": true, | ||||
|   "scripts": { | ||||
|     "serve": "vue-cli-service serve", | ||||
|     "build": "vue-cli-service build", | ||||
|     "lint": "vue-cli-service lint" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "core-js": "^3.8.3", | ||||
|     "element-plus": "^2.8.6", | ||||
|     "vite": "^5.4.10", | ||||
|     "vue": "^3.2.13", | ||||
|     "vue-router": "^4.4.5" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@babel/core": "^7.12.16", | ||||
|     "@babel/eslint-parser": "^7.12.16", | ||||
|     "@vue/cli-plugin-babel": "~5.0.0", | ||||
|     "@vue/cli-plugin-eslint": "~5.0.0", | ||||
|     "@vue/cli-service": "~5.0.0", | ||||
|     "eslint": "^7.32.0", | ||||
|     "eslint-plugin-vue": "^8.0.3", | ||||
|     "unplugin-auto-import": "^0.18.3", | ||||
|     "unplugin-vue-components": "^0.27.4" | ||||
|   } | ||||
| } | ||||
| After Width: | Height: | Size: 4.2 KiB | 
| @ -0,0 +1,17 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang=""> | ||||
|   <head> | ||||
|     <meta charset="utf-8"> | ||||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
|     <meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||||
|     <link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||||
|     <title><%= htmlWebpackPlugin.options.title %></title> | ||||
|   </head> | ||||
|   <body> | ||||
|     <noscript> | ||||
|       <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | ||||
|     </noscript> | ||||
|     <div id="app"></div> | ||||
|     <!-- built files will be auto injected --> | ||||
|   </body> | ||||
| </html> | ||||
| @ -0,0 +1,10 @@ | ||||
| <template> | ||||
|    | ||||
|   <RouterView /> | ||||
| </template> | ||||
| 
 | ||||
| <script setup></script> | ||||
| 
 | ||||
| <style> | ||||
| 
 | ||||
| </style> | ||||
| After Width: | Height: | Size: 15 KiB | 
| After Width: | Height: | Size: 118 KiB | 
| After Width: | Height: | Size: 1.2 KiB | 
| @ -0,0 +1,31 @@ | ||||
| <template> | ||||
|   | ||||
| 
 | ||||
|     <div class="main-content"> | ||||
| 
 | ||||
|     </div> | ||||
|      | ||||
| </template> | ||||
| <style> | ||||
|     .main-content { | ||||
|       /* 设置背景为渐变色 */ | ||||
|        | ||||
|       background:  | ||||
|       url('../assets/backtree.png') no-repeat center center,linear-gradient(to bottom, rgba(252, 220, 215, 1) 0%, rgba(252, 220, 215, 1) 5%, rgba(255, 249, 161, 1) 25%, rgba(255, 249, 161, 1) 100%); | ||||
|       box-sizing: border-box; /* 使内边距计算在总高度内 */ | ||||
|        | ||||
|         background-size:auto 90% 60%; | ||||
|         background-position: center; /* 使背景图居中 */ | ||||
|         height: 100vh; /* 使主界面高度占满整个视口 */ | ||||
|         padding: 20px; /* 添加一些内边距 */ | ||||
|         box-sizing: border-box; /* 使内边距计算在总高度内 */ | ||||
|     } | ||||
|      | ||||
| </style> | ||||
| <script> | ||||
|     export default  | ||||
|     { | ||||
|       name: 'BackGround', // 添加组件名称 | ||||
|       // 其他组件选项 | ||||
|     } | ||||
|     </script> | ||||
| @ -0,0 +1,58 @@ | ||||
| <template> | ||||
|     <el-menu | ||||
|       :default-active="activeIndex" | ||||
|       class="el-menu-demo" | ||||
|       mode="horizontal" | ||||
|       @select="handleSelect" | ||||
|       background-color="#FFFFFF" | ||||
|       text-color="#000000" | ||||
|       active-text-color="#FEB2D7" | ||||
|     > | ||||
|     <div class="logo"> | ||||
|       <img src="../assets/Logo.png" alt="Logo" /> | ||||
|     </div> | ||||
|       <el-menu-item index="1">智能推荐</el-menu-item> | ||||
|       <el-sub-menu index="2"> | ||||
|         <template #title>社区互动</template> | ||||
|         <el-menu-item index="2-1">私信聊天</el-menu-item> | ||||
|         <el-menu-item index="2-2">社区动态</el-menu-item> | ||||
|       </el-sub-menu> | ||||
|       <el-menu-item index="3" disabled>情感助手</el-menu-item> | ||||
|       <el-menu-item index="4">个人空间</el-menu-item> | ||||
|       <div class="tu"> | ||||
|         <img src="../assets/tu.png" alt="tu" /> | ||||
|       </div> | ||||
|     </el-menu> | ||||
|     <div class="h-6" /> | ||||
|      | ||||
|   </template> | ||||
|   <style> | ||||
|     .el-menu-demo { | ||||
|       justify-content: space-between; /* 平铺菜单项 */ | ||||
|       font-weight: bold; /* 加粗字体 */ | ||||
|        | ||||
|     } | ||||
| 
 | ||||
|     .logo img, | ||||
|     .tu img { | ||||
|       height: 50px; /* 根据需要调整高度 */ | ||||
|       width: auto;  /* 自适应宽度 */ | ||||
|       margin-right: 10px; /* 与菜单项的间距 */ | ||||
|     } | ||||
|     .el-menu-item { | ||||
|         line-height: 70px; /* 设置菜单项的行高,和菜单高度一致 */ | ||||
|         font-weight: bold; /* 加粗字体 */ | ||||
|       } | ||||
|     </style> | ||||
| 
 | ||||
| <script setup> | ||||
|      | ||||
|     const handleSelect = () =>{} | ||||
| </script> | ||||
| <script> | ||||
|     export default  | ||||
|     { | ||||
|       name: 'HeaderComponent', // 添加组件名称 | ||||
|       // 其他组件选项 | ||||
|     } | ||||
|     </script> | ||||
| @ -0,0 +1,11 @@ | ||||
| import { createApp } from 'vue' | ||||
| import App from './App.vue' | ||||
| import router from './router' | ||||
| import ElementPlus from 'element-plus' | ||||
| import 'element-plus/dist/index.css' | ||||
| 
 | ||||
| const app = createApp(App) | ||||
| 
 | ||||
| app.use(ElementPlus) | ||||
| app.use(router) | ||||
| app.mount('#app') | ||||
| @ -0,0 +1,25 @@ | ||||
| import layout from '../views/Main.vue' | ||||
| import Login from '../views/shequ/index.vue' | ||||
| 
 | ||||
| import {createRouter ,createWebHashHistory} from 'vue-router' | ||||
| 
 | ||||
| const routes = [ | ||||
| 
 | ||||
|     { | ||||
|         path:'/', | ||||
|         component : layout | ||||
|     }, | ||||
| 
 | ||||
|     { | ||||
|         path : '/login', | ||||
|         component : Login | ||||
|     } | ||||
| 
 | ||||
| ] | ||||
| const router = createRouter({ | ||||
| 
 | ||||
|     routes, | ||||
|     history:createWebHashHistory() | ||||
| 
 | ||||
| }) | ||||
| export default router | ||||
| @ -0,0 +1,36 @@ | ||||
| <template> | ||||
|     | ||||
|   <div class="common-layout"> | ||||
|     <el-container> | ||||
|       <el-header><heade/></el-header> | ||||
|       <el-container> | ||||
|         <el-aside width="250px">aa</el-aside> | ||||
| 
 | ||||
|         <el-main style="padding: 0px"> | ||||
|           <background/> | ||||
|         </el-main> | ||||
|        | ||||
|         <el-aside width="250px">aa</el-aside> | ||||
|       </el-container> | ||||
|       </el-container> | ||||
|    | ||||
|   </div> | ||||
|         | ||||
|            | ||||
|      | ||||
|      | ||||
|      | ||||
| </template> | ||||
| 
 | ||||
| 
 | ||||
| <script setup> | ||||
|   import heade from '../components/header.vue' | ||||
|   import background from '../components/background.vue' | ||||
| </script> | ||||
| <script> | ||||
|    | ||||
|     export default { | ||||
|       name: 'MainView', // 添加组件名称 | ||||
|       // 其他组件选项 | ||||
|     } | ||||
|     </script> | ||||
| @ -0,0 +1,21 @@ | ||||
| <template> | ||||
|     <div> | ||||
|     haha | ||||
|     <div class="mb-4"> | ||||
|       <el-button>Default</el-button> | ||||
|       <el-button type="primary">Primary</el-button> | ||||
|       <el-button type="success">Success</el-button> | ||||
|       <el-button type="info">Info</el-button> | ||||
|       <el-button type="warning">Warning</el-button> | ||||
|       <el-button type="danger">Danger</el-button> | ||||
|     </div> | ||||
|     </div> | ||||
|      | ||||
| </template> | ||||
| <script setup></script> | ||||
| <script> | ||||
|     export default { | ||||
|       name: 'CommunityIndex', // 添加组件名称 | ||||
|       // 其他组件选项 | ||||
|     } | ||||
|     </script> | ||||
| @ -0,0 +1,4 @@ | ||||
| const { defineConfig } = require('@vue/cli-service') | ||||
| module.exports = defineConfig({ | ||||
|   transpileDependencies: true | ||||
| }) | ||||
					Loading…
					
					
				
		Reference in new issue