From 4f48912e010e4ae84d1499ef5e2f0d3e55006639 Mon Sep 17 00:00:00 2001 From: Scarygami Date: Sat, 30 Sep 2017 22:37:39 +0200 Subject: [PATCH 1/2] Add projectId to app options --- firebase-app.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/firebase-app.html b/firebase-app.html index 6ec937f..386096a 100644 --- a/firebase-app.html +++ b/firebase-app.html @@ -95,6 +95,17 @@ value: null }, + /** + * The Google Cloud Project ID for your project. You can find this + * in the Firebase Console under "Web Setup". + * + * For example: `polymerfire-test` + */ + projectId: { + type: String, + value: null + }, + /** * The Firebase app object constructed from the other fields of * this element. @@ -103,16 +114,17 @@ app: { type: Object, notify: true, - computed: '__computeApp(name, apiKey, authDomain, databaseUrl, storageBucket, messagingSenderId)' + computed: '__computeApp(name, apiKey, authDomain, databaseUrl, storageBucket, messagingSenderId, projectId)' } }, - __computeApp: function(name, apiKey, authDomain, databaseUrl, storageBucket, messagingSenderId) { + __computeApp: function(name, apiKey, authDomain, databaseUrl, storageBucket, messagingSenderId, projectId) { if (apiKey && authDomain && databaseUrl) { var init = [{ apiKey: apiKey, authDomain: authDomain, databaseURL: databaseUrl, + projectId: projectId, storageBucket: storageBucket, messagingSenderId: messagingSenderId }]; From f55ce320a6882c34ce7ce128720939bdc5f0eb0f Mon Sep 17 00:00:00 2001 From: Scarygami Date: Tue, 3 Oct 2017 18:50:18 +0200 Subject: [PATCH 2/2] Prepare Firestore functionality --- bower.json | 4 ++-- firebase-app.html | 1 + firebase-firestore-script.html | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 firebase-firestore-script.html diff --git a/bower.json b/bower.json index 5ab8e60..f9946a4 100644 --- a/bower.json +++ b/bower.json @@ -19,7 +19,7 @@ ], "dependencies": { "polymer": "Polymer/polymer#1.9 - 2", - "firebase": "^4.1.1", + "firebase": "^4.5.0", "app-storage": "PolymerElements/app-storage#1 - 2" }, "devDependencies": { @@ -33,7 +33,7 @@ "1.x": { "dependencies": { "polymer": "Polymer/polymer#^1.9", - "firebase": "^4.1.1", + "firebase": "^4.5.0", "app-storage": "PolymerElements/app-storage#^0.9.0" }, "devDependencies": { diff --git a/firebase-app.html b/firebase-app.html index 386096a..f4ba9d2 100644 --- a/firebase-app.html +++ b/firebase-app.html @@ -14,6 +14,7 @@ + \ No newline at end of file