From 26ca9dcf1afd8c9720724aeadb442715a5a51084 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 19 Sep 2022 00:48:42 +0200 Subject: [PATCH] chore(nc-gui): remove unused composable --- packages/nc-gui/composables/index.ts | 1 - packages/nc-gui/composables/useAttachment.ts | 9 --------- packages/nc-gui/plugins/tele.ts | 9 --------- 3 files changed, 19 deletions(-) delete mode 100644 packages/nc-gui/composables/useAttachment.ts diff --git a/packages/nc-gui/composables/index.ts b/packages/nc-gui/composables/index.ts index 149bbff61d..5fd560cb5c 100644 --- a/packages/nc-gui/composables/index.ts +++ b/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' diff --git a/packages/nc-gui/composables/useAttachment.ts b/packages/nc-gui/composables/useAttachment.ts deleted file mode 100644 index 3aee3b2798..0000000000 --- a/packages/nc-gui/composables/useAttachment.ts +++ /dev/null @@ -1,9 +0,0 @@ -// todo: implement useAttachment -export function useAttachment() { - const localFilesState = reactive([]) - const attachments = ref([]) - - const uploadFile = () => {} - - return { uploadFile, localFilesState, attachments } -} diff --git a/packages/nc-gui/plugins/tele.ts b/packages/nc-gui/plugins/tele.ts index 4970f32bd1..481dd133f3 100644 --- a/packages/nc-gui/plugins/tele.ts +++ b/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) { // debugger