Conversation
|
@marimeireles or anyone willing to pre-check this.... Mind a quick review and test of the examples? 🙂 |
|
hi @fpliger, if this PR and issue is to clean
|
marimeireles
left a comment
There was a problem hiding this comment.
It's breaking the CSS on http://localhost:8000/pyscript/examples/repl2.html.
The output should be on the side but it's showing underneath every new cell.
Is there a reason why you didn't remove tailwind stuff? Like the ones addressed by @RSMuthu?
Other than that. It works! :)
I tested all tests.
examples/hello_world.html
Outdated
|
|
||
| <link rel="icon" type="image/png" href="favicon.png" /> | ||
| <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> | ||
| <link rel="stylesheet" href="./build/pyscript.css" /> |
There was a problem hiding this comment.
I think this example should point to pyscript.net, correct?
examples/hello_world.html
Outdated
| <link rel="stylesheet" href="./build/pyscript.css" /> | ||
|
|
||
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | ||
| <script defer src="./build/pyscript.js"></script> |
examples/repl.html
Outdated
| <link rel="icon" type="image/png" href="favicon.png" /> | ||
| <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> | ||
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | ||
| <link rel="stylesheet" href="./build/pyscript_base.css" /> |
There was a problem hiding this comment.
Should also point to pyscript.net?
And I don't think we have the pyscript_base file, at least my npm build is not generating this...
There was a problem hiding this comment.
Yeah... I messed up editing the wrong files while it was in progress.... Fixed
examples/repl.html
Outdated
| <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> | ||
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | ||
| <link rel="stylesheet" href="./build/pyscript_base.css" /> | ||
| <script defer src="./build/pyscript.js"></script> |
examples/repl2.html
Outdated
| <link rel="stylesheet" href="./build/pyscript_base.css" /> | ||
| <link rel="stylesheet" href="repl.css" /> | ||
|
|
||
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | ||
| <script defer src="./build/pyscript.js"></script> |
There was a problem hiding this comment.
Same here as above comments
pyscriptjs/src/Tailwind.svelte
Outdated
| /* @tailwind base; */ | ||
| /* @tailwind components; */ | ||
| /* @tailwind utilities; */ |
There was a problem hiding this comment.
Should we remove all of these comments?
|
@fpliger you need more specific review on this? |
|
@marimeireles no... mainly to check if it looks good to you and have more eyes checking the examples and other places I may have broken the code |
|
Thanks @RSMuthu that's a great point :) |
|
Also worth mentioning that since we are planning a release (the first release after we adopt the new versioning strategy) I'd like to merge this after we release. |
|
Should have addressed comments from both @marimeireles and @RSMuthu . Ready for another round :) |
marimeireles
left a comment
There was a problem hiding this comment.
@fpliger this is so much CSS!
Thank you for the work here =)
It's a 👍 from me, other than these minor nitpicks.
pyscriptjs/src/components/pybox.ts
Outdated
| this.widths.forEach((width, index) => { | ||
| const node: ChildNode = mainDiv.childNodes[index]; | ||
| addClasses(node as HTMLElement, [width, 'mx-1']); | ||
| // addClasses(node as HTMLElement, [width, 'mx-1']); |
There was a problem hiding this comment.
Should we remove this?
| </div> | ||
| </div>`; | ||
| </div> | ||
| </div>` |
|
great catches, thank you @marimeireles . Should be good now |

Closes #446