Skip to content

Commit ff3c1f6

Browse files
author
潘卓然 Parn Deedlit
authored
Merge pull request #29 from MapGIS/smaryun
Smaryun
2 parents ea5c5d9 + 7179f03 commit ff3c1f6

3,045 files changed

Lines changed: 763121 additions & 0 deletions

File tree

Some content is hidden

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

website/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/src/components/IconFont

website/.gitignore

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

website/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# webclient-javascript-vue
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/).

website/babel.config.js

Lines changed: 5 additions & 0 deletions
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+
}

website/express/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# express
2+
3+
1. 安装全局的express环境
4+
``` sh
5+
npm install -g express-generator@4
6+
```
7+
2. 进入对应的webclient-javascript-vue的express目录下
8+
``` sh
9+
cd path/to/webclient-javascript-vue/express
10+
```
11+
3. 在express目录下新建server文件夹,并按需修改app.js中的端口
12+
``` sh
13+
express server && cd server
14+
```
15+
``` js
16+
app.listen(8899)
17+
```
18+
4. 在server目录下安装依赖
19+
``` sh
20+
npm install
21+
npm install --save node-windows
22+
npm start
23+
```
24+
5. 复制上一级中的windowserver.js到当前目录,并修改里面的路径
25+
``` js
26+
let svc = new Service({
27+
name: "WebClientTest", //服务名称
28+
description: "WebClient项目NodeJs服务器", //描述
29+
script: "path/to/webclient-javascript-vue/express/server/bin/www", //nodejs项目要启动的文件路径
30+
});
31+
```
32+
6. 启动对应的windowserver脚本,注册为windows的服务
33+
``` sh
34+
node windowserver.js
35+
```
36+
7. 在windows的服务中,启动服务,默认情况是随开机自启的
37+
38+
39+
40+

website/express/windowserver.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
let Service = require("node-windows").Service;
2+
3+
let svc = new Service({
4+
name: "WebClientTest", //服务名称
5+
description: "WebClient项目NodeJs服务器", //描述
6+
script: "D:/WebClient/Code/webclient-javascript-vue/express/server/bin/www", //nodejs项目要启动的文件路径
7+
});
8+
9+
svc.on("install", () => {
10+
svc.start();
11+
});
12+
13+
svc.on("uninstall", function() {
14+
console.log("Uninstall complete.");
15+
console.log("The service exists: ", svc.exists);
16+
});
17+
18+
svc.install();
19+
// Uninstall the service.
20+
// svc.uninstall();

website/package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "webclient-javascript-website",
3+
"version": "10.5.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint"
9+
},
10+
"dependencies": {
11+
"axios": "^0.19.0",
12+
"core-js": "^3.3.2",
13+
"element-ui": "^2.12.0",
14+
"js-cookie": "^2.2.1",
15+
"less": "^3.10.3",
16+
"less-loader": "^5.0.0",
17+
"node-sass": "^4.13.0",
18+
"prismjs": "^1.20.0",
19+
"sass-loader": "^8.0.0",
20+
"splitpanes": "^2.0.0",
21+
"vue": "^2.6.10",
22+
"vue-codemirror": "^4.0.6",
23+
"vue-lazyload": "^1.3.3",
24+
"vue-markdown": "^2.2.4",
25+
"vue-router": "^3.1.3",
26+
"vuex": "^3.1.1"
27+
},
28+
"devDependencies": {
29+
"@vue/cli-plugin-babel": "^4.0.0",
30+
"@vue/cli-plugin-eslint": "^4.0.0",
31+
"@vue/cli-plugin-router": "^4.0.5",
32+
"@vue/cli-plugin-vuex": "^4.0.5",
33+
"@vue/cli-service": "^4.0.0",
34+
"babel-eslint": "^10.0.3",
35+
"eslint": "^5.16.0",
36+
"eslint-plugin-vue": "^5.0.0",
37+
"vue-template-compiler": "^2.6.10"
38+
},
39+
"eslintConfig": {
40+
"root": true,
41+
"env": {
42+
"node": true
43+
},
44+
"extends": [
45+
"plugin:vue/essential",
46+
"eslint:recommended"
47+
],
48+
"rules": {},
49+
"parserOptions": {
50+
"parser": "babel-eslint"
51+
}
52+
},
53+
"postcss": {
54+
"plugins": {
55+
"autoprefixer": {}
56+
}
57+
},
58+
"browserslist": [
59+
"> 1%",
60+
"last 2 versions"
61+
]
62+
}

website/public/docs/cdn/all.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/public/docs/cdn/babel.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/public/docs/cdn/buttons.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)