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

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

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

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

@ -1,9 +1,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { WorkspaceType } from 'nocodb-sdk' 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 'emoji-mart-vue-fast/css/emoji-mart.css'
import { Icon } from '@iconify/vue' import { Icon } from '@iconify/vue'
import { WorkspaceIconType, isColorDark, stringToColor } from '#imports'
const props = defineProps<{ const props = defineProps<{
workspace: WorkspaceType | undefined workspace: WorkspaceType | undefined
@ -38,7 +37,7 @@ const workspaceIcon = computed(() => {
return { return {
icon: iconType === WorkspaceIconType.IMAGE && ncIsObject(icon) ? getPossibleAttachmentSrc(icon) || '' : icon, 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> <script lang="ts" setup>
import type { UploadChangeParam, UploadFile } from 'ant-design-vue' import type { UploadChangeParam, UploadFile } from 'ant-design-vue'
import { Upload } 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 data from 'emoji-mart-vue-fast/data/apple.json'
import { EmojiIndex, Picker } from 'emoji-mart-vue-fast/src' import { EmojiIndex, Picker } from 'emoji-mart-vue-fast/src'
import { WorkspaceIconType } from '#imports'
import 'emoji-mart-vue-fast/css/emoji-mart.css' import 'emoji-mart-vue-fast/css/emoji-mart.css'
interface Props { interface Props {
@ -479,10 +479,10 @@ watch(isOpen, (newValue) => {
.emoji-mart-search { .emoji-mart-search {
@apply px-2 mt-2; @apply px-2 mt-2;
input { 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 { &:focus {
@apply !outline-none ring-0 !h-8 shadow-selected border-primary; @apply !outline-none ring-0 shadow-selected border-primary;
} }
} }
} }

Loading…
Cancel
Save