Skip to content

Commit

Permalink
feat: update run.py, switch to embedded streamlit, add request-respon…
Browse files Browse the repository at this point in the history
…se mechanism (#9)

* feat: update run.py

Signed-off-by: Jan Pokorný <jenompokorny@gmail.com>

* feat: switch to bundled Stlite

Signed-off-by: Jan Pokorný <jenompokorny@gmail.com>

* feat: patch stlite, switch to native postMessage

Signed-off-by: Jan Pokorný <jenompokorny@gmail.com>

* feat: switch to async mode

Signed-off-by: Jan Pokorný <jenompokorny@gmail.com>

* fix: typos

Co-authored-by: Radek Ježek <pc.jezek@gmail.com>
Signed-off-by: Jan Pokorný <JenomPokorny@gmail.com>

* small fixes

Signed-off-by: Radek Ježek <radek.jezek@ibm.com>

* feat: make "Try to fix this error" button configurable

Signed-off-by: Jan Pokorný <jenompokorny@gmail.com>

* fix: give normal names to requests

Signed-off-by: Jan Pokorný <jenompokorny@gmail.com>

---------

Signed-off-by: Jan Pokorný <jenompokorny@gmail.com>
Signed-off-by: Jan Pokorný <JenomPokorny@gmail.com>
Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
Co-authored-by: Radek Ježek <pc.jezek@gmail.com>
Co-authored-by: Radek Ježek <radek.jezek@ibm.com>
  • Loading branch information
3 people authored Dec 10, 2024
1 parent 2b5f80e commit a17e5a6
Show file tree
Hide file tree
Showing 11 changed files with 427 additions and 193 deletions.
7 changes: 2 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@
<title>Bee Artifact Content</title>
<link rel="preload" href="/fonts/IBMPlexSans-Regular.woff2" as="font" crossorigin type="font/woff2">
<link rel="preload" href="/fonts/IBMPlexSans-SemiBold.woff2" as="font" crossorigin type="font/woff2">
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@stlite/mountable@0.72.1/build/stlite.css"
/>
<link rel="stylesheet" href="/public/stlite/stlite.css" />
<link rel="stylesheet" href="src/styles/style.scss" />
</head>

<body class="cds--white">
<div id="root"></div>
<script src="https://cdn.jsdelivr.net/npm/@stlite/mountable@0.72.1/build/stlite.js"></script>
<script src="/public/stlite/stlite.js"></script>
<script src="src/entry.ts" type="module"></script>
</body>
</html>
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"stylelint-plugin-logical-css": "^1.2.1",
"stylelint-prettier": "^5.0.2",
"typescript": "~5.6.3",
"vite": "^6.0.1"
"vite": "^6.0.1",
"vite-plugin-static-copy": "^2.2.0"
},
"dependencies": {
"@carbon/colors": "^11.28.0",
Expand All @@ -34,7 +35,13 @@
"@carbon/styles": "^1.68.0",
"@carbon/themes": "^11.43.0",
"@carbon/type": "^11.33.0",
"@stlite/mountable": "^0.73.1",
"sass": "^1.81.0"
},
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903",
"pnpm": {
"patchedDependencies": {
"@stlite/mountable@0.73.1": "patches/@stlite__mountable@0.73.1.patch"
}
}
}
Binary file added patches/@stlite__mountable@0.73.1.patch
Binary file not shown.
107 changes: 107 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 0 additions & 60 deletions public/python/run.py

This file was deleted.

Loading

0 comments on commit a17e5a6

Please sign in to comment.