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. 2
      packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts
  6. 3
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  7. 2
      packages/nc-gui/components/virtual-cell/components/ListItems.vue
  8. 2
      packages/nc-gui/layouts/base.vue
  9. 2
      packages/nc-gui/layouts/shared-view.vue

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

@ -1,6 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { GeoLocationType } from 'nocodb-sdk' 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 { interface Props {
modelValue?: string | null modelValue?: string | null
@ -135,7 +135,11 @@ const openInOSM = () => {
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<div class="mr-2 flex flex-col items-end gap-1 text-left"> <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" <a-button class="ml-2" @click="onClickSetCurrentLocation"
><MdiGpsFixed class="mr-2" />{{ $t('labels.currentLocation') }}</a-button ><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"> <script setup lang="ts">
import { Tooltip as ATooltip, Empty } from 'ant-design-vue' import { Tooltip as ATooltip, Empty } from 'ant-design-vue'
import type { AuditType } from 'nocodb-sdk' 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() const { $api } = useNuxtApp()

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

@ -1,5 +1,5 @@
<script setup lang="ts"> <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<{ const props = defineProps<{
baseId: string baseId: string

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

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

2
packages/nc-gui/components/smartsheet/header/VirtualCellIcon.ts

@ -95,7 +95,7 @@ export default defineComponent({
const { icon: Icon, color } = renderIcon(column.value, relationColumn) const { icon: Icon, color } = renderIcon(column.value, relationColumn)
return h(Icon, { class: `${color} mx-1`,style: { fontSize: '16px' } }) return h(Icon, { class: `${color} mx-1`, style: { fontSize: '16px' } })
} }
}, },
}) })

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="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 mb-4 items-center gap-2 px-12">
<div class="flex-1" /> <div class="flex-1" />
<component :is="iconMap.reload" <component
:is="iconMap.reload"
v-if="!isForm" v-if="!isForm"
class="cursor-pointer text-gray-500" class="cursor-pointer text-gray-500"
data-testid="nc-child-list-reload" 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 { import {
ColumnInj, ColumnInj,
Empty, Empty,
iconMap,
IsPublicInj, IsPublicInj,
SaveRowInj, SaveRowInj,
computed, computed,
iconMap,
inject, inject,
isDrawerExist, isDrawerExist,
ref, ref,

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

@ -1,5 +1,5 @@
<script lang="ts" setup> <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() const { signOut, signedIn, isLoading, user, currentVersion } = useGlobal()

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

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

Loading…
Cancel
Save