Add initial version of frontend code
15
frontend/.babelrc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
"modules": false,
|
||||||
|
"targets": {
|
||||||
|
"browsers": ["> 1%", "last 2 versions", "ie >= 10"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@vue/cli-plugin-babel/preset"
|
||||||
|
],
|
||||||
|
"plugins": ["@babel/plugin-transform-runtime"]
|
||||||
|
}
|
||||||
2
frontend/.browserslistrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
> 1%
|
||||||
|
last 2 versions
|
||||||
12
frontend/.editorconfig
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
6
frontend/.eslintignore
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
/lib/
|
||||||
|
/libs/
|
||||||
|
/web/
|
||||||
|
/pack/
|
||||||
|
/dist/
|
||||||
|
pages/
|
||||||
39
frontend/.eslintrc.js
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
env: {
|
||||||
|
node: true
|
||||||
|
},
|
||||||
|
extends: ['plugin:vue/essential', '@vue/prettier'],
|
||||||
|
rules: {
|
||||||
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
|
'global-require': 0,
|
||||||
|
//强制使用单引号
|
||||||
|
quotes: ['error', 'single'],
|
||||||
|
indent: 0,
|
||||||
|
'no-new': 0,
|
||||||
|
camelcase: 0,
|
||||||
|
'padded-blocks': 0,
|
||||||
|
'no-unused-vars': 0,
|
||||||
|
'no-trailing-spaces': 0,
|
||||||
|
'no-mixed-spaces-and-tabs': 0,
|
||||||
|
'space-before-function-paren': [0, 'always'],
|
||||||
|
'no-multiple-empty-lines': 0
|
||||||
|
},
|
||||||
|
globals: {
|
||||||
|
__SERVICE_URL__: false,
|
||||||
|
Vue: false,
|
||||||
|
Vuex: false,
|
||||||
|
VueRouter: false,
|
||||||
|
Fetch: false,
|
||||||
|
Hub: false,
|
||||||
|
echarts: false,
|
||||||
|
axios: false,
|
||||||
|
Cesium: false,
|
||||||
|
DC: false,
|
||||||
|
'%=': false
|
||||||
|
},
|
||||||
|
parserOptions: {
|
||||||
|
parser: 'babel-eslint'
|
||||||
|
}
|
||||||
|
}
|
||||||
21
frontend/.gitignore
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
node_modules/
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
web/
|
||||||
|
pack/
|
||||||
|
/dist/
|
||||||
|
.VSCodeCounter/
|
||||||
|
# Editor directories and files
|
||||||
|
/*.zip
|
||||||
|
/*.rar
|
||||||
|
!public.zip
|
||||||
|
!node_modules.zip
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
package-lock.json
|
||||||
|
.DS_Store
|
||||||
|
.history
|
||||||
5
frontend/.prettierrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"eslintIntegration": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"semi": false
|
||||||
|
}
|
||||||
1
frontend/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 乐智行
|
||||||
11
frontend/babel.config.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
const prodPlugins = []
|
||||||
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
prodPlugins.push('transform-remove-console')
|
||||||
|
}
|
||||||
|
module.exports = {
|
||||||
|
presets: [[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{ targets: "> 1% in AU and not dead", shippedProposals: true },
|
||||||
|
],'@vue/cli-plugin-babel/preset'],
|
||||||
|
plugins:[...prodPlugins]
|
||||||
|
}
|
||||||
58
frontend/package.json
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"name": "dt-vue",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"repository": "https://github.com/dvgis/vue-dc.git",
|
||||||
|
"keywords": [
|
||||||
|
"3D",
|
||||||
|
"webgl",
|
||||||
|
"map",
|
||||||
|
"globe",
|
||||||
|
"cesium",
|
||||||
|
"dt-sdk",
|
||||||
|
"vue"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
|
"build": "vue-cli-service build",
|
||||||
|
"lint": "vue-cli-service lint"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@turf/turf": "^7.1.0",
|
||||||
|
"axios": "^0.21.1",
|
||||||
|
"core-js": "^3.6.4",
|
||||||
|
"element-ui": "^2.15.6",
|
||||||
|
"js-cookie": "^2.2.1",
|
||||||
|
"js-md5": "^0.7.3",
|
||||||
|
"loadsh": "^0.0.4",
|
||||||
|
"moment": "^2.29.1",
|
||||||
|
"nprogress": "^0.2.0",
|
||||||
|
"remixicon": "^4.6.0",
|
||||||
|
"screenfull": "^5.2.0",
|
||||||
|
"sockjs-client": "^1.5.1",
|
||||||
|
"stompjs": "^2.3.3",
|
||||||
|
"vue": "^2.6.11",
|
||||||
|
"vue-router": "^3.1.5",
|
||||||
|
"vuex": "^3.1.2",
|
||||||
|
"vuex-persistedstate": "^4.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/cli-plugin-babel": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-eslint": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-router": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-vuex": "~4.4.0",
|
||||||
|
"@vue/cli-service": "~4.4.0",
|
||||||
|
"@vue/eslint-config-prettier": "^6.0.0",
|
||||||
|
"babel-eslint": "^10.1.0",
|
||||||
|
"compression-webpack-plugin": "^6.1.1",
|
||||||
|
"copy-webpack-plugin": "^5.0.3",
|
||||||
|
"eslint": "^5.16.0",
|
||||||
|
"eslint-plugin-prettier": "^3.1.1",
|
||||||
|
"eslint-plugin-vue": "^5.0.0",
|
||||||
|
"postcss-pxtorem": "^5.1.1",
|
||||||
|
"prettier": "^1.19.1",
|
||||||
|
"sass": "~1.29.0",
|
||||||
|
"sass-loader": "^9.0.1",
|
||||||
|
"svg-sprite-loader": "^5.0.0",
|
||||||
|
"url-loader": "^4.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
5
frontend/postcss.config.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module.exports = {
|
||||||
|
plugins: {
|
||||||
|
autoprefixer: {}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
frontend/public/config.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
window.config = {
|
||||||
|
env: 'offline', //online
|
||||||
|
api: 'http://127.0.0.1:9116/', // 外网服务器,
|
||||||
|
// socket: 'http://127.0.0.1:9116', 外网服务器,
|
||||||
|
imagePath: 'http://192.168.112.181:9000/files',
|
||||||
|
arithmeticPath: 'http://127.0.0.1:18090/ktkx/UavPlanning/SAR',
|
||||||
|
tokenKey: 'accessToken',
|
||||||
|
refreshTokenKey: 'refreshToken',
|
||||||
|
loginUrl: 'http://192.168.99.57:8080',
|
||||||
|
arcgisUrl: 'http://61.48.133.44:14001/map/arcgisMap',
|
||||||
|
minMapLevel: 1,
|
||||||
|
maxMapLevel: 16,
|
||||||
|
defaultLocation: [115.91531500114789, 40.35940233391189],
|
||||||
|
tdtToken: '316ac2812387c2cbff7a6f2f4e7f5bdc'
|
||||||
|
}
|
||||||
142062
frontend/public/data/ais.json
Normal file
BIN
frontend/public/data/cloud-point1/test.pnts
Normal file
39
frontend/public/data/cloud-point1/tileset.json
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"asset": {
|
||||||
|
"version": "1.0"
|
||||||
|
},
|
||||||
|
"geometricError": 17.32,
|
||||||
|
"root": {
|
||||||
|
"transform": [
|
||||||
|
0.968635634376879,
|
||||||
|
0.24848542777253735,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
-0.15986460794399626,
|
||||||
|
0.6231776137472074,
|
||||||
|
0.7655670897127491,
|
||||||
|
0,
|
||||||
|
0.190232265775849,
|
||||||
|
-0.7415555636019701,
|
||||||
|
0.6433560687121489,
|
||||||
|
0,
|
||||||
|
1215012.8828876738,
|
||||||
|
-4736313.051199594,
|
||||||
|
4081605.22126042,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"refine": "ADD",
|
||||||
|
"boundingVolume": {
|
||||||
|
"sphere": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
5
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"geometricError": 0,
|
||||||
|
"content": {
|
||||||
|
"uri": "test.pnts"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
40630
frontend/public/data/countries.json
Normal file
BIN
frontend/public/data/images/boat8.png
Normal file
|
After Width: | Height: | Size: 390 B |
BIN
frontend/public/data/images/dash.png
Normal file
|
After Width: | Height: | Size: 466 B |
BIN
frontend/public/data/images/people.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
frontend/public/data/images/polyline.png
Normal file
|
After Width: | Height: | Size: 199 B |
BIN
frontend/public/data/images/satellite.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
242
frontend/public/data/world.zh.json
Normal file
BIN
frontend/public/favicon.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
26
frontend/public/index.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" data-theme="dark">
|
||||||
|
|
||||||
|
<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.png" />
|
||||||
|
<link href="static/css/superTimeline.css" type="text/css" rel="stylesheet"></link>
|
||||||
|
<script src="./config.js"></script>
|
||||||
|
<!--title>灵动孪生智控系统</title-->
|
||||||
|
<title>SkyEye Sysetem</title>
|
||||||
|
<!-- <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>
|
||||||
BIN
frontend/public/map/arcgis/0/0/0.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
frontend/public/map/arcgis/1/0/0.png
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
frontend/public/map/arcgis/1/0/1.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
frontend/public/map/arcgis/1/1/0.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
frontend/public/map/arcgis/1/1/1.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
frontend/public/map/arcgis/2/0/0.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
frontend/public/map/arcgis/2/0/1.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
frontend/public/map/arcgis/2/0/2.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
frontend/public/map/arcgis/2/0/3.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
frontend/public/map/arcgis/2/1/0.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
frontend/public/map/arcgis/2/1/1.png
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
frontend/public/map/arcgis/2/1/2.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
frontend/public/map/arcgis/2/1/3.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
frontend/public/map/arcgis/2/2/0.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
frontend/public/map/arcgis/2/2/1.png
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
frontend/public/map/arcgis/2/2/2.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
frontend/public/map/arcgis/2/2/3.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
frontend/public/map/arcgis/2/3/0.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
frontend/public/map/arcgis/2/3/1.png
Normal file
|
After Width: | Height: | Size: 107 KiB |
BIN
frontend/public/map/arcgis/2/3/2.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
frontend/public/map/arcgis/2/3/3.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
frontend/public/map/arcgis/3/0/0.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
frontend/public/map/arcgis/3/0/1.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
frontend/public/map/arcgis/3/0/2.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
frontend/public/map/arcgis/3/0/3.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
frontend/public/map/arcgis/3/0/4.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
frontend/public/map/arcgis/3/0/5.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
frontend/public/map/arcgis/3/0/6.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
frontend/public/map/arcgis/3/0/7.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
frontend/public/map/arcgis/3/1/0.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
frontend/public/map/arcgis/3/1/1.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
frontend/public/map/arcgis/3/1/2.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
frontend/public/map/arcgis/3/1/3.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
frontend/public/map/arcgis/3/1/4.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
frontend/public/map/arcgis/3/1/5.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
frontend/public/map/arcgis/3/1/6.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
frontend/public/map/arcgis/3/1/7.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
frontend/public/map/arcgis/3/2/0.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
frontend/public/map/arcgis/3/2/1.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
frontend/public/map/arcgis/3/2/2.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
frontend/public/map/arcgis/3/2/3.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
frontend/public/map/arcgis/3/2/4.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
frontend/public/map/arcgis/3/2/5.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
frontend/public/map/arcgis/3/2/6.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
frontend/public/map/arcgis/3/2/7.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
frontend/public/map/arcgis/3/3/0.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
frontend/public/map/arcgis/3/3/1.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
frontend/public/map/arcgis/3/3/2.png
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
frontend/public/map/arcgis/3/3/3.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
frontend/public/map/arcgis/3/3/4.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
frontend/public/map/arcgis/3/3/5.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
frontend/public/map/arcgis/3/3/6.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
frontend/public/map/arcgis/3/3/7.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
frontend/public/map/arcgis/3/4/0.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
frontend/public/map/arcgis/3/4/1.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
frontend/public/map/arcgis/3/4/2.png
Normal file
|
After Width: | Height: | Size: 119 KiB |
BIN
frontend/public/map/arcgis/3/4/3.png
Normal file
|
After Width: | Height: | Size: 125 KiB |
BIN
frontend/public/map/arcgis/3/4/4.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
frontend/public/map/arcgis/3/4/5.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
frontend/public/map/arcgis/3/4/6.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
frontend/public/map/arcgis/3/4/7.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
frontend/public/map/arcgis/3/5/0.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
frontend/public/map/arcgis/3/5/1.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
frontend/public/map/arcgis/3/5/2.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
frontend/public/map/arcgis/3/5/3.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
frontend/public/map/arcgis/3/5/4.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
frontend/public/map/arcgis/3/5/5.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
frontend/public/map/arcgis/3/5/6.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
frontend/public/map/arcgis/3/5/7.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
frontend/public/map/arcgis/3/6/0.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
frontend/public/map/arcgis/3/6/1.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
frontend/public/map/arcgis/3/6/2.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
frontend/public/map/arcgis/3/6/3.png
Normal file
|
After Width: | Height: | Size: 118 KiB |
BIN
frontend/public/map/arcgis/3/6/4.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
frontend/public/map/arcgis/3/6/5.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
frontend/public/map/arcgis/3/6/6.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |