This file contains 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
.arcgis-pages { | |
width: 250px; | |
padding: 15px; | |
background-color: $Calcite_Gray_100; | |
outline:1px solid #ccc; | |
.form-group { | |
margin-bottom: 2px; | |
.form-control, .form-control[readonly], .dropdown-menu, .btn-default { | |
border: 1px solid $gray-light; |
This file contains 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
/* Vars that are needed in some of the other imports and | |
would normally come from calcite, but we are not including it | |
in this site */ | |
$Calcite_Gray_050: #ffffff; // white | |
$Calcite_Gray_700: #323232; // 80%, previously Esri_Gray160 | |
/* set the output folder for fonts */ | |
body{ |
This file contains 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
{ | |
"data": { | |
"attributes": { | |
"draft": "{\"layout\":{\"cards\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":5,\"component\":{\"name\":\"jumbotron-card\",\"minWidth\":12,\"editor\":\"jumbotron-card-editor\",\"settings\":{\"header\":\"Hello World!\",\"subheader\":\"This is our Open Data website\",\"imageUrl\":\"http://cdn.playbuzz.com/cdn/32046b2f-38d4-4a82-8634-e1a72dd8f6ac/3bd0af20-55a4-48d7-84ea-7ffb29680186.jpg\",\"showLocation\":true}}},{\"x\":0,\"y\":9,\"width\":6,\"height\":10,\"component\":{\"name\":\"markdown-card\",\"settings\":{\"markdown\":\"# Hello World \\n Lets not be stupid about this. But we need images and other things of goodness \\n \\n <img src=\\\"http://assets.pokemon.com/assets/cms2/img/pokedex/full/025.png\\\"/><hr>\\n### And Lists \\n - of good things\\n- and bad\"}}},{\"x\":4,\"y\":5,\"width\":6,\"height\":4,\"component\":{\"name\":\"placeholder-card\"}}],\"header\":{\"title\":\"My Super Site\",\"logoUrl\":\"http://omgnikki.com/wp-content/uploads/2015/03/sm-icon_pin.png\",\"ful |
This file contains 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
{ | |
"version": "2", | |
"header": { | |
"title": "VizWit", | |
"description": "Lorem ipsum dolor sit amet" | |
}, | |
"cards": [ | |
{ | |
"x": 0, | |
"y": 0, |
This file contains 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
{ | |
"version": "2", | |
"header": { | |
"title": "VizWit", | |
"description": "Lorem ipsum dolor sit amet" | |
}, | |
"cards": [ | |
{ | |
"x": 0, | |
"y": 0, |
This file contains 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
/** | |
* Wrapper to send Events to Google Analytics | |
* @param {string} action Action we are logging. lower-case | |
* @param {string} category standardized event categories | |
* @param {string} label optional description | |
*/ | |
logUiEvent: function(action, category, label){ | |
var lb = label || ''; | |
//check for google analytics | |
if(window.ga){ |
This file contains 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
/** | |
* Wrapper that allows us to log pageviews | |
* in our SPA | |
*/ | |
logPageView: function(route){ | |
//check if google analytics is loaded | |
if(window.ga){ | |
//send the pageview details | |
ga('send','pageview', route); | |
} |
This file contains 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
describe('constructor', function () { | |
it('throws without an id', function() { | |
//this is sligtly obtuse formatting, but expect() requires a function | |
//and new Something is not a function, so we wrap it. | |
expect(function(){var m = new Composer.Models.Dataset();}).toThrow(); | |
}); | |
it('does not throw with an id', function() { | |
var f = function(){ |
This file contains 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
describe('loads itself from the service', function () { | |
beforeEach(function() { | |
json = getJSONFixture('entities/Dataset/dataset.json'); | |
var response = { | |
status: 200, | |
responseText: JSON.stringify(json) | |
}; | |
jasmine.Ajax.useMock(); | |
model = new Composer.Models.Dataset({id:json.data.id}); | |
model.fetch(); |