fix no-restricted-imports

This commit is contained in:
Jason Laster 2025-03-12 14:25:45 -04:00
parent 82ce4d0ffe
commit 3d7c885584
6 changed files with 8 additions and 8 deletions

View File

@ -31,8 +31,8 @@ import {
type ProtocolMessage,
} from '~/lib/replay/SimulationPrompt';
import { getIFrameSimulationData } from '~/lib/replay/Recording';
import { getCurrentIFrame } from '../workbench/Preview';
import { getCurrentMouseData } from '../workbench/PointSelector';
import { getCurrentIFrame } from '~/components/workbench/Preview';
import { getCurrentMouseData } from '~/components/workbench/PointSelector';
import { anthropicNumFreeUsesCookieName, anthropicApiKeyCookieName, MaxFreeUses } from '~/utils/freeUses';
import type { FileMap } from '~/lib/stores/files';
import { shouldIncludeFile } from '~/utils/fileUtils';

View File

@ -2,7 +2,7 @@ import { toast } from 'react-toastify';
import ReactModal from 'react-modal';
import { useState } from 'react';
import { submitFeedback } from '~/lib/replay/Problems';
import { getLastProjectContents, getLastChatMessages } from '../chat/Chat.client';
import { getLastProjectContents, getLastChatMessages } from '~/components/chat/Chat.client';
ReactModal.setAppElement('#root');

View File

@ -1,6 +1,6 @@
// FIXME ping telemetry server directly instead of going through the backend.
import { getNutLoginKey } from '../replay/Problems';
import { getNutLoginKey } from '~/lib/replay/Problems';
// We do this to work around CORS insanity.
export async function pingTelemetry(event: string, data: any) {

View File

@ -15,7 +15,7 @@ import {
createChatFromMessages,
} from './db';
import { loadProblem } from '~/components/chat/LoadProblemButton';
import { createAsyncSuspenseValue } from '../asyncSuspenseValue';
import { createAsyncSuspenseValue } from '~/lib/asyncSuspenseValue';
export interface ChatHistoryItem {
id: string;

View File

@ -17,9 +17,9 @@ import { extractRelativePath } from '~/utils/diff';
import { description } from '~/lib/persistence';
import Cookies from 'js-cookie';
import { createSampler } from '~/utils/sampler';
import { uint8ArrayToBase64 } from '../replay/ReplayProtocolClient';
import { uint8ArrayToBase64 } from '~/lib/replay/ReplayProtocolClient';
import type { ActionAlert } from '~/types/actions';
import { extractFileArtifactsFromRepositoryContents } from '../replay/Problems';
import { extractFileArtifactsFromRepositoryContents } from '~/lib/replay/Problems';
export interface ArtifactState {
id: string;

View File

@ -1,7 +1,7 @@
import { WebContainer } from '@webcontainer/api';
import { WORK_DIR_NAME } from '~/utils/constants';
import { cleanStackTrace } from '~/utils/stacktrace';
import { recordingMessageHandlerScript } from '../replay/Recording';
import { recordingMessageHandlerScript } from '~/lib/replay/Recording';
interface WebContainerContext {
loaded: boolean;