This repository was archived by the owner on Jul 23, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
xray_electron/lib/render_process Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
const React = require ( "react" ) ;
2
2
const $ = React . createElement ;
3
3
4
- module . exports = class FileFinderComponent extends React . Component {
4
+ module . exports = class FileFinder extends React . Component {
5
5
render ( ) {
6
6
return $ ( "div" ) ;
7
7
}
Original file line number Diff line number Diff line change 1
1
process . env . NODE_ENV = "production" ;
2
2
3
3
const App = require ( "./app" ) ;
4
- const FileFinderComponent = require ( "./file_finder_component " ) ;
4
+ const FileFinder = require ( "./file_finder " ) ;
5
5
const QueryString = require ( "querystring" ) ;
6
6
const React = require ( "react" ) ;
7
7
const ReactDOM = require ( "react-dom" ) ;
8
8
const ViewRegistry = require ( "./view_registry" ) ;
9
- const WorkspaceComponent = require ( "./workspace_component " ) ;
9
+ const Workspace = require ( "./workspace " ) ;
10
10
const XrayClient = require ( "../shared/xray_client" ) ;
11
11
const $ = React . createElement ;
12
12
@@ -46,8 +46,8 @@ function buildViewRegistry(client) {
46
46
client . sendMessage ( action ) ;
47
47
}
48
48
} ) ;
49
- viewRegistry . addComponent ( "Workspace" , WorkspaceComponent ) ;
50
- viewRegistry . addComponent ( "FileFinderView " , FileFinderComponent ) ;
49
+ viewRegistry . addComponent ( "Workspace" , Workspace ) ;
50
+ viewRegistry . addComponent ( "FileFinder " , FileFinder ) ;
51
51
return viewRegistry ;
52
52
}
53
53
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const ReactDOM = require("react-dom");
3
3
const View = require ( "./view" ) ;
4
4
const $ = React . createElement ;
5
5
6
- module . exports = class WorkspaceComponent extends React . Component {
6
+ module . exports = class Workspace extends React . Component {
7
7
render ( ) {
8
8
const modalView =
9
9
this . props . modal == null ? null : $ ( View , { id : this . props . modal } ) ;
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ impl WorkspaceView {
100
100
}
101
101
102
102
impl View for FileFinderView {
103
- fn component_name ( & self ) -> & ' static str { "FileFinderView " }
103
+ fn component_name ( & self ) -> & ' static str { "FileFinder " }
104
104
105
105
fn render ( & self ) -> serde_json:: Value {
106
106
json ! ( {
You can’t perform that action at this time.
0 commit comments