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
//if set to appear | |
// if displayed, return false | |
// else start appearing | |
//else | |
// if displayed, start disappearing | |
// else return false |
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
var https = require('https'); | |
var options = { | |
hostname: 'gbfs.bcycle.com', | |
port: 443, | |
path: '/bcycle_pacersbikeshare/station_information.json', | |
method: 'GET' | |
}; |
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
//if appearing (boolean) has NOT changed | |
if (!(nextProps.dropZone.appearing ^ dropZone.appearing)) { return false } |
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
define(function () { | |
return { | |
'layout_A': { | |
slots: {}, | |
content: '', | |
meta: { | |
layoutOptions: { | |
type: 'layout_A', | |
spacing: 6, | |
rows: [ |
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
import React from 'react' | |
import { render } from 'react-dom' | |
import HTML5Backend from 'react-dnd-html5-backend' | |
import { DragDropContext, DropTarget } from 'react-dnd' | |
import ReactTransitionGroup from 'react-addons-transition-group' | |
@DragDropContext(HTML5Backend) | |
class App extends React.Component { | |
constructor() { |
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
// import 'babel-core/polyfill' //i guess this needs to be first? | |
import './index.html' | |
import './favicon.ico' | |
import 'react-bootstrap' | |
import 'bootstrap/dist/css/bootstrap.css' | |
import './index.less' |
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
// import 'babel-core/polyfill' //i guess this needs to be first? | |
import './index.html' | |
import './favicon.ico' | |
import 'react-bootstrap' | |
import 'bootstrap/dist/css/bootstrap.css' | |
import './index.less' |
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
import React from 'react' | |
import { render } from 'react-dom' | |
import HTML5Backend from 'react-dnd-html5-backend' | |
import { DragDropContext, DropTarget } from 'react-dnd' | |
import ReactTransitionGroup from 'react-addons-transition-group' | |
@DragDropContext(HTML5Backend) | |
class App extends React.Component { | |
constructor() { |
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
reference: function (e, r) { | |
var self = this; | |
// the different types of references below | |
var fullSelector = '[data-reference-type~="full"]';// full replacement | |
var innerSelector = '[data-reference-type~="inner"]';// replace with inner | |
var attrSelector = '[data-reference-type~="attributes"]';// replace attributes | |
var nullSelector = '[data-reference-type="none"]';// remove | |
$.each(r.find(attrSelector).addBack(attrSelector), function (i, attr) { |
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
this.$el.find('.geartabselement').geartabs('setTarget', this.target); | |
this.$el.find('.geartabselement').geartabs('selectTab', 'content'); | |
if (this.gearView.gear && this.gearView.gear.id && this.gearView.gear.assetType !== 'image') { | |
this.saveAndUpdate.removeClass('disabled'); | |
} else { | |
this.saveAndUpdate.addClass('disabled'); | |
} | |
if (this.gearView.gear) { |