Browse Source

chore(gui-v2): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3398/head
Pranav C 2 years ago
parent
commit
5f87dda7f0
  1. 6
      packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue
  2. 6
      packages/nc-gui-v2/components/smartsheet/ApiSnippet.vue
  3. 3
      packages/nc-gui-v2/components/smartsheet/Grid.vue
  4. 9
      packages/nc-gui-v2/nuxt.config.ts

6
packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue

@ -1,8 +1,5 @@
<script lang="ts" setup>
import { message } from 'ant-design-vue'
import { useProject, useSmartsheetStoreOrThrow } from '~/composables'
import { LockType } from '~/lib'
import { viewIcons } from '~/utils'
import {
ActiveViewInj,
IsLockedInj,
@ -11,8 +8,11 @@ import {
inject,
ref,
useNuxtApp,
useProject,
useUIPermission,
} from '#imports'
import { LockType } from '~/lib'
import { viewIcons } from '~/utils'
import MdiLockOutlineIcon from '~icons/mdi/lock-outline'
import MdiAccountIcon from '~icons/mdi/account'
import MdiAccountGroupIcon from '~icons/mdi/account-group'

6
packages/nc-gui-v2/components/smartsheet/ApiSnippet.vue

@ -127,7 +127,6 @@ const afterVisibleChange = (visible: boolean) => {
watch($$(activeLang), (newLang) => {
selectedClient = newLang?.clients?.[0]
})
</script>
<template>
@ -158,7 +157,7 @@ watch($$(activeLang), (newLang) => {
:disable-deep-compare="true"
hide-minimap
/>
<div class="flex flex-row w-full justify-end space-x-3 mt-4 uppercase" v-if="activeLang.clients">
<div v-if="activeLang.clients" class="flex flex-row w-full justify-end space-x-3 mt-4 uppercase">
<a-select v-if="activeLang" v-model:value="selectedClient" style="width: 6rem">
<a-select-option v-for="(client, i) in activeLang?.clients" :key="i" class="!w-full uppercase" :value="client">
{{ client }}
@ -191,8 +190,9 @@ watch($$(activeLang), (newLang) => {
</div>
</a-drawer>
</template>
<style scoped>
:deep(.ant-tabs-tab + .ant-tabs-tab) {
@apply !ml-7
@apply !ml-7;
}
</style>

3
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -9,7 +9,6 @@ import {
IsFormInj,
IsGridInj,
IsLockedInj,
IsPublicInj,
MetaInj,
OpenNewRecordFormHookInj,
PaginationDataInj,
@ -37,8 +36,6 @@ const meta = inject(MetaInj)
const view = inject(ActiveViewInj)
const isPublicView = inject(IsPublicInj, ref(false))
// keep a root fields variable and will get modified from
// fields menu and get used in grid and gallery
const fields = inject(FieldsInj, ref([]))

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

@ -50,7 +50,7 @@ export default defineNuxtConfig({
vite: {
// todo: minifiy again
build: {
minify: false
minify: false,
},
plugins: [
vueI18n({
@ -79,8 +79,7 @@ export default defineNuxtConfig({
],
define: {
'process.env.DEBUG': 'false',
'process.nextTick': () => {
},
'process.nextTick': () => {},
},
server: {
watch: {
@ -100,9 +99,7 @@ export default defineNuxtConfig({
global: 'globalThis',
},
// Enable esbuild polyfill plugins
plugins: [
NodeModulesPolyfillPlugin(),
],
plugins: [NodeModulesPolyfillPlugin()],
},
},
},

Loading…
Cancel
Save