-
Notifications
You must be signed in to change notification settings - Fork 4
refactor: Avoid needing to directly inspect shiny's bootstrap_deps()
#32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
899325a
refactor: Avoid needing to directly inspect shiny's bootstrap_deps
gadenbuie 5e166c8
fix: remove unused import
gadenbuie 35139e0
fix: version for bootstrap suppression
gadenbuie face07d
chore: Use `shinyswatch-{js,css,ionrangeslider`
gadenbuie 4a0768e
feat: Add dep for all shinyswatch, refactor out reused components
gadenbuie 7e02cb4
refactor: Refactor shinyswatch theme picker for faster smoother trans…
gadenbuie 344ead5
chore: remove unused import
gadenbuie 85220e9
feat: smooth theme transitions and initial theme load
gadenbuie e4447e7
chore: import from the future
gadenbuie 13a665d
feat: safer old stylesheet removal to avoid FOUC
gadenbuie 928fb7c
fix: clearTimeout not cance
gadenbuie bd1295c
refactor: finish refactoring shinyswatch-js
gadenbuie a681942
chore: Account for changing very quickly between themes
gadenbuie 6758bd3
feat: Limit transition rule to transitioning only
gadenbuie 31775dc
chore: format
gadenbuie aa7f348
fix(typo)
gadenbuie 0a69de2
fix(typo): dataset.shinyswatchCss
gadenbuie e5c734e
factor out replaceShinyswatchCSS
gadenbuie df95807
fix copilot typo
gadenbuie 1c192b1
move basedir into refactored function
gadenbuie 349d7a9
refactor: getShinySwatchLibPath()
gadenbuie 44029bf
send css file names from the python side
gadenbuie f7203d7
only transition when transitioning
gadenbuie 6e6e9ee
not a function, just an array
gadenbuie 298cdef
a final bit of refactoring
gadenbuie a1ca10d
chore: bump version, add changelog note
gadenbuie 1cf43b3
changelog edits
gadenbuie 28f5819
remove debug code
gadenbuie 436ec1e
feat: User can provide default theme
gadenbuie b60a38b
chore: add a couple more comments
gadenbuie 7b473f3
refactor(theme_picker.js): Use IIFE to avoid polluting global scope
gadenbuie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [data-shinyswatch-transitioning] * { | ||
| transition: all var(--shinyswatch-transition-duration, 100ms) ease-in-out; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this only be included for
shiny <= 0.8.1?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this PR still removes the Bootstrap JS dependency. We'll take that out in a follow up PR once shiny has some run-time Bootstrap compatibility checks. Then we'll require latest shiny in shinswatch.