feat: migrate to vue 3 + vite (#2553)

Co-authored-by: amk-dev <akash.k.mohan98@gmail.com>
Co-authored-by: liyasthomas <liyascthomas@gmail.com>
This commit is contained in:
Andrew Bastin
2022-09-29 10:55:21 +05:30
committed by GitHub
parent 77a561b581
commit 8b300fab5d
685 changed files with 17102 additions and 25942 deletions

34
packages/hoppscotch-app/src/shims.d.ts vendored Normal file
View File

@@ -0,0 +1,34 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pages/client" />
/// <reference types="unplugin-icons/types/vue" />
// // Hoppscotch Browser Extension
interface PWExtensionHook {
getVersion: () => { major: number; minor: number }
sendRequest: (
req: AxiosRequestConfig & { wantsBinary: boolean }
) => Promise<NetworkResponse>
cancelRunningRequest: () => void
}
type HoppExtensionStatusHook = {
status: ExtensionStatus
_subscribers: {
status?: ((...args: any[]) => any)[] | undefined
}
subscribe(prop: "status", func: (...args: any[]) => any): void
}
declare global {
interface Window {
__POSTWOMAN_EXTENSION_HOOK__: PWExtensionHook | undefined
__HOPP_EXTENSION_STATUS_PROXY__: HoppExtensionStatusHook | undefined
}
}
// Vue builtins
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}