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