Skip to content

Commit 6152e56

Browse files
committed
Bring in JS/CSS source from RShiny repo
1 parent 7d833f1 commit 6152e56

31 files changed

+140
-503
lines changed

examples/busy_indicators/app.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@
1919

2020
# -- Reusable card module --
2121
@module.ui
22-
def card_ui(title="Tadpole", spinner_type="tadpole"):
22+
def card_ui():
2323
return ui.card(
2424
ui.card_header(
25-
title,
25+
"A plot",
2626
ui.input_task_button("simulate", "Simulate", icon=icon_svg("shuffle")),
2727
class_="d-flex justify-content-between align-items-center",
2828
),
29-
ui.busy_indicators.spinner_options(
30-
spinner_type, css_selector="." + spinner_type
31-
),
3229
ui.output_plot("plot"),
33-
class_=spinner_type,
3430
)
3531

3632

@@ -81,13 +77,13 @@ def plot():
8177
ui.input_slider("length", "Simulation length", 0, 500, 5),
8278
),
8379
ui.layout_columns(
84-
card_ui("a", "Tadpole", "tadpole"),
85-
card_ui("b", "Disc", "disc"),
86-
card_ui("c", "Dots", "dots"),
87-
card_ui("d", "Dot track", "dot-track"),
80+
card_ui("a"),
81+
card_ui("b"),
82+
card_ui("c"),
83+
card_ui("d"),
8884
col_widths=[6, 6],
8985
),
90-
card_ui("e", "Ball", "bounce"),
86+
card_ui("e"),
9187
ui.output_ui("indicator_types_ui"),
9288
fillable=True,
9389
title="Busy indicators + extended tasks = ❤️",

js/build.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ const opts: Array<BuildOptions> = [
7474
plugins: [sassPlugin({ type: "css", sourceMap: false })],
7575
metafile: true,
7676
},
77-
{
78-
entryPoints: {
79-
"busy-indicators/busy-indicators": "busy-indicators/busy-indicators.scss",
80-
},
81-
loader: { ".svg": "dataurl" },
82-
plugins: [sassPlugin({ type: "css", sourceMap: false })],
83-
metafile: true,
84-
},
85-
{
86-
entryPoints: {
87-
"busy-indicators/busy-indicators": "busy-indicators/busy-indicators.ts",
88-
},
89-
minify: false,
90-
sourcemap: false,
91-
},
9277
];
9378

9479
// Run function to avoid top level await

js/busy-indicators/ball.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

js/busy-indicators/busy-indicators.scss

Lines changed: 0 additions & 193 deletions
This file was deleted.

js/busy-indicators/busy-indicators.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

js/busy-indicators/disc-spinner.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

js/busy-indicators/dot-track-spinner.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

js/busy-indicators/dots-spinner.svg

Lines changed: 0 additions & 11 deletions
This file was deleted.

js/busy-indicators/tadpole-spinner.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

scripts/htmlDependencies.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ withr::local_temp_libpaths()
1919
ignore <- capture.output({
2020
pak::pkg_install(c(
2121
"rstudio/bslib@main",
22-
"rstudio/shiny@main",
22+
"rstudio/shiny@busy-indicators",
2323
"rstudio/sass@main",
2424
"rstudio/htmltools@main"
2525
))

shiny/_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
shiny_html_deps = "1.8.1.9000"
1+
shiny_html_deps = "1.8.1.9001"
22
bslib = "0.7.0.9000"
33
htmltools = "0.5.8.9000"
44
bootstrap = "5.3.1"

shiny/api-examples/busy_indicators/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
multiple=True,
1616
selected=["spinners", "pulse"],
1717
),
18-
ui.busy_indicators.spinner_options(color="orange"),
18+
ui.busy_indicators.options(spinner_color="orange"),
1919
ui.download_button("download", "Download source"),
2020
),
2121
ui.card(

shiny/ui/_html_deps_py_shiny.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def busy_indicators_dep() -> HTMLDependency:
5959
return HTMLDependency(
6060
"shiny-busy-indicators",
6161
__version__,
62-
source={"package": "shiny", "subdir": "www/shared/py-shiny/busy-indicators"},
62+
source={"package": "shiny", "subdir": "www/shared/busy-indicators"},
6363
stylesheet={"href": "busy-indicators.css"},
6464
script={"src": "busy-indicators.js"},
6565
head=busy_indicators.use(), # Enable busy indicators by default.

0 commit comments

Comments
 (0)