repo_id
stringclasses
563 values
file_path
stringlengths
40
166
content
stringlengths
1
2.94M
__index_level_0__
int64
0
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component/Account/Account.tsx
import { FC, useState } from "react"; import styled from "styled-components"; import CodeResult from "../CodeResult"; import InputLabel from "../InputLabel"; import Interaction from "../Interaction"; import Button from "../../../../../components/Button"; import Foldable from "../../../../../components/Foldable"; impor...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component/Account/index.ts
export { default } from "./Account";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component/Event/Event.tsx
import { FC, useEffect, useState } from "react"; import CodeResult from "../CodeResult"; import Interaction from "../Interaction"; import { PgCommon } from "../../../../../utils/pg"; import { PgProgramInteraction } from "../../../../../utils/pg/program-interaction"; import { useConnection, useWallet } from "../../../....
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/test/Component/Event/index.ts
export { default } from "./Event";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/explorer.ts
import { createSidebarPage } from "../create"; export const explorer = createSidebarPage({ name: "Explorer", icon: "explorer.png", keybind: "Ctrl+Shift+E", });
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/index.ts
export { explorer } from "./explorer";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Workspaces.tsx
import { useMemo } from "react"; import styled from "styled-components"; import Button from "../../../../components/Button"; import Select from "../../../../components/Select"; import Text from "../../../../components/Text"; import { NewWorkspace, RenameWorkspace, DeleteWorkspace, ImportGithub, ImportFs, I...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/ExplorerContextMenu.tsx
import { FC } from "react"; import Menu from "../../../../components/Menu"; import { Edit, NewFile, NewFolder, Rocket, RunAll, TestPaper, TestTube, Trash, Triangle, Wrench, } from "../../../../components/Icons"; import { PgExplorer } from "../../../../utils/pg"; import type { useExplorerContextMenu...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Explorer.tsx
import styled from "styled-components"; import Folders from "./Folders"; import NoWorkspace from "./NoWorkspace"; import Workspaces from "./Workspaces"; import { useExplorer } from "../../../../hooks"; const Explorer = () => { const { explorer } = useExplorer({ checkInitialization: true }); if (!explorer?.isTemp...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Folders.tsx
import { ComponentPropsWithoutRef, CSSProperties, FC, forwardRef, MouseEvent, ReactNode, useCallback, useMemo, useState, } from "react"; import styled, { css, useTheme } from "styled-components"; import ExplorerButtons from "./ExplorerButtons"; import Button, { ButtonProps } from "../../../../compone...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/NoWorkspace.tsx
import styled from "styled-components"; import Button from "../../../../components/Button"; import Text from "../../../../components/Text"; import { NewWorkspace } from "./Modals"; import { Plus } from "../../../../components/Icons"; import { PgView } from "../../../../utils/pg"; const NoWorkspace = () => { const n...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/useExplorerContextMenu.tsx
import { MouseEvent, useCallback, useState } from "react"; import { DeleteItem, RenameItem } from "./Modals"; import { ClassName, Id } from "../../../../constants"; import { PgCommand, PgCommon, PgExplorer, PgGlobal, PgLanguage, PgView, } from "../../../../utils/pg"; import { useRenderOnChange } from "../....
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/useNewItem.tsx
import { useCallback } from "react"; import { PgCommon, PgExplorer, PgView } from "../../../../utils/pg"; export const useNewItem = () => { const newItem = useCallback(async () => { const selected = PgExplorer.getSelectedEl(); if (selected) { // Open if selected is a folder if (PgExplorer.getIt...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/index.ts
export { default } from "./Explorer";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/useHandleItemState.tsx
import { useEffect } from "react"; import { useTheme } from "styled-components"; import { PgCommon, PgExplorer } from "../../../../utils/pg"; /** Manage the item state when the current workspace or file changes. */ export const useHandleItemState = () => { const theme = useTheme(); useEffect(() => { const swi...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/ExplorerButtons.tsx
import { FC } from "react"; import styled from "styled-components"; import Button from "../../../../components/Button"; import Img from "../../../../components/Img"; import { NewItem, Share } from "./Modals"; import { PgExplorer, PgRouter, PgView } from "../../../../utils/pg"; import { useNewItem } from "./useNewItem"...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/NewItem.tsx
import { FC, useCallback, useMemo, useRef, useState } from "react"; import ReactDOM from "react-dom"; import styled from "styled-components"; import Input from "../../../../../components/Input"; import LangIcon from "../../../../../components/LangIcon"; import { EventName } from "../../../../../constants"; import { Fn...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/ReplaceItem.tsx
import { FC } from "react"; import styled, { css } from "styled-components"; import Modal from "../../../../../components/Modal"; import { Warning } from "../../../../../components/Icons"; import { PgExplorer } from "../../../../../utils/pg"; interface ReplaceItemProps { fromPath: string; toPath: string; } expor...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/DeleteWorkspace.tsx
import styled, { css } from "styled-components"; import Modal from "../../../../../components/Modal"; import { Warning } from "../../../../../components/Icons"; import { PgExplorer } from "../../../../../utils/pg"; export const DeleteWorkspace = () => { const deleteWorkspace = async () => { await PgExplorer.del...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/Share.tsx
import { FC, useState } from "react"; import styled from "styled-components"; import CopyButton from "../../../../../components/CopyButton"; import FilePicker from "../../../../../components/FilePicker"; import Input from "../../../../../components/Input"; import Link from "../../../../../components/Link"; import Moda...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/ExportWorkspaceReadme.tsx
/** Separate file in order to lazy load `Markdown` component */ import { FC } from "react"; import Markdown from "../../../../../components/Markdown"; import Modal from "../../../../../components/Modal"; interface ExportWorkspaceReadmeProps { /** Markdown text */ text: string; } export const ExportWorkspaceReadm...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/ExportWorkspace.tsx
import styled, { css } from "styled-components"; import Button from "../../../../../components/Button"; import Modal from "../../../../../components/Modal"; import Text from "../../../../../components/Text"; import { ExportFile, Info } from "../../../../../components/Icons"; import { PgFramework, PgView } from "../../...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/ImportGithub.tsx
import { ChangeEvent, FC, useState } from "react"; import styled, { css } from "styled-components"; import Button from "../../../../../components/Button"; import Img from "../../../../../components/Img"; import Input from "../../../../../components/Input"; import Link from "../../../../../components/Link"; import Moda...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/RenameWorkspace.tsx
import { ChangeEvent, useEffect, useRef, useState } from "react"; import Input from "../../../../../components/Input"; import Modal from "../../../../../components/Modal"; import { PgCommon, PgExplorer, PgView } from "../../../../../utils/pg"; export const RenameWorkspace = () => { const workspaceName = PgExplorer....
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/NewWorkspace.tsx
import { ChangeEvent, FC, useState } from "react"; import styled, { css } from "styled-components"; import Img from "../../../../../components/Img"; import Input from "../../../../../components/Input"; import Modal from "../../../../../components/Modal"; import { Fn, Framework as FrameworkType, PgExplorer, PgF...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/index.ts
export { DeleteItem } from "./DeleteItem"; export { DeleteWorkspace } from "./DeleteWorkspace"; export { ExportWorkspace } from "./ExportWorkspace"; export { ImportFs } from "./ImportFs"; export { ImportGithub } from "./ImportGithub"; export { ImportTemporary } from "./ImportTemporary"; export { NewItem } from "./NewIt...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/DeleteItem.tsx
import { FC } from "react"; import styled, { css } from "styled-components"; import Modal from "../../../../../components/Modal"; import { Warning } from "../../../../../components/Icons"; import { PgCommon, PgExplorer } from "../../../../../utils/pg"; interface DeleteItemProps { path: string; } export const Delet...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/ImportTemporary.tsx
import { ChangeEvent, useState } from "react"; import styled from "styled-components"; import Input from "../../../../../components/Input"; import Modal from "../../../../../components/Modal"; import { PgExplorer } from "../../../../../utils/pg"; export const ImportTemporary = () => { const [name, setName] = useSta...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/RenameItem.tsx
import { ChangeEvent, FC, useEffect, useRef, useState } from "react"; import Input from "../../../../../components/Input"; import Modal from "../../../../../components/Modal"; import { PgCommon, PgExplorer } from "../../../../../utils/pg"; interface RenameItemProps { path: string; } export const RenameItem: FC<Ren...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/explorer/Component/Modals/ImportFs.tsx
import { ChangeEvent, FC, useState } from "react"; import styled from "styled-components"; import Input from "../../../../../components/Input"; import Modal from "../../../../../components/Modal"; import Text from "../../../../../components/Text"; import UploadArea from "../../../../../components/UploadArea"; import {...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/programs/programs.ts
import { createSidebarPage } from "../create"; export const programs = createSidebarPage({ name: "Programs", icon: "program.png", keybind: "Ctrl+Shift+P", route: "/programs", });
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/programs/index.ts
export { programs } from "./programs";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/programs
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/programs/Component/Programs.tsx
import styled, { css } from "styled-components"; import FilterGroups from "../../../../components/FilterGroups"; import { FILTERS } from "../../../main/primary/Programs/filters"; const Programs = () => ( <Wrapper> <FilterGroups filters={FILTERS} /> </Wrapper> ); const Wrapper = styled.div` ${({ theme }) =>...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/programs
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/programs/Component/index.ts
export { default } from "./Programs";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials/index.ts
export { tutorials } from "./tutorials";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials/tutorials.ts
import TutorialsSkeleton from "./Component/TutorialsSkeleton"; import { createSidebarPage } from "../create"; export const tutorials = createSidebarPage({ name: "Tutorials", icon: "tutorials.webp", keybind: "Ctrl+Shift+X", route: "/tutorials", LoadingElement: TutorialsSkeleton, });
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials/Component/index.ts
export { default } from "./Tutorials";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials/Component/Tutorials.tsx
import { FC, useState } from "react"; import styled, { css, keyframes } from "styled-components"; import TutorialsSkeleton from "./TutorialsSkeleton"; import Text from "../../../../components/Text"; import { PgCommon, PgTutorial, TutorialData, TutorialMetadata, } from "../../../../utils/pg"; import { useAsyncE...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials
solana_public_repos/solana-playground/solana-playground/client/src/views/sidebar/tutorials/Component/TutorialsSkeleton.tsx
import styled from "styled-components"; import { Skeleton } from "../../../../components/Loading"; const TutorialsSkeleton = () => ( <Wrapper> <OngoingWrapper> <Heading> <Skeleton width="7rem" /> </Heading> <Tutorial> <Skeleton height="2.625rem" /> </Tutorial> </Ongoi...
0
solana_public_repos/solana-playground/solana-playground/client/src/views
solana_public_repos/solana-playground/solana-playground/client/src/views/main/index.ts
export { MAIN_SECONDARY } from "./secondary";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/NotFound/index.ts
export { NotFound } from "./NotFound";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/NotFound/NotFound.tsx
import type { FC } from "react"; import styled from "styled-components"; import Button from "../../../../components/Button"; import Text from "../../../../components/Text"; import { Error } from "../../../../components/Icons"; import { PgRouter } from "../../../../utils/pg"; interface NotFoundProps { path: string; ...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Programs/filters.ts
import { PgFramework, TUTORIAL_CATEGORIES } from "../../../../utils/pg"; /** All program filters */ export const FILTERS = [ { param: "framework", filters: PgFramework.all.map((f) => f.name), }, { param: "categories", filters: TUTORIAL_CATEGORIES.filter((c) => c !== "Gaming"), }, ] as const;
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Programs/Programs.tsx
import { FC } from "react"; import styled, { css } from "styled-components"; import SearchBar from "../../../../components/SearchBar"; import Text from "../../../../components/Text"; import ProgramCard, { ProgramCardProps } from "./ProgramCard"; import { FILTERS } from "./filters"; import { Sad } from "../../../../com...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Programs/ProgramCard.tsx
import { FC } from "react"; import styled, { css } from "styled-components"; import Img from "../../../../components/Img"; import Link from "../../../../components/Link"; import Markdown from "../../../../components/Markdown"; import Tag from "../../../../components/Tag"; import Tooltip from "../../../../components/To...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Programs/index.ts
export { Programs } from "./Programs";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Tutorials/filters.ts
import { PgFramework, PgLanguage, TutorialLevel, TUTORIAL_LEVELS, } from "../../../../utils/pg"; /** All tutorial filters */ export const FILTERS = [ { param: "level", filters: TUTORIAL_LEVELS, sortFn: sortByLevel, }, { param: "framework", filters: PgFramework.all.map((f) => f.name), ...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Tutorials/FeaturedTutorial.tsx
import { FC } from "react"; import styled, { css } from "styled-components"; import Button from "../../../../components/Button"; import Img from "../../../../components/Img"; import TutorialDetails from "../../../../components/Tutorial/TutorialDetails"; import { PgTheme, PgTutorial, TutorialData } from "../../../../ut...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Tutorials/index.ts
export { Tutorials } from "./Tutorials";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Tutorials/Tutorials.tsx
import styled, { css } from "styled-components"; import FeaturedTutorial from "./FeaturedTutorial"; import TutorialCard from "./TutorialCard"; import FilterGroups from "../../../../components/FilterGroups"; import Link from "../../../../components/Link"; import SearchBar from "../../../../components/SearchBar"; import...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/Tutorials/TutorialCard.tsx
import { FC } from "react"; import styled, { css } from "styled-components"; import Img from "../../../../components/Img"; import Tag from "../../../../components/Tag"; import { PgTheme, PgTutorial, TutorialData } from "../../../../utils/pg"; const TutorialCard: FC<TutorialData> = ({ name, description, thumbnai...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/EditorWithTabs/EditorWithTabs.tsx
import styled from "styled-components"; import { Editor } from "../../../../components/Editor"; import { Tabs } from "../../../../components/Tabs"; export const EditorWithTabs = () => ( <Wrapper> <Tabs /> <Editor /> </Wrapper> ); const Wrapper = styled.div` display: flex; flex-direction: column; wi...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/primary/EditorWithTabs/index.ts
export { EditorWithTabs } from "./EditorWithTabs";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/secondary.ts
import { terminal } from "./terminal"; /** All secondary main view pages in order */ export const MAIN_SECONDARY = [terminal];
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/index.ts
export { MAIN_SECONDARY } from "./secondary";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/create.ts
import { CallableJSX, PgCommon, RequiredKey } from "../../../utils/pg"; /** Secondary main view page parameter */ type MainSecondaryPageParam<N extends string> = { /** Name of the page */ name: N; /** Title of the page, defaults to `name` */ title?: string; /** Keybind for the page */ keybind?: string; /...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/terminal/terminal.tsx
import { Clear } from "../../../../components/Icons"; import { PgTerminal } from "../../../../utils/pg"; import { createMainSecondaryPage } from "../create"; export const terminal = createMainSecondaryPage({ name: "Terminal", keybind: "Ctrl+`", getIsFocused: PgTerminal.isFocused, focus: PgTerminal.focus, act...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/terminal/index.ts
export { terminal } from "./terminal";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/terminal
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/terminal/Component/Terminal.tsx
import TerminalComponent from "../../../../../components/Terminal"; import { PgCommandManager } from "../../../../../utils/pg"; const Terminal = () => <TerminalComponent cmdManager={PgCommandManager} />; export default Terminal;
0
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/terminal
solana_public_repos/solana-playground/solana-playground/client/src/views/main/secondary/terminal/Component/index.ts
export { default } from "./Terminal";
0
solana_public_repos/solana-playground/solana-playground/client/src/views
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/bottom.ts
import { Address } from "./Address"; import { Balance } from "./Balance"; import { RpcEndpoint } from "./RpcEndpoint"; import { Wallet } from "./Wallet"; /** All bottom components in order */ export const BOTTOM = [Wallet, RpcEndpoint, Address, Balance];
0
solana_public_repos/solana-playground/solana-playground/client/src/views
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/index.ts
export { BOTTOM } from "./bottom";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/Balance/Balance.tsx
import styled, { css } from "styled-components"; import Tooltip from "../../../components/Tooltip"; import { useBalance } from "../../../hooks"; import { PgTheme } from "../../../utils/pg"; export const Balance = () => { const { balance } = useBalance(); if (balance === undefined || balance === null) return null...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/Balance/index.ts
export { Balance } from "./Balance";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/RpcEndpoint/index.ts
export { RpcEndpoint } from "./RpcEndpoint";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/RpcEndpoint/RpcEndpoint.tsx
import { useMemo } from "react"; import styled, { css } from "styled-components"; import Tooltip from "../../../components/Tooltip"; import { NETWORKS, NetworkName } from "../../../constants"; import { useConnection, useWallet } from "../../../hooks"; import { PgTheme } from "../../../utils/pg"; export const RpcEndpo...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/Address/Address.tsx
import styled, { css } from "styled-components"; import Link from "../../../components/Link"; import Tooltip from "../../../components/Tooltip"; import { useBlockExplorer, useWallet } from "../../../hooks"; import { PgTheme } from "../../../utils/pg"; export const Address = () => { const blockExplorer = useBlockExp...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/Address/index.ts
export { Address } from "./Address";
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/Wallet/Wallet.tsx
import { useCallback } from "react"; import styled, { css } from "styled-components"; import Button from "../../../components/Button"; import Tooltip from "../../../components/Tooltip"; import { useWallet } from "../../../hooks"; import { PgCommand, PgTheme } from "../../../utils/pg"; export const Wallet = () => { ...
0
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom
solana_public_repos/solana-playground/solana-playground/client/src/views/bottom/Wallet/index.ts
export { Wallet } from "./Wallet";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/index.ts
export { default } from "./IDE";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/IDE.tsx
import Panels from "./Panels"; import Global from "./Global"; import Helpers from "./Helpers"; import Delayed from "../../components/Delayed"; import FadeIn from "../../components/FadeIn"; const IDE = () => ( <FadeIn> <Panels /> <Global /> <Delayed delay={1000}> <Helpers /> </Delayed> </FadeI...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Panels.tsx
import styled from "styled-components"; import Bottom from "./Bottom"; import Main from "./Main"; import Side from "./Side"; import Delayed from "../../../components/Delayed"; import ModalBackdrop from "../../../components/ModalBackdrop"; import Toast from "../../../components/Toast"; import Wallet from "../../../comp...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/index.ts
export { default } from "./Panels";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Side.tsx
import { useState, useRef, useEffect, useMemo } from "react"; import styled, { css } from "styled-components"; import Left from "./Left"; import Right from "./Right"; import { EventName } from "../../../../constants"; import { PgCommon, PgRouter, PgTheme, PgView } from "../../../../utils/pg"; import { useKeybind, useS...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/index.ts
export { default } from "./Side";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Right/index.ts
export { default } from "./Right";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Right/Right.tsx
import { FC, Dispatch, SetStateAction, useEffect, useState, useCallback, } from "react"; import styled, { css } from "styled-components"; import ErrorBoundary from "../../../../../components/ErrorBoundary"; import Resizable from "../../../../../components/Resizable"; import { Wormhole } from "../../../../....
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Right/useResize.tsx
import { Dispatch, SetStateAction, useCallback, useEffect, useState, } from "react"; import { Id } from "../../../../../constants"; export const useResize = (setWidth: Dispatch<SetStateAction<number>>) => { const [windowHeight, setWindowHeight] = useState(getWindowHeight); // Resize the sidebar on wind...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Left/Settings.tsx
import { FC } from "react"; import styled, { css } from "styled-components"; import Tooltip from "../../../../../components/Tooltip"; import { SETTINGS, Setting as SettingType } from "../../../../../settings"; import { PgTheme } from "../../../../../utils/pg"; const Settings = () => ( <Wrapper> {SETTINGS.map((s...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Left/Left.tsx
import { FC, SetStateAction, Dispatch, MutableRefObject, useEffect, } from "react"; import styled, { css, useTheme } from "styled-components"; import SidebarButton from "./SidebarButton"; import Settings from "./Settings"; import Link from "../../../../../components/Link"; import Popover from "../../../../.....
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Left/SidebarButton.tsx
import { ComponentPropsWithoutRef, FC, ReactNode } from "react"; import styled, { css } from "styled-components"; import Img from "../../../../../components/Img"; import Tooltip from "../../../../../components/Tooltip"; import { ClassName } from "../../../../../constants"; import { PgTheme } from "../../../../../utils...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Side/Left/index.ts
export { default } from "./Left"; export * from "./Left";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main/Main.tsx
import styled, { css } from "styled-components"; import Primary from "./Primary"; import Secondary from "./Secondary"; import { PgTheme } from "../../../../utils/pg"; const Main = () => ( <Wrapper> <Primary /> <Secondary /> </Wrapper> ); const Wrapper = styled.div` ${({ theme }) => css` ${PgTheme.c...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main/index.ts
export { default } from "./Main";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main/Primary/Primary.tsx
import { useCallback, useState } from "react"; import styled, { css, keyframes } from "styled-components"; import ErrorBoundary from "../../../../../components/ErrorBoundary"; import { SpinnerWithBg } from "../../../../../components/Loading"; import { EventName } from "../../../../../constants"; import { CallableJSX...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main/Primary/index.ts
export { default } from "./Primary";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main/Secondary/Secondary.tsx
import { SetStateAction, useCallback, useEffect, useMemo, useRef, useState, } from "react"; import styled, { css } from "styled-components"; import Button from "../../../../../components/Button"; import ErrorBoundary from "../../../../../components/ErrorBoundary"; import ProgressBar from "../../../../../co...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Main/Secondary/index.ts
export { default } from "./Secondary";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Bottom/Bottom.tsx
import styled, { css } from "styled-components"; import Delayed from "../../../../components/Delayed"; import ErrorBoundary from "../../../../components/ErrorBoundary"; import Tooltip from "../../../../components/Tooltip"; import { Id } from "../../../../constants"; import { BOTTOM } from "../../../../views"; import {...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Panels/Bottom/index.ts
export { default } from "./Bottom";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/index.ts
export { default } from "./Helpers";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/Helpers.tsx
import { useHelpConnection } from "./connection"; const Helpers = () => { useHelpConnection(); return null; }; export default Helpers;
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection/index.ts
export { useHelpConnection } from "./useHelpConnection";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection/useHelpConnection.tsx
import { useEffect } from "react"; import { Endpoint } from "../../../../constants"; import { PgCommon, PgConnection, PgView, PgWallet, SyncOrAsync, } from "../../../../utils/pg"; /** Show helpers when there is a connection error with the current endpoint. */ export const useHelpConnection = () => { useEf...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection/Local/Local.tsx
import { useEffect } from "react"; import styled, { css } from "styled-components"; import Foldable from "../../../../../components/Foldable"; import Markdown from "../../../../../components/Markdown"; import Modal from "../../../../../components/Modal"; import Text from "../../../../../components/Text"; import { Info...
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection/Local/index.ts
export { Local } from "./Local";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection/NonLocal/NonLocal.tsx
import { FC, useEffect } from "react"; import styled, { css } from "styled-components"; import Button from "../../../../../components/Button"; import { Endpoint } from "../../../../../constants"; import { PgCommand, PgConnection, PgView } from "../../../../../utils/pg"; import type { ToastChildProps } from "../../../....
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Helpers/connection/NonLocal/index.ts
export { NonLocal } from "./NonLocal";
0
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide
solana_public_repos/solana-playground/solana-playground/client/src/pages/ide/Global/Global.tsx
import { useEffect } from "react"; import { useLocation, useNavigate } from "react-router-dom"; import { EventName } from "../../../constants"; import { BLOCK_EXPLORERS } from "../../../block-explorers"; import { COMMANDS } from "../../../commands"; import { FRAMEWORKS } from "../../../frameworks"; import { LANGUAGES ...
0