mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
somewhat broken
This commit is contained in:
parent
d7f3653ad9
commit
8d2803e4e4
8 changed files with 5659 additions and 9 deletions
5623
build/bundle.js
5623
build/bundle.js
File diff suppressed because it is too large
Load diff
|
@ -9,7 +9,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// essentially a static class
|
// essentially a static class
|
||||||
function AnimationFactory() {
|
var AnimationFactory = function() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,4 +251,3 @@ AnimationFactory.prototype.genFromToSnapshotAnimation = function(
|
||||||
|
|
||||||
exports.AnimationFactory = AnimationFactory;
|
exports.AnimationFactory = AnimationFactory;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
var Commit = require('./git').Commit;
|
||||||
|
var Branch = require('./git').Branch;
|
||||||
|
|
||||||
var CommitCollection = Backbone.Collection.extend({
|
var CommitCollection = Backbone.Collection.extend({
|
||||||
model: Commit
|
model: Commit
|
||||||
});
|
});
|
||||||
|
@ -87,3 +90,9 @@ var CommandBuffer = Backbone.Model.extend({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
exports.CommitCollection = CommitCollection;
|
||||||
|
exports.CommandCollection = CommandCollection;
|
||||||
|
exports.BranchCollection = BranchCollection;
|
||||||
|
exports.CommandEntryCollection = CommandEntryCollection;
|
||||||
|
exports.CommandBuffer = CommandBuffer;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
var CommandEntryCollection = require('./collections').CommandEntryCollection;
|
||||||
|
|
||||||
var CommandPromptView = Backbone.View.extend({
|
var CommandPromptView = Backbone.View.extend({
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
this.collection = options.collection;
|
this.collection = options.collection;
|
||||||
|
@ -379,3 +381,7 @@ var CommandLineHistoryView = Backbone.View.extend({
|
||||||
this.collection.each(this.addOne);
|
this.collection.each(this.addOne);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
exports.CommandPromptView = CommandPromptView;
|
||||||
|
exports.CommandLineHistoryView = CommandLineHistoryView;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
var animationFactory = new require('./animationFactory').AnimationFactory();
|
||||||
|
console.log('this is what animatioinf actory is', require('./animationFactory'));
|
||||||
|
|
||||||
// backbone or something uses _.uniqueId, so we make our own here
|
// backbone or something uses _.uniqueId, so we make our own here
|
||||||
var uniqueId = (function() {
|
var uniqueId = (function() {
|
||||||
var n = 0;
|
var n = 0;
|
||||||
|
@ -1624,3 +1627,8 @@ var Commit = Backbone.Model.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
exports.GitEngine = GitEngine;
|
||||||
|
exports.Commit = Commit;
|
||||||
|
exports.Branch = Branch;
|
||||||
|
exports.Ref = Ref;
|
||||||
|
|
||||||
|
|
|
@ -135,15 +135,15 @@
|
||||||
<script src="miscViews.js"></script>
|
<script src="miscViews.js"></script>
|
||||||
|
|
||||||
<!-- the beefy git engine -->
|
<!-- the beefy git engine -->
|
||||||
<script src="git.js"></script>
|
<!-- <script src="git.js"></script> -->
|
||||||
|
|
||||||
<!-- command line -->
|
<!-- command line -->
|
||||||
<script src="commandModel.js"></script>
|
<script src="commandModel.js"></script>
|
||||||
<script src="commandViews.js"></script>
|
<!-- <script src="commandViews.js"></script> -->
|
||||||
|
|
||||||
<!-- vis -->
|
<!-- vis -->
|
||||||
<script src="collections.js"></script>
|
<!-- <script src="collections.js"></script> -->
|
||||||
<script src="visuals.js"></script>
|
<!-- <script src="visuals.js"></script> -->
|
||||||
<script src="tree.js"></script>
|
<script src="tree.js"></script>
|
||||||
<!--<script src="animationFactory.js"></script> -->
|
<!--<script src="animationFactory.js"></script> -->
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
var AnimationFactory = require('./animationFactory').AnimationFactory;
|
var AnimationFactory = require('./animationFactory').AnimationFactory;
|
||||||
|
var CommandCollection = require('./collections').CommandCollection;
|
||||||
|
var CommandBuffer = require('./collections').CommandBuffer;
|
||||||
|
var CommandPromptView = require('./commandViews').CommandPromptView;
|
||||||
|
var CommandLineHistoryView = require('./commandViews').CommandLineHistoryView;
|
||||||
|
var Visualization = require('./visuals').Visualization;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Globals
|
* Globals
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
var CommitCollection = require('./collections').CommitCollection;
|
||||||
|
var BranchCollection = require('./collections').BranchCollection;
|
||||||
|
var GitEngine = require('./git').GitEngine;
|
||||||
|
|
||||||
var Visualization = Backbone.View.extend({
|
var Visualization = Backbone.View.extend({
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
@ -667,3 +671,5 @@ function randomHueString() {
|
||||||
return str;
|
return str;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.Visualization = Visualization;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue