Model and DB refactor (#61)

- [x] Move from `sqlx` to `rusqlite`
- [x] Generate TS types from Rust models
This commit is contained in:
Gregory Schier
2024-08-05 07:58:20 -07:00
committed by GitHub
parent 71013fd701
commit 989b5a8058
193 changed files with 7083 additions and 8337 deletions

View File

@@ -33,7 +33,7 @@ import {
import { tags as t } from '@lezer/highlight';
import { graphql, graphqlLanguageSupport } from 'cm6-graphql';
import { EditorView } from 'codemirror';
import type { Environment, Workspace } from '../../../lib/models';
import type { Environment, Workspace } from '@yaakapp/api';
import type { EditorProps } from './index';
import { pairs } from './pairs/extension';
import { text } from './text/extension';

View File

@@ -1,7 +1,7 @@
import type { LanguageSupport } from '@codemirror/language';
import { LRLanguage } from '@codemirror/language';
import { parseMixed } from '@lezer/common';
import type { Environment, Workspace } from '../../../../lib/models';
import type { Environment, Workspace } from '@yaakapp/api';
import type { GenericCompletionConfig } from '../genericCompletion';
import { genericCompletion } from '../genericCompletion';
import { textLanguageName } from '../text/extension';

View File

@@ -1,5 +1,5 @@
import classNames from 'classnames';
import type { GrpcRequest, HttpRequest } from '../../lib/models';
import type { GrpcRequest, HttpRequest } from '@yaakapp/api';
interface Props {
request: HttpRequest | GrpcRequest;

View File

@@ -1,5 +1,5 @@
import classNames from 'classnames';
import type { HttpResponse } from '../../lib/models';
import type { HttpResponse } from '@yaakapp/api';
interface Props {
response: Pick<HttpResponse, 'status' | 'statusReason' | 'error'>;