mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fix build
This commit is contained in:
parent
ecbfda1993
commit
74991bdefe
10 changed files with 66 additions and 11 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React, { useState, useEffect } from "react"
|
||||
import { RxGithubLogo } from "react-icons/rx"
|
||||
import { VscVscode } from "react-icons/vsc"
|
||||
import { GITHUB_MAIN_REPO_URL, VSCODE_MARKETPLACE_URL } from "../../constants"
|
||||
import { GITHUB_MAIN_REPO_URL, VSCODE_MARKETPLACE_URL } from "@site/src/constants"
|
||||
import styles from "./styles.module.css"
|
||||
|
||||
// VS Code API types
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from "react"
|
||||
import { FaReddit, FaDiscord } from "react-icons/fa6"
|
||||
import { REDDIT_URL, DISCORD_URL } from "../../constants"
|
||||
import { REDDIT_URL, DISCORD_URL } from "@site/src/constants"
|
||||
import styles from "./styles.module.css"
|
||||
|
||||
export default function NavbarSocialIcons(): JSX.Element {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from "react"
|
||||
import videos from "../../docs/tutorial-videos.json"
|
||||
import videos from "@site/docs/tutorial-videos.json"
|
||||
|
||||
interface Video {
|
||||
id: string
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import Link from "@docusaurus/Link"
|
|||
import { translate } from "@docusaurus/Translate"
|
||||
import HomeBreadcrumbItem from "@theme/DocBreadcrumbs/Items/Home"
|
||||
import DocBreadcrumbsStructuredData from "@theme/DocBreadcrumbs/StructuredData"
|
||||
import CopyPageContent from "../../components/CopyPageURL"
|
||||
import CopyPageContent from "@site/src/components/CopyPageURL"
|
||||
|
||||
import styles from "./styles.module.css"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { type ReactNode } from "react"
|
||||
import clsx from "clsx"
|
||||
import { ThemeClassNames } from "@docusaurus/theme-common"
|
||||
import SocialIcons from "../../../components/SocialIcons"
|
||||
import SocialIcons from "@site/src/components/SocialIcons"
|
||||
import type { Props } from "@theme/Footer/Layout"
|
||||
|
||||
export default function FooterLayout({ style, links, logo, copyright }: Props): ReactNode {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import MDXComponents from "@theme-original/MDXComponents"
|
||||
import Codicon from "../components/Codicon"
|
||||
import Codicon from "@site/src/components/Codicon"
|
||||
|
||||
export default {
|
||||
...MDXComponents,
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import SearchBar from "@theme/SearchBar"
|
|||
import NavbarMobileSidebarToggle from "@theme/Navbar/MobileSidebar/Toggle"
|
||||
import NavbarLogo from "@theme/Navbar/Logo"
|
||||
import NavbarSearch from "@theme/Navbar/Search"
|
||||
import GitHubInstallButtons from "../../../components/GitHubInstallButtons"
|
||||
import NavbarSocialIcons from "../../../components/NavbarSocialIcons"
|
||||
import GitHubInstallButtons from "@site/src/components/GitHubInstallButtons"
|
||||
import NavbarSocialIcons from "@site/src/components/NavbarSocialIcons"
|
||||
|
||||
import styles from "./styles.module.css"
|
||||
|
||||
|
|
|
|||
52
apps/docs/src/types/docusaurus.d.ts
vendored
Normal file
52
apps/docs/src/types/docusaurus.d.ts
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
declare module "@site/src/constants" {
|
||||
export const GITHUB_REPO_URL: string
|
||||
export const GITHUB_ISSUES_URL: string
|
||||
export const GITHUB_NEW_ISSUE_URL: string
|
||||
export const DISCORD_URL: string
|
||||
export const REDDIT_URL: string
|
||||
export const TWITTER_URL: string
|
||||
export const BLUESKY_URL: string
|
||||
export const LINKEDIN_URL: string
|
||||
export const TIKTOK_URL: string
|
||||
export const GITHUB_MAIN_REPO_URL: string
|
||||
export const GITHUB_ISSUES_MAIN_URL: string
|
||||
export const GITHUB_FEATURES_URL: string
|
||||
export const VSCODE_MARKETPLACE_URL: string
|
||||
export const MAC_DIRECT_DOWNLOAD_URL: string
|
||||
export const WINDOWS_DIRECT_DOWNLOAD_URL: string
|
||||
export const LINUX_DIRECT_DOWNLOAD_URL: string
|
||||
}
|
||||
|
||||
declare module "@site/src/components/Codicon" {
|
||||
const Codicon: React.FC<{ name: string }>
|
||||
export default Codicon
|
||||
}
|
||||
|
||||
declare module "@site/src/components/CopyPageURL" {
|
||||
const CopyPageURL: React.FC
|
||||
export default CopyPageURL
|
||||
}
|
||||
|
||||
declare module "@site/src/components/SocialIcons" {
|
||||
const SocialIcons: React.FC
|
||||
export default SocialIcons
|
||||
}
|
||||
|
||||
declare module "@site/src/components/GitHubInstallButtons" {
|
||||
const GitHubInstallButtons: React.FC
|
||||
export default GitHubInstallButtons
|
||||
}
|
||||
|
||||
declare module "@site/src/components/NavbarSocialIcons" {
|
||||
const NavbarSocialIcons: React.FC
|
||||
export default NavbarSocialIcons
|
||||
}
|
||||
|
||||
declare module "@site/docs/tutorial-videos.json" {
|
||||
interface Video {
|
||||
id: string
|
||||
title: string
|
||||
}
|
||||
const videos: { videos: Video[] }
|
||||
export default videos
|
||||
}
|
||||
|
|
@ -21,6 +21,10 @@
|
|||
},
|
||||
"packages/{build,cloud,evals,ipc,telemetry,types}": {
|
||||
"project": ["src/**/*.ts"]
|
||||
},
|
||||
"apps/docs": {
|
||||
"entry": ["src/**/*.{ts,tsx}"],
|
||||
"project": ["src/**/*.{ts,tsx}"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,9 @@ import type { RooCodeSettings } from "./global-settings.js"
|
|||
import type { ProviderSettingsEntry, ProviderSettings } from "./provider-settings.js"
|
||||
import type { IpcMessage, IpcServerEvents } from "./ipc.js"
|
||||
|
||||
// Ensure all properties are required for EventEmitter compatibility
|
||||
export type RooCodeAPIEvents = Required<RooCodeEvents>
|
||||
export type RooCodeAPIEvents = RooCodeEvents
|
||||
|
||||
export interface RooCodeAPI extends EventEmitter<RooCodeAPIEvents> {
|
||||
export interface RooCodeAPI extends EventEmitter<RooCodeAPIEvents & Record<string, unknown[]>> {
|
||||
/**
|
||||
* Starts a new task with an optional initial message and images.
|
||||
* @param task Optional initial task message.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue