Skip to content

Commit cf3b621

Browse files
committed
git init
0 parents  commit cf3b621

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2849
-0
lines changed

.gitignore

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port
105+
106+
.idea
107+
108+
.idea/

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
### 环境准备
2+
3+
- vue-cli v4.2.3
4+
- Node.js v12.13.0
5+
- MongoDB v4.2.17
6+
7+
### 安装MongoDB数据库
8+
9+
进入[官网](https://www.mongodb.com/try/download/community)下载,版本是4.2.17,平台是Windows,安装包为msi格式
10+
11+
### 项目开发
12+
13+
#### 1. 克隆项目至本地:
14+
15+
```sh
16+
$ git clone https://github.com/pea-cake/tbk-manage.git
17+
$ cd tbk-manage
18+
```
19+
20+
#### 2. 安装后台(admin)及后端(server)项目依赖:
21+
22+
```sh
23+
$ npm install
24+
```
25+
26+
#### 3. 运行后台(admin)及后端(server)项目:
27+
28+
```sh
29+
$ npm run serve
30+
```
31+
32+
#### 4. 打开浏览器预览:
33+
34+
http://localhost:8090 打开后台本地页面。
35+
36+
第一次后台admin登陆时请先注册用户,登录后可以将注册按钮隐藏以防登录账户泄露。

admin/.env.development

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NODE_ENV=development
2+
VUE_APP_API_URL = http://localhost:3000/admin/api
3+
#VUE_APP_API_URL = http://***.com/admin/api

admin/.env.production

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NODE_ENV=production
2+
VUE_APP_API_URL = /admin/api
3+
#VUE_APP_API_URL = http://***.com/admin/api

admin/.env.staging

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NODE_ENV=production
2+
#VUE_APP_API_URL = http://localhost:3000/admin/api
3+
VUE_APP_API_URL = http://***.com/admin/api

admin/.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw?

admin/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# admin
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
yarn lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

admin/babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

admin/package.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "admin",
3+
"version": "0.1.0",
4+
"main": "src/mian.js",
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint"
9+
},
10+
"author": "pea-cake",
11+
"license": "MIT",
12+
"dependencies": {
13+
"axios": "^0.24.0",
14+
"bcryptjs": "^2.4.3",
15+
"core-js": "^3.6.4",
16+
"dayjs": "^1.8.23",
17+
"element-ui": "^2.13.0",
18+
"mavon-editor": "^2.7.7",
19+
"vue": "^2.6.11",
20+
"vue-router": "^3.1.6",
21+
"vue2-editor": "^2.10.2"
22+
},
23+
"devDependencies": {
24+
"@vue/cli-plugin-babel": "~4.2.0",
25+
"@vue/cli-plugin-eslint": "~4.2.0",
26+
"@vue/cli-service": "~4.2.0",
27+
"babel-eslint": "^10.0.3",
28+
"eslint": "^6.7.2",
29+
"eslint-plugin-vue": "^6.1.2",
30+
"node-sass": "^4.13.1",
31+
"sass-loader": "^8.0.2",
32+
"vue-template-compiler": "^2.6.11"
33+
},
34+
"eslintConfig": {
35+
"root": true,
36+
"env": {
37+
"node": true
38+
},
39+
"extends": [
40+
"plugin:vue/essential",
41+
"eslint:recommended"
42+
],
43+
"parserOptions": {
44+
"parser": "babel-eslint"
45+
},
46+
"rules": {}
47+
},
48+
"browserslist": [
49+
"> 1%",
50+
"last 2 versions"
51+
]
52+
}

admin/public/index.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
8+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
9+
<title>tbk后台管理</title>
10+
</head>
11+
12+
<body>
13+
<noscript>
14+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
15+
Please enable it to continue.</strong>
16+
</noscript>
17+
<div id="app"></div>
18+
<!-- built files will be auto injected -->
19+
</body>
20+
21+
</html>

admin/src/App.vue

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<template>
2+
<div id="app">
3+
<router-view />
4+
</div>
5+
</template>
6+
7+
<style lang="scss">
8+
html,
9+
body {
10+
margin: 0;
11+
padding: 0;
12+
}
13+
.el-submenu .el-menu-item{
14+
min-width: 100% !important;
15+
}
16+
body {
17+
height: 100%;
18+
-moz-osx-font-smoothing: grayscale;
19+
-webkit-font-smoothing: antialiased;
20+
text-rendering: optimizeLegibility;
21+
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
22+
}
23+
24+
label {
25+
font-weight: 700;
26+
}
27+
28+
html {
29+
height: 100%;
30+
box-sizing: border-box;
31+
}
32+
33+
#app {
34+
height: 100%;
35+
}
36+
37+
*,
38+
*:before,
39+
*:after {
40+
box-sizing: inherit;
41+
}
42+
43+
.no-padding {
44+
padding: 0px !important;
45+
}
46+
47+
.padding-content {
48+
padding: 4px 0;
49+
}
50+
51+
a:focus,
52+
a:active {
53+
outline: none;
54+
}
55+
56+
a,
57+
a:focus,
58+
a:hover {
59+
cursor: pointer;
60+
color: inherit;
61+
text-decoration: none;
62+
}
63+
64+
div:focus {
65+
outline: none;
66+
}
67+
68+
.fr {
69+
float: right;
70+
}
71+
72+
.fl {
73+
float: left;
74+
}
75+
76+
.pr-5 {
77+
padding-right: 5px;
78+
}
79+
80+
.pl-5 {
81+
padding-left: 5px;
82+
}
83+
84+
.block {
85+
display: block;
86+
}
87+
88+
.pointer {
89+
cursor: pointer;
90+
}
91+
92+
.inlineBlock {
93+
display: block;
94+
}
95+
96+
</style>
2.29 KB
Loading

admin/src/assets/linkimage/zhihu.png

1.17 KB
Loading

admin/src/assets/logo.png

6.69 KB
Loading
18.9 KB
Loading
26.9 KB
Loading

admin/src/assets/postimage/git.jpg

26.2 KB
Loading

admin/src/assets/postimage/learn1.jpg

27.5 KB
Loading

admin/src/assets/postimage/null.jpg

32.1 KB
Loading

admin/src/assets/postimage/this.jpg

14.7 KB
Loading

0 commit comments

Comments
 (0)