From c6d206703d661433eb00560f670ecd4812a1afe9 Mon Sep 17 00:00:00 2001 From: fangxiang Date: Mon, 25 Apr 2022 16:41:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E6=8B=96=E6=8B=BD=E5=88=B0?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E5=A2=99=E5=BC=80=E7=AA=97=E5=9D=90=E6=A0=87?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91=E3=80=82=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BF=AE=E6=94=B9=E7=AA=97=E5=8F=A3=E7=9F=A9=E5=BD=A2?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E3=80=82=20=E5=AD=97=E5=B9=95?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E9=9A=90=E8=97=8F=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E8=AE=BE=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-capacitor/package.json | 4 +- src/components/AdvancedDebugDialog.vue | 10 +- src/components/SubtitleDialog.vue | 4 +- src/components/Window.vue | 9 + src/components/WindowRectEditDialog.vue | 347 ++++++++++++++++++++++++ src/i18n/zh-CN/index.ts | 12 + src/pad/ContentWall.vue | 109 +++++--- src/pages/WallPage.vue | 87 ++++-- 8 files changed, 514 insertions(+), 68 deletions(-) create mode 100644 src/components/WindowRectEditDialog.vue diff --git a/src-capacitor/package.json b/src-capacitor/package.json index c24bd0d..4334cfe 100644 --- a/src-capacitor/package.json +++ b/src-capacitor/package.json @@ -1,6 +1,6 @@ { "name": "media_player_client", - "version": "1.4.1", + "version": "1.4.2", "description": "A Quasar Framework app", "author": "fangxiang ", "private": true, @@ -9,4 +9,4 @@ "@capacitor/cli": "^2.0.0", "@capacitor/core": "^2.0.0" } -} \ No newline at end of file +} diff --git a/src/components/AdvancedDebugDialog.vue b/src/components/AdvancedDebugDialog.vue index 19c3fb7..044fafa 100644 --- a/src/components/AdvancedDebugDialog.vue +++ b/src/components/AdvancedDebugDialog.vue @@ -12,7 +12,7 @@ " > - +
AdvancedDebug
@@ -56,14 +56,6 @@ color="primary" v-close-popup /> - diff --git a/src/components/SubtitleDialog.vue b/src/components/SubtitleDialog.vue index b5c6b85..dd2e3e1 100644 --- a/src/components/SubtitleDialog.vue +++ b/src/components/SubtitleDialog.vue @@ -56,9 +56,9 @@ - + - + {{ $t("replace window") }} + + {{ $t("edit window rect") }} + + + + + +
+
+ {{ $t("window rect") }} +
+ +
+ + + {{ $t("close") }} + + +
+
+
+ + + + + + + + + {{ $t("desktop width") }}: + + {{ $store.state.device_screen_width }} + + {{ $t("px") }} + + + + + {{ $t("desktop height") }}: + + {{ $store.state.device_screen_height }} + + {{ $t("px") }} + + + + + + + + + {{ $t("X") }}: + + + + + + + + + + + + + {{ $t("Y") }}: + + + + + + + + + + + + + + {{ $t("width") }}: + + + + + + + + + + + + + {{ $t("height") }}: + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + diff --git a/src/i18n/zh-CN/index.ts b/src/i18n/zh-CN/index.ts index a4c39f1..bb08dc9 100644 --- a/src/i18n/zh-CN/index.ts +++ b/src/i18n/zh-CN/index.ts @@ -480,4 +480,16 @@ export default { "plan running! can't open window!": "预案正在运行!不能开窗!", "full screen window": "全屏", "restore window size": "恢复", + "window rect": "窗口矩形", + "the number must be greater than 0": "数字必须大于0", + "the number must be greater than 1": "数字必须大于1", + X: "X坐标", + Y: "Y坐标", + "edit window rect": "修改窗口矩形", + "set the window rectangle beyond the desktop rectangle, the window rectangle will be clipped, are you sure to use this window rectangle": + "设置的窗口矩形超出桌面矩形,窗口矩形将会被裁剪,确定使用这个窗口矩形吗", + "desktop width": "桌面宽度", + "desktop height": "桌面高度", + px: "像素", + Warning: "警告", }; diff --git a/src/pad/ContentWall.vue b/src/pad/ContentWall.vue index f762d4d..7c403ca 100644 --- a/src/pad/ContentWall.vue +++ b/src/pad/ContentWall.vue @@ -52,6 +52,7 @@ @mute_unmute="mute_unmute" @start_polling="start_polling" @stop_polling="stop_polling" + @edit_rect="editRect" :ref="'window_' + item.window_id" :id="'window_' + item.window_id" :uuid="item.uuid" @@ -74,7 +75,7 @@ :key="row" class="row" :style="{ - height: cell_height + 'px', + height: wall_height.value / $store.state.wall_row + 'px', }" >
@@ -121,6 +124,7 @@
+