- node_modules/
- app/
- server.js
- server/
- models.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.CustomSelectView = Ember.View.extend({ | |
| templateName: "customSelect", | |
| tagName: "ul", | |
| classNames: ["custom-select"], | |
| title: "Custom Select", | |
| options: null, | |
| selectedVarName: "selectedBasemap", | |
| selectedOptions: [], | |
| click: function (event) { | |
| var $this = $(event.target), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| initBaseOverlays: function () { | |
| var settings = this.get("settings"), | |
| layers = this.get("content"), | |
| baseOverlays, | |
| apiKey = settings.apiKey, | |
| overlayKey, | |
| overlay, | |
| subtype, | |
| result = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.ProvidersShowView = Ember.View.extend({ | |
| templateName: "providersShow", | |
| elementId: "providers", | |
| popupBinding: "controller.controllers.map.providerPopup", | |
| init: function () { | |
| this._super(); | |
| this.createElement(); | |
| }, | |
| /* Begin Providers Collection */ | |
| providersCollection: Ember.CollectionView.extend({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.Router.map(function () { | |
| this.route("index", { path: "/" }); | |
| this.resource("map", function () { | |
| this.resource("location", { path: "/:latlng"}, function () { | |
| this.route("summary"); | |
| this.route("providers"); | |
| }); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rendering application with default view <(subclass of Ember.View):ember382> Object {fullName: "view:application"} | |
| Rendering map with <App.MapView:ember393> Object {fullName: "view:map"} | |
| Rendering location with <App.LocationView:ember402> Object {fullName: "view:location"} | |
| Rendering location with <App.LocationView:ember406> Object {fullName: "view:location"} | |
| generated -> controller:location.index Object {fullName: "controller:location.index"} | |
| Could not find "location.index" template or view. Nothing will be rendered Object {fullName: "template:location.index"} | |
| Transitioned into 'map.location.index' | |
| Transitioned into 'map.location.index' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Running tasks: docco | |
| Running "docco" task | |
| [D] Task source: C:\Users\iradchenko\Desktop\The_Board\node_modules\grunt-docco\ | |
| tasks\docco.js | |
| Running "docco:debug" (docco) task | |
| [D] Task source: C:\Users\iradchenko\Desktop\The_Board\node_modules\grunt-docco\ | |
| tasks\docco.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return Ember.RSVP.Promise(function (resolve, reject) { | |
| var hash = { | |
| url: geocodeUrl + "/" + params.latlng, | |
| dataType: "jsonp", | |
| jsonp: "jsonp", | |
| data: { | |
| key: apiKey, | |
| includeEntityTypes: "Address" | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.SurveysNewController = Ember.ObjectController.extend({ | |
| createSurvey: function (model) { | |
| var record = App.Survey.createRecord(model); | |
| record.one("didCreate", function () { | |
| this.transitionToRoute("surveys"); | |
| }); | |
| record.get("transaction").commit(); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.get(relativeRoute('/api/addresses'), function (req, res) { | |
| var island = req.param('island'), | |
| result = {}; | |
| if (island) { | |
| Address.find({ island: island, existing_address: { $nin: ['', ' '] } }, function (err, addresses) { | |
| if (err) { | |
| console.log(err); | |
| res.send(404); | |
| return; |