Skip to content

Commit

Permalink
GiG.fs v0.2.x and Local Only for Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislas Polu committed May 14, 2014
1 parent 845df37 commit 0da6442
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 352 deletions.
3 changes: 1 addition & 2 deletions NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@

>>>v0.x<<<

TODO(spolu): Alpha Login Manager (out of session) (enter URL/Master)
TODO(spolu): Session Management (when not logged)

TODO(spolu): Onboarding (Networked, no module yet)
TODO(spolu): InMemory Sessions (default modules?)
TODO(spolu): Two phase initialization for modules (`init`, then `start`)
TODO(spolu): Session Management API (to expose to modules)
TODO(spolu): Full-featured Login Manager (Auto Login, UI)


DONE:

>>v0.3<<
- GiG.fs 0.3x integration / local table only (alpha)
- Basic Web Interface for Modules (Install, Remove)
- Splash Screen (loading state + link to module manager)
- `core_ui` for all things UI-related of `core` (serving pages)
Expand Down
23 changes: 19 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @author: spolu
*
* @log:
* - 2014-05-14 spolu [GiG.fs 0.2.x] local only
* - 2014-04-17 spolu Removed monolithic session
* - 2014-04-15 spolu Try outs with session_manager
* - 2014-01-17 spolu Removed express, exposed module
Expand Down Expand Up @@ -45,12 +46,26 @@ var breach_start = function() {
}
});

// http://localhost:3999/user/1/
// foobar
require('./lib/login_manager').login_manager({}).init(function(err) {
var session_manager = require('./lib/session_manager.js').session_manager({
off_the_record: false
});
async.waterfall([
session_manager.init,
session_manager.list_sessions,
function(sessions, cb_) {
if(Object.keys(sessions).length === 0) {
session_manager.new_session(false, 'Alpha Session', cb_);
}
else {
return cb_(null, Object.keys(sessions)[0]);
}
},
session_manager.open_session
], function(err) {
if(err) {
common.log.error(err);
common.fatal(err);
}
common.log.out('Startup Complete');
});
};

Expand Down
2 changes: 1 addition & 1 deletion lib/core_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ var core_module = function(spec, my) {
});

my.exo_browser.set_title('Breach');
my.exo_browser.maximize();
//my.exo_browser.maximize();
my.exo_browser.focus();

my.exo_browser.on('frame_created', browser_frame_created);
Expand Down
226 changes: 0 additions & 226 deletions lib/login_manager.js

This file was deleted.

19 changes: 11 additions & 8 deletions lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
* @author: spolu
*
* @log:
* 2014-04-11 spolu GiG.fs Integration
* 2014-01-17 spolu New Init/RunModules API
* 2013-11-14 spolu FMA refactoring
* 2013-10-21 spolu Cookie Store integration for v0.1
* 2013-09-05 spolu Fix exo_browser/#56
* 2013-08-12 spolu Creation
* - 2014-05-14 spolu [GiG.fs 0.2.x] local only
* - 2014-04-11 spolu GiG.fs Integration
* - 2014-01-17 spolu New Init/RunModules API
* - 2013-11-14 spolu FMA refactoring
* - 2013-10-21 spolu Cookie Store integration for v0.1
* - 2013-09-05 spolu Fix exo_browser/#56
* - 2013-08-12 spolu Creation
*/
"use strict"

Expand Down Expand Up @@ -47,8 +48,10 @@ var session = function(spec, my) {
path.join(api.data_path('breach'), 'sessions', my.session_id);

my.gig = spec.gig || require('gig.fs').gig({
in_memory: true,
in_memory_channels: ['core']
local_table: {
'core': [ { storage_path: null } ],
'modules': [ { storage_path: null } ]
}
});
my.core_module = null;
my.module_manager = null;
Expand Down
Loading

0 comments on commit 0da6442

Please sign in to comment.