Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies, fix requiest bugs.
- Loading branch information
Jason Fox
committed
Mar 24, 2014
1 parent
f58be2b
commit e060f0e
Showing
7 changed files
with
59 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,30 @@ | ||
<html ng-app="DTOx"> | ||
<head> | ||
<title>DTOx</title> | ||
|
||
<link rel="stylesheet" href="//codemirror.net/lib/codemirror.css"> | ||
<link rel="stylesheet" type="text/css" href="//angular-ui.github.com/angular-ui/build/angular-ui.css"> | ||
<link rel="stylesheet" type="text/css" href="/css/angular-ui.min.css"> | ||
|
||
<link rel="stylesheet" type="text/css" href="http://codemirror.net/theme/vibrant-ink.css"> | ||
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="/css/font-awesome.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/css/app.css"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script> | ||
|
||
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.3/angular.min.js"></script> | ||
<script src="//codemirror.net/lib/codemirror.js"></script> | ||
|
||
|
||
|
||
|
||
|
||
<script src="//codemirror.net/addon/edit/matchbrackets.js"></script> | ||
<script src="//codemirror.net/mode/htmlmixed/htmlmixed.js"></script> | ||
<script src="//codemirror.net/mode/xml/xml.js"></script> | ||
<script src="//codemirror.net/mode/javascript/javascript.js"></script> | ||
<script src="//codemirror.net/mode/css/css.js"></script> | ||
<script src="//codemirror.net/mode/clike/clike.js"></script> | ||
<script src="//codemirror.net/mode/php/php.js"></script> | ||
<script src="//angular-ui.github.com/angular-ui/build/angular-ui.js"></script> | ||
|
||
|
||
|
||
<script src="/js/angular-ui.min.js"></script> | ||
<script src="/js/app.js"></script> | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-37389931-2']); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
</script> | ||
|
||
<!-- start Mixpanel --><script type="text/javascript">(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!== | ||
typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a, | ||
e,d])};b.__SV=1.2}})(document,window.mixpanel||[]); | ||
mixpanel.init("93079fe0b604caba2424c8bff74d9d6f");</script><!-- end Mixpanel --> | ||
|
||
</head> | ||
<body> | ||
<div class="container"> | ||
<a href="https://github.com/jrobertfox/DTOx"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a> | ||
{% block content %} | ||
{% endblock %} | ||
</div> | ||
<script src="//static.getclicky.com/js" type="text/javascript"></script> | ||
<script type="text/javascript">try{ clicky.init(100585853); }catch(e){}</script> | ||
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/100585853ns.gif" /></p></noscript> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,42 @@ | ||
var DTOx = angular.module('DTOx',['ui']); | ||
var DTOx = angular.module('DTOx', ['ui']); | ||
|
||
DTOx.value('ui.config', { | ||
codemirror: { | ||
mode: 'text/x-php', | ||
lineNumbers: true, | ||
matchBrackets: true, | ||
theme: 'vibrant-ink' | ||
} | ||
codemirror: { | ||
mode: 'text/x-php', | ||
lineNumbers: true, | ||
matchBrackets: true, | ||
theme: 'vibrant-ink' | ||
} | ||
}); | ||
|
||
function DTOCtrl($scope, $timeout, $http){ | ||
$scope.dto = {vars: []}; | ||
function DTOCtrl($scope, $timeout, $http) { | ||
$scope.dto = { | ||
vars: [] | ||
}; | ||
|
||
$scope.change = function() { | ||
$scope.change = function () { | ||
var prom = 0; | ||
$timeout.cancel(prom); | ||
prom = $timeout(function(){ | ||
$http.post('/dto/', angular.toJson($scope.dto)).success(function(data){ | ||
var returnData = angular.fromJson(data); | ||
$scope.code = {dto: returnData.dto, test: returnData.test}; | ||
}); | ||
prom = $timeout(function () { | ||
$http.post('/dto/', angular.toJson($scope.dto)).success(function (data) { | ||
var returnData = angular.fromJson(data); | ||
$scope.code = { | ||
dto: returnData.dto, | ||
test: returnData.test | ||
}; | ||
}); | ||
}, 1000); | ||
}; | ||
|
||
$scope.addVar = function() { | ||
$scope.dto.vars.push({name: $scope.varName, type: $scope.varType, testData: $scope.varTestData}); | ||
$scope.varName = ''; | ||
$scope.varType = ''; | ||
$scope.varTestData = ''; | ||
$scope.change(); | ||
$scope.addVar = function () { | ||
$scope.dto.vars.push({ | ||
name: $scope.varName, | ||
type: $scope.varType, | ||
testData: $scope.varTestData | ||
}); | ||
$scope.varName = ''; | ||
$scope.varType = ''; | ||
$scope.varTestData = ''; | ||
$scope.change(); | ||
}; | ||
} |