DEPRECATED
Contains all sites, including unsupported ones.
DEPRECATED
All privacy ratings available for TRACE sites.
DEPRECATED
DEPRECATED
DEPRECATED
All tags available on TRACE sites.
Close the local database connection.
This creates a new instance of the singleton
on the next call to getDb()
.
Close the remote database connection.
This creates a new instance of the singleton
on the next call to getRemoteDb()
.
Destroy the local database connection.
This creates a new instance of the singleton
on the next call to getDb()
.
This also removed the user's encryption key.
Destroy the remote database connection.
This creates a new instance of the singleton
on the next call to getRemoteDb()
.
Turn off sync and remember that it's off.
Turn on sync and remember that it's on.
Export all accounts to CSV.
Serialize and export all dashboard accounts and searches to JSON.
This format can be re-imported to TRACE sometime in the future.
Export all dashboard accounts and searches to a more verbose JSON that is more human readable.
TODO: This might not even work because some of the objects are recursive.
This function sends a request to the website to search for a specified username. The format of the request is based off of the fields in the site JSON argument Returns a JSON with fields denoting whether the account is found or not)
JSON with data corresponding to the site currently being searched
username to search for
Parent search object
Based off of the password passed in, encryption key is stored in localStorage
Initialize or return the PouchDB instance.
Compute current user's encryption key, if they are logged in If not logged in, error is thrown
Initialize or return the remote database instance (i.e. CouchDB).
Passing userId
sets the
Remove encryption key from localStorage
Remove all data in the local database and re-run setup.
This also clears the in-memory cache of all objects.
Remove all data from the remote database.
TODO: Figure out how to propagate this to any other synced devices and to fully remove the old documents from the CouchDB instance
Set the remote user that will be used to connect to the remote database.
Call with null
to reset all remote/user-related utilities.
YOU PROBABLY SHOULD BE USING enableSync
.
Setup replication to and from the remote CouchDB server.
Stop replication.
Generated using TypeDoc
Rating from 0-10 with 10 being highly confident.