-
Notifications
You must be signed in to change notification settings - Fork 1.5k
See you later tailwind #452
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
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
|
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.
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
@@ -7,9 +7,9 @@ | |||
<title>PyScript Hello World</title> | |||
|
|||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this example should point to pyscript.net
, correct?
examples/hello_world.html
Outdated
|
||
<script defer src="https://pyscript.net/alpha/pyscript.js"></script> | ||
<script defer src="./build/pyscript.js"></script> |
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.
Same ^
examples/repl.html
Outdated
@@ -7,8 +7,8 @@ | |||
<title>REPL</title> | |||
|
|||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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> |
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.
Same as above
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here as above comments
pyscriptjs/src/Tailwind.svelte
Outdated
/* @tailwind base; */ | ||
/* @tailwind components; */ | ||
/* @tailwind utilities; */ |
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 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 :) |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this?
<div class="smooth spinner"></div> | ||
<div id="pyscript-loading-label" class="label"> | ||
<div id="pyscript-operation-details"> | ||
</div> | ||
</div> | ||
</div>`; | ||
</div> | ||
</div>` |
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.
Missing a ;
?
great catches, thank you @marimeireles . Should be good now |
Closes #446