Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Commit 07b474d

Browse files
committed
Merge pull request #68 from NebulousLabs/build
Build
2 parents 5cc919b + 02d0921 commit 07b474d

25 files changed

+191
-71
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
# Generated Items
2+
release
13
node_modules
2-
build
3-
*.swp
44
npm-debug.log
55
app/config.json
66
app/dependencies
77
doc/Sia-UI
8+
9+
# Vim
10+
*.swp

app/assets/icon.ico

22.3 KB
Binary file not shown.

app/assets/icon.png

3.8 KB
Loading

app/assets/[email protected]

9.36 KB
Loading

app/assets/[email protected]

22.3 KB
Loading

app/assets/logo/logo.png

-21.8 KB
Binary file not shown.
File renamed without changes.

app/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- Header for UI -->
1515
<div class="pure-g header">
1616
<div class="pure-u-1-5 logo-container">
17-
<img src="assets/logo/sia.svg" height="50" class="logo">
17+
<img src="assets/siaLogo.svg" height="50" class="logo">
1818
</div>
1919
<div class='pure-u-4-5 button-container'>
2020
<div class='header-button' id='update-button'>
@@ -45,18 +45,18 @@
4545
</div>
4646
<!-- Javascript -->
4747
<script>
48-
const WebFrame = require("web-frame");
49-
const RendererIPC = require("ipc");
50-
const ElectronScreen = require("screen");
48+
const WebFrame = require('web-frame');
49+
const RendererIPC = require('ipc');
50+
const ElectronScreen = require('screen');
5151
const Process = require('child_process').spawn;
52-
const Path = require("path");
53-
const Fs = require("fs");
54-
const Shell = require("shell");
55-
const $ = require("jquery");
52+
const Path = require('path');
53+
const Fs = require('fs');
54+
const Shell = require('shell');
55+
const $ = require('./js/jquery.min.js');
5656
</script>
57-
<script src="js/daemonManager.js"></script>
58-
<script src="js/pluginManager.js"></script>
59-
<script src="js/uiManager.js"></script>
57+
<script src='js/daemonManager.js'></script>
58+
<script src='js/pluginManager.js'></script>
59+
<script src='js/uiManager.js'></script>
6060
<script>
6161
var UI = new UIManager();
6262
var Daemon = new DaemonManager();

index.js renamed to app/index.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ var mainWindow;
1818
// Creates the window and loads index.html
1919
function startMainWindow() {
2020
// Open the UI with full screen size. 'screen' can only be required after
21-
// app.on('ready')
21+
// app.on('ready')
2222
const ElectronScreen = require('screen');
2323
var size = ElectronScreen.getPrimaryDisplay().workAreaSize;
2424

2525
// Give tray/taskbar icon path
26-
var iconPath = Path.join(__dirname, 'app', 'assets', 'logo', 'logo.png');
26+
var iconPath = Path.join(__dirname, 'assets', 'icon.png');
2727
var appIcon = new Tray(iconPath);
2828
var contextMenu = Menu.buildFromTemplate([
2929
{ label: 'Minimize', accelerator: 'CmdOrCtrl+M', selector: 'performMiniaturize:' },
3030
{ label: "Quit", accelerator: "CmdOrCtrl+Q", selector:'terminate:', click: function() { app.quit();}},
3131
{ type: 'separator' },
3232
{ label: 'Bring All to Front', selector: 'arrangeInFront:' }
3333
]);
34-
appIcon.setToolTip('A highly efficient decentralized storage network.');
34+
appIcon.setToolTip('Sia - The Collaborative Cloud.');
3535

3636
// Create the browser
3737
mainWindow = new BrowserWindow({
38-
'width': size.width,
38+
'width': size.width,
3939
'height': size.height,
40-
'icon': iconPath,
41-
'title': 'Sia-UI'
40+
'icon': iconPath,
41+
'title': 'Sia-UI-beta',
4242
});
4343

4444
// Load the index.html of the app.
45-
mainWindow.loadUrl('file://' + __dirname + '/app/index.html');
45+
mainWindow.loadUrl('file://' + __dirname + '/index.html');
4646

4747
// Emitted when the window is closed.
4848
mainWindow.on('closed', function() {
@@ -61,11 +61,11 @@ function startMainWindow() {
6161
submenu: [
6262
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
6363
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
64-
{ type: "separator" },
64+
{ type: "separator" },
6565
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
6666
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
6767
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
68-
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
68+
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" },
6969
]
7070
}
7171
]);
@@ -82,7 +82,6 @@ App.on('window-all-closed', function() {
8282
// When Electron loading has finished, start the daemon then the UI
8383
App.on('ready', startMainWindow);
8484

85-
// TODO: Set up to work with files plugin
8685
// Listen for if the renderer process wants to produce a dialog message
8786
MainIPC.on('dialog', function(event, type, options) {
8887
var response;

app/js/bignumber.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)