mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
fix no-restricted-imports
This commit is contained in:
parent
82ce4d0ffe
commit
3d7c885584
@ -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';
|
||||
|
@ -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');
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user