-
Notifications
You must be signed in to change notification settings - Fork 0
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
Self hosted Management UI #20
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Boostrap 5 was removed from the build to reduce the bundle size. The size of the bundle is important because this app will also be used as the UI for managing TOTPs in the board. Something similar to the UI found in routers when navigating to localhost. Moreover, the site has to be kept under 1Mb to allow the spiffs.bin to be created and flashed in the esp32.
from a local network. The idea is to make this behave like the UI found in routers
c4c4382
to
dbfcda3
Compare
dbfcda3
to
37c99b6
Compare
…ile directly from the board GET /api/v1/config and PUT /api/v1/config api routes were added to the board's server. This will enable Users to update their config file directly from the board.
670c400
to
003b05c
Compare
When generating spiffs.bin with the nuxt build, the _nuxt/build/meta/{id}.json path was too long to be included, and the error shown in the link below was happening https://techoverflow.net/2022/08/07/how-to-fix-spiffs_write-error-10010-unknown/ In order to fix it, I had to manually shorten the file path.
config.yml follows yaml naming conventions for properties. so I had to convert sleepTimeout to sleep_timeout and forceCalibration to force_calibration before serializng the json into yaml and saving it to the SD card
68a1938
to
58bce30
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All runtime Settings (Configuration) are fetched from the board at
/api/v1/config
.obs: settings/config secrets are always fetched as "********". These values won't ever be exposed in the api.
obs: when submting the form it is a must to re-enter all secrets because the api doesn't update only what has was changed. I will improve this later.
The same form, but served from the board
When submitting the form, the board's server responds as follows