jack-evans / opentrv-webui Goto Github PK
View Code? Open in Web Editor NEWFinal year project: building a web interface for the OpenTRV project
Final year project: building a web interface for the OpenTRV project
expect a certain format to stop someone putting in rubbish
check if user email is registered before they click Login
The nodejs-cloudant as of v2 allows for multiple plugins, therefore we can now avoid using callbacks by passing in the promises plugin when the connection with cloudant is created.
see here
In the code of cloudantRequestHelper.js the following can be seen:
logger.info(`..... ${database} ......`)
what this does is print the database object which will probably appear as [Object object] in the logs
need to play around with the cloudantRequestHelper and figure out what the database object looks like and whether the name can be retrieved from the object.
Currently looks like the following:
import './someComponent.scss'
class someComponent extends Component {.....}
The problem is in each .scss
file I then need to do:
@import '../../../node_modules/carbon-components/scss/globals/scss/styles.scss'
to use the carbon component colours....
If I change the the component to:
class someComponent extends Component {.....}
and do an @import of the scss file for the component in index.scss
, this should remove the need to import the carbon component styles each time for each component
TBD
When a user loads the ui they should not be shown the dashboard, they should be shown a sign in or register page.
This is so that the server that talks to the OpenTRV units can protect its API's, a vital security feature.
In addition by registering a user and giving a user a unique id this can be used in documents specific to that user.
Analysing the performance on the action of clicking the side menu toggle produced the following results:
Need to work out why and improve the performance of clicking the toggle for the side menu. It only appears to take a long time the first time its clicked, subsequent clicks appear to not take as long (~30ms)
The only way to close the side menu is to click the menu icon, need to add some logic to capture when it is clicked off.
if userId does not match id in GET /user/{id} then return 403
Lifecycle:
First time user:
User edits data:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.