@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
46 lines (36 loc) • 1.16 kB
text/typescript
import '@prefecthq/graphs/dist/style.css'
// core functionality
export * from './components'
export * from './compositions'
export * from './formatters'
export * from './localization'
export * from './mocks'
export * from './models'
export * from './maps'
export * from './router'
export * from './services'
export * from './types'
export * from './utilities'
// feature specific
export * from './schemas'
export * from './automations'
import '@/styles/index.css'
import { ToastPlugin } from '@prefecthq/prefect-design'
import { App, Plugin } from 'vue'
import { clearOldCacheKeys } from '@/utilities/cache'
// hacky safeguard for keeping window references from breaking the umd build
// which is used for node and specifically integration tests in UI
// the specific window reference that's causing issues is in the pixi-viewport
// package. But this should also safeguard us from other window references sneaking
// into the umd bundle.
if (typeof window === 'undefined') {
const window = {}
Object.assign(global, { window })
}
const plugin: Plugin = {
install(app: App) {
app.use(ToastPlugin)
clearOldCacheKeys()
},
}
export { plugin }