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