Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
a6cb3b31
Commit
a6cb3b31
authored
Nov 11, 2021
by
gxkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 精简功能
parent
f11c4605
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
76 additions
and
68 deletions
+76
-68
app.js
apps/remix-ide/src/app.js
+6
-2
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+1
-1
remixAppManager.js
apps/remix-ide/src/remixAppManager.js
+20
-20
walkthroughService.js
apps/remix-ide/src/walkthroughService.js
+8
-8
ActivePluginCard.tsx
...ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
+9
-9
rootView.tsx
libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx
+3
-3
remix-ui-plugin-manager.tsx
...mix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
+5
-5
remix-ui-settings.tsx
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
+3
-1
index.ts
libs/remix-ui/workspace/src/lib/utils/index.ts
+21
-19
No files found.
apps/remix-ide/src/app.js
View file @
a6cb3b31
...
...
@@ -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'
])
}
})
...
...
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
a6cb3b31
...
...
@@ -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
...
...
apps/remix-ide/src/remixAppManager.js
View file @
a6cb3b31
...
...
@@ -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
//
})
}
}
...
...
apps/remix-ide/src/walkthroughService.js
View file @
a6cb3b31
...
...
@@ -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
]
...
...
libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
View file @
a6cb3b31
...
...
@@ -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"
>
...
...
libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx
View file @
a6cb3b31
...
...
@@ -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
}
/>
...
...
libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
View file @
a6cb3b31
...
...
@@ -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
>
)
...
...
libs/remix-ui/settings/src/lib/remix-ui-settings.tsx
View file @
a6cb3b31
...
...
@@ -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
>
...
...
libs/remix-ui/workspace/src/lib/utils/index.ts
View file @
a6cb3b31
...
...
@@ -24,33 +24,35 @@ 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',
// type: ['folder'],
// 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'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment