mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
wip: Desktop UI
This commit is contained in:
parent
d7085b17fe
commit
055e9f21b7
3 changed files with 8 additions and 3 deletions
|
@ -602,6 +602,8 @@ instanceTicker: "ノートのインスタンス情報"
|
||||||
waitingFor: "{x}を待っています"
|
waitingFor: "{x}を待っています"
|
||||||
random: "ランダム"
|
random: "ランダム"
|
||||||
system: "システム"
|
system: "システム"
|
||||||
|
switchUi: "UI切り替え"
|
||||||
|
desktop: "デスクトップ"
|
||||||
|
|
||||||
_reversi:
|
_reversi:
|
||||||
reversi: "リバーシ"
|
reversi: "リバーシ"
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue