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
1001
build/bundle.js
1001
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({
|
||||
defaults: {
|
||||
status: 'inqueue',
|
||||
|
|
|
@ -3,6 +3,9 @@ var Main = require('./main');
|
|||
var Command = require('./commandModel').Command;
|
||||
var CommandEntry = require('./commandModel').CommandEntry;
|
||||
|
||||
var Errors = require('./errors');
|
||||
var Warning = Errors.Warning;
|
||||
|
||||
var CommandPromptView = Backbone.View.extend({
|
||||
initialize: function(options) {
|
||||
this.collection = options.collection;
|
||||
|
|
|
@ -19,26 +19,27 @@ var MyError = Backbone.Model.extend({
|
|||
}
|
||||
});
|
||||
|
||||
var CommandProcessError = MyError.extend({
|
||||
var CommandProcessError = exports.CommandProcessError = MyError.extend({
|
||||
defaults: {
|
||||
type: 'Command Process Error'
|
||||
}
|
||||
});
|
||||
|
||||
var CommandResult = MyError.extend({
|
||||
var CommandResult = exports.CommandResult = MyError.extend({
|
||||
defaults: {
|
||||
type: 'Command Result'
|
||||
}
|
||||
});
|
||||
|
||||
var Warning = MyError.extend({
|
||||
var Warning = exports.Warning = MyError.extend({
|
||||
defaults: {
|
||||
type: 'Warning'
|
||||
}
|
||||
});
|
||||
|
||||
var GitError = MyError.extend({
|
||||
var GitError = exports.GitError = MyError.extend({
|
||||
defaults: {
|
||||
type: 'Git Error'
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -4,6 +4,10 @@ var Main = require('./main');
|
|||
var AnimationQueue = require('./async').AnimationQueue;
|
||||
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
|
||||
var uniqueId = (function() {
|
||||
var n = 0;
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
<!-- My files! -->
|
||||
<!-- <script src="async.js"></script> -->
|
||||
<!-- <script src="constants.js"></script> -->
|
||||
<script src="errors.js"></script>
|
||||
<!-- <script src="errors.js"></script> -->
|
||||
|
||||
<!-- <script src="miscViews.js"></script> -->
|
||||
|
||||
|
|
|
@ -85,3 +85,5 @@ LevelEngine.prototype.compareTrees = function(treeA, treeB) {
|
|||
|
||||
var levelEngine = new LevelEngine();
|
||||
|
||||
exports.LevelEngine = LevelEngine;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue