mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
ALL converted
This commit is contained in:
parent
66b980fb03
commit
e876ad6109
7 changed files with 586 additions and 444 deletions
1003
build/bundle.js
1003
build/bundle.js
File diff suppressed because it is too large
Load diff
|
@ -1,3 +1,10 @@
|
||||||
|
var Errors = require('./errors');
|
||||||
|
|
||||||
|
var CommandProcessError = Errors.CommandProcessError;
|
||||||
|
var GitError = Errors.GitError;
|
||||||
|
var Warning = Errors.Warning;
|
||||||
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var Command = Backbone.Model.extend({
|
var Command = Backbone.Model.extend({
|
||||||
defaults: {
|
defaults: {
|
||||||
status: 'inqueue',
|
status: 'inqueue',
|
||||||
|
|
|
@ -3,6 +3,9 @@ var Main = require('./main');
|
||||||
var Command = require('./commandModel').Command;
|
var Command = require('./commandModel').Command;
|
||||||
var CommandEntry = require('./commandModel').CommandEntry;
|
var CommandEntry = require('./commandModel').CommandEntry;
|
||||||
|
|
||||||
|
var Errors = require('./errors');
|
||||||
|
var Warning = Errors.Warning;
|
||||||
|
|
||||||
var CommandPromptView = Backbone.View.extend({
|
var CommandPromptView = Backbone.View.extend({
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
this.collection = options.collection;
|
this.collection = options.collection;
|
||||||
|
|
|
@ -19,26 +19,27 @@ var MyError = Backbone.Model.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var CommandProcessError = MyError.extend({
|
var CommandProcessError = exports.CommandProcessError = MyError.extend({
|
||||||
defaults: {
|
defaults: {
|
||||||
type: 'Command Process Error'
|
type: 'Command Process Error'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var CommandResult = MyError.extend({
|
var CommandResult = exports.CommandResult = MyError.extend({
|
||||||
defaults: {
|
defaults: {
|
||||||
type: 'Command Result'
|
type: 'Command Result'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var Warning = MyError.extend({
|
var Warning = exports.Warning = MyError.extend({
|
||||||
defaults: {
|
defaults: {
|
||||||
type: 'Warning'
|
type: 'Warning'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var GitError = MyError.extend({
|
var GitError = exports.GitError = MyError.extend({
|
||||||
defaults: {
|
defaults: {
|
||||||
type: 'Git Error'
|
type: 'Git Error'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,10 @@ var Main = require('./main');
|
||||||
var AnimationQueue = require('./async').AnimationQueue;
|
var AnimationQueue = require('./async').AnimationQueue;
|
||||||
var InteractiveRebaseView = require('./miscViews').InteractiveRebaseView;
|
var InteractiveRebaseView = require('./miscViews').InteractiveRebaseView;
|
||||||
|
|
||||||
|
var Errors = require('./errors');
|
||||||
|
var GitError = Errors.GitError;
|
||||||
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
// 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;
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
<!-- My files! -->
|
<!-- My files! -->
|
||||||
<!-- <script src="async.js"></script> -->
|
<!-- <script src="async.js"></script> -->
|
||||||
<!-- <script src="constants.js"></script> -->
|
<!-- <script src="constants.js"></script> -->
|
||||||
<script src="errors.js"></script>
|
<!-- <script src="errors.js"></script> -->
|
||||||
|
|
||||||
<!-- <script src="miscViews.js"></script> -->
|
<!-- <script src="miscViews.js"></script> -->
|
||||||
|
|
||||||
|
|
|
@ -85,3 +85,5 @@ LevelEngine.prototype.compareTrees = function(treeA, treeB) {
|
||||||
|
|
||||||
var levelEngine = new LevelEngine();
|
var levelEngine = new LevelEngine();
|
||||||
|
|
||||||
|
exports.LevelEngine = LevelEngine;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue