Skip to content

Commit 8c949f3

Browse files
author
ci-bot
committed
rename plugin files appropriately.
1 parent 0f50376 commit 8c949f3

File tree

15 files changed

+31
-28
lines changed

15 files changed

+31
-28
lines changed

apps/remix-ide/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ import Terminal from './app/panels/terminal'
111111
import TabProxy from './app/panels/tab-proxy.js'
112112
import { Plugin } from '@remixproject/engine'
113113
import BottomBarPanel from './app/components/bottom-bar-panel'
114-
import { TemplateExplorerModalPlugin } from './app/plugins/remix-generic-modal'
114+
import { TemplateExplorerModalPlugin } from './app/plugins/remix-template-explorer-modal'
115115

116116
const _paq = (window._paq = window._paq || [])
117117

apps/remix-ide/src/app/plugins/remix-generic-modal.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { AppAction, AppState } from '@remix-ui/app'
44
import { PluginViewWrapper } from '@remix-ui/helper'
55
import { Plugin } from '@remixproject/engine'
66
import { EventEmitter } from 'events'
7-
import { RemixUiGenericModal, RemixUiGenericModalProps } from 'libs/remix-ui/generic-modal/src/lib/remix-ui-generic-modal'
7+
import { RemixUiTemplateExplorerModal, RemixUiTemplateExplorerModalProps } from 'libs/remix-ui/template-explorer-modal/src/lib/remix-ui-template-explorer-modal'
88

99
const pluginProfile = {
10-
name: 'remix-generic-modal',
10+
name: 'remix-template-explorer-modal',
1111
displayName: 'Remix Generic Modal',
1212
description: 'Remix Generic Modal for every type of content meant for a modal',
1313
methods: ['openModal']
@@ -21,7 +21,7 @@ export class TemplateExplorerModalPlugin extends Plugin {
2121
constructor() {
2222
super(pluginProfile)
2323
this.element = document.createElement('div')
24-
this.element.setAttribute('id', 'remix-generic-modal')
24+
this.element.setAttribute('id', 'remix-template-explorer-modal')
2525
this.dispatch = () => { }
2626
this.event = new EventEmitter()
2727
}
@@ -45,7 +45,7 @@ export class TemplateExplorerModalPlugin extends Plugin {
4545

4646
render() {
4747
return (
48-
<div id="inner-remix-generic-modal">
48+
<div id="inner-remix-template-explorer-modal">
4949
<PluginViewWrapper plugin={this} useAppContext={true} />
5050
</div>
5151
)
@@ -57,9 +57,9 @@ export class TemplateExplorerModalPlugin extends Plugin {
5757
})
5858
}
5959

60-
updateComponent(state: RemixUiGenericModalProps, appState: AppState) {
60+
updateComponent(state: RemixUiTemplateExplorerModalProps, appState: AppState) {
6161
return (
62-
<RemixUiGenericModal
62+
<RemixUiTemplateExplorerModal
6363
appState={appState}
6464
dispatch={this.dispatch}
6565
plugin={this}

apps/remix-ide/src/remixAppManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ let requiredModules = [
9595
'remixAID',
9696
'remixaiassistant',
9797
'topbar',
98-
'remix-generic-modal',
98+
'remix-template-explorer-modal',
9999
'githubAuthHandler',
100100
'desktopClient'
101101
]
@@ -164,7 +164,7 @@ export function isNative(name) {
164164
'LearnEth',
165165
'noir-compiler',
166166
'remixaiassistant',
167-
'remix-generic-modal'
167+
'remix-template-explorer-modal'
168168
]
169169
return nativePlugins.includes(name) || requiredModules.includes(name) || isInjectedProvider(name) || isVM(name) || isScriptRunner(name)
170170
}

libs/remix-ui/app/src/lib/remix-app/remix-app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { appReducer } from './reducer/app'
1515
import { appInitialState } from './state/app'
1616
import isElectron from 'is-electron'
1717
import { desktopConnectionType } from '@remix-api'
18-
import { RemixUiGenericModal } from 'libs/remix-ui/generic-modal/src/lib/remix-ui-generic-modal'
18+
import { RemixUiTemplateExplorerModal } from 'libs/remix-ui/template-explorer-modal/src/lib/remix-ui-template-explorer-modal'
1919

2020
declare global {
2121
interface Window {
@@ -232,7 +232,7 @@ const RemixApp = (props: IRemixAppUi) => {
232232
</div>
233233
<AppDialogs></AppDialogs>
234234
<DialogViewPlugin></DialogViewPlugin>
235-
{appState.genericModalState.showModal && <RemixUiGenericModal appState={appState} dispatch={appStateDispatch} plugin={props.app.templateExplorerModal}></RemixUiGenericModal>}
235+
{appState.genericModalState.showModal && <RemixUiTemplateExplorerModal appState={appState} dispatch={appStateDispatch} plugin={props.app.templateExplorerModal}></RemixUiTemplateExplorerModal>}
236236
</AppProvider>
237237
</onLineContext.Provider>
238238
</platformContext.Provider>

libs/remix-ui/generic-modal/src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/remix-ui-template-explorer-modal'

0 commit comments

Comments
 (0)