From 8fc01ca7fa6ac5b04c3b1989f6251756e7a6f2fe Mon Sep 17 00:00:00 2001 From: Andrew Stein Date: Fri, 28 Jan 2022 20:42:35 -0500 Subject: [PATCH] Update examples for new theme API --- examples/blocks/src/citibike/index.html | 20 +- examples/blocks/src/covid/index.html | 5 +- examples/blocks/src/csv/index.html | 65 ++- examples/blocks/src/custom/index.html | 2 +- examples/blocks/src/dataset/index.html | 431 +++++++++--------- examples/blocks/src/editable/index.html | 2 +- examples/blocks/src/fractal/index.css | 3 + examples/blocks/src/fractal/index.html | 6 +- examples/blocks/src/movies/index.html | 5 +- examples/blocks/src/olympics/index.html | 318 +++++++------ examples/blocks/src/streaming/index.html | 35 +- examples/blocks/src/superstore/index.html | 23 +- examples/git-history/index.html | 2 +- examples/remote-express/assets/index.html | 11 +- .../tornado-python/client_server_editing.html | 2 +- examples/tornado-python/index.html | 7 +- examples/tornado-python/server_mode.html | 2 +- examples/tornado-streaming-python/index.html | 5 +- examples/workspace/src/index.html | 19 +- examples/workspace/src/index.less | 2 +- 20 files changed, 461 insertions(+), 504 deletions(-) diff --git a/examples/blocks/src/citibike/index.html b/examples/blocks/src/citibike/index.html index 267755ace1..92cceb8860 100644 --- a/examples/blocks/src/citibike/index.html +++ b/examples/blocks/src/citibike/index.html @@ -1,13 +1,10 @@ - + - - + + - - - @@ -15,7 +12,6 @@ - - - - - + + - \ No newline at end of file + diff --git a/examples/blocks/src/covid/index.html b/examples/blocks/src/covid/index.html index 929d18fa80..be09d0c5ac 100644 --- a/examples/blocks/src/covid/index.html +++ b/examples/blocks/src/covid/index.html @@ -12,15 +12,12 @@ - - - - + - - - - - - - - - - - - - - - - -
-
-

Upload a CSV file by dragging from your desktop and dropping onto the dashed region.

-

(Data is processed in browser, and never sent to any server).

- - -
-
- - - - \ No newline at end of file + + + + + + + + + + + + + + + +
+
+

+ Upload a CSV file by dragging from your desktop and dropping + onto the dashed region. +

+

+ (Data is processed in browser, and never sent to any + server). +

+ + +
+
+ + diff --git a/examples/blocks/src/custom/index.html b/examples/blocks/src/custom/index.html index 42d2cf7cdb..1f53507f98 100644 --- a/examples/blocks/src/custom/index.html +++ b/examples/blocks/src/custom/index.html @@ -5,7 +5,7 @@ - + diff --git a/examples/blocks/src/dataset/index.html b/examples/blocks/src/dataset/index.html index e6baaad1da..69e6140ebd 100644 --- a/examples/blocks/src/dataset/index.html +++ b/examples/blocks/src/dataset/index.html @@ -9,251 +9,244 @@ + + - - - - + - - - - - - - - - - -
-
- -
- Rows - - -
-
- Float columns - -
-
- Integer columns - -
-
- String columns - - -
-
- Datetime columns - -
-
- Bool columns - -
-
+ + + + + +
+
+ +
+ Rows + + +
+
+ Float columns + +
+
+ Integer columns + +
+
+ String columns + + +
+
+ Datetime columns + +
+
+ Bool columns + +
+
- let STRINGS; - function reset_strings_cache() { - STRINGS = {}; - } + - reset_strings_cache(); + +
- const get_dict = xs => { - STRINGS[xs] = STRINGS[xs] || strings(parseInt(num_strings.value)); - return STRINGS[xs]; - } + + // Main - + window.addEventListener("DOMContentLoaded", async function () { + run.addEventListener("click", make_run_click_callback({})); + run.dispatchEvent(new Event("click")); + }); + + \ No newline at end of file diff --git a/examples/blocks/src/editable/index.html b/examples/blocks/src/editable/index.html index 1eb81ac6f5..6582f5c6b7 100644 --- a/examples/blocks/src/editable/index.html +++ b/examples/blocks/src/editable/index.html @@ -17,7 +17,7 @@ - + - + - + + diff --git a/examples/blocks/src/movies/index.html b/examples/blocks/src/movies/index.html index 8f79278ac5..7479bae112 100644 --- a/examples/blocks/src/movies/index.html +++ b/examples/blocks/src/movies/index.html @@ -2,10 +2,7 @@ - - - - + diff --git a/examples/blocks/src/olympics/index.html b/examples/blocks/src/olympics/index.html index d68201b14d..5e36843a64 100644 --- a/examples/blocks/src/olympics/index.html +++ b/examples/blocks/src/olympics/index.html @@ -1,19 +1,15 @@ - + - - + - - - - - - - + - - - \ No newline at end of file + diff --git a/examples/blocks/src/streaming/index.html b/examples/blocks/src/streaming/index.html index 4d853eb98f..2fe2469af0 100644 --- a/examples/blocks/src/streaming/index.html +++ b/examples/blocks/src/streaming/index.html @@ -1,29 +1,20 @@ + + - + + + + - + - - - - - - - - - - - - - - - - - - - - + + + + + + diff --git a/examples/blocks/src/superstore/index.html b/examples/blocks/src/superstore/index.html index f3e9d43bc6..6cfed92611 100644 --- a/examples/blocks/src/superstore/index.html +++ b/examples/blocks/src/superstore/index.html @@ -1,19 +1,15 @@ - + - - - - + - - - - - + - - - \ No newline at end of file + diff --git a/examples/git-history/index.html b/examples/git-history/index.html index 4ae3267965..fdddb34cd6 100644 --- a/examples/git-history/index.html +++ b/examples/git-history/index.html @@ -22,7 +22,7 @@ - + diff --git a/examples/remote-express/assets/index.html b/examples/remote-express/assets/index.html index c4b9738bb4..d112bb3942 100644 --- a/examples/remote-express/assets/index.html +++ b/examples/remote-express/assets/index.html @@ -22,18 +22,11 @@ - + - - + - +