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