瀏覽代碼

[docs] Switch to unpkg for the cdn of the Scratchpad

Romain Rigaux 4 年之前
父節點
當前提交
99eafd0382
共有 1 個文件被更改,包括 6 次插入8 次删除
  1. 6 8
      docs/docs-site/content/developer/components/scratchpad/_index.md

+ 6 - 8
docs/docs-site/content/developer/components/scratchpad/_index.md

@@ -10,7 +10,7 @@ The SQL Scratchpad component is in beta and rapidly evolving. Now is a great tim
 
 ## Live Demo
 
-The Scratchpad is hosted within this page and points to [demo.gethue.com](https://demo.gethue.com/).
+The Scratchpad is hosted within this page and points to [demo.gethue.com](https://demo.gethue.com/):
 
 {{< rawhtml >}}
 <p>
@@ -18,7 +18,7 @@ The Scratchpad is hosted within this page and points to [demo.gethue.com](https:
     <sql-scratchpad api-url="https://demo.gethue.com" username="demo" password="demo" dialect="mysql" />
   </div>
 
-  <script type="text/javascript" src="/js/gethue/components/SqlScratchpadWebComponent.js"></script>
+  <script type="text/javascript" src="https://unpkg.com/gethue/lib/components/SqlScratchpadWebComponent.js"></script>
 
   <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
 </p>
@@ -45,15 +45,13 @@ First install the NPM [package](/developer/components/) and import the component
 
     </html>
 
-For quick testing, it is possible to skip the `npm install` and directly grab the module via:
+Then make sure *api-url* points to a running Hue or [Compose](https://github.com/gethue/compose) APIs. The API is the middleware between your Data Warehouse and Web Browser client and will provide the dynamic content like the list of tables and columns and enrich the static autocomplete powered by the [parser](/developer/components/parsers/) selected by the *dialect*.
 
-    <script type="text/javascript" src="https://cdn.gethue.com/components/SqlScratchpadWebComponent.js"></script>
+Specify the credentials for the authentication via *username="demo" password="demo"*. An option to look-up a local JWT token and not require the credentials is coming shortly
 
-Then make sure `api-url` points to a running Hue or [Compose](https://github.com/gethue/compose) APIs on [http://localhost:8005](http://localhost:8005). The API is the middleware between your Data Warehouse and Web Browser client and will provide the dynamic content like the list of tables and columns and enrich the static autocomplete powered by the [parser](/developer/components/parsers/) selected by the `dialect`.
 
-If using Hue as the API, this [ini settings](/administrator/configuration/) is currently required:
+It is possible to skip the `npm install` and directly grab the module via:
 
-    [desktop]
-    cors_enabled=true
+    <script type="text/javascript" src="https://unpkg.com/gethue/lib/components/SqlScratchpadWebComponent.js"></script>
 
 !["SQL Scratchpad"](https://cdn.gethue.com/uploads/2021/05/sql-scratchpad-v0.5.png)