lint
This commit is contained in:
parent
88b93788ef
commit
8eb5ab3cda
7 changed files with 16 additions and 16 deletions
|
|
@ -5,12 +5,10 @@ import { defineAsyncComponent } from 'vue'
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
import { useInterfaceStore } from 'src/stores/interface'
|
import { useInterfaceStore } from 'src/stores/interface'
|
||||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||||
import { useUsersStore } from 'src/stores/users.js'
|
|
||||||
import { useStreamingStore } from 'src/stores/streaming.js'
|
import { useStreamingStore } from 'src/stores/streaming.js'
|
||||||
|
import { useUsersStore } from 'src/stores/users.js'
|
||||||
|
|
||||||
import {
|
import { WSConnectionStatus } from 'src/api/websocket.js'
|
||||||
WSConnectionStatus,
|
|
||||||
} from 'src/api/websocket.js'
|
|
||||||
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import {
|
import {
|
||||||
|
|
@ -20,13 +18,13 @@ import {
|
||||||
faComments,
|
faComments,
|
||||||
faHome,
|
faHome,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
|
faPlug,
|
||||||
|
faPlugCircleXmark,
|
||||||
faSearch,
|
faSearch,
|
||||||
faSignInAlt,
|
faSignInAlt,
|
||||||
faSignOutAlt,
|
faSignOutAlt,
|
||||||
faTachometerAlt,
|
faTachometerAlt,
|
||||||
faUserPlus,
|
faUserPlus,
|
||||||
faPlug,
|
|
||||||
faPlugCircleXmark
|
|
||||||
} from '@fortawesome/free-solid-svg-icons'
|
} from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
||||||
library.add(
|
library.add(
|
||||||
|
|
@ -42,7 +40,7 @@ library.add(
|
||||||
faCog,
|
faCog,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
faPlug,
|
faPlug,
|
||||||
faPlugCircleXmark
|
faPlugCircleXmark,
|
||||||
)
|
)
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -103,7 +101,7 @@ export default {
|
||||||
}),
|
}),
|
||||||
...mapState(useUsersStore, ['currentUser']),
|
...mapState(useUsersStore, ['currentUser']),
|
||||||
...mapState(useStreamingStore, {
|
...mapState(useStreamingStore, {
|
||||||
streamingConnected: (store) => store.state === WSConnectionStatus.JOINED
|
streamingConnected: (store) => store.state === WSConnectionStatus.JOINED,
|
||||||
}),
|
}),
|
||||||
...mapState(useMergedConfigStore, ['mergedConfig']),
|
...mapState(useMergedConfigStore, ['mergedConfig']),
|
||||||
shouldConfirmLogout() {
|
shouldConfirmLogout() {
|
||||||
|
|
@ -118,7 +116,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
return this.$t('timeline.socket_disconnected')
|
return this.$t('timeline.socket_disconnected')
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
scrollToTop() {
|
scrollToTop() {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
class="fa-scale-110 fa-old-padding"
|
class="fa-scale-110 fa-old-padding"
|
||||||
icon="plug"
|
icon="plug"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FAIcon
|
<FAIcon
|
||||||
v-else
|
v-else
|
||||||
fixed-width
|
fixed-width
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.j
|
||||||
import { useLocalConfigStore } from 'src/stores/local_config.js'
|
import { useLocalConfigStore } from 'src/stores/local_config.js'
|
||||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||||
|
import { useStreamingStore } from 'src/stores/streaming.js'
|
||||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||||
import { useUsersStore } from 'src/stores/users.js'
|
import { useUsersStore } from 'src/stores/users.js'
|
||||||
import { useStreamingStore } from 'src/stores/streaming.js'
|
|
||||||
|
|
||||||
import { updateProfile } from 'src/api/user.js'
|
import { updateProfile } from 'src/api/user.js'
|
||||||
import localeService from 'src/services/locale/locale.service.js'
|
import localeService from 'src/services/locale/locale.service.js'
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import EmojiPicker from '../emoji_picker/emoji_picker.vue'
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
||||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||||
import { useUsersStore } from 'src/stores/users.js'
|
|
||||||
import { useStatusesStore } from 'src/stores/statuses.js'
|
import { useStatusesStore } from 'src/stores/statuses.js'
|
||||||
|
import { useUsersStore } from 'src/stores/users.js'
|
||||||
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||||
import { useUsersStore } from 'src/stores/users.js'
|
|
||||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||||
|
import { useUsersStore } from 'src/stores/users.js'
|
||||||
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import { faPeopleGroup, faRobot } from '@fortawesome/free-solid-svg-icons'
|
import { faPeopleGroup, faRobot } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ export const useStreamingStore = defineStore('streaming', {
|
||||||
},
|
},
|
||||||
onOpen() {
|
onOpen() {
|
||||||
this.retryMultiplier = 1
|
this.retryMultiplier = 1
|
||||||
this.retrying = false,
|
this.retrying = false
|
||||||
this.error = null
|
this.error = null
|
||||||
this.subscribers.forEach(({ stream, et }) => {
|
this.subscribers.forEach(({ stream, et }) => {
|
||||||
et.dispatchEvent(new StreamStateEvent('open'))
|
et.dispatchEvent(new StreamStateEvent('open'))
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ export const useTimelinesStore = defineStore('timelines', {
|
||||||
timelineName === 'favourites' &&
|
timelineName === 'favourites' &&
|
||||||
!useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable
|
!useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable
|
||||||
) {
|
) {
|
||||||
console.warn('Instance doesn\'t support public favorites timeline')
|
console.warn("Instance doesn't support public favorites timeline")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -227,7 +227,10 @@ export const useTimelinesStore = defineStore('timelines', {
|
||||||
|
|
||||||
if (status.visibility === 'direct') {
|
if (status.visibility === 'direct') {
|
||||||
if (timeline !== this.dms) {
|
if (timeline !== this.dms) {
|
||||||
this.addStatusesToTimeline('dms', null, { statuses: [status], nested: true })
|
this.addStatusesToTimeline('dms', null, {
|
||||||
|
statuses: [status],
|
||||||
|
nested: true,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue