2020-10-17 13:12:00 +02:00
|
|
|
<template>
|
2020-11-25 13:31:34 +01:00
|
|
|
<FormBase>
|
2021-01-23 08:52:45 +01:00
|
|
|
<FormLink to="/settings/update">Misskey Update</FormLink>
|
|
|
|
|
2021-09-29 17:50:45 +02:00
|
|
|
<FormSwitch :value="$i.injectFeaturedNote" @update:modelValue="onChangeInjectFeaturedNote">
|
2020-12-26 02:47:36 +01:00
|
|
|
{{ $ts.showFeaturedNotesInTimeline }}
|
2020-11-25 13:31:34 +01:00
|
|
|
</FormSwitch>
|
|
|
|
|
2021-09-29 17:50:45 +02:00
|
|
|
<FormSwitch v-model="reportError">{{ $ts.sendErrorReports }}<template #desc>{{ $ts.sendErrorReportsDescription }}</template></FormSwitch>
|
2021-01-08 13:43:56 +01:00
|
|
|
|
2020-12-26 02:47:36 +01:00
|
|
|
<FormLink to="/settings/account-info">{{ $ts.accountInfo }}</FormLink>
|
|
|
|
<FormLink to="/settings/experimental-features">{{ $ts.experimentalFeatures }}</FormLink>
|
2020-11-25 13:31:34 +01:00
|
|
|
|
|
|
|
<FormGroup>
|
2020-12-26 02:47:36 +01:00
|
|
|
<template #label>{{ $ts.developer }}</template>
|
2021-09-29 17:50:45 +02:00
|
|
|
<FormSwitch v-model="debug" @update:modelValue="changeDebug">
|
2020-11-01 03:39:38 +01:00
|
|
|
DEBUG MODE
|
2020-11-25 13:31:34 +01:00
|
|
|
</FormSwitch>
|
|
|
|
<template v-if="debug">
|
|
|
|
<FormButton @click="taskmanager">Task Manager</FormButton>
|
|
|
|
</template>
|
|
|
|
</FormGroup>
|
2021-01-11 12:38:34 +01:00
|
|
|
|
2021-04-20 16:22:59 +02:00
|
|
|
<FormLink to="/settings/registry"><template #icon><i class="fas fa-cogs"></i></template>{{ $ts.registry }}</FormLink>
|
2021-01-11 12:57:48 +01:00
|
|
|
|
2021-04-20 16:22:59 +02:00
|
|
|
<FormLink to="/bios" behavior="browser"><template #icon><i class="fas fa-door-open"></i></template>BIOS</FormLink>
|
|
|
|
<FormLink to="/cli" behavior="browser"><template #icon><i class="fas fa-door-open"></i></template>CLI</FormLink>
|
2021-03-02 17:03:29 +01:00
|
|
|
|
2021-09-17 13:00:31 +02:00
|
|
|
<FormLink to="/settings/delete-account"><template #icon><i class="fas fa-exclamation-triangle"></i></template>{{ $ts.closeAccount }}</FormLink>
|
2020-11-25 13:31:34 +01:00
|
|
|
</FormBase>
|
2020-10-17 13:12:00 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-11-01 03:39:38 +01:00
|
|
|
import { defineAsyncComponent, defineComponent } from 'vue';
|
2021-03-23 09:30:14 +01:00
|
|
|
import FormSwitch from '@client/components/form/switch.vue';
|
|
|
|
import FormSelect from '@client/components/form/select.vue';
|
2021-09-29 17:50:45 +02:00
|
|
|
import FormLink from '@client/components/debobigego/link.vue';
|
|
|
|
import FormBase from '@client/components/debobigego/base.vue';
|
|
|
|
import FormGroup from '@client/components/debobigego/group.vue';
|
|
|
|
import FormButton from '@client/components/debobigego/button.vue';
|
2021-03-23 09:30:14 +01:00
|
|
|
import * as os from '@client/os';
|
|
|
|
import { debug } from '@client/config';
|
|
|
|
import { defaultStore } from '@client/store';
|
|
|
|
import { unisonReload } from '@client/scripts/unison-reload';
|
2021-04-10 05:54:12 +02:00
|
|
|
import * as symbols from '@client/symbols';
|
2020-10-17 13:12:00 +02:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
2020-11-25 13:31:34 +01:00
|
|
|
FormBase,
|
|
|
|
FormSelect,
|
|
|
|
FormSwitch,
|
|
|
|
FormButton,
|
|
|
|
FormLink,
|
|
|
|
FormGroup,
|
2020-10-17 13:12:00 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
emits: ['info'],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2021-04-10 05:54:12 +02:00
|
|
|
[symbols.PAGE_INFO]: {
|
2020-12-26 02:47:36 +01:00
|
|
|
title: this.$ts.other,
|
2021-09-29 17:50:45 +02:00
|
|
|
icon: 'fas fa-ellipsis-h',
|
|
|
|
bg: 'var(--bg)',
|
2020-10-17 13:12:00 +02:00
|
|
|
},
|
2021-01-11 12:38:34 +01:00
|
|
|
debug,
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2021-01-08 13:43:56 +01:00
|
|
|
computed: {
|
|
|
|
reportError: defaultStore.makeGetterSetter('reportError'),
|
|
|
|
},
|
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
mounted() {
|
2021-04-10 05:54:12 +02:00
|
|
|
this.$emit('info', this[symbols.PAGE_INFO]);
|
2020-10-17 13:12:00 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2020-11-01 03:39:38 +01:00
|
|
|
changeDebug(v) {
|
|
|
|
console.log(v);
|
|
|
|
localStorage.setItem('debug', v.toString());
|
2021-02-17 13:36:56 +01:00
|
|
|
unisonReload();
|
2020-11-01 03:39:38 +01:00
|
|
|
},
|
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
onChangeInjectFeaturedNote(v) {
|
|
|
|
os.api('i/update', {
|
|
|
|
injectFeaturedNote: v
|
|
|
|
});
|
|
|
|
},
|
2020-11-01 03:39:38 +01:00
|
|
|
|
|
|
|
taskmanager() {
|
2021-03-23 09:30:14 +01:00
|
|
|
os.popup(import('@client/components/taskmanager.vue'), {
|
2020-11-01 03:39:38 +01:00
|
|
|
}, {}, 'closed');
|
2021-01-11 12:57:48 +01:00
|
|
|
},
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|