mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-07 21:24:26 +02:00
parent
d1363e0e44
commit
c75405bec9
8 changed files with 9 additions and 5659 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
|
||||||
var AnimationFactory = function() {
|
function AnimationFactory() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,3 +251,4 @@ AnimationFactory.prototype.genFromToSnapshotAnimation = function(
|
||||||
|
|
||||||
exports.AnimationFactory = AnimationFactory;
|
exports.AnimationFactory = AnimationFactory;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
var Commit = require('./git').Commit;
|
|
||||||
var Branch = require('./git').Branch;
|
|
||||||
|
|
||||||
var CommitCollection = Backbone.Collection.extend({
|
var CommitCollection = Backbone.Collection.extend({
|
||||||
model: Commit
|
model: Commit
|
||||||
});
|
});
|
||||||
|
@ -90,9 +87,3 @@ var CommandBuffer = Backbone.Model.extend({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
exports.CommitCollection = CommitCollection;
|
|
||||||
exports.CommandCollection = CommandCollection;
|
|
||||||
exports.BranchCollection = BranchCollection;
|
|
||||||
exports.CommandEntryCollection = CommandEntryCollection;
|
|
||||||
exports.CommandBuffer = CommandBuffer;
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
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;
|
||||||
|
@ -381,7 +379,3 @@ var CommandLineHistoryView = Backbone.View.extend({
|
||||||
this.collection.each(this.addOne);
|
this.collection.each(this.addOne);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
exports.CommandPromptView = CommandPromptView;
|
|
||||||
exports.CommandLineHistoryView = CommandLineHistoryView;
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
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;
|
||||||
|
@ -1627,8 +1624,3 @@ 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,9 +1,4 @@
|
||||||
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,7 +1,3 @@
|
||||||
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;
|
||||||
|
@ -671,5 +667,3 @@ function randomHueString() {
|
||||||
return str;
|
return str;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.Visualization = Visualization;
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue