Skip to content

Add a Toga SPA rendering demo #31

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 4 commits into from
Apr 20, 2022
Merged

Add a Toga SPA rendering demo #31

merged 4 commits into from
Apr 20, 2022

Conversation

freakboy3742
Copy link
Contributor

Same Toga "Freedom units" demo; this time rendered a 100% client-side SPA.

Copy link
Contributor

@fpliger fpliger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment. lgtm \m/

import asyncio
import micropip

await micropip.install([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to change this with

<py-env>
    './static/wheels/travertino-0.1.3-py3-none-any.whl',
    './static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl',
    './static/wheels/toga_web-0.3.0.dev33-py3-none-any.whl',
    './static/wheels/freedom-0.0.1-py3-none-any.whl'
</py-env>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works on the SPA version; but it doesn't appear to work on the served version - it converts:

- '/static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl' 

into a request for https://cdn.jsdelivr.net/static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl

- './static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl' 

into a request for https://cdn.jsdelivr.net/pyodide/v0.20.0/full/static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the problem was between keyboard and chair. A stale pyscript build was the problem. New PR incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants