lint
This commit is contained in:
parent
354f35c690
commit
e7e615565c
5 changed files with 5 additions and 17 deletions
|
|
@ -3,8 +3,6 @@ import { concat, each, last, map } from 'lodash'
|
||||||
import { paramsString, promisedRequest } from './helpers.js'
|
import { paramsString, promisedRequest } from './helpers.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
parseAttachment,
|
|
||||||
parseChat,
|
|
||||||
parseLinkHeaderPagination,
|
parseLinkHeaderPagination,
|
||||||
parseNotification,
|
parseNotification,
|
||||||
parseSource,
|
parseSource,
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,7 @@ import {
|
||||||
getOrCreateChat,
|
getOrCreateChat,
|
||||||
sendChatMessage,
|
sendChatMessage,
|
||||||
} from 'src/api/chats.js'
|
} from 'src/api/chats.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 { faChevronDown, faChevronLeft } from '@fortawesome/free-solid-svg-icons'
|
import { faChevronDown, faChevronLeft } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,8 @@ import { useInterfaceStore } from 'src/stores/interface'
|
||||||
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 {
|
import { fetchConversation, fetchStatus } from 'src/api/public.js'
|
||||||
fetchConversation,
|
import { WSConnectionStatus } from 'src/api/websocket.js'
|
||||||
fetchStatus,
|
|
||||||
} from 'src/api/public.js'
|
|
||||||
import {
|
|
||||||
WSConnectionStatus,
|
|
||||||
} from 'src/api/websocket.js'
|
|
||||||
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,7 @@ import { useInterfaceStore } from 'src/stores/interface.js'
|
||||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||||
import { useShoutStore } from 'src/stores/shout.js'
|
import { useShoutStore } from 'src/stores/shout.js'
|
||||||
|
|
||||||
import {
|
import { fetchTimeline } from 'src/api/public.js'
|
||||||
fetchTimeline,
|
|
||||||
} from 'src/api/public.js'
|
|
||||||
import {
|
import {
|
||||||
getMastodonSocketURI,
|
getMastodonSocketURI,
|
||||||
ProcessedWS,
|
ProcessedWS,
|
||||||
|
|
@ -99,7 +97,6 @@ const api = {
|
||||||
const { state, commit, dispatch, rootState } = store
|
const { state, commit, dispatch, rootState } = store
|
||||||
const timelineData = rootState.statuses.timelines.friends
|
const timelineData = rootState.statuses.timelines.friends
|
||||||
|
|
||||||
const serv = useInstanceStore().server.replace('http', 'ws')
|
|
||||||
const credentials = useOAuthStore().token
|
const credentials = useOAuthStore().token
|
||||||
const url = getMastodonSocketURI({ credentials })
|
const url = getMastodonSocketURI({ credentials })
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ export default defineConfig(async ({ mode, command }) => {
|
||||||
const settings = await getLocalDevSettings()
|
const settings = await getLocalDevSettings()
|
||||||
const target = settings.target || 'http://localhost:4000/'
|
const target = settings.target || 'http://localhost:4000/'
|
||||||
const origin = settings.origin || target
|
const origin = settings.origin || target
|
||||||
const targetSW = target.replace(/^http/,'ws')
|
const targetSW = target.replace(/^http/, 'ws')
|
||||||
const transformSW = getTransformSWSettings(settings)
|
const transformSW = getTransformSWSettings(settings)
|
||||||
const proxy = {
|
const proxy = {
|
||||||
'/api': {
|
'/api': {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue