Refactoring
This commit is contained in:
@@ -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: '',
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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',
|
||||
|
@@ -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',
|
||||
|
@@ -86,7 +86,7 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
INFO: {
|
||||
header: [{
|
||||
tabs: [{
|
||||
id: 'index',
|
||||
title: null,
|
||||
tooltip: this.$t('instance'),
|
||||
|
@@ -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',
|
||||
|
@@ -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
|
||||
|
@@ -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: '',
|
||||
|
@@ -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,
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user