From 2a73d6b946700d96ba8c6bbb429d6c2c6afe3b08 Mon Sep 17 00:00:00 2001 From: fangxiang Date: Thu, 4 Aug 2022 17:10:52 +0800 Subject: [PATCH] =?UTF-8?q?special=5Fvideo=20=E7=9A=84Layout=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86=E6=94=B9=E4=B8=BA=E5=9B=BA=E5=AE=9A1*3,1*4,3?= =?UTF-8?q?*1,4*1=20special=5Fvideo=20=E4=B8=8A=E4=BC=A0=E5=BA=95=E5=9B=BE?= =?UTF-8?q?=E5=90=8E=E7=BC=80=E6=94=B9=E4=B8=BAsvdoj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/components/AboutDialog.vue | 7 +- src/components/BackgroundImageDialog.vue | 3 +- .../SpecialVideoGridSettingDialog.vue | 159 ++++++++++++++++++ src/pages/TopToolBar.vue | 18 +- src/pages/WallPage.vue | 5 +- 6 files changed, 188 insertions(+), 6 deletions(-) create mode 100644 src/components/SpecialVideoGridSettingDialog.vue diff --git a/src/App.vue b/src/App.vue index e884948..87f1ef8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -64,7 +64,7 @@ export default defineComponent({ } else if ( (window).media_control_client_product == EProductNames.SPECIAL_VIDEO ) { - document.title = $t.t("SpecialVideo") + "WebApp"; + document.title = $t.t("SuperVPlayer") + "WebApp"; } // 设置 AXIOS 默认请求头 diff --git a/src/components/AboutDialog.vue b/src/components/AboutDialog.vue index 0cc721f..387fdcd 100644 --- a/src/components/AboutDialog.vue +++ b/src/components/AboutDialog.vue @@ -95,7 +95,7 @@
- {{ product }} + {{ product_name }}
@@ -130,14 +130,18 @@ export default defineComponent({ const target_click_count = ref(30); const product = ref(""); + const product_name = ref("LedPlayer"); + if ( (window).media_control_client_product == EProductNames.LED_PLAYER ) { product.value = "LedPlayer"; + product_name.value = "LedPlayer"; } else if ( (window).media_control_client_product == EProductNames.SPECIAL_VIDEO ) { product.value = "SpecialVideo"; + product_name.value = "SuperVPlayer"; } let client_version = ref(version); @@ -160,6 +164,7 @@ export default defineComponent({ kernel_version, rootfs_version, product, + product_name, async showDialog() { click_count.value = 0; diff --git a/src/components/BackgroundImageDialog.vue b/src/components/BackgroundImageDialog.vue index 31ed1a0..7ebcdb6 100644 --- a/src/components/BackgroundImageDialog.vue +++ b/src/components/BackgroundImageDialog.vue @@ -48,7 +48,7 @@ method="post" :headers="generatorFileUploadHeaders" :label="$t('select background image') + ':'" - accept="image/*" + :accept="$store.state.isSpecialVideo() ? '.svdoj' : 'image/*'" :hide-upload-btn="true" @uploaded="onUploaded" @failed="onFailed" @@ -64,6 +64,7 @@ + + + + +
+
+ {{ $t("grid setting") }} +
+ +
+ + + {{ $t("close") }} + + +
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + diff --git a/src/pages/TopToolBar.vue b/src/pages/TopToolBar.vue index 5647047..26998eb 100644 --- a/src/pages/TopToolBar.vue +++ b/src/pages/TopToolBar.vue @@ -105,7 +105,12 @@ :icon="/*grid_on*/ 'img:new_icon/grid_setting.png'" :label="$t('grid setting')" class="q-mr-sm" - @click="$refs.grid_setting_dialog.showDialog()" + @click=" + ($store.state.isSpecialVideo() + ? $refs.special_video_grid_setting_dialog + : $refs.grid_setting_dialog + )?.showDialog() + " /> - + + @@ -406,6 +418,7 @@ import { defineComponent, ref, Ref, computed, watch } from "vue"; import { useStore } from "src/store"; import GridSettingDialog from "src/components/GridSettingDialog.vue"; +import SpecialVideoGridSettingDialog from "src/components/SpecialVideoGridSettingDialog.vue"; import BackgroundImageDialog from "src/components/BackgroundImageDialog.vue"; import RecoveryDatabaseDialog from "src/components/RecoveryDatabaseDialog.vue"; import UpgradeDialog from "src/components/UpgradeDialog.vue"; @@ -434,6 +447,7 @@ export default defineComponent({ components: { GridSettingDialog, + SpecialVideoGridSettingDialog, BackgroundImageDialog, RecoveryDatabaseDialog, UpgradeDialog, diff --git a/src/pages/WallPage.vue b/src/pages/WallPage.vue index 3c61b08..f2354d0 100644 --- a/src/pages/WallPage.vue +++ b/src/pages/WallPage.vue @@ -7,7 +7,7 @@ @dragleave="onDragLeave" @dragover="onDragOver" @drop="onDrop" - style="background-color: #bce0f0" + style="background-color: #bce0f0; margin-bottom: 10%" >
wall_cols.value) { + item_height.value *= 0.85; + } } else { item_height.value = 0; }