Browse Source

chore(nc-gui): lint

pull/8836/head
Ramesh Mane 4 months ago
parent
commit
a937050cbd
  1. 2
      packages/nc-gui/components/dlg/ProjectAudit.vue
  2. 8
      packages/nc-gui/components/workspace/AuditLogs.vue
  3. 2
      packages/nc-gui/components/workspace/View.vue
  4. 1
      packages/nc-gui/lib/enums.ts
  5. 1
      packages/nc-gui/lib/types.ts
  6. 2
      packages/nc-gui/pages/account/index.vue

2
packages/nc-gui/components/dlg/ProjectAudit.vue

@ -47,7 +47,7 @@ onMounted(async () => {
</script>
<template>
<GeneralModal v-model:visible="isOpen" size="xl" class="!w-[70rem] !top-[5vh]">
<GeneralModal v-model:visible="isOpen" size="xl" class="!top-[5vh]" width="96.95rem">
<div class="p-6 h-full">
<WorkspaceAuditLogs
v-if="!isLoading"

8
packages/nc-gui/components/workspace/AuditLogs.vue

@ -369,8 +369,8 @@ useEventListener(tableWrapper, 'scroll', () => {
<NcDropdown
v-if="auditCollaborators?.length"
v-model:visible="auditDropdowns.user"
@update:visible="handleClearDropdownSearch($event, 'user')"
overlay-class-name="overflow-hidden"
@update:visible="handleClearDropdownSearch($event, 'user')"
>
<NcButton type="secondary" size="small">
<div class="!w-[106px] flex items-center justify-between gap-2">
@ -491,8 +491,8 @@ useEventListener(tableWrapper, 'scroll', () => {
<NcDropdown
v-if="!baseId && basesList?.length"
v-model:visible="auditDropdowns.base"
@update:visible="handleClearDropdownSearch($event, 'base')"
overlay-class-name="overflow-hidden"
@update:visible="handleClearDropdownSearch($event, 'base')"
>
<NcButton type="secondary" size="small">
<div class="!w-[106px] flex items-center justify-between gap-2">
@ -585,8 +585,8 @@ useEventListener(tableWrapper, 'scroll', () => {
</NcDropdown>
<NcDropdown
v-model:visible="auditDropdowns.type"
@update:visible="handleClearDropdownSearch($event, 'type')"
overlay-class-name="overflow-hidden"
@update:visible="handleClearDropdownSearch($event, 'type')"
>
<NcButton type="secondary" size="small">
<div class="!w-[106px] flex items-center justify-between gap-2">
@ -774,7 +774,7 @@ useEventListener(tableWrapper, 'scroll', () => {
</div>
<template v-if="appInfo.auditEnabled">
<div
class="table-container relative"
class="table-container relative w-[fit-content]"
:class="{
'h-[calc(100%_-_92px)] ': baseId,
'h-[calc(100%_-_140px)]': !baseId,

2
packages/nc-gui/components/workspace/View.vue

@ -129,7 +129,7 @@ onMounted(() => {
Audit Logs
</div>
</template>
<div class="h-[calc(100vh-92px)]" >
<div class="h-[calc(100vh-92px)]">
<WorkspaceAuditLogs :workspace-id="currentWorkspace.id" />
</div>
</a-tab-pane>

1
packages/nc-gui/lib/enums.ts

@ -170,7 +170,6 @@ export enum CoverImageObjectFit {
COVER = 'cover',
}
export enum AuditLogsDateRange {
Last24H = 'last24H',
PastWeek = 'pastWeek',

1
packages/nc-gui/lib/types.ts

@ -1,5 +1,4 @@
import type {
AuditOperationSubTypes,
AuditOperationTypes,
BaseType,
ColumnType,

2
packages/nc-gui/pages/account/index.vue

@ -93,7 +93,7 @@ const logout = async () => {
@click="navigateTo('/account/audit')"
>
<div class="flex items-center space-x-2">
<component :is="iconMap.audit" class="opacity-80"/>
<component :is="iconMap.audit" class="opacity-80" />
<div class="select-none">Audit Logs</div>
</div>

Loading…
Cancel
Save