Prechádzať zdrojové kódy

修改限制提交文件

tengmingxue 2 rokov pred
rodič
commit
8554edf809
5 zmenil súbory, kde vykonal 163 pridanie a 11 odobranie
  1. 8 8
      .env
  2. 55 0
      .env.development
  3. 61 0
      .env.production
  4. 36 0
      .env.test
  5. 3 3
      .gitignore

+ 8 - 8
.env

@@ -1,8 +1,8 @@
-# port
-VITE_PORT = 8083
-
-# spa-title
-VITE_GLOB_APP_TITLE = ThingsKit
-
-# spa shortname
-# VITE_GLOB_APP_SHORT_NAME = Yunteng IOT
+# port
+VITE_PORT = 8084
+
+# spa-title
+VITE_GLOB_APP_TITLE = ThingsKit
+
+# spa shortname
+# VITE_GLOB_APP_SHORT_NAME = Yunteng IOT

+ 55 - 0
.env.development

@@ -0,0 +1,55 @@
+# Whether to open mock
+# VITE_GLOB_USE_MOCK = true
+
+# public path
+VITE_GLOB_PUBLIC_PATH = /
+
+# Cross-domain proxy, you can configure multiple
+# Please note that no line breaks
+
+# 本地
+# VITE_PROXY = [["/api","http://192.168.2.225/api"]]
+
+# 线上演示环境
+VITE_PROXY = [["/api","http://117.174.10.73:19200"],["/agent","http://117.174.10.73:31895"]]
+                                                              
+# 线上测试环境
+# VITE_PROXY = [["/api","http://localhost:8080/api"],["/thingskit-drawio","http://localhost:3000/"]]
+# VITE_PROXY = [["/api","http://222.180.200.114:48080/api"],["/thingskit-drawio","http://localhost:3000/"],["/large-designer", "http://localhost:5555/large-designer/"]]
+# VITE_PROXY = [["/api","http://121.37.251.8:8080/api"],["/thingskit-drawio","http://localhost:3000/"]]
+# VITE_PROXY = [["/api","http://192.168.10.125:8080/api"],["/thingskit-drawio","http://192.168.10.125:8080/api"]]
+
+# 实时数据的ws地址
+# VITE_WEB_SOCKET = ws://localhost:8080/api/ws/plugins/telemetry?token=
+# VITE_WEB_SOCKET = ws://44.99.141.212:8080/api/ws/plugins/telemetry?token=
+VITE_GLOB_WEB_SOCKET = ws://192.168.2.225/api/ws/plugins/telemetry?token=
+# VITE_WEB_SOCKET = ws://121.37.251.8:8080/api/ws/plugins/telemetry?token=
+
+# Delete console
+VITE_GLOB_DROP_CONSOLE = true
+
+# Basic interface address SPA
+VITE_GLOB_API_URL=/api
+VITE_GLOB_API_URL2=/agent
+
+# File upload address, optional
+VITE_GLOB_UPLOAD_URL=/api/yt/oss/upload
+
+# Interface prefix
+# VITE_GLOB_API_URL_PREFIX=/yt
+VITE_GLOB_API_URL_PREFIX=''
+
+#configuration
+VITE_GLOB_CONFIGURATION = /thingskit-drawio
+
+# 大屏设计器
+VITE_GLOB_LARGE_DESIGNER = /large-designer
+
+# Content Security Policy
+VITE_GLOB_CONTENT_SECURITY_POLICY = false
+
+# Alarm Notify Polling Interval Time
+VITE_GLOB_ALARM_NOTIFY_POLLING_INTERVAL_TIME = 500000
+
+# Alarm Notify Auto Close Time Unit is Second
+VITE_GLOB_ALARM_NOTIFY_DURATION = 5

+ 61 - 0
.env.production

@@ -0,0 +1,61 @@
+###
+ # @Author: renxin renxin0828@163.com
+ # @Date: 2023-03-31 13:53:57
+ # @LastEditors: renxin renxin0828@163.com
+ # @LastEditTime: 2023-03-31 14:11:05
+ # @FilePath: \thingskit-front\.env.production
+ # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+### 
+# Whether to open mock
+VITE_GLOB_USE_MOCK = false
+
+# public path
+VITE_GLOB_PUBLIC_PATH = /
+
+# Delete console
+VITE_GLOB_DROP_CONSOLE = true
+
+# Whether to enable gzip or brotli compression
+# Optional: gzip | brotli | none
+# If you need multiple forms, you can use `,` to separate
+VITE_GLOB_BUILD_COMPRESS = 'gzip'
+
+# Whether to delete origin files when using compress, default false
+VITE_GLOB_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
+
+# Basic interface address SPA
+VITE_GLOB_API_URL=http://192.168.2.225/api
+
+# File upload address, optional
+# It can be forwarded by nginx or write the actual address directly
+VITE_GLOB_UPLOAD_URL=http://192.168.2.225/api/yt/oss/upload
+
+# Interface prefix
+VITE_GLOB_API_URL_PREFIX=/yt
+
+# Whether to enable image compression
+VITE_GLOB_USE_IMAGEMIN= false
+
+# use pwa
+VITE_USE_PWA = false
+
+# Is it compatible with older browsers
+VITE_LEGACY = true
+
+# 实时数据的ws地址
+VITE_GLOB_WEB_SOCKET = ws://192.168.2.225/api/ws/plugins/telemetry?token=
+
+#configuration
+VITE_GLOB_CONFIGURATION = /thingskit-scada
+
+# 大屏设计器
+VITE_GLOB_LARGE_DESIGNER = /large-designer
+
+# Content Security Policy
+VITE_GLOB_CONTENT_SECURITY_POLICY = false
+
+# Alarm Notify Polling Interval Time
+VITE_GLOB_ALARM_NOTIFY_POLLING_INTERVAL_TIME = 60000
+
+# Alarm Notify Auto Close Time Unit is Second
+VITE_GLOB_ALARM_NOTIFY_DURATION = 5

+ 36 - 0
.env.test

@@ -0,0 +1,36 @@
+NODE_ENV=production
+# Whether to open mock
+VITE_USE_MOCK = true
+
+# public path
+VITE_PUBLIC_PATH = /
+
+# Delete console
+VITE_DROP_CONSOLE = true
+
+# Whether to enable gzip or brotli compression
+# Optional: gzip | brotli | none
+# If you need multiple forms, you can use `,` to separate
+VITE_BUILD_COMPRESS = 'none'
+
+# Whether to delete origin files when using compress, default false
+VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
+
+# Basic interface address SPA
+VITE_GLOB_API_URL=/basic-api
+
+# File upload address, optional
+# It can be forwarded by nginx or write the actual address directly
+VITE_GLOB_UPLOAD_URL=/upload
+
+# Interface prefix
+VITE_GLOB_API_URL_PREFIX=
+
+# Whether to enable image compression
+VITE_USE_IMAGEMIN= true
+
+# use pwa
+VITE_USE_PWA = false
+
+# Is it compatible with older browsers
+VITE_LEGACY = false

+ 3 - 3
.gitignore

@@ -8,13 +8,13 @@ dist
 tests/server/static
 tests/server/static/upload
 
-.env.development
+# .env.development
 .local
 # local env files
 .env.local
 .env.*.local
-.env.*test
-.env.*production
+# .env.*test
+# .env.*production
 .eslintcache
 
 # Log files