cleanup
This commit is contained in:
parent
b94966aeb5
commit
5d1e5ea4d5
4 changed files with 1 additions and 8 deletions
|
|
@ -9,7 +9,6 @@ import {
|
|||
useTemplateRef,
|
||||
watch,
|
||||
} from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
import ChatMessageList from 'src/components/chat_message_list/chat_message_list.vue'
|
||||
import PostStatusForm from 'src/components/post_status_form/post_status_form.vue'
|
||||
|
|
@ -68,7 +67,6 @@ export default {
|
|||
},
|
||||
emits: ['heightChange', 'suspendableStateChange', 'expanded', 'collapsed'],
|
||||
setup(props, { emit }) {
|
||||
const router = useRouter()
|
||||
const scroller = useScrollPosition()
|
||||
const { statusId } = toRefs(props)
|
||||
|
||||
|
|
@ -107,7 +105,6 @@ export default {
|
|||
conversationId,
|
||||
setFocused,
|
||||
currentStatus,
|
||||
mainStatus,
|
||||
conversation,
|
||||
replies,
|
||||
getReplies,
|
||||
|
|
@ -117,7 +114,6 @@ export default {
|
|||
const conversationLite = computed(() =>
|
||||
conversation.value.map(({ id }) => ({ id })),
|
||||
)
|
||||
const mainStatusId = computed(() => mainStatus.value.id)
|
||||
|
||||
watch(
|
||||
expanded,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import { debounce, throttle } from 'lodash-es'
|
|||
import { storeToRefs } from 'pinia'
|
||||
import {
|
||||
computed,
|
||||
nextTick,
|
||||
onMounted,
|
||||
onUnmounted,
|
||||
ref,
|
||||
|
|
@ -70,7 +69,7 @@ const Timeline = {
|
|||
})
|
||||
|
||||
// Virtual scrolling
|
||||
const { fontSize, navbarSize, panelHeaderSize } = useInterfaceSizes()
|
||||
const { fontSize, navbarSize } = useInterfaceSizes()
|
||||
|
||||
// Placeholder heights.
|
||||
const mutedStatusHeight = computed(() => fontSize.value * 1.5)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import { WSConnectionStatus } from 'src/api/websocket.js'
|
|||
export function useConversation(statusId, expanded) {
|
||||
const loadError = ref(null)
|
||||
const { status: currentStatus, mainStatus } = useMainStatus(statusId)
|
||||
const mainStatusId = computed(() => mainStatus.value?.id)
|
||||
|
||||
// # Config
|
||||
const { mergedConfig } = storeToRefs(useMergedConfigStore())
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ export function useTreeConversationTopology(conversation, replies, current) {
|
|||
resetThreadDisplay,
|
||||
|
||||
// For testing
|
||||
topLevelIds,
|
||||
ancestors,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue