parent
3455f44cf7
commit
e3ba57fccd
@ -0,0 +1,21 @@ |
|||||||
|
import { ElectronPlugin } from '@remixproject/engine-electron' |
||||||
|
|
||||||
|
const desktop_profile = { |
||||||
|
name: 'remixAID', |
||||||
|
displayName: 'RemixAI Desktop', |
||||||
|
maintainedBy: 'Remix', |
||||||
|
description: 'RemixAI provides AI services to Remix IDE Desktop.', |
||||||
|
methods: [''], |
||||||
|
} |
||||||
|
|
||||||
|
export class remixAIDesktopPlugin extends ElectronPlugin { |
||||||
|
constructor() { |
||||||
|
console.log('remixAIDesktopPlugin') |
||||||
|
super(desktop_profile) |
||||||
|
} |
||||||
|
|
||||||
|
onActivation(): void { |
||||||
|
this.on('remixAI', 'enabled', () => {console.log('someone enable the remixAI desktop plugin')} ) |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
import * as packageJson from '../../../../../package.json' |
||||||
|
import { ViewPlugin } from '@remixproject/engine-web' |
||||||
|
import { Plugin } from '@remixproject/engine'; |
||||||
|
import { RemixAITab } from '@remix-ui/remix-ai' |
||||||
|
import React from 'react'; |
||||||
|
|
||||||
|
const profile = { |
||||||
|
name: 'remixAI', |
||||||
|
displayName: 'Remix AI', |
||||||
|
methods: [''], |
||||||
|
events: [], |
||||||
|
icon: 'assets/img/remix-logo-blue.png', |
||||||
|
description: 'RemixAI provides AI services to Remix IDE.', |
||||||
|
kind: '', |
||||||
|
location: 'sidePanel', |
||||||
|
documentation: 'https://remix-ide.readthedocs.io/en/latest/remixai.html', |
||||||
|
version: packageJson.version, |
||||||
|
maintainedBy: 'Remix' |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
export class RemixAIPlugin extends ViewPlugin { |
||||||
|
constructor() { |
||||||
|
console.log('remixAIPlugin') |
||||||
|
super(profile) |
||||||
|
} |
||||||
|
|
||||||
|
render() { |
||||||
|
return ( |
||||||
|
<div id="remixAITab"> |
||||||
|
<RemixAITab plugin={this}></RemixAITab> |
||||||
|
</div> |
||||||
|
) |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue