Skip to content
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

st_forna_component doesn't work #911

Open
whitphx opened this issue May 17, 2024 · 0 comments
Open

st_forna_component doesn't work #911

whitphx opened this issue May 17, 2024 · 0 comments

Comments

@whitphx
Copy link
Owner

whitphx commented May 17, 2024

st_forna_component doesn't work on stlite

Sample:

https://edit.share.stlite.net/#!ChBzdHJlYW1saXRfYXBwLnB5EoUiChBzdHJlYW1saXRfYXBwLnB5EvAhCu0haW1wb3J0IHN0cmVhbWxpdCBhcyBzdApmcm9tIGNvbG91ciBpbXBvcnQgQ29sb3IKZnJvbSBzdF9mb3JuYV9jb21wb25lbnQgaW1wb3J0IGZvcm5hX2NvbXBvbmVudAoKaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKICAgIHN0LnNldF9wYWdlX2NvbmZpZyhsYXlvdXQ9IndpZGUiKQogICAgaWYgImNvbG9ycyIgbm90IGluIHN0LnNlc3Npb25fc3RhdGU6CiAgICAgICAgc3Quc2Vzc2lvbl9zdGF0ZS5jb2xvcnMgPSBkaWN0KCkKCiAgICBzdC50aXRsZSgiRm9ybmEgQ29tcG9uZW50IikKCiAgICAjIyMgbWFpbiBpbnB1dCBmaWVsZHMKICAgIGRvdF9icmFja2V0ID0gc3QudGV4dF9pbnB1dCgiRG90IEJyYWNrZXQgc3RydWN0dXJlIiwgIigoKC4uLikpKSIpCiAgICBzZXF1ZW5jZSA9IHN0LnRleHRfaW5wdXQoIlNlcXVlbmNlIiwgIk5OTkFBQVVVVSIpCgogICAgIyMjIGNoZWNrYm94ZXMgZm9yIHRoZSBvcHRpb25zCiAgICBjb2wxLCBjb2wyLCBjb2wzID0gc3QuY29sdW1ucygzKQogICAgd2l0aCBjb2wxOgogICAgICAgIHpvb21hYmxlID0gc3QuY2hlY2tib3goIlpvb21hYmxlIiwgdmFsdWU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RlbXMoKToKICAgICAgICAgICAgY29sb3JzICs9IHN0cihpKSArICI6IiArIGMgKyAiICIKICAgICMjIyBkaXNwbGF5IHRoZSBjdXN0b20gY29sb3JzCiAgICBlbHNlOgogICAgICAgIGNvbG9ycyA9IE5vbmUKCiAgICByZXR1cm5fdmFsdWUgPSBmb3JuYV9jb21wb25lbnQoCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cnVjdHVyZSA9IGRvdF9icmFja2V0LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZSA9IHNlcXVlbmNlLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQgPSBoZWlnaHQsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFuaW1hdGlvbiA9IGFuaW1hdGlvbiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgem9vbWFibGUgPSB6b29tYWJsZSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWxfaW50ZXJ2YWwgPSBsYWJlbF9pbnRlcnZhbCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZV9sYWJlbCA9IG5vZGVfbGFiZWwsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRhYmxlID0gZWRpdGFibGUsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yX3NjaGVtZSA9IGNvbG9yX3NjaGVtZSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sb3JzID0gY29sb3JzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApCiAgICAKICAgIAogICAgc3Qud3JpdGUoIlJlY2VpdmVkIHZhbHVlOiIsIHJldHVybl92YWx1ZSkKICAgIGlmIHJldHVybl92YWx1ZToKICAgICAgICBzdC53cml0ZSgiUmVjZWl2ZWQgc2VxdWVuY2UiLCByZXR1cm5fdmFsdWVbMF0pCiAgICAgICAgc3Qud3JpdGUoIlJlY2VpdmVkIHN0cnVjdHVyZSIsIHJldHVybl92YWx1ZVsxXSkKCgogICAgIyAnKCgoKCgoKCgoKCgoKCgoKCgoKC4uW1tbW1tbLikpKSkpKCgoKCgoKCgoLi4uLikpKSkpKSkpKSgoKCgoLi4uLikpKSkpKSkpKSkpKSkpKSkpKSkoKCgoKCgoKCgoKCgoKC4uLi4pKSkpKSkpKSkoKCgoKC4uLi4pKSkpKSgoKCgoKCgoKC4uXV1dXV1dLikpKSkpKSkpKSkpKSkpJwogICAgIyAnTk5OTktOTk5OS05OTk5LTk5OTkFBQ1VBQUNDQU5OTk5LTk5OTk5OTk5LVVVDR0tOTk5OTk5OTk5OTk5LVVVDR0tOTk5OTk5OTktOTk5OS05OTk5LTk5OTk5OTk5LTk5OTlVVQ0dOTk5OS05OTk5LTk5OTlVVQ0dOTk5OS05OTk5OTk5OS0FBR0dVVUFHQUtOTk5OTk5OTk5OTk5LJxoGY29sb3VyGhJzdF9mb3JuYV9jb21wb25lbnQ,

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

No branches or pull requests

1 participant