Browse Source

chore(gui): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
feat/oracle-support
Pranav C 2 years ago
parent
commit
38dc01ee66
  1. 2
      packages/nc-gui/components/smartsheet/Cell.vue
  2. 9
      packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue
  3. 2
      packages/nc-gui/lib/enums.ts

2
packages/nc-gui/components/smartsheet/Cell.vue

@ -143,7 +143,7 @@ const isNumericField = computed(() => {
<template> <template>
<div <div
class="nc-cell w-full h-fl" class="nc-cell w-full h-full"
:class="[ :class="[
`nc-cell-${(column?.uidt || 'default').toLowerCase()}`, `nc-cell-${(column?.uidt || 'default').toLowerCase()}`,
{ 'text-blue-600': isPrimary(column) && !props.virtual && !isForm }, { 'text-blue-600': isPrimary(column) && !props.virtual && !isForm },

9
packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import {ModelTypes, MssqlUi, OracleUi, SqliteUi} from 'nocodb-sdk' import { ModelTypes, MssqlUi, OracleUi, SqliteUi } from 'nocodb-sdk'
import { MetaInj, inject, ref, useProject, useVModel } from '#imports' import { MetaInj, inject, ref, useProject, useVModel } from '#imports'
import MdiPlusIcon from '~icons/mdi/plus-circle-outline' import MdiPlusIcon from '~icons/mdi/plus-circle-outline'
import MdiMinusIcon from '~icons/mdi/minus-circle-outline' import MdiMinusIcon from '~icons/mdi/minus-circle-outline'
@ -22,10 +22,11 @@ setAdditionalValidations({
childId: [{ required: true, message: 'Required' }], childId: [{ required: true, message: 'Required' }],
}) })
let onUpdateDeleteOptions:(string|null)[] = sqlUi === MssqlUi ? ['NO ACTION'] : ['NO ACTION', 'CASCADE', 'RESTRICT', 'SET NULL', 'SET DEFAULT'] let onUpdateDeleteOptions: (string | null)[] =
sqlUi === MssqlUi ? ['NO ACTION'] : ['NO ACTION', 'CASCADE', 'RESTRICT', 'SET NULL', 'SET DEFAULT']
if(sqlUi === OracleUi){ if (sqlUi === OracleUi) {
onUpdateDeleteOptions = [null ,'CASCADE'] onUpdateDeleteOptions = [null, 'CASCADE']
} }
if (!vModel.value.parentId) vModel.value.parentId = meta?.id if (!vModel.value.parentId) vModel.value.parentId = meta?.id

2
packages/nc-gui/lib/enums.ts

@ -21,7 +21,7 @@ export enum ClientType {
SQLITE = 'sqlite3', SQLITE = 'sqlite3',
VITESS = 'vitess', VITESS = 'vitess',
SNOWFLAKE = 'snowflake', SNOWFLAKE = 'snowflake',
ORACLEDB = 'oracledb' ORACLEDB = 'oracledb',
} }
export enum Language { export enum Language {

Loading…
Cancel
Save