text
stringlengths
2
1.04M
// 配置API接口地址 var root = '/' // 引用axios var axios = require('axios') // 自定义判断元素类型JS function toType (obj) { return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase() } // 参数过滤函数 function filterNull (o) { for (var key in o) { if (o[key] === null) { delete o[key] } if (toType(o[key]) ===...
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import assert from './assert'; const defaults = { verbose: false, failFast: false, log: console.log.bind(console), // eslint-disable-line no-console error: console.error.bind(console), // eslint-disable-line no-console }; const tester = opts => { const options = Object.assign({}, defaults, opts); const {...
// JavaScript Document $(document).ready(function(){ /*banner*/ $(".banspan span").eq(0).addClass("current"); $(".img a").eq(0).show().siblings("a").hide(); $(".banspan span").mouseover(function(){ numa=$(this).index(); $(this).addClass("current").siblings("span").removeClass("current"); $(".img a").eq(numa)...
const assert = require('assert'); const http = require('http'); const server = require('../lib/prometheus-server'); const PrometheusConfig = require('../lib/configuration/prometheusconfig').PrometheusConfig; describe('prometheus-server', () => { before(done => { let inst = server.init(new PrometheusConfig(...
// TODO: move all the scoring here. in fact score_block should not be a // parameter to this function. the score function should basically be the one // public method of a model instance. const token_weights = { account: -10, ad: -50, ads: -50, advert: -50, advertisement: -50, article: 30, author: -10, ...
import React from "react"; const NavBar = () => { return ( <> <nav> <a href="/homepage">Home</a> <a href="/">About</a> <a href="/">Settings</a> <a href="/login">Sign In</a> </nav> </> ); }; export default NavBar;
const PostImage = ({ coverImage }) => { return ( <div> <div className="post__image--container"> <img className="post__image--show" src={coverImage} /> </div> </div> ); }; export default PostImage;
'use strict'; const chai = require('chai'); const sinon = require('sinon'); const BbPromise = require('bluebird'); const yaml = require('js-yaml'); const path = require('path'); const childProcess = BbPromise.promisifyAll(require('child_process')); const fse = require('fs-extra'); const PluginUninstall = require('../....
/** * @license * Copyright 2015 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 requir...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import { BrowserRouter, Route } from "react-router-dom"; ReactDOM.render( <React.StrictMode> <BrowserRouter > <Route component={App}/> </BrowserR...
/** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
'use strict'; /** * Returns an object attributes for the KeyStat model * @param {Object} attributes user defined attributes for the ApiKey model * @return {Object} the user defined attributes combined with the template */ exports.attributes = function(attributes){ var _ = require('lodash'); var template = { ...
import description from './form_textarea.md'; import examples from './examples'; export default { description, examples, bootstrapComponent: 'b-form-textarea', events: [ { event: 'input', args: [ { arg: 'value', description: '(String)', }, ], desc...
// Login Module angular.module('crmDemo.addJob', ['ngRoute']) // Declared route .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/add-job', { templateUrl: 'src/jobs/add-job.html', controller: 'AddJobController' }); }]);
// -------------------------------- // Toolkit.lang // -------------------------------- (function($) { if (!$ || !window.Toolkit) return; // ---------------------------- Toolkit.lang.language = 'zh-tw'; // ---------------------------- Toolkit.lang.set('base-date', { 'weekday': ["日", "一", "二", "三", "四", "五", "六"]...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'contextmenu', 'es', { options: 'Opciones del menú contextual' } );
/* * Inline Form Validation Engine 2.2, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-absolute.com * * 2.0 Rewrite by Olivier Refalo * http://www.crionics.com * * Form validation engine allowing custom regex rules to be added. * Licensed under the MIT License */ (function($) { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _Tag = _interopRequireDefault(require("./Tag")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": ...
/* Import the ip-cidr npm package. See https://www.npmjs.com/package/ip-cidr The ip-cidr package exports a class. Assign the class definition to variable IPCIDR. */ const IPCIDR = require('ip-cidr'); /** * Calculate and return the first host IP address from a CIDR subnet. * @param {string} cidrStr - The IPv4...
/** * fileOverview: * Project: * File: glStage * Date: 19/11/21 * Author: Teraguchi */ export default class glStage { constructor() { // カメラ作成 this._camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1.0, 5000); this._camera.position.y = 0; this._camera.position.z = 800; ...
import { Box, HStack, Stack, Text, VStack } from '@chakra-ui/layout' import { Button } from '@chakra-ui/button' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faBriefcase, faCheckCircle, faDownload, faEdit } from '@fortawesome/free-solid-svg-icons' import { useSelector } from 'react-redux' im...
import styled from 'styled-components/native'; import {StyleSheet, Animated} from 'react-native'; export const Container = styled(Animated.ScrollView)` margin: 0 30px; `; export const Code = styled.View` max-width:100px; overflow:hidden; background:#fff; align-self:center; padding:10px; `;...
module.exports = { env: { browser: true, commonjs: true, es6: true, node: true, }, extends: 'airbnb', parser: 'babel-eslint', parserOptions: { sourceType: 'module', allowImportExportEverywhere: true, //for dynamic imports }, rules: { 'no-console': 0, 'no-underscore-dangle...
const { FolderRotate } = require('./lib/FolderRotate'); module.exports = Object.freeze({ FolderRotate });
var bower = require('bower'), path = require('path'); // Error process.on('uncaughtException', function(err) { console.log("Exception", err.stack); }); console.log('Starting directory: ' + process.cwd()); // Install for site // ./views/layout.jade bower.commands .install([path.resolve(".")+"/bower.json"]) ....
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.some es5id: 15.4.4.17-5-6 description: Array.prototype.some - thisArg is function ---*/ var res = false; function callbackfn(val, idx, obj) { ...
angular.module('AdCshdwr').controller('EditCdrCshDrawerController', function($scope, $routeParams, $location, CdrCshDrawerResource ) { var self = this; $scope.disabled = false; $scope.$location = $location; $scope.get = function() { var successCallback = function(data){ self.ori...
'use strict' Object.defineProperty(exports, '__esModule', { value: true }) exports.default = addISOWeekYears var _index = require('../_lib/toInteger/index.js') var _index2 = _interopRequireDefault(_index) var _index3 = require('../getISOWeekYear/index.js') var _index4 = _interopRequireDefault(_index3) var _inde...
import displayValue from 'display-value'; import { assert } from 'type-enforcer'; import { erase } from '../index.js'; import { testValues } from './helper/testValues.js'; describe('erase', () => { it('should delete a key and return true', () => { const object = { level1: 'something' }; const compare = {}; ...
module.exports = { chsh: require('./chsh'), link: require('./link'), gitrepo: require('./gitrepo'), exec: require('./exec'), aptpkg: require('./aptpkg'), aptsource: require('./aptsource') }
module.exports = { ADMIN: "admin", OWNER: "owner", WRITER: "writer", READER: "reader" }
import React from "react"; function TestimonialA(props) { return ( <section className="text-gray-600 body-font dark:text-gray-400 dark:bg-gray-900"> <div className="container px-5 py-24 mx-auto"> <h1 className="text-3xl font-medium title-font text-gray-900 mb-12 text-center dark:text-white"> ...
// 来自www.demaxiya.com (function () { var loadJs = function (src, fun) { var head = document.getElementsByTagName('head')[0] || document.head || document.documentElement; var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.setAttribu...
//# sourceMappingURL=ListAccordionGroup.js.map
'use strict' import { FsBoolean } from '../src/datatypes.js' import { FizzBuzzScheme as FBS } from '../src/index.js' test('evaluating (symbol? 1) yields #f', () => { expect(new FBS().eval('(symbol? 1)')).toStrictEqual(FsBoolean.FALSE) }) test('evaluating (symbol? a) yields #f', () => { const fbs = new FBS() fb...
const _ = require('lodash'); const Wallet = require('../Wallet/Wallet'); class Identities { constructor(wallet) { if (!wallet || wallet.constructor.name !== Wallet.name) throw new Error('Expected wallet to be passed as param'); if (!_.has(wallet, 'walletId')) throw new Error('Missing walletID to create an ac...
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Info } from './components' function InfoView ({ agentInfo }) { const { info } = agentInfo return (<div className="content-inner"> <Info {...info} /> </div>) } InfoView.propTypes = { agentInfo: PropTypes.ob...
Prism.languages.nix={comment:/\/\*[\s\S]*?\*\/|#.*/,string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:{antiquotation:{pattern:/^\$(?=\{)/,alias:"variable"}}}}},url:[/\b(?:[a-z]{3...
function match(regex, contentType) { return contentType ? regex.test(contentType) : false; } exports.isJson = function (contentType) { return match(/json/i, contentType); }; exports.isMultipart = function (contentType) { return match(/multipart\/form-data/i, contentType); }; exports.isFormUrlEncoded = fu...
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
/** * @fileoverview added by tsickle * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * f...
import { initAuth0 } from "@auth0/nextjs-auth0"; import nextConnect from "next-connect"; import * as yup from "yup"; import camelCase from "lodash/camelCase"; import mapKeys from "lodash/mapKeys"; import isEmpty from "is-empty"; import { parsePhoneNumberFromString } from "libphonenumber-js"; import ono from "@jsdevtool...
const RoleCreate = () => import('../../../pages/system/roles/Create.vue'); export default { name: 'system.roles.create', path: 'create', component: RoleCreate, meta: { breadcrumb: 'create', title: 'Create Role', }, };
'use strict'; import * as utils from '../../../../utils.js'; /* eslint-disable max-len */ describe('CTS converted from NNAPI CTS', function() { const nn = navigator.ml.getNeuralNetworkContext(); it('test conv2d + add + clamp converted from depthwise_conv2d_float_large_2_weights_as_inputs_relaxed test', async func...
import React, { useState } from 'react' import { useStaticQuery, graphql } from 'gatsby' import Image from '@components/Image' import DescriptionCard from '@components/DescriptionCard' import IndexCard from '@components/IndexCard' import Button from '@components/Button' import { Grid } from '@components/Grid' import '....
/********************* * BOOTSTRAP BUTTONS * *********************/ /** * getBootstrapCloseButtonTemplate * Summary. Create a bootstrap button based on the close template. * @returns {*} */ function getBootstrapCloseButtonTemplate(innerHTML, func) { /* Bootstrap Button in HTML: <button type="button" class=...
import React from 'react' import { Switch, Route, Redirect } from 'react-router-dom' import { isAuthenticated, validate } from 'common/auth' import * as scenes from 'scenes' export const LOGIN_URI = '/login' export const HOME_URI = '/' export const SIGNUP_URI = '/signup' const routes = [ { path: LOGIN_URI, ...
var UserSettings = require("../models/UserSettings"); var RoomMember = require("../models/RoomMember"); module.exports.save = function(req, res) { var id = req.body.userSettingsId.toObjectId(); var update = req.body.settings; UserSettings.findByIdAndUpdate(id, update) .then(res.ok) .catch(res.serverError); }; ...
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
module.exports = /******/ (function(modules, runtime) { // webpackBootstrap /******/ "use strict"; /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/...
// if (typeof(PrimeFaces) != "undefined") { // if (typeof(PrimeFaces.ajax.AjaxUtils)!= "undefined") { // var primeFacesOriginalSendFunction = PrimeFaces.ajax.AjaxUtils.send; // // PrimeFaces.ajax.AjaxUtils.send = function(cfg){ // var callSource = null; // // // if not string, the caller is a process - in this case ...
'use strict'; // Production specific configuration // ================================= module.exports = { // Server IP ip: process.env.OPENSHIFT_NODEJS_IP || process.env.IP || undefined, // Server port port: process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || ...
/* Highcharts JS v9.3.2 (2021-11-29) Highcharts cylinder module (c) 2010-2021 Kacper Madej License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/cylinder",["high...
import React, { useState, useEffect } from "react"; import { withStyles, makeStyles } from "@material-ui/core/styles"; import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Paper, Button, Typography, } from "@material-ui/core"; import ContentLoader from "react-content-loader"; imp...
export default function (deck) { deck.intro = deck.queued(intro) function intro (next) { var cards = deck.cards cards.forEach(function (card, i) { card.intro(i, function (i) { if (i === cards.length - 1) { next() } }) }) } }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var _react = _interopRequireDefault(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _RadioButton = _intero...
import * as CES from 'ces'; import * as BABYLON from '../lib/babylon'; import { utils } from '../utils/utils'; var defaults = utils.defaultArgs(); defaults._name = 'light'; /** * ... * @author Brendon Smith * http://seacloud9.org * LightWeight 3D System Design engine */ export class c_light { constructor(_opts...
function introduction(name) { if (name.length > 0) { return "hello my name is " + name; } else { return "hello my name is"; } } module.exports = introduction;
'use strict'; const debug = require('debug')('gitter:tests:test-fixtures'); const FeatureToggle = require('gitter-web-persistence').FeatureToggle; const mongooseUtils = require('gitter-web-persistence-utils/lib/mongoose-utils'); const fflip = require('fflip'); async function createFeatureToggle(fixtureName, f) { de...
/*! (C) Andrea Giammarchi, @WebReflection - Mit Style License */ /*! (C) Andrea Giammarchi Mit Style License */ var hasDOM = typeof document !== 'undefined'; wru.test([ { name: "eddy", test: function () { wru.assert(Object.eddy || typeof eddy !== 'undefined' && eddy); // global eddy } }, { na...
import * as t from './actionTypes'; const initialState = { account: null, services: [], service: null, serviceSettings: null, serviceLogs: null, loadingEnableDisableService: false }; export default (state = initialState, action) => { switch (action.type) { case t.ACCOUNT_RECEIVE: return Object.assign({}, ...
/* @metadata author": senseBox Team lastupdated": 2018 for more information: www.sensebox.de add new Blocks for the senseBox MCU */ 'use strict'; goog.provide('Blockly.Blocks.sensebox'); goog.require('Blockly.Blocks'); var wifiDepend = null; /** * Common HSV hue for all blocks in this category. *...
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"RopaSans":{"italics":"RopaSans-Italic.ttf","normal":"RopaSans-Regular.ttf","bold":"RopaSans-Regular.ttf","bolditalics":"RopaSans-Regular.ttf"}};
module.exports={A:{A:{"2":"I D F E A B mB"},B:{"1":"Y LB M N S T U V","2":"C O H P J K L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J K L a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB RB HB IB JB KB R MB NB OB PB GB X WB SB TB UB VB QB Y LB M kB N S T U","2":"lB bB G Z I D F E A tB wB","33":"B C O H P"},D:{"...
'use strict'; /* global SettingsListener, SettingsURL, CallscreenWindow, applications */ /* global VersionHelper, LazyLoader, toneUpgrader, Service */ /* r=? dialer+system peers for changes in this file. */ (function(exports) { /** * * The delay between an incoming phone call and the first ring or vibration ...
/* The MIT License (MIT) Copyright (c) 2013 Calvin Montgomery Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
const enabled = {}; function transform(transformer, content) { const { root, features } = transformer.transform(content); const keys = Object.keys(features).filter(key => !enabled[key]); keys.forEach(key => { enabled[key] = true; }); const { styles, scripts } = transformer.getAssets(keys); const { loadJS, lo...
import request from '@/utils/request' export function accessCompany(companyId) { return request({ url: `/backStageManagement/company/${companyId}`, method: 'put', }) } export function banCompany(companyId, comment) { return request({ url: `/backStageManagement/company`, method: 'delete', dat...
import React from 'react' import PropTypes from 'prop-types' import { Spring, animated } from 'react-spring' import { useTheme } from '../../theme' import { noop } from '../../utils' import { springs, GU, RADIUS } from '../../style' import FocusVisible from '../FocusVisible/FocusVisible' const SIZE = 18 const CHECKBOX...
"strict mode"; var assert = require("chai").assert; var path = require("path"); var dbId = "tests"; function _blueEntitiesFactory( schema ) { return require( path.join(process.cwd(), "blueentities") )(schema, dbId); } var baseSchema = [ { name: "img", properties: [ { name: "filename", type: "string" }, ...
import React from "react"; import "./about.scss"; import styles from "../styles/about.module.css"; import ImageContainer from "./parallaxText/ImageContainer"; import { motion, useViewportScroll, useTransform } from "framer-motion"; export default function About({ offset = 1500 }) { const { scrollYProgress } = useVi...
console.log('load _drum_35_25_JCLive_sf2_file'); var _drum_35_25_JCLive_sf2_file={ zones:[ { midi:128 ,loopStart:0 ,loopEnd:0 ,keyRangeLow:35 ,keyRangeHigh:35 ,sampleRate:44100 ,coarseTune:0 ,fineTune:0 ,originalPitch:3500 ,anchor:0.00766440 //'Kick 2 [Stan1] } ] };
module.exports = {"name":"--pf-global--BackgroundColor--light-300","value":"#ededed","var":"var(--pf-global--BackgroundColor--light-300)"}
// Generated by CoffeeScript 1.8.0 var dive, fs, path; fs = require('fs'); path = require('path'); dive = require('dive'); module.exports = { recursiveSearchSync: function(filename, dir, options) { var f, matches; if (arguments.length !== 3) { options = { all: false }; } matche...
//Hanna - this file renders a button that calls the decrementer from the provider import React, { useContext } from 'react'; import { CounterContext } from '../../contexts/counter-provider-context'; const Decrementer = () => { const context = useContext(CounterContext); return ( <bu...
module.exports = { "globDirectory": "site/", "globPatterns": [ "**/*.{html,css,ttf,woff,woff2,png,svg,js,ico,json,xml,gz}" ], "swDest": "site/sw.js", "swSrc": "sw-src.js" };
/* * zzllrr Mather * zzllrr@gmail * Released under MIT License */ technology['Software/AI']=detail(gM('Theory'), '五大学派: 进化学派, 连接学派, 符号学派, 贝叶斯学派, 类推学派')+ Table([i18(ZLR('Name Type Summary'))],[ [href(Hs+'generated.photos','Generated Photos'),'Image zip','Free resource of 100k diverse faces generated by AI '+hre...
// @flow const Evented = require('../util/evented'); const util = require('../util/util'); const loadTileJSON = require('./load_tilejson'); const normalizeURL = require('../util/mapbox').normalizeTileURL; const TileBounds = require('./tile_bounds'); const ResourceType = require('../util/ajax').ResourceType; const brow...
export default [ { path: 'home', label: 'Home', }, { path: 'support', label: 'Integrations', }, { path: 'features', label: 'Feature', }, { path: 'pricing', label: 'Pricing', }, { path: 'testimonials', label: 'Testimonials', }, ];
import Link from "next/link"; import Image from 'next/image'; import { useState } from 'react'; import { StarIcon } from '@heroicons/react/solid'; import Currency from 'react-currency-formatter'; import { useDispatch } from 'react-redux'; import { addToBasket } from '../slices/basketSlice'; const MAX_RATING = 5; const...
'use strict'; module.exports = { 'RTLD_LAZY': 1, 'RTLD_NOW': 2, 'RTLD_GLOBAL': 256, 'RTLD_LOCAL': 0, 'RTLD_DEEPBIND': 8, 'E2BIG': 7, 'EACCES': 13, 'EADDRINUSE': 98, 'EADDRNOTAVAIL': 99, 'EAFNOSUPPORT': 97, 'EAGAIN': 11, 'EALREADY': 114, 'EBADF': 9, 'EBADMSG': 74,...
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "b486eef34ed1fd1330512879da2dbe16", "url": "/index.html" }, { "revision": "06bdfd942de19cc3a289", "url": "/static/css/main.74a37118.chunk.css" }, { "revision": "a7113668ce438a4b6c61", "url": "/static/js/2....
$(function () { if (sessionStorage.getItem('currentUser') === null) { $('.jot-form-order').hide(); } else { $('.not-signin-container').hide(); } });
import React from 'react' import { node, oneOfType, string } from 'prop-types' import { Box } from '@welcome-ui/box' import * as S from './Item.styles' export function Item({ children, dataTestId, separator, ...rest }) { return ( <Box aria-label="breadcrumb" as="li" data-testid={dataTestId} ...
function Player(args){ // Private vars var player, playpause, next, prev, isPlaying, name, artists, album, position, positionCounter, positionValue, time, repeat, shuffle, duration, durationValue, volume; // Constructor function Player(args){ var that = this; that.server = args.main.server; $(function(){ ...
import { TaskResource } from 'kolibri.resources'; import Vue from 'kolibri.lib.vue'; import { CSVImportStatuses } from '../../constants'; import actions from './actions'; function defaultState() { return { taskId: '', status: CSVImportStatuses.NOT_STARTED, deleteUsers: false, filename: '', overal...
/* istanbul instrument in package npmdoc_mincer */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - init-before (function () { ...
module.exports={"zones":{"Asia/Ulan_Bator":["z",{"wallclock":252460800000,"format":"+08/+09","abbrev":"+08","offset":28800000,"posix":252435600000,"save":0,"rules":"Mongol"},{"wallclock":-2032905600000,"format":"+07","abbrev":"+07","offset":25200000,"posix":-2032931252000,"save":0},{"wallclock":-1.7976931348623157e+308...
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{nldV:function(t,e,a){"use strict";a.r(e);var s={metaInfo:{title:"Categories"}},l=a("KHd+"),n=null,o=Object(l.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Layout",[a("section",{staticClass:"column centre flex-1",attrs:{id:"container-ce...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('Places', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true, allowNull: false, }, name: { type: Sequelize.STRING, allowNu...
import React from 'react'; import {shallow} from 'enzyme'; import TodoItemDeleteButton from '../../../../../../../client/App/Shell/Home/TodoList/TodoItem/TodoItemDeleteButton'; describe('TodoItemDeleteButton component', () => { it('renders without crashing', () => { shallow(<TodoItemDeleteButton />); }); });
import { CompositionCommand } from '../../composition.command'; export class SetCompositionResizeWidthCommand extends CompositionCommand { constructor(structureId, enabled) { super(structureId, 'SetCompositionResizeWidthCommand'); this.structureId = structureId; this.enabled = enabled; }...
'use strict'; // STEP 1 // This is a standard function expression. You may also be familiar with function declarations, which begin with the "function" keyword. const theOldWay = function(course) { return `I am currently enrolled in ${course}`; }; // TODO: Uncomment the following line of code to see the output in t...
const Factory = require('./lib/factory'); module.exports = { Factory: Factory, Server: require('./lib/server'), // @depreciated MessageQueue: Factory };
const request = require('request'); const cheerio = require('cheerio'); function getText(children) { if (children.children) return getText(children.children); return children.map(c => { return c.children ? getText(c.children) : c.data; }).join(''); } exports.run = (bot, msg, args) => { if (arg...
const moment = require('moment'); const { createLogger, format, transports } = require('winston'); const { combine, timestamp, printf } = format; const simpleFormat = printf(info => { const time = moment(info.timestamp).format('YYYY-MM-DD HH:mm:ss'); return `${time} ${info.level}: ${info.message}`; }); module.exp...
'use strict'; describe('Directive: defaultSrc', function () { // load the directive's module /*beforeEach(module('eventifyApp')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should make hidden element visible', inject(function ($compile) { ...
export const saveRosters = (rosterData) => { let post = {}; if (!rosterData) { return; } if (rosterData && rosterData.bashers && rosterData.stallions) { return fetch('http://localhost:3000/api/rosters', { method: 'POST', headers: { 'Content-Type': 'application/json', }, ...
const grpc = require('@grpc/grpc-js'); const protoLoader = require('@grpc/proto-loader'); const products = require('./products.json'); const packageDefinition = protoLoader.loadSync('proto/inventory.proto', { keepCase: true, longs: String, enums: String, arrays: true, }); const inventoryProto = grpc.l...