Revert "refactor(front): rename logger timing stop functions to `measureLoading`" This reverts commit9abdcb5ff7. Revert "chore(front): remove unused dependency and add eslint rule to prevent console usage" This reverts commitd1f9a99e1b. Revert "feat(front): use logger instead of console.log" This reverts commitb59e29883f.
This commit is contained in:
parent
b043900aaf
commit
e08add956e
34 changed files with 76 additions and 229 deletions
|
|
@ -3,12 +3,9 @@ import type { InitModule } from '~/types'
|
|||
import { watchEffect, watch } from 'vue'
|
||||
import { useWebSocket, whenever } from '@vueuse/core'
|
||||
import useWebSocketHandler from '~/composables/useWebSocketHandler'
|
||||
import useLogger from '~/composables/useLogger'
|
||||
import { CLIENT_RADIOS } from '~/utils/clientRadios'
|
||||
|
||||
export const install: InitModule = ({ store }) => {
|
||||
const logger = useLogger()
|
||||
|
||||
watch(() => store.state.instance.instanceUrl, () => {
|
||||
const url = store.getters['instance/absoluteUrl']('api/v1/activity')
|
||||
.replace(/^http/, 'ws')
|
||||
|
|
@ -28,7 +25,7 @@ export const install: InitModule = ({ store }) => {
|
|||
})
|
||||
|
||||
watchEffect(() => {
|
||||
logger.log('Websocket status:', status.value)
|
||||
console.log('Websocket status:', status.value)
|
||||
})
|
||||
}, { immediate: true })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue