Skip to content

Update micropython.js and initial windows width #37

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

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

murilopolese
Copy link
Contributor

  • Include micropython.js as a library installed from a repository branch
  • Update usage of micropython.js
    • Functions moved from the UI to the library
    • Functions return values changed
  • Fixed issue with line break
  • Fixed issues with character encoding
  • Changed initial app window width because the word "Disconnected" is bigger than "Connected" and was making the last button bleed out of the app a little bit

@@ -38,10 +38,11 @@
"license": "MIT",
"dependencies": {
"about-window": "^1.15.2",
"micropython.js": "github:murilopolese/micropython.js#v1.2.2",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so now the micropython.js is a module brought in from your repo?
interesting :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I would propose so. In the future it should be a npm package under the Arduino organization, I believe.

@@ -15,7 +15,7 @@ function store(state, emitter) {
const disk = window.BridgeDisk
const win = window.BridgeWindow

win.setWindowSize(700, 640)
win.setWindowSize(720, 640)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to set the window's size when it's already set in its initial new BrowserWindow() call?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because the app sets a default global screen constraints and the UI can "request" new window constraints. In this case particularly it's the same value.

Copy link
Collaborator

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it all looks good to me
great job 🙏🏼

@murilopolese murilopolese merged commit b15464b into main Mar 3, 2023
@murilopolese murilopolese deleted the feature/update-micropythonjs branch March 3, 2023 12:58
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.

2 participants