ソースを参照

更新配置, 解决 webstorm 不能自动推断 elementui 标签的问题

reghao 2 年 前
コミット
e6618dd99d
11 ファイル変更208 行追加762 行削除
  1. 2 0
      .browserslistrc
  2. 5 0
      .editorconfig
  3. 0 6
      .env.development
  4. 0 6
      .env.production
  5. 0 8
      .env.staging
  6. 3 1
      .eslintrc.js
  7. 18 3
      .gitignore
  8. 0 4
      Dockerfile
  9. 157 714
      package-lock.json
  10. 21 18
      package.json
  11. 2 2
      vue.config.js

+ 2 - 0
.browserslistrc

@@ -0,0 +1,2 @@
+> 1%
+last 2 versions

+ 5 - 0
.editorconfig

@@ -0,0 +1,5 @@
+[*.{js,jsx,ts,tsx,vue}]
+indent_style = space
+indent_size = 2
+trim_trailing_whitespace = true
+insert_final_newline = true

+ 0 - 6
.env.development

@@ -1,6 +0,0 @@
-# just a flag
-ENV = 'development'
-
-# base api
-VUE_APP_BASE_API = '//api.reghao.cn'
-FILE_SERVER = '//file.reghao.cn

+ 0 - 6
.env.production

@@ -1,6 +0,0 @@
-# just a flag
-ENV = 'production'
-
-# base api
-VUE_APP_BASE_API = '//api.reghao.cn'
-FILE_SERVER = '//file.reghao.cn

+ 0 - 8
.env.staging

@@ -1,8 +0,0 @@
-# NODE_ENV = production
-
-# just a flag
-ENV = 'staging'
-
-# base api
-VUE_APP_BASE_API = '//api.reghao.cn'
-FILE_SERVER = '//file.reghao.cn

+ 3 - 1
.eslintrc.js

@@ -23,6 +23,7 @@ module.exports = {
     }],
     "vue/singleline-html-element-content-newline": "off",
     "vue/multiline-html-element-content-newline":"off",
+    "vue/require-default-prop": "off",
     "vue/name-property-casing": ["error", "PascalCase"],
     "vue/no-v-html": "off",
     'accessor-pairs': 2,
@@ -193,6 +194,7 @@ module.exports = {
     'object-curly-spacing': [2, 'always', {
       objectsInObjects: false
     }],
-    'array-bracket-spacing': [2, 'never']
+    'array-bracket-spacing': [2, 'never'],
+    "require-default-prop": "off"
   }
 }

+ 18 - 3
.gitignore

@@ -1,6 +1,21 @@
+.DS_Store
+node_modules
+/dist
 
-node_modules/
+# local env files
+.env.local
+.env.*.local
 
-.idea/
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
 
-dist/
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?

+ 0 - 4
Dockerfile

@@ -1,4 +0,0 @@
-FROM docker.reghao.cn/nginx/npm:1.21
-
-RUN sed -i 's/8080/8082/' /etc/nginx/conf.d/http.conf
-COPY ./dist/ /opt/webroot/

ファイルの差分が大きいため隠しています
+ 157 - 714
package-lock.json


+ 21 - 18
package.json

@@ -1,5 +1,5 @@
 {
-  "name": "videoproject",
+  "name": "bili",
   "version": "0.1.0",
   "private": true,
   "scripts": {
@@ -8,43 +8,46 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
-    "@liripeng/vue-audio-player": "^1.5.0",
     "axios": "^0.19.2",
-    "core-js": "^3.30.1",
+    "core-js": "^3.6.4",
+    "element-ui": "^2.13.0",
+    "videojs-contrib-hls": "^5.15.0",
+    "videojs-flash": "^2.2.1",
+    "vue": "^2.6.11",
+    "vue-cookies": "^1.7.0",
+    "vue-router": "^3.4.5",
+    "vue-video-player": "^5.0.2",
+    "flv.js": "^1.6.2",
+    "hls.js": "^1.1.2",
+    "shaka-player": "^3.2.1",
     "dashjs": "^4.2.0",
     "dplayer": "^1.26.0",
-    "element-ui": "^2.15.8",
+    "vue-simple-uploader": "^0.7.6",
     "filepond": "^4.20.1",
     "filepond-plugin-file-validate-size": "^2.2.1",
     "filepond-plugin-file-validate-type": "^1.2.5",
     "filepond-plugin-image-edit": "^1.6.1",
     "filepond-plugin-image-exif-orientation": "^1.0.9",
     "filepond-plugin-image-preview": "^4.6.4",
-    "flv.js": "^1.6.2",
-    "hls.js": "^1.1.2",
     "jsencrypt": "^3.2.1",
+    "vuex": "^3.4.0",
+    "@liripeng/vue-audio-player": "^1.5.0",
     "mavon-editor": "^2.10.4",
-    "shaka-player": "^3.2.1",
     "v-viewer": "^1.6.4",
-    "vue": "^2.7.14",
-    "vue-cookies": "^1.8.3",
-    "vue-quill-editor": "^3.0.6",
-    "vue-router": "^3.4.5",
-    "vue-simple-uploader": "^0.7.6",
-    "vuex": "^3.4.0"
+    "vue-quill-editor": "^3.0.6"
   },
   "devDependencies": {
-    "@vue/cli-plugin-babel": "^4.5.19",
-    "@vue/cli-plugin-eslint": "^4.5.19",
-    "@vue/cli-service": "^4.5.19",
+    "@vue/cli-plugin-babel": "^4.5.13",
+    "@vue/cli-plugin-eslint": "^4.5.13",
+    "@vue/cli-service": "^4.2.0",
     "@vue/eslint-config-standard": "^5.1.2",
     "babel-eslint": "^10.1.0",
     "eslint": "^6.7.2",
-    "eslint-plugin-import": "^2.27.5",
+    "eslint-plugin-import": "^2.20.2",
     "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-promise": "^4.2.1",
     "eslint-plugin-standard": "^4.0.0",
     "eslint-plugin-vue": "^6.2.2",
-    "vue-template-compiler": "^2.7.14"
+    "vue-template-compiler": "^2.6.11"
   }
 }

+ 2 - 2
vue.config.js

@@ -7,13 +7,13 @@ module.exports = {
       alias: {
         assets: '@/assets',
         components: '@/components',
-        // network: '@/network',
+        network: '@/network',
         views: '@/views'
       }
     }
   },
   devServer: {
-    port: 8000,
+    port: 8000, // 修改端口
     disableHostCheck: true,
     overlay: {
       warnings: false,

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません