-
Notifications
You must be signed in to change notification settings - Fork 1.5k
UI creation API #1960
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
UI creation API #1960
Changes from 1 commit
Commits
Show all changes
154 commits
Select commit
Hold shift + click to select a range
bdce197
add JSProperty to pydom so it can be used to create descriptors mappi…
fpliger 25e1b06
add pyweb.ui
fpliger e4d5b66
fix pyweb imports
fpliger 5c5c6e3
fix link and a elements and add a script element
fpliger 73745a0
fix imports and add initialization to load resources to shoelace module
fpliger 5f748c9
new pyweb.ui test folder
fpliger ff19d63
remove comments
fpliger a9057e4
add Icon to shoelace components
fpliger 6c50522
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e3e669c
use html property rather than accessing _js directly
fpliger a5c3fc6
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 8ade988
add markdown suppport
fpliger f5857ba
move examples section out of stdlib pyweb to examples.py in the demo …
fpliger a702518
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 37ef462
simplify demo code
fpliger 275c3dc
improve docstrings
fpliger ac1cf5f
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger cffee1d
precommit fixes
fpliger dbc4db4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7a41a60
simplify code for main page
fpliger be65cf3
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger c76ce20
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f37048f
add load_resources to markdown
fpliger e716049
add showlace extra style dynamically
fpliger f69338c
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 1cca5f0
precommit
fpliger c559d8b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a9637bb
add gallery files
fpliger 5c6de9b
add global attributes and dynamic property assignment
fpliger 3b8745e
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger d370450
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9edb318
Add shoelace radio component (#1961)
aaskat 3f19695
fix type that lead using the the JSDescriptor directly instead of the…
fpliger 6fd8c6a
add missing marked dependency
fpliger 316652a
refactor gallary to simplify codebase
fpliger f6b7660
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 495fbc3
precommig lint
fpliger 77c8b5d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fb584c3
add text attribute to pydom Elements
fpliger 05a5fb7
add global JS attributes to elements and improve demos
fpliger 7036008
lint
fpliger fe420be
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger bbe9c23
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6436df2
fix image instantiation on card since the API has changed
fpliger e75625f
add attributes to all classes in elements
fpliger e0ee871
lint
fpliger 11a4ada
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 6f3f289
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 779b367
change example creation functions to take the label and the object di…
fpliger c52caef
fix input name clashing with input keyword
fpliger 410c444
refactor examples to better simplify and automate
fpliger c387695
fix div clashing names
fpliger 6c838ae
fix demo left menu width
fpliger cf987b1
simplify base elements demo by moving all the examples to the example…
fpliger 3bf4a85
rename Grid to grid to align to other elements
fpliger 70b97d8
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 21c206a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0a655f6
reorg classes order in elements.py and add missing elements to examples
fpliger 844e376
fix issue related to now importing div from pyweb.ui
fpliger 3de622f
improve demo
fpliger fd9ebc9
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 7178616
link and fix spelling typo
fpliger aac21e4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d101d7d
Add a bunch more elements (#1966)
FabioRosado 0791890
Add radio group (#1963)
aaskat 9033a09
Small tweaks to main demo page (#1962)
FabioRosado 4ee0540
fix post merge issues
fpliger 1db1e43
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2c59717
fixed issues with renaming Grid to grid, after we merged
fpliger 39647d7
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 635ede9
lint
fpliger d5d37fb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bdb84eb
add multple HTML elements in alphabetical order from abbr to em
fpliger 34628f6
fix attributes of some of the elements added in the previous commit a…
fpliger 8a28934
fix embed attributes and add fieldset
fpliger c0bc27b
add figcation, figure and form. Also fix ordering of definitoin of im…
fpliger ff7aba3
add style and lint
fpliger 4b89ac1
wrap up adding all major html elements
fpliger 1db8163
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 0f3444e
fix test failing due to different error message from fake server comp…
fpliger ae3c36b
change default docstring associated with all classes dynamically patched
fpliger b467bfe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 83d17a7
lint
fpliger bd68966
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger e0cf825
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6121d32
Merge branch 'main' into poc_ui_blocks
WebReflection 3654160
add pyweb tests
fpliger 850f8c6
lint
fpliger 98413cf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c518e79
add global attributes and change abbr test
fpliger 6dccf08
fix abbr to inherit from TextElementBase
fpliger 51dc090
add address test and improve error messaging when ElementBase gets a …
fpliger 97fdfae
change test helper function to be more flexible on attributes and ma…
fpliger d1038cb
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger f5f01f6
add test for more elements up to caption
fpliger 7e06894
fix canvas and caption as elements that have content and fix name typ…
fpliger a4272c7
fix another typo on figcaption
fpliger 34552ae
minor fixes and complete tests for all elements
fpliger 43c085d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b9cfe74
adapt shoelace to latest upates in ui.elements
fpliger 15896cd
fix issue with example code not showing created button
fpliger ff7e2ef
Merge branch 'main' into poc_ui_blocks
fpliger 7f26724
move global attributes to base class
fpliger 012e659
replace all the calls to _add_js_properties with defining attributes …
fpliger 2bb751a
finish moving all properties manually on each class
fpliger 35e7273
remove _add_js_properties
fpliger ee94039
replace JSProperty with js_property
fpliger 111616a
replace JSProperty with js_property
fpliger 5d22ec1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ef43e1f
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger da3db51
fixed merge conflicts
fpliger 1c315f8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8d955ad
remove js_property and just use JSProperty with name and allow_nones …
fpliger 4cc3092
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 0eadcc1
fix bug around Element not being able to map global attributes in sub…
fpliger b73b30b
remove js_property and fix references
fpliger 27363f4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 307eb73
precommit
fpliger 152ad6c
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger f6a634c
precommit again
fpliger abe706b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 106a78b
Merge branch 'main' into poc_ui_blocks
fpliger 80529ca
lint
fpliger d7ac58d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9b46e7c
Merge branch 'main' into poc_ui_blocks
WebReflection 6dc75e5
Merge branch 'main' into poc_ui_blocks
WebReflection 18ffdb9
Merge branch 'main' into poc_ui_blocks
fpliger 12c9946
enable pyweb on micropython
fpliger 313824d
switch examples to micropython
fpliger 62d31d9
fix pydom issue with micropython, created by the monkeypatch around J…
fpliger b885f30
print micropython version on micropython pydom example
fpliger 7c1a0d1
lint and remove of textwrap in stdlib for micropython compatibility
fpliger a6df2be
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4c20406
added msising attributes on the option Element. Tests are all passing…
fpliger 0c2dec3
fix tests
fpliger d348d9a
lint
fpliger 69bb8ba
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 343f059
temp ugly fix for micropython, using the when decorator with a functi…
fpliger 90d891e
small fixes and improvements to examples
fpliger 4ca89cc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c8db625
fix examples and broken link from the removal of markdown and shoelac…
fpliger 106be4b
lint
fpliger 1b27b86
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 767f2f9
dynamically change the server address in tests
fpliger 2ea493d
use the right element in test_a
fpliger a7279de
lint
fpliger 3c11d95
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4503933
skipping test_audio in CI due to different behavior of fake_server vs…
fpliger e6f7040
Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc…
fpliger 0524a18
add conditional expected_missing_file_errors property to manage diffe…
fpliger a3a3172
lint
fpliger 6eb27df
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b7d17e4
Merge branch 'main' into poc_ui_blocks
fpliger 01a1710
Merge branch 'main' into poc_ui_blocks
fpliger 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
minor fixes and complete tests for all elements
- Loading branch information
commit 34552ae62d01f949a40588ee3b119142ae7f204d
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
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.
Do we need this
try
..? See my comment above aboutallow_nones
.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.
Mmmmm... maybe? This try has been quite useful in debugging and understanding where things failed because tracebacks from the interpreter (especially
mpy
) are not really helpful sometimes.