From cca33770fc1a6203972d88e85d8266b37e8209bc Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 28 Mar 2021 22:58:27 +0200 Subject: [PATCH] cleanup multi webcam Signed-off-by: Stefan Dej --- package-lock.json | 16 +- package.json | 2 +- .../panels/Settings/GeneralPanel.vue | 2 +- .../panels/Settings/WebcamPanel.vue | 617 +++++++++--------- src/components/panels/WebcamPanel.vue | 173 ++--- src/locales/en.js | 39 +- src/locales/zh.js | 4 +- src/store/gui/actions.js | 85 +-- src/store/gui/index.js | 24 +- src/store/gui/mutations.js | 27 +- 10 files changed, 470 insertions(+), 519 deletions(-) diff --git a/package-lock.json b/package-lock.json index e9a55099..f8b82c2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "vuex": "^3.6.2" }, "devDependencies": { - "@mdi/font": "^5.8.55", + "@mdi/font": "^5.9.55", "@vue/cli-plugin-babel": "^4.5.10", "@vue/cli-plugin-eslint": "^4.5.3", "@vue/cli-plugin-pwa": "^4.5.10", @@ -1537,9 +1537,9 @@ "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==" }, "node_modules/@mdi/font": { - "version": "5.8.55", - "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.8.55.tgz", - "integrity": "sha512-8mrwfFBsmj+D67ZiGQSe5TU/lcWCtDyli2eshQ2fvLCZGRPqFMM23YQp4+JMOTpk5yMZKTeAwNWIYfITy76OHA==", + "version": "5.9.55", + "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.9.55.tgz", + "integrity": "sha512-jswRF6q3eq8NWpWiqct6q+6Fg/I7nUhrxYJfiEM8JJpap0wVJLQdbKtyS65GdlK7S7Ytnx3TTi/bmw+tBhkGmg==", "dev": true, "license": "Apache-2.0" }, @@ -19950,9 +19950,9 @@ "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==" }, "@mdi/font": { - "version": "5.8.55", - "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.8.55.tgz", - "integrity": "sha512-8mrwfFBsmj+D67ZiGQSe5TU/lcWCtDyli2eshQ2fvLCZGRPqFMM23YQp4+JMOTpk5yMZKTeAwNWIYfITy76OHA==", + "version": "5.9.55", + "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.9.55.tgz", + "integrity": "sha512-jswRF6q3eq8NWpWiqct6q+6Fg/I7nUhrxYJfiEM8JJpap0wVJLQdbKtyS65GdlK7S7Ytnx3TTi/bmw+tBhkGmg==", "dev": true }, "@mrmlnc/readdir-enhanced": { @@ -36489,4 +36489,4 @@ } } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 2026985c..f3f6387a 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "vuex": "^3.6.2" }, "devDependencies": { - "@mdi/font": "^5.8.55", + "@mdi/font": "^5.9.55", "@vue/cli-plugin-babel": "^4.5.10", "@vue/cli-plugin-eslint": "^4.5.3", "@vue/cli-plugin-pwa": "^4.5.10", diff --git a/src/components/panels/Settings/GeneralPanel.vue b/src/components/panels/Settings/GeneralPanel.vue index 776eadfc..057e76fb 100644 --- a/src/components/panels/Settings/GeneralPanel.vue +++ b/src/components/panels/Settings/GeneralPanel.vue @@ -21,7 +21,7 @@ diff --git a/src/components/panels/Settings/WebcamPanel.vue b/src/components/panels/Settings/WebcamPanel.vue index ab70149e..a166e566 100644 --- a/src/components/panels/Settings/WebcamPanel.vue +++ b/src/components/panels/Settings/WebcamPanel.vue @@ -1,338 +1,319 @@ diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index b0f288fe..b12bcc9e 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -10,19 +10,19 @@ mdi-webcam {{ $t('Panels.WebcamPanel.Webcam')}} - ( {{ $t('Panels.WebcamPanel.FPS')}}: {{ currentFPS }}) + ( {{ $t('Panels.WebcamPanel.FPS')}}: {{ currentFPS }}) - + - + - {{webcam.icon}} + {{ webcam.icon }} @@ -33,25 +33,30 @@ - Webcam -
-
- mdi-camera-off

- Please configure a Webcam in the Settings! -
-
- mdi-camera-off

- Please check if the Stream URL is valid! -
-
+ +