Skip to content

Commit 6f2c7f0

Browse files
authored
Merge pull request #88 from oslabs-beta/37staging
37staging
2 parents a2d1d11 + 03abc89 commit 6f2c7f0

File tree

10 files changed

+38
-49
lines changed

10 files changed

+38
-49
lines changed

httpserver.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

main.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ const { ApolloLink } = require("apollo-link");
4545
const { introspectionQuery } = require("graphql");
4646

4747
// proto-parser func for parsing .proto files
48-
const protoParserFunc = require("./protoParser.js");
48+
const protoParserFunc = require("./main_process/protoParser.js");
4949

5050
// require menu file
5151
require("./menu/mainMenu");
5252
// require http controller file
53-
require("./main_httpController.js")();
53+
require("./main_process/main_httpController.js")();
5454
// require grpc controller file
55-
require("./main_grpcController.js")();
55+
require("./main_process/main_grpcController.js")();
5656
// require ws controller
57-
require("./main_wsController.js")();
57+
require("./main_process/main_wsController.js")();
5858

5959
// configure logging
6060
autoUpdater.logger = log;
@@ -156,7 +156,7 @@ function createWindow() {
156156
mainWindow.loadURL(indexPath);
157157

158158
// give our new window the earlier created touchbar
159-
const { touchBar } = require("./main_touchbar.js");
159+
const { touchBar } = require("./main_process/main_touchbar.js");
160160
mainWindow.setTouchBar(touchBar);
161161

162162
// prevent webpack-dev-server from setting new title
@@ -367,7 +367,6 @@ ipcMain.on("import-collection", (event, args) => {
367367

368368
// send data to chromium for state update
369369
// ipcMain.send("add-collection", { data });
370-
console.log("before add-collection in import", data);
371370
// mainWindow.webContents.send('add-collection', {data});
372371
event.sender.send("add-collection", { data });
373372
});
@@ -386,7 +385,6 @@ ipcMain.on("confirm-clear-history", (event) => {
386385
dialog
387386
.showMessageBox(null, opts)
388387
.then((response) => {
389-
console.log("response to clear-history : ", response);
390388
mainWindow.webContents.send("clear-history-response", response);
391389
})
392390
.catch((err) => console.log(`Error on 'confirm-clear-history': ${err}`));
@@ -397,7 +395,6 @@ ipcMain.on("confirm-clear-history", (event) => {
397395
// import-proto
398396

399397
ipcMain.on("import-proto", (event) => {
400-
console.log("import-proto event fired!!");
401398
let importedProto;
402399
dialog
403400
.showOpenDialog({
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,31 @@
134134
"name": "Stephanie Wood",
135135
"email": "[email protected]",
136136
"url": "https://github.com/StephWood"
137+
},
138+
{
139+
"name": "Wyatt Bell",
140+
"email": "www.linkedin.com/in/wyatt-bell1",
141+
"url": "https://github.com/wcbell51"
142+
},
143+
{
144+
"name": "Grace Kim",
145+
"email": "https://www.linkedin.com/in/gracekiim/",
146+
"url": "https://github.com/gracekiim"
147+
},
148+
{
149+
"name": "John Madrigal",
150+
"email": "www.linkedin.com/in/john-r-madrigal",
151+
"url": "https://github.com/johnmadrigal "
152+
},
153+
{
154+
"name": "Michael Miller",
155+
"email": "https://www.linkedin.com/in/migueljmiller/",
156+
"url": "https://github.com/mjmiguel"
157+
},
158+
{
159+
"name": "Alex Sanhueza",
160+
"email": "https://www.linkedin.com/in/alex-sanhueza/",
161+
"url": "https://github.com/alexsanhueza"
137162
}
138163
],
139164
"build": {
@@ -151,14 +176,13 @@
151176
"menu/mainMenu.js",
152177
"package.json",
153178
"main.js",
154-
"httpserver.js",
155-
"src/client/protoParser.js",
156-
"main_grpcController.js",
157-
"main_httpController.js",
158-
"SSEController.js",
159-
"preload.js",
160-
"main_touchbar.js",
161-
"main_wsController.js"
179+
"main_process/protoParser.js",
180+
"main_process/main_grpcController.js",
181+
"main_process/main_httpController.js",
182+
"main_process/main_wsController.js",
183+
"main_process/main_touchbar.js",
184+
"main_process/SSEController.js",
185+
"preload.js"
162186
],
163187
"nodeVersion": "12.14.1",
164188
"nsis": {
@@ -245,7 +269,6 @@
245269
"highland": "^2.13.5",
246270
"http": "0.0.1-security",
247271
"identity-obj-proxy": "^3.0.0",
248-
"isomorphic-fetch": "^2.2.1",
249272
"mali": "^0.21.0",
250273
"mongoose": "^5.9.29",
251274
"node-fetch": "^2.6.0",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
/* Advanced Options */
2424
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
2525
},
26-
"include": ["./src/", "protoParser.js"],
26+
"include": ["./src/", "main_process/protoParser.js"],
2727
"exclude": ["node_modules", "dist", "build", "coverage", "mocks"]
2828
}

0 commit comments

Comments
 (0)