Browse Source

chore(nc-gui): remove unused code

pull/6824/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
1abd23e2c3
  1. 2
      packages/nc-gui/components/shared-view/Gallery.vue
  2. 2
      packages/nc-gui/components/shared-view/Kanban.vue
  3. 2
      packages/nc-gui/components/shared-view/Map.vue
  4. 3
      packages/nc-gui/composables/useViewSorts.ts

2
packages/nc-gui/components/shared-view/Gallery.vue

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ActiveViewInj, FieldsInj, IsPublicInj, MetaInj, ReadonlyInj, ReloadViewDataHookInj } from '#imports' import { ActiveViewInj, FieldsInj, IsPublicInj, MetaInj, ReadonlyInj, ReloadViewDataHookInj } from '#imports'
const { sharedView, meta, sorts, nestedFilters } = useSharedView() const { sharedView, meta, nestedFilters } = useSharedView()
const reloadEventHook = createEventHook() const reloadEventHook = createEventHook()

2
packages/nc-gui/components/shared-view/Kanban.vue

@ -9,7 +9,7 @@ import {
useProvideKanbanViewStore, useProvideKanbanViewStore,
} from '#imports' } from '#imports'
const { sharedView, meta, sorts, nestedFilters } = useSharedView() const { sharedView, meta, nestedFilters } = useSharedView()
const reloadEventHook = createEventHook() const reloadEventHook = createEventHook()

2
packages/nc-gui/components/shared-view/Map.vue

@ -9,7 +9,7 @@ import {
useProvideMapViewStore, useProvideMapViewStore,
} from '#imports' } from '#imports'
const { sharedView, meta, sorts, nestedFilters } = useSharedView() const { sharedView, meta, nestedFilters } = useSharedView()
const reloadEventHook = createEventHook() const reloadEventHook = createEventHook()

3
packages/nc-gui/composables/useViewSorts.ts

@ -13,13 +13,10 @@ import {
useBase, useBase,
useNuxtApp, useNuxtApp,
useRoles, useRoles,
useSharedView,
useSmartsheetStoreOrThrow, useSmartsheetStoreOrThrow,
} from '#imports' } from '#imports'
export function useViewSorts(view: Ref<ViewType | undefined>, reloadData?: () => void) { export function useViewSorts(view: Ref<ViewType | undefined>, reloadData?: () => void) {
const { sharedView } = useSharedView()
const { sorts, eventBus } = useSmartsheetStoreOrThrow() const { sorts, eventBus } = useSmartsheetStoreOrThrow()
const { $api, $e } = useNuxtApp() const { $api, $e } = useNuxtApp()

Loading…
Cancel
Save