conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
=======
store.mods.editor && (store.mods.editor.root = () => git.root())
const vars = store.vars;
>>>>>>>
store.mods.editor && (store.mods.editor.root = () => git.root()) |
<<<<<<<
// import treeLossTsc from 'components/widgets/forest-change/tree-loss-tsc';
=======
import treeLossTsc from 'components/widgets/forest-change/tree-loss-tsc';
import fires from 'components/widgets/forest-change/fires';
>>>>>>>
import treeLossTsc from 'components/widgets/forest-change/tree-loss-tsc'; |
<<<<<<<
},
initPaginate: function(){
var options = this.getPaginateOptions();
// pagination
this.$paginationContainer = $('#my-gfw-subscriptions-pagination');
this.$paginationContainer.pagination(options);
},
getPaginateSubscriptions: function() {
var start = this.model.g... |
<<<<<<<
import { getNonGlobalDatasets } from 'services/forest-data';
import { setDashboardPromptsSettings } from 'components/prompts/dashboard-prompts/actions';
=======
import { getNonGlobalDatasets } from 'services/analysis-cached';
>>>>>>>
import { setDashboardPromptsSettings } from 'components/prompts/dashboard-p... |
<<<<<<<
import axios from 'axios';
import moment from 'moment';
=======
import { apiRequest, cartoRquest } from 'utils/request';
>>>>>>>
import { apiRequest, cartoRequest } from 'utils/request';
<<<<<<<
}`.replace('{WHERE}', getWHEREQuery({ adm0, adm1, adm2, ...params }));
return axios.get(url).then(response =>... |
<<<<<<<
'map/views/layers/PerBufferLayer',
'map/views/layers/PerNatPALayer',
'map/views/layers/PerPrivPALayer',
'map/views/layers/PerRegPALayer',
'map/views/layers/IdnForMorLayer',
=======
// high resolution maps
'map/views/layers/UrthecastLayer',
>>>>>>>
'map/views/layers/PerBufferLayer',
'map/vie... |
<<<<<<<
},
responsiblesHelper() {
let aTopic = new Topic(this.minutesID, this.topic._id);
if (aTopic.hasResponsibles()) {
return "("+aTopic.getResponsiblesString()+")";
}
return "";
=======
},
showRecurringIcon() {
return (this.isEditable || this.t... |
<<<<<<<
// some responsive CSS tweaking
useClassWell() {
if (! Session.get("global.isMobileWidth")) {
return "well";
}
},
switch2MultiColumn() {
let aMin = new Minutes(_minutesID);
if (aMin.participants.length > 7) {
return "multicolumn";
... |
<<<<<<<
'map/views/layers/MysLoggingSabahLayer',
=======
'map/views/layers/MysPASabahLayer',
>>>>>>>
'map/views/layers/MysLoggingSabahLayer',
'map/views/layers/MysPASabahLayer',
<<<<<<<
MysLoggingSabahLayer,
=======
MysPASabahLayer,
>>>>>>>
MysLoggingSabahLayer,
MysPASabahLayer, |
<<<<<<<
activeBasemap: getBasemap,
=======
showRecentImagery: getShowRecentImagery,
>>>>>>>
activeBasemap: getBasemap,
showRecentImagery: getShowRecentImagery, |
<<<<<<<
import { setMainMapSettings } from 'pages/map/actions';
=======
import { setMapSettings } from 'components/map/actions';
import { setMainMapSettings } from 'layouts/map/actions';
>>>>>>>
import { setMainMapSettings } from 'layouts/map/actions'; |
<<<<<<<
MapControlsView, TabsView, AnalysisResultsView, LayersNavView, LegendView, TimelineView, NavMobileView, GuideView, HeaderView, FooterView, NotificationsView, DownloadView) {
=======
MapControlsView, TabsView, AnalysisResultsView, LayersNavView, LegendView, TimelineView, NavMobileView, HeaderView, Foot... |
<<<<<<<
import * as gladBiodiversity from './widgets/biodiversity/glad-biodiversity';
import * as intactness from './widgets/biodiversity/intactness';
=======
// import * as gladBiodiversity from './widgets/biodiversity/glad-biodiversity';
>>>>>>>
import * as intactness from './widgets/biodiversity/intactness';
// i... |
<<<<<<<
'text!map/templates/layersNavByCountryWrapper.handlebars',
'text!map/templates/tabs/countries-mobile.handlebars'
], function(_, Handlebars, amplify, chosen, Presenter, tpl, tplIso, tplButtons, tplCountryWrapper, tplMobile) {
=======
], function(_, Handlebars, amplify, chosen, Presenter, tpl, tplIso, tplBu... |
<<<<<<<
(params.glad ? polynameMeta.gladTableKey : polynameMeta.tableKey);
let paramKey = p;
if (p === 'threshold') paramKey = 'treecover_density__threshold';
if (p === 'iso' && params.type === 'geostore') paramKey = 'geostore__id';
if (p === 'iso' && params.type === 'wdpa') paramKey = '... |
<<<<<<<
import * as woodyBiomass from './widgets/climate/whrc-biomass/';
=======
import * as emissionsPlantations from './widgets/climate/emissions-plantations';
>>>>>>>
import * as woodyBiomass from './widgets/climate/whrc-biomass/';
import * as emissionsPlantations from './widgets/climate/emissions-plantations';
... |
<<<<<<<
import * as emissionsDeforestationActions from 'pages/country/widget/widgets/widget-emissions-deforestation/widget-emissions-deforestation-actions';
=======
import * as firesActions from 'pages/country/widget/widgets/widget-fires/widget-fires-actions';
>>>>>>>
import * as emissionsDeforestationActions from '... |
<<<<<<<
const getRankingLocationQuery = (country, region, subRegion) =>
`${
region
? `iso = '${country}' ${subRegion ? `AND adm1 = ${region}` : ''}`
: '1 = 1'
}`;
export const getLocations = ({ country, region, indicator, threshold }) => {
=======
export const getLocations = ({
country,
regio... |
<<<<<<<
.replace('{indicator}', getIndicatorQuery(forestType, landCategory));
return axios.get(url);
=======
.replace('{indicator}', indicator);
return request.get(url);
>>>>>>>
.replace('{indicator}', getIndicatorQuery(forestType, landCategory));
return request.get(url);
<<<<<<<
.replace('{in... |
<<<<<<<
=======
let template = 'Hello {{name}}, time: {{time}}';
const date = new Date();
const name = '4minitz';
>>>>>>>
<<<<<<<
it('uses the style template helper to include stylesheet files', function() {
const template = '{{style style.css}}';
const expect... |
<<<<<<<
=======
'Analysis/upload': function(geojson) {
ga('send', 'event', 'Map', 'Analysis', 'Upload Shapefile');
this._saveAndAnalyzeGeojson(geojson, {draw: true});
}
}, {
>>>>>>> |
<<<<<<<
import { ResponsiblePreparer } from '/imports/client/ResponsiblePreparer';
=======
import { Label } from '/imports/label';
>>>>>>>
import { ResponsiblePreparer } from '/imports/client/ResponsiblePreparer';
import { Label } from '/imports/label';
<<<<<<<
import {configureSelect2Labels} from './helpers/config... |
<<<<<<<
E2ETopics.insertTopicDataIntoDialog(aTopic, aResponsible);
=======
E2ETopics.insertTopicDataIntoDialog(aTopic);
E2ETopics.submitTopicDialog();
>>>>>>>
E2ETopics.insertTopicDataIntoDialog(aTopic, aResponsible);
E2ETopics.submitTopicDialog();
<<<<<<<
E2EGlobal.... |
<<<<<<<
define([
'underscore',
=======
define(
[
>>>>>>>
define(
[
'underscore',
<<<<<<<
'map/presenters/layers/BraMapBiomasLayerPresenter'
], function(_, d3, UriTemplate, CanvasLayerClass, Presenter) {
=======
'map/presenters/layers/Forest2010LayerPresenter'
],
function(d3, UriTemplate... |
<<<<<<<
import { ReactiveVar } from 'meteor/reactive-var';
=======
import { FlowRouter } from 'meteor/kadira:flow-router';
>>>>>>>
import { ReactiveVar } from 'meteor/reactive-var';
import { FlowRouter } from 'meteor/kadira:flow-router';
<<<<<<<
_meetingSeriesID = this.data.meetingSeriesId;
this.activeTabTe... |
<<<<<<<
import plantationsByType from './layers/plantationsByType';
import Glad from './layers/glad';
=======
import PlantationsBySpecies from './layers/plantations-by-species';
import Viirs from './layers/viirs';
>>>>>>>
import plantationsByType from './layers/plantationsByType';
import Glad from './layers/glad';
i... |
<<<<<<<
import { getNonGlobalDatasets } from 'services/analysis-cached';
=======
import { setDashboardPromptsSettings } from 'components/prompts/dashboard-prompts/actions';
import { getNonGlobalDatasets } from 'services/forest-data-old';
>>>>>>>
import { getNonGlobalDatasets } from 'services/analysis-cached';
import... |
<<<<<<<
export const getData = ({ params }) => {
let polyname = 'plantations';
switch (params.indicator) {
case 'primary_forest__wdpa':
polyname = 'plantations__wdpa';
break;
case 'primary_forest__mining':
polyname = 'plantations__mining';
break;
case 'primary_forest__landmark':
... |
<<<<<<<
const selectSection = (state, props) => props.exploreType;
const selectQuery = state => state.location && state.location.query;
=======
const selectSection = (state, props) => props.exploreSection;
>>>>>>>
const selectSection = (state, props) => props.exploreType; |
<<<<<<<
key('s', this.shareMap);
key('t', this.toggleModules);
=======
key('f', this.shareMap);
key('h', this.toggleModules);
>>>>>>>
key('s', this.shareMap);
key('h', this.toggleModules);
<<<<<<<
render: function (mobile) {
if (mobile) {
this.$el.html(this.tem... |
<<<<<<<
});
export const getCumulative = params =>
range(2015, 2019).map(year => {
const url = `${process.env.GFW_API}/v1/query/?sql=`;
const query = `SELECT sum(alerts) AS alerts,
sum(cumulative_emissions) AS cumulative_emissions,
sum(cumulative_deforestation) AS cumulative_deforestation,
sum(loss_ha) AS... |
<<<<<<<
country: (!!iso) ? _.findWhere(this.countries, { iso: iso.country }) : null,
=======
country: (!!iso) ? _.findWhere(this.countries.toJSON(), { iso: iso.country }) : null,
more: more
>>>>>>>
country: (!!iso) ? _.findWhere(this.countries, { iso: iso.country }) : null,
mo... |
<<<<<<<
embedHeight: 600,
embedWidth: 600
=======
hideEmbed: true
>>>>>>>
embedHeight: 600,
embedWidth: 600
hideEmbed: true
<<<<<<<
var url = $(event.currentTarget).data('share-url') || window.location.href;
this.model.set('url', url);
var embedUrl = $(event.cu... |
<<<<<<<
whitelists: handleActions(whitelistsProviderComponent),
datasets: handleActions(datasetsProviderComponent)
=======
datasets: handleActions(datasetsProviderComponent),
layerSpec: handleActions(layerSpecProviderComponent)
>>>>>>>
whitelists: handleActions(whitelistsProviderComponent),
datasets: han... |
<<<<<<<
export const TOPICS = 'location/TOPICS';
=======
export const THANKYOU = 'location/THANKYOU';
>>>>>>>
export const TOPICS = 'location/TOPICS';
export const THANKYOU = 'location/THANKYOU'; |
<<<<<<<
const getLatest = state => state.latest || null;
=======
const getCountries = state => state.countries || null;
>>>>>>>
const getLatest = state => state.latest || null;
const getCountries = state => state.countries || null;
<<<<<<<
visibility,
opacity,
active: layers && layers.... |
<<<<<<<
const mapStateToProps = (
{ countryData, widgets, location, datasets, geostore, latest },
{ widgetKey }
) => ({
=======
const mapStateToProps = ({ location, datasets, geostore }) => ({
>>>>>>>
const mapStateToProps = ({ location, datasets, geostore, latest }) => ({
<<<<<<<
...widgets,
...geostor... |
<<<<<<<
/**
* Checks whether this topic has associated responsibles
* or not. This method must have the same name as the
* actionItem.hasResponsibles method.
*
* @return {boolean}
*/
=======
getLabels(meetingSeriesId) {
return this.getLabelsRawArray().map(labelId => {
... |
<<<<<<<
const { setMapSettings } = this.props;
=======
const { setMapSettings, defaultPlanetBasemap } = this.props;
if (value === 'planet') {
triggerEvent(TOGGLE_PLANET_BASEMAP);
}
>>>>>>>
const { setMapSettings } = this.props;
if (value === 'planet') {
triggerEvent(TOGGLE_PLANET_... |
<<<<<<<
=======
import LatestProvider from 'providers/latest-provider';
import MyGFW from 'providers/mygfw-provider';
>>>>>>>
import MyGFW from 'providers/mygfw-provider';
<<<<<<<
=======
<LatestProvider />
<MyGFW />
>>>>>>>
<MyGFW /> |
<<<<<<<
import WdigetDynamicSentence from 'pages/country/widget/components/widget-dynamic-sentence';
=======
import WidgetDynamicSentence from 'pages/country/widget/components/widget-dynamic-sentence';
import './widget-tree-gain-styles.scss';
>>>>>>>
import WidgetDynamicSentence from 'pages/country/widget/components... |
<<<<<<<
import { Minutes } from '../minutes';
import { MeetingSeries } from '../meetingseries';
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { TopicSchema } from './topics_private.js';
=======
import { Minutes } from '../minutes'
import { MeetingSeries } from '../meetingseries'
import { UserRol... |
<<<<<<<
=======
indicatorChange = value => {
this.props.onIndicatorChange(value.value);
};
canopyChange = value => {
this.props.onCanopyChange(value.value);
};
startYearChange = value => {
this.props.onStartYearChange(value.value);
};
endYearChange = value => {
this.props.onEndYearCha... |
<<<<<<<
this.setNumbersOfLayers();
},
setNumbersOfLayers: function(){
var layersByCategory = _.groupBy(this.layers, function(layer){ return layer.category_slug; });
this.$categoriesNum.text('');
_.each(layersByCategory, _.bind(function(v,k){
$('#'+k+'-category-num').text(v.leng... |
<<<<<<<
import * as woodyBiomass from './widgets/climate/whrc-biomass/';
=======
import * as futureCarbonGains from './widgets/climate/future-carbon-gains';
>>>>>>>
import * as woodyBiomass from './widgets/climate/whrc-biomass/';
import * as futureCarbonGains from './widgets/climate/future-carbon-gains';
<<<<<<<
... |
<<<<<<<
if (download) {
return { name: 'treecover_loss', url: url.replace('query', 'download') };
}
return request.get(url).then(response => ({
=======
return axios.get(url).then(response => ({
>>>>>>>
if (download) {
return { name: 'treecover_loss', url: url.replace('query', 'download') };
}
... |
<<<<<<<
if (alerts && alerts.data && latest && latest.data) {
const alertsData = alerts.data.data;
const latestData = latest.data.data;
const latestDate =
latestData &&
latestData.attributes &&
latestData.attributes.updatedAt;
=======
if (alerts && al... |
<<<<<<<
export const getData = ({ params }) => {
const fetchFunc =
!params.type || params.type === 'global'
? fetchExtentRanked(params)
: getLocations(params);
return fetchFunc.then(response => {
=======
export default ({ params }) =>
getExtentGrouped(params).then(response => {
>>>>>>>
export c... |
<<<<<<<
'text!map/templates/tabs/countriesButtons.handlebars'
], function(_, Handlebars, amplify, chosen, Presenter, tpl, tplMobile, tplIso, tplButtons) {
=======
'text!map/templates/tabs/countriesButtons.handlebars',
'text!map/templates/layersNavByCountryWrapper.handlebars'
], function(_, Handlebars, amplify, ... |
<<<<<<<
import { AttachmentsCollection } from './attachments_private';
import { FinalizeMailHandler } from '../mail/FinalizeMailHandler';
import { GlobalSettings } from '../config/GlobalSettings';
=======
import { AttachmentsCollection, calculateAndCreateStoragePath} from './attachments_private';
>>>>>>>
import { At... |
<<<<<<<
import { getExtent } from 'services/analysis-cached';
import axios from 'axios';
=======
import { getExtent } from 'services/forest-data-old';
import { all, spread } from 'axios';
>>>>>>>
import { getExtent } from 'services/analysis-cached';
import { all, spread } from 'axios'; |
<<<<<<<
controller: 'dashboards',
path: '/dashboards/:type?/:country?/:region?/:subRegion?',
=======
path: '/dashboards/:type?/:adm0?/:adm1?/:adm2?',
>>>>>>>
path: '/dashboards/:type?/:adm0?/:adm1?/:adm2?',
<<<<<<<
[DASHBOARDS_EMBED]: {
controller: 'dashboards',
path: '/embed/dashboards/:t... |
<<<<<<<
getCountries();
if (location.country) {
getRegions(location.country);
getGeostore(location.country, location.region, location.subRegion);
}
if (location.region) {
getSubRegions(location.country, location.region);
}
getCountryLinks();
}
componentWillReceiveProps(nex... |
<<<<<<<
init() {
window.App = {
Views: {}
};
const router = new Router(this);
=======
init: function() {
var router = new Router(this);
>>>>>>>
init: function() {
window.App = {
Views: {}
};
var router = new Router(this);
<<<<<<<
google.m... |
<<<<<<<
const defaultLayer =
(layer &&
layer.find(l => l.applicationConfig && l.applicationConfig.default)) ||
layer[0];
=======
const { isSelectorLayer, isMultiSelectorLayer } = info || {};
>>>>>>>
const defaultLayer =
(layer &&
layer.find(l => l.applicationConfig && l... |
<<<<<<<
import Widgets from 'components/widgets';
=======
import Meta from 'components/meta';
import Widgets from 'components/widgets-v2';
>>>>>>>
import Widgets from 'components/widgets';
import Widgets from 'components/widgets-v2';
<<<<<<<
<CountryDataProvider />
<WhitelistsProvider />
<La... |
<<<<<<<
'text!map/templates/legend/urthecast.handlebars',
'text!map/templates/legend/mex_forest_cat.handlebars',
'text!map/templates/legend/mex_forest_subcat.handlebars',
'text!map/templates/legend/pa.handlebars',
'text!map/templates/legend/places2watch.handlebars',
'text!map/templates/legend/mex_landrights... |
<<<<<<<
import { shouldQueryPrecomputedTables } from 'components/widgets/utils/helpers';
=======
import {
POLITICAL_BOUNDARIES_DATASET,
FOREST_EXTENT_DATASET
} from 'data/layers-datasets';
import {
DISPUTED_POLITICAL_BOUNDARIES,
POLITICAL_BOUNDARIES,
FOREST_EXTENT
} from 'data/layers';
>>>>>>>
import ... |
<<<<<<<
'map/views/layers/MexicoPaymentsLayer',
'map/views/layers/MexLandRightsLayer',
'map/views/layers/BraLoggingLayer',
=======
'map/views/layers/MysWoodFiberSabahLayer',
'map/views/layers/MysLoggingSabahLayer',
'map/views/layers/MysPASabahLayer',
>>>>>>>
'map/views/layers/MexicoPaymentsLayer',
'm... |
<<<<<<<
/**
* Created by felix on 12.05.16.
*/
import { Minutes } from '/imports/minutes'
import { Topic } from '/imports/topic'
import { InfoItem } from '/imports/infoitem'
import { ActionItem } from '/imports/actionitem'
import { Label } from '/imports/label'
=======
import { Minutes } from '/imports/minutes';
im... |
<<<<<<<
import firesAlertsHistorical from 'components/widgets/forest-change/fires-alerts-historical';
=======
import firesAlertsCumulative from 'components/widgets/forest-change/fires-alerts-cumulative';
>>>>>>>
import firesAlertsHistorical from 'components/widgets/forest-change/fires-alerts-historical';
import fire... |
<<<<<<<
this.commonIsoChanges();
this.presenter.changeIso({country: this.iso, region: null});
},
changeIsoMobile: function(e){
this.iso = $(e.currentTarget).data('value') || null;
this.commonIsoChanges();
=======
this.setIsoLayers();
this.setButtons(!!this.iso);
>>>>>>>
... |
<<<<<<<
var iso = this.status.get('iso');
if(!!iso && !!iso.country && iso.country !== 'ALL'){
countryService.show(iso.country, _.bind(function(results) {
var is_more = (!!results.indepth);
var is_idn = (!!iso && !!iso.country && iso.country == 'IDN');
if (is_more) {
... |
<<<<<<<
// drafts_mbox, editor_wait, fwdattach, hash_hdrs, hash_msg,
// hash_msgOrig, hash_sig, hash_sigOrig, is_popup, knl, last_identity,
// onload_show, old_action, old_identity, rte, rte_loaded, sc_submit,
// skip_spellcheck, spellcheck, tasks, uploading
=======
// drafts_mbox, edito... |
<<<<<<<
}), {
=======
}, {
ajaxopts: { asynchronous: false },
>>>>>>>
}), {
ajaxopts: { asynchronous: false }, |
<<<<<<<
contextOnClick: function(parentfunc, e)
{
var id = e.memo.elt.readAttribute('id'), tmp;
switch (id) {
case 'ctx_msg_other_rr':
tmp = !$F('request_read_receipt');
$('request_read_receipt').setValue(tmp);
DimpCore.toggleCheck($('ctx_msg_other_rr... |
<<<<<<<
toggleRemove (e) {
this.setState({ removeSelected: e.target.checked });
},
toggleDisabled (e) {
this.setState({ disabled: e.target.checked });
},
toggleChocolate (e) {
let crazy = e.target.checked;
=======
toggleCheckbox (e) {
>>>>>>>
toggleCheckbox (e) {
<<<<<<<
<h3 className="section-head... |
<<<<<<<
import Select from 'react-select-plus';
=======
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
>>>>>>>
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select-plus'; |
<<<<<<<
import Select from 'react-select-plus';
=======
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
>>>>>>>
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select-plus'; |
<<<<<<<
import Async from './Async';
import AsyncCreatable from './AsyncCreatable';
import Creatable from './Creatable';
import Dropdown from './Dropdown';
=======
>>>>>>>
import Dropdown from './Dropdown';
<<<<<<<
function clone(obj) {
const copy = {};
for (let attr in obj) {
if (obj.hasOwnProperty(attr)) ... |
<<<<<<<
},{"./Select":"react-select-plus","./utils/stripDiacritics":6,"react":undefined}],2:[function(require,module,exports){
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
... |
<<<<<<<
import {createItem} from './helpers/create-item';
import {configureSelect2Labels} from './helpers/configure-select2-labels';
import {handlerShowMarkdownHint} from './helpers/handler-show-markdown-hint';
=======
import {LabelExtractor} from '../../../imports/services/labelExtractor';
import {configureSelect2Re... |
<<<<<<<
optionGroupComponent: OptionGroup,
=======
pageSize: 5,
>>>>>>>
optionGroupComponent: OptionGroup,
pageSize: 5,
<<<<<<<
componentWillMount() {
this._flatOptions = this.flattenOptions(this.props.options);
=======
componentWillMount () {
this._instancePrefix = 'react-select-' + (++instanc... |
<<<<<<<
describe('with grouped options, multi=true, and searchable=false', () => {
beforeEach(() => {
options = [
{ label: 'Negative Numbers', options: [
{ value: '-2', label: '-2' },
{ value: '-1', label: '-1' },
] },
{ label: 'Positive Numbers', options: [
{ value: '1', label: '+1' ... |
<<<<<<<
import Dropdown from './Dropdown';
=======
import Creatable from './Creatable';
>>>>>>>
import Dropdown from './Dropdown';
import Creatable from './Creatable';
<<<<<<<
componentWillMount() {
this._flatOptions = this.flattenOptions(this.props.options);
this._instancePrefix = 'react-select-' + (++instanc... |
<<<<<<<
var _Dropdown = require('./Dropdown');
var _Dropdown2 = _interopRequireDefault(_Dropdown);
var _Option = require('./Option');
=======
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else ... |
<<<<<<<
var _reactSelectPlus = require('react-select-plus');
=======
var _createReactClass = require('create-react-class');
var _createReactClass2 = _interopRequireDefault(_createReactClass);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _reactSelect = require('... |
<<<<<<<
componentWillMount() {
this._flatOptions = this.flattenOptions(this.props.options);
},
=======
componentWillMount () {
const valueArray = this.getValueArray(this.props.value);
if (this.props.required) {
this.setState({
required: this.handleRequired(valueArray[0], this.props.multi),
});
... |
<<<<<<<
describe('arrowRenderer', () => {
beforeEach(() => {
instance = createControl({
arrowRenderer: null
});
});
it('doesn\'t render arrow if arrowRenderer props is null', () => {
var arrow = ReactDOM.findDOMNode(instance).querySelectorAll('.Select-arrow-zone')[0];
expect(arrow, 'to be', u... |
<<<<<<<
this._flatOptions = this.flattenOptions(this.props.options);
=======
this._instancePrefix = 'react-select-' + ++instanceId + '-';
>>>>>>>
this._flatOptions = this.flattenOptions(this.props.options);
this._instancePrefix = 'react-select-' + ++instanceId + '-';
<<<<<<<
if (_this4.isGroup(optio... |
<<<<<<<
var _Dropdown = require('./Dropdown');
var _Dropdown2 = _interopRequireDefault(_Dropdown);
=======
var _Creatable = require('./Creatable');
var _Creatable2 = _interopRequireDefault(_Creatable);
>>>>>>>
var _Dropdown = require('./Dropdown');
var _Dropdown2 = _interopRequireDefault(_Dropdown);
var _Creat... |
<<<<<<<
* @return {Promise} A promise that will be fulfilled when the connection has
=======
* @example
* // Test the connection to the runtime
* var businessNetwork = new BusinessNetworkConnection();
* var client;
* return businessNetwork.connect('testprofile', 'businessNetworkIdentifie... |
<<<<<<<
await fs.outputFile('./build/homebrew/render.js', render);
await fs.copy('./client/homebrew/phbStyle/fonts', './build/fonts');
=======
>>>>>>>
await fs.copy('./client/homebrew/phbStyle/fonts', './build/fonts'); |
<<<<<<<
function paletteForMimeType(mimeType) {
if (mimeType == 'text/x-pencilcode') return palette.COFFEESCRIPT_PALETTE;
if (mimeType == 'text/coffeescript') return palette.COFFEESCRIPT_PALETTE;
if (mimeType == 'text/javascript') return palette.JAVASCRIPT_PALETTE;
if (mimeType == 'application/x-javascript') re... |
<<<<<<<
name: 'Move',
color: 'red',
blocks: [
=======
name: 'Draw',
color: 'blue',
blocks: filterblocks([
>>>>>>>
name: 'Move',
color: 'red',
blocks: filterblocks([
<<<<<<<
=======
block: 'for x in [1..3]\n ``',
title: 'Do something multip... |
<<<<<<<
...Portal.propTypes,
children: PropTypes.oneOfType([
PropTypes.func,
PropTypes.element,
]).isRequired,
=======
onOpen: PropTypes.func,
>>>>>>>
...Portal.propTypes,
children: PropTypes.oneOfType([
PropTypes.func,
PropTypes.element,
]).isRequired,
onOpen: PropTypes.func,
<<<<<<... |
<<<<<<<
var waiting = this.props.waiting ? <WaitingForUser /> : null;
return (
<AvatarBlankWrapper key={this.props.key}>
<div className="row" style={{height:"100%"}}>
<div className="col-xs-12 text-center inviteNewperson" style={{backgroundColor:bgcolor, height:"100%", position: "relati... |
<<<<<<<
=======
viewer.channel;
viewer.draw = function() {
>>>>>>>
<<<<<<<
if (!pick) {
$('#zoom').text('currentZoom is ' + currentZoom);
$('#rot').text('currentRotation is ' + currentRotationX.toFixed(2) + ',' + currentRotationY.toFixed(2));
}
=======
$('#zoom').text('currentZoom is ' + vi... |
<<<<<<<
this.forceMatch = this.options.forceMatch
=======
this.placeholder = this.options.placeholder || this.placeholder
this.$element.attr('placeholder', this.placeholder)
>>>>>>>
this.forceMatch = this.options.forceMatch
this.placeholder = this.options.placeholder || this.placeholder
this.... |
<<<<<<<
=======
<div className="sc-user-input--button"></div>
<div className="sc-user-input--button">
{this.props.showEmoji && <EmojiIcon onEmojiPicked={this._handleEmojiPicked.bind(this)} />}
</div>
>>>>>>>
<div className="sc-user-input--button"></div>
<... |
<<<<<<<
export class UIButton extends React.Component {
=======
class UIButton extends React.Component {
>>>>>>>
export class UIButton extends React.Component {
<<<<<<<
small: React.PropTypes.bool
}
=======
small: React.PropTypes.bool,
icon: React.PropTypes.node
};
>>>>>>>
small: React.PropTy... |
<<<<<<<
// This option defaults to true on iOS devices.
preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
initSelector: "select:not(:jqmData(role='slider'))"
=======
preventFocusZoom: true,
initSelector: "select:not(:jqmData(role='slider'))... |
<<<<<<<
_toggleClasses: function( destination, varNameForOldClasses, newClasses ) {
if ( this[ varNameForOldClasses ] !== newClasses ) {
if ( this[ varNameForOldClasses ] ) {
destination.removeClass( this[ varNameForOldClasses ] );
this[ varNameForOldClasses ] = "";
}
if ( newClasses ) {
this[ ... |
<<<<<<<
=======
// Load a page into the DOM.
$.mobile.loadPage = function( url, options ) {
// This function uses deferred notifications to let callers
// know when the page is done loading, or if an error has occurred.
var deferred = $.Deferred(),
// The default loadPage options with overrides specified ... |
<<<<<<<
for ( var i = 0; i < $workingSet.length; i++ ) {
var el = $workingSet.eq( i ),
e = el[ 0 ],
o = $.extend( {}, $.fn.buttonMarkup.defaults, {
icon: options.icon !== undefined ? options.icon : getAttrFixed( e, nsKey + "icon" ),
iconpos: options.iconpos !== undefined ? optio... |
<<<<<<<
function(){
=======
function() {
>>>>>>>
function() {
<<<<<<<
=======
>>>>>>>
<<<<<<<
=======
>>>>>>>
<<<<<<<
=======
>>>>>>>
<<<<<<<
asyncTest( "loading an embeded page with query params works", function() {
$.testHelper.pageSequence([
function() {
$.mobile.changePage( "#... |
<<<<<<<
_toggleClasses: function( destination, varNameForOldClasses, newClasses ) {
if ( this[ varNameForOldClasses ] !== newClasses ) {
if ( this[ varNameForOldClasses ] ) {
destination.removeClass( this[ varNameForOldClasses ] );
this[ varNameForOldClasses ] = "";
}
if ( newClasses ) {
this[ ... |
<<<<<<<
},
//create a string for ID/subpage url creation
_idStringEscape: function( str ) {
return str.replace(/[^a-zA-Z0-9]/g, "-");
},
_createSubPages: function() {
var parentList = this.element,
parentPage = parentList.closest( ".ui-page" ),
parentUrl = getAttr( parentPage[ 0 ], "url", true ),
pa... |
<<<<<<<
=======
findNativeByFiberID: (id: number) => ?Array<NativeType>,
>>>>>>>
<<<<<<<
getCommitDetails: (rootID: number, commitIndex: number) => CommitDetails,
getFiberCommits: (rootID: number, fiberID: number) => FiberCommits,
getInteractions: (rootID: number) => Interactions,
getInternalIDFromNative:... |
<<<<<<<
} from 'src/devtools/types';
import { getDisplayName, getUID, utfEncodeString } from '../utils';
=======
} from 'src/types';
import {
getDisplayName,
getDefaultComponentFilters,
getUID,
utfEncodeString,
} from 'src/utils';
>>>>>>>
} from 'src/types';
import {
getDisplayName,
getDefaultComponentFi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.