mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-01 21:00:44 +01:00
Tweak UI
This commit is contained in:
parent
20816fd77a
commit
8bb76da6b5
3 changed files with 11 additions and 7 deletions
|
@ -1,15 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<FormBase>
|
<FormBase>
|
||||||
<FormGroup v-for="plugin in plugins" :key="plugin.id">
|
<FormGroup v-for="plugin in plugins" :key="plugin.id">
|
||||||
<template #label>{{ plugin.name }}</template>
|
<template #label><span style="display: flex;"><b>{{ plugin.name }}</b><span style="margin-left: auto;">v{{ plugin.version }}</span></span></template>
|
||||||
|
|
||||||
<FormSwitch :value="plugin.active" @update:value="changeActive(plugin, $event)">{{ $ts.makeActive }}</FormSwitch>
|
<FormSwitch :value="plugin.active" @update:value="changeActive(plugin, $event)">{{ $ts.makeActive }}</FormSwitch>
|
||||||
<div class="_formItem">
|
<div class="_formItem">
|
||||||
<div class="_formPanel" style="padding: 16px;">
|
<div class="_formPanel" style="padding: 16px;">
|
||||||
<div class="_keyValue">
|
|
||||||
<div>{{ $ts.version }}:</div>
|
|
||||||
<div>{{ plugin.version }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="_keyValue">
|
<div class="_keyValue">
|
||||||
<div>{{ $ts.author }}:</div>
|
<div>{{ $ts.author }}:</div>
|
||||||
<div>{{ plugin.author }}</div>
|
<div>{{ plugin.author }}</div>
|
||||||
|
@ -18,6 +14,10 @@
|
||||||
<div>{{ $ts.description }}:</div>
|
<div>{{ $ts.description }}:</div>
|
||||||
<div>{{ plugin.description }}</div>
|
<div>{{ plugin.description }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="_keyValue">
|
||||||
|
<div>{{ $ts.permission }}:</div>
|
||||||
|
<div>{{ plugin.permissions }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="_formItem">
|
<div class="_formItem">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<FormBase>
|
<FormBase>
|
||||||
<FormLink to="/settings/plugin/install"><template #icon><Fa :icon="faDownload"/></template>{{ $ts._plugin.install }}</FormLink>
|
<FormLink to="/settings/plugin/install"><template #icon><Fa :icon="faDownload"/></template>{{ $ts._plugin.install }}</FormLink>
|
||||||
<FormLink to="/settings/plugin/manage"><template #icon><Fa :icon="faFolderOpen"/></template>{{ $ts._plugin.manage }}</FormLink>
|
<FormLink to="/settings/plugin/manage"><template #icon><Fa :icon="faFolderOpen"/></template>{{ $ts._plugin.manage }}<template #suffix>{{ plugins }}</template></FormLink>
|
||||||
</FormBase>
|
</FormBase>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ import FormBase from '@/components/form/base.vue';
|
||||||
import FormGroup from '@/components/form/group.vue';
|
import FormGroup from '@/components/form/group.vue';
|
||||||
import FormLink from '@/components/form/link.vue';
|
import FormLink from '@/components/form/link.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
import { ColdDeviceStorage } from '@/store';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
@ -27,6 +28,7 @@ export default defineComponent({
|
||||||
title: this.$ts.plugins,
|
title: this.$ts.plugins,
|
||||||
icon: faPlug
|
icon: faPlug
|
||||||
},
|
},
|
||||||
|
plugins: ColdDeviceStorage.get('plugins').length,
|
||||||
faPlug, faSave, faTrashAlt, faFolderOpen, faDownload, faCog
|
faPlug, faSave, faTrashAlt, faFolderOpen, faDownload, faCog
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<FormLink to="/advanced-theme-editor"><template #icon><Fa :icon="faPaintRoller"/></template>{{ $ts._theme.make }} ({{ $ts.advanced }})</FormLink>
|
<FormLink to="/advanced-theme-editor"><template #icon><Fa :icon="faPaintRoller"/></template>{{ $ts._theme.make }} ({{ $ts.advanced }})</FormLink>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
|
||||||
<FormLink to="/settings/theme/manage"><template #icon><Fa :icon="faFolderOpen"/></template>{{ $ts._theme.manage }}</FormLink>
|
<FormLink to="/settings/theme/manage"><template #icon><Fa :icon="faFolderOpen"/></template>{{ $ts._theme.manage }}<template #suffix>{{ themesCount }}</template></FormLink>
|
||||||
</FormBase>
|
</FormBase>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -106,6 +106,7 @@ export default defineComponent({
|
||||||
const darkMode = computed(defaultStore.makeGetterSetter('darkMode'));
|
const darkMode = computed(defaultStore.makeGetterSetter('darkMode'));
|
||||||
const syncDeviceDarkMode = computed(ColdDeviceStorage.makeGetterSetter('syncDeviceDarkMode'));
|
const syncDeviceDarkMode = computed(ColdDeviceStorage.makeGetterSetter('syncDeviceDarkMode'));
|
||||||
const wallpaper = ref(localStorage.getItem('wallpaper'));
|
const wallpaper = ref(localStorage.getItem('wallpaper'));
|
||||||
|
const themesCount = installedThemes.value.length;
|
||||||
|
|
||||||
watch(darkTheme, () => {
|
watch(darkTheme, () => {
|
||||||
if (defaultStore.state.darkMode) {
|
if (defaultStore.state.darkMode) {
|
||||||
|
@ -150,6 +151,7 @@ export default defineComponent({
|
||||||
lightTheme,
|
lightTheme,
|
||||||
darkMode,
|
darkMode,
|
||||||
syncDeviceDarkMode,
|
syncDeviceDarkMode,
|
||||||
|
themesCount,
|
||||||
wallpaper,
|
wallpaper,
|
||||||
setWallpaper(e) {
|
setWallpaper(e) {
|
||||||
selectFile(e.currentTarget || e.target, null, false).then(file => {
|
selectFile(e.currentTarget || e.target, null, false).then(file => {
|
||||||
|
|
Loading…
Reference in a new issue