Skip to content
MERMAID data collection web app
JavaScript HTML CSS Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci hotfix for changelog argparse during build Sep 13, 2019
ci_cd Initial commit Jun 7, 2019
libs/auth0-js
smartadmin-plugin Initial commit Jun 7, 2019
src stop row switching to read-only when adding new obs row Sep 13, 2019
svg Initial commit Jun 7, 2019
tests Initial commit Jun 7, 2019
updateSmartAdmin Initial commit Jun 7, 2019
.bowerrc Initial commit Jun 7, 2019
.gitignore add vs code settings.json to gitignore Jul 23, 2019
.jshintignore Initial commit Jun 7, 2019
.jshintrc Initial commit Jun 7, 2019
.prettierignore Initial commit Jun 7, 2019
.prettierrc.js
404.html Initial commit Jun 7, 2019
LICENSE Initial commit Jun 6, 2019
README.md Initial commit Jun 7, 2019
app.scripts.json remove logger script Jul 9, 2019
bower.json bower cleanup Jul 9, 2019
deploy.sh
gulpfile.js Initial commit Jun 7, 2019
karma.conf.js add circle config and support loading mermaid-config.js Jun 11, 2019
package-lock.json tweaks for ci Jun 25, 2019
package.json tweaks for ci Jun 25, 2019

README.md

Mermaid-Collect

Master Branch Mermaid-Collect

Dev Branch Mermaid-Collect

Auth0 Settings

  1. Copy a file called src/auth0-variables-template.js to src/auth0-variables.js
  2. Populate your Auth0 client id, domain and audience.

Development

To run the code in your development environment:

  1. Clone this repo
  2. Ensure you are running Node Version LTS Carbon
  3. Run npm install
  4. Run bower install

Now with all dependencies installed

  1. Start the development server gulp local
  2. Point your browser to http://localhost:8888

Production

To build minified version:

  • Run npm run prod

Offline Service Worker Notes

In Chrome, a hard refresh bypasses service workers as per the service worker spec. As such, if you hard refresh a page when offline, the page request will ignore service workers and make a network request.

Additionally, if the application is online, and a hard refresh occurs in any state of the app, the current page will bypass the service worker and will no longer be controlled by the service worker. If going offline immediately after an online hard refresh, the service worker will not control requests and network errors will occur when navigating.

Chrome Dev Tools allow for offline simulation. However, if visiting an offline page by checking "offline" in Chrome Dev Tools, there is an initial period where navigator.onLine will still return true. For true offline testing, it is best to test by disconnecting from your internet connection.

You can’t perform that action at this time.