56 lines
1 KiB
Vue
56 lines
1 KiB
Vue
<template>
|
|
<div>
|
|
<div class="_section">
|
|
<div class="_card">
|
|
<div class="_content">
|
|
<MkSwitch v-model:value="$store.state.i.injectFeaturedNote" @update:value="onChangeInjectFeaturedNote">
|
|
{{ $t('showFeaturedNotesInTimeline') }}
|
|
</MkSwitch>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="_section">
|
|
<MkA to="/settings/regedit">RegEdit</MkA>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { faEllipsisH } from '@fortawesome/free-solid-svg-icons';
|
|
import MkSelect from '@/components/ui/select.vue';
|
|
import MkSwitch from '@/components/ui/switch.vue';
|
|
import * as os from '@/os';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
MkSelect,
|
|
MkSwitch,
|
|
},
|
|
|
|
emits: ['info'],
|
|
|
|
data() {
|
|
return {
|
|
INFO: {
|
|
header: [{
|
|
title: this.$t('other'),
|
|
icon: faEllipsisH
|
|
}]
|
|
},
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.$emit('info', this.INFO);
|
|
},
|
|
|
|
methods: {
|
|
onChangeInjectFeaturedNote(v) {
|
|
os.api('i/update', {
|
|
injectFeaturedNote: v
|
|
});
|
|
},
|
|
}
|
|
});
|
|
</script>
|