mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
one more converted
This commit is contained in:
parent
7ef0d19e12
commit
6ad4d17b82
6 changed files with 4168 additions and 3492 deletions
7647
build/bundle.js
7647
build/bundle.js
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,8 @@
|
|||
var Commit = require('./git').Commit;
|
||||
var Branch = require('./git').Branch;
|
||||
var Main = require('./main');
|
||||
var Command = require('./commandModel').Command;
|
||||
var CommandEntry = require('./commandModel').CommandEntry;
|
||||
|
||||
var CommitCollection = Backbone.Collection.extend({
|
||||
model: Commit
|
||||
|
|
|
@ -355,3 +355,7 @@ var CommandEntry = Backbone.Model.extend({
|
|||
localStorage: new Backbone.LocalStorage('CommandEntries')
|
||||
});
|
||||
|
||||
|
||||
exports.CommandEntry = CommandEntry;
|
||||
exports.Command = Command;
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
var CommandEntryCollection = require('./collections').CommandEntryCollection;
|
||||
var Main = require('./main');
|
||||
var Command = require('./commandModel').Command;
|
||||
var CommandEntry = require('./commandModel').CommandEntry;
|
||||
|
||||
var CommandPromptView = Backbone.View.extend({
|
||||
initialize: function(options) {
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
<!-- <script src="git.js"></script> -->
|
||||
|
||||
<!-- command line -->
|
||||
<script src="commandModel.js"></script>
|
||||
<!-- <script src="commandModel.js"></script> -->
|
||||
<!-- <script src="commandViews.js"></script> -->
|
||||
|
||||
<!-- vis -->
|
||||
|
|
|
@ -4,8 +4,6 @@ var Collections = require('./collections');
|
|||
var CommitCollection = Collections.CommitCollection;
|
||||
var BranchCollection = Collections.BranchCollection;
|
||||
|
||||
var GitEngine = require('./git').GitEngine;
|
||||
|
||||
var Tree = require('./tree');
|
||||
var VisEdgeCollection = Tree.VisEdgeCollection;
|
||||
var VisBranchCollection = Tree.VisBranchCollection;
|
||||
|
@ -37,6 +35,7 @@ var Visualization = Backbone.View.extend({
|
|||
paper: this.paper
|
||||
});
|
||||
|
||||
var GitEngine = require('./git').GitEngine;
|
||||
this.gitEngine = new GitEngine({
|
||||
collection: this.commitCollection,
|
||||
branches: this.branchCollection,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue