layout improvements

pull/1/head
Thomas Ballmann 4 years ago
parent 59f90f6ef4
commit 6930a9dac0

@ -1,3 +1,8 @@
.v-icon { .v-icon {
fill: currentColor; fill: currentColor;
} }
.v-btn__content .v-icon--left, .v-btn__content .v-icon--right {
width: 24px !important;
height: 24px !important;
}

@ -2,8 +2,14 @@
<v-card flat> <v-card flat>
<v-toolbar <v-toolbar
dark dark
color="primary" flat
color="orange darken-2"
class="pr-0 mr-0"
> >
<v-toolbar-title>
{{ ssid }}
</v-toolbar-title>
<v-spacer />
<v-btn <v-btn
icon icon
dark dark
@ -11,38 +17,36 @@
> >
<v-icon>$close</v-icon> <v-icon>$close</v-icon>
</v-btn> </v-btn>
<v-toolbar-title class="pl-0">
Enter the password for "{{ ssid }}"
</v-toolbar-title>
<v-progress-linear <template
:active="isConnecting" #extension
indeterminate >
absolute <div class="text-center align-content-center">
bottom Enter the password
color="deep-orange accent-4" </div>
/> </template>
</v-toolbar> </v-toolbar>
<v-card-text class="pa-5"> <v-card-text class="pa-5">
<v-text-field <v-text-field
v-model="password" v-model="password"
:append-icon="show1 ? '$visibility' : '$visibility_off'" :append-icon="show ? '$visibility' : '$visibility_off'"
:type="show1 ? 'text' : 'password'" :type="show ? 'text' : 'password'"
label="i8n:Password" label="Password"
@click:append="show1 = !show1" @click:append="show = !show"
/> />
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-spacer /> <v-spacer />
<v-btn <v-btn
block
depressed depressed
:disabled="password === ''" :disabled="password === ''"
color="primary" color="primary"
@click="onConnect(ssid, password)" @click="onConnect(ssid, password)"
> >
i8n:Join Join
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
@ -61,9 +65,8 @@
}, },
}, },
data: () => ({ data: () => ({
isConnecting: false,
password: '', password: '',
show1: false, show: false,
}), }),
} }
</script> </script>

@ -1,13 +1,13 @@
<template> <template>
<div class="pa-5">
<v-card <v-card
flat flat
rounded="lg"
> >
<v-card-title class="display-2 mb-12 justify-center text-center"> <v-card-title class="display-2 mb-12 justify-center text-center">
Device settings Device settings
</v-card-title> </v-card-title>
<v-card-text> <div>
<v-text-field <v-text-field
v-model="form.name" v-model="form.name"
label="Name" label="Name"
@ -48,7 +48,7 @@
(GMT{{ item.utcOffsetStr }}) {{ item.name }} (GMT{{ item.utcOffsetStr }}) {{ item.name }}
</template> </template>
</v-autocomplete> </v-autocomplete>
</v-card-text> </div>
<v-divider class="mt-12" /> <v-divider class="mt-12" />
<v-card-actions> <v-card-actions>
@ -71,7 +71,6 @@
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
</div>
</template> </template>
<script> <script>

@ -1,7 +1,7 @@
<template> <template>
<div class="pa-5">
<v-card <v-card
flat flat
rounded="lg"
> >
<v-card-title class="display-2 mb-12 justify-center text-center"> <v-card-title class="display-2 mb-12 justify-center text-center">
Playlist settings Playlist settings
@ -73,16 +73,15 @@
depressed depressed
@click="commitChanges" @click="commitChanges"
> >
<v-icon left> <v-icon
left
>
$done $done
</v-icon> </v-icon>
Save Save
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
- rename playlist to faces?
</div>
</template> </template>
<script> <script>

@ -1,7 +1,7 @@
<template> <template>
<div class="pa-5">
<v-card <v-card
flat flat
rounded="lg"
> >
<v-card-title class="display-2 mb-12 justify-center text-center"> <v-card-title class="display-2 mb-12 justify-center text-center">
System info System info
@ -165,7 +165,6 @@
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
</div>
</template> </template>
<script> <script>

@ -1,6 +1,7 @@
<template> <template>
<v-card <v-card
flat flat
rounded="lg"
> >
<v-card-title class="display-2 mb-12 justify-center text-center"> <v-card-title class="display-2 mb-12 justify-center text-center">
Weather settings Weather settings

@ -1,7 +1,7 @@
<template> <template>
<div class="pa-5">
<v-card <v-card
flat flat
rounded="lg"
> >
<v-card-title class="display-2 mb-12 justify-center text-center"> <v-card-title class="display-2 mb-12 justify-center text-center">
Wifi settings Wifi settings
@ -55,7 +55,7 @@
v-for="(wifi, i) in wifiAvailable" v-for="(wifi, i) in wifiAvailable"
> >
<div <div
v-if="wifi.ssid !== settings.system.wifi" v-if="wifi.ssid !== settings.system.wifi || !stats.wifi.connected"
:key="i" :key="i"
> >
<v-divider v-if="i > 0" /> <v-divider v-if="i > 0" />
@ -122,6 +122,7 @@
<v-dialog <v-dialog
v-model="wifiPasswordModal" v-model="wifiPasswordModal"
max-width="450" max-width="450"
_:fullscreen="$vuetify.breakpoint.mobile"
> >
<setup-wifi-connect <setup-wifi-connect
:ssid="connectSSID" :ssid="connectSSID"
@ -130,7 +131,6 @@
/> />
</v-dialog> </v-dialog>
</v-card> </v-card>
</div>
</template> </template>
<script> <script>
@ -174,7 +174,13 @@
this.connectingSSID = ssid this.connectingSSID = ssid
this.wifiPasswordModal = false this.wifiPasswordModal = false
apiDevice.wifiConnect(ssid, password, () => {}) apiDevice.wifiConnect(ssid, password, () => {
setTimeout(() => {
// phone should be back in regular wifi
// search for device via mDNS
window.location = 'http://paperdash-display.local'
}, 3000)
})
}, },
}, },
} }

Loading…
Cancel
Save