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
969a21db
Commit
969a21db
authored
Aug 12, 2021
by
lianahus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linter
parent
ebbebb41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
plugin-manager-component.js
.../remix-ide/src/app/components/plugin-manager-component.js
+7
-7
No files found.
apps/remix-ide/src/app/components/plugin-manager-component.js
View file @
969a21db
...
...
@@ -138,17 +138,17 @@ class PluginManagerComponent extends ViewPlugin {
})
}
activateP
(
name
)
{
activateP
(
name
)
{
this
.
appManager
.
activatePlugin
(
name
)
_paq
.
push
([
'trackEvent'
,
'manager'
,
'activate'
,
name
])
}
deactivateP
(
name
)
{
deactivateP
(
name
)
{
this
.
call
(
'manager'
,
'deactivatePlugin'
,
name
)
_paq
.
push
([
'trackEvent'
,
'manager'
,
'deactivate'
,
name
])
}
renderItem
(
profile
)
{
renderItem
(
profile
)
{
const
displayName
=
(
profile
.
displayName
)
?
profile
.
displayName
:
profile
.
name
const
doclink
=
profile
.
documentation
?
yo
`<a href="
${
profile
.
documentation
}
" class="px-1" title="link to documentation" target="_blank"><i aria-hidden="true" class="fas fa-book"></i></a>`
:
yo
``
...
...
@@ -207,7 +207,7 @@ class PluginManagerComponent extends ViewPlugin {
/**
* Add a local plugin to the list of plugins
*/
async
openLocalPlugin
()
{
async
openLocalPlugin
()
{
try
{
const
profile
=
await
this
.
localPlugin
.
open
(
this
.
appManager
.
getAll
())
if
(
!
profile
)
return
...
...
@@ -224,7 +224,7 @@ class PluginManagerComponent extends ViewPlugin {
}
}
render
()
{
render
()
{
// Filtering helpers
const
isFiltered
=
(
profile
)
=>
(
profile
.
displayName
?
profile
.
displayName
:
profile
.
name
).
toLowerCase
().
includes
(
this
.
filter
)
const
isNotRequired
=
(
profile
)
=>
!
this
.
appManager
.
isRequired
(
profile
.
name
)
...
...
@@ -291,13 +291,13 @@ class PluginManagerComponent extends ViewPlugin {
return
rootView
}
reRender
()
{
reRender
()
{
if
(
this
.
views
.
root
)
{
yo
.
update
(
this
.
views
.
root
,
this
.
render
())
}
}
filterPlugins
({
target
})
{
filterPlugins
({
target
})
{
this
.
filter
=
target
.
value
.
toLowerCase
()
this
.
reRender
()
}
...
...
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