Commit a6cb3b31 authored by gxkai's avatar gxkai

chore: 精简功能

parent f11c4605
...@@ -480,7 +480,8 @@ class App { ...@@ -480,7 +480,8 @@ class App {
await appManager.activatePlugin(['sidePanel']) // activating host plugin separately await appManager.activatePlugin(['sidePanel']) // activating host plugin separately
await appManager.activatePlugin(['home']) await appManager.activatePlugin(['home'])
await appManager.activatePlugin(['settings']) await appManager.activatePlugin(['settings'])
await appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'contextualListener', 'terminal', 'blockchain', 'fetchAndCompile', 'contentImport']) await appManager.activatePlugin(['pluginManager'])
await appManager.activatePlugin(['hiddenPanel', 'contextualListener', 'terminal', 'blockchain', 'fetchAndCompile', 'contentImport'])
appManager.on('filePanel', 'workspaceInitializationCompleted', async () => { appManager.on('filePanel', 'workspaceInitializationCompleted', async () => {
await appManager.registerContextMenuItems() await appManager.registerContextMenuItems()
...@@ -517,7 +518,10 @@ class App { ...@@ -517,7 +518,10 @@ class App {
}).catch(console.error) }).catch(console.error)
} else { } else {
// activate solidity plugin // activate solidity plugin
appManager.activatePlugin(['solidity', 'udapp','debugger']) appManager.activatePlugin(['udapp'])
appManager.activatePlugin(['solidity'])
// appManager.activatePlugin(['optimism-compiler'])
appManager.activatePlugin(['debugger'])
} }
}) })
......
...@@ -467,7 +467,7 @@ export class LandingPage extends ViewPlugin { ...@@ -467,7 +467,7 @@ export class LandingPage extends ViewPlugin {
// to retrieve medium posts // to retrieve medium posts
document.body.appendChild(yo`<script src="https://www.twilik.com/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`) document.body.appendChild(yo`<script src="https://www.twilik.com/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`)
const container = yo` const container = yo`
<div></div> <div class='p-4'>Welcome to Baas IDE</div>
` `
return container return container
......
...@@ -135,26 +135,26 @@ export class RemixAppManager extends PluginManager { ...@@ -135,26 +135,26 @@ export class RemixAppManager extends PluginManager {
} }
async registerContextMenuItems () { async registerContextMenuItems () {
await this.call('filePanel', 'registerContextMenuItem', { // await this.call('filePanel', 'registerContextMenuItem', {
id: 'flattener', // id: 'flattener',
name: 'flattenFileCustomAction', // name: 'flattenFileCustomAction',
label: 'Flatten', // label: 'Flatten',
type: [], // type: [],
extension: ['.sol'], // extension: ['.sol'],
path: [], // path: [],
pattern: [], // pattern: [],
sticky: true // sticky: true
}) // })
await this.call('filePanel', 'registerContextMenuItem', { // await this.call('filePanel', 'registerContextMenuItem', {
id: 'optimism-compiler', // id: 'optimism-compiler',
name: 'compileCustomAction', // name: 'compileCustomAction',
label: 'Compile with Optimism', // label: 'Compile with Optimism',
type: [], // type: [],
extension: ['.sol'], // extension: ['.sol'],
path: [], // path: [],
pattern: [], // pattern: [],
sticky: true // sticky: true
}) // })
} }
} }
......
...@@ -9,7 +9,7 @@ export class WalkthroughService { ...@@ -9,7 +9,7 @@ export class WalkthroughService {
if (!localStorage.getItem('hadTour_initial')) { if (!localStorage.getItem('hadTour_initial')) {
introJs().setOptions({ introJs().setOptions({
steps: [{ steps: [{
title: 'Welcome to Remix IDE', title: 'Welcome to Baas IDE',
intro: 'Click to launch the Home tab that contains links, tips, and shortcuts..', intro: 'Click to launch the Home tab that contains links, tips, and shortcuts..',
element: document.querySelector('#verticalIconsHomeIcon'), element: document.querySelector('#verticalIconsHomeIcon'),
tooltipClass: 'bg-light text-dark', tooltipClass: 'bg-light text-dark',
...@@ -22,13 +22,13 @@ export class WalkthroughService { ...@@ -22,13 +22,13 @@ export class WalkthroughService {
tooltipClass: 'bg-light text-dark', tooltipClass: 'bg-light text-dark',
position: 'right' position: 'right'
}, },
{ // {
title: 'Deploy your contract', // title: 'Deploy your contract',
element: document.querySelector('#runIcons'), // element: document.querySelector('#runIcons'),
intro: 'Choose a chain, deploy a contract and play with your functions.', // intro: 'Choose a chain, deploy a contract and play with your functions.',
tooltipClass: 'bg-light text-dark', // tooltipClass: 'bg-light text-dark',
position: 'right' // position: 'right'
} // }
] ]
}).onafterchange((targetElement) => { }).onafterchange((targetElement) => {
const header = document.getElementsByClassName('introjs-tooltip-header')[0] const header = document.getElementsByClassName('introjs-tooltip-header')[0]
......
...@@ -31,15 +31,15 @@ function ActivePluginCard ({ ...@@ -31,15 +31,15 @@ function ActivePluginCard ({
: null : null
} }
</div> </div>
{<button {/*{<button*/}
onClick={() => { {/* onClick={() => {*/}
deactivatePlugin(profile.name) {/* deactivatePlugin(profile.name)*/}
} } {/* } }*/}
className="btn btn-secondary btn-sm" {/* className="btn btn-secondary btn-sm"*/}
data-id={`pluginManagerComponentDeactivateButton${profile.name}`} {/* data-id={`pluginManagerComponentDeactivateButton${profile.name}`}*/}
> {/*>*/}
{buttonText} {/* {buttonText}*/}
</button>} {/*</button>}*/}
</h6> </h6>
</div> </div>
<div className="remixui_description d-flex text-body plugin-text mb-2"> <div className="remixui_description d-flex text-body plugin-text mb-2">
......
...@@ -47,9 +47,9 @@ function RootView ({ pluginComponent, pluginManagerSettings, children }: RootVie ...@@ -47,9 +47,9 @@ function RootView ({ pluginComponent, pluginManagerSettings, children }: RootVie
placeholder="Search" placeholder="Search"
data-id="pluginManagerComponentSearchInput" data-id="pluginManagerComponentSearchInput"
/> />
<button onClick={openModal} className="remixui_pluginSearchButton btn bg-transparent text-dark border-0 mt-2 text-underline" data-id="pluginManagerComponentPluginSearchButton"> {/*<button onClick={openModal} className="remixui_pluginSearchButton btn bg-transparent text-dark border-0 mt-2 text-underline" data-id="pluginManagerComponentPluginSearchButton">*/}
Connect to a Local Plugin {/* Connect to a Local Plugin*/}
</button> {/*</button>*/}
</header> </header>
{children} {children}
<PermisssionsSettings pluginSettings={pluginManagerSettings}/> <PermisssionsSettings pluginSettings={pluginManagerSettings}/>
......
...@@ -18,11 +18,11 @@ export const RemixUiPluginManager = ({ pluginComponent, pluginManagerSettings }: ...@@ -18,11 +18,11 @@ export const RemixUiPluginManager = ({ pluginComponent, pluginManagerSettings }:
setActiveProfiles={setActiveProfiles} setActiveProfiles={setActiveProfiles}
activeProfiles={activeProfiles} activeProfiles={activeProfiles}
/> />
<InactivePluginCardContainer {/*<InactivePluginCardContainer*/}
pluginComponent={pluginComponent} {/* pluginComponent={pluginComponent}*/}
setInactiveProfiles={setinactiveProfiles} {/* setInactiveProfiles={setinactiveProfiles}*/}
inactiveProfiles={inactiveProfiles} {/* inactiveProfiles={inactiveProfiles}*/}
/> {/*/>*/}
</section> </section>
</RootView> </RootView>
) )
......
...@@ -172,7 +172,9 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => { ...@@ -172,7 +172,9 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
<div> <div>
{state.message ? <Toaster message= {state.message}/> : null} {state.message ? <Toaster message= {state.message}/> : null}
{generalConfig()} {generalConfig()}
{gistToken()} {
//gistToken()
}
<div className="border-top"> <div className="border-top">
<div className="card-body pt-3 pb-2"> <div className="card-body pt-3 pb-2">
<h6 className="card-title">Themes</h6> <h6 className="card-title">Themes</h6>
......
...@@ -24,19 +24,20 @@ export const contextMenuActions: MenuItems = [{ ...@@ -24,19 +24,20 @@ export const contextMenuActions: MenuItems = [{
type: ['file', 'folder', 'gist'], type: ['file', 'folder', 'gist'],
multiselect: false, multiselect: false,
label: '' label: ''
}, {
id: 'run',
name: 'Run',
extension: ['.js'],
multiselect: false,
label: ''
}, {
id: 'pushChangesToGist',
name: 'Push changes to gist',
type: ['gist'],
multiselect: false,
label: ''
}, },
// {
// id: 'run',
// name: 'Run',
// extension: ['.js'],
// multiselect: false,
// label: ''
// }, {
// id: 'pushChangesToGist',
// name: 'Push changes to gist',
// type: ['gist'],
// multiselect: false,
// label: ''
// },
// { // {
// id: 'publishFolderToGist', // id: 'publishFolderToGist',
// name: 'Publish folder to gist', // name: 'Publish folder to gist',
...@@ -44,13 +45,14 @@ export const contextMenuActions: MenuItems = [{ ...@@ -44,13 +45,14 @@ export const contextMenuActions: MenuItems = [{
// multiselect: false, // multiselect: false,
// label: '' // label: ''
// }, // },
{ // {
id: 'publishFileToGist', // id: 'publishFileToGist',
name: 'Publish file to gist', // name: 'Publish file to gist',
type: ['file'], // type: ['file'],
multiselect: false, // multiselect: false,
label: '' // label: ''
}, { // },
{
id: 'copy', id: 'copy',
name: 'Copy', name: 'Copy',
type: ['folder', 'file'], type: ['folder', 'file'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment