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> <script lang="ts" setup>
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { useProject, useSmartsheetStoreOrThrow } from '~/composables'
import { LockType } from '~/lib'
import { viewIcons } from '~/utils'
import { import {
ActiveViewInj, ActiveViewInj,
IsLockedInj, IsLockedInj,
@ -11,8 +8,11 @@ import {
inject, inject,
ref, ref,
useNuxtApp, useNuxtApp,
useProject,
useUIPermission, useUIPermission,
} from '#imports' } from '#imports'
import { LockType } from '~/lib'
import { viewIcons } from '~/utils'
import MdiLockOutlineIcon from '~icons/mdi/lock-outline' import MdiLockOutlineIcon from '~icons/mdi/lock-outline'
import MdiAccountIcon from '~icons/mdi/account' import MdiAccountIcon from '~icons/mdi/account'
import MdiAccountGroupIcon from '~icons/mdi/account-group' 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) => { watch($$(activeLang), (newLang) => {
selectedClient = newLang?.clients?.[0] selectedClient = newLang?.clients?.[0]
}) })
</script> </script>
<template> <template>
@ -158,7 +157,7 @@ watch($$(activeLang), (newLang) => {
:disable-deep-compare="true" :disable-deep-compare="true"
hide-minimap 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 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"> <a-select-option v-for="(client, i) in activeLang?.clients" :key="i" class="!w-full uppercase" :value="client">
{{ client }} {{ client }}
@ -191,8 +190,9 @@ watch($$(activeLang), (newLang) => {
</div> </div>
</a-drawer> </a-drawer>
</template> </template>
<style scoped> <style scoped>
:deep(.ant-tabs-tab + .ant-tabs-tab) { :deep(.ant-tabs-tab + .ant-tabs-tab) {
@apply !ml-7 @apply !ml-7;
} }
</style> </style>

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

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

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

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

Loading…
Cancel
Save