datavaccinator / vaccinatorjsclient Goto Github PK
View Code? Open in Web Editor NEWJavaScript client for Data Vaccinator
Home Page: https://www.datavaccinator.com
License: MIT License
JavaScript client for Data Vaccinator
Home Page: https://www.datavaccinator.com
License: MIT License
The WebCryptoAPI is also able to do SHA256. So we might use this instead of the forge-sha256 include.
Maybe combine this job with work for enhancement #1.
Currently, the publish() function also validates the maximum duration range (365). As this is already done by dv-vault and it may change there, we should not do in the JS lib.
Only check for < 1 but not for the maximum.
Currently, the search hash is built like this:
The drawbacks are:
As a suggestion, we might build the hash like this:
Benefits:
If changeAppId() is used, the existing search index is getting destroyed because the update call with the newly encrypted data does not submit new searchwords.
To fix this, in vaccinator_api.js -> changeAppId(), the newVac instance needs to get newVac.searchFields set to the value of that.searchFields (similar to newVac.setHeaders(that.headers);).
We should replace the localforage library with direct IndexedDB access.
See here for additional details and a possible start:
https://developers.google.com/web/ilt/pwa/working-with-indexeddb
Note: Brosers which do not support IndexedDB will not be able to run the DataVaccinator JS class then. The localforage library switches to another database schema in the backend automatically. This will be gone then!
In order to replace the dependecy to aes.js, we might replace this by using WebCryptoAPI (https://www.w3.org/TR/WebCryptoAPI/). Sadly, IE11 is still not fully implementing the standard yet (not using promises).
In the enhanced dv-vault function check, the dv-vault will return maximum values:
DataVaccinator/dv-vault#8
We should respect them and check for these limits before uploading stuff (faster, less bandwidth).
This class is setting uid to the user-identifier automatically.
There should be an optional parameter for the request to set a uid parameter (like new, get, update etc).
If someone already relies on the uid to be set with the user-identifier, they would have to adapt their code to always provide that value in the calls.
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.