diff --git a/Gruntfile.js b/Gruntfile.js index 5df1853..af7afb9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -63,10 +63,7 @@ module.exports = function(grunt) { // Minify concatenated files. uglify: { - dist: { - src: ['<%= concat.js.dest %>'], - dest: 'dist/firechat.min.js' - } + 'dist/firechat.min.js': ['dist/firechat.js'], }, // Clean up temporary files. diff --git a/LICENSE b/LICENSE index b9b77e9..e2d638c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Firebase +Copyright (c) 2016 Firebase Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 541603d..959d9e0 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,9 @@ -# Firechat +# Firechat [![Version](https://badge.fury.io/gh/firebase%2Ffirechat.svg)](http://badge.fury.io/gh/firebase%2Ffirechat) -[![Version](https://badge.fury.io/gh/firebase%2Ffirechat.svg)](http://badge.fury.io/gh/firebase%2Ffirechat) - -Firechat is a simple, extensible chat widget powered by [Firebase](https://www.firebase.com/?utm_source=firechat). -It is intended to serve as a concise, documented foundation for chat products built on Firebase. -It works out of the box, and is easily extended. +Firechat is a simple, extensible chat widget powered by +[Firebase](https://firebase.google.com/?utm_source=firechat). It is intended to serve as a concise, +documented foundation for chat products built on Firebase. It works out of the box, and is easily +extended. ## Live Demo @@ -14,71 +13,72 @@ Visit [firechat.firebaseapp.com](https://firechat.firebaseapp.com/) to see a liv ## Setup -Firechat uses [Firebase](https://www.firebase.com/?utm_source=firechat) as a backend, so it requires no server-side -code. It can be added to any web app by including a few JavaScript files +Firechat uses the [Firebase Realtime Database](https://firebase.google.com/docs/database/?utm_source=firechat) +as a backend, so it requires no server-side code. It can be added to any web app by including a few +JavaScript files: ```HTML - + - + - - + + ``` -giving your users a way to authenticate +giving your users a way to authenticate: ```HTML -Login with Twitter + ``` - -and initializing the chat. + +and initializing the chat: ```HTML -
+
``` For detailed integration instructions, see the [Firechat documentation](https://firechat.firebaseapp.com/docs/). ## Getting Started with Firebase -Firechat requires Firebase in order to store data. You can -[sign up here](https://www.firebase.com/signup/?utm_source=firechat) for a free account. +Firechat requires Firebase in order to authenticate users and store data. You can +[sign up here](https://console.firebase.google.com/?utm_source=firechat) for a free account. ## Getting Help -If you have a question about Firechat, search the -[Firebase tag on Stack Overflow](http://stackoverflow.com/questions/tagged/firebase) to see if it has already been -answered. If it hasn't been asked, post a [new question](http://stackoverflow.com/questions/ask?tags=firebase+firechat). -We keep a close eye on those tags, and will answer your question soon. - +If you have a question about Firechat, feel free to reach out through one of our +[official support channels](https://firebase.google.com/support/?utm_source=firechat). diff --git a/bower.json b/bower.json index c4dfa5c..6310730 100644 --- a/bower.json +++ b/bower.json @@ -3,7 +3,7 @@ "description": "Realtime open source chat client powered by Firebase", "version": "0.0.0", "authors": [ - "Firebase (https://www.firebase.com/)" + "Firebase (https://firebase.google.com/)" ], "homepage": "https://firechat.firebaseapp.com/", "repository": { @@ -31,6 +31,6 @@ "changelog.txt" ], "dependencies": { - "firebase": "2.0.x" + "firebase": "3.x.x" } } diff --git a/changelog.txt b/changelog.txt index e69de29..f112ad9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -0,0 +1,2 @@ +feature - Upgraded the `firebase` dependency to `3.x.x` (thanks to @cmosguy). No Firechat APIs have changed, but Firechat will no longer work with the Firebase `2.x.x` SDK. See the [web migration guide](https://firebase.google.com/support/guides/firebase-web) for detailed instructions on how to upgrade to the Firebase `3.x.x` SDK. +fixed - Fixed an issue where `onDisconnect()` operations were not properly restored upon regaining a connection to the Firebase Database (thanks to @oddui). diff --git a/examples/anonymous/index.html b/examples/anonymous/index.html index bfccf4b..c594a43 100644 --- a/examples/anonymous/index.html +++ b/examples/anonymous/index.html @@ -4,14 +4,14 @@ - + - + - - + +