zhuangyunsheng 1 mēnesi atpakaļ
vecāks
revīzija
ac983ca989
7 mainītis faili ar 26 papildinājumiem un 49 dzēšanām
  1. 1 1
      .editorconfig
  2. 19 0
      .eslintrc.cjs
  3. 2 2
      LICENSE
  4. 4 26
      package.json
  5. 0 11
      public/config.js
  6. 0 3
      public/index.html
  7. 0 6
      src/config/index.js

+ 1 - 1
.editorconfig

@@ -9,4 +9,4 @@ insert_final_newline = true
 trim_trailing_whitespace = true
 
 [*.md]
-trim_trailing_whitespace = false
+trim_trailing_whitespace = false

+ 19 - 0
.eslintrc.cjs

@@ -0,0 +1,19 @@
+module.exports = {
+    root: true,
+    env: {
+        node: true
+    },
+    extends: [
+        "plugin:vue/vue3-essential"
+    ],
+    parserOptions: {
+        parser: "@babel/eslint-parser"
+    },
+    rules: {
+        indent: 0,
+        "no-tabs": 0,
+        "no-mixed-spaces-and-tabs": 0,
+        "vue/no-unused-components": 0,
+        "vue/multi-word-component-names": 0
+    }
+}

+ 2 - 2
LICENSE

@@ -1,6 +1,6 @@
 MIT License
 
-Copyright (c) 2021 sakuya
+Copyright (c) 2025 Easydo
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE.

+ 4 - 26
package.json

@@ -4,7 +4,7 @@
     "private": true,
     "scripts": {
         "dev": "vue-cli-service serve",
-        "build": "vue-cli-service build --report",
+        "build": "vue-cli-service build",
         "lint": "vue-cli-service lint"
     },
     "dependencies": {
@@ -39,7 +39,7 @@
         "xgplayer-hls": "2.5.2"
     },
     "devDependencies": {
-        "@babel/core": "7.21.00",
+        "@babel/core": "7.21.0",
         "@babel/eslint-parser": "7.19.1",
         "@iconify/vue": "^4.3.0",
         "@vue/cli-plugin-babel": "5.0.8",
@@ -47,33 +47,11 @@
         "@vue/cli-service": "5.0.8",
         "eslint": "8.35.0",
         "eslint-plugin-vue": "9.9.0",
-        "sass": "1.58.3",
-        "sass-loader": "10.1.1",
+        "sass": "^1.69.5",
+        "sass-loader": "^12.6.0",
         "unplugin-auto-import": "19.0.0",
         "unplugin-vue-components": "^28.0.0"
     },
-    "eslintConfig": {
-        "root": true,
-        "env": {
-            "node": true
-        },
-        "globals": {
-            "APP_CONFIG": true
-        },
-        "extends": [
-            "plugin:vue/vue3-essential"
-        ],
-        "parserOptions": {
-            "parser": "@babel/eslint-parser"
-        },
-        "rules": {
-            "indent": 0,
-            "no-tabs": 0,
-            "no-mixed-spaces-and-tabs": 0,
-            "vue/no-unused-components": 0,
-            "vue/multi-word-component-names": 0
-        }
-    },
     "browserslist": [
         "> 1%",
         "last 2 versions",

+ 0 - 11
public/config.js

@@ -1,11 +0,0 @@
-
-// 此文件非必要,在生产环境下此文件配置可覆盖运行配置,开发环境下不起效
-// 详情见 src/config/index.js
-
-const APP_CONFIG = {
-	//标题
-	//APP_NAME: "SCUI",
-
-	//接口地址,如遇跨域需使用nginx代理
-	//API_URL: "https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api"
-}

+ 0 - 3
public/index.html

@@ -9,9 +9,6 @@
     <title>
         <%= VUE_APP_TITLE %>
     </title>
-    <script type="text/javascript">
-        document.write("<script src='<%= BASE_URL %>config.js?" + new Date().getTime() + "'><\/script>");
-    </script>
 </head>
 
 <body data-layout="header">

+ 0 - 6
src/config/index.js

@@ -48,10 +48,4 @@ const DEFAULT_CONFIG = {
 	LS_ENCRYPTION_key: "2XNN4K8LC0ELVWN4"
 }
 
-// 如果生产模式,就合并动态的APP_CONFIG
-// public/config.js
-if (process.env.NODE_ENV === "production") {
-	Object.assign(DEFAULT_CONFIG, APP_CONFIG)
-}
-
 export default DEFAULT_CONFIG