parent
7c22efcdb0
commit
70a4e9fa08
@ -1,5 +1,5 @@ |
|||||||
/src/logs/ |
/src/logs/ |
||||||
tts_framework/ |
tts_framework/ |
||||||
/src/tmp/ |
/src/tmp/ |
||||||
public/assets/mockup/js/tts.min.js |
/public/assets/mockup/js/tts.min.js |
||||||
public/assets/mockup/js/tts.min.map |
/public/assets/mockup/js/tts.min.map |
||||||
|
|||||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
@ -0,0 +1 @@ |
|||||||
|
/var/www/frames/tts_js/assets/dist/tts.min.map |
||||||
@ -1 +1,14 @@ |
|||||||
alert('hi22'); |
Testing.prototype.loadLeft = function() { |
||||||
|
let dp = new tts.DeferredPromise(); |
||||||
|
console.log("Left"); |
||||||
|
dp.resolve(); |
||||||
|
return dp; |
||||||
|
}; |
||||||
|
Testing.prototype.loadRight = function() { |
||||||
|
let dp = new tts.DeferredPromise(); |
||||||
|
dp.then(val=>{ |
||||||
|
alert(this.name); |
||||||
|
}); |
||||||
|
dp.resolve(); |
||||||
|
return dp; |
||||||
|
}; |
||||||
@ -0,0 +1,29 @@ |
|||||||
|
function Testing(req) { |
||||||
|
this.name = req.params.name; |
||||||
|
tts.when([this.loadLeft(), this.loadRight()]).then(val=>{ |
||||||
|
alert("All DOne"); |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
/* Redirect user if no hash tag was found */ |
||||||
|
if (location.hash == '') { |
||||||
|
location.hash = '#Hello'; |
||||||
|
} |
||||||
|
|
||||||
|
tts.DoCacheAssets = false; |
||||||
|
tts.Router.get('Testing/:name', function(req) { |
||||||
|
tts.getAsset({name: 'testing.js', path: ajax_folder}).then(val=>{ |
||||||
|
var obj = new Testing(req); |
||||||
|
});
|
||||||
|
}); |
||||||
|
|
||||||
|
tts(function() { |
||||||
|
/* |
||||||
|
let dp = new tts.DeferredPromise(); |
||||||
|
dp.then(val=>{ |
||||||
|
alert(val.name); |
||||||
|
}); |
||||||
|
dp.resolve({name: 'Luke'}); |
||||||
|
*
|
||||||
|
*/ |
||||||
|
}); |
||||||
@ -1,8 +0,0 @@ |
|||||||
|
|
||||||
tts.Router.get('Testing/:filter?', function(req) { |
|
||||||
//console.log(req);
|
|
||||||
tts.getAsset({name: 'testing.js', path: '/assets/mockup/ajax/'}); |
|
||||||
}); |
|
||||||
|
|
||||||
tts(function() { |
|
||||||
}); |
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue