Browse Source

chore(nc-gui): remove unused composable

pull/3703/head
braks 2 years ago
parent
commit
26ca9dcf1a
  1. 1
      packages/nc-gui/composables/index.ts
  2. 9
      packages/nc-gui/composables/useAttachment.ts
  3. 9
      packages/nc-gui/plugins/tele.ts

1
packages/nc-gui/composables/index.ts

@ -5,7 +5,6 @@ export * from './useInjectionState'
export * from './useSidebar'
export * from './useTheme'
export * from './useUIPermission'
export * from './useAttachment'
export * from './useColors'
export * from './useColumn'
export * from './useGridViewColumnWidth'

9
packages/nc-gui/composables/useAttachment.ts

@ -1,9 +0,0 @@
// todo: implement useAttachment
export function useAttachment() {
const localFilesState = reactive([])
const attachments = ref([])
const uploadFile = () => {}
return { uploadFile, localFilesState, attachments }
}

9
packages/nc-gui/plugins/tele.ts

@ -41,15 +41,6 @@ export default defineNuxtPlugin(async (nuxtApp) => {
})
})
/**
* unreachable code?
if (socket) {
socket.emit('page', {
path: route.matched[0].path + (route.query && route.query.type ? `?type=${route.query.type}` : ''),
})
}
*/
const tele = {
emit(evt: string, data: Record<string, any>) {
// debugger

Loading…
Cancel
Save