2018-02-20 05:02:53 +01:00
|
|
|
<template>
|
|
|
|
<mk-ui>
|
2019-03-01 02:42:28 +01:00
|
|
|
<template #header><span style="margin-right:4px;"><fa icon="cog"/></span>{{ $t('@.settings') }}</template>
|
2018-09-28 07:26:20 +02:00
|
|
|
<main>
|
2019-03-01 02:42:28 +01:00
|
|
|
<div class="signed-in-as" :class="{ shadow: $store.state.device.useShadow, round: $store.state.device.roundedCorners }">
|
2019-01-19 00:45:12 +01:00
|
|
|
<mfm :text="$t('signed-in-as').replace('{}', name)" :should-break="false" :plain-text="true" :custom-emojis="$store.state.i.emojis"/>
|
2019-01-19 00:28:46 +01:00
|
|
|
</div>
|
2018-05-19 13:31:13 +02:00
|
|
|
|
2019-03-01 02:42:28 +01:00
|
|
|
<x-settings/>
|
2018-10-13 06:22:14 +02:00
|
|
|
|
2019-03-01 02:42:28 +01:00
|
|
|
<div class="signout" :class="{ shadow: $store.state.device.useShadow, round: $store.state.device.roundedCorners }" @click="signout">{{ $t('@.signout') }}</div>
|
2018-07-29 02:17:07 +02:00
|
|
|
|
2018-06-15 00:56:56 +02:00
|
|
|
<footer>
|
|
|
|
<small>ver {{ version }} ({{ codename }})</small>
|
|
|
|
</footer>
|
2018-05-19 13:31:13 +02:00
|
|
|
</main>
|
2018-02-20 05:02:53 +01:00
|
|
|
</mk-ui>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 19:44:35 +01:00
|
|
|
import i18n from '../../../i18n';
|
2019-03-01 02:42:28 +01:00
|
|
|
import XSettings from '../../../common/views/components/settings/settings.vue';
|
|
|
|
import { version, codename } from '../../../config';
|
2018-02-20 05:02:53 +01:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 19:44:35 +01:00
|
|
|
i18n: i18n('mobile/views/pages/settings.vue'),
|
2018-11-13 15:06:31 +01:00
|
|
|
components: {
|
2019-03-01 02:42:28 +01:00
|
|
|
XSettings,
|
2018-11-13 15:06:31 +01:00
|
|
|
},
|
2018-02-20 05:02:53 +01:00
|
|
|
data() {
|
|
|
|
return {
|
2018-03-29 07:48:47 +02:00
|
|
|
version,
|
2018-05-19 13:31:13 +02:00
|
|
|
codename,
|
2018-02-20 05:02:53 +01:00
|
|
|
};
|
|
|
|
},
|
2018-04-05 18:36:34 +02:00
|
|
|
computed: {
|
2018-04-09 11:52:29 +02:00
|
|
|
name(): string {
|
2018-05-27 06:49:09 +02:00
|
|
|
return Vue.filter('userName')(this.$store.state.i);
|
2018-05-20 19:13:39 +02:00
|
|
|
},
|
2018-09-14 08:14:59 +02:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
signout() {
|
2018-11-09 10:25:21 +01:00
|
|
|
this.$root.signout();
|
2018-08-16 16:59:22 +02:00
|
|
|
},
|
2018-02-20 05:02:53 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2018-05-19 13:31:13 +02:00
|
|
|
<style lang="stylus" scoped>
|
2018-09-28 04:45:34 +02:00
|
|
|
main
|
2018-05-19 13:31:13 +02:00
|
|
|
|
2019-01-21 06:45:57 +01:00
|
|
|
> .signed-in-as
|
2018-06-15 00:56:56 +02:00
|
|
|
margin 16px
|
2018-06-14 09:48:49 +02:00
|
|
|
padding 16px
|
2018-02-20 05:02:53 +01:00
|
|
|
text-align center
|
2018-09-26 13:38:16 +02:00
|
|
|
color var(--mobileSignedInAsFg)
|
|
|
|
background var(--mobileSignedInAsBg)
|
2019-01-19 00:28:46 +01:00
|
|
|
font-weight bold
|
2018-06-15 00:56:56 +02:00
|
|
|
|
2019-03-01 02:42:28 +01:00
|
|
|
&.round
|
|
|
|
border-radius 6px
|
|
|
|
|
|
|
|
&.shadow
|
|
|
|
box-shadow 0 3px 1px -2px rgba(#000, 0.2), 0 2px 2px 0 rgba(#000, 0.14), 0 1px 5px 0 rgba(#000, 0.12)
|
|
|
|
|
2018-07-29 02:17:07 +02:00
|
|
|
> .signout
|
|
|
|
margin 16px
|
|
|
|
padding 16px
|
|
|
|
text-align center
|
2018-09-26 13:47:11 +02:00
|
|
|
color var(--mobileSignedInAsFg)
|
|
|
|
background var(--mobileSignedInAsBg)
|
2019-03-01 02:42:28 +01:00
|
|
|
|
|
|
|
&.round
|
|
|
|
border-radius 6px
|
|
|
|
|
|
|
|
&.shadow
|
|
|
|
box-shadow 0 3px 1px -2px rgba(#000, 0.2), 0 2px 2px 0 rgba(#000, 0.14), 0 1px 5px 0 rgba(#000, 0.12)
|
2018-07-29 02:17:07 +02:00
|
|
|
|
2018-06-15 00:56:56 +02:00
|
|
|
> footer
|
|
|
|
margin 16px
|
|
|
|
text-align center
|
2018-09-28 04:45:34 +02:00
|
|
|
color var(--text)
|
|
|
|
opacity 0.7
|
2018-02-20 05:02:53 +01:00
|
|
|
|
|
|
|
</style>
|