From 3b1340270117fb8e5abbe0ee32806c1279b6652b Mon Sep 17 00:00:00 2001 From: zyq Date: Thu, 8 Aug 2019 00:51:07 +0800 Subject: [PATCH 1/4] add update check --- package.json | 9 +- src/App.vue | 8 + src/components/footerContent.vue | 49 +++ src/layouts/Config.vue | 577 +++++++++++++++++-------------- src/layouts/Home.vue | 24 +- src/layouts/Import.vue | 12 +- src/store/module/app.js | 21 ++ src/store/module/site.js | 15 + yarn.lock | 27 +- 9 files changed, 433 insertions(+), 309 deletions(-) create mode 100644 src/components/footerContent.vue diff --git a/package.json b/package.json index d3b3d00..e71582d 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,12 @@ { "name": "h-player", - "version": "0.6.0", + "version": "0.7.0", "description": "A Quasar Framework app", "productName": "h-player", "cordovaId": "org.cordova.quasar.app", "author": "zyq ", "private": true, "scripts": { - "serve": "quasar dev", - "build": "quasar build", - "pwa:serve": "quasar dev -m pwa", - "pwa:build": "quasar build -m pwa", "electron:serve": "quasar dev -m electron", "electron:build": "quasar build -m electron", "lint": "eslint --ext .js,.vue src", @@ -21,6 +17,7 @@ "axios": "^0.18.1", "electron-positioner": "^4.1.0", "electron-store": "^4.0.0", + "electron-util": "^0.12.1", "fs-extra": "^8.1.0", "hls.js": "^0.12.4", "lodash": "^4.17.15", @@ -28,9 +25,9 @@ "plyr": "^3.5.6", "quasar": "^1.0.0", "query-string": "^6.8.1", + "semver": "^6.3.0", "vue-i18n": "^8.0.0", "vue-navigation": "^1.1.4", - "vue-plyr": "^5.1.3", "xml2js": "^0.4.19" }, "devDependencies": { diff --git a/src/App.vue b/src/App.vue index 4023f53..8d25a17 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,6 +7,14 @@ diff --git a/src/components/footerContent.vue b/src/components/footerContent.vue new file mode 100644 index 0000000..ea9f500 --- /dev/null +++ b/src/components/footerContent.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/src/layouts/Config.vue b/src/layouts/Config.vue index 5ff2632..9dc5109 100644 --- a/src/layouts/Config.vue +++ b/src/layouts/Config.vue @@ -23,286 +23,313 @@ - - - H - - + - -
视频源设置
- -
- -
-
- - - + + + + + +
name
+
+ + + - - - - - - - -
name
-
+
+ +
url
+
- - - - -
url
-
- - - - - -
httpApi
-
+ + + + +
httpApi
+
- - - - -
httpsApi
-
+ + + + +
httpsApi
+
- - - - -
type
-
+ + + + +
type
+
- - - + + + - - - - -
-
-
-
- -
-
- - - - - - 清空视频源后需要重新导入或添加,请确定已备份当前视频源 - + + + + + + +
+
+ +
+
+ + + + + + 清空视频源后需要重新导入或添加,请确定已备份当前视频源 + - - - - - - -
-
全局设置
- -
- -
-
+ + + + + + + +
全局设置
+ +
+ +
+
软件信息
+ +
+
+ 当前版本: + {{currentVersion}} +
+
+ 最新版本: + {{latestVersion}} +
+
+
+ +
+
+ +
+
@@ -310,12 +337,14 @@ diff --git a/src/layouts/Home.vue b/src/layouts/Home.vue index b37c1b0..4aedebc 100644 --- a/src/layouts/Home.vue +++ b/src/layouts/Home.vue @@ -115,21 +115,14 @@ elevated class="bg-grey-8 text-white" > - - - H - - +