From 250a4544abc4a11f55287200fdc57aa9fe0d28a9 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 11 Feb 2019 19:07:16 +0100 Subject: [PATCH] Updated project structure --- index.js | 2 +- ApplicationMenu.js => modules/ApplicationMenu.js | 0 MainWindow.js => modules/MainWindow.js | 2 +- TrayMenu.js => modules/TrayMenu.js | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename ApplicationMenu.js => modules/ApplicationMenu.js (100%) rename MainWindow.js => modules/MainWindow.js (96%) rename TrayMenu.js => modules/TrayMenu.js (100%) diff --git a/index.js b/index.js index acf8698..7003d46 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ const {app} = require('electron'); -const MainWindow = require("./MainWindow"); +const MainWindow = require("./modules/MainWindow"); console.log("Starting..."); app.on('ready', () => { diff --git a/ApplicationMenu.js b/modules/ApplicationMenu.js similarity index 100% rename from ApplicationMenu.js rename to modules/ApplicationMenu.js diff --git a/MainWindow.js b/modules/MainWindow.js similarity index 96% rename from MainWindow.js rename to modules/MainWindow.js index a7cdabe..da11d2a 100644 --- a/MainWindow.js +++ b/modules/MainWindow.js @@ -7,7 +7,7 @@ const electron = require('electron'); const BrowserWindow = electron.BrowserWindow; const {Menu, Tray} = require('electron'); -const Config = require("./Config"); +const Config = require("../Config"); const TrayMenu = require("./TrayMenu"); const ApplicationMenu = require("./ApplicationMenu"); diff --git a/TrayMenu.js b/modules/TrayMenu.js similarity index 100% rename from TrayMenu.js rename to modules/TrayMenu.js