@@ -46,29 +22,25 @@
diff --git a/src/renderer/components/TimelineSpace/Modals/Jump.vue b/src/renderer/components/TimelineSpace/Modals/Jump.vue
index 8c4abede..e3116887 100644
--- a/src/renderer/components/TimelineSpace/Modals/Jump.vue
+++ b/src/renderer/components/TimelineSpace/Modals/Jump.vue
@@ -1,5 +1,5 @@
-
+
-
@@ -44,11 +36,8 @@ export default {
name: 'jump',
computed: {
...mapState('TimelineSpace/Modals/Jump', {
- channelList: (state) =>
- state.defaultChannelList
- .concat(state.tagChannelList)
- .concat(state.listChannelList),
- selectedChannel: (state) => state.selectedChannel,
+ channelList: state => state.defaultChannelList.concat(state.tagChannelList).concat(state.listChannelList),
+ selectedChannel: state => state.selectedChannel
}),
channel: {
get() {
@@ -56,7 +45,7 @@ export default {
},
set(value) {
this.$store.commit('TimelineSpace/Modals/Jump/updateChannel', value)
- },
+ }
},
filterdChannel() {
return this.filterChannelForm()
@@ -67,18 +56,15 @@ export default {
},
set(value) {
this.$store.commit('TimelineSpace/Modals/Jump/changeModal', value)
- },
+ }
},
shortcutEnabled: function () {
return this.jumpModal
- },
+ }
},
watch: {
channel: function (_newChannel, _oldChannel) {
- this.$store.commit(
- 'TimelineSpace/Modals/Jump/changeSelected',
- this.filterChannelForm()[0]
- )
+ this.$store.commit('TimelineSpace/Modals/Jump/changeSelected', this.filterChannelForm()[0])
},
jumpModal: function (newModal, oldModal) {
if (!oldModal && newModal) {
@@ -90,36 +76,30 @@ export default {
} else {
this.channel = ''
}
- },
+ }
},
methods: {
filterChannelForm() {
- return this.channelList.filter((c) => {
+ return this.channelList.filter(c => {
return c.name.toLowerCase().indexOf(this.channel.toLowerCase()) !== -1
})
},
nextChannel() {
const filterd = this.filterChannelForm()
- const i = filterd.findIndex((e) => {
+ const i = filterd.findIndex(e => {
return e.name === this.selectedChannel.name
})
if (i !== undefined && i < filterd.length - 1) {
- this.$store.commit(
- 'TimelineSpace/Modals/Jump/changeSelected',
- filterd[i + 1]
- )
+ this.$store.commit('TimelineSpace/Modals/Jump/changeSelected', filterd[i + 1])
}
},
prevChannel() {
const filterd = this.filterChannelForm()
- const i = filterd.findIndex((e) => {
+ const i = filterd.findIndex(e => {
return e.name === this.selectedChannel.name
})
if (i !== undefined && i > 0) {
- this.$store.commit(
- 'TimelineSpace/Modals/Jump/changeSelected',
- filterd[i - 1]
- )
+ this.$store.commit('TimelineSpace/Modals/Jump/changeSelected', filterd[i - 1])
}
},
changeSelected(channel) {
@@ -147,8 +127,8 @@ export default {
default:
return true
}
- },
- },
+ }
+ }
}
diff --git a/src/renderer/components/TimelineSpace/Modals/ListMembership.vue b/src/renderer/components/TimelineSpace/Modals/ListMembership.vue
index 8c7b6f1b..3dc9b246 100644
--- a/src/renderer/components/TimelineSpace/Modals/ListMembership.vue
+++ b/src/renderer/components/TimelineSpace/Modals/ListMembership.vue
@@ -1,10 +1,5 @@
-
+
@@ -26,76 +21,63 @@ export default {
name: 'list-membership',
data() {
return {
- loading: false,
+ loading: false
}
},
computed: {
...mapState({
- account: (state) => state.TimelineSpace.Modals.ListMembership.account,
- lists: (state) => state.TimelineSpace.Modals.ListMembership.lists,
+ account: state => state.TimelineSpace.Modals.ListMembership.account,
+ lists: state => state.TimelineSpace.Modals.ListMembership.lists
}),
listMembershipModal: {
get() {
return this.$store.state.TimelineSpace.Modals.ListMembership.modalOpen
},
set(value) {
- this.$store.dispatch(
- 'TimelineSpace/Modals/ListMembership/changeModal',
- value
- )
- },
+ this.$store.dispatch('TimelineSpace/Modals/ListMembership/changeModal', value)
+ }
},
belongToLists: {
get() {
- return this.$store.state.TimelineSpace.Modals.ListMembership.belongToLists.map(
- (l) => l.id
- )
+ return this.$store.state.TimelineSpace.Modals.ListMembership.belongToLists.map(l => l.id)
},
set(value) {
this.loading = true
return this.$store
- .dispatch(
- 'TimelineSpace/Modals/ListMembership/changeBelongToLists',
- value
- )
+ .dispatch('TimelineSpace/Modals/ListMembership/changeBelongToLists', value)
.catch(() => {
this.$message({
message: this.$t('message.update_list_memberships_error'),
- type: 'error',
+ type: 'error'
})
})
.finally(() => (this.loading = false))
- },
- },
+ }
+ }
},
watch: {
listMembershipModal: function (newState, oldState) {
if (!oldState && newState) {
this.init()
}
- },
+ }
},
methods: {
async init() {
this.loading = true
try {
- await this.$store.dispatch(
- 'TimelineSpace/Modals/ListMembership/fetchListMembership',
- this.account
- )
- await this.$store.dispatch(
- 'TimelineSpace/Modals/ListMembership/fetchLists'
- )
+ await this.$store.dispatch('TimelineSpace/Modals/ListMembership/fetchListMembership', this.account)
+ await this.$store.dispatch('TimelineSpace/Modals/ListMembership/fetchLists')
} catch (err) {
this.$message({
message: this.$t('message.lists_fetch_error'),
- type: 'error',
+ type: 'error'
})
} finally {
this.loading = false
}
- },
- },
+ }
+ }
}
diff --git a/src/renderer/components/TimelineSpace/Modals/MuteConfirm.vue b/src/renderer/components/TimelineSpace/Modals/MuteConfirm.vue
index 1b011467..c7ee1c73 100644
--- a/src/renderer/components/TimelineSpace/Modals/MuteConfirm.vue
+++ b/src/renderer/components/TimelineSpace/Modals/MuteConfirm.vue
@@ -1,22 +1,13 @@
-
+
@@ -28,24 +19,21 @@ export default {
name: 'MuteConfirm',
data() {
return {
- notify: true,
+ notify: true
}
},
computed: {
...mapState('TimelineSpace/Modals/MuteConfirm', {
- account: (state) => state.account,
+ account: state => state.account
}),
muteConfirmModal: {
get() {
return this.$store.state.TimelineSpace.Modals.MuteConfirm.modalOpen
},
set(value) {
- this.$store.dispatch(
- 'TimelineSpace/Modals/MuteConfirm/changeModal',
- value
- )
- },
- },
+ this.$store.dispatch('TimelineSpace/Modals/MuteConfirm/changeModal', value)
+ }
+ }
},
methods: {
closeModal() {
@@ -53,12 +41,9 @@ export default {
},
async submit() {
this.closeModal()
- await this.$store.dispatch(
- 'TimelineSpace/Modals/MuteConfirm/submit',
- this.notify
- )
- },
- },
+ await this.$store.dispatch('TimelineSpace/Modals/MuteConfirm/submit', this.notify)
+ }
+ }
}
diff --git a/src/renderer/components/TimelineSpace/Modals/NewToot.vue b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
index b8905408..59d79afd 100644
--- a/src/renderer/components/TimelineSpace/Modals/NewToot.vue
+++ b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
@@ -1,7 +1,7 @@
-
+
-
+
-
+