设备休眠时只允许开关机操作

This commit is contained in:
fangxiang 2022-05-26 14:33:07 +08:00
parent e03bb2515b
commit 9cfe6783bd
9 changed files with 34 additions and 16 deletions

View File

@ -1,6 +1,6 @@
{
"name": "media_player_client",
"version": "1.4.8",
"version": "1.4.9",
"description": "A Quasar Framework app",
"productName": "MediaPlayerClient",
"author": "fangxiang <fangxiang@cloudview.work>",

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -11,7 +11,14 @@
</q-header>
<!-- page -->
<q-page-container class="col">
<div
v-if="!$store.state.power_state"
class="fit text-h5"
style="position: fixed; top: 50vh; left: 50vw"
>
{{ $t("device standby mode") }}
</div>
<q-page-container v-show="$store.state.power_state" class="col">
<div class="row">
<!-- left -->
<div

View File

@ -3,6 +3,7 @@
class="row full-width"
style="height: 35vh"
@touchstart="$event.stopPropagation()"
v-show="$store.state.power_state"
>
<div :class="'col-' + ($store.state.landspace ? '9' : '8')">
<div class="q-ma-md bg-primary">

View File

@ -5,6 +5,7 @@
>
<q-btn
class="col-auto"
:disable="!$store.state.power_state"
stretch
stack
flat
@ -16,6 +17,7 @@
<q-btn
class="col-auto"
:disable="!$store.state.power_state"
stretch
stack
flat
@ -27,6 +29,7 @@
<q-btn
class="col-auto"
:disable="!$store.state.power_state"
stretch
stack
flat
@ -38,6 +41,7 @@
<q-btn
class="col-auto"
:disable="!$store.state.power_state"
stretch
stack
flat
@ -49,6 +53,7 @@
<q-btn
class="col-auto"
:disable="!$store.state.power_state"
stretch
stack
flat
@ -59,6 +64,7 @@
/>
<q-btn
class="col-auto"
:disable="!$store.state.power_state"
stretch
stack
flat
@ -70,6 +76,7 @@
<q-btn
v-if="function_center_control"
:disable="!$store.state.power_state"
class="col-auto"
stretch
stack
@ -101,6 +108,7 @@
/>
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
no-caps
@ -112,6 +120,7 @@
/>
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
no-caps
@ -123,6 +132,7 @@
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
no-caps
@ -134,6 +144,7 @@
<q-btn
class="col-auto"
:disable="!$store.state.power_state"
stretch
stack
flat

View File

@ -73,6 +73,7 @@
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
:icon="/*settings*/ 'img:new_icon/system_setting.png'"
@ -83,6 +84,7 @@
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
:icon="/*description*/ 'img:new_icon/file_manager.png'"
@ -92,6 +94,7 @@
/>
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
:icon="/*grid_on*/ 'img:new_icon/grid_setting.png'"
@ -102,6 +105,7 @@
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
:icon="/*art_track*/ 'img:new_icon/subtitle.png'"
@ -114,7 +118,7 @@
stretch
flat
stack
:disable="plan_running"
:disable="plan_running || !$store.state.power_state"
:icon="/*vertical_align_top*/ 'img:new_icon/top_window.png'"
:label="$t('win top')"
class="q-mr-sm"
@ -125,7 +129,7 @@
stretch
flat
stack
:disable="plan_running"
:disable="plan_running || !$store.state.power_state"
:icon="/*vertical_align_bottom*/ 'img:new_icon/lower_window.png'"
:label="$t('win lower')"
class="q-mr-sm"
@ -136,7 +140,7 @@
stretch
flat
stack
:disable="plan_running"
:disable="plan_running || !$store.state.power_state"
:icon="/*vertical_align_bottom*/ 'img:new_icon/edit_window_rect.png'"
:label="$t('toolbar edit window rect')"
class="q-mr-sm"
@ -147,7 +151,7 @@
stretch
flat
stack
:disable="plan_running"
:disable="plan_running || !$store.state.power_state"
:icon="/*close*/ 'img:new_icon/close_window.png'"
:label="$t('close')"
class="q-mr-sm"
@ -158,7 +162,7 @@
stretch
flat
stack
:disable="plan_running"
:disable="plan_running || !$store.state.power_state"
:icon="/*clear_all*/ 'img:new_icon/clean_windows.png'"
:label="$t('clean screen')"
class="q-mr-sm"
@ -167,6 +171,7 @@
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
icon="border_clear"
@ -178,6 +183,7 @@
<q-btn
stretch
:disable="!$store.state.power_state"
flat
stack
icon="stop"
@ -209,6 +215,7 @@
<q-btn
v-if="function_center_control"
:disable="!$store.state.power_state"
stretch
flat
stack
@ -220,6 +227,7 @@
<q-space />
<q-btn-dropdown
:disable="!$store.state.power_state"
stretch
flat
:icon="/*build*/ 'img:new_icon/other_setting.png'"

View File

@ -8,15 +8,6 @@
@drop="onDrop"
style="background-color: #bce0f0"
>
<div
v-if="!$store.state.power_state"
style="position: absolute; top: -15%"
class="full-width text-center"
>
<span class="text-h5">
{{ $t("device standby mode") }}
</span>
</div>
<div id="windows" style="position: absolute">
<vue3-resize-drag
:w="item.width * ($refs.wall?.clientWidth ?? 0)"