-
Notifications
You must be signed in to change notification settings - Fork 0
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
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
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 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
…db17b8dbde Bump send and express
…-3.0.3 Bump braces from 3.0.2 to 3.0.3
…se-7.8.3 Bump mongoose from 7.6.3 to 7.8.3
+ Add number input field dynamic steps + Fixes npm version display
Add eng and hun support for web view Prevent reload 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
# for free
to join this conversation on GitHub.
Already have an account?
# 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.
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 theprintWidth
from 120 to 160.README.md
: Updated the command to run Prettier fromnpm
tonpx
.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 forView
andViewComponent
. [1] [2] [3]Modbus client implementation:
gateway/modbus/Client/Client.js
: Implemented the Modbus client with event handling, read/write functions, and transaction ID management.gateway/modbus/Client/ReadStream.js
: Added aReadStream
class to handle incoming Modbus data streams.gateway/modbus/Client/WriteStream.js
: Added aWriteStream
class to handle outgoing Modbus data streams.gateway/modbus/ExceptionCodes.js
: Defined Modbus exception codes and related utility functions.gateway/modbus/FunctionCodes.js
: Defined Modbus function codes and a lookup utility.Device view