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
5836abdd
Commit
5836abdd
authored
Jul 05, 2021
by
joseph izang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basic react component to show in plugin manager
parent
e95ec46b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
89 additions
and
16 deletions
+89
-16
plugin-manager-component.js
.../remix-ide/src/app/components/plugin-manager-component.js
+0
-0
plugin-manager-settings.js
apps/remix-ide/src/app/components/plugin-manager-settings.js
+2
-2
index.ts
libs/remix-ui/plugin-manager/src/index.ts
+1
-1
pluginManagerProvider.tsx
...ugin-manager/src/lib/components/pluginManagerProvider.tsx
+36
-0
remix-ui-plugin-manager.css
...mix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.css
+50
-11
remix-ui-plugin-manager.tsx
...mix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
+0
-2
No files found.
apps/remix-ide/src/app/components/plugin-manager-component.js
View file @
5836abdd
This diff is collapsed.
Click to expand it.
apps/remix-ide/src/app/components/plugin-manager-settings.js
View file @
5836abdd
...
@@ -2,8 +2,8 @@ const yo = require('yo-yo')
...
@@ -2,8 +2,8 @@ const yo = require('yo-yo')
const
csjs
=
require
(
'csjs-inject'
)
const
csjs
=
require
(
'csjs-inject'
)
const
modalDialog
=
require
(
'../ui/modaldialog'
)
const
modalDialog
=
require
(
'../ui/modaldialog'
)
const
css
=
csjs
`
const
css
=
csjs
`
.permissions {
.
remixui_
permissions {
position: sticky;
position: sticky;
bottom: 0;
bottom: 0;
display: flex;
display: flex;
...
...
libs/remix-ui/plugin-manager/src/index.ts
View file @
5836abdd
export
*
from
'./lib/remix-ui-plugin-manager'
;
export
*
from
'./lib/remix-ui-plugin-manager'
libs/remix-ui/plugin-manager/src/lib/components/pluginManagerProvider.tsx
0 → 100644
View file @
5836abdd
import
React
,
{
createContext
,
useState
}
from
'react'
import
{
Profile
}
from
'../../customTypes'
import
*
as
packageJson
from
'../../../../../../package.json'
// export interface RemixUiPluginManagerProps {
// activatePlugin: (name: string) => void
// deActivatePlugin: (name: string) => void
// isActive: () => void
// openLocalPlugin: () => Promise<void>
// filterPlugins: () => void
// reRender: () => void
// profile: Profile
// }
export
const
PluginManagerContext
=
createContext
({})
function
PluginManagerContextProvider
({
children
})
{
const
[
profile
]
=
useState
<
Profile
>
({
name
:
'pluginManager'
,
displayName
:
'Plugin manager'
,
methods
:
[],
events
:
[],
icon
:
'assets/img/pluginManager.webp'
,
description
:
'Start/stop services, modules and plugins'
,
kind
:
'settings'
,
location
:
'sidePanel'
,
documentation
:
'https://remix-ide.readthedocs.io/en/latest/plugin_manager.html'
,
version
:
packageJson
.
version
})
return
(
<
PluginManagerContext
.
Provider
value=
{
profile
}
>
{
children
}
</
PluginManagerContext
.
Provider
>
)
}
export
default
PluginManagerContextProvider
libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.css
View file @
5836abdd
.pluginSearch
{
.
remixui_
pluginSearch
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
...
@@ -9,42 +9,42 @@
...
@@ -9,42 +9,42 @@
z-index
:
2
;
z-index
:
2
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
}
}
.pluginSearchInput
{
.
remixui_
pluginSearchInput
{
height
:
38px
;
height
:
38px
;
}
}
.pluginSearchButton
{
.
remixui_
pluginSearchButton
{
font-size
:
13px
;
font-size
:
13px
;
}
}
.displayName
{
.
remixui_
displayName
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.pluginIcon
{
.
remixui_
pluginIcon
{
height
:
0.7rem
;
height
:
0.7rem
;
width
:
0.7rem
;
width
:
0.7rem
;
filter
:
invert
(
0.5
);
filter
:
invert
(
0.5
);
}
}
.description
{
.
remixui_
description
{
font-size
:
13px
;
font-size
:
13px
;
line-height
:
18px
;
line-height
:
18px
;
}
}
.descriptiontext
{
.
remixui_
descriptiontext
{
display
:
block
;
display
:
block
;
}
}
.descriptiontext
:first-letter
{
.
remixui_
descriptiontext
:first-letter
{
text-transform
:
uppercase
;
text-transform
:
uppercase
;
}
}
.row
{
.r
emixui_r
ow
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
}
}
.isStuck
{
.
remixui_
isStuck
{
background-color
:
var
(
--primary
);
background-color
:
var
(
--primary
);
/* color: */
/* color: */
}
}
.versionWarning
{
.
remixui_
versionWarning
{
padding
:
4px
;
padding
:
4px
;
margin
:
0
8px
;
margin
:
0
8px
;
font-weight
:
700
;
font-weight
:
700
;
...
@@ -55,3 +55,42 @@
...
@@ -55,3 +55,42 @@
border
:
1px
solid
;
border
:
1px
solid
;
border-radius
:
2px
;
border-radius
:
2px
;
}
}
.remixui_permissions
{
position
:
sticky
;
bottom
:
0
;
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
padding
:
5px
20px
;
}
.remixui_permissions
button
{
padding
:
2px
5px
;
cursor
:
pointer
;
}
.remixui_permissionForm
h4
{
font-size
:
1.3rem
;
text-align
:
center
;
}
.remixui_permissionForm
h6
{
font-size
:
1.1rem
;
}
.remixui_permissionForm
hr
{
width
:
80%
;
}
.remixui_permissionKey
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.remixui_permissionKey
i
{
cursor
:
pointer
;
}
.remixui_checkbox
{
display
:
flex
;
align-items
:
center
;
}
.remixui_checkbox
label
{
margin
:
0
;
font-size
:
1rem
;
}
libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
View file @
5836abdd
...
@@ -20,5 +20,3 @@ export const RemixUiPluginManager = (props: RemixUiPluginManagerProps) => {
...
@@ -20,5 +20,3 @@ export const RemixUiPluginManager = (props: RemixUiPluginManagerProps) => {
</
div
>
</
div
>
)
)
}
}
export
default
RemixUiPluginManager
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