@@ -2,9 +2,9 @@ import { ref } from 'vue'
22import { ensure } from './utils/ensure'
33import type { CollectionItemBase , CollectionSource , DatabaseAdapter } from '@nuxt/content'
44import type { ContentDatabaseAdapter } from '../types/content'
5- import { getCollectionByFilePath , generateIdFromFsPath , createCollectionDocument , generateRecordDeletion , generateRecordInsert , getCollectionInfo } from './utils/collections '
5+ import { getCollectionByFilePath , generateIdFromFsPath , createCollectionDocument , generateRecordDeletion , generateRecordInsert , getCollectionInfo } from './utils/collection '
66import { kebabCase } from 'scule'
7- import type { UseStudioHost , StudioHost , StudioUser , DatabaseItem , MediaItem , Repository } from 'nuxt-studio/app'
7+ import type { StudioHost , StudioUser , DatabaseItem , MediaItem , Repository } from 'nuxt-studio/app'
88import type { RouteLocationNormalized , Router } from 'vue-router'
99import { generateDocumentFromContent } from './utils/content'
1010// @ts -expect-error queryCollection is not defined in .nuxt/imports.d.ts
@@ -29,12 +29,6 @@ function getSidebarWidth(): number {
2929 return sidebarWidth
3030}
3131
32- declare global {
33- interface Window {
34- useStudioHost : UseStudioHost
35- }
36- }
37-
3832// TODO: Move styles and these logics out of host (Maybe have a injectCSS util in host)
3933function getHostStyles ( ) : Record < string , Record < string , string > > & { css ?: string } {
4034 const currentWidth = getSidebarWidth ( )
0 commit comments