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

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", "name": "media_player_client",
"version": "1.4.8", "version": "1.4.9",
"description": "A Quasar Framework app", "description": "A Quasar Framework app",
"productName": "MediaPlayerClient", "productName": "MediaPlayerClient",
"author": "fangxiang <fangxiang@cloudview.work>", "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> </q-header>
<!-- page --> <!-- 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"> <div class="row">
<!-- left --> <!-- left -->
<div <div

View File

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

View File

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

View File

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

View File

@ -8,15 +8,6 @@
@drop="onDrop" @drop="onDrop"
style="background-color: #bce0f0" 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"> <div id="windows" style="position: absolute">
<vue3-resize-drag <vue3-resize-drag
:w="item.width * ($refs.wall?.clientWidth ?? 0)" :w="item.width * ($refs.wall?.clientWidth ?? 0)"