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. 3
      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 },

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

@ -22,7 +22,8 @@ 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']

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