From bd302d26c5b3c67551c71e3751c9fc381e88520b Mon Sep 17 00:00:00 2001 From: TheGreyDiamond Date: Tue, 29 Dec 2020 17:52:57 +0100 Subject: [PATCH] The battle aginst deprecation --- .gitignore | 1 + index.js | 27 +---- ui_templates/fixtures.html | 4 +- ui_templates/temp.html | 207 ++++++++++++++++++++++++++++++++++++- 4 files changed, 210 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index ad7b9a1..e6dd287 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ Code/__pycache__/session.cpython-36.pyc node_modules ui_templates/temp.html ui_templates/temp.html +ui_templates/temp.html diff --git a/index.js b/index.js index 19bf6c3..30f1a7d 100644 --- a/index.js +++ b/index.js @@ -158,31 +158,6 @@ function rebuildFixtureLib() { i += 1; } }, 1000); - - /*, [], (err, rows) => { - if (err) { - console.log(err); - } - try { - rows.length; - } catch (error) { - console.log("There is no DB structure, creating a new one."); - sql = - " \ - CREATE TABLE `fixtures` ( \ - `id` INTEGER PRIMARY KEY AUTOINCREMENT, \ - `LongName` VARCHAR(255), \ - `Name` VARCHAR(255), \ - `ShortName` VARCHAR(255), \ - `Manufacturer` VARCHAR(255), \ - `Description` VARCHAR(255), \ - `Thumbnail` VARCHAR(150), \ - `fileName` VARCHAR(255) );"; - db.run(sql) - } - });*/ - - } // Preload all pages @@ -239,6 +214,7 @@ function createWindow() { height: screen.getPrimaryDisplay().size.height, webPreferences: { nodeIntegration: true, + contextIsolation: false, }, }); win.setFullScreen(true); @@ -262,6 +238,7 @@ function createStartupInfo() { frame: false, webPreferences: { nodeIntegration: true, + contextIsolation: false, }, }); diff --git a/ui_templates/fixtures.html b/ui_templates/fixtures.html index bee3d10..cc46c7e 100644 --- a/ui_templates/fixtures.html +++ b/ui_templates/fixtures.html @@ -1,5 +1,7 @@

Fixtures

- +

+
+ diff --git a/ui_templates/temp.html b/ui_templates/temp.html index 83397eb..58aff7b 100644 --- a/ui_templates/temp.html +++ b/ui_templates/temp.html @@ -201,8 +201,209 @@ -

Fixtures

- - + + + + + Enlight - Screen 1 + + + + + + + + + + + +

Hello World!

+ + + We are using node + + , Chrome + + , and Electron + + .