wip: Desktop UI

This commit is contained in:
syuilo 2020-11-03 17:04:37 +09:00
parent 47d327a963
commit eca09db5fb
3 changed files with 8 additions and 3 deletions

View file

@ -602,6 +602,8 @@ instanceTicker: "ノートのインスタンス情報"
waitingFor: "{x}を待っています" waitingFor: "{x}を待っています"
random: "ランダム" random: "ランダム"
system: "システム" system: "システム"
switchUi: "UI切り替え"
desktop: "デスクトップ"
_reversi: _reversi:
reversi: "リバーシ" reversi: "リバーシ"

View file

@ -4,6 +4,7 @@ import { computed } from 'vue';
import { store } from '@/store'; import { store } from '@/store';
import { search } from '@/scripts/search'; import { search } from '@/scripts/search';
import * as os from '@/os'; import * as os from '@/os';
import { i18n } from '@/i18n';
export const sidebarDef = { export const sidebarDef = {
notifications: { notifications: {
@ -124,19 +125,19 @@ export const sidebarDef = {
icon: faColumns, icon: faColumns,
action: (ev) => { action: (ev) => {
os.modalMenu([{ os.modalMenu([{
text: 'Default', text: i18n.global.t('default'),
action: () => { action: () => {
localStorage.setItem('ui', 'default'); localStorage.setItem('ui', 'default');
location.reload(); location.reload();
} }
}, { }, {
text: 'Deck', text: i18n.global.t('deck'),
action: () => { action: () => {
localStorage.setItem('ui', 'deck'); localStorage.setItem('ui', 'deck');
location.reload(); location.reload();
} }
}, { }, {
text: 'Desktop', text: i18n.global.t('desktop'),
action: () => { action: () => {
localStorage.setItem('ui', 'desktop'); localStorage.setItem('ui', 'desktop');
location.reload(); location.reload();

View file

@ -59,6 +59,8 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
.mk-app { .mk-app {
height: 100vh;
width: 100vw;
} }
</style> </style>