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
6b709555
Commit
6b709555
authored
Aug 24, 2021
by
joseph izang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix regressions commented upon by @ryestew.
parent
a8cc8f61
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
74 additions
and
55 deletions
+74
-55
plugin-manager-component.js
.../remix-ide/src/app/components/plugin-manager-component.js
+1
-0
plugin-manager-settings.js
apps/remix-ide/src/app/components/plugin-manager-settings.js
+8
-1
ActivePluginCardContainer.tsx
...-manager/src/lib/components/ActivePluginCardContainer.tsx
+1
-1
InactivePluginCardContainer.tsx
...anager/src/lib/components/InactivePluginCardContainer.tsx
+1
-1
LocalPluginForm.tsx
...-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
+1
-1
permissionsSettings.tsx
...plugin-manager/src/lib/components/permissionsSettings.tsx
+51
-24
rootView.tsx
libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx
+6
-5
remix-ui-plugin-manager.tsx
...mix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
+4
-4
types.d.ts
libs/remix-ui/plugin-manager/src/types.d.ts
+1
-0
query-params.d.ts
libs/remix-ui/plugin-manager/src/types/query-params.d.ts
+0
-7
registry.d.ts
libs/remix-ui/plugin-manager/src/types/registry.d.ts
+0
-10
tsconfig.lib.json
libs/remix-ui/plugin-manager/tsconfig.lib.json
+0
-1
No files found.
apps/remix-ide/src/app/components/plugin-manager-component.js
View file @
6b709555
...
@@ -90,6 +90,7 @@ class PluginManagerComponent extends ViewPlugin {
...
@@ -90,6 +90,7 @@ class PluginManagerComponent extends ViewPlugin {
ReactDOM
.
render
(
ReactDOM
.
render
(
<
RemixUiPluginManager
<
RemixUiPluginManager
pluginComponent
=
{
this
}
pluginComponent
=
{
this
}
pluginManagerSettings
=
{
this
.
pluginManagerSettings
}
/>
,
/>
,
this
.
htmlElement
)
this
.
htmlElement
)
}
}
...
...
apps/remix-ide/src/app/components/plugin-manager-settings.js
View file @
6b709555
...
@@ -44,9 +44,12 @@ const css = csjs`
...
@@ -44,9 +44,12 @@ const css = csjs`
`
`
export
class
PluginManagerSettings
{
export
class
PluginManagerSettings
{
openDialog
()
{
constructor
()
{
const
fromLocal
=
window
.
localStorage
.
getItem
(
'plugins/permissions'
)
const
fromLocal
=
window
.
localStorage
.
getItem
(
'plugins/permissions'
)
this
.
permissions
=
JSON
.
parse
(
fromLocal
||
'{}'
)
this
.
permissions
=
JSON
.
parse
(
fromLocal
||
'{}'
)
}
openDialog
()
{
this
.
currentSetting
=
this
.
settings
()
this
.
currentSetting
=
this
.
settings
()
modalDialog
(
'Plugin Manager Permissions'
,
this
.
currentSetting
,
modalDialog
(
'Plugin Manager Permissions'
,
this
.
currentSetting
,
{
fn
:
()
=>
this
.
onValidation
()
}
{
fn
:
()
=>
this
.
onValidation
()
}
...
@@ -60,6 +63,8 @@ export class PluginManagerSettings {
...
@@ -60,6 +63,8 @@ export class PluginManagerSettings {
/** Clear one permission from a plugin */
/** Clear one permission from a plugin */
clearPersmission
(
from
,
to
,
method
)
{
clearPersmission
(
from
,
to
,
method
)
{
// eslint-disable-next-line no-debugger
debugger
if
(
this
.
permissions
[
to
]
&&
this
.
permissions
[
to
][
method
])
{
if
(
this
.
permissions
[
to
]
&&
this
.
permissions
[
to
][
method
])
{
delete
this
.
permissions
[
to
][
method
][
from
]
delete
this
.
permissions
[
to
][
method
][
from
]
if
(
Object
.
keys
(
this
.
permissions
[
to
][
method
]).
length
===
0
)
{
if
(
Object
.
keys
(
this
.
permissions
[
to
][
method
]).
length
===
0
)
{
...
@@ -74,6 +79,8 @@ export class PluginManagerSettings {
...
@@ -74,6 +79,8 @@ export class PluginManagerSettings {
/** Clear all persmissions from a plugin */
/** Clear all persmissions from a plugin */
clearAllPersmission
(
to
)
{
clearAllPersmission
(
to
)
{
// eslint-disable-next-line no-debugger
debugger
if
(
!
this
.
permissions
[
to
])
return
if
(
!
this
.
permissions
[
to
])
return
delete
this
.
permissions
[
to
]
delete
this
.
permissions
[
to
]
yo
.
update
(
this
.
currentSetting
,
this
.
settings
())
yo
.
update
(
this
.
currentSetting
,
this
.
settings
())
...
...
libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCardContainer.tsx
View file @
6b709555
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
React
from
'react'
import
React
from
'react'
import
{
PluginManagerComponent
}
from
'../../types
/types
'
import
{
PluginManagerComponent
}
from
'../../types'
import
ActivePluginCard
from
'./ActivePluginCard'
import
ActivePluginCard
from
'./ActivePluginCard'
import
ModuleHeading
from
'./moduleHeading'
import
ModuleHeading
from
'./moduleHeading'
...
...
libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCardContainer.tsx
View file @
6b709555
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
React
from
'react'
import
React
from
'react'
import
{
PluginManagerComponent
,
PluginManagerProfile
}
from
'../../types
/types
'
import
{
PluginManagerComponent
,
PluginManagerProfile
}
from
'../../types'
import
InactivePluginCard
from
'./InactivePluginCard'
import
InactivePluginCard
from
'./InactivePluginCard'
import
ModuleHeading
from
'./moduleHeading'
import
ModuleHeading
from
'./moduleHeading'
...
...
libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
View file @
6b709555
...
@@ -5,7 +5,7 @@ import { Toaster } from '@remix-ui/toaster'
...
@@ -5,7 +5,7 @@ import { Toaster } from '@remix-ui/toaster'
import
{
IframePlugin
,
WebsocketPlugin
}
from
'@remixproject/engine-web'
import
{
IframePlugin
,
WebsocketPlugin
}
from
'@remixproject/engine-web'
import
{
localPluginReducerActionType
,
localPluginToastReducer
}
from
'../reducers/pluginManagerReducer'
import
{
localPluginReducerActionType
,
localPluginToastReducer
}
from
'../reducers/pluginManagerReducer'
import
{
FormStateProps
,
PluginManagerComponent
}
from
'../../types
/types
'
import
{
FormStateProps
,
PluginManagerComponent
}
from
'../../types'
interface
LocalPluginFormProps
{
interface
LocalPluginFormProps
{
closeModal
:
()
=>
void
closeModal
:
()
=>
void
...
...
libs/remix-ui/plugin-manager/src/lib/components/permissions
/permissions
Settings.tsx
→
libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx
View file @
6b709555
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
React
,
{
Fragment
,
useCallback
,
useEffect
,
useState
}
from
'react'
import
React
,
{
Fragment
,
useCallback
,
useEffect
,
useState
}
from
'react'
import
{
PluginManagerSettings
,
PluginPermissions
}
from
'../../../types/types'
/* eslint-disable-line */
import
{
ModalDialog
}
from
'@remix-ui/modal-dialog'
import
{
ModalDialog
}
from
'@remix-ui/modal-dialog'
import
{
useLocalStorage
}
from
'../custom-hooks/useLocalStorage'
// import { PluginManagerSettings, PluginPermissions } from '../../types'
interface
PermissionSettingsProps
{
interface
PermissionSettingsProps
{
pluginSettings
:
PluginManagerSettings
pluginSettings
:
any
}
}
function
PermisssionsSettings
({
pluginSettings
}:
PermissionSettingsProps
)
{
function
PermisssionsSettings
({
pluginSettings
}:
PermissionSettingsProps
)
{
...
@@ -12,28 +14,20 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
...
@@ -12,28 +14,20 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
* Declare component local state
* Declare component local state
*/
*/
const
[
modalVisibility
,
setModalVisibility
]
=
useState
<
boolean
>
(
true
)
const
[
modalVisibility
,
setModalVisibility
]
=
useState
<
boolean
>
(
true
)
const
[
permissions
]
=
useState
<
PluginPermissions
|
null
>
(
// const [permissions] = useState<any
| null>(
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
)
||
'{}'
))
//
JSON.parse(localStorage.getItem('plugins/permissions') || '{}'))
const
[
verifyPermission
,
setVerifyPermission
]
=
useState
(
false
)
const
[
permissions
,
setPermissions
]
=
useLocalStorage
(
'plugins/permissions'
,
'{}'
)
const
closeModal
=
()
=>
setModalVisibility
(
true
)
const
closeModal
=
()
=>
setModalVisibility
(
true
)
const
displayPermissions
=
useCallback
(()
=>
{
if
(
permissions
&&
Object
.
keys
(
permissions
).
length
>
0
)
{
setVerifyPermission
(
true
)
}
},
[
permissions
])
useEffect
(()
=>
{
displayPermissions
()
},
[
displayPermissions
,
permissions
])
// console.log('fetched permissions', permissions)
function
ShowPluginHeading
({
headingName
})
{
function
ShowPluginHeading
({
headingName
})
{
return
(
return
(
<
div
className=
"pb-2 remixui_permissionKey"
>
<
div
className=
"pb-2 remixui_permissionKey"
>
<
h3
>
{
headingName
}
permissions:
</
h3
>
<
h3
>
{
headingName
}
permissions:
</
h3
>
<
i
<
i
onClick=
{
()
=>
pluginSettings
.
clearAllPersmission
(
'topLevelPluginNameP'
)
}
onClick=
{
()
=>
{
console
.
log
(
`${headingName}`
)
clearPersmission
(
headingName
)
}
}
className=
"far fa-trash-alt"
className=
"far fa-trash-alt"
data
-
id=
{
`pluginManagerSettingsClearAllPermission-${headingName}`
}
>
data
-
id=
{
`pluginManagerSettingsClearAllPermission-${headingName}`
}
>
...
@@ -55,7 +49,10 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
...
@@ -55,7 +49,10 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
},
[
checkBoxState
])
},
[
checkBoxState
])
const
handleCheckboxClick
=
()
=>
{
const
handleCheckboxClick
=
()
=>
{
const
copyPermissions
=
permissions
copyPermissions
[
pluginName
][
functionName
][
topLevelPluginName
].
allow
=
!
checkBoxState
setCheckBoxState
(
!
checkBoxState
)
setCheckBoxState
(
!
checkBoxState
)
setPermissions
(
copyPermissions
)
}
}
return
(
return
(
<
div
className=
"form-group remixui_permissionKey"
>
<
div
className=
"form-group remixui_permissionKey"
>
...
@@ -78,7 +75,10 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
...
@@ -78,7 +75,10 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
</
span
>
</
span
>
</
div
>
</
div
>
<
i
<
i
onClick=
{
()
=>
pluginSettings
.
clearPersmission
(
pluginName
,
topLevelPluginName
,
functionName
)
}
onClick=
{
()
=>
{
console
.
log
(
`${pluginName}'s trash icon was clicked!`
)
clearAllPersmissions
(
pluginName
,
topLevelPluginName
,
functionName
)
}
}
className=
"fa fa-trash-alt"
className=
"fa fa-trash-alt"
data
-
id=
{
`pluginManagerSettingsRemovePermission-${topLevelPluginName}-${functionName}-${topLevelPluginName}`
}
data
-
id=
{
`pluginManagerSettingsRemovePermission-${topLevelPluginName}-${functionName}-${topLevelPluginName}`
}
/>
/>
...
@@ -86,6 +86,30 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
...
@@ -86,6 +86,30 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
)
)
}
}
function
clearAllPersmissions
(
pluginName
:
string
,
topLevelPluginName
:
string
,
funcName
:
string
)
{
const
permissionsCopy
=
permissions
// don't mutate state
if
(
permissionsCopy
[
topLevelPluginName
]
&&
permissionsCopy
[
topLevelPluginName
][
funcName
])
{
delete
permissionsCopy
[
topLevelPluginName
][
funcName
][
pluginName
]
if
(
Object
.
keys
(
permissionsCopy
[
topLevelPluginName
][
funcName
]).
length
===
0
)
{
delete
permissionsCopy
[
topLevelPluginName
][
funcName
]
}
if
(
Object
.
keys
(
permissionsCopy
[
topLevelPluginName
]).
length
===
0
)
{
delete
permissionsCopy
[
topLevelPluginName
]
}
}
// eslint-disable-next-line no-debugger
debugger
setPermissions
({
...
permissionsCopy
})
}
function
clearPersmission
(
topLevelPluginName
:
string
)
{
const
permissionsCopy
=
permissions
if
(
permissionsCopy
[
topLevelPluginName
])
{
delete
permissionsCopy
[
topLevelPluginName
]
}
setPermissions
({})
}
return
(
return
(
<
Fragment
>
<
Fragment
>
<
ModalDialog
<
ModalDialog
...
@@ -95,20 +119,23 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
...
@@ -95,20 +119,23 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) {
okLabel=
"OK"
okLabel=
"OK"
cancelLabel=
"Cancel"
cancelLabel=
"Cancel"
>
>
{
verifyPermission
?
(<
h4
className=
"text-center"
>
Current Permission Settings
</
h4
>)
:
(<
h4
className=
"text-center"
>
No Permission requested yet.
</
h4
>)
}
{
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
))
&&
Object
.
keys
(
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
))).
length
>
0
?
(<
h4
className=
"text-center"
>
Current Permission Settings
</
h4
>)
:
(<
h4
className=
"text-center"
>
No Permission requested yet.
</
h4
>)
}
<
form
className=
"remixui_permissionForm"
data
-
id=
"pluginManagerSettingsPermissionForm"
>
<
form
className=
"remixui_permissionForm"
data
-
id=
"pluginManagerSettingsPermissionForm"
>
<
div
className=
"p-2"
>
<
div
className=
"p-2"
>
{
{
Object
.
keys
(
permissions
).
map
(
toplevelName
=>
(
Object
.
keys
(
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
))
).
map
(
toplevelName
=>
(
<
ShowPluginHeading
key=
{
toplevelName
}
headingName=
{
toplevelName
}
/>
<
ShowPluginHeading
key=
{
toplevelName
}
headingName=
{
toplevelName
}
/>
))
))
}
}
{
{
Object
.
keys
(
permissions
).
map
(
topName
=>
{
Object
.
keys
(
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
))
).
map
(
topName
=>
{
return
Object
.
keys
(
permissions
[
topName
]).
map
(
funcName
=>
{
return
Object
.
keys
(
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
))
[
topName
]).
map
(
funcName
=>
{
return
Object
.
keys
(
permissions
[
topName
][
funcName
]).
map
(
pluginName
=>
(
return
Object
.
keys
(
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
))
[
topName
][
funcName
]).
map
(
pluginName
=>
(
<
ShowCheckBox
<
ShowCheckBox
allow=
{
permissions
[
topName
][
funcName
][
pluginName
].
allow
}
allow=
{
JSON
.
parse
(
localStorage
.
getItem
(
'plugins/permissions'
))
[
topName
][
funcName
][
pluginName
].
allow
}
functionName=
{
funcName
}
functionName=
{
funcName
}
pluginName=
{
pluginName
}
pluginName=
{
pluginName
}
topLevelPluginName=
{
topName
}
topLevelPluginName=
{
topName
}
...
...
libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx
View file @
6b709555
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
React
,
{
Fragment
,
ReactNode
,
useEffect
,
useState
}
from
'react'
import
React
,
{
Fragment
,
ReactNode
,
useEffect
,
useState
}
from
'react'
import
{
FormStateProps
,
PluginManagerComponent
}
from
'../../types
/types'
import
{
PluginManagerComponent
,
PluginManagerSettings
}
from
'../..
/types'
import
PermisssionsSettings
from
'./permissions
/permissions
Settings'
import
PermisssionsSettings
from
'./permissionsSettings'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
LocalPluginForm
from
'./LocalPluginForm'
import
LocalPluginForm
from
'./LocalPluginForm'
interface
RootViewProps
{
interface
RootViewProps
{
pluginComponent
:
PluginManagerComponent
pluginComponent
:
PluginManagerComponent
pluginManagerSettings
:
PluginManagerSettings
children
:
ReactNode
children
:
ReactNode
}
}
...
@@ -20,7 +21,7 @@ export interface pluginActivated {
...
@@ -20,7 +21,7 @@ export interface pluginActivated {
profile
:
Profile
profile
:
Profile
}
}
function
RootView
({
pluginComponent
,
children
}:
RootViewProps
)
{
function
RootView
({
pluginComponent
,
pluginManagerSettings
,
children
}:
RootViewProps
)
{
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
true
)
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
true
)
const
[
filterPlugins
,
setFilterPlugin
]
=
useState
<
string
>
(
''
)
const
[
filterPlugins
,
setFilterPlugin
]
=
useState
<
string
>
(
''
)
...
@@ -32,7 +33,7 @@ function RootView ({ pluginComponent, children }: RootViewProps) {
...
@@ -32,7 +33,7 @@ function RootView ({ pluginComponent, children }: RootViewProps) {
useEffect
(()
=>
{
useEffect
(()
=>
{
pluginComponent
.
getAndFilterPlugins
(
filterPlugins
)
pluginComponent
.
getAndFilterPlugins
(
filterPlugins
)
},
[
filterPlugins
])
},
[
filterPlugins
])
// console.log('This is the state of pluginSettings instance passed from pluginmanager', pluginComponent.pluginSettings)
return
(
return
(
<
Fragment
>
<
Fragment
>
<
div
id=
"pluginManager"
data
-
id=
"pluginManagerComponentPluginManager"
>
<
div
id=
"pluginManager"
data
-
id=
"pluginManagerComponentPluginManager"
>
...
@@ -52,7 +53,7 @@ function RootView ({ pluginComponent, children }: RootViewProps) {
...
@@ -52,7 +53,7 @@ function RootView ({ pluginComponent, children }: RootViewProps) {
</
button
>
</
button
>
</
header
>
</
header
>
{
children
}
{
children
}
<
PermisssionsSettings
pluginSettings=
{
plugin
Component
.
plugin
Settings
}
/>
<
PermisssionsSettings
pluginSettings=
{
plugin
Manager
Settings
}
/>
</
div
>
</
div
>
<
LocalPluginForm
<
LocalPluginForm
closeModal=
{
closeModal
}
closeModal=
{
closeModal
}
...
...
libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
View file @
6b709555
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
}
from
'react'
import
{
RemixUiPluginManagerProps
}
from
'../types
/types
'
import
{
RemixUiPluginManagerProps
}
from
'../types'
import
ActivePluginCardContainer
from
'./components/ActivePluginCardContainer'
import
ActivePluginCardContainer
from
'./components/ActivePluginCardContainer'
import
InactivePluginCardContainer
from
'./components/InactivePluginCardContainer'
import
InactivePluginCardContainer
from
'./components/InactivePluginCardContainer'
import
RootView
from
'./components/rootView'
import
RootView
from
'./components/rootView'
import
'./remix-ui-plugin-manager.css'
import
'./remix-ui-plugin-manager.css'
export
const
RemixUiPluginManager
=
({
pluginComponent
}:
RemixUiPluginManagerProps
)
=>
{
export
const
RemixUiPluginManager
=
({
pluginComponent
,
pluginManagerSettings
}:
RemixUiPluginManagerProps
)
=>
{
const
[
activeProfiles
,
setActiveProfiles
]
=
useState
<
Profile
[]
>
(
pluginComponent
.
activePlugins
)
const
[
activeProfiles
,
setActiveProfiles
]
=
useState
<
Profile
[]
>
(
pluginComponent
.
activePlugins
)
const
[
inactiveProfiles
,
setinactiveProfiles
]
=
useState
<
Profile
[]
>
(
pluginComponent
.
inactivePlugins
)
const
[
inactiveProfiles
,
setinactiveProfiles
]
=
useState
<
Profile
[]
>
(
pluginComponent
.
inactivePlugins
)
// console.log('This is the state of pluginSettings at the root of the components', pluginComponent.pluginSettings)
return
(
return
(
<
RootView
pluginComponent=
{
pluginComponent
}
>
<
RootView
pluginComponent=
{
pluginComponent
}
pluginManagerSettings=
{
pluginManagerSettings
}
>
<
section
data
-
id=
"pluginManagerComponentPluginManagerSection"
>
<
section
data
-
id=
"pluginManagerComponentPluginManagerSection"
>
<
ActivePluginCardContainer
<
ActivePluginCardContainer
pluginComponent=
{
pluginComponent
}
pluginComponent=
{
pluginComponent
}
...
...
libs/remix-ui/plugin-manager/src/types
/types
.d.ts
→
libs/remix-ui/plugin-manager/src/types.d.ts
View file @
6b709555
...
@@ -139,6 +139,7 @@ export interface PluginManagerContextProviderProps {
...
@@ -139,6 +139,7 @@ export interface PluginManagerContextProviderProps {
export
interface
RemixUiPluginManagerProps
{
export
interface
RemixUiPluginManagerProps
{
pluginComponent
:
PluginManagerComponent
pluginComponent
:
PluginManagerComponent
pluginManagerSettings
:
PluginManagerSettings
}
}
/** @class Reference loaders.
/** @class Reference loaders.
* A loader is a get,set based object which load a workspace from a defined sources.
* A loader is a get,set based object which load a workspace from a defined sources.
...
...
libs/remix-ui/plugin-manager/src/types/query-params.d.ts
deleted
100644 → 0
View file @
a8cc8f61
export
=
QueryParams
;
// declare function QueryParams(_window: any): void;
declare
class
QueryParams
{
constructor
(
_window
:
any
);
get
:
()
=>
{};
update
:
(
params
:
any
)
=>
void
;
}
libs/remix-ui/plugin-manager/src/types/registry.d.ts
deleted
100644 → 0
View file @
a8cc8f61
declare
class
registry
{
state
:
{};
put
({
api
,
name
}:
{
api
:
any
;
name
:
any
;
}):
any
get
(
name
:
any
):
any
;
}
export
=
registry
;
libs/remix-ui/plugin-manager/tsconfig.lib.json
View file @
6b709555
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
"extends"
:
"./tsconfig.json"
,
"extends"
:
"./tsconfig.json"
,
"compilerOptions"
:
{
"compilerOptions"
:
{
"outDir"
:
"../../../dist/out-tsc"
,
"outDir"
:
"../../../dist/out-tsc"
,
"composite"
:
true
,
"types"
:
[
"node"
]
"types"
:
[
"node"
]
},
},
"files"
:
[
"files"
:
[
...
...
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