fixed vis for remote git demonstration views

This commit is contained in:
Peter Cottle 2013-07-27 14:51:04 -07:00
parent 082f3c561a
commit 740a94ccf6
5 changed files with 29 additions and 9 deletions

View file

@ -6826,6 +6826,12 @@ var Visualization = Backbone.View.extend({
treeString: options.treeString
}
));
// if the z index is set on ours, carry that over
this.originVis.customEvents.on('paperReady', _.bind(function() {
var value = $(this.paper.canvas).css('z-index');
this.originVis.setTreeIndex(value);
}, this));
// return the newly created visualization which will soon have a git engine
return this.originVis;
},
@ -21593,9 +21599,9 @@ require.define("/levels/remote/clone.js",function(require,module,exports,__dirna
"",
"- First and foremost, they serve as a great backup! Git repositories obviously have the ability to restore files, but they rely on the filesystem working being in a valid state. Even if your entire laptop blows, your remote repositories will still work great.",
"",
"- They make coding social! Now that a copy of your project is hosted elsewhere, your friends can contribute to your project (or pull in your latest changes) very easily.",
"- They also make coding social! Now that a copy of your project is hosted elsewhere, your friends can contribute to your project (or pull in your latest changes) very easily.",
"",
"It's become very popular to use UI wrappers around remote repos (like [Github](https://github.com/) or [Phabricator](http://phabricator.org/)) but remote repositories _always_ serve as the underlying backbone for these tools. So it's important to understand them!"
"It's become very popular to use websites that visualize activity around remote repos (like [Github](https://github.com/) or [Phabricator](http://phabricator.org/)), but remote repositories _always_ serve as the underlying backbone for these tools. So it's important to understand them!"
]
}
},
@ -21605,14 +21611,14 @@ require.define("/levels/remote/clone.js",function(require,module,exports,__dirna
"beforeMarkdowns": [
"Lets start slow and just look at what a remote repository looks like (in our visualization).",
"",
"`git clone` is the command you'll use to create _local_ copies of remote repositories (from github say), but we use it here to simply launch the visualization into a state where there's a remote and local copy.",
"`git clone` (in the real world) is the command you'll use to create _local_ copies of remote repositories (from github say), but we use it here to simply launch the visualization into a state where there's a remote and local copy.",
"",
"",
"",
""
],
"afterMarkdowns": [
"There it is! Now we have a remote repository of our project"
"There it is! Now we have a remote repository of our project. It looks pretty similar except for some visual changes to make the distinction apparent"
],
"command": "git clone",
"beforeCommand": ""
@ -35243,6 +35249,12 @@ var Visualization = Backbone.View.extend({
treeString: options.treeString
}
));
// if the z index is set on ours, carry that over
this.originVis.customEvents.on('paperReady', _.bind(function() {
var value = $(this.paper.canvas).css('z-index');
this.originVis.setTreeIndex(value);
}, this));
// return the newly created visualization which will soon have a git engine
return this.originVis;
},
@ -38763,9 +38775,9 @@ require.define("/src/levels/remote/clone.js",function(require,module,exports,__d
"",
"- First and foremost, they serve as a great backup! Git repositories obviously have the ability to restore files, but they rely on the filesystem working being in a valid state. Even if your entire laptop blows, your remote repositories will still work great.",
"",
"- They make coding social! Now that a copy of your project is hosted elsewhere, your friends can contribute to your project (or pull in your latest changes) very easily.",
"- They also make coding social! Now that a copy of your project is hosted elsewhere, your friends can contribute to your project (or pull in your latest changes) very easily.",
"",
"It's become very popular to use UI wrappers around remote repos (like [Github](https://github.com/) or [Phabricator](http://phabricator.org/)) but remote repositories _always_ serve as the underlying backbone for these tools. So it's important to understand them!"
"It's become very popular to use websites that visualize activity around remote repos (like [Github](https://github.com/) or [Phabricator](http://phabricator.org/)), but remote repositories _always_ serve as the underlying backbone for these tools. So it's important to understand them!"
]
}
},
@ -38775,14 +38787,14 @@ require.define("/src/levels/remote/clone.js",function(require,module,exports,__d
"beforeMarkdowns": [
"Lets start slow and just look at what a remote repository looks like (in our visualization).",
"",
"`git clone` is the command you'll use to create _local_ copies of remote repositories (from github say), but we use it here to simply launch the visualization into a state where there's a remote and local copy.",
"`git clone` (in the real world) is the command you'll use to create _local_ copies of remote repositories (from github say), but we use it here to simply launch the visualization into a state where there's a remote and local copy.",
"",
"",
"",
""
],
"afterMarkdowns": [
"There it is! Now we have a remote repository of our project"
"There it is! Now we have a remote repository of our project. It looks pretty similar except for some visual changes to make the distinction apparent"
],
"command": "git clone",
"beforeCommand": ""

File diff suppressed because one or more lines are too long

1
build/bundle.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -434,7 +434,7 @@
For a much easier time perusing the source, see the individual files at:
https://github.com/pcottle/learnGitBranching
-->
<script src="build/bundle.js"></script>
<script src="build/bundle.min.9253686e.js"></script>
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
The downside? No raw logs to parse for analytics, so I have to include

View file

@ -105,6 +105,12 @@ var Visualization = Backbone.View.extend({
treeString: options.treeString
}
));
// if the z index is set on ours, carry that over
this.originVis.customEvents.on('paperReady', _.bind(function() {
var value = $(this.paper.canvas).css('z-index');
this.originVis.setTreeIndex(value);
}, this));
// return the newly created visualization which will soon have a git engine
return this.originVis;
},