Browse Source

chore: lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5343/head
Pranav C 2 years ago
parent
commit
9febf76945
  1. 8
      packages/nc-gui/components/cell/GeoData.vue
  2. 2
      packages/nc-gui/components/dashboard/settings/AuditTab.vue
  3. 2
      packages/nc-gui/components/dashboard/settings/Metadata.vue
  4. 2
      packages/nc-gui/components/dashboard/settings/UIAcl.vue
  5. 3
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  6. 2
      packages/nc-gui/components/virtual-cell/components/ListItems.vue
  7. 2
      packages/nc-gui/layouts/base.vue
  8. 2
      packages/nc-gui/layouts/shared-view.vue

8
packages/nc-gui/components/cell/GeoData.vue

@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { GeoLocationType } from 'nocodb-sdk'
import { Modal as AModal, latLongToJoinedString, useVModel, iconMap } from '#imports'
import { Modal as AModal, iconMap, latLongToJoinedString, useVModel } from '#imports'
interface Props {
modelValue?: string | null
@ -135,7 +135,11 @@ const openInOSM = () => {
</a-form-item>
<a-form-item>
<div class="mr-2 flex flex-col items-end gap-1 text-left">
<component :is="iconMap.reload" v-if="isLoading" :class="{ 'animate-infinite animate-spin text-gray-500': isLoading }" />
<component
:is="iconMap.reload"
v-if="isLoading"
:class="{ 'animate-infinite animate-spin text-gray-500': isLoading }"
/>
<a-button class="ml-2" @click="onClickSetCurrentLocation"
><MdiGpsFixed class="mr-2" />{{ $t('labels.currentLocation') }}</a-button
>

2
packages/nc-gui/components/dashboard/settings/AuditTab.vue

@ -1,7 +1,7 @@
<script setup lang="ts">
import { Tooltip as ATooltip, Empty } from 'ant-design-vue'
import type { AuditType } from 'nocodb-sdk'
import { h, onMounted, storeToRefs, timeAgo, useGlobal, useI18n, useNuxtApp, useProject, iconMap } from '#imports'
import { h, iconMap, onMounted, storeToRefs, timeAgo, useGlobal, useI18n, useNuxtApp, useProject } from '#imports'
const { $api } = useNuxtApp()

2
packages/nc-gui/components/dashboard/settings/Metadata.vue

@ -1,5 +1,5 @@
<script setup lang="ts">
import { Empty, extractSdkResponseErrorMsg, h, message, storeToRefs, useI18n, useNuxtApp, useProject, iconMap } from '#imports'
import { Empty, extractSdkResponseErrorMsg, h, iconMap, message, storeToRefs, useI18n, useNuxtApp, useProject } from '#imports'
const props = defineProps<{
baseId: string

2
packages/nc-gui/components/dashboard/settings/UIAcl.vue

@ -4,11 +4,11 @@ import {
computed,
extractSdkResponseErrorMsg,
h,
iconMap,
message,
onMounted,
storeToRefs,
useGlobal,
iconMap,
useI18n,
useNuxtApp,
useProject,

3
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -112,7 +112,8 @@ const onClick = (row: Row) => {
<div class="max-h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6">
<div class="flex mb-4 items-center gap-2 px-12">
<div class="flex-1" />
<component :is="iconMap.reload"
<component
:is="iconMap.reload"
v-if="!isForm"
class="cursor-pointer text-gray-500"
data-testid="nc-child-list-reload"

2
packages/nc-gui/components/virtual-cell/components/ListItems.vue

@ -5,10 +5,10 @@ import type { ColumnType, LinkToAnotherRecordType } from 'nocodb-sdk'
import {
ColumnInj,
Empty,
iconMap,
IsPublicInj,
SaveRowInj,
computed,
iconMap,
inject,
isDrawerExist,
ref,

2
packages/nc-gui/layouts/base.vue

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { computed, navigateTo, ref, useGlobal, useNuxtApp, useRoute, useSidebar, iconMap } from '#imports'
import { computed, iconMap, navigateTo, ref, useGlobal, useNuxtApp, useRoute, useSidebar } from '#imports'
const { signOut, signedIn, isLoading, user, currentVersion } = useGlobal()

2
packages/nc-gui/layouts/shared-view.vue

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { navigateTo, useEventListener, useRouter , iconMap} from '#imports'
import { iconMap, navigateTo, useEventListener, useRouter } from '#imports'
const { isLoading, appInfo } = useGlobal()

Loading…
Cancel
Save