Browse Source

[core] Updated the list of available tours

Enrico Berti 10 years ago
parent
commit
28dbc07

+ 3 - 2
desktop/core/src/desktop/static/desktop/js/jquery.tour.js

@@ -121,7 +121,7 @@
   Plugin.prototype.initQuestionMark = function () {
     var _this = this;
     $("#jHueTourFlag").remove();
-    var _questionMark = $("<a>").attr("id", "jHueTourFlag").html('<i class="fa fa-flag-checkered" style=""></i>');
+    var _questionMark = $("<a>").attr("id", "jHueTourFlag").addClass("pointer").html('<i class="fa fa-flag-checkered" style=""></i>');
     _questionMark.tooltip({
       placement: "bottom",
       title: _this.options.labels.TOOLTIP_TITLE
@@ -211,6 +211,7 @@
       if ($(".popover").position().top <= 0) {
         $(".popover").css("top", "10px");
       }
+
       _closeBtn.prependTo($(".popover-title"));
 
       $(document).on("keyup", function (e) {
@@ -255,7 +256,7 @@
   Plugin.prototype.performOperation = function (operation) {
     var _this = this;
     var _op = operation.toLowerCase();
-    if (_op.indexOf("http:") == 0) {
+    if (_op.indexOf("http:") == 0 || _op.indexOf("https:") == 0) {
       $("#jHueTourRemoteTutorial").attr("disabled", "disabled");
       $("#jHueTourRemoteTutorialBtn").attr("disabled", "disabled");
       $.ajax({

+ 111 - 279
desktop/core/src/desktop/templates/tours.mako

@@ -18,285 +18,117 @@ from django.utils.translation import ugettext as _
 %>
 
 <script type="text/javascript">
-$.jHueTour({
-  "tours": [
-    {
-      "name": "thehueblog",
-      "desc": "${_("The Hue Blog")}",
-      "path": "/",
-      "video": "",
-      "blog": "http://gethue.com/blog/"
-    },
-    {"name": "huehomedoc", "desc": "${_("Get started!")}", "path": "/home", "steps": [
-      {"arrowOn": ".currentApp", "expose": ".navbar-fixed-top", "title": "${_("Your new home.")}", "content": "${_("This is where you can access all your documents and you can tag them per project. Your home is always reachable from any part of Hue, just click on the house icon on the top navigator bar.")}", "placement": "bottom", "onShown": "", "waitForAction": false, "left": 90},
-      {"arrowOn": ".sidebar-nav", "expose": ".sidebar-nav", "title": "${_("Actions and projects")}", "content": "${_("From here you can create new documents or see a specific project or any trashed document for instance.")}", "placement": "right", "onShown": "", "waitForAction": false},
-      {"arrowOn": ".tag-header:eq(0)", "expose": ".tag-header:eq(0)", "title": "${_("Organize!")}", "content": "${_("You can organize your documents in projects and filter them out in this area. It's a smart and fast way to focus on a specific project you are currently tackling.")}", "placement": "right", "onShown": "", "waitForAction": false},
-      {"arrowOn": ".card-home", "expose": ".card-home", "title": "${_("Your documents")}", "content": "${_("You can always have a glance at your hard work. This is the list of all your documents, The first column tells you the kind of document that is, then you can find its name, a description and some other fields.")}", "placement": "left", "onShown": "", "waitForAction": false, "top": "60px", "left": 40},
-      {"arrowOn": ".datatables tr th:nth-child(4)", "expose": ".datatables tr td:nth-child(4)", "title": "${_("Projects")}", "content": "${_("You can assign one or more projects to a document just by clicking in this cell.")}", "placement": "top", "onShown": "", "waitForAction": false, "top": -20},
-      {"arrowOn": ".datatables tr th:nth-child(7)", "expose": ".datatables tr td:nth-child(7)", "title": "${_("Share your documents")}", "content": "${_("You can also share a document you have worked on with a specific user or a group of users. Just click on the icon in this column on every document you want to share and choose users and groups from the popup.")}", "placement": "left", "onShown": "", "waitForAction": false, "top": -20},
-      {"arrowOn": "#filterInput", "expose": "#filterInput", "title": "${_("Search your documents")}", "content": "${_("You can always filter out the documents by name, description or even owner. Enjoy your new home!")}", "placement": "left", "onShown": "", "waitForAction": false, "top": -10}
+  $.jHueTour({
+    "tours": [
+      {"name": "huehomedoc", "desc": "${_("Get started!")}", "path": "/home", "steps": [
+        {"arrowOn": ".currentApp", "expose": ".navbar-fixed-top", "title": "${_("Your new home.")}", "content": "${_("This is where you can access all your documents and you can tag them per project. Your home is always reachable from any part of Hue, just click on the house icon on the top navigator bar.")}", "placement": "bottom", "onShown": "", "waitForAction": false, "left": 90},
+        {"arrowOn": ".sidebar-nav", "expose": ".sidebar-nav", "title": "${_("Actions and projects")}", "content": "${_("From here you can create new documents or see a specific project or any trashed document for instance.")}", "placement": "right", "onShown": "", "waitForAction": false},
+        {"arrowOn": ".tag-mine-header:eq(0)", "expose": ".tag-mine-header:eq(0)", "title": "${_("Organize!")}", "content": "${_("You can organize your documents in projects and filter them out in this area. It's a smart and fast way to focus on a specific project you are currently tackling.")}", "placement": "right", "onShown": "", "waitForAction": false},
+        {"arrowOn": ".card-home", "expose": ".card-home", "title": "${_("Your documents")}", "content": "${_("You can always have a glance at your hard work. This is the list of all your documents, The first column tells you the kind of document that is, then you can find its name, a description and some other fields.")}", "placement": "left", "onShown": "", "waitForAction": false, "top": "60px", "left": 40},
+        {"arrowOn": "#documents > tbody > tr:nth-child(1) > td:nth-child(5)", "expose": "#documents > tbody > tr:nth-child(1) > td:nth-child(5)", "title": "${_("Projects")}", "content": "${_("You can assign one or more projects to a document just by clicking in this cell.")}", "placement": "top", "onShown": "", "waitForAction": false, "top": -20},
+        {"arrowOn": "#documents > tbody > tr:nth-child(1) > td:nth-child(6)", "title": "${_("Share your documents")}", "content": "${_("You can also share a document you have worked on with a specific user or a group of users. Just click on the icon in this column on every document you want to share and choose users and groups from the popup.")}", "placement": "left", "onShown": "", "waitForAction": false, "top": -20},
+        {"arrowOn": "#searchInput", "expose": "#searchInput", "title": "${_("Search your documents")}", "content": "${_("You can always filter out the documents by name, description or even owner. Enjoy your new home!")}", "placement": "left", "onShown": "", "waitForAction": false, "top": -10}
+      ]
+      },
+      {
+        "name": "genericapp00",
+        "desc": "${_("Read more on the Hue blog")}",
+        "path": "/(jobsub|useradmin|help|about)",
+        "video": "",
+        "blog": "http://gethue.com/blog/"
+      },
+      {
+        "name": "beeswaxapp00",
+        "desc": "${_("Hue blog: Hive")}",
+        "path": "/(beeswax|metastore)",
+        "video": "",
+        "blog": "http://gethue.com/category/hive/"
+      },
+      {
+        "name": "impalaapp00",
+        "desc": "${_("Hue blog: Impala")}",
+        "path": "/(impala|metastore)",
+        "video": "",
+        "blog": "http://gethue.com/category/impala/"
+      },
+      {
+        "name": "beeswaxapp00",
+        "desc": "${_("Hue blog: DB Query")}",
+        "path": "/(rdbms)",
+        "video": "",
+        "blog": "http://gethue.com/category/dbquery/"
+      },
+      {
+        "name": "pigapp00",
+        "desc": "${_("Hue blog: Pig")}",
+        "path": "/(pig)",
+        "video": "",
+        "blog": "http://gethue.com/category/pig/"
+      },
+      {
+        "name": "sparkapp00",
+        "desc": "${_("Hue blog: Spark")}",
+        "path": "/(spark)",
+        "video": "",
+        "blog": "http://gethue.com/category/spark/"
+      },
+      {
+        "name": "hbaseapp00",
+        "desc": "${_("Hue blog: HBase")}",
+        "path": "/(hbase)",
+        "video": "",
+        "blog": "http://gethue.com/category/hbase/"
+      },
+      {
+        "name": "sqoopapp00",
+        "desc": "${_("Hue blog: Sqoop")}",
+        "path": "/(sqoop)",
+        "video": "",
+        "blog": "http://gethue.com/category/sqoop/"
+      },
+      {
+        "name": "zookeeperapp00",
+        "desc": "${_("Hue blog: Zookeeper")}",
+        "path": "/(zookeeper)",
+        "video": "",
+        "blog": "http://gethue.com/category/zookeeper/"
+      },
+      {
+        "name": "oozieapp00",
+        "desc": "${_("Hue blog: Oozie")}",
+        "path": "/(oozie)",
+        "video": "",
+        "blog": "http://gethue.com/category/oozie/"
+      },
+      {
+        "name": "oozieapp00",
+        "desc": "${_("Hue blog: Search")}",
+        "path": "/(search)",
+        "video": "",
+        "blog": "http://gethue.com/category/search/"
+      },
+      {
+        "name": "sentryapp00",
+        "desc": "${_("Hue blog: Security")}",
+        "path": "/(security)",
+        "video": "",
+        "blog": "http://gethue.com/category/security/"
+      },
+      {
+        "name": "fbapp00",
+        "desc": "${_("Hue blog: HDFS")}",
+        "path": "/(filebrowser)",
+        "video": "",
+        "blog": "http://gethue.com/category/hdfs/"
+      },
+      {
+        "name": "jbapp00",
+        "desc": "${_("Hue blog: Job Browser")}",
+        "path": "/(jobbrowser)",
+        "video": "",
+        "blog": "http://gethue.com/category/jobbrowser/"
+      }
     ]
-    },
-    {
-      "name": "hiveheaders",
-      "desc": "${_("Create Hive tables and load quoted")}<br/>${_("CSV data")}",
-      "path": "/beeswax",
-      "video": "http://player.vimeo.com/video/80460405",
-      "blog": "http://gethue.com/hadoop-tutorial-create-hive-tables-with-headers-and/"
-    },
-    {
-      "name": "fbooziesubmit",
-      "desc": "${_("Submit any Oozie jobs directly")}<br/>${_("from HDFS")}",
-      "path": "/(oozie|filebrowser)",
-      "video": "http://player.vimeo.com/video/80749790",
-      "blog": "http://gethue.com/hadoop-tutorial-submit-any-oozie-jobs-directly-from/"
-    },
-    {
-      "name": "zookeeper",
-      "desc": "${_("ZooKeeper Browser")}",
-      "path": "/zookeeper",
-      "video": "http://player.vimeo.com/video/79795356",
-      "blog": "http://gethue.com/new-zookeeper-browser-app/"
-    },
-    {
-      "name": "dbquery",
-      "desc": "${_("Query your Databases")}",
-      "path": "/rdbms",
-      "video": "http://player.vimeo.com/video/79020016",
-      "blog": "http://gethue.com/dbquery-app-mysql-postgresql-oracle-and-sqlite-query/"
-    },
-    {
-      "name": "searchgraph",
-      "desc": "${_("Graphical facets")}",
-      "path": "/search",
-      "video": "http://player.vimeo.com/video/78887745",
-      "blog": "http://gethue.com/new-search-feature-graphical-facets/"
-    },
-    {
-      "name": "impalasentry",
-      "desc": "${_("Use Impala with Sentry")}",
-      "path": "/impala",
-      "video": "",
-      "blog": "http://gethue.com/use-the-impala-app-with-sentry-for-real-security/"
-    },
-    {
-      "name": "ooziefb",
-      "desc": "${_("Submit Oozie jobs directly from HDFS")}",
-      "path": "/(oozie|filebrowser)",
-      "video": "http://player.vimeo.com/video/80749790",
-      "blog": "http://gethue.tumblr.com/post/68781982681/hadoop-tutorial-submit-any-oozie-jobs-directly-from"
-    },
-    {
-      "name": "jbyarn",
-      "desc": "${_("A Job Browser for Yarn")}",
-      "path": "/jobbrowser",
-      "video": "http://player.vimeo.com/video/84027054",
-      "blog": "http://gethue.com/using-hadoop-mr2-and-yarn-with-an-alternative-job/"
-    },
-    {
-      "name": "jbyarnsecurity",
-      "desc": "${_("Security with Yarn")}",
-      "path": "/jobbrowser",
-      "video": "http://player.vimeo.com/video/85922379",
-      "blog": "http://gethue.com/secure-your-yarn-cluster-and-access-the-jobs/"
-    },
-    {
-      "name": "sentry",
-      "desc": "${_("Hive Query editor with HiveServer2")}<br/>${_("and Sentry")}",
-      "path": "/(beeswax|impala)",
-      "video": "http://player.vimeo.com/video/79883574",
-      "blog": "http://gethue.com/hadoop-tutorial-hive-query-editor-with-hiveserver2-and/"
-    },
-    {
-      "name": "superproxy",
-      "desc": "${_("Integrate external Web applications in")}<br/>${_("any language")}",
-      "path": "/about",
-      "video": "http://player.vimeo.com/video/79178858",
-      "blog": "http://gethue.com/integrate-external-web-applications-in-any-language/"
-    },
-    {
-      "name": "season2",
-      "desc": "${_("Season 2 of Hadoop Video Tutorials")}",
-      "path": "/",
-      "video": "",
-      "blog": "http://gethue.com/category/season2/"
-    },
-    {
-      "name": "twitter",
-      "desc": "${_("Analyze Twitter data")}",
-      "path": "/home",
-      "video": "",
-      "blog": "http://gethue.com/how-to-analyze-twitter-data-with-hue/"
-    },
-    {
-      "name": "pigudf",
-      "desc": "${_("Preparing Yelp data for analysis with")}<br/>${_("Pig and Python UDF")}",
-      "path": "/(home|pig|filebrowser|metastore)",
-      "video": "http://player.vimeo.com/video/73849021",
-      "blog": "http://gethue.com/hadoop-tutorials-ii-1-prepare-the-data-for-analysis/"
-    },
-    {
-      "name": "hue35",
-      "desc": "${_("What's new in Hue 3.5")}",
-      "path": "/(about|home)",
-      "video": "",
-      "blog": "http://gethue.com/hue-3-5-and-its-redesign-are-out/"
-    },
-    {
-      "name": "saml",
-      "desc": "${_("SSO with SAML")}",
-      "path": "/(useradmin|about)",
-      "video": "http://player.vimeo.com/video/76063637",
-      "blog": "http://gethue.com/sso-with-hue-new-saml-backend/"
-    },
-    {
-      "name": "ldaphowto",
-      "desc": "${_("Integrating your company with LDAP: How To")}",
-      "path": "/(useradmin|about)",
-      "video": "",
-      "blog": "http://gethue.com/making-hadoop-accessible-to-your-employees-with-ldap/"
-    },
-    {
-      "name": "sparkapp",
-      "desc": "${_("A new Spark UI")}",
-      "path": "/(spark)",
-      "video": "http://player.vimeo.com/video/78887745",
-      "blog": "http://gethue.com/a-new-spark-web-ui-spark-app/"
-    },
-    {
-      "name": "impalavshive",
-      "desc": "${_("Fast SQL with Impala")}",
-      "path": "/impala",
-      "video": "http://player.vimeo.com/video/75493693",
-      "blog": "http://gethue.com/fast-sql-with-the-impala-query-editor/"
-    },
-    {
-      "name": "pigeditor",
-      "desc": "${_("The Pig Editor")}",
-      "path": "/pig",
-      "video": "http://player.vimeo.com/video/66661052",
-      "blog": "http://gethue.com/tutorial-apache-pig-editor-in-hue-2-3/"
-    },
-    {
-      "name": "hiveudf",
-      "desc": "${_("Build and use Hive UDF in 1 minute!")}",
-      "path": "/beeswax",
-      "video": "http://player.vimeo.com/video/72200781",
-      "blog": "http://gethue.com/hadoop-tutorial-hive-udf-in-1-minute/"
-    },
-    {
-      "name": "hcatalog",
-      "desc": "${_("How to use HCatalog in Hue with Pig")}",
-      "path": "/(metastore|pig)",
-      "video": "http://player.vimeo.com/video/71024770",
-      "blog": "http://gethue.com/hadoop-tutorial-how-to-access-hive-in-pig-with/"
-    },
-    {
-      "name": "hbasebrowser",
-      "desc": "${_("HBase Browser")}",
-      "path": "/hbase",
-      "video": "http://player.vimeo.com/video/72357888",
-      "blog": "http://gethue.com/the-web-ui-for-hbase-hbase-browser/"
-    },
-    {
-      "name": "hbasetables",
-      "desc": "${_("Create HBase tables")}",
-      "path": "/hbase",
-      "video": "http://player.vimeo.com/video/72200782",
-      "blog": "http://gethue.com/hadoop-tutorial-how-to-create-example-tables-in-hbase/"
-    },
-    {
-      "name": "oozieworkflows",
-      "desc": "${_("Oozie Workflow")}",
-      "path": "/(oozie|beeswax)",
-      "video": "http://player.vimeo.com/video/73849021",
-      "blog": "http://gethue.com/hadoop-tutorials-ii-2-execute-hive-queries-and/"
-    },
-    {
-      "name": "ooziecoordinator",
-      "desc": "${_("Oozie Coordinator")}",
-      "path": "/oozie",
-      "video": "http://player.vimeo.com/video/74215175",
-      "blog": "http://gethue.com/hadoop-tutorials-ii-3-schedule-hive-queries-with/"
-    },
-    {
-      "name": "search",
-      "desc": "${_("The search app with Solr")}",
-      "path": "/search",
-      "video": "http://player.vimeo.com/video/68257054",
-      "blog": "http://gethue.com/tutorial-search-hadoop-in-hue/"
-    },
-    {
-      "name": "filebrowser",
-      "desc": "${_("HDFS File Operations Made Easy")}",
-      "path": "/filebrowser",
-      "video": "http://player.vimeo.com/video/63343487",
-      "blog": "http://gethue.com/demo-hdfs-file-operations-made-easy-with-hue/"
-    },
-    {
-      "name": "hueha",
-      "desc": "${_("High availability in Hue")}",
-      "path": "/about",
-      "video": "http://player.vimeo.com/video/71813732",
-      "blog": "http://gethue.com/hadoop-tutorial-high-availability-of-hue/"
-    },
-    {
-      "name": "hue25",
-      "desc": "${_("What's new in Hue 2.5")}",
-      "path": "/(about|home)",
-      "video": "http://player.vimeo.com/video/70955652",
-      "blog": "http://gethue.com/hue-2-5-and-its-hbase-app-is-out/"
-    },
-    {
-      "name": "hueperms",
-      "desc": "${_("Manage users and group permissions")}",
-      "path": "/useradmin",
-      "video": "",
-      "blog": "http://gethue.com/how-to-manage-permissions-in-hue/"
-    },
-    {
-      "name": "huesqoop",
-      "desc": "${_("Transfering data with Sqoop")}",
-      "path": "/sqoop",
-      "video": "http://player.vimeo.com/video/76063637",
-      "blog": "http://gethue.com/move-data-in-out-your-hadoop-cluster-with-the-sqoop/"
-    },
-    {
-      "name": "newimpala",
-      "desc": "${_("New Impala and Hive Editors")}",
-      "path": "/(beeswax|impala)",
-      "video": "http://player.vimeo.com/video/90961050",
-      "blog": "http://gethue.com/hadoop-tutorial-new-impala-and-hive-editors/"
-    },
-    {
-      "name": "oozieslas",
-      "desc": "${_("Oozie SLAs")}",
-      "path": "/oozie",
-      "video": "http://player.vimeo.com/video/90898437",
-      "blog": "http://gethue.com/hadoop-tutorial-monitor-and-get-alerts-for-your-workflows-with-the-oozie-slas/"
-    },
-    {
-      "name": "ooziecrontab",
-      "desc": "${_("The new Oozie Crontab")}",
-      "path": "/oozie",
-      "video": "http://player.vimeo.com/video/85922380",
-      "blog": "http://gethue.com/hadoop-tutorial-schedule-your-hadoop-jobs-intuitively/"
-    },
-    {
-      "name": "secureyarn",
-      "desc": "${_("Secure your YARN cluster")}",
-      "path": "/jobbrowser",
-      "video": "http://player.vimeo.com/video/85922379",
-      "blog": "http://gethue.com/secure-your-yarn-cluster-and-access-the-jobs/"
-    },
-    {
-      "name": "alternativejb",
-      "desc": "${_("MR2 and YARN alternative Job Browser")}",
-      "path": "/jobbrowser",
-      "video": "http://player.vimeo.com/video/84027054",
-      "blog": "http://gethue.com/using-hadoop-mr2-and-yarn-with-an-alternative-job/"
-    }
-  ]
-});
+  });
 
 </script>