Refactoring
This commit is contained in:
@@ -28,10 +28,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: 'API',
|
||||
icon: faKey
|
||||
}]
|
||||
title: 'API',
|
||||
icon: faKey
|
||||
},
|
||||
isDesktop: window.innerWidth >= 1100,
|
||||
};
|
||||
|
@@ -107,10 +107,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('general'),
|
||||
icon: faCogs
|
||||
}]
|
||||
title: this.$t('general'),
|
||||
icon: faCogs
|
||||
},
|
||||
langs,
|
||||
lang: localStorage.getItem('lang'),
|
||||
|
@@ -55,10 +55,8 @@ export default defineComponent({
|
||||
|
||||
setup(props, context) {
|
||||
const INFO = ref({
|
||||
header: [{
|
||||
title: i18n.global.t('settings'),
|
||||
icon: faCog
|
||||
}]
|
||||
title: i18n.global.t('settings'),
|
||||
icon: faCog
|
||||
});
|
||||
const narrow = ref(false);
|
||||
const view = ref(null);
|
||||
|
@@ -41,10 +41,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('integration'),
|
||||
icon: faShareAlt
|
||||
}]
|
||||
title: this.$t('integration'),
|
||||
icon: faShareAlt
|
||||
},
|
||||
apiUrl,
|
||||
twitterForm: null,
|
||||
|
@@ -49,10 +49,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('muteAndBlock'),
|
||||
icon: faBan
|
||||
}]
|
||||
title: this.$t('muteAndBlock'),
|
||||
icon: faBan
|
||||
},
|
||||
tab: 'mute',
|
||||
mutingPagination: {
|
||||
|
@@ -40,10 +40,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('notifications'),
|
||||
icon: faBell
|
||||
}]
|
||||
title: this.$t('notifications'),
|
||||
icon: faBell
|
||||
},
|
||||
faCog
|
||||
}
|
||||
|
@@ -42,10 +42,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('other'),
|
||||
icon: faEllipsisH
|
||||
}]
|
||||
title: this.$t('other'),
|
||||
icon: faEllipsisH
|
||||
},
|
||||
debug
|
||||
}
|
||||
|
@@ -38,10 +38,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('privacy'),
|
||||
icon: faLockOpen
|
||||
}]
|
||||
title: this.$t('privacy'),
|
||||
icon: faLockOpen
|
||||
},
|
||||
isLocked: false,
|
||||
autoAcceptFollowed: false,
|
||||
|
@@ -81,10 +81,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('profile'),
|
||||
icon: faUser
|
||||
}]
|
||||
title: this.$t('profile'),
|
||||
icon: faUser
|
||||
},
|
||||
host,
|
||||
name: null,
|
||||
|
@@ -37,10 +37,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('reaction'),
|
||||
icon: faLaugh
|
||||
}]
|
||||
title: this.$t('reaction'),
|
||||
icon: faLaugh
|
||||
},
|
||||
reactions: this.$store.state.settings.reactions.join(''),
|
||||
changed: false,
|
||||
|
@@ -46,10 +46,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: 'RegEdit',
|
||||
icon: faCode
|
||||
}]
|
||||
title: 'RegEdit',
|
||||
icon: faCode
|
||||
},
|
||||
|
||||
settings: JSON5.stringify(this.$store.state.settings, null, '\t'),
|
||||
|
@@ -31,10 +31,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('security'),
|
||||
icon: faLock
|
||||
}]
|
||||
title: this.$t('security'),
|
||||
icon: faLock
|
||||
},
|
||||
faLock, faSyncAlt
|
||||
}
|
||||
|
@@ -43,10 +43,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('sidebar'),
|
||||
icon: faListUl
|
||||
}]
|
||||
title: this.$t('sidebar'),
|
||||
icon: faListUl
|
||||
},
|
||||
menuDef: sidebarDef,
|
||||
items: '',
|
||||
|
@@ -105,10 +105,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('theme'),
|
||||
icon: faPalette
|
||||
}]
|
||||
title: this.$t('theme'),
|
||||
icon: faPalette
|
||||
},
|
||||
builtinThemes,
|
||||
installThemeCode: null,
|
||||
|
@@ -48,10 +48,8 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
title: this.$t('wordMute'),
|
||||
icon: faCommentSlash
|
||||
}]
|
||||
title: this.$t('wordMute'),
|
||||
icon: faCommentSlash
|
||||
},
|
||||
tab: 'soft',
|
||||
softMutedWords: '',
|
||||
|
Reference in New Issue
Block a user