Skip to content

Commit b493b79

Browse files
ozasadnyymuldoon2007
authored andcommitted
Fix Firestore multitab cache. Update Firestore init script
1 parent 359cb23 commit b493b79

File tree

5 files changed

+1702
-3391
lines changed

5 files changed

+1702
-3391
lines changed

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hoverboard",
3-
"version": "2.0.0-alpha.1",
3+
"version": "2.1.0",
44
"authors": [
55
"Oleh Zasadnyy, GDG Lviv",
66
"Sophie Huts, GDG Lviv"
@@ -22,7 +22,7 @@
2222
"iron-icon": "PolymerElements/iron-icon#^2.0.0",
2323
"paper-button": "PolymerElements/paper-button#^2.0.0",
2424
"iron-lazy-pages": "TimvdLippe/iron-lazy-pages#^2.0.2",
25-
"firebase": "^5.1.0",
25+
"firebase": "^5.5.0",
2626
"marked-element": "PolymerElements/marked-element#^2.1.1",
2727
"clamp-js": "*",
2828
"iron-ajax": "PolymerElements/iron-ajax#^2.0.2",

docs/tutorials/firebase.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ In case to have Authentication and My Schedule features, you'll need a Firebase
2828
- Press **GENERATE NEW PRIVATE KEY**
2929
- Rename downloaded file to `serviceAccount.json` and place it to the root of your hoverboard directory (❗Do NOT commit this file to the public repository)
3030
- [Optional] You can edit `docs/default-firebase-data.json)` file using your own data
31+
- Select your Firebase project `firebase use <YOUR_PROJECT_ID>`
3132
- Run `yarn firestore:init`
3233

3334
1. Whoa! You've set up Firebase into your app.

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128

129129
const firestore = firebase.firestore();
130130
firestore.settings({ timestampsInSnapshots: true });
131-
firebase.firestore().enablePersistence()
131+
firebase.firestore()
132+
.enablePersistence({ experimentalTabSynchronization: true })
132133
.catch(() => {
133134
console.warn('DB offline support not available'); // eslint-disable-line no-console
134135
});

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hoverboard",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Conference website template",
55
"scripts": {
66
"gulp": "gulp",
@@ -10,7 +10,7 @@
1010
"predeploy": "cd ./functions && npm i",
1111
"deploy": "gulp deploy",
1212
"deploy:prod": "cross-env BUILD_ENV=production gulp deploy",
13-
"firestore:init": "firebase firestore:delete -r --all-collections && babel-node ./internals/import-default-data",
13+
"firestore:init": "firebase firestore:delete -r --all-collections && firebase functions:config:set schedule.enabled='true' && firebase deploy --except hosting && babel-node ./internals/import-default-data",
1414
"firestore:copy": "babel-node ./internals/firestore-copy-data",
1515
"postinstall": "bower install",
1616
"serve": "gulp serve",
@@ -26,11 +26,11 @@
2626
"redux-thunk": "^2.2.0"
2727
},
2828
"devDependencies": {
29-
"@babel/core": "^7.0.0-beta.52",
30-
"@babel/node": "^7.0.0-beta.52",
31-
"@babel/preset-env": "^7.0.0-beta.52",
29+
"@babel/core": "7.0.0-beta.52",
30+
"@babel/node": "7.0.0-beta.52",
31+
"@babel/preset-env": "7.0.0-beta.52",
3232
"bower": "^1.8.2",
33-
"browser-sync": "^2.23.2",
33+
"browser-sync": "2.24.7",
3434
"connect-history-api-fallback": "^1.5.0",
3535
"cross-env": "^5.1.3",
3636
"css-slam": "^2.0.2",
@@ -52,7 +52,7 @@
5252
"gulp-nunjucks": "^3.1.1",
5353
"gulp-replace": "^0.6.1",
5454
"gulp-run": "^1.7.1",
55-
"gulp-uglify": "^3.0.0",
55+
"gulp-uglify": "3.0.1",
5656
"merge-stream": "^1.0.1",
5757
"polymer-build": "^2.1.1",
5858
"pre-commit": "^1.2.2",

0 commit comments

Comments
 (0)