chore: bump deps for hoppscotch-common and hoppscotch-selfhost-web (#3575)

This commit is contained in:
Akash K
2023-12-05 17:33:25 +05:30
committed by GitHub
parent ed2a461dc5
commit 95754cb2b4
15 changed files with 3042 additions and 3282 deletions

View File

@@ -137,8 +137,8 @@
!currentUser
? `${t('export.require_github')}`
: currentUser.provider !== 'github.com'
? `${t('export.require_github')}`
: undefined
? `${t('export.require_github')}`
: undefined
"
class="flex"
>
@@ -147,8 +147,8 @@
!currentUser
? true
: currentUser.provider !== 'github.com'
? true
: false
? true
: false
"
:icon="IconGithub"
:loading="creatingGistCollection"

View File

@@ -38,8 +38,8 @@
!currentUser
? `${t('export.require_github')}`
: currentUser.provider !== 'github.com'
? `${t('export.require_github')}`
: undefined
? `${t('export.require_github')}`
: undefined
"
>
<HoppSmartItem
@@ -47,8 +47,8 @@
!currentUser
? true
: currentUser.provider !== 'github.com'
? true
: false
? true
: false
"
:icon="IconGithub"
:label="t('export.create_secret_gist')"

View File

@@ -42,8 +42,8 @@
!currentUser
? `${t('export.require_github')}`
: currentUser.provider !== 'github.com'
? `${t('export.require_github')}`
: undefined
? `${t('export.require_github')}`
: undefined
"
>
<HoppSmartItem
@@ -51,8 +51,8 @@
!currentUser
? true
: currentUser.provider !== 'github.com'
? true
: false
? true
: false
"
:icon="IconGithub"
:label="t('export.create_secret_gist')"

View File

@@ -1 +1 @@
export { useHead as usePageHead } from "@vueuse/head"
export { useHead as usePageHead } from "@unhead/vue"

View File

@@ -33,20 +33,20 @@ type TypeFromPrimitiveArray<P extends JSPrimitive | undefined> =
P extends "undefined"
? undefined
: P extends "object"
? object[] | null
: P extends "boolean"
? boolean[]
: P extends "number"
? number[]
: P extends "bigint"
? bigint[]
: P extends "string"
? string[]
: P extends "symbol"
? symbol[]
: P extends "function"
? Function[] // eslint-disable-line @typescript-eslint/ban-types
: unknown[]
? object[] | null
: P extends "boolean"
? boolean[]
: P extends "number"
? number[]
: P extends "bigint"
? bigint[]
: P extends "string"
? string[]
: P extends "symbol"
? symbol[]
: P extends "function"
? Function[] // eslint-disable-line @typescript-eslint/ban-types
: unknown[]
// The ban-types silence is because in this case,
// we can't get the Function type info to make a better guess

View File

@@ -12,20 +12,20 @@ export type TypeFromPrimitive<P extends JSPrimitive | undefined> =
P extends "undefined"
? undefined
: P extends "object"
? object | null // typeof null === "object"
: P extends "boolean"
? boolean
: P extends "number"
? number
: P extends "bigint"
? bigint
: P extends "string"
? string
: P extends "symbol"
? symbol
: P extends "function"
? Function // eslint-disable-line @typescript-eslint/ban-types
: unknown
? object | null // typeof null === "object"
: P extends "boolean"
? boolean
: P extends "number"
? number
: P extends "bigint"
? bigint
: P extends "string"
? string
: P extends "symbol"
? symbol
: P extends "function"
? Function // eslint-disable-line @typescript-eslint/ban-types
: unknown
// The ban-types silence is because in this case,
// we can't get the Function type info to make a better guess

View File

@@ -5,13 +5,12 @@ import { initBackendGQLClient } from "./helpers/backend/GQLClient"
import { performMigrations } from "./helpers/migrations"
import { PlatformDef, setPlatformDef } from "./platform"
import "@fontsource-variable/inter"
import "@fontsource-variable/material-symbols-rounded"
import "@fontsource-variable/roboto-mono"
import "nprogress/nprogress.css"
import "../assets/scss/styles.scss"
import "../assets/scss/tailwind.scss"
import "../assets/themes/themes.scss"
import "../assets/scss/styles.scss"
import "nprogress/nprogress.css"
import "unfonts.css"
import App from "./App.vue"
import { getService } from "./modules/dioc"

View File

@@ -1,21 +1,20 @@
import { createHead, useHead } from "@vueuse/head"
import { createHead, useHead } from "@unhead/vue"
import { APP_INFO } from "~/../meta"
import { HoppModule } from "."
export default <HoppModule>{
onVueAppInit(app) {
const head = createHead({
title: `${APP_INFO.name}${APP_INFO.shortDescription}`,
titleTemplate(title) {
return title === "Hoppscotch" ? title : `${title} • Hoppscotch`
},
})
const head = createHead()
app.use(head)
},
onRootSetup() {
// Load the defaults into the app
useHead({})
useHead({
title: `${APP_INFO.name}${APP_INFO.shortDescription}`,
titleTemplate(title) {
return title === "Hoppscotch" ? title : `${title} • Hoppscotch`
},
})
},
}

View File

@@ -46,8 +46,8 @@
connectionState === 'CONNECTING'
? t('action.connecting')
: connectionState === 'DISCONNECTED'
? t('action.connect')
: t('action.disconnect')
? t('action.connect')
: t('action.disconnect')
"
:loading="connectionState === 'CONNECTING'"
@click="toggleConnection"

View File

@@ -85,8 +85,8 @@
connectionState === 'CONNECTING'
? t('action.connecting')
: connectionState === 'DISCONNECTED'
? t('action.connect')
: t('action.disconnect')
? t('action.connect')
: t('action.disconnect')
"
:loading="connectionState === 'CONNECTING'"
@click="toggleConnection"

View File

@@ -45,8 +45,8 @@
connectionState === 'STARTING'
? t('action.starting')
: connectionState === 'STOPPED'
? t('action.start')
: t('action.stop')
? t('action.start')
: t('action.stop')
"
:loading="connectionState === 'STARTING'"
@click="toggleSSEConnection"

View File

@@ -26,8 +26,8 @@
connectionState === 'CONNECTING'
? t('action.connecting')
: connectionState === 'DISCONNECTED'
? t('action.connect')
: t('action.disconnect')
? t('action.connect')
: t('action.disconnect')
"
:loading="connectionState === 'CONNECTING'"
@click="toggleConnection"