Quellcode durchsuchen

Merge pull request #15967 from mrdoob/editor

Editor: Removed Electron
Mr.doob vor 6 Jahren
Ursprung
Commit
c72f96151d
3 geänderte Dateien mit 5 neuen und 752 gelöschten Zeilen
  1. 0 55
      editor/main.js
  2. 4 694
      package-lock.json
  3. 1 3
      package.json

+ 0 - 55
editor/main.js

@@ -1,55 +0,0 @@
-const electron = require( 'electron' );
-const app = electron.app;
-const BrowserWindow = electron.BrowserWindow;
-
-const path = require( 'path' );
-const url = require( 'url' );
-
-// Keep a global reference of the window object, if you don't, the window will
-// be closed automatically when the JavaScript object is garbage collected.
-let mainWindow;
-
-function createWindow() {
-
-	mainWindow = new BrowserWindow( { webPreferences: {
-		nodeIntegration: false
-	} } );
-
-	mainWindow.maximize();
-	mainWindow.setMenu( null );
-
-	mainWindow.loadURL( url.format( {
-		pathname: path.join( __dirname, 'index.html' ),
-		protocol: 'file:',
-		slashes: true
-	} ) );
-
-	mainWindow.on( 'closed', function () {
-
-		mainWindow = null;
-
-	} );
-
-}
-
-app.on( 'ready', createWindow );
-
-app.on( 'window-all-closed', function () {
-
-	if ( process.platform !== 'darwin' ) {
-
-		app.quit();
-
-	}
-
-} );
-
-app.on( 'activate', function () {
-
-	if ( mainWindow === null ) {
-
-		createWindow();
-
-	}
-
-} );

Datei-Diff unterdrückt, da er zu groß ist
+ 4 - 694
package-lock.json


+ 1 - 3
package.json

@@ -40,8 +40,7 @@
     "start": "npm run dev",
     "lint": "eslint src",
     "test": "npm run build-test && qunit test/unit/three.source.unit.js",
-    "travis": "npm run lint && npm test",
-    "editor": "electron ./editor/main.js"
+    "travis": "npm run lint && npm test"
   },
   "keywords": [
     "three",
@@ -57,7 +56,6 @@
   "homepage": "https://threejs.org/",
   "devDependencies": {
     "concurrently": "^4.1.0",
-    "electron": "^4.0.6",
     "eslint": "^5.15.0",
     "eslint-config-mdcs": "^4.2.3",
     "eslint-plugin-html": "^5.0.3",

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.