├── app ├── css │ ├── .gitkeep │ └── main.css ├── img │ └── .gitkeep ├── partials │ ├── .gitkeep │ ├── login.html │ ├── result.html │ └── survey.html ├── favicon.ico ├── lib │ ├── bootstrap │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ ├── js │ │ │ ├── npm.js │ │ │ └── bootstrap.min.js │ │ └── css │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap-theme.min.css.map │ │ │ ├── bootstrap-theme.css │ │ │ └── bootstrap-theme.css.map │ ├── angular │ │ ├── angular-route.min.js │ │ └── angular-route.min.js.map │ └── angularFire │ │ └── angularfire.min.js ├── js │ ├── services.js │ ├── filters.js │ ├── config.js │ ├── app.js │ ├── directives.js │ └── controllers.js └── index.html ├── .gitattributes ├── LICENSE ├── CHANGELOG.md ├── README.md └── .gitignore /app/css/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/img/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/partials/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdeng/angularfire-survey/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdeng/angularfire-survey/HEAD/app/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /app/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdeng/angularfire-survey/HEAD/app/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /app/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdeng/angularfire-survey/HEAD/app/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /app/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdeng/angularfire-survey/HEAD/app/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /app/js/services.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | /** 4 | * Services module which defines app version and FBURL. 5 | * @module myApp/services 6 | */ 7 | var app = angular.module("myApp.services", ["firebase"]); 8 | 9 | // define app version 10 | app.value("version", "1.1.0"); 11 | 12 | // re-usable factory that generates the $firebaseAuth instance 13 | app.factory("Auth", function($firebaseAuth) { 14 | return $firebaseAuth(); 15 | } 16 | ); -------------------------------------------------------------------------------- /app/css/main.css: -------------------------------------------------------------------------------- 1 | /* app css stylesheet */ 2 | 3 | .container .credit { 4 | margin: 16px 0; 5 | } 6 | 7 | /* star rating */ 8 | .rating{ 9 | color: #3276b1; 10 | margin: 0; 11 | padding: 0; 12 | } 13 | 14 | ul.rating { 15 | display: inline-block; 16 | } 17 | 18 | .rating li { 19 | list-style-type: none; 20 | display: inline-block; 21 | padding: 1px; 22 | text-align: center; 23 | font-weight: bold; 24 | cursor: pointer; 25 | font-size: 2em; 26 | } -------------------------------------------------------------------------------- /app/js/filters.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Filters module which defines filters for application. 5 | * @module myApp/filteres 6 | */ 7 | var app = angular.module('myApp.filters', ['ngRoute']) 8 | 9 | /** 10 | * Interpolate app version. 11 | * @param {String} version - App version defined in services. 12 | */ 13 | app.filter('interpolate', ['version', function(version) { 14 | return function(text) { 15 | return String(text).replace(/\%VERSION\%/mg, version); 16 | }; 17 | } 18 | ]); -------------------------------------------------------------------------------- /app/lib/bootstrap/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /app/js/config.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | /** 4 | * Config module which defines Firebase URL. 5 | * @module myApp/config 6 | */ 7 | var app = angular.module("myApp.config", []); 8 | 9 | // your Firebase URL goes here 10 | var config = { 11 | apiKey: "AIzaSyAVCmE0CaAntEeB7p3Up9L990FGHnO11_E", 12 | authDomain: "angularfire-survey.firebaseapp.com", 13 | databaseURL: "https://angularfire-survey.firebaseio.com", 14 | storageBucket: "angularfire-survey.appspot.com", 15 | messagingSenderId: "204946184892" 16 | }; 17 | firebase.initializeApp(config); 18 | 19 | // double-check whether the app has been configured 20 | if (config.authDomain === "angularfire-survey.firebaseapp.com") { 21 | angular.element(document.body).html("
| Time | 8 |Name | 9 |Age | 10 |Colors | 11 |Lunch? | 12 |Rating | 13 |Comment | 14 |
|---|---|---|---|---|---|---|
| {{result.timestamp | date:"MM/dd/yyyy @ h:mma"}} | 19 |{{result.name}} | 20 |21 | Less than 30 22 | 30 and above 23 | | 24 |25 | Red 26 | Blue 27 | Green 28 | | 29 |30 | Yes 31 | No 32 | | 33 |{{result.rating}} Stars | 34 |{{result.comment}} | 35 |