From 232ff57543ce72aabdc581ca9507e6deba5d4fce Mon Sep 17 00:00:00 2001 From: Raz Yalov Date: Sat, 21 Apr 2018 17:02:53 -0700 Subject: [PATCH 1/2] Add a new setting to allow users to choose between `on` and `once` for how the query is being executed (to avoid the UI changing after data has been updated) Change default query to iterate over snapshot instead of use a single console.log, to make results more readable. Fix copy to clipboard to use the full result and not just the first result Also: fix UI to better display multiple results (multiple calls to console.log) by showing them in numbered tabs UI/UX: make UI show a wait animation while running long queries (using the 'loader' class) Firebase: upgrade to latest `firebase-admin` instead of `firebase` version to prevent errors with InitializeApp that is called with wrong parameters. --- create.html | 2 +- index.html | 2 +- js/app.js | 122 +++++++++++++++++++++++---------------- js/default-settings.json | 3 +- js/settings.js | 10 +++- package.json | 2 +- settings.html | 12 ++++ templates/main.html | 9 ++- 8 files changed, 105 insertions(+), 57 deletions(-) diff --git a/create.html b/create.html index 932b88a..1ee95e2 100644 --- a/create.html +++ b/create.html @@ -96,7 +96,7 @@ diff --git a/index.html b/index.html index fee5aca..bb5818c 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@