8113791 (parent 70779ef)10/17/2015, 12:04:57 AM
Add quick start files
+ 50
- 0
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Hello World!</title>
+  </head>
+  <body>
+    <h1>Hello World!</h1>
+    We are using io.js <script>document.write(process.version)</script>
+    and Electron <script>document.write(process.versions['electron'])</script>.
+  </body>
+</html>

@@ -0,0 +1,39 @@
+var app = require('app');  // Module to control application life.
+var BrowserWindow = require('browser-window');  // Module to create native browser window.
+
+// Report crashes to our server.
+require('crash-reporter').start();
+
+// 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.
+var mainWindow = null;
+
+// Quit when all windows are closed.
+app.on('window-all-closed', function() {
+  // On OS X it is common for applications and their menu bar
+  // to stay active until the user quits explicitly with Cmd + Q
+  if (process.platform != 'darwin') {
+    app.quit();
+  }
+});
+
+// This method will be called when Electron has finished
+// initialization and is ready to create browser windows.
+app.on('ready', function() {
+  // Create the browser window.
+  mainWindow = new BrowserWindow({width: 800, height: 600});
+
+  // and load the index.html of the app.
+  mainWindow.loadUrl('file://' + __dirname + '/index.html');
+
+  // Open the DevTools.
+  mainWindow.openDevTools();
+
+  // Emitted when the window is closed.
+  mainWindow.on('closed', function() {
+    // Dereference the window object, usually you would store windows
+    // in an array if your app supports multi windows, this is the time
+    // when you should delete the corresponding element.
+    mainWindow = null;
+  });
+});

"},{"type":"add","add":true,"newLine":9,"position":9,"content":"+ and Electron ."},{"type":"add","add":true,"newLine":10,"position":10,"content":"+ "},{"type":"add","add":true,"newLine":11,"position":11,"content":"+"}],"oldStart":0,"oldLines":0,"newStart":1,"newLines":11}],"deletions":0,"additions":11,"new":true,"index":["0000000..4f91c8a"]},{"from":"/dev/null","to":"main.js","chunks":[{"content":"@@ -0,0 +1,39 @@","changes":[{"type":"add","add":true,"newLine":1,"position":1,"content":"+var app = require('app'); // Module to control application life."},{"type":"add","add":true,"newLine":2,"position":2,"content":"+var BrowserWindow = require('browser-window'); // Module to create native browser window."},{"type":"add","add":true,"newLine":3,"position":3,"content":"+"},{"type":"add","add":true,"newLine":4,"position":4,"content":"+// Report crashes to our server."},{"type":"add","add":true,"newLine":5,"position":5,"content":"+require('crash-reporter').start();"},{"type":"add","add":true,"newLine":6,"position":6,"content":"+"},{"type":"add","add":true,"newLine":7,"position":7,"content":"+// Keep a global reference of the window object, if you don't, the window will"},{"type":"add","add":true,"newLine":8,"position":8,"content":"+// be closed automatically when the JavaScript object is garbage collected."},{"type":"add","add":true,"newLine":9,"position":9,"content":"+var mainWindow = null;"},{"type":"add","add":true,"newLine":10,"position":10,"content":"+"},{"type":"add","add":true,"newLine":11,"position":11,"content":"+// Quit when all windows are closed."},{"type":"add","add":true,"newLine":12,"position":12,"content":"+app.on('window-all-closed', function() {"},{"type":"add","add":true,"newLine":13,"position":13,"content":"+ // On OS X it is common for applications and their menu bar"},{"type":"add","add":true,"newLine":14,"position":14,"content":"+ // to stay active until the user quits explicitly with Cmd + Q"},{"type":"add","add":true,"newLine":15,"position":15,"content":"+ if (process.platform != 'darwin') {"},{"type":"add","add":true,"newLine":16,"position":16,"content":"+ app.quit();"},{"type":"add","add":true,"newLine":17,"position":17,"content":"+ }"},{"type":"add","add":true,"newLine":18,"position":18,"content":"+});"},{"type":"add","add":true,"newLine":19,"position":19,"content":"+"},{"type":"add","add":true,"newLine":20,"position":20,"content":"+// This method will be called when Electron has finished"},{"type":"add","add":true,"newLine":21,"position":21,"content":"+// initialization and is ready to create browser windows."},{"type":"add","add":true,"newLine":22,"position":22,"content":"+app.on('ready', function() {"},{"type":"add","add":true,"newLine":23,"position":23,"content":"+ // Create the browser window."},{"type":"add","add":true,"newLine":24,"position":24,"content":"+ mainWindow = new BrowserWindow({width: 800, height: 600});"},{"type":"add","add":true,"newLine":25,"position":25,"content":"+"},{"type":"add","add":true,"newLine":26,"position":26,"content":"+ // and load the index.html of the app."},{"type":"add","add":true,"newLine":27,"position":27,"content":"+ mainWindow.loadUrl('file://' + __dirname + '/index.html');"},{"type":"add","add":true,"newLine":28,"position":28,"content":"+"},{"type":"add","add":true,"newLine":29,"position":29,"content":"+ // Open the DevTools."},{"type":"add","add":true,"newLine":30,"position":30,"content":"+ mainWindow.openDevTools();"},{"type":"add","add":true,"newLine":31,"position":31,"content":"+"},{"type":"add","add":true,"newLine":32,"position":32,"content":"+ // Emitted when the window is closed."},{"type":"add","add":true,"newLine":33,"position":33,"content":"+ mainWindow.on('closed', function() {"},{"type":"add","add":true,"newLine":34,"position":34,"content":"+ // Dereference the window object, usually you would store windows"},{"type":"add","add":true,"newLine":35,"position":35,"content":"+ // in an array if your app supports multi windows, this is the time"},{"type":"add","add":true,"newLine":36,"position":36,"content":"+ // when you should delete the corresponding element."},{"type":"add","add":true,"newLine":37,"position":37,"content":"+ mainWindow = null;"},{"type":"add","add":true,"newLine":38,"position":38,"content":"+ });"},{"type":"add","add":true,"newLine":39,"position":39,"content":"+});"}],"oldStart":0,"oldLines":0,"newStart":1,"newLines":39}],"deletions":0,"additions":39,"new":true,"index":["0000000..c596830"]}],"themeScheme":"light","orgSlug":"skz","repoSlug":"tox-client","commitHash":"8113791cebec956796e5a10562b64fa965754f7e"}, "Code$$0": {"code":"@@ -0,0 +1,11 @@\n+\n+\n+ \n+ Hello World!\n+ \n+ \n+

Hello World!

\n+ We are using io.js \n+ and Electron .\n+ \n+\n","language":"diff","themeScheme":"light","style":{"borderTopLeftRadius":8,"borderTopRightRadius":8,"borderBottomLeftRadius":8,"borderBottomRightRadius":8}}, "Code$$1": {"code":"@@ -0,0 +1,39 @@\n+var app = require('app'); // Module to control application life.\n+var BrowserWindow = require('browser-window'); // Module to create native browser window.\n+\n+// Report crashes to our server.\n+require('crash-reporter').start();\n+\n+// Keep a global reference of the window object, if you don't, the window will\n+// be closed automatically when the JavaScript object is garbage collected.\n+var mainWindow = null;\n+\n+// Quit when all windows are closed.\n+app.on('window-all-closed', function() {\n+ // On OS X it is common for applications and their menu bar\n+ // to stay active until the user quits explicitly with Cmd + Q\n+ if (process.platform != 'darwin') {\n+ app.quit();\n+ }\n+});\n+\n+// This method will be called when Electron has finished\n+// initialization and is ready to create browser windows.\n+app.on('ready', function() {\n+ // Create the browser window.\n+ mainWindow = new BrowserWindow({width: 800, height: 600});\n+\n+ // and load the index.html of the app.\n+ mainWindow.loadUrl('file://' + __dirname + '/index.html');\n+\n+ // Open the DevTools.\n+ mainWindow.openDevTools();\n+\n+ // Emitted when the window is closed.\n+ mainWindow.on('closed', function() {\n+ // Dereference the window object, usually you would store windows\n+ // in an array if your app supports multi windows, this is the time\n+ // when you should delete the corresponding element.\n+ mainWindow = null;\n+ });\n+});\n","language":"diff","themeScheme":"light","style":{"borderTopLeftRadius":8,"borderTopRightRadius":8,"borderBottomLeftRadius":8,"borderBottomRightRadius":8}}, }; function afterRevival(revivalResults) { return undefined; } $IslandsRuntime.reviveIslands(islands, islandsProps, islandsEls) .then(afterRevival) .catch(afterRevival); })(IslandsRuntime);