Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bunsenstraat committed Jan 16, 2025
1 parent e34b7fe commit 1661605
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
8 changes: 3 additions & 5 deletions apps/remix-ide/src/app/plugins/script-runner-bridge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IframePlugin, IframeProfile, ViewPlugin } from '@remixproject/engine-web'
import * as packageJson from '../../../../../package.json'
import React from 'react' // eslint-disable-line
import { customScriptRunnerConfig, IScriptRunnerState, ProjectConfiguration, ScriptRunnerConfig, ScriptRunnerUI } from '@remix-scriptrunner'
import { customScriptRunnerConfig, IScriptRunnerState, ProjectConfiguration, ScriptRunnerConfig, ScriptRunnerUI } from '@remix-scriptrunner'
import { Profile } from '@remixproject/plugin-utils'
import { Engine, Plugin } from '@remixproject/engine'
import axios from 'axios'
Expand Down Expand Up @@ -48,7 +48,7 @@ export class ScriptRunnerBridgePlugin extends Plugin {
}

async onActivation() {
if(!this.initialized) {
if (!this.initialized) {
this.setListeners()
await this.init()
this.initialized = true
Expand Down Expand Up @@ -87,12 +87,10 @@ export class ScriptRunnerBridgePlugin extends Plugin {
})
}


async renderComponent() {
this.emit('render')
}


async selectScriptRunner(config: ProjectConfiguration) {
if (await this.loadScriptRunner(config)) await this.saveCustomConfig(this.customConfig)
}
Expand Down Expand Up @@ -262,7 +260,7 @@ export class ScriptRunnerBridgePlugin extends Plugin {
}

async openCustomConfig() {

try {
await this.plugin.call('fileManager', 'open', '.remix/script.config.json')
} catch (e) {}
Expand Down
12 changes: 3 additions & 9 deletions apps/remix-ide/src/app/tabs/script-runner-ui.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import { IframePlugin, IframeProfile, ViewPlugin } from '@remixproject/engine-web'
import { ViewPlugin, ViewProfile } from '@remixproject/engine-web'
import * as packageJson from '../../../../../package.json'
import React from 'react' // eslint-disable-line
import { customScriptRunnerConfig, IScriptRunnerState, ProjectConfiguration, ScriptRunnerConfig, ScriptRunnerUI } from '@remix-scriptrunner'
import { Profile } from '@remixproject/plugin-utils'
import { Engine, Plugin } from '@remixproject/engine'
import axios from 'axios'
import { AppModal } from '@remix-ui/app'
import { isArray } from 'lodash'
import { PluginViewWrapper } from '@remix-ui/helper'
import { CustomRemixApi } from '@remix-api'
import { ScriptRunnerBridgePlugin } from '../plugins/script-runner-bridge'

const profile = {
const profile: ViewProfile = {
name: 'UIScriptRunner',
displayName: 'Script configuration',
methods: [],
Expand All @@ -36,7 +30,7 @@ export class ScriptRunnerUIPlugin extends ViewPlugin {
async onActivation() {
this.on('scriptRunnerBridge', 'render', () => {
this.renderComponent()
})
})
this.renderComponent()
}

Expand Down
3 changes: 1 addition & 2 deletions libs/remix-ui/scriptrunner/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export interface ScriptRunnerConfig {
customConfig: customScriptRunnerConfig
}


export interface IScriptRunnerState {
export interface IScriptRunnerState {
customConfig: customScriptRunnerConfig
configurations: ProjectConfiguration[]
activeConfig: ProjectConfiguration
Expand Down

0 comments on commit 1661605

Please sign in to comment.