conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
var crypto = require('crypto');
module.exports = function(UserService, models) {
return (require('./../classes/Controller.js')).extend(
{
requiresLogin: function(req, res, next) {
if (!req.session.user)
return res.send(401);
next();
},
requiresRole: function(roleName) {
return function(re... |
<<<<<<<
const {users, currentOrganization, meRole, me} = this.props
=======
const {users, meCurrentOrganization, meRole, meID} = this.props
>>>>>>>
const {users, meCurrentOrganization, meRole, meID} = this.props
<<<<<<<
me: shape({
name: string.isRequired,
id: string.isRequired,
}).isRequire... |
<<<<<<<
className="dygraph-annotation-window"
style={annotationWindowStyle(annotation, dygraph, staticLegendHeight)}
=======
className="annotation-window"
style={windowDimensions(annotation, dygraph)}
>>>>>>>
className="annotation-window"
style={windowDimensions(annotation, dygraph, staticLeg... |
<<<<<<<
<div className="page-contents">
<div className="tickscript-console">
<div className="tickscript-console--output">
{validation
? <p>
{validation}
</p>
: <p className="tickscript-console--default">
Save your TICKscri... |
<<<<<<<
? <NavBlock icon="user" className="sidebar__square-last">
<NavHeader link={logoutLink} title="Logout" />
=======
? <NavBlock icon="user-outline" className="sidebar__square-last">
<NavHeader useAnchor={true} link={logoutLink} title="Logout" />
>>>>>>>
... |
<<<<<<<
const containerLeftPadding = 16
const windowDimensions = (anno, dygraph, staticLegendHeight) => {
=======
const windowDimensions = (anno, dygraph) => {
>>>>>>>
const windowDimensions = (anno, dygraph, staticLegendHeight) => {
<<<<<<<
left,
width,
height,
=======
left: `${windowLeftXCoord}... |
<<<<<<<
const {tableOptions} = this.props
const timeFormat = tableOptions
? tableOptions.timeFormat
: 'MM/DD/YYYY HH:mm:ss.ss'
const isTimeCell = columnIndex === 0 && rowIndex > 0
=======
>>>>>>>
const {tableOptions} = this.props
const timeFormat = tableOptions
? tableOptions.t... |
<<<<<<<
render() {
const {
dygraph,
isTempHovering,
tempAnnotation: {time},
staticLegendHeight,
} = this.props
const {isMouseOver, mouseAction} = this.state
=======
renderTimestamp(time) {
>>>>>>>
renderTimestamp(time) {
<<<<<<<
<div
className={classnames('n... |
<<<<<<<
=======
cellRenderer = ({columnIndex, rowIndex, key, parent, style}) => {
const {hoveredColumnIndex, hoveredRowIndex} = this.state
const {tableOptions, colors} = this.props
const verticalTimeAxis = _.get(tableOptions, 'verticalTimeAxis', true)
const data = verticalTimeAxis ? this.state.data ... |
<<<<<<<
import {timeSeriesToTableGraph} from 'src/utils/timeSeriesToDygraph'
=======
import classnames from 'classnames'
import {timeSeriesToTable} from 'src/utils/timeSeriesToDygraph'
>>>>>>>
import classnames from 'classnames'
import {timeSeriesToTableGraph} from 'src/utils/timeSeriesToDygraph'
<<<<<<<
... |
<<<<<<<
setResolution: func,
=======
cellHeight: number,
>>>>>>>
setResolution: func,
cellHeight: number, |
<<<<<<<
onInit = (...args) => {
if (this.props.debug) {
this.setupDebugRenderer();
}
this.props.onInit(...args);
};
stopDebugRendering = () => {
if (this._render) {
Render.stop(this._render);
delete this._render;
}
};
getDebugProps = () => {
const debugProps = Obje... |
<<<<<<<
Matter.Events.on(engine, 'afterUpdate', this.update);
this.unsubscribeFromUpdate = () => {
Matter.Events.off(engine, 'afterUpdate', this.update);
};
};
=======
}
>>>>>>>
};
<<<<<<<
update = () => {
// On first press of "d", enable debug mode
if (this.keyListener.isDown(KE... |
<<<<<<<
const fifteenMinutes = Date.now() - 15 * 60 * 1000
getAnnotationsAsync(source.links.annotations, fifteenMinutes)
=======
window.addEventListener('resize', this.handleWindowResize, true)
>>>>>>>
const fifteenMinutes = Date.now() - 15 * 60 * 1000
getAnnotationsAsync(source.links.annotatio... |
<<<<<<<
onSetHoverTime,
hoverTime,
queryASTs,
onNewQueryAST,
=======
>>>>>>>
queryASTs,
onNewQueryAST, |
<<<<<<<
import React, {PropTypes, Component} from 'react'
import SlideToggle from 'shared/components/SlideToggle'
=======
import React, {PropTypes, Component} from 'react'
>>>>>>>
import React, {PropTypes, Component} from 'react'
import SlideToggle from 'shared/components/SlideToggle'
<<<<<<<
class OrganizationsTa... |
<<<<<<<
<div className="col-xs-12">
<AdminTabs
meRole={meRole}
// UsersTable
users={users}
organization={currentOrganization}
onCreateUser={this.handleCreateUser}
... |
<<<<<<<
{isTimeData
? `${moment(cellData).format(timeFormat)}`
: fieldName || `${cellData}`}
=======
{cellContents}
>>>>>>>
{cellContents}
<<<<<<<
{!_.isEmpty(data) &&
<MultiGrid
=======
{!isEmpty(data) &&
<ColumnSizer
>>>>>>>
... |
<<<<<<<
export class HostsPage extends Component {
=======
@ErrorHandling
class HostsPage extends Component {
>>>>>>>
@ErrorHandling
export class HostsPage extends Component { |
<<<<<<<
const DeleteButton = ({onClickDelete, buttonSize, text, disabled}) =>
=======
const DeleteButton = ({onClickDelete, buttonSize, icon, square}) =>
>>>>>>>
const DeleteButton = ({
onClickDelete,
buttonSize,
icon,
square,
text,
disabled,
}) =>
<<<<<<<
disabled,
=======
'btn-square': s... |
<<<<<<<
StaticServer.prototype.stop = function stop() {
if (this._socket) {
this._socket.close();
this._socket = null;
=======
/**
* Prepare the 'exit' handler for the program termination
*/
function initTerminateHandlers() {
var readLine;
if (process.platform === "win32"){
readLine = require("re... |
<<<<<<<
import DeprecationWarning from 'src/admin/components/DeprecationWarning'
=======
import {ErrorHandling} from 'src/shared/decorators/errors'
>>>>>>>
import DeprecationWarning from 'src/admin/components/DeprecationWarning'
import {ErrorHandling} from 'src/shared/decorators/errors' |
<<<<<<<
renderRefreshingGraph(type, queries) {
const {autoRefresh, templates, synchronizer} = this.props
=======
renderRefreshingGraph(type, queries, cellHeight) {
const {timeRange, autoRefresh, templates} = this.props
>>>>>>>
renderRefreshingGraph(type, queries, cellHeight) {
const {timeRange, aut... |
<<<<<<<
<form
className="page-header__left"
style={{flex: '1 0 0'}}
onSubmit={this.handleFormSubmit}
>
=======
<form className="page-header__left" onSubmit={this.handleFormSubmit}>
>>>>>>>
<form
className="page-header__left"
... |
<<<<<<<
return useAnchor
? <a
className={classnames('sidebar__menu-item', {active: isActive})}
href={link}
target={isExternal ? '_blank' : '_self'}
>
{children}
</a>
: <Link
className={classnames('sidebar__menu-item', {active: isActive})}... |
<<<<<<<
var casperArgs = options.casperArgs || [];
=======
var hideElements = options.hideElements || [];
>>>>>>>
var hideElements = options.hideElements || [];
var casperArgs = options.casperArgs || [];
<<<<<<<
if (casperArgs) {
args = args.concat(casperArgs);
}
=======
if (hideElements) {
... |
<<<<<<<
import React, {PropTypes, Component} from 'react'
import buildInfluxQLQuery from 'utils/influxql'
import classnames from 'classnames'
=======
import React, {PropTypes, Component} from 'react'
>>>>>>>
import React, {PropTypes, Component} from 'react'
import buildInfluxQLQuery from 'utils/influxql'
import clas... |
<<<<<<<
const {cell: {name, type, queries, axes, colors, legend}, sources} = props
=======
const {cell: {queries}, sources} = props
>>>>>>>
const {cell: {queries, legend}, sources} = props
<<<<<<<
axes,
singleStatType,
gaugeColors: validateGaugeColors(colors),
singleStatColors: v... |
<<<<<<<
// import {errorThrown} from 'shared/actions/errors'
import parsers from 'shared/parsing'
=======
import {errorThrown} from 'shared/actions/errors'
>>>>>>>
import parsers from 'shared/parsing'
import {errorThrown} from 'shared/actions/errors'
<<<<<<<
dispatch(
publishNotification(
'erro... |
<<<<<<<
import {
flagStyle,
clickAreaStyle,
annotationStyle,
} from 'src/shared/annotations/styles'
const idAppendage = '-end'
class Annotation extends Component {
state = {
isDragging: false,
isMouseOver: false,
}
isEndpoint = () => {
const {annotation: {id}} = this.props
return id.subs... |
<<<<<<<
synchronizer,
=======
timeRange,
isInDataExplorer,
>>>>>>>
synchronizer,
timeRange,
<<<<<<<
synchronizer={synchronizer}
=======
timeRange={timeRange}
legendOnBottom={isInDataExplorer}
>>>>>>>
synchronizer={synchronizer}
timeR... |
<<<<<<<
const {
topHeightPixels,
bottomHeightPixels,
topHeight,
bottomHeight,
isDragging,
} = this.state
const {containerClass, children} = this.props
=======
const {bottomHeightPixels, topHeight, bottomHeight, isDragging} = this.state
const {containerClass, children,... |
<<<<<<<
import StaticLegend from 'src/shared/components/StaticLegend'
import Annotations from 'src/shared/components/Annotations'
import getRange, {getStackedRange} from 'shared/parsing/getRangeForDygraph'
=======
import Annotations from 'src/shared/components/Annotations'
import getRange, {getStackedRange} from 's... |
<<<<<<<
hoverTime,
onSetHoverTime,
queryASTs,
onNewQueryAST,
=======
>>>>>>>
queryASTs,
onNewQueryAST, |
<<<<<<<
confirmPasswordError: string,
=======
sendLogsStatus: string,
>>>>>>>
confirmPasswordError: string,
sendLogsStatus: string,
<<<<<<<
sendLogs(string): void,
resetConfirmPasswordError(Object): void
=======
sendLogs(string): void,
resetSendLogsStatus(): void,
onTogglePinLoginEnabled(enableL... |
<<<<<<<
import { TextInput, PasswordInput } from './components'
=======
>>>>>>> |
<<<<<<<
import {
TouchableWithoutFeedback,
Image,
ScrollView,
ListView,
Text,
TextInput,
View,
StyleSheet,
TouchableHighlight,
Animated } from 'react-native'
=======
import Locale from 'react-native-locale'
import { TouchableWithoutFeedback, Image, ScrollView, ListView, Text, TextInput, View, Styl... |
<<<<<<<
export const SET_LTC_DENOMINATION = PREFIX + 'SET_LITECOIN_DENOMINATION'
export const SET_ETH_DENOMINATION = PREFIX + 'SET_ETHEREUM_DENOMINATION'
export const SET_REP_DENOMINATION = PREFIX + 'SET_REP_DENOMINATION'
export const SET_WINGS_DENOMINATION = PREFIX + 'SET_WINGS_DENOMINATION'
export const SET_LUN_DENOM... |
<<<<<<<
import sideMenu from '../modules/SideMenu/SideMenu.reducer'
import transactionList from '../modules/Transactions/Transactions.reducer'
import scan from '../modules/Scan/Scan.reducer'
import controlPanel from '../modules/ControlPanel/reducer'
import walletList from '../modules/WalletList/WalletList.reducer'
impo... |
<<<<<<<
import styles from './style'
import {TwoButtonModalStyle} from '../../../../styles/indexStyles.js'
=======
import SafeAreaView from '../../components/SafeAreaView/index.js'
>>>>>>>
import styles from './style'
import {TwoButtonModalStyle} from '../../../../styles/indexStyles.js'
import SafeAreaView from '../... |
<<<<<<<
<FormattedText style={[styles.modalTopText, border('yellow')]}>{this.props.headerText}</FormattedText>
{this.props.headerSubtext &&
<FormattedText style={[styles.modalTopSubtext, border('green')]}
numberOfLines={2}>
{this.props.head... |
<<<<<<<
export const getSyncedSubcategories = account => {
dumpFolder(account.folder)
return getSyncedSubcategoriesFile(account).getText()
.then(text => {
=======
export const getSyncedSubcategories = (account) => getSyncedSubcategoriesFile(account).getText()
.then((text) => {
>>>>>>>
export const getSynce... |
<<<<<<<
import * as AddWallet from '../modules/AddWallet/reducer'
=======
import { airbitz, account } from '../modules/Login/Login.reducer.js'
>>>>>>>
import * as AddWallet from '../modules/AddWallet/reducer'
import { airbitz, account } from '../modules/Login/Login.reducer.js'
<<<<<<<
addWallet: combineReducers({... |
<<<<<<<
import React from 'react'
=======
// @flow
>>>>>>>
// @flow
import React from 'react'
<<<<<<<
import {TextAndIconButton} from '../../../components/Buttons/TextAndIconButton.ui'
import {SelectedWalletNameHeader} from './SelectedWalletNameHeader.ui'
=======
import type {State, Dispatch} from '../../../../... |
<<<<<<<
render () {
return (
<View style={styles.container}>
{this.renderCamera()}
<View style={[styles.overlay]}>
<AddressModal />
<View style={[styles.overlayTop]}>
<T style={[styles.overlayTopText]}>{sprintf(strings.enUS['send_scan_header_text'])}</T>
... |
<<<<<<<
import {intl} from '../../../../locales/intl'
=======
import * as Constants from '../../../../constants/indexConstants.js'
>>>>>>>
import {intl} from '../../../../locales/intl'
import * as Constants from '../../../../constants/indexConstants.js' |
<<<<<<<
import * as Wallets from '../modules/Wallets/Wallets.reducer.js'
=======
import Wallets from '../modules/Wallets/Wallets.reducer.js'
import Request from '../modules/Request/Request.reducer.js'
>>>>>>>
import * as Wallets from '../modules/Wallets/Wallets.reducer.js'
import Request from '../modules/Request/Req... |
<<<<<<<
return <FAIcon name={Constants.TRASH_O} size={24} color={c.primary} style={[{
=======
return <FAIcon name='trash-o' size={24} color={THEME.COLORS.PRIMARY} style={[{
>>>>>>>
return <FAIcon name={Constants.TRASH_O} size={24} color={THEME.COLORS.PRIMARY} style={[{ |
<<<<<<<
const precision = secondaryInfo.displayDenomination.multiplier ? log10(secondaryInfo.displayDenomination.multiplier) : 0
const formattedSecondaryDisplayAmount: string = (parseFloat(getDisplayExchangeAmount(secondaryDisplayAmount)).toFixed(precision))
const secondaryCurrencyCode: string = secondaryIn... |
<<<<<<<
loading: props.loading,
result: ''
=======
keyboardUp: false,
loading: props.loading
>>>>>>>
loading: props.loading,
result: '',
keyboardUp: false
<<<<<<<
onAmountsChange = ({primaryDisplayAmount}: {primaryDisplayAmount: string}) => {
=======
componentWillMoun... |
<<<<<<<
}) */
=======
})
this.refs._scrollView.scrollTo({x: 0, y: 0, animated: true})
>>>>>>>
}) */
this.refs._scrollView.scrollTo({x: 0, y: 0, animated: true})
<<<<<<<
onSelectPayee = (input) => {
console.log('payeeName selected as: ', input)
this.setState({
payeeName: input,
... |
<<<<<<<
import { addWallet, selectWallet } from './Wallets/Wallets.action.js'
import { initializeAccount } from './Container.middleware'
import {enableLoadingScreenVisibility} from './Container.action'
=======
import { addWallet, selectWallet } from './UI/Wallets/Wallets.action.js'
>>>>>>>
import { initializeAccoun... |
<<<<<<<
const TRANSACTION_DETAILS = s.strings.title_transaction_details
const WALLETS = s.strings.title_wallets
const CREATE_WALLET = s.strings.title_create_wallet
const REQUEST = s.strings.title_request
const SEND = s.strings.title_send
const EDGE_LOGIN = s.strings.title_edg... |
<<<<<<<
import ENV from '../../env.json'
=======
import ENV from '../../env.json'
import {makeCoreContext} from '../util/makeContext.js'
>>>>>>>
import ENV from '../../env.json'
import {makeCoreContext} from '../util/makeContext.js'
<<<<<<<
const {AIRBITZ_API_KEY, SHAPESHIFT_API_KEY} = ENV
=======
>>>>>>> |
<<<<<<<
import * as Constants from '../../../../constants/indexConstants'
import type { AbcTransaction, AbcParsedUri } from 'airbitz-core-types'
import type {Action} from '../../../ReduxTypes.js'
export type SendConfirmationState = {
transaction: AbcTransaction | null,
parsedUri: AbcParsedUri,
error: Error | nul... |
<<<<<<<
let cryptoAmountString
let renderableTransactionList = transactions.sort(function (a: any, b: any) {
=======
// console.log('about to render txList, this is: ', this)
let cryptoBalanceString
const renderableTransactionList = transactions.sort(function (a: any, b: any) {
>>>>>>>
const ... |
<<<<<<<
<Scene key='scan_notused' renderTitle={this.renderWalletListNavBar} component={Scan} onEnter={this.props.dispatchEnableScan} onExit={this.props.dispatchDisableScan} onRight={() => Actions.drawerOpen()} rightButtonImage={MenuIcon} tabBarLabel='Send' title='Send' animation={'fade'} durat... |
<<<<<<<
import Contacts from 'react-native-contacts'
import {colors as c} from '../../../../theme/variables/airbitz'
=======
>>>>>>>
<<<<<<<
constructor(props) {
super(props)
console.log('Constructor of TransactionDetails, this.props is: ', this.props)
const direction = (this.props.tx.amountSatosh... |
<<<<<<<
const EXCHANGE_RATE_LOADING_TEXT = strings.enUS['drawer_exchange_rate_loading']
export default class ExchangeRate extends Component {
=======
export default class ExchangeRate extends Component<$FlowFixMeProps> {
>>>>>>>
const EXCHANGE_RATE_LOADING_TEXT = strings.enUS['drawer_exchange_rate_loading']
export... |
<<<<<<<
=======
keyboardDidShow = () => {
if (this.refs.loginUsername._textInput.isFocused()) this.props.dispatch(openUserList())
}
keyboardDidHide = () => {
this.props.dispatch(closeUserList())
}
componentWillMount () {
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this... |
<<<<<<<
=======
import { loginWithPassword } from './Login.middleware'
import { removeUserToLogin } from '../CachedUsers/CachedUsers.action'
>>>>>>>
import { loginWithPassword } from './Login.middleware'
import { removeUserToLogin } from '../CachedUsers/CachedUsers.action'
<<<<<<<
this.props.dispatch(closeLogi... |
<<<<<<<
settings_button_password_recovery: 'Password Recovery',
=======
>>>>>>>
settings_button_password_recovery: 'Password Recovery',
<<<<<<<
string_search: 'Search',
// OTP
title_otp_enabled: '2FA is enabled',
title_otp_disabled: 'Protect your account with 2FA',
otp_description: '2FA prevents unau... |
<<<<<<<
nonPasswordDaysLimit: 4,
nonPasswordLoginsLimit: 4
}
=======
nonPasswordDaysLimit: 2,
nonPasswordLoginsLimit: 2
},
isAccountBalanceVisible: true
>>>>>>>
nonPasswordDaysLimit: 4,
nonPasswordLoginsLimit: 4
},
isAccountBalanceVisible: true |
<<<<<<<
index: index + 1,
pageCount: groups.length
=======
index: index + 1,
prefix: post
>>>>>>>
index: index + 1,
pageCount: groups.length
prefix: post |
<<<<<<<
renderTextInput: PropTypes.func,
flatListProps: PropTypes.object
=======
renderTextInput: PropTypes.func,
/**
* `rowHasChanged` will be used for data objects comparison for dataSource
*/
rowHasChanged: PropTypes.func
>>>>>>>
renderTextInput: PropTypes.func,
flatListProps: ... |
<<<<<<<
},{"../source/gist":53,"../source/github":54,"clone":5,"xtend":32}],39:[function(require,module,exports){
var qs = require('../lib/querystring');
=======
},{"../source/gist":55,"../source/github":56,"clone":5,"xtend":32}],39:[function(require,module,exports){
>>>>>>>
},{"../source/gist":55,"../source/github... |
<<<<<<<
return Promise.resolve({
=======
if (data instanceof Array) {
data = {
list: data,
}
}
return {
>>>>>>>
if (data instanceof Array) {
data = {
list: data,
}
}
return Promise.resolve({ |
<<<<<<<
this.crawler.respectRobotsTxt = true;
this.crawler.initialPath = '/';
=======
if (this.uri.pathname) {
this.crawler.initialPath = this.uri.pathname;
}
>>>>>>>
this.crawler.initialPath = '/';
if (this.uri.pathname) {
this.crawler.initialPath = this.uri.pathname;
} |
<<<<<<<
var expected = 'https://raw.githubusercontent.com/wiki/adamburmister/gitprint.com/home.md'
urlHelper.translate(gitprintUrl).should.equal(expected);
=======
var expected = 'https://raw.github.com/wiki/adamburmister/gitprint.com/home.md'
verifyGithubUrlValid(expected, fun... |
<<<<<<<
define('text!templates/mentions/mention_item.html',[],function () { return '<div class="group-chat-title-wrap hidden">\n <div class="account-indicator"></div>\n <div class="contact-icon">\n <img class="server-icon hidden" src="./images/BotIcon20x20@2x.png">\n <img class="group-chat-icon hidd... |
<<<<<<<
current_call = $item.children('metadata[node="' + Strophe.NS.JINGLE_MSG + '"]').children('call'),
=======
$group_metadata = $item.children('metadata[node="' + Strophe.NS.GROUP_CHAT + '"]'),
current_call = $item.children('metadata[node="' ... |
<<<<<<<
=======
let $group_chat_info = $(presence).find('x[xmlns="'+Strophe.NS.GROUP_CHAT +'"]');
if ($group_chat_info.length > 0 && $group_chat_info.children().length) {
this.set('full_jid', $presence.attr('from'));
if (!this.get('group_chat')) ... |
<<<<<<<
(this.account && this.account.domain === attrs.jid) && _.extend(attrs, {server: true, status: 'online'});
=======
if (attrs.resource) {
attrs.full_jid = attrs.jid + '/' + attrs.resource;
} /*else if (attrs.group_chat) {
at... |
<<<<<<<
this.account.last_msg_timestamp = Math.round($(iq).children(`query[xmlns="${Strophe.NS.SYNCHRONIZATION}"]`).attr('stamp')/1000);
let last_chat_msg_id = $(iq).find('set last'),
encrypted_retract_version = $(iq).find('query conversation[type="encrypted"]').first... |
<<<<<<<
callback && callback();
=======
options.model.trigger("database_opened");
>>>>>>>
callback && callback();
options.model.trigger("database_opened"); |
<<<<<<<
// message.set('state', constants.MSG_SENT);
if (!this.contact.get('group_chat')&&(!this.account.server_features.find(feature => feature.get('var') === Strophe.NS.DELIVERY)))
this.account.connection.ping.ping(this.account.get('jid'), function () {
... |
<<<<<<<
// see if there is a match on the cursor click
let match = this.getMatch(cursor);
if (match) {
let widgetlink = document.getElementById('widget-links');
switch (match.type) {
case 'vec4':
case 'vec3':
... |
<<<<<<<
})
test('Table updates correctly upon change of key prop', () => {
// stateful container above
const Parent = ({ headers, i }) => (
<Table key={i}>
<Thead>
<Tr>
<Th>{headers[0]}</Th>
<Th>{headers[1]}</Th>
</Tr>
</Thead>
<Tbody>
<Tr>
<Td>item 1... |
<<<<<<<
var $myaccount = $('.myaccount', 'body'),
THIS = this,
default_submodule = 'profile';
=======
var $myaccount = $('.myaccount', 'body'),
$scrolling_ul = $('ul.nav.nav-list', $myaccount),
nice_scrollbar = $scrolling_ul.getNi... |
<<<<<<<
'monster-timezone': 'js/lib/monster.timezone',
nicescroll: 'js/lib/jquery.nicescroll.min',
=======
'monster-util': 'js/lib/monster.util',
>>>>>>>
'monster-timezone': 'js/lib/monster.timezone',
'monster-util': 'js/lib/monster.util',
nicescroll: 'js/lib/jquery.nicescroll.min', |
<<<<<<<
self.searchAsYouType('upcoming', parent);
},
formatUpcomingConferences: function(data) {
var conferences = data.conferences;
=======
parent
.find('.right-content')
.empty()
.append(upcomingConfView);
}
});
},
formatUpcomingConferences: function(conferences) {
... |
<<<<<<<
function valueType (value) {
const styles = ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset']
// 需要考虑到0px简写为0的情况,否则会当作color处理。
if (/px/ig.test(value) || parseInt(value) === 0 || value === 'none') {
return 'width'
} else if (~styles.indexOf(value)) {
... |
<<<<<<<
const listenTimeoutId = setTimeout(() => {
if (sub) sub.unsubscribe();
reject(
new TransportError(this.ErrorMessage_ListenTimeout, "ListenTimeout")
);
}, listenTimeout);
=======
>>>>>>> |
<<<<<<<
var isTag = modifier === 'tag';
var streamItems = data.payload.streamItems;
var postMap = data.payload.references.Post,
userMap = data.payload.references.User,
collection = data.payload.references.Collection;
=======
var items = [];
>>>>>>>
var items = [];
<<<<<<<
// get post when given tag
if... |
<<<<<<<
server.plugins['hapi-sequelize']['shop'].sequelize.query('show tables', { type: Sequelize.QueryTypes.SELECT }).then((tables) => {
expect(tables.length).to.equal(6);
done();
});
})
});
test('plugin throws error when no models are found', { parallel: true }, (done) => {
c... |
<<<<<<<
=======
// el.find('')
>>>>>>> |
<<<<<<<
comment: "Hide commands (up, down, anarchy, etc)",
isActive: true,
=======
comment: "Commands (up, down, anarchy, etc)",
def: true,
>>>>>>>
comment: "Commands (up, down, anarchy, etc)",
isActive: true,
<<<<<<<
comment: "Hide messages with non-whitelisted URLs",
isActive: true... |
<<<<<<<
} else if (action === 'display') {
controller.classList.add('vsc-manual');
controller.classList.toggle('vsc-hidden');
=======
} else if (action === 'drag') {
handleDrag(v, controller);
>>>>>>>
} else if (action === 'display') {
controller.classL... |
<<<<<<<
import { ChannelContext, EmojiContext } from '../../../context';
=======
import { ChannelContext, TranslationContext } from '../../../context';
>>>>>>>
import {
ChannelContext,
EmojiContext,
TranslationContext,
} from '../../../context';
<<<<<<<
<EmojiContext.Provider value={emojiMockConfig}>
... |
<<<<<<<
};
=======
};
if (params && params.rotate)
this.rotateLabels = true;
var allLabelsVisibleAttr = div.attr("data-idd-force-labels-visibility");
if(typeof allLabelsVisibleAttr !== 'undefined'){
if(allLabelsVisibleAttr == "false" || allLabelsVisibleAttr == "disabl... |
<<<<<<<
function initLEDs() {
var menItm = `
<tr><td width=1><input type=submit onclick="ShowHideEvent( 'LEDs' ); KickLEDs();" value="LEDs"></td><td>
<div id=LEDs class="collapsible">
<table width=100% border=1><tr><td id=LEDCanvasHolder><CANVAS id=LEDCanvas width=512 height=100></CANVAS></td>
<td><input type=butto... |
<<<<<<<
* Backbone post statuses collection
*/
wp.api.collections.PostStatuses = Backbone.Collection.extend({
url: WP_API_Settings.root + '/posts/statuses',
model: wp.api.models.PostStatus
});
/**
=======
* Backbone media library collection
*/
wp.api.collections.MediaLibrary = Backbone.Collection.ex... |
<<<<<<<
* Backbone model for a post status
*/
wp.api.models.PostStatus = Backbone.Model.extend( {
idAttribute: 'slug',
urlRoot: WP_API_Settings.root + '/posts/statuses',
defaults: {
slug: null,
name: '',
'public': true,
'protected': false,
'private': false,
queryable: true,
show_in_lis... |
<<<<<<<
},
{
id: 'Kune'
,logo: 'kune.png'
,name: 'Kune'
,description: 'Kune is a web tool, based on Apache Wave, for creating environments of constant inter-communication, collective intelligence, knowledge and shared work.'
,url: 'https://kune.cc'
,type: 'messaging'
=======
},
{
id: 'go... |
<<<<<<<
},
{
id: 'devrant'
,logo: 'devrant.png'
,name: 'devRant'
,description: 'Share and bond over successes and frustrations with code, tech and life as a programmer'
,url: 'https://devrant.com/'
,type: 'messaging'
,js_unread: 'function checkUnread(){var a=document.querySelectorAll(".menu-no... |
<<<<<<<
if ( messageCount > 0 && !mainWindow.isFocused() && !config.get('dont_disturb') ) mainWindow.flashFrame(true);
=======
if ( messageCount > 0 && !mainWindow.isFocused() && config.get('flash_frame') ) {
mainWindow.flashFrame(true);
}
>>>>>>>
if ( messageCount > 0 && !mainWindow.isFocused() && !config.get... |
<<<<<<<
viewBox={ viewBox ? viewBox : `0 0 ${width} ${height}` }
className="rsm-svg"
=======
viewBox={ `0 0 ${width} ${height}` }
className={ `rsm-svg ${className || ''}` }
>>>>>>>
viewBox={ viewBox ? viewBox : `0 0 ${width} ${height}` }
className={ `... |
<<<<<<<
const backgroundColors = [
'rgba(255,99,132,0.7)',
'rgba(75,192,192,0.7)',
'rgba(255,206,86,0.7)',
'rgba(54,162,235,0.7)',
'rgba(170,13,197,0.5)' //last color is used for the Radar chart
];
const pointColors = [ // these are used for the points on the Radar chart
'rgba(255,99,132,1)',
... |
<<<<<<<
<nav id="header" className={headerClass}>
<Link to="top" smooth duration={800} offset={-131}>
<img src={logo} alt="logo" height="50" className="logo-active" />
</Link>
=======
<nav id="header" className="navbar navbar-expand-md navbar-light fixed-top">
>>>>>>>
<nav id="header... |
<<<<<<<
const header = document.querySelector('header');
// const nav = document.querySelector('#header');
return header.classList.toggle('is-open');
// return ;
=======
const header = document.querySelector('#header');
return header.classList.toggle('show');
>>>>>>>
const header = document.querySele... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.