Skip to content

Commit

Permalink
Upgraded each sample to use the official release API version 2.0.5
Browse files Browse the repository at this point in the history
Manually tested and verified each sample in simulator and Tableau.
  • Loading branch information
lbrendanl committed Jul 6, 2016
1 parent 077fa49 commit 4cfe5dd
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 131 deletions.
2 changes: 1 addition & 1 deletion Examples/OAuthProxyExample/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>

<!-- Latest WDC Library -->
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>

<!-- Use to access cookie storage to grab access token -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.0.2/js.cookie.min.js" type="text/javascript"></script>
Expand Down
2 changes: 1 addition & 1 deletion Examples/html/IncrementalRefreshConnector.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>
<script src="../js/IncrementalRefreshConnector.js" type="text/javascript"></script>

</head>
Expand Down
25 changes: 0 additions & 25 deletions Examples/html/JSONMultiTableConnector.html

This file was deleted.

2 changes: 1 addition & 1 deletion Examples/html/MadMoneyScraper.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>
<script src="../js/MadMoneyScraper.js" type="text/javascript"></script>

</head>
Expand Down
2 changes: 1 addition & 1 deletion Examples/html/StockQuoteConnector_promises.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore.js"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>
<script src="../js/es6-promise.min.js" type="text/javascript"></script>
<script src="../js/StockQuoteConnector_promises.js" type="text/javascript"></script>

Expand Down
2 changes: 1 addition & 1 deletion Examples/html/earthquakeMultilingual.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>
<script src="../js/earthquakeMultilingual.js" type="text/javascript"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion Examples/html/earthquakeMultitable.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>
<script src="../js/earthquakeMultitable.js" type="text/javascript"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion Examples/html/earthquakeUSGS.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>
<script src="../js/earthquakeUSGS.js" type="text/javascript"></script>
</head>

Expand Down
37 changes: 0 additions & 37 deletions Examples/js/JSONMultiTableConnector.js

This file was deleted.

54 changes: 0 additions & 54 deletions Examples/js/JSONMultiTableData.json

This file was deleted.

16 changes: 8 additions & 8 deletions Examples/js/earthquakeMultilingual.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
alias: "Earthquakes with magnitude greater than 4.5 in the last seven days",
columns: cols
};

schemaCallback([tableInfo]);
};

Expand Down Expand Up @@ -89,25 +89,25 @@ var translateButton = function(){
var pollLocale = setInterval(function(){
if (tableau.locale){
switch (tableau.locale) {
case tableau.localeEnum.chinese:
case tableau.localeEnum.china:
$("#submitButton").text("获取地震数据");
break;
case tableau.localeEnum.german:
case tableau.localeEnum.germany:
$("#submitButton").text("Erhalten Erdbebendaten!");
break;
case tableau.localeEnum.spanish:
case tableau.localeEnum.brazil:
$("#submitButton").text("Obtener Datos de Terremotos!");
break;
case tableau.localeEnum.french:
case tableau.localeEnum.france:
$("#submitButton").text("Obtenir les données Earthquake!");
break;
case tableau.localeEnum.japanese:
case tableau.localeEnum.japan:
$("#submitButton").text("地震データの取得");
break;
case tableau.localeEnum.korean:
case tableau.localeEnum.korea:
$("#submitButton").text("지진 데이터 가져 오기");
break;
case tableau.localeEnum.portuguese:
case tableau.localeEnum.spain:
$("#submitButton").text("Obter Terremoto de dados!");
break;
default:
Expand Down

0 comments on commit 4cfe5dd

Please sign in to comment.