mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
refactor: move qrCodeStore to lib/stores for better organization
The qrCodeStore has been relocated from the app/stores directory to app/lib/stores to maintain a more consistent and organized project structure. This change improves maintainability by centralizing store-related files in a dedicated directory.
This commit is contained in:
parent
f90fd79064
commit
c08be2f1fb
@ -40,7 +40,7 @@ import { LOCAL_PROVIDERS } from '~/lib/stores/settings';
|
|||||||
import { SupabaseChatAlert } from '~/components/chat/SupabaseAlert';
|
import { SupabaseChatAlert } from '~/components/chat/SupabaseAlert';
|
||||||
import { SupabaseConnection } from './SupabaseConnection';
|
import { SupabaseConnection } from './SupabaseConnection';
|
||||||
import { ExpoQrModal } from '~/components/workbench/ExpoQrModal';
|
import { ExpoQrModal } from '~/components/workbench/ExpoQrModal';
|
||||||
import { expoUrlAtom } from '~/stores/qrCodeStore';
|
import { expoUrlAtom } from '~/lib/stores/qrCodeStore';
|
||||||
import { useStore } from '@nanostores/react';
|
import { useStore } from '@nanostores/react';
|
||||||
|
|
||||||
const TEXTAREA_MIN_HEIGHT = 76;
|
const TEXTAREA_MIN_HEIGHT = 76;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Dialog, DialogTitle, DialogDescription, DialogRoot } from '~/components/ui/Dialog';
|
import { Dialog, DialogTitle, DialogDescription, DialogRoot } from '~/components/ui/Dialog';
|
||||||
import { useStore } from '@nanostores/react';
|
import { useStore } from '@nanostores/react';
|
||||||
import { expoUrlAtom } from '~/stores/qrCodeStore';
|
import { expoUrlAtom } from '~/lib/stores/qrCodeStore';
|
||||||
import QRCode from 'react-qr-code';
|
import QRCode from 'react-qr-code';
|
||||||
|
|
||||||
interface ExpoQrModalProps {
|
interface ExpoQrModalProps {
|
||||||
|
@ -4,7 +4,7 @@ import { IconButton } from '~/components/ui/IconButton';
|
|||||||
import { workbenchStore } from '~/lib/stores/workbench';
|
import { workbenchStore } from '~/lib/stores/workbench';
|
||||||
import { PortDropdown } from './PortDropdown';
|
import { PortDropdown } from './PortDropdown';
|
||||||
import { ScreenshotSelector } from './ScreenshotSelector';
|
import { ScreenshotSelector } from './ScreenshotSelector';
|
||||||
import { expoUrlAtom } from '~/stores/qrCodeStore';
|
import { expoUrlAtom } from '~/lib/stores/qrCodeStore';
|
||||||
import { ExpoQrModal } from '~/components/workbench/ExpoQrModal';
|
import { ExpoQrModal } from '~/components/workbench/ExpoQrModal';
|
||||||
|
|
||||||
type ResizeSide = 'left' | 'right' | null;
|
type ResizeSide = 'left' | 'right' | null;
|
||||||
|
@ -2,7 +2,7 @@ import type { WebContainer, WebContainerProcess } from '@webcontainer/api';
|
|||||||
import type { ITerminal } from '~/types/terminal';
|
import type { ITerminal } from '~/types/terminal';
|
||||||
import { withResolvers } from './promises';
|
import { withResolvers } from './promises';
|
||||||
import { atom } from 'nanostores';
|
import { atom } from 'nanostores';
|
||||||
import { expoUrlAtom } from '~/stores/qrCodeStore';
|
import { expoUrlAtom } from '~/lib/stores/qrCodeStore';
|
||||||
|
|
||||||
export async function newShellProcess(webcontainer: WebContainer, terminal: ITerminal) {
|
export async function newShellProcess(webcontainer: WebContainer, terminal: ITerminal) {
|
||||||
const args: string[] = [];
|
const args: string[] = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user