From 7a606d8f1e9232e724cdb51b99776f8e1245abb9 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 2 Apr 2015 20:40:50 -0700 Subject: [PATCH] redirect large tutorial button to theme tutorials --- Jakefile | 10 +++++++++- editor/hub.ts | 8 ++++++-- vs.sln | 1 + 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Jakefile b/Jakefile index dc0b0bff..57c47954 100644 --- a/Jakefile +++ b/Jakefile @@ -402,8 +402,16 @@ task('clean', [], function () { jake.rmRf('build/'); }); +desc('display info about installed tools') +task('info', [], { async: true }, function () { + var task = this; + jake.exec([ 'tsc --version' ], + { printStdout: true, printStderr: true }, + function() { task.complete(); }); +}); + desc('run local test suite') -task('test', [ 'build/client.js', 'default', 'nw-build' ], { async: true }, function () { +task('test', [ 'info', 'build/client.js', 'default', 'nw-build' ], { async: true }, function () { var task = this; console.log("[I] running tests") jake.exec([ 'node build/client.js buildtest' ], diff --git a/editor/hub.ts b/editor/hub.ts index 97caf547..10c0af8d 100644 --- a/editor/hub.ts +++ b/editor/hub.ts @@ -1094,8 +1094,12 @@ module TDev.Browser { private startTutorialButton(t:Ticks) { - var elt = this.mkFnBtn(lf("Tutorials"), () => { - Util.setHash('#topic:tutorials'); + var elt = this.mkFnBtn(lf("Tutorials"),() => { + var topic = "tutorials"; + var theme = EditorSettings.hubTheme(); + if (theme && theme.tutorialsTopic) + topic = theme.tutorialsTopic; + Util.setHash('#topic:' + topic); }, t, true, 3, dirAuto(div("hubTileOver", lf("Create your own apps")))); if (!Browser.lowMemory) { diff --git a/vs.sln b/vs.sln index 1361b733..355550a5 100644 --- a/vs.sln +++ b/vs.sln @@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ts", "ts", "{DEB60A00-BDAC- CONTRIBUTING.md = CONTRIBUTING.md www\index.html = www\index.html Jakefile = Jakefile + package.json = package.json README.md = README.md tsd.json = tsd.json vsrefs.ts = vsrefs.ts