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

@@ -84,10 +84,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('abuseReports'),
icon: faExclamationCircle
}],
title: this.$t('abuseReports'),
icon: faExclamationCircle
},
searchUsername: '',
searchHost: '',

View File

@@ -45,10 +45,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('announcements'),
icon: faBroadcastTower
}]
title: this.$t('announcements'),
icon: faBroadcastTower
},
announcements: [],
faBroadcastTower, faSave, faTrashAlt, faPlus

View File

@@ -68,10 +68,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('customEmojis'),
icon: faLaugh
}],
title: this.$t('customEmojis'),
icon: faLaugh,
action: {
icon: faPlus,
handler: this.add

View File

@@ -79,10 +79,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('federation'),
icon: faGlobe
}],
title: this.$t('federation'),
icon: faGlobe
},
host: '',
state: 'federating',

View File

@@ -84,10 +84,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('files'),
icon: faCloud
}],
title: this.$t('files'),
icon: faCloud
},
q: null,
origin: 'local',

View File

@@ -86,7 +86,7 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
tabs: [{
id: 'index',
title: null,
tooltip: this.$t('instance'),

View File

@@ -49,10 +49,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('serverLogs'),
icon: faStream
}]
title: this.$t('serverLogs'),
icon: faStream
},
logs: [],
logLevel: 'all',

View File

@@ -31,10 +31,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('jobQueue'),
icon: faExchangeAlt,
}],
title: this.$t('jobQueue'),
icon: faExchangeAlt,
},
connection: os.stream.useSharedConnection('queueStats'),
faExchangeAlt, faTrashAlt

View File

@@ -38,10 +38,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('relays'),
icon: faProjectDiagram,
}],
title: this.$t('relays'),
icon: faProjectDiagram,
},
relays: [],
inbox: '',

View File

@@ -257,10 +257,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('instance'),
icon: faCog,
}],
title: this.$t('instance'),
icon: faCog,
},
url,
proxyAccount: null,

View File

@@ -101,10 +101,8 @@ export default defineComponent({
data() {
return {
INFO: {
header: [{
title: this.$t('users'),
icon: faUsers
}],
title: this.$t('users'),
icon: faUsers,
action: {
icon: faSearch,
handler: this.searchUser