From 3616c18ce0434c080546279551d29acfaf89841d Mon Sep 17 00:00:00 2001 From: Steven LaBrie Date: Fri, 19 Feb 2021 19:08:46 -0500 Subject: [PATCH] corrected playgroundButton --- package-lock.json | 3 ++- server/controllers/mongoSchemaController.js | 3 +-- server/schema.js | 2 +- src/Components/PlaygroundButton.js | 18 ++---------------- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index 859f49d..97fe88e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2722,7 +2722,8 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.2.tgz", "integrity": "sha512-RwywHlpCRc3/Wh81MiCKun4ydaIFyW5Ea6JbL6sRCVx5q5irDw7pMXBUFYF/jArQ6YrG36q0kpovc9P/Kd3I4g==", - "dev": true + "dev": true, + "optional": true }, "boxen": { "version": "4.2.0", diff --git a/server/controllers/mongoSchemaController.js b/server/controllers/mongoSchemaController.js index 6e2aae4..08a9370 100644 --- a/server/controllers/mongoSchemaController.js +++ b/server/controllers/mongoSchemaController.js @@ -43,5 +43,4 @@ exports.createMongoSchema = (req, res, next) => { watcher.close(); } }); - // next(); -}; // +}; diff --git a/server/schema.js b/server/schema.js index dfe1be2..542ec6d 100644 --- a/server/schema.js +++ b/server/schema.js @@ -289,7 +289,7 @@ converter.migrateSchema = (req, res, next) => { res.locals.convertedSchema = new GraphQLSchema({ query: RootQuery, }); - + next(); }; const RootQuery = new GraphQLObjectType({ name: 'RootQueryType', diff --git a/src/Components/PlaygroundButton.js b/src/Components/PlaygroundButton.js index 7828989..f8ec270 100644 --- a/src/Components/PlaygroundButton.js +++ b/src/Components/PlaygroundButton.js @@ -2,23 +2,9 @@ import React, { useState, useEffect } from "react"; import '../public/index.css'; const PlaygroundButton = () => { - -// const button = document.getElementById(''); -// button.addEventListener('click', () => { -// createBrowserWindow(); -// }); -// function createBrowserWindow() { -// const remote = require('electron').remote; -// const BrowserWindow = remote.BrowserWindow; -// const win = new BrowserWindow({ -// height: 600, -// width: 800 -// }); -// win.loadURL(''); -// } return ( -
- +
+
) }