Skip to content

Commit b822ee1

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

33 files changed

+142
-507
lines changed

docs/_quartodoc-core.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ quartodoc:
109109
- ui.insert_ui
110110
- ui.remove_ui
111111
- ui.busy_indicators.use
112-
- ui.busy_indicators.spinner_options
113-
- ui.busy_indicators.pulse_options
112+
- ui.busy_indicators.options
114113
- ui.fill.as_fillable_container
115114
- ui.fill.as_fill_item
116115
- ui.fill.remove_all_fill

docs/_quartodoc-express.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ quartodoc:
161161
children: embedded
162162
- express.ui.TagList # uses class.rst template
163163
- express.ui.busy_indicators.use
164-
- express.ui.busy_indicators.spinner_options
165-
- express.ui.busy_indicators.pulse_options
164+
- express.ui.busy_indicators.options
166165
# TODO: should these be included?
167166
# - express.ui.fill.as_fillable_container
168167
# - express.ui.fill.as_fill_item

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"

0 commit comments

Comments
 (0)