Browse Source

chore(nc-gui): lint

pull/9722/head
Ramesh Mane 6 days ago
parent
commit
0ad5019d0f
  1. 3
      packages/nc-gui/components/cmd-k/index.vue
  2. 2
      packages/nc-gui/components/general/UserIcon.vue
  3. 5
      packages/nc-gui/components/general/WorkspaceIcon.vue
  4. 6
      packages/nc-gui/components/general/WorkspaceIconSelector.vue

3
packages/nc-gui/components/cmd-k/index.vue

@ -1,8 +1,7 @@
<script lang="ts" setup>
import { useMagicKeys, whenever } from '@vueuse/core'
import { commandScore } from './command-score'
import type { CommandPaletteType } from '~/lib/types'
import LinkedItems from '../virtual-cell/components/LinkedItems.vue'
import type { CommandPaletteType } from '#imports'
interface CmdAction {
id: string

2
packages/nc-gui/components/general/UserIcon.vue

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { isColorDark, stringToColor } from '~/utils/colorsUtils'
import { isColorDark, stringToColor } from '#imports'
const props = withDefaults(
defineProps<{

5
packages/nc-gui/components/general/WorkspaceIcon.vue

@ -1,9 +1,8 @@
<script lang="ts" setup>
import type { WorkspaceType } from 'nocodb-sdk'
import { isColorDark, stringToColor } from '~/utils/colorsUtils'
import { WorkspaceIconType } from '#imports'
import 'emoji-mart-vue-fast/css/emoji-mart.css'
import { Icon } from '@iconify/vue'
import { WorkspaceIconType, isColorDark, stringToColor } from '#imports'
const props = defineProps<{
workspace: WorkspaceType | undefined
@ -38,7 +37,7 @@ const workspaceIcon = computed(() => {
return {
icon: iconType === WorkspaceIconType.IMAGE && ncIsObject(icon) ? getPossibleAttachmentSrc(icon) || '' : icon,
iconType: iconType,
iconType,
}
})

6
packages/nc-gui/components/general/WorkspaceIconSelector.vue

@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { UploadChangeParam, UploadFile } from 'ant-design-vue'
import { Upload } from 'ant-design-vue'
import { WorkspaceIconType } from '#imports'
import data from 'emoji-mart-vue-fast/data/apple.json'
import { EmojiIndex, Picker } from 'emoji-mart-vue-fast/src'
import { WorkspaceIconType } from '#imports'
import 'emoji-mart-vue-fast/css/emoji-mart.css'
interface Props {
@ -479,10 +479,10 @@ watch(isOpen, (newValue) => {
.emoji-mart-search {
@apply px-2 mt-2;
input {
@apply text-sm pl-[11px] rounded-lg !h-8 transition-all duration-300 !outline-none ring-0;
@apply text-sm pl-[11px] rounded-lg !py-5px transition-all duration-300 !outline-none ring-0;
&:focus {
@apply !outline-none ring-0 !h-8 shadow-selected border-primary;
@apply !outline-none ring-0 shadow-selected border-primary;
}
}
}

Loading…
Cancel
Save