mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
chore: remove data-provider and use npm package instead (#713)
* chore: remove data-provider, install npm package * chore: replace monorepo package with npm package: librechat-data-provider * chore: remove data-provider scripts * chore: remove data-provider from .eslintrc.js
This commit is contained in:
parent
777d64088b
commit
369b1f4eba
46 changed files with 1403 additions and 3415 deletions
|
|
@ -6,7 +6,7 @@ import { useNavigate } from 'react-router-dom';
|
|||
import { useRecoilValue } from 'recoil';
|
||||
import store from '~/store';
|
||||
import { localize } from '~/localization/Translation';
|
||||
import { useGetStartupConfig } from '@librechat/data-provider';
|
||||
import { useGetStartupConfig } from 'librechat-data-provider';
|
||||
import { GoogleIcon, OpenIDIcon, GithubIcon, DiscordIcon } from '~/components';
|
||||
|
||||
function Login() {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { useForm } from 'react-hook-form';
|
|||
import { useRecoilValue } from 'recoil';
|
||||
import store from '~/store';
|
||||
import { localize } from '~/localization/Translation';
|
||||
import { TLoginUser } from '@librechat/data-provider';
|
||||
import { TLoginUser } from 'librechat-data-provider';
|
||||
|
||||
type TLoginFormProps = {
|
||||
onSubmit: (data: TLoginUser) => void;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {
|
|||
useRegisterUserMutation,
|
||||
TRegisterUser,
|
||||
useGetStartupConfig,
|
||||
} from '@librechat/data-provider';
|
||||
} from 'librechat-data-provider';
|
||||
import { GoogleIcon, OpenIDIcon, GithubIcon, DiscordIcon } from '~/components';
|
||||
|
||||
function Registration() {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
useRequestPasswordResetMutation,
|
||||
TRequestPasswordReset,
|
||||
TRequestPasswordResetResponse,
|
||||
} from '@librechat/data-provider';
|
||||
} from 'librechat-data-provider';
|
||||
|
||||
function RequestPasswordReset() {
|
||||
const lang = useRecoilValue(store.lang);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { useState } from 'react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { useResetPasswordMutation, TResetPassword } from '@librechat/data-provider';
|
||||
import { useResetPasswordMutation, TResetPassword } from 'librechat-data-provider';
|
||||
import { useNavigate, useSearchParams } from 'react-router-dom';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import store from '~/store';
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { render, waitFor } from 'layout-test-utils';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import Login from '../Login';
|
||||
import * as mockDataProvider from '@librechat/data-provider';
|
||||
import * as mockDataProvider from 'librechat-data-provider';
|
||||
|
||||
jest.mock('@librechat/data-provider');
|
||||
jest.mock('librechat-data-provider');
|
||||
|
||||
const setup = ({
|
||||
useGetUserQueryReturnValue = {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { render, waitFor } from 'layout-test-utils';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import Registration from '../Registration';
|
||||
import * as mockDataProvider from '@librechat/data-provider';
|
||||
import * as mockDataProvider from 'librechat-data-provider';
|
||||
|
||||
jest.mock('@librechat/data-provider');
|
||||
jest.mock('librechat-data-provider');
|
||||
|
||||
const setup = ({
|
||||
useGetUserQueryReturnValue = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue