This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gordon Hall
committed
Nov 27, 2015
1 parent
6a00060
commit 501b0f1
Showing
19 changed files
with
226 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* @module drivshare-gui/client | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// load helpers | ||
require('./lib/electron_boilerplate/external_links'); | ||
|
||
// load application | ||
require('./lib/views'); | ||
// require('./lib/userdata').init(); | ||
// require('./lib/process').init(); | ||
// require('./lib/setup').init(); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/** | ||
* @module driveshare-gui/views | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var ipc = require('electron-safe-ipc/guest'); | ||
var shell = require('shell'); | ||
var about = require('../package'); | ||
var $ = window.jQuery = require('jquery'); | ||
var bootstrap = require('bootstrap'); | ||
var Vue = require('vue'); | ||
|
||
var logger = require('./logger'); | ||
var Updater = require('./updater').Updater; | ||
|
||
/** | ||
* Logger View | ||
*/ | ||
var logs = new Vue({ | ||
el: '#logs', | ||
data: { | ||
output: '' | ||
}, | ||
methods: { | ||
show: function(event) { | ||
if (event) { | ||
event.preventDefault(); | ||
} | ||
|
||
$('#logs').modal('show'); | ||
} | ||
}, | ||
created: function() { | ||
var view = this; | ||
|
||
logger.on('log', function() { | ||
view.output = logger._output; | ||
}); | ||
|
||
ipc.on('showLogs', this.show.bind(this)); | ||
} | ||
}); | ||
|
||
/** | ||
* About View | ||
*/ | ||
var about = new Vue({ | ||
el: '#about', | ||
data: { | ||
version: about.version | ||
}, | ||
methods: { | ||
show: function(event) { | ||
if (event) { | ||
event.preventDefault(); | ||
} | ||
|
||
$('#about').modal('show'); | ||
} | ||
}, | ||
created: function() { | ||
var view = this; | ||
|
||
ipc.on('showAboutDialog', function() { | ||
view.show(); | ||
}); | ||
} | ||
}); | ||
|
||
/** | ||
* Updater View | ||
*/ | ||
var updater = new Vue({ | ||
el: '#updater', | ||
data: { | ||
update: false | ||
}, | ||
methods: { | ||
download: function(event) { | ||
if (event) { | ||
event.preventDefault(); | ||
} | ||
|
||
shell.openExternal('https://github.com/Storj/driveshare-gui/releases'); | ||
} | ||
}, | ||
created: function() { | ||
var view = this; | ||
var updater = new Updater(); | ||
|
||
updater.on('update_available', function() { | ||
view.update = true; | ||
}); | ||
} | ||
}); | ||
|
||
/** | ||
* Footer View | ||
*/ | ||
var footer = new Vue({ | ||
el: '#footer', | ||
data: {}, | ||
methods: { | ||
showLogs: function(event) { | ||
if (event) { | ||
event.preventDefault(); | ||
} | ||
|
||
logs.show(); | ||
} | ||
} | ||
}); | ||
|
||
/** | ||
* Expose view objects | ||
* #exports | ||
*/ | ||
module.exports = { | ||
logs: logs, | ||
updater: updater, | ||
about: about, | ||
footer: footer | ||
}; |
Oops, something went wrong.