Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Blockly/msg/en/sensebox-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export const WEB = {
* WiFi
*/
senseBox_wifi_connect: "Connect to Wifi",
sensebox_wifi_enterprise: "Connect to Wifi (WPA2 Enterprise)",
senseBox_wifi_ssid: "Networkname",
senseBox_wifi_user: "Username",
senseBox_wifi_password: "Password",
Expand Down
13 changes: 11 additions & 2 deletions src/components/CodeEditor/Compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Copy from "../copy.svg";

import MuiDrawer from "@mui/material/Drawer";
import Dialog from "../Dialog";
import copyesp32 from "../copy_esp32.svg";

const styles = (theme) => ({
backdrop: {
Expand Down Expand Up @@ -233,8 +234,16 @@ class Compile extends Component {
>
<div className="overlay">
{/* <img src={Copy} width="400" alt="copyimage"></img> */}
<h2>Dein Code wird kompiliert!</h2>
<p>übertrage ihn anschließend mithlfe der senseBoxConnect-App</p>
{ this.props.selectedBoard === 'esp32' ?
<div>
<h2>Dein Code wird kompiliert!</h2>
<p> Übertrage ihn per Drag & Drop auf deine MCU</p>
<img src={copyesp32} width="200" alt="draganddrop"></img>
</div>
: <div>
<h2>Dein Code wird kompiliert!</h2>
<p>übertrage ihn anschließend mithlfe der senseBoxConnect-App</p> </div>}

<p>
{Blockly.Msg.compile_overlay_help}
<a href="/faq" target="_blank">
Expand Down
17 changes: 14 additions & 3 deletions src/components/Workspace/Compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Copy from "../copy.svg";

import MuiDrawer from "@mui/material/Drawer";
import Dialog from "../Dialog";

import copyesp32 from "../copy_esp32.svg";
const styles = (theme) => ({
backdrop: {
zIndex: theme.zIndex.drawer + 1,
Expand Down Expand Up @@ -78,6 +78,7 @@ class Compile extends Component {
}

compile = () => {
console.log(this.props.selectedBoard);
this.setState({ progress: true });
const data = {
board: this.props.selectedBoard === "mcu" || this.props.selectedBoard === "mini" ? "sensebox-mcu" : "sensebox-esp32s2",
Expand Down Expand Up @@ -234,8 +235,18 @@ class Compile extends Component {
>
<div className="overlay">
{/* <img src={Copy} width="400" alt="copyimage"></img> */}
<h2>Dein Code wird kompiliert!</h2>
<p>übertrage ihn anschließend mithlfe der senseBoxConnect-App</p>
{ this.props.selectedBoard === 'esp32' ?
<div style={{'text-align':'center'}}>
<h2>Dein Code wird kompiliert!</h2>
<p> Übertrage ihn per Drag & Drop auf deine MCU</p>
<img src={copyesp32} width="600

" alt="draganddrop"></img>
</div>
: <div>
<h2>Dein Code wird kompiliesdsdrt!</h2>
<p>übertrage ihn anschließend mithlfe der senseBoxConnect-App</p> </div>}

<p>
{Blockly.Msg.compile_overlay_help}
<a href="/faq" target="_blank">
Expand Down
4 changes: 4 additions & 0 deletions src/components/copy_esp32.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/data/draganddrop.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.