Refactoring

This commit is contained in:
syuilo
2020-11-03 20:36:12 +09:00
parent 7353d729d7
commit 3c59c6fc9b
69 changed files with 157 additions and 285 deletions

View File

@@ -28,10 +28,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: 'API',
icon: faKey
}]
title: 'API',
icon: faKey
},
isDesktop: window.innerWidth >= 1100,
};

View File

@@ -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'),

View File

@@ -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);

View File

@@ -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,

View File

@@ -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: {

View File

@@ -40,10 +40,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('notifications'),
icon: faBell
}]
title: this.$t('notifications'),
icon: faBell
},
faCog
}

View File

@@ -42,10 +42,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('other'),
icon: faEllipsisH
}]
title: this.$t('other'),
icon: faEllipsisH
},
debug
}

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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'),

View File

@@ -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
}

View File

@@ -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: '',

View File

@@ -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,

View File

@@ -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: '',