Skip to content
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

Offline prototype with support for private passwords #12

Merged
merged 91 commits into from
Feb 10, 2020

Conversation

kurbaniec
Copy link
Contributor

No description provided.

kurbaniec and others added 30 commits January 7, 2020 16:32
…ished - only some testing needs to be done.
…es to use them together in the generated Service Worker.

With the new approach through the compilation object of Webpack instead of file-overwriting, the Service Worker now works correctly in the Webpack-Dev-Server.
Also: Working on simplifying WebAssembly replication function in order to make heartbeat function obsolete in the future
UI-Thread now waits until Web Worker is fully loaded before adding final event listener for logic operations
This helps making the Dashboard component file a bit smaller and easier to navigate
Note: Entry display still has some missing logic
kurbaniec and others added 29 commits February 2, 2020 16:51
Category deletion and recovery is now bound to a state.
Undo operation sends the id of entry that should be recovered and recovers only this received id.
Also deletion does not delete everything at once, but every entry is deleted exactly after a specified timeout
When building WebAssembly, the invoked wasm-opt command returns a error.

To fix this, the current workaround mentioned in the issue rustwasm/wasm-pack#782 is to install wasm-opt manually with npm again.
Disabled WebAssembly optimizations in Cargo.toml

Also: Refactored Worker initialization.
When offline, remote database will no be created (locally)
Old version of wasm-pack should be installed via cargo
Deletion and recovery is now implemented in WebAssembly instead of JavaScript
Would eliminate necessary to call Wasm Worker class from JavaScript
# Conflicts:
#	WebService/src/main/app/src/sites/dashboard/add.password.js
#	WebService/src/main/app/src/sites/dashboard/dashboard.extended.js
#	WebService/src/main/app/src/sites/dashboard/dashboard.js
#	WebService/src/main/app/src/sites/dashboard/delete.cat.js
#	WebService/src/main/app/src/sites/dashboard/line.temp.js
# Conflicts:
#	WebService/src/main/app/src/sites/dashboard/edit.cat.js
Worker sent password entries before UI was ready to accept
@kurbaniec kurbaniec merged commit d07f842 into master Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant