Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

v0.2.32-beta.2 release #24

Merged
merged 59 commits into from
Feb 3, 2025
Merged

v0.2.32-beta.2 release #24

merged 59 commits into from
Feb 3, 2025

Conversation

Aranyalma2
Copy link
Owner

This pull request includes various changes across multiple files to improve the configuration, database connection, and Modbus client implementation. The most important changes can be grouped into configuration updates, database enhancements, and Modbus client implementation.

Configuration updates:

  • .prettierrc: Increased the printWidth from 120 to 160.
  • README.md: Updated the command to run Prettier from npm to npx.
  • dev.env: Added environment variables for development configuration.

Database enhancements:

  • db.js: Updated database address and collection name to use environment variables. Added error handling for database connection. Introduced schemas and models for View and ViewComponent. [1] [2] [3]

Modbus client implementation:

Device view

Aranyalma2 and others added 30 commits May 30, 2024 21:11
Use environment vars for prod/dev run
Remove user re-query
Auto login feature for a profile in development env
## ViewScheme

Just a pool of components

* components

## ViewComponentScheme

* name (head name)
* type (button/switch/etc...)
* order
* dataAccessBy (commpunication protocol for backend)
* data (All addition paramter for mostly backend communication)
Dev env autologin is much simpler now
Update locals file
Update device url paths
Update MW runtime error handling
Add view page
Add view / view component query from db
Add a component pre-renderer (Not for production) Later move it to client side.
Add JSON Builder skeleton MW for response ../api GET
Add Task Runner skeleton MW for run the task from ../api POST
Update download url path
Forgotten hehe
Pass the whole component object to client and send back on request
Add a simple modbus protocol emulator client
Add an handler for create modbus client via tcp client. Send socket binding request to gateway for given user-device.
Save the connection modbus client object. Delete them after x (30s) time idle.
Fix attribute name typo in deviceView.ejs
Fix old Buffer usage. Lib has more
FIX IT LATER
Only works with x03 modbus function
Device view, now fully client side rendered
Separated to multiple js files
Scripts manipulate the container array, and not the DOM (except dragging) => Every layout manipulation has to be rendered by renderer function (re-render everything and re-add event listeners)
Add individual modbus and extra attributes in db for a component.
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.6.3 to 7.8.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](Automattic/mongoose@7.6.3...7.8.3)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](pillarjs/send@0.18.0...0.19.0)

Updates `express` from 4.19.2 to 4.21.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md)
- [Commits](expressjs/express@4.19.2...4.21.2)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.2 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](expressjs/serve-static@v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md)
- [Commits](expressjs/express@4.19.2...4.21.2)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…63fbbd1def

Bump serve-static and express
…se-7.8.3

Bump mongoose from 7.6.3 to 7.8.3
Aranyalma2 and others added 28 commits December 26, 2024 20:44
+ Add number input field dynamic steps
+ Fixes npm version display
Add eng and hun support for web view
Prevent reload on edit mode
source out css
remove shallow copy bug on make editModeComponent array
Add WebView Switch component
Update style of other components
Increase component height on edit mode
separate disableUpdateOnFocus class attribute from common viewActive
Add general style renderer
 * supports button type yet
Add style fields for edit modal
Extra parameters and style group connected via class, and hide/show by selected type
Lamp styles
* Rectangle +Neon
* Rounded + Neon
* Circle +Neon

different color on state
different label on state
blink  effect on active mode
color picker with jscolor
Bumps [mongoose](https://github.com/Automattic/mongoose) from 7.8.3 to 7.8.4.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](Automattic/mongoose@7.8.3...7.8.4)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…se-7.8.4

Bump mongoose from 7.8.3 to 7.8.4
Add color changeable switch
Update lamp state by classes with dynamic css
# New layouts
* Add layout switch button with modal
* Stored on server side as components
* Now complex layout rendering methods can be implemented

### How
* Add layout setting as an object (stored in db in view schema)
* edit and run mode render separated
* works similar as components store (on client side) and edit form

# Rename and move files

# Fix some graphical issue on mobile view
# Version 0.2.28.dev improvements

## Show api errors in Toast window on the bottom right corner
* Errors can be stack
* Add new error to Toast bar with ErrorToaster.addError(object) object: title, level, message (Use errorResolver - **NOT IMPLEMENTED YET**)
* Clear them on close
* Show/Hide details button

## Updated component updater
 * remove error text from card -> add a 3px red border on card

#### Misc
* include bootstrap and jquery js in <head>
## Server side
* modbus request add timeout checking
* fixing user object in session caching
* Verbose general error pattern on sever side
* Response generated about modbus write operations
* Fix unnecessary db call if no view exists

## Client side
* Multi lang client side error display by errorResolver
* Response check on write operations
Resolve fetch API errors
Maximize error toast height to 80%
Rename some error
Add return button on view
Fix some mobile layout on headline
Move out device delete function to a separated property view
fix again #c62e883
@Aranyalma2 Aranyalma2 added the enhancement New feature or request label Feb 3, 2025
@Aranyalma2 Aranyalma2 merged commit c3f4a1e into production Feb 3, 2025
0 of 2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant