fix: remove unused files

This commit is contained in:
Ramesh Mane
2026-01-22 10:31:54 +00:00
parent e9ba94a8e6
commit 74dc117bbc
2 changed files with 0 additions and 155 deletions

View File

@@ -1,129 +0,0 @@
<script setup lang="ts">
const workspaceStore = useWorkspace()
const baseStore = useBase()
const { isUIAllowed } = useRoles()
const { appInfo } = useGlobal()
const { meta: metaKey, control } = useMagicKeys()
const { isWorkspaceLoading, isWorkspaceSettingsPageOpened, isIntegrationsPageOpened } = storeToRefs(workspaceStore)
const { navigateToWorkspaceSettings, navigateToIntegrations: _navigateToIntegrations } = workspaceStore
const { isSharedBase } = storeToRefs(baseStore)
const isCreateProjectOpen = ref(false)
const navigateToSettings = () => {
const cmdOrCtrl = isMac() ? metaKey.value : control.value
// TODO: Handle cloud case properly
navigateToWorkspaceSettings('', cmdOrCtrl)
// if (appInfo.value.baseHostName) {
// window.location.href = `https://app.${appInfo.value.baseHostName}/dashboard`
// } else {
// }
}
const navigateToIntegrations = () => {
const cmdOrCtrl = isMac() ? metaKey.value : control.value
_navigateToIntegrations('', cmdOrCtrl)
}
</script>
<template>
<template v-if="isWorkspaceLoading">
<div class="flex flex-col w-full gap-y-3.75 ml-3 mt-3.75">
<div v-if="appInfo.ee" class="flex flex-row items-center w-full gap-x-3">
<a-skeleton-input :active="true" class="!w-4 !h-4 !rounded overflow-hidden" />
<a-skeleton-input :active="true" class="!w-40 !h-4 !rounded overflow-hidden" />
</div>
<div class="flex flex-row items-center w-full gap-x-3">
<a-skeleton-input :active="true" class="!w-4 !h-4 !rounded overflow-hidden" />
<a-skeleton-input :active="true" class="!w-40 !h-4 !rounded overflow-hidden" />
</div>
<div class="flex flex-row items-center w-full gap-x-3">
<a-skeleton-input :active="true" class="!w-4 !h-4 !rounded overflow-hidden" />
<a-skeleton-input :active="true" class="!w-40 !h-4 !rounded overflow-hidden" />
</div>
</div>
</template>
<template v-else-if="!isSharedBase">
<div class="xs:hidden flex flex-col p-1 mt-0.25 mb-0.5 truncate">
<!-- <DashboardSidebarTopSectionHeader /> -->
<NcButton
v-if="isUIAllowed('workspaceSettings') || isUIAllowed('workspaceCollaborators')"
v-e="['c:team:settings']"
type="text"
size="xsmall"
class="nc-sidebar-top-button !xs:hidden my-0.5 !h-7"
data-testid="nc-sidebar-team-settings-btn"
:centered="false"
:class="{
'!text-nc-content-brand-disabled !bg-nc-bg-brand-inverted !hover:bg-nc-bg-brand-inverted':
isWorkspaceSettingsPageOpened,
'!hover:(bg-nc-bg-gray-medium text-nc-content-inverted-secondary)': !isWorkspaceSettingsPageOpened,
}"
@click="navigateToSettings"
>
<div
class="flex items-center gap-2"
:class="{
'font-semibold': isWorkspaceSettingsPageOpened,
}"
>
<GeneralIcon icon="ncSettings" class="!h-4 w-4" />
<div>{{ $t('title.teamAndSettings') }}</div>
</div>
</NcButton>
<NcButton
v-if="isUIAllowed('workspaceIntegrations')"
v-e="['c:integrations']"
type="text"
size="xsmall"
class="nc-sidebar-top-button !xs:hidden my-0.5 !h-7"
data-testid="nc-sidebar-integrations-btn"
:centered="false"
:class="{
'!text-nc-content-brand-disabled !bg-nc-bg-brand-inverted !hover:bg-nc-bg-brand-inverted': isIntegrationsPageOpened,
'!hover:(bg-nc-bg-gray-medium text-nc-content-inverted-secondary)': !isIntegrationsPageOpened,
}"
@click="navigateToIntegrations"
>
<div
class="flex items-center gap-2"
:class="{
'font-semibold': isIntegrationsPageOpened,
}"
>
<GeneralIcon icon="integration" class="!h-4" />
<div>{{ $t('general.integrations') }}</div>
</div>
</NcButton>
<WorkspaceCreateProjectBtn
v-model:is-open="isCreateProjectOpen"
modal
type="text"
class="nc-sidebar-top-button !hover:(bg-nc-bg-gray-medium text-nc-content-inverted-secondary) !xs:hidden !h-7 my-0.5"
data-testid="nc-sidebar-create-base-btn"
>
<div class="gap-x-2 flex flex-row w-full items-center">
<GeneralIcon icon="plus" />
<div class="flex">{{ $t('title.createBase') }}</div>
</div>
</WorkspaceCreateProjectBtn>
</div>
</template>
</template>
<style lang="scss" scoped>
.nc-sidebar-top-button {
@apply w-full !rounded-md !font-medium !px-3;
}
</style>

View File

@@ -1,26 +0,0 @@
<script setup lang="ts">
const { commandPalette } = useCommandPalette()
</script>
<template>
<NcButton
v-e="['c:quick-actions']"
type="text"
size="xsmall"
class="nc-sidebar-top-button w-full !hover:bg-nc-bg-gray-medium !rounded-md !xs:hidden !h-7 my-0.5"
data-testid="nc-sidebar-search-btn"
:centered="false"
@click="commandPalette?.open()"
>
<div class="flex items-center gap-2">
<MaterialSymbolsSearch class="!h-3.9" />
Quick Actions
<div
class="inline-flex gap-1 justify-center text-xs px-[8px] py-[1px] uppercase border-1 border-nc-border-gray-dark rounded-md bg-slate-150 text-nc-content-gray-muted"
>
<kbd class="text-[16px] mt-[0.5px]"></kbd>
<kbd class="!leading-4">K</kbd>
</div>
</div>
</NcButton>
</template>