Commit a6cb3b31 authored by gxkai's avatar gxkai

chore: 精简功能

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