Browse Source

chore(gui-v2): lint

pull/2721/head
braks 2 years ago
parent
commit
e4210fffd7
  1. 2
      packages/nc-gui-v2/components/cell/Duration.vue
  2. 9
      packages/nc-gui-v2/components/cell/Url.vue
  3. 4
      packages/nc-gui-v2/nuxt.config.ts

2
packages/nc-gui-v2/components/cell/Duration.vue

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, computed, inject } from '#imports'
import { computed, inject, ref } from '#imports'
import { ColumnInj } from '~/components'
import { convertDurationToSeconds, convertMS2Duration, durationOptions } from '~/utils/durationHelper'

9
packages/nc-gui-v2/components/cell/Url.vue

@ -1,8 +1,10 @@
<script setup lang="ts">
import { ref, computed } from '#imports'
import { computed, ref } from '#imports'
import { ColumnInj } from '~/components'
import { isValidURL } from '~/utils/urlUtils'
const { modelValue: value } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
const column = inject(ColumnInj)
const editEnabled = inject<boolean>('editEnabled')
@ -10,9 +12,6 @@ interface Props {
modelValue: string
}
const { modelValue: value } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
const localState = computed({
get: () => value,
set: (val) => {
@ -35,7 +34,7 @@ onMounted(() => {
<input ref="root" v-model="localState" />
</span>
<span v-else>
<a class="caption py-2 text-primary underline hover:opacity-75" v-if="isValid" :href="value" target="_blank">{{ value }}</a>
<a v-if="isValid" class="caption py-2 text-primary underline hover:opacity-75" :href="value" target="_blank">{{ value }}</a>
<span v-else>{{ value }}</span>
</span>
</template>

4
packages/nc-gui-v2/nuxt.config.ts

@ -2,8 +2,8 @@ import path from 'path'
import { defineNuxtConfig } from 'nuxt'
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite';
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
import Components from 'unplugin-vue-components/vite'
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({

Loading…
Cancel
Save