Skip to content

Commit

Permalink
Refactor UX components and add WebViews to VS Code (#865)
Browse files Browse the repository at this point in the history
There is more I want to do, but this is big enough already, and want to
get the major pieces in.

This refactors some of the Preact UX components into the NPM package and
then shares them between the playground and VS Code.

It adds histograms, re, and a help page rendering as WebViews in VS
Code.

The help page (content still to be fleshed out) will open to the side
when the Help command is run, and this will be done by default when
opening a code sharing link that takes you to vscode.dev/quantum.
  • Loading branch information
billti authored Nov 23, 2023
1 parent c2b199d commit bcecf3a
Show file tree
Hide file tree
Showing 23 changed files with 1,926 additions and 319 deletions.
6 changes: 4 additions & 2 deletions npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"./compiler-worker": "./dist/compiler/worker-browser.js",
"./language-service-worker": "./dist/language-service/worker-browser.js",
"./debug-service-worker": "./dist/debug-service/worker-browser.js"
"./debug-service-worker": "./dist/debug-service/worker-browser.js",
"./ux": "./ux/index.ts"
},
"scripts": {
"build": "npm run generate && npm run build:tsc",
Expand All @@ -31,6 +32,7 @@
"type": "module",
"files": [
"dist",
"lib"
"lib",
"ux"
]
}
4 changes: 4 additions & 0 deletions npm/ux/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# qsharp-lang/ux

This directory contains files in source form to be included in other projects
to provide UI components. See `vscode/src/webview/webview.tsx` for an example.
Loading

0 comments on commit bcecf3a

Please sign in to comment.