feat: 可视化大屏展示

This commit is contained in:
2025-12-26 19:50:46 +08:00
parent 9fd7e0c656
commit 02f9b46b22
453 changed files with 70777 additions and 130 deletions
+22
View File
@@ -0,0 +1,22 @@
# 鹰眼管控平台 - 环境变量配置
# ========== 地图服务配置 ==========
# 高德地图API Key
REACT_APP_AMAP_KEY=7df3685709e341daed76e877e417e5be
# Cesium Ion Token
REACT_APP_CESIUM_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI5NjhjNDBlMS02OTBiLTQ5OWMtYjk3Mi04NjdiM2I4N2E4NDYiLCJpZCI6MzYxMzMzLCJpYXQiOjE3NjM0NDIxOTh9.PxIgncOzYVrDY17SWVJWD7U-9A1Wnomac8GEdcAYOeM
# ========== WebSocket服务配置 ==========
# 设备实时数据WebSocket地址
REACT_APP_DEVICE_WS_URL=ws://119.45.169.13:8848/device
# ========== 应用配置 ==========
# 运行环境: dev | test | pre | prod
# REACT_APP_ENV=dev
# 应用基础路径
# APP_BASE=/yingyan
+47
View File
@@ -0,0 +1,47 @@
/**
* 鹰眼管控平台 - Umi配置
*/
import routes from './routes';
import proxy from './proxy';
const { REACT_APP_ENV } = process.env as any;
const isDev = process.env.NODE_ENV === 'development';
const API_PREFIX = isDev ? '' : (process.env.API_PREFIX || '');
const APP_BASE = isDev ? '/' : (process.env.APP_BASE || '/');
export default {
hash: true,
publicPath: isDev ? '/' : (APP_BASE.endsWith('/') ? APP_BASE : APP_BASE + '/'),
// 禁用 umi 的 antd 插件,Ant Design 5.x 由 app.tsx 中的 ConfigProvider 管理
antd: false,
title: '鹰眼管控平台',
metas: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' },
],
// Ant Design 5.x 使用 ConfigProvider 配置主题,不再使用 Less 变量
// 主题配置移至 app.tsx 中的 ConfigProvider
locale: { antd: false, default: 'zh-CN', baseNavigator: true },
dynamicImport: { loading: '@/components/PageLoading' },
routes,
history: { type: 'browser' },
base: APP_BASE,
proxy: (proxy as any)[REACT_APP_ENV || 'dev'],
define: {
'process.env.API_PREFIX': API_PREFIX,
'process.env.APP_BASE': APP_BASE,
},
nodeModulesTransform: { type: 'none' },
mfsu: false,
fastRefresh: {},
// Cesium 资源配置
chainWebpack: (config: any) => {
config.plugin('define').tap((definitions: any) => {
Object.assign(definitions[0], {
'process.env.CESIUM_BASE_URL': JSON.stringify(isDev ? '/' : (APP_BASE.endsWith('/') ? APP_BASE : APP_BASE + '/')),
});
return definitions;
});
return config;
},
} as any;
+57
View File
@@ -0,0 +1,57 @@
/**
* 鹰眼管控平台 - 开发代理配置
*/
const GATEWAY = process.env.GATEWAY_ORIGIN || 'http://localhost:9900';
const SRS_SERVER = process.env.SRS_SERVER || 'http://220.205.16.27:8024';
export default {
dev: {
// API 请求代理
'/api-': {
target: GATEWAY,
changeOrigin: true,
},
// 3D模型CDN代理
'/goflymodel': {
target: 'https://minicdn.goflytec.com',
changeOrigin: true,
secure: false,
},
// SRS WebRTC WHEP 视频流代理
'/rtc': {
target: SRS_SERVER,
changeOrigin: true,
secure: false,
},
// SRS 登录认证接口代理
'/terraform': {
target: SRS_SERVER,
changeOrigin: true,
secure: false,
},
},
test: {
'/api-': {
target: GATEWAY,
changeOrigin: true,
ws: true,
},
'/goflymodel': {
target: 'https://minicdn.goflytec.com',
changeOrigin: true,
secure: false,
},
},
pre: {
'/api-': {
target: GATEWAY,
changeOrigin: true,
ws: true,
},
'/goflymodel': {
target: 'https://minicdn.goflytec.com',
changeOrigin: true,
secure: false,
},
},
} as const;
+41
View File
@@ -0,0 +1,41 @@
/**
* 鹰眼管控平台 - 路由配置
* 精简版路由:登录 → 大屏 → 3D地图
*/
export default [
// 登录页 - 无布局
{
path: '/user/login',
component: '@/pages/user/Login',
layout: false,
},
// 主应用 - 无菜单布局
{
path: '/',
component: '@/layouts/BlankLayout',
routes: [
// 默认跳转大屏
{
path: '/',
redirect: '/dashboard',
},
// 大屏首页
{
path: '/dashboard',
component: '@/pages/dashboard',
name: '监控大屏',
},
// 3D地图
{
path: '/map3d',
component: '@/pages/map3d',
name: '3D地图',
},
// 404
{
path: '*',
component: '@/pages/404',
},
],
},
];
+56
View File
@@ -0,0 +1,56 @@
{
"name": "yingyan",
"version": "1.0.0",
"description": "鹰眼 - 3D可视化管控平台",
"private": true,
"scripts": {
"copy:cesium": "node scripts/copy-cesium-assets.js",
"prestart": "npm run copy:cesium",
"prestart:dev": "npm run copy:cesium",
"prestart:test": "npm run copy:cesium",
"prestart:pre": "npm run copy:cesium",
"prebuild": "npm run copy:cesium",
"prebuild:test": "npm run copy:cesium",
"prebuild:pre": "npm run copy:cesium",
"prebuild:prod": "npm run copy:cesium",
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=dev GATEWAY_ORIGIN=http://localhost:9900 umi dev",
"start:dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=dev GATEWAY_ORIGIN=http://localhost:9900 umi dev",
"start:test": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=test GATEWAY_ORIGIN=https://test.goflytec.com umi dev",
"start:pre": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=pre GATEWAY_ORIGIN=http://119.45.169.13:9900 umi dev",
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider umi build",
"build:test": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=test API_PREFIX=http://119.45.169.13:9900 umi build",
"build:pre": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=pre API_PREFIX=http://119.45.169.13:9900 umi build",
"build:prod": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=prod umi build",
"lint": "eslint --ext .ts,.tsx src",
"tsc": "tsc --noEmit"
},
"dependencies": {
"@ant-design/plots": "^2.6.5",
"@ant-design/pro-components": "^2.6.0",
"@ant-design/pro-layout": "^7.22.7",
"antd": "^5.12.0",
"cesium": "^1.110.0",
"dayjs": "^1.11.10",
"jsencrypt": "^3.5.4",
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"umi": "^3.5.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/lodash": "^4.14.202",
"@types/node": "^20.10.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/uuid": "^9.0.0",
"@umijs/preset-react": "^2.1.0",
"cross-env": "^7.0.3",
"typescript": "^4.9.0"
},
"overrides": {
"path-to-regexp": "^3.3.0",
"postcss": "^7.0.39",
"@babel/runtime": "^7.26.10"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
<Title>NE2_HR_LC_SR_W_DR_recolored.tif</Title>
<Abstract></Abstract>
<SRS>EPSG:4326</SRS>
<BoundingBox miny="-90.00000000000000" minx="-180.00000000000000" maxy="90.00000000000000" maxx="180.00000000000000"/>
<Origin y="-90.00000000000000" x="-180.00000000000000"/>
<TileFormat width="256" height="256" mime-type="image/jpg" extension="jpg"/>
<TileSets profile="geodetic">
<TileSet href="0" units-per-pixel="0.70312500000000" order="0"/>
<TileSet href="1" units-per-pixel="0.35156250000000" order="1"/>
<TileSet href="2" units-per-pixel="0.17578125000000" order="2"/>
</TileSets>
</TileMap>
Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Some files were not shown because too many files have changed in this diff Show More