Skip to content

Commit

Permalink
[NF] Improved visualization (#19)
Browse files Browse the repository at this point in the history
Fixed LED default color, changed button asset.
Renamed react application.
  • Loading branch information
matgla authored Dec 29, 2024
1 parent 060be52 commit f1d810d
Show file tree
Hide file tree
Showing 23 changed files with 111 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_pico_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
shell: bash
if: steps.pico-examples-cache.outputs.cache-hit != 'true'
run: |
pacman -S --noconfirm ninja
pacman -Sy --noconfirm ninja
cd tests && ./build_pico_examples.sh
- uses: actions/upload-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions visualization/visualization/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"files": {
"main.css": "/static/css/main.25333aef.css",
"main.js": "/static/js/main.77a3060b.js",
"main.js": "/static/js/main.15240b4e.js",
"static/media/Raspberry_Pi_Pico_top.png": "/static/media/Raspberry_Pi_Pico_top.e33f028f5df6fa7a8812.png",
"static/media/breadboard.svg": "/static/media/breadboard.0b169a51ffbe1f7f8bd530e8f6cb7ed8.svg",
"static/media/7segment.svg": "/static/media/7segment.4e0006b1fe808cef9373e141218a4d64.svg",
"static/media/button.svg": "/static/media/button.477b4b211bc442f2c7af47352b66f76c.svg",
"static/media/button.svg": "/static/media/button.a06df6a57fa7fd69cbe0389eb60756fc.svg",
"static/media/led.svg": "/static/media/led.4768c0df04932f68cd84bba91e9f7349.svg",
"static/media/7segment_separator.svg": "/static/media/7segment_separator.4e74319228a46dc74746ad8d50353228.svg",
"index.html": "/index.html",
"main.25333aef.css.map": "/static/css/main.25333aef.css.map",
"main.77a3060b.js.map": "/static/js/main.77a3060b.js.map"
"main.15240b4e.js.map": "/static/js/main.15240b4e.js.map"
},
"entrypoints": [
"static/css/main.25333aef.css",
"static/js/main.77a3060b.js"
"static/js/main.15240b4e.js"
]
}
Binary file removed visualization/visualization/build/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion visualization/visualization/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.77a3060b.js"></script><link href="/static/css/main.25333aef.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>RP2040 Simulation</title><script defer="defer" src="/static/js/main.15240b4e.js"></script><link href="/static/css/main.25333aef.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
Binary file removed visualization/visualization/build/logo192.png
Binary file not shown.
Binary file removed visualization/visualization/build/logo512.png
Binary file not shown.
22 changes: 3 additions & 19 deletions visualization/visualization/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"short_name": "RP2040 Simulation",
"name": "Renode RP2040 Simulation",
"icons": [],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed visualization/visualization/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion visualization/visualization/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>RP2040 Simulation</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file removed visualization/visualization/public/logo192.png
Binary file not shown.
Binary file removed visualization/visualization/public/logo512.png
Binary file not shown.
22 changes: 3 additions & 19 deletions visualization/visualization/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"short_name": "RP2040 Simulation",
"name": "Renode RP2040 Simulation",
"icons": [],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
Expand Down
Binary file not shown.
Binary file not shown.
62 changes: 35 additions & 27 deletions visualization/visualization/src/assets/button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion visualization/visualization/src/components/Led.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Led = forwardRef(({ editWidget, name }, ref) => {
const child = useRef({});
const image = useRef({});
const [state, setState] = useState(false);
var [color, setColor] = useState(null);
var [color, setColor] = useState("#ff0000");

useImperativeHandle(ref, () => ({
serialize() {
Expand Down
1 change: 0 additions & 1 deletion visualization/visualization/src/logo.svg

This file was deleted.

0 comments on commit f1d810d

Please sign in to comment.