text
stringlengths
2
1.04M
'use strict'; const nconf = require('nconf'); const dotenv = require('dotenv'); const path = require('path'); dotenv.config(); const env = process.env.NODE_ENV || 'local'; nconf.argv() .env() .file({ file: path.join(__dirname, `${env}.json`) }); //injects environment variables into the json file nconf.overrides(...
/*! * Copyright 2017 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
var classarm__compute_1_1_memory = [ [ "Memory", "classarm__compute_1_1_memory.xhtml#a3820126b0751b4da40f870ee7a3e188c", null ], [ "Memory", "classarm__compute_1_1_memory.xhtml#a5ea83035040247a67c526e22fd6261a1", null ], [ "Memory", "classarm__compute_1_1_memory.xhtml#a57bdfe5deffc114364aa2b3f7d66b435", nul...
export default { app: { appIntroduce: "一个用Vue构建的Github可视化大数据平台。通过它,您可以更加直观看到您在Github里的一些数据情况", inputPlaceholder: "输入您的github账号,然后点击生成...", namelg: "请输入您的账号,再点生成!", account: "账号", notFound: " 未找到!", clickP: " 点击「生成」按钮将视为您同意", clickB: "GitDataV服务条款", subscribe: "生成", pmodal: { ...
import ilib from '@enact/i18n'; import {mount} from 'enzyme'; import DayPicker, {getSelectedDayString} from '../DayPicker'; describe('DayPicker', () => { test('should not select any item when there is no passed prop `selected`', () => { const subject = mount( <DayPicker /> ); const selected = subject.find...
/*! check-more-types - v2.23.0 homepage: https://github.com/kensho/check-more-types Copyright @ 2014 Kensho license: MIT */ !function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.check=b():a.check=b()}(th...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
import { toPairs } from 'lodash'; const W3C_ELEMENT_KEY = 'element-6066-11e4-a52e-4f735466cecf' const JWP_ELEMENT_KEY = 'ELEMENT'; export default class UIElement { constructor (elementKey, findRes, parent) { this.elementKey = elementKey; this.elementId = this[elementKey] = findRes[elementKey]; this.__is...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
var smartgrid = require('smart-grid'); /* It's principal settings in smart grid project */ var settings = { outputStyle: 'sass', /* less || scss || sass || styl */ columns: 12, /* number of grid columns */ offset: '30px', /* gutter width px || % || rem */ mobileFirst: false, /* mobileFirst ? 'min-width' : ...
var Choice = React.createClass({ getInitialState: function() { return { className: '' }; }, onClick: function(ev) { if (this.props.correct) { this.setState({className: 'correct'}); } else { this.setState({className: 'wrong'}); } this.props.onAnswer(this.props.answer); ...
import React, { Component } from 'react'; import { FormGroup, FormControl, ListGroup, InputGroup, ListGroupItem, Label, Checkbox } from 'react-bootstrap'; import { Loading } from './common'; class RootProductSearchTypeahead extends Component { render() { const { rootProducts, loading, searchTerm, includeP...
/* Datetator jQuery Plugin Datetator is a jQuery-based replacement for input boxes, making them date pickers. version 1.1, Dec 11th, 2015 by Ingi á Steinamørk The MIT License (MIT) Copyright (c) 2014 Qodio Permission is hereby granted, free of charge, to any person obtaining a copy of this software and assoc...
// const jsdom = require('jsdom') // const fetch = require('node-fetch') const signale = require('signale') const { getPage } = require('./networking') const scrapeDOM = require('./domreader') const prettyjson = require('prettyjson') const hash = require('keccak') const fs = require('fs-extra') const processUrl = ({ u...
/* globals GBX, GBXinpIgnoreAirSurfaceType, GSA, FASDdet, FASDsumAdjacentSpaceDuplicate, FASDselSurface, FASDdivAdjacentSpaceDuplicateData, FASDdivSpaceDuplicate */ /* jshint esversion: 6 */ /* jshint loopfunc: true */ const FASD = { "copyright": "Copyright 2019 Ladybug Tools authors. MIT License", "date": "2019-...
export default { 'GET /api/operations/list': { "code": "0", "data": { "pageNum": "1", "pageSize": "10", "size": "1", "orderBy": "", "startRow": "1", "endRow": "1", "total": "1", "pages": "1", "list": [{ "id": "1", "name": "张三", //运维人员名称 ...
const customExpress = require('./config/customExpress.js') const conexao = require('./infraestrutura/conexao.js') const tabelas = require('./infraestrutura/tabelas.js') conexao.connect(erro => { if(erro){ console.log(erro) } else{ const app = customExpress() tabelas.init(conexao) ...
import React from 'react'; import { Fragment, useState } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { Button, Modal } from '@wordpress/components'; import { helperMessages } from './data'; export const HelpModal = (props) => { const { buttonLabel = __('How to use wrapper?', 'eightshift-...
'use strict'; // use model var mongoose = require('mongoose'); var Schema = mongoose.Schema; var SaleSchema = new Schema({ no: { type: String, required: true, unique: true }, createdAt:Date, status:String, customerName:String, customerPhone:String, customerEmail...
(function() { 'use strict'; angular .module('dataPoolGeneratorApp') .filter('capitalize', capitalize); function capitalize() { return capitalizeFilter; function capitalizeFilter (input) { if (input !== null) { input = input.toLowerCase(); ...
import buildDom from '/js/helpers/build-dom.js'; export default class Component { constructor() { this._element = null; } get element() { return this._element; } prepare() { this._element = buildDom(this._render()); this._element.__component = this; } stat...
//# sourceMappingURL=uiv.min.js.map
(function () { 'use strict'; angular .module('app') .factory('PilotsService', PilotsService); PilotsService.$inject = ['$http', '$rootScope', 'UserService']; function PilotsService($http, $rootScope, UserService) { var username = $rootScope.globals.currentUser.username; ...
function setDate(hours) { var today = new Date(); var day = today.getDate(); var month = today.getMonth(); month += 1; var year = today.getFullYear(); switch(month) { case 1 : month = "January"; break; case 2 : month = "February"; break; case 3 : month = "March"; break; case 4 : month = "April"; break...
import commonjs from '@rollup/plugin-commonjs'; import json from '@rollup/plugin-json'; import resolve from '@rollup/plugin-node-resolve'; import babel from 'rollup-plugin-babel'; import replace from 'rollup-plugin-replace'; import svelte from 'rollup-plugin-svelte'; import { terser } from 'rollup-plugin-terser'; impor...
import {DataTextureLoader} from 'three/src/loaders/DataTextureLoader'; import {DataUtils} from 'three/src/extras/DataUtils'; import {FloatType} from 'three/src/constants'; import {HalfFloatType} from 'three/src/constants'; import {LinearEncoding} from 'three/src/constants'; import {LinearFilter} from 'three/src/constan...
var searchData= [ ['booleancomboboxdelegate_0',['BooleanComboBoxDelegate',['../class_boolean_combo_box_delegate.html',1,'BooleanComboBoxDelegate'],['../class_boolean_combo_box_delegate.html#a0f09c839f7709b4481b9838c51bd32dd',1,'BooleanComboBoxDelegate::BooleanComboBoxDelegate()']]], ['booleancomboboxdelegate_2ecpp_...
'use strict'; var D2R = Math.PI / 180; var R2D = 180 / Math.PI; var Coord = function(lon,lat) { this.lon = lon; this.lat = lat; this.x = D2R * lon; this.y = D2R * lat; }; Coord.prototype.view = function() { return String(this.lon).slice(0, 4) + ',' + String(this.lat).slice(0, 4); }; Coord.protot...
// DADOS PRIMITIVOS (IMUTÁVEL): // STRING, NUMBER, BOOLEAN, UNDEFINED, NULL (BIGINT, SYMBOL) // VALOR FOI TROCADO E NÃO MODIFICADO let nome = 'Luiz'; nome = 'Otávio'; console.log(nome); // VALOR IMULTÁVEL nome = 'Luiz'; nome[0] = 'R'; console.log(nome[0], nome); // VALORES PRIMITIVOS SÃO COPIADOS let a = 'A'; let b...
import makeStyles from "@material-ui/styles/makeStyles"; import tinycolor from "tinycolor2"; export default makeStyles(theme => ({ layoutContainer: { height: 200, display: "flex", flexDirection: "column", justifyContent: "space-between", alignItems: "center", marginTop: theme.spacing(2), ...
// /**#=+ // * { // * 'D': 'Date.prototype', // * '$N': 'Number' // * } // */ // var D = Date.prototype, // $N = Number; // // D.locale = function(){ // }; // // /** // @return {string} The cardinal number string. // */ // $N.nth = function(n){ // }; // // LOAD.file = function(){ // } // // /**#=-*/
var express = require('express'); var router = express.Router(); var postCtrl = require('../controllers/post'); var commentCtrl = require('../controllers/comment'); var auth = require('../middlewares/authentication'); router.param('postId',postCtrl.getById); router.post('/:postId/comment',auth.bearer(),commentCtrl.po...
import Link from "next/link"; import kebabCase from "@/lib/utils/kebabCase"; const Tag = ({ text }) => { return ( <Link href={`/tags/${kebabCase(text)}`}> <a className="mr-3 text-sm font-semibold uppercase text-[#ec0000] hover:text-primary-600 dark:hover:text-primary-400"> {text...
import { TOGGLE_TODO } from '../actions/types'; export default function(state = [], action) { switch (action.type) { case TOGGLE_TODO: return action.payload; default: return state; } }
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPost, deletePost } from '../actions/index'; import { Link } from 'react-router-dom'; class PostsShow extends Component{ componentDidMount(){ const { id } = this.props.match.params; this.props.fetchPost(id); } ...
/** * Event v1.1.3.20200321 */ class Event { constructor() { this.cache = {}; this.unread = {}; } on(key, fn, isFirst = false) { if (!this.cache[key]) { this.cache[key] = []; } if (typeof fn === 'function') { this.cache[key][isFirst ? 'unshift' : 'push'](fn); const unReads = this.unread[key]; ...
import React from 'react'; const UserProfile = () => ( <div id="PROFILE"> <h1>Welcome to the User Profile page!</h1> </div> ); export default UserProfile;
"use strict"; var statusBar = (function() { var pauseBtn = null; var field = []; var numBodies = null; var curPos = null; var posVector = new THREE.Vector3(0, 60, 300); function init() { var container = document.createElement('div'); container.id = 'status'; container....
const { shell, query, getPackageJson, writePackageJson } = require('./utils'); const { logInfo } = require('./log'); async function getLastPublishedVersion(name) { const result = await shell(`npm view ${name} version`, { stdout: false }); return result.stdout.trim(); } function bumpPackageVersion(packageJson) { ...
'use strict'; const convert = require('../'); const should = require('should'); it('if-then-else', async () => { const schema = { $schema: 'http://json-schema.org/draft-04/schema#', if: { type: 'object' }, then: { properties: { id: { type: 'string' } } }, else: { format: 'uuid' } ...
const nxPreset = require('@nrwl/jest/preset'); module.exports = { ...nxPreset, displayName: 'nx-dev-feature-doc-viewer', transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], coverageDirectory: '../../coverage/nx-dev/feature-doc-viewer', };
const User = require("../models/User"); const asyncHandler = require("../middlewares/asyncHandler"); exports.signup = asyncHandler(async (req, res, next) => { const { username, password } = req.body; const user = await User.create({ username, password }); const token = user.getJwtToken(); res.status(201).jso...
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html module.exports = { // All imported modules in your tests should be mocked automatically // automock: false, // Stop running tests after `n` failures bail: 1, // Respect "browser" fiel...
module.exports = { transform: { '^.+\\.tsx?$': 'ts-jest' }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], setupTestFrameworkScriptFile: './jest.setup.js' }
// @flow import { MiddlewareRegistry } from '../base/redux'; import { OPEN_RELEASE_NOTES_DIALOG } from './actionTypes'; declare var APP: Object; /** * Implements the middleware of the feature keyboard-shortcuts. * * @param {Store} store - The redux store. * @returns {Function} */ // eslint-disable-next-line no...
describe('Array', function(){ describe('#indexOf()', function(){ it('should return -1 when the value is not present', function(){ [1,2,3].indexOf(5).should.equal(-1); [1,2,3].indexOf(0).should.equal(-1); }) it('should return the correct index when the value is present', function(){ ...
(function () { $(document).ready(main); function main() { // Vertical text $.each($(".vertical-text"), function (i) { //$(this).html($(this).text().replace(/(.)/g, "$1<br />")); if (i % 3 === 0) { $(this).parent().parent().children() ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = undefined; var _asyncToGenerator2; function _load_asyncToGenerator() { return _asyncToGenerator2 = _interopRequireDefault(require('babel-runtime/helpers/asyncToGenerator')); } let run = exports.run = (() => { var _ref =...
const initStateMain = { loading: false, data: "", error: null, }; export default initStateMain;
/*!jQuery Knob*/ /** * Downward compatible, touchable dial * * Version: 1.2.0 (15/07/2012) * Requires: jQuery v1.7+ * * Copyright (c) 2012 Anthony Terrien * Under MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to vor, eskimoblood...
const orders = require("./orders"); const targets = require("./targets"); const malfunctions = require("./malfunctions"); const actions = require("./actions"); const orderStats = require("./orderStats"); module.exports = { orders, actions, targets, malfunctions, orderStats, };
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow * @emails oncall+relay */ 'use strict'; const RelayFeatureFlags = require('../../util/RelayFeatureFlags'); c...
import test from 'ava'; import { normalizedValue } from '../../lib/strategy/util'; test('normalized values are the same across node, java, and go clients', t => { t.is(normalizedValue('123', 'gr1'), 73); t.is(normalizedValue('999', 'groupX'), 25); });
import React, { Component } from 'react'; import CSSModules from 'react-css-modules'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { startDeleteStory } from '../actions/stories'; import styles from '../styles/modules/myStoryList.module.css'; class MyStoryList extends Compone...
import React from 'react'; import styles from './footer.module.css'; const Footer = () => { return ( <footer className={styles.footer}>© Mackenzie Berliner-Glasser {new Date().getFullYear()}</footer> ); }; export default Footer;
/** * ------------------------------------------ * 菜单控件实现文件 * @version 1.0 * @author yuqijun(yuqijun@corp.netease.com) * ------------------------------------------ */ var f = function() { // variable declaration var _ = NEJ.P, _o = NEJ.O, _r = NEJ.R, _e = _('nej.e'), ...
const mergeColspan = function ({ tableSelector, mergeInput = 0, columns = [], fn = false, }) { this.tableBody = document.querySelector(tableSelec...
import ImageCommand from "../../classes/imageCommand.js"; class UncaptionCommand extends ImageCommand { constructor(client, cluster, worker, ipc, options) { super(client, cluster, worker, ipc, options); this.flags.push({ name: "tolerance", type: 10, description: "Set the shade tolerance for...
import list from 'modules/iam/list/iamListReducers'; import form from 'modules/iam/form/iamFormReducers'; import view from 'modules/iam/view/iamViewReducers'; import importerReducer from 'modules/iam/importer/iamImporterReducers'; import { combineReducers } from 'redux'; export default combineReducers({ list, form...
/*! ========================================================= * Argon Dashboard React - v1.2.1 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-react * Copyright 2021 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https:/...
const mongoose = require('../infrastructure/Mongoose') const { Schema } = mongoose const DocSnapshotSchema = new Schema( { project_id: Schema.Types.ObjectId, doc_id: Schema.Types.ObjectId, version: Number, lines: [String], pathname: String, ranges: Schema.Types.Mixed, ts: Date }, { c...
const { isURL } = require('validator'); const { cleanEnv, makeValidator, port, bool, str, url, json, } = require('envalid'); const redisdsn = makeValidator((v) => { const opts = { protocols: ['redis'], require_tld: false, require_protocol: true }; if (isURL(v, opts)) return v; throw new Error('Exp...
// COPYRIGHT © 2020 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
const path = require('path') window.Bootstrap = require('bootstrap') //Get remote module const remote = require('electron').remote //Require main process const main = remote.require(path.resolve(__dirname, '../..', 'main.js')) //Non elevated const cmd = require('node-cmd') //Elevated const sudo = require('sudo-prompt')...
'use strict'; angular.module('schedule', []) .controller('ScheduleController', ['Day', 'Room', function(Day, Room) { var vm = this; vm.title = 'Schedule'; vm.days = []; vm.rooms = []; vm.timeslots = []; vm.init = function() { Day.query(function(days) { ...
import { ethers } from 'ethers' import UnlockService from './unlockService' import { GAS_AMOUNTS } from './constants' import utils from './utils' import { generateKeyMetadataPayload } from './typedData/keyMetadata' import { generateKeyHolderMetadataPayload } from './typedData/keyHolderMetadata' import 'cross-fetch/poly...
var searchData= [ ['jq6500_5fserial',['JQ6500_Serial',['../class_j_q6500___serial.html#a9e998be9967b448b672ef90b9b689d76',1,'JQ6500_Serial']]] ];
var gulp = require('gulp'); var del = require('del') var deploy = require("gulp-gh-pages"); var less = require("gulp-less"); var amdOptimize = require('amd-optimize'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var argv = require('yargs').argv; var gulpIf = require('gulp-if'); var minifyC...
const path = require('path'); const fs = require('fs-extra'); const { provider } = require('jimple'); /** * This service allows the validation of a {@link BrowserTarget} `html.template` file and it also * takes care of generating a _"default template"_ if the one on the target settings doesn't exist. */ class Target...
let BLOCK = [ [ [1, 1, 1, 1], [0, 0, 0, 0] // I型 ], [ [0, 1, 1, 0], [0, 1, 1, 0] // O型 ], [ [0, 1, 1, 0], [1, 1, 0, 0] // S型 ], [ [1, 1, 0, 0], [0, 1, 1, 0] // Z型 ], [ [1, 0, 0, 0], [1, 1, 1, ...
import styled, { css } from 'styled-components'; import { Link } from 'react-router-dom'; import { color, font, mixin } from 'shared/utils/styles'; export const IssueLink = styled(Link)` display: block; margin-bottom: 5px; `; export const Issue = styled.div` display: flex; justify-content: space-between; p...
var patch = require('virtual-dom/patch') var toJSON = require('vdom-as-json/toJson') var fromJSON = require('vdom-as-json/fromJson') var vdomparser = require('vdom-parser') document.body.addEventListener('click', function (evt) { if ( 'A' === evt.target.tagName && evt.target.host === window.location.host ) { evt...
import React from 'react'; export default class Support extends React.Component { static propTypes = { actions: React.PropTypes.object.isRequired } render () { const { actions: {logout} } = this.props; return ( <div className = 'row' style = {{ margin: '60p...
/* eslint-disable */ module.exports = { root: true, parser: '@typescript-eslint/parser', plugins: [ '@typescript-eslint', ], extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', ], rules: { // temporary "@typescript-eslint/no-explicit-any": "off" } };
'use strict' var helper = require('../../helper'); var DeliveryOrderManager = require('../../../src/managers/purchasing/delivery-order-manager'); var codeGenerator = require('../../../src/utils/code-generator'); var supplier = require('../master/supplier-data-util'); var poExternal = require('../purchasing/purchase-ord...
'use strict'; // --------------------------------------------------------------------------- const gdax = require ('./gdax.js'); // --------------------------------------------------------------------------- module.exports = class coinbasepro extends gdax { describe () { return this.deepExtend (super.de...
// import all models const Post = require('./Post'); const User = require('./User'); const Vote = require('./Vote'); const Comment = require('./Comment'); // create associations allowing functionality between both User.hasMany(Post, { foreignKey: 'user_id' }); Post.belongsTo(User, { foreignKey: 'user_id', onDe...
//# sourceMappingURL=yasgui.bundled.min.js.map
import { WantListEntry as Entry } from './entry.js' import { base58btc } from 'multiformats/bases/base58' import { Message } from '../message/message.js' import { trackedMap } from '@libp2p/tracked-map' const WantType = { Block: Message.Wantlist.WantType.Block, Have: Message.Wantlist.WantType.Have } /** * @templ...
/** * State-based routing for AngularJS 1.x * This bundle requires the ui-router-core.js bundle from the @uirouter/core package. * @version v1.0.24 * @link https://ui-router.github.io * @license MIT License, http://www.opensource.org/licenses/MIT */ (function (global, factory) { typeof exports === 'object' &&...
'use strict'; /** * Shake invalid form */ angular.module('regidiumApp') .directive('shakeForm', ['$animate', function($animate) { return { require: '^form', scope: { submit: '&', submitted: '=' }, link: function(scope, elemen...
import { StyleSheet } from "react-native"; export const globalOptions = { name: "quiet_darkness_31569", url: "https://quiet_darkness_31569.botics.co", api: "https://quiet_darkness_31569.botics.co/api/v1" } export const modulesOptions = { "@modules/app-menu": { "copy": "Routes available!" } }
import { isSameMonth } from '../../chronos/utils/date-getters'; import { isMonthDisabled, isYearDisabled } from '../utils/bs-calendar-utils'; import { shiftDate } from '../../chronos/utils/date-setters'; export function flagMonthsCalendar(monthCalendar, options) { monthCalendar.months.forEach(function (months, rowI...
// IMPORTS // // External import React from "react"; import { Link } from "react-router-dom"; // UTILS // // COMPONENT // const Nav = () => ( <nav> <Link to="/">Home</Link>{' '} <Link to="/test">Test</Link>{' '} <Link to="/asdf">Not Found</Link>{' '} <Link to="/redirect">Redirect</Link>{' '} </nav...
module.exports = { contextSeparator: '_', // Key separator used in your translation keys createOldCatalogs: false, // Save the \_old files defaultNamespace: 'translation', // Default namespace used in your i18next config // defaultValue: '', // Default value to give to empty keys indentation: 2, ...
import { replace, noop } from './utils' /** * Inline-Level Grammar */ /* eslint-disable no-useless-escape */ const inline = { escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, autolink: /^<([^ >]+(@|:\/)[^ >]+)>/, url: noop, tag: /^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/, link: /^!?\[(inside)\]\(href\)/...
goog.provide('lime.ASSETS.meadowSpritesheet.json'); goog.require('soy'); lime.ASSETS.meadowSpritesheet.json.data = function(opt_data) { }
var rrs = require('./lib/aws-route53-rrs'); exports.handler = function(event, context) { var hostedZoneId = event.zoneId; var recordName = event.recordName; var value = event.value; rrs.setA(hostedZoneId, recordName, value, function(err, data) { if (err) { return context.done(err);...
'use strict'; const express = require('express'); const bodyParser = require('body-parser'); const config = require('./config'); const logger = require('./middleware/logger'); const app = express(); // execute middleware app.use(logger); app.use(bodyParser.raw({ type: 'text/plain' })); //Body-parser is the Node.js b...
import graphcmsMutationClient, { gql } from '@/lib/graphcms-mutation-client' import stripe from '@/lib/stripe-client' export const createOrderMutation = gql` mutation CreateOrderMutation($order: OrderCreateInput!) { order: createOrder(data: $order) { id } } ` async function createOrder({ sessionId }...
import React from "react"; import "./style.css"; import RecommendBtn from "../RecommendBtn"; import RemoveWatchListBtn from "../RemoveWatchListBtn"; import RemoveRecBtn from "../RemoveRecBtn"; function WatchListItem(props) { return ( <div> {/* Movie List Item */} <div className="col-...
/** * @fileoverview added by tsickle * Generated from: packages/core/src/render3/instructions/styling.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of ...
const { join } = require('path'); const webpack = require('webpack'); module.exports = { context: process.cwd(), entry: { commons: [ 'react', 'react-dom', 'react-router', 'i18next', 'i18next-xhr-backend', 'decko', 'moment', 'mobx', 'antd', ], }, dev...
'use strict'; const Composer = require('./index'); Composer((err, server) => { if (err) { throw err; } server.start((err) => { if ( err ) { console.log('error', err); return; } console.log('Started the plot device on port ' + server.info.port); ...
define(['../function/makeIterator_'], function (makeIterator) { /** * Array every */ function every(arr, callback, thisObj) { callback = makeIterator(callback, thisObj); var result = true, i = -1, n = arr.length; while (++i < n) { // we iter...
const assert = require('assert'); var Test = require('../config/testConfig.js'); const BN = require('bn.js'); contract('Oracles', async (accounts) => { const TEST_ORACLES_COUNT = 20; const IDX_FIRST_ORACLE = 10; // Watch contract events const STATUS_CODE_UNKNOWN = 0; const STATUS_CODE_ON_TIME = 10; const ...
import { Router } from 'express' import csrf from 'csurf' import passport from 'passport' import userControl from './user.controller' const router = Router() const csrfProtection = csrf({ cookie: true }) const successRedirect = '/dashboard' const failureRedirect = '/user' const isAuthenticated = (req, res, next) => ...
// 1. GET to https://www.linkedin.com/voyager/api/messaging/conversations?keyVersion=LEGACY_INBOX&count=20 // look at last element, get the date, then make another get call to https://www.linkedin.com/voyager/api/messaging/conversations?keyVersion=LEGACY_INBOX&createdBefore=[insert date] // 2. data -> elements -> for ...
const MP = require('../') const t = require('tap') t.test('empty end emits end without reading', t => new MP().end().promise())
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...