var app = app || {}; var WatcherView = Backbone.View.extend({ model: app.Watcher, el: '#canvas', //ServerList: {}, //collection stage: {}, serverLayers: {}, initialize: function(){ console.log('Created main window view...'); //this.ServerList = new app.ServerList(); //this.ServerList.fetch(); this.listenTo(app.Watcher, 'change', function(){ this.updateStage(); this.updateLayers(); this.stage.draw(); }); }, render: function(){ console.log(JSON.stringify(this.model.servers)); }, updateStage: function(){ this.stage = new Kinetic.Stage({ container: 'canvas', width: $('#canvas').width(), height: $('#canvas').height() }); }, updateLayers: function(){ console.log('Updating canvas layers list...'); for (server in this.model.attributes){ this.serverLayers[server] = new Kinetic.Layer(); this.serverLayers[server]._id = server; //this.serverLayers[server].add(); this.stage.add(this.serverLayers[server]); logText('Updating Server: ' + server + '...'); console.log(this.serverLayers[server]); } } }); app.WatcherView = new WatcherView();
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 8378 | Joe Robinson |
- Server modal working. - Simplified backbone data fetching. - Log out of perforce now and not just empty session. - TODO: - Prettier/different icons for each server type. - Modal image and parent/child list. |
||
#4 | 8373 | Joe Robinson |
- Moved to d3 to handle image drawing (SVG). - Proper sessions (logging in/out) implemented. - TODO: Fix server modal style/formatting & populate with data. |
||
#3 | 8371 | Joe Robinson |
Implemented cookies/sessions (still need logout functionality). Cleaned up logging window; delete older messages so new ones do not break the page. |
||
#2 | 8367 | Joe Robinson |
Improve backbone data retrieval functionality (for building canvas nodes). Connect/login modal working almost as desired. Draw basic things on canvas. Preliminary implementation of Redis DB/cookie saving. |
||
#1 | 8362 | Joe Robinson |
Basic backbone functionality. Removed user routes. |