conflict_resolution
stringlengths
27
16k
<<<<<<< ======= // AJAX utilities var jsonpHandlers = {}; function jsonp(url, callback){ var id = 'handler' + Math.floor(Math.random() * 0xFFFF); var handler = function(data){ // remove jsonp var script = document.getElementById(id); script.parentElem...
<<<<<<< description: 'short-circuit if market minPrice not found', params: { marketID: 'MARKET_0', outcome: 3, orderTypeLabel: 'sell' }, mock: { state: { marketsData: { MARKET_0: { minPrice: undefined, maxPrice: '1' } } } }, stub: { a...
<<<<<<< const { onTradeHash, onCommitSent, onCommitSuccess, onCommitFailed, onNextBlock, onTradeSent, onTradeSuccess, onTradeFailed } = args; console.log('mock short_sell called'); console.log(args); ======= const { max_amount, buyer_trade_id, sender, onTradeHash, onCommitSent, onCommitSuccess, onCommitFailed...
<<<<<<< import immutableDelete from 'immutable-delete' import { UPDATE_MARKETS_DATA, CLEAR_MARKETS_DATA, UPDATE_MARKET_CATEGORY, UPDATE_MARKET_REP_BALANCE, UPDATE_MARKET_FROZEN_SHARES_VALUE, UPDATE_MARKET_ESCAPE_HATCH_GAS_COST, UPDATE_MARKET_TRADING_ESCAPE_HATCH_GAS_COST, UPDATE_MARKETS_DISPUTE_INFO, DELETE_MARKET } fr...
<<<<<<< export const selectMarketsTotals = memoizerific(1)( (allMarkets, activePage, selectedMarketsHeader, keywords, selectedFilters) => { const positions = { numPositions: 0, qtyShares: 0, totalValue: 0, totalCost: 0 }; const filteredMarkets = selectFilteredMarkets(allMarkets, keywords, selectedFilters); ======= ...
<<<<<<< import { loadFullMarket } from 'modules/market/actions/load-full-market' import { MARKET_ID_PARAM_NAME } from 'modules/routes/constants/param-names' import { selectMarket } from 'modules/market/selectors/market' import parseQuery from 'modules/routes/helpers/parse-query' import getValue from 'utils/get-value' ...
<<<<<<< MARKET_MAX_SPREAD, HAS_OPEN_ORDERS, ======= >>>>>>> MARKET_MAX_SPREAD, <<<<<<< updateMaxSpread: maxSpreadPercent => dispatch(updateFilterSortOptions(MARKET_MAX_SPREAD, maxSpreadPercent)), updateHasOpenOrders: hasOpenOrders => dispatch(updateFilterSortOptions(HAS_OPEN_ORDERS, hasOpenOrders)...
<<<<<<< onSuccess: () => { dispatch(removeAccountDispute({ marketId })) callback(null) ======= onSuccess: (gasCost) => { if (estimateGas) { callback(null, gasCost) } else { removeAccountDispute({ marketId }) callback(null) } >>>>>>> onSuccess: (gasCos...
<<<<<<< import getAllMarkets from 'modules/markets/selectors/markets-all'; ======= >>>>>>> import getAllMarkets from 'modules/markets/selectors/markets-all'; <<<<<<< ======= keywords: selectTags(state), >>>>>>> <<<<<<< chat: getChatMessages(), markets: getAllMarkets(), marketsFilteredSorted: state.marke...
<<<<<<< // if (loggedInAccount && account !== loggedInAccount) { // dispatch(logout()); // } } // else if (existing !== loggedInAccount) { // dispatch(logout()); // } // if (loggedInAccount && accounts.includes(loggedInAccount)) { // dispatch(useUnlockedAccount(loggedIn...
<<<<<<< var on = function on(elem, eventname, selector, handler, onceOnly){ ======= function on(elem, eventname, selector, handler){ >>>>>>> function on(elem, eventname, selector, handler, onceOnly){ <<<<<<< var once = function(elem, eventname, selector, handler){ return Event.on(elem, event...
<<<<<<< import { submitNewMarket } from 'modules/create-market/actions/submit-new-market' import { selectCurrentTimestamp, selectBlockchainState } from 'src/select-state' ======= import { logout } from 'modules/auth/actions/logout' import { selectLoginAccountState } from 'src/select-state' import { formatRep, formatE...
<<<<<<< import { augur, constants } from 'services/augurjs'; import speedomatic from 'speedomatic'; import { BUY, SELL } from 'modules/trade/constants/types'; ======= import { augur, abi, constants } from 'services/augurjs'; import { BUY, SELL } from 'modules/transactions/constants/types'; >>>>>>> import speedomatic...
<<<<<<< import { augur } from 'services/augurjs' import { BUY } from 'modules/transactions/constants/types' import { updateIsFirstOrderBookChunkLoaded } from 'modules/bids-asks/actions/update-order-book' import insertOrderBookChunkToOrderBook from 'modules/bids-asks/actions/insert-order-book-chunk-to-order-book' import...
<<<<<<< transactionsLoading: state.appStatus.transactionsLoading, isMobile: state.appStatus.isMobile, pendingLiquidityOrders: state.pendingLiquidityOrders ======= transactionsLoading: state.transactionsLoading, isMobile: state.isMobile, pendingLiquidityOrders: state.pendingLiquidityOrders, ...
<<<<<<< returns: { blocktype: 'expression', label: 'string##', script: 'local.string##', type: 'string' }, ======= locals: [ { blocktype: 'expression', labels: ['string##'], script: 'loc...
<<<<<<< var context = Block.model(this.view().closest('.context')); if (context && typeof context === 'Step'){ context = Block.model(this.view().closest('.context').parent().closest('.context')) ; } ======= var context = this.view().closest('.context').data('model'); >>>>>>> var contex...
<<<<<<< trading: { positions: { calculateProfitLoss: sinon.stub().returns({ position: 0, realized: 10, unrealized: -1, meanOpenPrice: 0.2 }) } } ======= ...
<<<<<<< ======= market.marketCreatorFeesCollected = formatEther(marketData.marketCreatorFeesCollected || 0) // market.priceTimeSeries = selectPriceTimeSeries(market.outcomes, marketPriceHistory) >>>>>>> market.marketCreatorFeesCollected = formatEther(marketData.marketCreatorFeesCollected || 0)
<<<<<<< const { position, realized, unrealized, meanOpenPrice } = augur.trading.positions.calculateProfitLoss(trades, lastPrice); ======= const { realized, unrealized, meanOpenPrice } = augur.calculateProfitLoss(trades, lastPrice); const position = adjustedPosition || '0'; >>>>>>> const { realized, unrealize...
<<<<<<< import env from 'modules/app/reducers/env'; import requests from 'modules/app/reducers/requests'; import blockchain from 'modules/app/reducers/blockchain'; import branch from 'modules/branch/reducers/branch'; import connection from 'modules/app/reducers/connection'; import url from 'modules/link/reducers/url'; ...
<<<<<<< market.marketLink = selectMarketLink(market, dispatch); market.onClickToggleFavorite = () => dispatch(toggleFavorite(marketID)); market.onSubmitPlaceTrade = outcomeID => dispatch(placeTrade(marketID, outcomeID, marketTradeInProgress[outcomeID])); ======= market.onSubmitPlaceTrade = out...
<<<<<<< const outcomeData = marketOutcomes[outcomeID]; const outcomeTradeInProgress = marketTradeInProgress && marketTradeInProgress[outcomeID]; const outcome = { ...outcomeData, id: outcomeID, marketID, lastPrice: formatEther(outcomeData.price, { positiveSign: false }), lastPricePercent: forma...
<<<<<<< // market.priceTimeSeries = selectPriceTimeSeries(market.outcomes, marketPriceHistory) ======= market.unclaimedCreatorFees = formatEther(marketData.unclaimedCreatorFees) market.priceTimeSeries = selectPriceTimeSeries(market.outcomes, marketPriceHistory) >>>>>>> market.unclaimedCreato...
<<<<<<< import { augur } from 'services/augurjs' import { BUY } from 'modules/transactions/constants/types' import { clearTradeInProgress } from 'modules/trade/actions/update-trades-in-progress' import logError from 'utils/log-error' ======= import { augur } from 'services/augurjs'; import { BUY } from 'modules/trans...
<<<<<<< }, 'taker1'), [3, 4], `Didn't return the expected tradeIDs`); ======= } }; it('should calculate trade ids for a Buy', () => { assert.deepEqual(helper.calculateBuyTradeIDs('market1', '1', '0.5', orderBook, 'taker1'), [ 3, 4 ], `Didn't return the expected tradeIDs`); assert(mockAugur.augur.filterByPr...
<<<<<<< import { WrappedBigNumber } from 'utils/wrapped-big-number' ======= import { createBigNumber } from 'utils/create-big-number' >>>>>>> import { createBigNumber } from 'utils/create-big-number' <<<<<<< afterEach(() => { __RewireAPI__.__ResetDependency__('constants', constants) __RewireAPI__.__Re...
<<<<<<< case 4: onCommitFailed({ error: 'commit failed error', message: 'commit failed error message' }); break; case 5: onCommitSuccess({ gasFees: '0.01450404', hash: 'testhash', timestamp: 1500000000 }); onTradeSent({ txHash: 'tradeHash1', callReturn: '1' }); onTradeFailed({ error: 't...
<<<<<<< import activePage from './modules/app/selectors/active-page'; import abc from './modules/auth/selectors/abc'; ======= import activeView from './modules/app/selectors/active-view'; >>>>>>> import activeView from './modules/app/selectors/active-view'; import abc from './modules/auth/selectors/abc'; <<<<<<< a...
<<<<<<< import { loadFullMarket } from "modules/markets/actions/load-full-market"; import { MARKET_ID_PARAM_NAME } from "modules/routes/constants/param-names"; import { selectMarket } from "modules/markets/selectors/market"; ======= import { loadFullMarket } from "modules/market/actions/load-full-market"; import { ...
<<<<<<< import { TOOL_CIRCLE, TOOL_LINE, TOOL_BRUSH, TOOL_ERASER, TOOL_PAINT_BUCKET, TOOL_PENCIL, TOOL_SQUARE, TOOL_TRIANGLE, } from './tools.js'; ======= /* eslint-disable no-use-before-define */ /* eslint-disable no-fallthrough */ /* eslint-disable default-case */ /* eslint-disable no-undef */ /* eslint-dis...
<<<<<<< const { logger } = require('./logging/logger'); ======= var roomsTimeout = {} >>>>>>> const { logger } = require('./logging/logger'); var roomsTimeout = {} <<<<<<< logger.warn(`SOCKET: ON CONNECTION: attempting to get managers from redis- failed, socket_id: ${socket.id} emitting dbError now`); ...
<<<<<<< import Message from './classes/Message.js'; import Chat from './classes/Chat.js'; import { showInfoMessage, handleBoardsViewButtonsDisplay, updateBoardsBadge, } from './utility.js'; window.onload = async () => { const peerjsConfig = await fetch('/peerjs/config').then((r) => r.json()); const peer = new Pe...
<<<<<<< }else if (command === "add-page"){ //update the image of the current page var canvas = document.getElementById("canvas"); var image = canvas.toDataURL("image/png", 1.0).replace("image.png", "image/octet-stream"); document.querySelector...
<<<<<<< server: 'https://liteboard.io/janus', ======= server: 'http://localhost:8088/janus', iceServers: [ { urls: 'stun:stun.l.google.com:19302' }, { urls: 'stun:stun1.l.google.com:19302' }, { urls: 'stun:stun2.l.google.com:19302' }, { url: 'stun:stun01...
<<<<<<< (function(window){ 'use strict'; function PolySprite(pos,color,points){ ======= function Sprite(type, color){ >>>>>>> (function(window){ 'use strict'; function Sprite(type, color){ <<<<<<< window.createImageSprite = createImageSprite; window.createRectSprite = createRectSprite; window.PolySprite =...
<<<<<<< Event.on('.content', 'mousemove', null, drag); Event.on(document.body, 'mouseup', null, endDrag); ======= Event.on(document, 'mousemove', null, drag); Event.on('.content', 'mouseup', null, endDrag); >>>>>>> Event.on(document, 'mousemove', null, drag...
<<<<<<< scratchpad = document.querySelector('.scratchpad'); ======= var scratchpad= document.querySelector('.scratchpad'); // <- WB >>>>>>> var scratchpad= document.querySelector('.scratchpad'); // <- WB <<<<<<< Event.on('.content', 'touchstart', '.block', initDrag); Event.on('.content', 'touchmo...
<<<<<<< "ember/no-classic-components": "off", ======= "ember/no-computed-properties-in-native-classes": "off", >>>>>>> "ember/no-classic-components": "off", "ember/no-computed-properties-in-native-classes": "off",
<<<<<<< 'no-classic-components': require('./rules/no-classic-components'), ======= 'no-computed-properties-in-native-classes': require('./rules/no-computed-properties-in-native-classes'), >>>>>>> 'no-classic-components': require('./rules/no-classic-components'), 'no-computed-properties-in-native-clas...
<<<<<<< isComputedProp: isComputedProp, ======= isCustomProp: isCustomProp, isActionsProp: isActionsProp, isModelProp: isModelProp, isRelation: isRelation, >>>>>>> isComputedProp: isComputedProp, isCustomProp: isCustomProp, isActionsProp: isActionsProp, isModelProp: isModelProp, isRelation: is...
<<<<<<< constructor() { ======= constructor (...args) { >>>>>>> constructor() { <<<<<<< run(argvs) { ======= run (uCmds) { const argvs = uCmds || this.argvs >>>>>>> run(uCmds) { const argvs = uCmds || this.argvs <<<<<<< init() { // is fbi or not // get user config try { ...
<<<<<<< var accessToken = ""; // Try to load local Access Token from .env file if env variable is not present if (!process.env.FEBL_ACCESS_TOKEN) { var env = fs.readFileSync(path.join(__dirname, "../", ".env"), "utf8").split("="); accessToken = env[1]; } else { accessToken = pro...
<<<<<<< window.ondeviceorientation = undefined ======= window.ondevicemotion = undefined if (opts && typeof opts.clearLayers === 'boolean' && opts.clearLayers) layers = [] >>>>>>> window.ondeviceorientation = undefined if (opts && typeof opts.clearLayers === 'boolean' && opts.clearLayer...
<<<<<<< ======= // By default use sticky reconnects _stickyReconnect = _cometd.getConfiguration().stickyReconnect !== false; var protocol = _cometd.getConfiguration().protocol; var webSocket = protocol ? new org.cometd.WebSocket(url, protocol) : new org.cometd.WebSocket(url); >>>>>>>...
<<<<<<< returns: { blocktype: 'expression', label: 'imageData##', script: 'local.imageData##', type: 'imagedata' }, ======= locals: [ { blocktype: 'expression', l...
<<<<<<< unlinkAccount (psid, cb) { return request({ method: 'POST', uri: 'https://graph.facebook.com/v2.6/me/unlink_accounts', qs: this._getQs(), json: { psid: psid } }) .then(body => { if (body.error) return Promise.reject(body.error) if (!cb) retur...
<<<<<<< // initSearch() ======= >>>>>>> <<<<<<< * Swiftype search box */ // function initSearch () { // [ // '#search-query-nav', // '#search-query-sidebar' // ].forEach(function (selector) { // if (!document.querySelector(selector)) return // docsearch({ // appId:...
<<<<<<< catalogueUrl = "http://192.168.99.101:32770"; accountsUrl = "http://192.168.99.101:32768/accounts"; cartsUrl = "http://192.168.99.103:32773/carts"; itemsUrl = "http://192.168.99.102:32773/items"; ordersUrl = "http://192.168.99.101:32770/orders"; customersUrl = "http://192.168.99.101:3276...
<<<<<<< if (current.items) { const hoverItemIndex = current.items.findIndex((item) => item.value === current.selectedItem.value); ======= if (current.items && !current.isMulti) { const hoverItemIndex = current.items.findIndex((item) => item.value === current.selectedValue.value); >>>>>>> ...
<<<<<<< if (current.items) { const hoverItemIndex = current.items.findIndex((item) => item.value === current.selectedItem.value); ======= if (current.items && !current.isMulti) { const hoverItemIndex = current.items.findIndex((item) => item.value === current.selectedValue.value); >>>>>>> ...
<<<<<<< if (DEBUG) { //conn_log("active_game message:", JSON.stringify(gamedata, null, 4)); } if (gamedata.phase == 'stone removal' ======= // OGS auto scores bot games now, no removal processing is needed by the bot. // /* if (ga...
<<<<<<< if (this.processing) { this.processing = false; --moves_processing; if (argv.corrqueue && this.state.time_control.speed == "correspondence") { --corr_moves_processing; } } ======= if (argv.farewell && this.state != null &&...
<<<<<<< '_Terms_of_Service':'terms of service', '_SG_delete_header':'Are you sure you want to delete this surveygroup?', '_SG_delete_message':'This cannot be undone.' ======= '_Terms_of_Service':'terms of service', '_Current_Devices_List':'Current Devices List', '_Current_Assignments':'Current Assignments...
<<<<<<< repeatable: false, ======= pollingTimer: null, amCopying: function(){ return this.content.get('status') == "COPYING"; }.property('this.content.status'), >>>>>>> repeatable: false, pollingTimer: null, amCopying: function(){ return this.content.get('status') == "COPYING"; }.proper...
<<<<<<< criteria: null, timeout: 30000, requestInterval: 3000, payloads: { DATA_CLEANING: { surveyId: '75201', exportType: 'DATA_CLEANING', opts: { exportMode: 'DATA_CLEANING', lastCollection: 'false', } }, DATA_ANALYSIS: { surveyId: '75201', exportType: 'DATA_ANALYSIS', opts: { e...
<<<<<<< Ember.Object.create({ label: "Doughnut chart", value: "doughnut" }), Ember.Object.create({ label: "Vertical bar chart", value: "vbar" }), Ember.Object.create({ label: "Horizontal bar chart", value: "hbar" })] }); FLOW.statisticsControl = Ember.ArrayController.create({ select...
<<<<<<< selectedCountryCode: null, selectedLevel1: null, selectedLevel2: null, ======= alreadyLoaded: [], >>>>>>> alreadyLoaded: [], selectedCountryCode: null, selectedLevel1: null, selectedLevel2: null, <<<<<<< init: function(){ this._super(); FLOW.selectedControl.set('selectedSurveyGro...
<<<<<<< localeNameFlag:false, localeLocationFlag:false, ======= geoLocked: null, >>>>>>> localeNameFlag:false, localeLocationFlag:false, geoLocked: null, <<<<<<< this.set('localeNameFlag', FLOW.selectedControl.selectedQuestion.get('localeNameFlag')); this.set('localeLocationFlag', FLOW.selectedC...
<<<<<<< require('akvo-flow/controllers/languages'); ======= require('akvo-flow/currentuser'); >>>>>>> require('akvo-flow/controllers/languages'); require('akvo-flow/currentuser');
<<<<<<< var dataCollectionDate = pointData['answers']['created_at']; var date = new Date(dataCollectionDate); var pointDetailsHeader = '<ul class="placeMarkBasicInfo floats-in">' +'<h3>' +((dataPointName != "" && dataPointName != "null" && dataPointName != null) ? dataPointName ...
<<<<<<< var nextStep; ======= return this.get('nextApprovalStep') && this.get('nextApprovalStep').get('keyId'); }.property('this.nextApprovalStep'), /* * Derive the next approval step (in ordered approvals) */ nextApprovalStep: function () { >>>>>>> return this.get('nex...
<<<<<<< surveysPreview: Ember.A([]), ======= devicesPreview: Ember.A([]), >>>>>>> <<<<<<< const previewSurveys = Ember.A([]); ======= const previewDevices = Ember.A([]); >>>>>>> <<<<<<< FLOW.selectedControl.set('selectedDevices', []); FLOW.selectedControl.set('selectedSurveys', null); =====...
<<<<<<< find(resource: string, criteria?: {}|string|number, options?: {}): Promise<any|Error> { return this.request('GET', getRequestPath(resource, this.useTraditionalUriTemplates, criteria), undefined, options); ======= find(resource: string, idOrCriteria?: string|number|{}, options?: {}): Promise<any|Error>...
<<<<<<< module.exports = ({name, email, address, shhIdentity}) => { let user = {} user.name = name user.email = email user.address = address.toLowerCase() user.shh_identity = shhIdentity || '' return user } ======= /* eslint-disable import/no-commonjs */ module.exports = ({ name, email, addre...
<<<<<<< // Fetch the receiver's pk from the PKD by passing their username const { pk } = await offchain.getZkpPublicKeyFromName(req.body.receiver_name); req.body.pk_B = pk; ======= // Fetch the transferee's pk from the PKD by passing their username req.body.pk_B = await offchain.getZkpPublicKeyFro...
<<<<<<< function start() { if (!started) return // the timeout is needed to solve // a weird safari bug https://github.com/riot/route/issues/33 setTimeout(function() { debouncedEmit = debounce(emit, 1) win[ADD_EVENT_LISTENER](POPSTATE, debouncedEmit) win[ADD_EVENT_LISTENER](HASHCHANGE, debouncedEmit...
<<<<<<< var _speed, adminEmail, localParsoid, customZimFavicon, verbose, minifyHtml, skipCacheCleaning, keepEmptyParagraphs, mwUrl, mwWikiPath, mwApiPath, mwDomain, mwUsername, mwPassword, requestTimeout, publisher, customMainPage, customZimTitle, customZimDescription, customZimTags, cacheDirectory, outputDirec...
<<<<<<< cssResources: ['mobile', 'content.parsoid', 'inserted_style_mobile'], mainPageCssResources: ['mobile_main_page'], jsResources: ['mobile'], ======= cssResources: ['style', 'content.parsoid', 'inserted_style'], jsResources: ['script'], >>>>>>> cssResources: ['sty...
<<<<<<< var _speed, adminEmail, localMcs, customZimFavicon, verbose, minifyHtml, skipCacheCleaning, keepEmptyParagraphs, mwUrl, mwWikiPath, mwApiPath, mwModulePath, mwDomain, mwUsername, mwPassword, requestTimeout, publisher, customMainPage, customZimTitle, customZimDescription, customZimTags, cacheDirectory, o...
<<<<<<< polygon: function(){ ======= triangle: function(p1, p2, p3){ util.setLastPoint(p1); return new util.Shape(function(ctx){ ctx.beginPath(); ctx.moveTo(p1.x, p1.y); ctx.lineTo(p2.x, p2.y); ...
<<<<<<< 'page': Page ======= home: Home, page: Page >>>>>>> page: Page
<<<<<<< _gaq.push(['_trackEvent', 'Blocks', 'Color', 'fill']); getContext().fillStyle = color; ======= ctx().fillStyle = color; >>>>>>> getContext().fillStyle = color; <<<<<<< _gaq.push(['_trackEvent', 'Blocks', 'Color', 'stroke']); ...
<<<<<<< function runScript(options) { runtime.startEventLoop(); ======= function runScript(){ >>>>>>> function runScript(options) { <<<<<<< /* Handle debugger events. */ Event.on(window, 'process:step', null, function (evt) { var block = evt.detail.target; var oldBlocks; document.body.classList.add(...
<<<<<<< handleExample('Draw on Image', 'drawimage'), ======= handleExample('Pastels', 'pastels'), handleExample('Clipping Demo', 'clipping'), >>>>>>> handleExample('Draw on Image', 'drawimage'), handleExample('Pastels', 'pastels'), ...
<<<<<<< extraBabelPlugins: [ [ 'import', { libraryName: 'antd', libraryDirectory: 'es', style: true, }, ], ], ======= extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]], >>>>>>> extraBabelPlugins: [['import', { libra...
<<<<<<< import React from 'react'; ======= import { parse, stringify } from 'qs'; >>>>>>> import React from 'react'; import { parse, stringify } from 'qs';
<<<<<<< "control.confirm reveal no marks": "Would you like to reveal the answer to this question?", "control.submit part.confirm remove next parts": "<p>One or more subsequent parts depend on your answer to this part. Submitting this part again will invalidate those parts, and remove them from the question. Thi...
<<<<<<< /** Evaluate the given expressions until the list of conditions is satisfied * @param {Array.<String>} names - names for each expression * @param {Array.<Numbas.jme.tree>} definitions - definition of each expression * @param {Array.<Numbas.jme.tree>} conditions - expressions in terms of the assigned names, w...
<<<<<<< finaliseLoad: function() { var settings = this.settings; if(settings.precisionType!='none') { settings.allowFractions = false; } try { this.getCorrectAnswer(this.getScope()); } catch(e) { this.error(e.message); } v...
<<<<<<< this.viewModel = { exam: Knockout.observable(Numbas.exam.display) } this.setExam(Numbas.exam); Knockout.applyBindings(this.viewModel); }, setExam: function(exam) { this.viewModel.exam(exam.display); for(var i=0;i<exam.questionList.len...
<<<<<<< var settings = this.settings; util.copyinto(MultipleResponsePart.prototype.settings,settings); } MultipleResponsePart.prototype = /** @lends Numbas.parts.MultipleResponsePart.prototype */ { loadFromXML: function(xml) { var settings = this.settings; var tryGetAttribute = Numbas.xml.t...
<<<<<<< const { channel } = this.props; const { lastRead } = this.state; if (!this.isActive()) { const unread = channel.countUnread(lastRead); ======= const channel = this.props.channel; const isActive = this.props.activeChannel && this.props.activeChannel.cid === channel.cid; if ...
<<<<<<< debug: this._config.debug, endPoint: this._config.overPassEndPoint, minZoom: layerModel.get('minZoom'), timeout: this._config.overPassTimeout, retryOnTimeout: true, query: overPassRequest, beforeRequest: () => { ======= ...
<<<<<<< _setLayerStateSuccess(theme, layer, filePath) { ======= _setLayerStateSuccess (theme, layer, bounds, filePath) { >>>>>>> _setLayerStateSuccess(theme, layer, bounds, filePath) { <<<<<<< }, ======= 'layers.$.cacheBounds': bounds, } ...
<<<<<<< .on('error', (error) => { new GpxErrorNotificationView({ model: layerModel, error: error.error[0].message, }).open(); ======= .on('error', function(xhr) { if (xhr.error.status === 404) { new GpxErrorNotificatio...
<<<<<<< ======= let version = '0.8.10'; >>>>>>> <<<<<<< 'osm': { 'name': 'OpenStreetMap', 'attribution': 'Data &copy; <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>', 'urlTemplate': ['//{s}.tile.openstreetmap.org/{z}/{x...
<<<<<<< Object.keys( process.env ) .sort( ( x, y ) => x.length < y.length ) // sort by descending length to prevent partial replacement .forEach( key => { const regex = new RegExp( `\\$${ key }|%${ key }%`, "i" ); arg = arg.replace( regex, process.env[ key...
<<<<<<< this.forceParse = true; if ('forceParse' in options) { this.forceParse = options.forceParse; } else if ('dateForceParse' in this.element.data()) { this.forceParse = this.element.data('date-force-parse'); } this.picker = $(DPGlobal.template); this._buildEvents(); this._attachEvents(); =====...
<<<<<<< var old = $.fn.datepicker; ======= var DateRangePicker = function(element, options){ this.element = $(element); this.inputs = $.map(options.inputs, function(i){ return i.jquery ? i[0] : i; }); delete options.inputs; $(this.inputs) .datepicker(options) .bind('changeDate', $.proxy(this.dateUpda...
<<<<<<< if (this.date < this.o.startDate) { this.viewDate = new Date(this.o.startDate); } else if (this.date > this.o.endDate) { this.viewDate = new Date(this.o.endDate); ======= if (this.date < this.startDate) { this.viewDate = new Date(this.startDate); this.date = new Date(this.startDate); ...
<<<<<<< }); test('Changing view mode triggers changeViewMode', function () { var viewMode = -1, triggered = 0; this.input.val('22-07-2016'); this.dp.update(); this.input.on('changeViewMode', function (e) { viewMode = e.viewMode; triggered++; }); // change from days to months this.picker.fi...
<<<<<<< var plc = String(o.orientation).toLowerCase().split(/\s+/g), _plc = o.orientation.toLowerCase(); plc = $.grep(plc, function(word){ return (/^auto|left|right|top|bottom$/).test(word); }); o.orientation = {x: 'auto', y: 'auto'}; if (!_plc || _plc === 'auto') ; // no action else if (...
<<<<<<< !function( $ ) { ======= (function($, undefined) { var $window = $(window); >>>>>>> (function($, undefined) { var $window = $(window); <<<<<<< if ( currentDate ) { if ( this.multidate != true && date.valueOf() == currentDate) cls.push('active'); else if ( this.multidate == true && t...
<<<<<<< }); test("Picker is shown on input focus when showOnFocus is not defined", function () { var input = $('<input />') .appendTo('#qunit-fixture') .val('2014-01-01') .datepicker({ }), dp = input.data('datepicker'), picker = dp.picker; inpu...
<<<<<<< currentDate = this.date && this.date.valueOf(); this.picker.find('.datepicker-days thead th.switch') ======= currentDate = this.date && this.date.valueOf(), today = new Date(); this.picker.find('.datepicker-days thead th.datepicker-switch') >>>>>>> currentDate = this.date && this.date.v...
<<<<<<< tooltip, currentYear; if (isNaN(year) || isNaN(month)) return; ======= todaytxt = dates[this.o.language].today || dates['en'].today || '', cleartxt = dates[this.o.language].clear || dates['en'].clear || '', tooltip; >>>>>>> todaytxt = dates[this.o.language].today || dates['en'].today |...
<<<<<<< o.showOnFocus = o.showOnFocus !== undefined ? o.showOnFocus : true; }, ======= if (o.defaultViewDate) { var year = o.defaultViewDate.year || new Date().getFullYear(); var month = o.defaultViewDate.month || 0; var day = o.defaultViewDate.day || 1; o.defaultViewDate = UTCDate(year,...
<<<<<<< //Loop through all of Tink's pointers (there will usually //just be one) this.pointers.forEach(pointer => { pointer.shouldBeHand = false; //Loop through all the button-like sprites that were created //using the `makeInteractive` method this.buttons.forEach(o => { ======= ...
<<<<<<< ======= Post.persistence().read(function(models) { equals(models.length, 1) same(models[0].attr(), post.attr()) }) >>>>>>> <<<<<<< ======= Post.persistence().read(function(models) { equals(models.length, 1) same(models[0].attr(), post.attr()) }) >>>>>>>