diff --git a/packages/nc-gui-v2/lib/enums.ts b/packages/nc-gui-v2/lib/enums.ts index 7b6f97e542..d2705374bc 100644 --- a/packages/nc-gui-v2/lib/enums.ts +++ b/packages/nc-gui-v2/lib/enums.ts @@ -4,7 +4,13 @@ export enum Role { User = 'user', } -export type Roles = Record +export enum ClientType { + MYSQL = 'mysql2', + MSSQL = 'mssql', + PG = 'pg', + SQLITE = 'sqlite3', + VITESS = 'vitess', +} export enum Language { de = 'Deutsch', diff --git a/packages/nc-gui-v2/lib/types.ts b/packages/nc-gui-v2/lib/types.ts index d68e7b9c55..a702fbd9f7 100644 --- a/packages/nc-gui-v2/lib/types.ts +++ b/packages/nc-gui-v2/lib/types.ts @@ -1,5 +1,5 @@ import type { ComputedRef, ToRefs } from 'vue' -import type { Roles } from '~/lib/enums' +import type { Role } from './enums' export interface User { id: string @@ -33,40 +33,4 @@ export type ReadonlyState = Readonly> & Omit -export enum ClientType { - MYSQL = 'mysql2', - MSSQL = 'mssql', - PG = 'pg', - SQLITE = 'sqlite3', - VITESS = 'vitess', -} - -export interface ProjectCreateForm { - title: string - dataSource: { - client: ClientType - connection: - | { - host: string - database: string - user: string - password: string - port: number | string - ssl?: Record - searchPath?: string[] - } - | { - client?: 'sqlite3' - database: string - connection?: { - filename?: string - } - useNullAsDefault?: boolean - } - } - inflection: { - inflectionColumn?: string - inflectionTable?: string - } - sslUse?: any -} +export type Roles = Record diff --git a/packages/nc-gui-v2/pages/index/index.vue b/packages/nc-gui-v2/pages/index/index.vue index 9227ca48e1..575ca831eb 100644 --- a/packages/nc-gui-v2/pages/index/index.vue +++ b/packages/nc-gui-v2/pages/index/index.vue @@ -1,10 +1,10 @@