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

Ignition fix build #4571

Closed
wants to merge 111 commits into from
Closed

Ignition fix build #4571

wants to merge 111 commits into from

Conversation

rictic
Copy link
Collaborator

@rictic rictic commented Mar 7, 2024

No description provided.

justinfagnani and others added 30 commits February 12, 2024 09:14
* Use a webview panel instead of a text editor.

Also fix a missing wireit dep, do a bit of cleanup elsewhere.
* Add a comlink connection between the extension and the webview.
* The webview now makes iframes and connects to them.

* Fix endpoints to bail if transferrables are used.

VSCode doesn't support them, and this will at least let us know. I expect this won't come up, and moderate term we should just use the UI server to coordinate this stuff, so that we can use ordinary browsers too.

* Add missing entry to wireit config.

* Delete dangling iframe.
* Reconnect to the webview when it becomes visible

Also don't use explicit port numbers.

* Move uiServer and workspace management into its own file.

* Remove another explicit port
WeakRef is optional at both the value and type level
Convert the ignition UI to a Lit element
Add devlog patches that aren't yet merged into main.
* Just run the ignition tests in CI

* Run in xvfb-run -a to ensure we have an X
rictic and others added 24 commits March 4, 2024 16:56
The fun stuff: panels and stories frame auto-update on changes
Smartly focus element's source when selected
This works, except that we don't yet fully account for Lit binding content.
Add getTemplateNodeBySourceId
Note: this currently only works for the first element in a file, since we don't have the code yet to get the sourceId from a parse5 node.
Highlight elements in page when selected in template outline.
We compile in the project server now.
Add getTemplateNodeBySourceId tests
No longer need to build the test project on build
Copy link

changeset-bot bot commented Mar 7, 2024

🦋 Changeset detected

Latest commit: 11be917

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lit-labs/analyzer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rictic rictic closed this Mar 7, 2024
@rictic rictic deleted the ignition-fix-build branch March 7, 2024 19:16
Copy link
Contributor

github-actions bot commented Mar 7, 2024

The size of lit-html.js and lit-core.min.js are as expected.

Comment on lines +75 to +97
context.body = /* html */ `
<!doctype html>
<html>
<head>
<script type='module' src='http://localhost:${uiServerPort}/frame-entrypoint.js'></script>
<style id="_defaultStyles"></style>
<style>
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
* {
box-sizing: border-box;
}
</style>
</head>
<body>
<ignition-storyboard src=${storySrc}></ignition-storyboard>
</body>
</html>
`;

Check failure

Code scanning / CodeQL

Reflected cross-site scripting High

Cross-site scripting vulnerability due to a
user-provided value
.
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.

None yet

3 participants