conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
=======
/**
* Webpack Plugins
*/
var CopyWebpackPlugin = require('copy-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
/**
* Webpack Constants
*/
const ENV = process.env.ENV = process.env.NODE_ENV = ... |
<<<<<<<
"status": "状态",
"no_notifications": "没有通知",
"enable_desktop_notifications": "Enable Desktop Notifications",
"desktop_notification_enabled": "Desktop Notifications Enabled!",
"notifications_enabled": "Notifications Enabled",
"contract_type": "合同类型",
"filters": "过滤器",
"send_tokens": "Send Tokens",... |
<<<<<<<
const DOWN_SAMPLE_FRAG = require('./shaders/post-processing/down-sample.frag.js')
=======
const DOF_FRAG = require('./shaders/post-processing/dof.frag.js')
>>>>>>>
const DOWN_SAMPLE_FRAG = require('./shaders/post-processing/down-sample.frag.js')
const DOF_FRAG = require('./shaders/post-processing/dof.frag.js... |
<<<<<<<
=======
pointLights.forEach((light, i) => {
sharedUniforms['uPointLights[' + i + '].position'] = light.entity.transform.worldPosition
sharedUniforms['uPointLights[' + i + '].color'] = light.color
sharedUniforms['uPointLights[' + i + '].range'] = light.range
sharedUniforms['uPointLights[' + i... |
<<<<<<<
vec3 position;
vec3 direction;
vec4 color;
float angle;
float range;
mat4 projectionMatrix;
mat4 viewMatrix;
bool castShadows;
float near;
float far;
float bias;
vec2 shadowMapSize;
=======
vec3 position;
vec3 direction;
vec4 color;
float innerAngle;
float angle;
... |
<<<<<<<
${SHADERS.depthUnpack}
=======
${SHADERS.normalPerturb}
${SHADERS.irradiance}
>>>>>>>
${SHADERS.depthUnpack}
${SHADERS.normalPerturb}
${SHADERS.irradiance}
<<<<<<<
EvaluateAmbientLight(data, light);
=======
EvaluateAmbientLight(data, light, i, ao);
>>>>>>>
EvaluateAmbi... |
<<<<<<<
// TODO: how fast is building these flag strings every frame for every object?
Renderer.prototype.getMaterialProgram = function (geometry, material, skin, options) {
=======
var PBRVert = require('./glsl/PBR.vert.js')
var PBRFrag = require('./glsl/PBR.frag.js')
Renderer.prototype.getMaterialProgramAndFlags =... |
<<<<<<<
import { Icon, Divider } from 'react-native-elements';
import Colors from '../../theme/colors';
=======
>>>>>>>
import { Icon, Divider } from 'react-native-elements';
import Colors from '../../theme/colors'; |
<<<<<<<
{expand: true, cwd: 'bower_components/animate.css/', src: 'animate.css', dest: 'lib/'},
{expand: true, cwd: 'bower_components/kdbxweb/dist/', src: 'kdbxweb.js', dest: 'lib/'}
=======
{expand: true, cwd: 'bower_components/animate.css/', src: 'animate.css', dest: 'lib/'},
... |
<<<<<<<
infixpat, function(op) {
return new InfixSymbol(op);
=======
/^([\w|\.]|[^\u0000-\u0080])+|'((\\.)|[^\\'])+'|"((\\.)|[^\\"])+"/, function(name) {
return new Symbol(name);
>>>>>>>
infixpat, function(op) {
return new InfixSymbol(op);
<<<<<<<
key = poly.parser.un... |
<<<<<<<
cell = $("<td>" + (poly.parser.unbracket(v["var"])) + "</td>");
=======
cell = $("<td class='heading'>" + v["var"] + "</td>");
>>>>>>>
cell = $("<td class='heading'>" + (poly.parser.unbracket(v["var"])) + "</td>");
<<<<<<<
name = poly.parser.unbracket(val["var"]);
... |
<<<<<<<
for (var i in selection_records) {
var dragfeat = selection_records[i].feature;
var is_subfeature = (!!dragfeat.parent); // !! is shorthand for returning true if value is defined and non-null
var parentId = is_subfeature ? dragfeat.parent... |
<<<<<<<
this.indexToChr.push({ name: name, length: lRef });
p = p + 8 + lName;
}
=======
var headLen = readInt(uncba, 4);
// var header = '';
// for (var i = 0; i < headLen; ++i) {
// header += String.from... |
<<<<<<<
var offset = this.config.data_offset || 0;
var origin = (function() {
if ( 'bicolor_pivot' in this.config ) {
if ( this.config.bicolor_pivot == 'mean' ) {
return s.mean || 0;
} else if ( this.config.bicolor_pivot == 'zero' ) {
return ... |
<<<<<<<
p.js = resolved+"/js";
=======
p.js = p.location+"/js"; //URL resolution for this is taken care of by the JS loader
>>>>>>>
p.js = p.location+"/js"; //URL resolution for this is taken care of by the JS loader
<<<<<<<
navigateTo: function(loc) {
this.afterM... |
<<<<<<<
_fillSequenceBlock: function( block, scale, feature ) {
var seq = feature.get('seq');
var start = feature.get('start');
var end = feature.get('end');
// fill with leading blanks if the
// sequence does not extend all the way
=======
_fillSequenceBlock: function... |
<<<<<<<
define( [
'dojo/_base/declare',
'JBrowse/Store',
'JBrowse/Util'],
function( declare, Store, Util ) {
return declare( null,
=======
define( ['JBrowse/Store',
'JBrowse/Util',
'JBrowse/Digest/Crc32'
],
function( Store, Util, Crc32 ) {... |
<<<<<<<
"sign_in_with_ledger":"LEDGER",
=======
"TRC20_under_maintenance":"TRC20 under maintenance",
"transaction_fewer_than_100000":"1. When there are fewer than 100,000 (including 100,000) transaction data entries, all the data will be displayed.",
"transaction_more_than_100000":"2. When there are m... |
<<<<<<<
var blocks = wp.data.select( "core/block-editor" ).getBlocks();
var blockFields = _.map(
_.filter( blocks, function( block ) {
return block.name.startsWith( "acf/" ) && ( block.attributes.mode === "preview" || block.attributes.mode === "auto" );
} ),
function( block ) {
var fieldData = {
$el: ... |
<<<<<<<
// ATTENTION:
// binding to :: only receives IPv4 connections if the bindv6only
// sysctl is set 0, which is the default on many operating systems.
self._httpServer && self._httpServer.listen(port.http || port, '::')
self._udpServer && self._udpServer.bind(port.udp || port)
=======
sel... |
<<<<<<<
var id = params.type === common.PEER_TYPES.websocket ? params.peer_id : params.addr
this.peers[id] = null
=======
delete this.peers[params.addr || params.peer_id]
>>>>>>>
var id = params.type === common.PEER_TYPES.websocket ? params.peer_id : params.addr
delete this.peers[id] |
<<<<<<<
=======
web3.extend({
property: 'test',
methods:
[
{
name: 'setChainParams',
call: 'test_setChainParams',
params: 1,
outputFormatter: web3.extend.formatters.formatOutput... |
<<<<<<<
const os = require('os')
const fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp')
const rimraf = require('rimraf')
const zip = require('cross-zip')
const minimist = require('minimist')
const packager = require('electron-packager')
const installer = require('electron-installer-windo... |
<<<<<<<
version: `1.0.0`,
date: `10/??/2020`,
changes: [
`Expanded Interdimensional content, delve deep into the hell dimension.`,
`New Magic Universe.`,
`Fling asteroids into the blackhole with the Asteroid Redirect ARPA project.`,
`The same monum... |
<<<<<<<
level += global.stats.achieve[achievement].l > 5 ? 5 : global.stats.achieve[achievement].l;
if (global.stats.achieve[achievement][affix]){
ulevel += global.stats.achieve[achievement][affix] > 5 ? 5 : global.stats.achieve[achievement][affix];
}
if (... |
<<<<<<<
reqs: { gravity: 1, science: 15 },
=======
category: 'research',
reqs: { gravity: 1, locked: 1 },
>>>>>>>
category: 'research',
reqs: { gravity: 1, science: 15 }, |
<<<<<<<
import { global, keyMultiplier, breakdown, sizeApproximation, p_on, red_on, achieve_level } from './vars.js';
import { vBind, clearElement, modRes, calc_mastery, calcPillar, easterEgg, trickOrTreat, popover, harmonyEffect, darkEffect } from './functions.js';
=======
import { global, keyMultiplier, poppers, br... |
<<<<<<<
"Side_Chain":"Side chain browser(DappChain)",
"Main_Chain":"Main chain browser(MainChain)",
=======
"7day": "one week",
"14day": "two weeks",
"30day": "one month",
"select_tip": "To view data other than 2000 You can manually adjust the time window",
"date_number_tip": "{total} records in ... |
<<<<<<<
version: `0.9.10`,
date: `7/??/2020`,
changes: [
`Expanded list of potential enemy city names.`,
]
},{
=======
version: `0.9.10`,
date: `7/27/2020`,
changes: [
`Internal bugfix re: "ogre" name`
]
},
{
>>>>>>>
... |
<<<<<<<
import { global, keyMultiplier, breakdown, sizeApproximation, p_on, red_on, achieve_level } from './vars.js';
import { vBind, clearElement, modRes, calc_mastery, calcPillar, easterEgg, popover, harmonyEffect, darkEffect } from './functions.js';
=======
import { global, keyMultiplier, poppers, breakdown, sizeA... |
<<<<<<<
=======
"trc20_fire_token":"50 lucky draws to win 100,000 VENA!",
"trc20_vena_tip":"Due to the particularity of VENA contract, extra 0.1 VENA will be authorized but not deducted.",
>>>>>>> |
<<<<<<<
return User.findOne({_id: this.currentUser})
=======
console.log(this.currentUserId)
return User.findOne({_id: this.currentUserId})
>>>>>>>
return User.findOne({_id: this.currentUserId}) |
<<<<<<<
import * as geneTypes from '../geneTypes';
=======
import {menu} from '../../../utilities';
>>>>>>>
import * as geneTypes from '../geneTypes';
import {menu} from '../../../utilities'; |
<<<<<<<
// Start a subtest...
t.test(dir, t => {
// Failing tests that we will skip at present
if (['input', 'output', 'execute', 'simple'].indexOf(dir) >= 0) {
t.skip('TODO Skipping')
t.end()
return
}
=======
// Get list of files
fs.readdi... |
<<<<<<<
const randXML = `
<function>
<name>rand</name>
<params>
</params>
<implems>
<implem language="js" />
</implems>
</function>
`
let RAND_COUNT = 1
function rand() {
// very pseudo random
return RAND_COUNT++
}
// used in tests to reset the pseudo random generator
export function _reset_rand() ... |
<<<<<<<
=======
, _handleStartShouldSetPanResponder: function(e: Object, gestureState: Object): boolean {
return true;
}
, _handleMoveShouldSetPanResponder: function(e: Object, gestureState: Object): boolean {
if (gestureState.dx === 0 || gestureState.dy === 0) {
return false;
}
return true;
... |
<<<<<<<
luaL_argcheck(L, 1 <= posi && --posi <= len, 2, to_luastring("initial position out of string"));
luaL_argcheck(L, --posj < len, 3, to_luastring("final position out of string"));
=======
lauxlib.luaL_argcheck(L, 1 <= posi && --posi <= len, 2, "initial position out of string");
lauxlib.luaL_argc... |
<<<<<<<
let t = lua_type(L, 2);
luaL_checktype(L, 1, LUA_TTABLE);
luaL_argcheck(L, t === LUA_TNIL || t === LUA_TTABLE, 2, to_luastring("nil or table expected", true));
if (luaL_getmetafield(L, 1, to_luastring("__metatable", true)) !== LUA_TNIL)
return luaL_error(L, to_luastring("cannot change a ... |
<<<<<<<
default: return luaL_error(L, to_luastring("wrong number of arguments", true));
=======
default: return lauxlib.luaL_error(L, "wrong number of arguments");
>>>>>>>
default: return luaL_error(L, "wrong number of arguments");
<<<<<<<
luaL_argcheck(L, low <= up, 1, to_luastring("int... |
<<<<<<<
for (; lisdigit(s[i]); i++) {
let d = s[i] - 48 /* ('0').charCodeAt(0) */;
=======
for (; i < s.length && ljstype.lisdigit(s[i]); i++) {
let d = s[i] - char['0'];
>>>>>>>
for (; i < s.length && lisdigit(s[i]); i++) {
let d = s[i] - 48 /* ('0').charC... |
<<<<<<<
pos = luaL_checkinteger(L, 2); /* 2nd argument is the position */
luaL_argcheck(L, 1 <= pos && pos <= e, 2, to_luastring("position out of bounds", true));
=======
pos = lauxlib.luaL_checkinteger(L, 2); /* 2nd argument is the position */
lauxlib.luaL_argcheck(L... |
<<<<<<<
// Allow refund for accounts with orders or "order/fulfillment" permissions.
// When called internally by another plugin, context.isInternalCall
// can be set to `true` to disable this check.
if (!isInternalCall) {
await context.validatePermissions(
`reaction:legacy:orders:${order._id}`,
... |
<<<<<<<
import updateOrderFulfillmentGroup from "./updateOrderFulfillmentGroup";
=======
import updateOrder from "./updateOrder";
>>>>>>>
import updateOrder from "./updateOrder";
import updateOrderFulfillmentGroup from "./updateOrderFulfillmentGroup";
<<<<<<<
placeOrder,
updateOrderFulfillmentGroup
=======
... |
<<<<<<<
import registerInventoryPlugin from "./plugins/inventory/index.js";
=======
import registerSurchargesPlugin from "./plugins/surcharges/index.js";
>>>>>>>
import registerInventoryPlugin from "./plugins/inventory/index.js";
import registerSurchargesPlugin from "./plugins/surcharges/index.js"; |
<<<<<<<
import { Meteor } from "meteor/meteor";
=======
import { Assets } from "/lib/collections";
>>>>>>>
import { Meteor } from "meteor/meteor";
import { Assets } from "/lib/collections"; |
<<<<<<<
const hydratedCart = await getShippingRestrictionAttributes(context, fulfillmentGroup); // TODO: possibly change function name
const isCartShippingRestricted = await cartShippingRestricted(context, hydratedCart);
=======
const hydratedCart = await getShippingRestrictionAttributes(context, cartWithSummar... |
<<<<<<<
expect(mockContext.userHasPermissionLegacy).toHaveBeenCalledWith(["owner", "admin"], mockShopId);
expect(mockContext.collections.Tags.find).toHaveBeenCalledWith({ shopId: mockShopId, isVisible: true, isDeleted: { $in: [false, true] } });
=======
expect(mockContext.userHasPermission).toHaveBeenCalledWith... |
<<<<<<<
import registerProductPlugin from "./core-services/product/index.js";
=======
import registerInventoryPlugin from "./core-services/inventory/index.js";
>>>>>>>
import registerInventoryPlugin from "./core-services/inventory/index.js";
import registerProductPlugin from "./core-services/product/index.js";
<<<<... |
<<<<<<<
// Allow update if the account has "admin" permission. When called internally by another
// plugin, context.isInternalCall can be set to `true` to disable this check.
await context.validatePermissions(`reaction:legacy:inventory:${foundProduct._id}`, "update", { shopId, legacyRoles: ["admin"] });
==... |
<<<<<<<
"stripe/payment/capture": function (paymentMethod) {
// Call both check and validate because by calling `clean`, the audit pkg
// thinks that we haven't checked paymentMethod arg
check(paymentMethod, Object);
PaymentMethodArgument.validate(PaymentMethodArgument.clean(paymentMethod));
=======
... |
<<<<<<<
import { Badge, ClickToCopy, Icon, RolloverCheckbox } from "@reactioncommerce/reaction-ui";
import { getOrderRiskBadge, getOrderRiskStatus } from "../helpers";
=======
import { Badge, ClickToCopy, Icon, RolloverCheckbox, Checkbox } from "@reactioncommerce/reaction-ui";
>>>>>>>
import { Badge, ClickToCopy, Ic... |
<<<<<<<
=======
import { SimpleSchema } from "meteor/aldeed:simple-schema";
import { registerSchema } from "@reactioncommerce/reaction-collections";
>>>>>>>
import { registerSchema } from "@reactioncommerce/reaction-collections"; |
<<<<<<<
/**
* getShopSettings
* @return {Object} returns current shop settings
*/
export function getShopSettings() {
return Core.Reaction.getShopSettings();
}
=======
>>>>>>>
/**
* getShopSettings
* @return {Object} returns current shop settings
*/
export function getShopSettings() {
return Core.Reactio... |
<<<<<<<
* @property {Number} taxRate optional
* @property {String} title Cart Item title
* @property {Object} transaction Transaction associated with this item
* @property {String} updatedAt required
* @property {String} variantId required
* @property {String} variantTitle Title from the selected variant
=======... |
<<<<<<<
// 03-26 tag
account_tags_list:'Список вкладок',
account_tags_add:'Добавить',
account_tags_desc:'Функция тегов: вы можете прикрепить личные теги к аккаунтам, чтобы их было легче идентифицировать',
account_tags_number:'{total} всего аккаунтов',
account_tags_table_1:'тег',
account_tags_table_2:'За... |
<<<<<<<
fileRecords.forEach((fileRecord) => {
// Copy File and insert
fileRecord
.fullClone({
productId: newId,
variantId: variantNewId
})
.catch((error) => {
Logger.error(`Error in copyMedia for product ${newId}`, error);
... |
<<<<<<<
const { currentRoute } = this.props;
const routeOptions = currentRoute.route && currentRoute.route.options || {};
const routeData = routeOptions && routeOptions.structure || {};
=======
const currentRoute = this.props.currentRoute;
const routeOptions = (currentRoute.route && currentRoute.r... |
<<<<<<<
=======
const errorDetails = new SimpleSchema({
message: {
type: String
},
description: {
type: String,
optional: true
}
});
// Validate that whenever we return an error, we return the same format
const ErrorObject = new SimpleSchema({
"type": {
type: String
},
"errorCode": {
... |
<<<<<<<
if (!context.isInternalCall) {
await context.validatePermissions(`reaction:legacy:accounts:${account._id}`, "remove:address-books", {
shopId: account.shopId,
owner: account.userId,
legacyRoles: ["reaction-accounts"]
});
}
=======
await context.validatePermissions(`reaction:acco... |
<<<<<<<
Sitemap,
=======
Surcharge,
>>>>>>>
Sitemap,
Surcharge, |
<<<<<<<
const { shopId, userId } = account;
=======
const userEmail = account.emails && account.emails[0];
// Verify that we have an account and it has an email address that isn't yet verified
if (!userEmail || userEmail.verified) return false;
const { userId } = account;
>>>>>>>
const { userId } = acc... |
<<<<<<<
import "./41_set_should_appear_in_sitemap";
import "./43_stripe_marketplace_pkg";
=======
import "./41_set_should_appear_in_sitemap";
import "./42_payment_methods";
>>>>>>>
import "./41_set_should_appear_in_sitemap";
import "./42_payment_methods";
import "./43_stripe_marketplace_pkg"; |
<<<<<<<
// afterCartUpdateCalculateDiscount 4 times.
assert.equal(updateSpy.callCount, 4, "update should be called four times");
const updatedCart = Collections.Cart.findOne({ _id: cart._id });
=======
// afterCartUpdateCalculateDiscount 2 times.
assert.equal(updateSpy.callCount, 2, "upd... |
<<<<<<<
/**
* Functions and objects related to file upload, download, and storage
* @namespace Files
*/
// lazy loading sharp package
let sharp;
async function lazyLoadSharp() {
if (sharp) return;
sharp = await import("sharp");
}
FileRecord.downloadEndpointPrefix = "/assets/files";
FileRecord.absoluteUrlPrefix... |
<<<<<<<
"shipping/getShippingRates": function (cart) {
CartSchema.validate(cart);
=======
"shipping/getShippingRates"(cart) {
check(cart, CartSchema);
>>>>>>>
"shipping/getShippingRates"(cart) {
CartSchema.validate(cart); |
<<<<<<<
splitOrderItem,
updateOrder
=======
updateOrder,
updateOrderFulfillmentGroup
>>>>>>>
splitOrderItem,
updateOrder,
updateOrderFulfillmentGroup |
<<<<<<<
const order = Orders.findOne({ cartId: cartId });
taxCalc.recordOrder(order, (result) => {
=======
const order = Orders.findOne({ cartId });
taxCalc.recordOrder(order, function (result) {
>>>>>>>
const order = Orders.findOne({ cartId });
taxCalc.recordOrder(order, (result) => { |
<<<<<<<
"shipping/rates/update": function (method) {
ShippingMethod.validate(method);
=======
"shipping/rates/update"(method) {
check(method, ShippingMethod);
>>>>>>>
"shipping/rates/update"(method) {
ShippingMethod.validate(method); |
<<<<<<<
autoValue: function () {
if (this.isInsert || (this.isUpdate && !this.isSet)) {
return new Date;
=======
autoValue() {
if (this.isInsert || this.isUpdate && !this.isSet) {
return new Date();
>>>>>>>
autoValue() {
if (this.isInsert || (this.isUpdate && !this.isSet... |
<<<<<<<
return ReactionCore.Collections.Packages.update(self.packageId, {
$set: {
enabled: true
}
}, function (error, result) {
if (result === 1) {
Alerts.toast(
i18next.t("gridPackage.pkgEnabled", { app: i18next.t(self.i18nKeyLabel) }),
"error", {
... |
<<<<<<<
import { Job } from "/imports/plugins/core/job-collection/lib";
import { GeoCoder, Logger } from "/server/api";
=======
import { Job } from "meteor/vsivsi:job-collection";
import { GeoCoder, Hooks, Logger } from "/server/api";
>>>>>>>
import { Job } from "/imports/plugins/core/job-collection/lib";
import { G... |
<<<<<<<
import fulfillment from "./fulfillment";
import payment from "./payment";
=======
import fulfillmentService from "/imports/node-app/services/fulfillment";
>>>>>>>
import fulfillmentService from "/imports/node-app/services/fulfillment";
import payment from "./payment";
<<<<<<<
export default merge({}, accoun... |
<<<<<<<
import { getDefaultUserInviteGroup, getUserByEmail } from "../helpers/accountsHelper";
=======
import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
import CardHeader from "@material-ui/core/CardHeader";
import { getDefaultUserInviteGroup } from "../helpers/accoun... |
<<<<<<<
// import fixture data
api.addFiles("server/fixtures.js", "server");
=======
// schemas
api.addFiles("common/schemas/address.js");
api.addFiles("common/schemas/layouts.js");
api.addFiles("common/schemas/packages.js");
api.addFiles("common/schemas/shops.js");
api.addFiles("common/schemas/payme... |
<<<<<<<
if (authUserId === userId) {
const isGlobalOwner = await context.userHasPermission("reaction:shops", "owner", { shopId, legacyRoles: ["owner"] }); // TODO(pod-auth): update this permissions check
if (isGlobalOwner) groupSlug = "owner";
}
// If we didn't already upgrade them to the "owner" group, ... |
<<<<<<<
},
mutations,
graphQL: {
resolvers,
schemas
=======
},
backgroundJobs: {
cleanup: [
{ type: "saveImage/local", purgeAfterDays: 7 },
{ type: "saveImage/remote", purgeAfterDays: 7 }
]
>>>>>>>
},
mutations,
graphQL: {
resolvers,
... |
<<<<<<<
collections: { Accounts, AccountInvites, Groups },
=======
checkPermissions,
collections: { Accounts, Groups },
>>>>>>>
checkPermissions,
collections: { Accounts, AccountInvites, Groups }, |
<<<<<<<
"paypalexpress/payment/capture": function (paymentMethod) {
// Call both check and validate because by calling `clean`, the audit pkg
// thinks that we haven't checked paymentMethod arg
check(paymentMethod, Object);
PaymentMethodArgument.validate(PaymentMethodArgument.clean(paymentMethod));
=... |
<<<<<<<
import { getCurrentTag, getShopName } from "/lib/api";
import { Products } from "/lib/collections";
=======
import { Products, Revisions, Tags } from "/lib/collections";
>>>>>>>
import { Products, Tags } from "/lib/collections";
<<<<<<<
=======
* @name applyProductRevision
* @method
* @memberof Reactio... |
<<<<<<<
import { Orders, Products } from "/lib/collections";
import rawCollections from "/imports/collections/rawCollections";
import appEvents from "/imports/node-app/core/util/appEvents";
=======
import appEvents from "/imports/node-app/core/util/appEvents";
import { Orders } from "/lib/collections";
>>>>>>>
impor... |
<<<<<<<
const queryParams = ReactionRouter.current().queryParams;
filter.label = i18n.t(`order.filter.${filter.name}`);
=======
const queryParams = Router.current().params.query;
filter.label = i18n.t(`order.filter.${filter.name}`, {defaultValue: filter.label});
>>>>>>>
filter.label = i18n.t(`or... |
<<<<<<<
/**
* loadI18n fixtures
* @summary imports translation fixture data
* @param {Object} translationCollection - optional collection object
* @returns {null} inserts collection
*/
loadI18n(translationCollection) {
let collection = translationCollection || ReactionCore.Collections.Translatio... |
<<<<<<<
import removeAccountAddressBookEntry from "./removeAccountAddressBookEntry";
=======
import setAccountProfileCurrency from "./setAccountProfileCurrency";
>>>>>>>
import removeAccountAddressBookEntry from "./removeAccountAddressBookEntry";
import setAccountProfileCurrency from "./setAccountProfileCurrency";
... |
<<<<<<<
const settings = Reaction.getMarketplaceSettings();
const enabled = settings.enabled;
const shopsOfUser = Reaction.getShopsForUser(["admin"], this.userId);
=======
const { enabled } = Reaction.getMarketplaceSettings();
>>>>>>>
const shopsOfUser = Reaction.getShopsForUser(["admin"], this.userId);
... |
<<<<<<<
=======
* @property {String} publishedProductHash optional
* @property {Boolean} shouldAppearInSitemap optional, whether this product should appear in auto-generated sitemap.xml
>>>>>>>
<<<<<<<
=======
},
"currentProductHash": {
type: String,
optional: true
},
"publishedProductHash": {
... |
<<<<<<<
// import generateVerificationTokenObject from "/imports/plugins/core/accounts/server/no-meteor/util/generateVerificationTokenObject";
import getGraphQLContextInMeteorMethod from "/imports/plugins/core/graphql/server/getGraphQLContextInMeteorMethod";
import sendVerificationEmail from "./util/sendVerificationEma... |
<<<<<<<
import _ from "lodash";
import { check, Match } from "meteor/check";
=======
import { check } from "meteor/check";
import accounting from "accounting-js";
import Hooks from "@reactioncommerce/hooks";
>>>>>>>
import { check } from "meteor/check";
<<<<<<<
import { Orders, Packages } from "/lib/collections";
i... |
<<<<<<<
import { registerSchema } from "@reactioncommerce/reaction-collections";
import { convertWeight, convertLength, getSlug } from "/lib/api";
=======
import { registerSchema } from "@reactioncommerce/schemas";
import { getSlug } from "/lib/api";
>>>>>>>
import { registerSchema } from "@reactioncommerce/schemas"... |
<<<<<<<
getSellerShopId: function (userId = Meteor.userId()) {
if (userId) {
const group = Roles.getGroupsForUser(userId, "admin")[0];
if (group) {
return group;
}
}
return this.getShopId();
},
=======
getUserPreferences(packageName, preference, defaultValue) {
const ... |
<<<<<<<
import SimpleSchema from "simpl-schema";
import { check } from "meteor/check";
import { Tracker } from "meteor/tracker";
import { createdAtAutoValue, shopIdAutoValueForCart, updatedAtAutoValue } from "./helpers";
=======
import { SimpleSchema } from "meteor/aldeed:simple-schema";
import { registerSchema } fro... |
<<<<<<<
const { afterValidate, billingAddress, createPaymentForFulfillmentGroup, order: orderInput } = cleanedInput;
const { cartId, cartToken, currencyCode, email, fulfillmentGroups, shopId } = orderInput;
=======
const { afterValidate, createPaymentForFulfillmentGroup, order: orderInput } = cleanedInput;
co... |
<<<<<<<
export function xformVariant(variant, variantPriceInfo, shopCurrencyCode, variantMedia) {
=======
export function xformVariant(variant, variantMedia, variantInventory) {
>>>>>>>
export function xformVariant(variant, variantMedia) {
<<<<<<<
export async function xformProduct({ context, product, shop, variant... |
<<<<<<<
// seller shop homepage
} else if (routeName === "shop") {
const currentShop = SellerShops.findOne(params.shopId);
if(currentShop) {
title = titleCase(currentShop.name);
}
else {
title = titleCase(routeName);
}
... |
<<<<<<<
import { Media } from "/lib/collections";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { filterShippingStatus, filterWorkflowStatus } from "../helpers";
=======
import { filterShippingStatus, filterWorkflowStatus } from "../helpers";
import OrderDashboard from "../componen... |
<<<<<<<
import "./43_stripe_marketplace_pkg";
import "./44_tax_rates_pkg";
import "./45_tax_schema_changes";
import "./46_cart_item_props";
import "./47_order_ref";
import "./48_catalog_variant_inventory";
=======
import "./43_stripe_marketplace_pkg";
import "./43-1_remove_social_app_secret";
>>>>>>>
import "./43_st... |
<<<<<<<
"authnet/payment/capture": function (paymentMethod) {
// Call both check and validate because by calling `clean`, the audit pkg
// thinks that we haven't checked paymentMethod arg
check(paymentMethod, Object);
PaymentMethodArgument.validate(paymentMethod);
=======
"authnet/payment/capture... |
<<<<<<<
if (typeof options.error === "undefined") {
=======
// Default return value is the return value of previous call in method chain
// or an empty object if there's no result yet.
let result = options.result || {};
if (options.error === undefined) {
>>>>>>>
// Default return value is the return valu... |
<<<<<<<
Hooks.Events.run("afterUpdateCatalogProduct", item.variant);
=======
// Publish inventory updates to the Catalog
publishProductInventoryAdjustments(item.productId);
>>>>>>>
Hooks.Events.run("afterUpdateCatalogProduct", item.variant);
// Publish inventory updates to the Catalog
publ... |
<<<<<<<
import SimpleSchema from "simpl-schema";
import { check } from "meteor/check";
import { Tracker } from "meteor/tracker";
import { createdAtAutoValue, shopIdAutoValue } from "./helpers";
=======
import { SimpleSchema } from "meteor/aldeed:simple-schema";
import { registerSchema } from "@reactioncommerce/reacti... |
<<<<<<<
topic: topic,
integrations: integrationsByTopic[topic],
webhooksDomain
=======
topic,
integrations: integrationsByTopic[topic]
>>>>>>>
topic,
integrations: integrationsByTopic[topic],
webhooksDomain |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.