1
0

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
+2 -4
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,
};
+2 -4
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'),
+2 -4
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);
+2 -4
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,
+2 -4
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: {
+2 -4
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
}
+2 -4
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
}
+2 -4
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,
+2 -4
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,
+2 -4
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,
+2 -4
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'),
+2 -4
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
}
+2 -4
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: '',
+2 -4
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,
+2 -4
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: '',