Skip to content

Commit e84ba05

Browse files
committed
Merge branch 'dashboard' of https://github.com/Coding/WebIDE-Frontend into dashboard
2 parents 3292710 + 35b1254 commit e84ba05

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

app/backendAPI/websocketClients.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import emitter, * as E from 'utils/emitter'
55
import config from 'config'
66
import { autorun, runInAction } from 'mobx'
77
import { notify, NOTIFY_TYPE } from '../components/Notification/actions'
8-
import * as searchAPI from 'backendAPI/searchAPI'
98

109
const log = console.log || (x => x)
1110
const warn = console.warn || (x => x)
@@ -263,7 +262,6 @@ class SearchSocketClient {
263262
close () {
264263
const self = this
265264
if (config.searchSocketConnected) {
266-
searchAPI.searchWorkspaceDown();
267265
self.shouldClose = true;
268266
self.socket.close();
269267
// must emit ???

app/commons/Search/subscribeToSearch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { SearchSocketClient } from 'backendAPI/websocketClients'
32
import { autorun } from 'mobx'
43
import state from './state'

app/components/Search/icons.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from "react"
1+
import React, { Component } from "react"
22

33
const Aa = (props) => (
44
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22">
@@ -33,5 +33,3 @@ const Reg = (props) => (
3333

3434
)
3535
export { Aa, Word, Reg }
36-
37-

app/components/Search/search.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from "react";
1+
import React, { Component } from "react";
22
import { observer } from 'mobx-react'
33
import subscribeToSearch from 'commons/Search/subscribeToSearch'
44
import state from 'commons/Search/state'
@@ -7,6 +7,8 @@ import { openFile } from 'commands/commandBindings/file'
77
import * as delegate from 'commons/Search/action'
88
import icons from 'file-icons-js'
99
import { Aa, Word, Reg } from './icons'
10+
import * as api from 'backendAPI/searchAPI'
11+
import config from 'config'
1012

1113
const hoverColor = '#337ab7'
1214

@@ -23,6 +25,7 @@ export class SearchResultItem extends Component {
2325
isFolded: !this.state.isFolded
2426
})
2527
}
28+
2629

2730
handleItemClick = (path, start, end, lineNum) => {
2831
const selection = new monaco.Selection(
@@ -72,7 +75,7 @@ export class SearchResultItem extends Component {
7275
@observer
7376
class SearchPanel extends Component {
7477
componentDidMount () {
75-
subscribeToSearch()
78+
subscribeToSearch()
7679
}
7780

7881
onKeyDown = (e) => {

0 commit comments

Comments
 (0)