Browse Source

add temp ssbplug-phoenix loader index.html

Paul Frazee 5 years ago
parent
commit
8a0c9db0fd
2 changed files with 27 additions and 2 deletions
  1. 26
    0
      app/index.html
  2. 1
    2
      app/index.js

+ 26
- 0
app/index.html View File

@@ -0,0 +1,26 @@
1
+<!DOCTYPE html>
2
+<html>
3
+  <head>
4
+    <title>Scuttlebutt</title>
5
+    <meta charset="utf-8">
6
+    <link rel="shortcut icon" type="image/png" href="../node_modules/scuttlebot/node_modules/ssbplug-phoenix/img/icon.png"/>
7
+    <link rel="stylesheet" type="text/css" href="../node_modules/scuttlebot/node_modules/ssbplug-phoenix/css/home.css">
8
+    <link rel="stylesheet" type="text/css" href="../node_modules/scuttlebot/node_modules/ssbplug-phoenix/css/sweet-alert.css">
9
+  </head>
10
+  <body>
11
+    <div id="app-status"></div>
12
+    <div id="please-wait">
13
+      <div class="spinner">
14
+        <div class="cube1"></div>
15
+        <div class="cube2"></div>
16
+      </div>
17
+    </div>
18
+    <div id="page-nav"></div>
19
+    <div id="page-container"></div>
20
+    <script src="http://localhost:8008/manifest.js"></script>
21
+    <script src="../node_modules/scuttlebot/node_modules/ssbplug-phoenix/js/sweet-alert.js"></script>
22
+    <script src="../node_modules/scuttlebot/node_modules/ssbplug-phoenix/js/canvas-to-blob.js"></script>
23
+    <script src="../node_modules/scuttlebot/node_modules/ssbplug-phoenix/js/sigma.min.js"></script>
24
+    <script src="../node_modules/scuttlebot/node_modules/ssbplug-phoenix/js/home.js"></script>
25
+  </body>
26
+</html>

+ 1
- 2
app/index.js View File

@@ -19,9 +19,8 @@ app.on('ready', function ready () {
19 19
     require('protocol').registerProtocol('ext', require('./lib/ext-protocol')(config))
20 20
 
21 21
     // open the web app
22
-    // shell.openExternal('http://localhost:8008')
23 22
     mainWindow = new BrowserWindow({width: 1000, height: 720})
24
-    mainWindow.loadUrl('http://localhost:8008')
23
+    mainWindow.loadUrl('file://' + __dirname + '/index.html')
25 24
     mainWindow.on('closed', function() { mainWindow = null })
26 25
 
27 26
     // setup menu

Loading…
Cancel
Save