pull/5371/head
bunsenstraat 3 weeks ago committed by bunsenstraat
parent cbab1a11fb
commit ed896ee6fc
  1. 4
      apps/remix-ide/src/app/components/popup-panel.tsx
  2. 2
      libs/remix-ui/app/src/index.ts
  3. 2
      libs/remix-ui/helper/src/lib/components/PluginViewWrapper.tsx
  4. 4
      libs/remix-ui/remix-ai/src/lib/components/Default.tsx
  5. 2
      libs/remix-ui/statusbar/src/lib/components/aiStatus.tsx

@ -4,8 +4,8 @@ import { PluginRecord, RemixPluginPanel } from '@remix-ui/panel'
import packageJson from '../../../../../package.json'
import { PluginViewWrapper } from '@remix-ui/helper'
import { EventEmitter } from 'events'
import { AppState } from 'libs/remix-ui/app/src/lib/remix-app/interface'
import { AppAction, appActionTypes } from '@remix-ui/app'
import { AppAction, appActionTypes, AppState } from '@remix-ui/app'
const profile = {
name: 'popupPanel',

@ -2,6 +2,6 @@ export { default as RemixApp } from './lib/remix-app/remix-app'
export { dispatchModalContext, dispatchModalInterface, AppContext, appProviderContextType, appPlatformTypes, platformContext, onLineContext } from './lib/remix-app/context/context'
export { ModalProvider, useDialogDispatchers } from './lib/remix-app/context/provider'
export { AppModal } from './lib/remix-app/interface/index'
export { AlertModal } from './lib/remix-app/interface/index'
export { AlertModal, AppState } from './lib/remix-app/interface/index'
export { ModalTypes, AppModalCancelTypes } from './lib/remix-app/types/index'
export { AppAction, appActionTypes } from './lib/remix-app/actions/app'

@ -14,7 +14,7 @@ export const PluginViewWrapper = (props: IPluginViewWrapperProps) => {
if (props.plugin.setDispatch) {
props.plugin.setDispatch(setState)
}
if(props.plugin.setAppStateDispatch) {
if (props.plugin.setAppStateDispatch) {
props.plugin.setAppStateDispatch(appContext.appStateDispatch)
}
}, [])

@ -42,8 +42,8 @@ export const Default = (props) => {
};
ChatApi = useAiChatApi();
const conversationStarters: ConversationStarter[] = [
{ prompt: 'Explain what is a solidity contract!'},
{ prompt: 'Explain briefly the current file in Editor'}]
{ prompt: 'Explain what is a solidity contract!' },
{ prompt: 'Explain briefly the current file in Editor' }]
// Define initial messages
const initialMessages: ChatItem[] = [

@ -40,7 +40,7 @@ export default function AIStatus(props: AIStatusProps) {
tooltipText={copilotActive ? "Disable RemixAI Copilot" : "Enable RemixAI Copilot. Switch to .sol file to try it."}
>
<span
style={{cursor: 'pointer'}}
style={{ cursor: 'pointer' }}
className={"small mx-1 bg-info border-0 text-white " + (copilotActive === false ? "semi-bold" : "")}
onClick={async () => {
await props.plugin.call('settings' as any, 'updateCopilotChoice', !copilotActive)

Loading…
Cancel
Save