mv & rename

pull/5370/head
bunsenstraat 3 years ago
parent ea28cec79a
commit 23497be0b3
  1. 25
      apps/remix-ide/src/app/components/hidden-panel.tsx
  2. 2
      apps/remix-ide/src/app/components/main-panel.tsx
  3. 8
      apps/remix-ide/src/app/components/side-panel.tsx
  4. 0
      libs/remix-ui/panel/.babelrc
  5. 0
      libs/remix-ui/panel/.eslintrc.json
  6. 0
      libs/remix-ui/panel/README.md
  7. 0
      libs/remix-ui/panel/src/index.ts
  8. 4
      libs/remix-ui/panel/src/lib/panel-header.tsx
  9. 4
      libs/remix-ui/panel/src/lib/panel-plugin.tsx
  10. 0
      libs/remix-ui/panel/src/lib/panel.css
  11. 8
      libs/remix-ui/panel/src/lib/remix-ui-panel.tsx
  12. 0
      libs/remix-ui/panel/src/lib/types/index.ts
  13. 0
      libs/remix-ui/panel/tsconfig.json
  14. 0
      libs/remix-ui/panel/tsconfig.lib.json
  15. 5
      nx.json
  16. 438
      package-lock.json
  17. 3
      tsconfig.base.json
  18. 23
      workspace.json

@ -1,13 +1,9 @@
import React from 'react' // eslint-disable-line // eslint-disable-next-line no-use-before-define
import React from 'react'
import ReactDOM from 'react-dom' // eslint-disable-line
import { AbstractPanel } from './panel' import { AbstractPanel } from './panel'
import * as packageJson from '../../../../../package.json' import * as packageJson from '../../../../../package.json'
const csjs = require('csjs-inject') import { RemixPanel } from '@remix-ui/panel'
const css = csjs`
.pluginsContainer {
display: none;
}
`
const profile = { const profile = {
name: 'hiddenPanel', name: 'hiddenPanel',
@ -18,22 +14,17 @@ const profile = {
} }
export class HiddenPanel extends AbstractPanel { export class HiddenPanel extends AbstractPanel {
el: HTMLDivElement
constructor () { constructor () {
super(profile) super(profile)
this.container = document.createElement('div') this.el = document.createElement('div')
} }
render () { render () {
return this.container return this.el
} }
renderComponent () { renderComponent () {
return ReactDOM.render( ReactDOM.render(<RemixPanel plugins={this.plugins}/>, this.el)
<div class={css.pluginsContainer}>
{this.element}
</div>
,
this.container
)
} }
} }

@ -1,7 +1,7 @@
import React from 'react' // eslint-disable-line import React from 'react' // eslint-disable-line
import { AbstractPanel } from './panel' import { AbstractPanel } from './panel'
import ReactDOM from 'react-dom' // eslint-disable-line import ReactDOM from 'react-dom' // eslint-disable-line
import { RemixPanel } from '@remix-ui/side-panel' import { RemixPanel } from '@remix-ui/panel'
import packageJson from '../../../../../package.json' import packageJson from '../../../../../package.json'
const profile = { const profile = {

@ -1,7 +1,8 @@
import React from 'react' // eslint-disable-line // eslint-disable-next-line no-use-before-define
import React from 'react'
import ReactDOM from 'react-dom'
import { AbstractPanel } from './panel' import { AbstractPanel } from './panel'
import ReactDOM from 'react-dom' // eslint-disable-line import { RemixPanel } from '@remix-ui/panel'
import { RemixPanel } from '@remix-ui/side-panel'
import packageJson from '../../../../../package.json' import packageJson from '../../../../../package.json'
import { RemixAppManager } from '../../remixAppManager' import { RemixAppManager } from '../../remixAppManager'
import { VerticalIcons } from 'libs/remix-ui/vertical-icons-panel/types/vertical-icons-panel' import { VerticalIcons } from 'libs/remix-ui/vertical-icons-panel/types/vertical-icons-panel'
@ -87,7 +88,6 @@ export class SidePanel extends AbstractPanel {
} }
renderComponent () { renderComponent () {
console.log('render side panel')
ReactDOM.render(<RemixPanel plugins={this.plugins}/>, this.sideelement) ReactDOM.render(<RemixPanel plugins={this.plugins}/>, this.sideelement)
} }
} }

@ -6,7 +6,7 @@ import './panel.css';
export interface RemixPanelProps { export interface RemixPanelProps {
plugins: Record<string, PluginRecord>; plugins: Record<string, PluginRecord>;
} }
const SidePanelHeader = (props: RemixPanelProps) => { const RemixUIPanelHeader = (props: RemixPanelProps) => {
const [plugin, setPlugin] = useState<PluginRecord>() const [plugin, setPlugin] = useState<PluginRecord>()
useEffect(() => { useEffect(() => {
@ -26,4 +26,4 @@ const SidePanelHeader = (props: RemixPanelProps) => {
</header>) </header>)
} }
export default SidePanelHeader export default RemixUIPanelHeader

@ -5,7 +5,7 @@ interface panelPLuginProps {
pluginRecord: PluginRecord pluginRecord: PluginRecord
} }
const PanelPlugin = (props: panelPLuginProps) => { const RemixUIPanelPlugin = (props: panelPLuginProps) => {
const sidePanelRef = useRef(null) const sidePanelRef = useRef(null)
const [view, setView] = useState<JSX.Element | HTMLDivElement>() const [view, setView] = useState<JSX.Element | HTMLDivElement>()
useEffect(() => { useEffect(() => {
@ -23,4 +23,4 @@ const PanelPlugin = (props: panelPLuginProps) => {
return <div className={props.pluginRecord.active? 'plugItIn active':'d-none'} ref={sidePanelRef}>{view}</div> return <div className={props.pluginRecord.active? 'plugItIn active':'d-none'} ref={sidePanelRef}>{view}</div>
} }
export default PanelPlugin export default RemixUIPanelPlugin

@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react' // eslint-disable-line import React, { useEffect, useState } from 'react' // eslint-disable-line
import './panel.css'; import './panel.css';
import SidePanelHeader from './panel-header'; import RemixUIPanelHeader from './panel-header';
import PanelPlugin from './panel-plugin'; import RemixUIPanelPlugin from './panel-plugin';
import { PluginRecord } from './types'; import { PluginRecord } from './types';
/* eslint-disable-next-line */ /* eslint-disable-next-line */
@ -13,10 +13,10 @@ export function RemixPanel(props: RemixPanelProps) {
return ( return (
<div className='panel plugin-manager'> <div className='panel plugin-manager'>
<SidePanelHeader plugins={props.plugins}></SidePanelHeader> <RemixUIPanelHeader plugins={props.plugins}></RemixUIPanelHeader>
<div className="pluginsContainer"> <div className="pluginsContainer">
{Object.values(props.plugins).map((pluginRecord) => { {Object.values(props.plugins).map((pluginRecord) => {
return <PanelPlugin key={pluginRecord.profile.name} pluginRecord={pluginRecord} /> return <RemixUIPanelPlugin key={pluginRecord.profile.name} pluginRecord={pluginRecord} />
})} })}
</div> </div>
</div> </div>

@ -139,10 +139,7 @@
"remix-ui-tabs": { "remix-ui-tabs": {
"tags": [] "tags": []
}, },
"remix-ui-main-panel": { "remix-ui-panel": {
"tags": []
},
"remix-ui-side-panel": {
"tags": [] "tags": []
} }
}, },

438
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -68,8 +68,7 @@
"@remix-ui/tabs": ["libs/remix-ui/tabs/src/index.ts"], "@remix-ui/tabs": ["libs/remix-ui/tabs/src/index.ts"],
"@remix-ui/helper": ["libs/remix-ui/helper/src/index.ts"], "@remix-ui/helper": ["libs/remix-ui/helper/src/index.ts"],
"@remix-ui/vertical-icons-panel": ["libs/remix-ui/vertical-icons-panel/src/index.ts"], "@remix-ui/vertical-icons-panel": ["libs/remix-ui/vertical-icons-panel/src/index.ts"],
"@remix-ui/main-panel": ["libs/remix-ui/main-panel/src/index.ts"], "@remix-ui/panel": ["libs/remix-ui/panel/src/index.ts"]
"@remix-ui/side-panel": ["libs/remix-ui/side-panel/src/index.ts"]
} }
}, },
"exclude": ["node_modules", "tmp"] "exclude": ["node_modules", "tmp"]

@ -1135,31 +1135,16 @@
} }
} }
}, },
"remix-ui-main-panel": { "remix-ui-panel": {
"root": "libs/remix-ui/main-panel", "root": "libs/remix-ui/panel",
"sourceRoot": "libs/remix-ui/main-panel/src", "sourceRoot": "libs/remix-ui/panel/src",
"projectType": "library",
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"tsConfig": ["libs/remix-ui/main-panel/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "!libs/remix-ui/main-panel/**/*"]
}
}
}
},
"remix-ui-side-panel": {
"root": "libs/remix-ui/side-panel",
"sourceRoot": "libs/remix-ui/side-panel/src",
"projectType": "library", "projectType": "library",
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:eslint", "builder": "@nrwl/linter:eslint",
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"libs/remix-ui/side-panel/**/*.{ts,tsx,js,jsx}" "libs/remix-ui/panel/**/*.{ts,tsx,js,jsx}"
] ]
} }
} }

Loading…
Cancel
Save