创建前端项目 完成基本框架
3
sms-doc/smsdoc/.browserslistrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
> 1%
|
||||||
|
last 2 versions
|
||||||
|
not dead
|
||||||
23
sms-doc/smsdoc/.gitignore
vendored
Normal file
@ -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?
|
||||||
19
sms-doc/smsdoc/README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# smsdoc
|
||||||
|
|
||||||
|
## Project setup
|
||||||
|
```
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiles and hot-reloads for development
|
||||||
|
```
|
||||||
|
npm run serve
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiles and minifies for production
|
||||||
|
```
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
### Customize configuration
|
||||||
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||||
5
sms-doc/smsdoc/babel.config.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
'@vue/cli-plugin-babel/preset'
|
||||||
|
]
|
||||||
|
}
|
||||||
19
sms-doc/smsdoc/jsconfig.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"module": "esnext",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"paths": {
|
||||||
|
"@/*": [
|
||||||
|
"src/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"scripthost"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
17456
sms-doc/smsdoc/package-lock.json
generated
Normal file
25
sms-doc/smsdoc/package.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"name": "smsdoc",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
|
"build": "vue-cli-service build"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"core-js": "^3.8.3",
|
||||||
|
"element-ui": "^2.15.13",
|
||||||
|
"vue": "^2.6.14",
|
||||||
|
"vue-router": "^3.5.1",
|
||||||
|
"vuex": "^3.6.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/cli-plugin-babel": "~5.0.0",
|
||||||
|
"@vue/cli-plugin-router": "~5.0.0",
|
||||||
|
"@vue/cli-plugin-vuex": "~5.0.0",
|
||||||
|
"@vue/cli-service": "~5.0.0",
|
||||||
|
"sass": "^1.32.7",
|
||||||
|
"sass-loader": "^12.0.0",
|
||||||
|
"vue-template-compiler": "^2.6.14"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
sms-doc/smsdoc/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
17
sms-doc/smsdoc/public/index.html
Normal file
@ -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>
|
||||||
1
sms-doc/smsdoc/public/首页.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1679670746744" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2786" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M837.470354 1024H186.501825c-45.735872 0-98.259401-10.019873-98.259401-87.593084V406.161697a32.322171 32.322171 0 0 1 9.535041-22.948742L463.987665 19.75014a68.199781 68.199781 0 0 1 95.996849 0l366.2102 363.462815a32.322171 32.322171 0 0 1 9.53504 22.948742v530.245219c0 56.725411-15.676253 87.593084-98.2594 87.593084zM152.886767 420.221841v517.15474c0 21.171022 0 22.948742 33.615058 22.948742h650.968529a114.420486 114.420486 0 0 0 32.322171-3.070607 183.589933 183.589933 0 0 0 0-19.878135V420.221841L514.410252 65.647623a3.555439 3.555439 0 0 0-4.848326 0z" fill="#3D3D3D" p-id="2787"></path><path d="M538.813491 239.217682a23.756796 23.756796 0 0 0-32.322171 0l-239.184067 236.759905v345.362399c0 28.766732 12.120814 36.039221 42.988488 36.039221H734.685849c42.988488 0 42.988488-11.635982 42.988488-36.039221V475.977587z" fill="#F683A2" p-id="2788"></path><path d="M811.774227 941.255242h-129.288684a32.322171 32.322171 0 0 1 0-64.644343h129.288684a32.322171 32.322171 0 0 1 0 64.644343z" fill="#3D3D3D" p-id="2789"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
18
sms-doc/smsdoc/src/App.vue
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<router-view />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
outline: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
BIN
sms-doc/smsdoc/src/assets/logo.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
sms-doc/smsdoc/src/assets/律领英首页.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
sms-doc/smsdoc/src/assets/项目2.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
1
sms-doc/smsdoc/src/assets/首页 (1).svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1679670746744" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2786" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M837.470354 1024H186.501825c-45.735872 0-98.259401-10.019873-98.259401-87.593084V406.161697a32.322171 32.322171 0 0 1 9.535041-22.948742L463.987665 19.75014a68.199781 68.199781 0 0 1 95.996849 0l366.2102 363.462815a32.322171 32.322171 0 0 1 9.53504 22.948742v530.245219c0 56.725411-15.676253 87.593084-98.2594 87.593084zM152.886767 420.221841v517.15474c0 21.171022 0 22.948742 33.615058 22.948742h650.968529a114.420486 114.420486 0 0 0 32.322171-3.070607 183.589933 183.589933 0 0 0 0-19.878135V420.221841L514.410252 65.647623a3.555439 3.555439 0 0 0-4.848326 0z" fill="#3D3D3D" p-id="2787"></path><path d="M538.813491 239.217682a23.756796 23.756796 0 0 0-32.322171 0l-239.184067 236.759905v345.362399c0 28.766732 12.120814 36.039221 42.988488 36.039221H734.685849c42.988488 0 42.988488-11.635982 42.988488-36.039221V475.977587z" fill="#F683A2" p-id="2788"></path><path d="M811.774227 941.255242h-129.288684a32.322171 32.322171 0 0 1 0-64.644343h129.288684a32.322171 32.322171 0 0 1 0 64.644343z" fill="#3D3D3D" p-id="2789"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
BIN
sms-doc/smsdoc/src/assets/首页.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
sms-doc/smsdoc/src/assets/首页2.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
59
sms-doc/smsdoc/src/components/HelloWorld.vue
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<template>
|
||||||
|
<div class="hello">
|
||||||
|
<h1>{{ msg }}</h1>
|
||||||
|
<p>
|
||||||
|
For a guide and recipes on how to configure / customize this project,<br>
|
||||||
|
check out the
|
||||||
|
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
|
||||||
|
</p>
|
||||||
|
<h3>Installed CLI Plugins</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
|
||||||
|
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router" target="_blank" rel="noopener">router</a></li>
|
||||||
|
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex" target="_blank" rel="noopener">vuex</a></li>
|
||||||
|
</ul>
|
||||||
|
<h3>Essential Links</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
|
||||||
|
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
|
||||||
|
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
|
||||||
|
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
|
||||||
|
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
|
||||||
|
</ul>
|
||||||
|
<h3>Ecosystem</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
|
||||||
|
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
|
||||||
|
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
|
||||||
|
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
|
||||||
|
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'HelloWorld',
|
||||||
|
props: {
|
||||||
|
msg: String
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
|
<style scoped lang="scss">
|
||||||
|
h3 {
|
||||||
|
margin: 40px 0 0;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #42b983;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
12
sms-doc/smsdoc/src/main.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import App from './App.vue'
|
||||||
|
import router from './router'
|
||||||
|
import store from './store'
|
||||||
|
|
||||||
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
|
new Vue({
|
||||||
|
router,
|
||||||
|
store,
|
||||||
|
render: h => h(App)
|
||||||
|
}).$mount('#app')
|
||||||
22
sms-doc/smsdoc/src/router/index.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import VueRouter from 'vue-router'
|
||||||
|
import HomeView from '../views/HomeView.vue'
|
||||||
|
|
||||||
|
Vue.use(VueRouter)
|
||||||
|
|
||||||
|
const routes = [
|
||||||
|
{
|
||||||
|
path: '/',
|
||||||
|
name: 'home',
|
||||||
|
component: ()=>import('../views/index.vue')
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
const router = new VueRouter({
|
||||||
|
mode: 'history',
|
||||||
|
base: process.env.BASE_URL,
|
||||||
|
routes
|
||||||
|
})
|
||||||
|
|
||||||
|
export default router
|
||||||
17
sms-doc/smsdoc/src/store/index.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import Vuex from 'vuex'
|
||||||
|
|
||||||
|
Vue.use(Vuex)
|
||||||
|
|
||||||
|
export default new Vuex.Store({
|
||||||
|
state: {
|
||||||
|
},
|
||||||
|
getters: {
|
||||||
|
},
|
||||||
|
mutations: {
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
},
|
||||||
|
modules: {
|
||||||
|
}
|
||||||
|
})
|
||||||
3
sms-doc/smsdoc/src/views/AboutView.vue
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<div class="about"></div>
|
||||||
|
</template>
|
||||||
18
sms-doc/smsdoc/src/views/HomeView.vue
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div class="logo">
|
||||||
|
<img alt="Vue logo" src="../assets/logo.png" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// @ is an alias to /src
|
||||||
|
import HelloWorld from '@/components/HelloWorld.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'HomeView',
|
||||||
|
components: {
|
||||||
|
HelloWorld,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style></style>
|
||||||
132
sms-doc/smsdoc/src/views/index.vue
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-left">
|
||||||
|
<img class="logo" src="../assets/logo.png" alt="" />
|
||||||
|
<span class="sms">sms aggregation</span>
|
||||||
|
</div>
|
||||||
|
<div class="header-right">
|
||||||
|
<input type="text" />
|
||||||
|
|
||||||
|
<a href=""><img src="../assets/首页2.png" alt="" />首页</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />文档</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />插件</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />案例</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />支持</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />更新记录</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />开发团队</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />参与贡献</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />推荐</a>
|
||||||
|
<a href=""><img src="../assets/项目2.png" />源码</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="main">
|
||||||
|
<img class="biglogo" src="../assets/logo.png" alt="" />
|
||||||
|
<h1>sms aggregation</h1>
|
||||||
|
<p>聚合式短信发送工具,降低开发难度,统一使用标准</p>
|
||||||
|
<button>开始使用</button>
|
||||||
|
</div>
|
||||||
|
<div class="gongneng">
|
||||||
|
<div><h3>容易上手</h3></div>
|
||||||
|
<div><h3>简单优雅</h3></div>
|
||||||
|
<div><h3>拓展灵活</h3></div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>特别赞助</h2>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>特性</h2>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>最新版本</h2>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>代码托管</h2></h2>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>知识星球</h2>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>开源社区平台</h2>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>友情链接</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer">
|
||||||
|
<p>
|
||||||
|
© 2022 wind 冀ICP备2021004949号-3 | 图标引用自阿里矢量图库个人使用
|
||||||
|
如侵删
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script></script>
|
||||||
|
<style>
|
||||||
|
a {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 5px;
|
||||||
|
/* line-height: 50px; */
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
height: 50px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
background: rgb(240, 240, 240);
|
||||||
|
line-height: 50px;
|
||||||
|
}
|
||||||
|
.header-left {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.header-right {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.sms {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 1000;
|
||||||
|
}
|
||||||
|
.logo {
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
height: 16px;
|
||||||
|
border-radius: 50px;
|
||||||
|
}
|
||||||
|
.biglogo {
|
||||||
|
width: 300px;
|
||||||
|
/* display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 100px; */
|
||||||
|
}
|
||||||
|
.main {
|
||||||
|
width: 500px;
|
||||||
|
height: 500px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 100px;
|
||||||
|
}
|
||||||
|
.gongneng {
|
||||||
|
margin-top: 100px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
.footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
4
sms-doc/smsdoc/vue.config.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
const { defineConfig } = require('@vue/cli-service')
|
||||||
|
module.exports = defineConfig({
|
||||||
|
transpileDependencies: true
|
||||||
|
})
|
||||||