text stringlengths 2 1.04M |
|---|
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Other.js
*
* Copyright (c) 2009-2017 The MathJax Consortium
*
* 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
*
* ... |
import { mount, createWrapper, createLocalVue as CreateLocalVue } from '@vue/test-utils'
import { waitNT, waitRAF } from '../../../../tests/utils'
import { ToastPlugin } from '../index'
describe('$bvToast', () => {
const localVue = new CreateLocalVue()
beforeAll(() => {
localVue.use(ToastPlugin)
})
it('$... |
var sequelize = require('../sequelize')
var { Product } = sequelize.models
Product.create({
barcode : '9876543210'
})
Product.create({
barcode : '0123456789'
}) |
//
// パズル固有スクリプト部 タイルペイント版 tilepaint.js
//
(function(pidlist, classbase){
if(typeof module==='object' && module.exports){module.exports = [pidlist, classbase];}
else{ pzpr.classmgr.makeCustom(pidlist, classbase);}
}(
['tilepaint'], {
//---------------------------------------------------------
// マウス入力系
MouseEvent:{
... |
/* w2ui-fields.js 1.5.x (nightly), part of w2ui (c) http://w2ui.com, vitmalina@gmail.com */
var w2ui = w2ui || {};
var w2obj = w2obj || {}; // expose object to be able to overwrite default functions
/************************************************
* Library: Web 2.0 UI for jQuery
* - Following objects are defines... |
var breadcrumbs=[['-1',"",""],['2',"VitNX3 Documentation","topic_00000000000016E1.html"],['789',"VitNX3.Functions.Win32 Namespace","topic_00000000000000C6.html"],['790',"Constants Class","topic_00000000000001C1.html"],['1979',"ResultWin32 Class","topic_00000000000001F4.html"],['1982',"Fields","topic_00000000000001F4_va... |
module.exports = new Date(1972, 9, 14) |
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
var SyscallsLibrary = {
$SYSCALLS__deps: ['$PATH',
#if FILESYST... |
/*!
* coordinates.io
*
* app.js
* Author: Michael Birsak
* Version: 0.0.1
*
* (c) 2013 Michael Birsak / Thomas Lichtblau
* Licensed under MIT
*//*************************************************************************//* coordinates.io - App |
export default [
{
date: '03-06-2017',
value: 29990
},
{
date: '15-11-2017',
value: 21990
},
{
date: '12-12-2017',
value: 21990
},
{
date: '29-12-2017',
value: 21990
},
{
date: '30-12-2017',
value: 21990
},
{
date: '31-12-2017',
value: 21990
},
{
date: '01-01-2018',
value: 29990... |
//Creacion de Tablas
function personTable() {
var table = document.getElementById("personTable");
var tbody = document.createElement("tbody");
tbody.setAttribute("id", "body");
table.appendChild(tbody);
var i = 0;
var j = 0;
let token = window.localStorage.getItem("token");
let role = ... |
module.exports = {
"index": 5,
"lineNumber": 1,
"column": 6,
"message": "Unexpected token }"
}; |
$(function(){
var fx = {
"initModal" : function() {
if($(".modal-window").length == 0){
$("<div>").attr("id","jqury-overlay")
.appendTo("body")
return $("<div>")
//.attr("id","overly-close")
.addClass("modal-window")
.appendTo("body");
}
else { return $(".... |
'use strict';
angular.module('issueTrackingSystem', [
'ngRoute',
'ngCookies',
'issueTrackingSystem.common',
'issueTrackingSystem.home',
'issueTrackingSystem.users.logout',
'issueTrackingSystem.users.changePasswordPage',
'issueTrackingSystem.projects.projectPage',
'issueTrackingSystem.projects.editPro... |
const meow = require('meow')
const run = require('..')
const cli = meow(`
Usage
$ demo files
`)
const files = cli.input
if (files.length === 0) {
console.error('ERROR: need some files')
cli.showHelp()
}
console.log(`INFO: linting files: ${files}`)
const baseConfig = {
extends: 'eslint:recommended',
pa... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const app_1 = __importDefault(require("./app"));
const port = process.env.PORT || 3000;
const server = n... |
angular.module("UploadForm", [ "ngFileUpload", "ui.bootstrap" ]);
angular.module("UploadForm").controller("UploadFormController", [ "$scope", "$filter", "Upload", function($scope, $filter, Upload) {
var formCtrl = this;
// Alert messages
formCtrl.alerts = [];
// Maximum total file size: 24 MB
formCtrl.maxTotalS... |
import React from 'react'
import { ExampleComponent, Slider } from 'scalable-slider-react'
import 'scalable-slider-react/dist/index.css'
const items2=[
{
src:"https://www1.bac-assets.com/homepage/spa-assets/images/assets-images-site-homepage-icons-contact_icon_locations_red-CSX54c6594a.svg",
locations:... |
import React, {Fragment} from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {compose} from 'redux';
import {Grid} from '@material-ui/core'
import Card from 'components/Card/Loadable'
import messages from './messages';
import './style.scss'
import logo from 'images/logo.png';
... |
/*!
* Bootstrap modal.js v4.3.1 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof mo... |
import React, { Component } from "react";
import * as actions from "../../store/actions/index";
import { connect } from "react-redux";
import { Container, Col, Row, Form, Alert } from "react-bootstrap";
import Button from "../../components/UI/Button/Button";
import { Redirect } from "react-router-dom";
import Spinner f... |
// @flow
//
// Copyright (c) 2018-present, Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
import { storiesOf } from "@storybook/react";
i... |
var path = require('path');
var async = require('async');
var fs = require('graceful-fs');
var Q = require('q');
/**
* Generate a list of unique directory paths given a list of file paths.
* @param {Array.<string>} files List of file paths.
* @return {Array.<string>} List of directory paths.
*/
var uniqueDirs = ... |
angular.module('ngTableExport', [])
.config(['$compileProvider', function($compileProvider) {
// allow data links
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data):/);
}])
.directive('exportCsv', ['$parse', function ($parse) {
return {
restrict: 'A',
scope: false,
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" /></React.Fragment>
, 'FormatUnderlinedSharp'); |
import Vue from 'vue'
import VueRouter from 'vue-router'
import store from '@/store'
import { Toast } from 'vant'
import getPageTitle from '@/utils/get-page-title'
import { getToken } from '@/utils/auth' // get token from cookie
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Index',
component: ... |
global.request=require("request");
require('./lib/usergrid');
module.exports = Usergrid; |
'use strict';
define(['projectSugar'], function () {
var oneAndModule = angular.module('projectSugar', ['ui.router', 'oc.lazyLoad', 'oneAndService', 'layoutService']);
oneAndModule.controller('oneAndController', ['$scope','$http', '$ocLazyLoad', 'oneAndService', 'layoutService',
function($scope, $http, $ocLazy... |
/* Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/lv",[],function(){function b(f,c,g,d){return f===11?c:f%10===1?g:d}return{inputTooLong:function(c){var e=c... |
var common = require('../../util/common.js');
var expect = common.expect;
module.exports = [
function (app) {
expect(app).to.not.be.null;
var dump = app.tasks.logger.getBuffer();
// console.info('logger dump:', dump);
var expectList = [
'MyTasks beforeAll',
'MyTasks beforeEach - task1... |
// Node-RED Network Diagram Node - this code runs in Node-RED
module.exports = function (RED) {
const Svgson = require('svgson')
// Instantiate the Node-RED node, 'this' is the node being constructed
// and config contains the values set by the user in the flow editor.
function FdSvgDrawingNode(config) {
... |
import alt from "alt-instance";
import localeCodes from "assets/locales";
class IntlActions {
switchLocale(locale) {
// var locale = "cn"
// console.debug("[IntlStore]Translate: ", locale);
// if (/cn|zh/.test(locale)) {
// return { locale };
// }
return dispatch => {
import("assets/... |
/* jshint -W097 */
/* jshint strict: false */
/*jslint node: true */
'use strict';
// @ts-ignore
const utils = require('@iobroker/adapter-core');
// @ts-ignore
const schedule = require('node-schedule');
// @ts-ignore
const SunCalc = require('suncalc2');
const sunProtect = require('./lib/sunProtect.js'); ... |
import Vue from "vue";
import router from "./router";
import VueRouter from "vue-router";
require("./bootstrap");
Vue.use(VueRouter);
Vue.component(
"app-component",
require("./components/AppComponent.vue").default
);
const app = new Vue({
el: "#app",
router
}); |
var setup = require('./setup'),
assert = require('assert');
setup(function(err, cb) {
assert(!err, "setup failure");
// Make sure an invalid errorCode doesn't crash anything
cb.strError(1000);
// Make sure we can get error strings properly
assert( cb.strError(0) == 'Success', 'Error strings a... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
// JAVASCRIPT POR DEBAIXO DOS PANOS
// 1. SCOPE
// GLOBAL SCOPE
// const eu = "Larissa";
// const profissao = "professora";
// const anoNascimento = 1993;
// // FUNCTION SCOPE
// function calcAge(birthYear) {
// const now = 2021;
// const age = now - birthYear;
// return age;
// }
// // console.log(now);
/... |
module('Options', {
setup: function(){},
teardown: function(){
$('#qunit-fixture *').each(function(){
var t = $(this);
if ('datepicker' in t.data())
t.datepicker('remove');
});
}
});
test('Autoclose', function(){
var input = $('<input />')
... |
import {
SWITCH_LANGUAGE
} from 'Constants/customizings';
export const switchLanguage = (locale) => (
{ type: SWITCH_LANGUAGE, payload: locale }
); |
const Header = () => (
<div
style={{
background: "rebeccapurple",
marginBottom: "1.45rem"
}}
>
<div
style={{
margin: "0 auto",
maxWidth: 960,
padding: "1.45rem 1.0875rem"
}}
>
<h1 style={{ margin: 0 }}>
<Link
to="/"
st... |
import { NgModule, Component, ElementRef, Input, Output, EventEmitter, ContentChildren, ContentChild, forwardRef, ChangeDetectorRef, ViewChild, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule, PrimeTemplate, Footer, Header } from '... |
import flvjs from 'flv.js'
import 'main.css'
document.addEventListener('DOMContentLoaded', function () {
const urlParams = new URLSearchParams(window.location.search),
streamName = urlParams.get('stream') || 'vscode',
streamHost = urlParams.get('host') || window.location.hostname,
mediaData... |
System.register(['./validation/validation-config', './validation/validation', './validation/utilities', './validation/validation-locale', './validation/validation-result', './validation/validation-rules', './validation/validate-custom-attribute', './validation/validate-custom-attribute-view-strategy', './validation/dec... |
// this needs to bre present in the global scope
// for the message module
global.onmessage = null;
/*global.postMessage = function() {
console.log(arguments);
}*/
var RAM = require('../js/worker/ram');
var CPU = require('../js/worker/cpu');
var Lab = require('lab');
var lab = exports.lab = Lab.script();
var expec... |
const bonjour = require('bonjour')();
const flatten = require('flat');
const selectn = require('selectn');
const uniq = require('lodash.uniq');
const BaseNode = require('../../lib/base-node');
const HomeAssistant = require('../../lib/home-assistant');
const { toCamelCase } = require('../../lib/utils');
module.exports... |
import React from "react";
import Img from "react-image";
import logo from "public/logo-dark.png";
import styled from "styled-components";
import { media } from "src/styles/mediaQueries";
const Logo = ({ className }) => <Img className={className} src={logo} />;
const AbakusLogo = styled(Logo).attrs({
size: props =>... |
import React from 'react';
import {
Modal,
View
} from 'react-native';
import DateTimePicker from '@react-native-community/datetimepicker';
import variable from '../theme/variables/platform';
import { Text } from './Text';
export class DatePicker extends React.Component {
static defaultProps = {
disabled:... |
import React, { useState } from "react";
import { validateEmail } from "../../utils/helpers";
// import styled components
import {
Anchor,
ContactSection,
ContactHeader,
ColorBar,
HeaderText,
ContactForm,
FormLabel,
InfoInput,
MessageInput,
ErrorMsg,
Submit,
} from "./styles";
const Contact = () => {
// m... |
import Hbar from "../Hbar.js";
import TransactionResponse from "./TransactionResponse.js";
import TransactionId from "./TransactionId.js";
import TransactionHashMap from "./TransactionHashMap.js";
import SignatureMap from "./SignatureMap.js";
import Executable, { ExecutionState } from "../Executable.js";
import Status ... |
export { default as useActions } from './useActions'
export { default as useFormInput } from './useFormInput'
export { default as useTimeInput } from './useTimeInput'
export { default as useWindowWidth } from './useWindowWidth' |
(function () {
'use strict';
}());
/*
* @author WMXPY
* @contect wm@wmpcxpy.com
*/ |
jsonp6180953({
"collect_id": "6180953",
"collect_title": "那些舍不得删的华语歌",
"collect_author": "Clark超人先生",
"collect_type": "collects",
"collect_count": 103,
"collect_cover": "//p4.music.126.net/WiooLdd_IntJiiZTbipK3g==/5654788301778747.jpg",
"songs": [
{
"id": 190532,
"title": "小小的太阳",
"d... |
/*! For license information please see 2.001b1308.chunk.js.LICENSE.txt */
//# sourceMappingURL=2.001b1308.chunk.js.map |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js';
import {html, Polymer} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.mi... |
var typescript = require('rollup-plugin-typescript2');
var pkg = require('../package.json');
var version = pkg.version;
var banner =
`/*!
* ${pkg.name} ${version} (https://github.com/yanhaijing/parcel-plugin-template)
* API https://github.com/yanhaijing/parcel-plugin-template/blob/master/doc/api.md
* Copyright 2... |
define(["require","./BaseJiveComponentView","jquery","logger"],function(e){var o=e("./BaseJiveComponentView"),t=e("jquery"),i=e("logger").register("Report");return o.extend({_renderComponent:function(){this.jiveColumn=this.model.get("moduleType");var e=new t.Deferred;this.jiveColumn.init(this.report);var o=this.model.g... |
import React, {useEffect} from 'react'
import semver from 'semver'
import {usePersistence} from '../hooks/use-persistent-state'
import {loadPersistentState} from '../utils/persist'
import {BASE_API_URL, BASE_INTERNAL_API_PORT} from '../api/api-client'
import useLogger from '../hooks/use-logger'
import {AVAILABLE_LANGS}... |
/**
* Validates that the value is a valid time.
*/
Ext.define('Ext.data.validator.Time', {
extend: 'Ext.data.validator.AbstractDate',
alias: 'data.validator.time',
type: 'time',
/**
* @cfg {String} message
* The error message to return when the value is not a valid time.
* @locale
... |
import Header from "./Header.js";
import PartControl from "./PartControl.js";
function App() {
return (
<div className="App">
<Header />
<PartControl />
</div>
);
}
export default App; |
const defaultState = '/';
export default function(state=defaultState, action) {
switch (action.type) {
case 'SET_LAST_ROUTE':
return action.route;
default:
return state;
}
}; |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["jssCamelCase"] = factory();
else
root["... |
/*!
* Engine.IO v6.1.1
* (c) 2014-2022 Guillermo Rauch
* Released under the MIT License.
*/
//# sourceMappingURL=engine.io.esm.min.js.map |
export * from './Button'
export * from './MenuButton'
export * from './Icon' |
import { mediaQueries } from "../layout/responsive/mediaQueries";
export const createTheme = (palette) => {
let { BLUE, BLUE_L5, DARK, DAWN_L5, GREEN, DUSK, DAWN_D5, DAWN, ORANGE, RED, WHITE } = palette;
let base = {
primary: {
color: DARK,
contrast: WHITE
},
seco... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
export default class ActivityButton extends Component {
constructor() {
super()
this.handleClick = this.handleClick.bind(this)
}
handleClick() {
this.props.onClick(this.props.type)
}
render() {
return (
<button ... |
(function () {
'use strict';
window.app
.config(TenantUserRoute);
TenantUserRoute.$inject = ['$stateProvider'];
function TenantUserRoute($stateProvider) {
let states = [
{ name: 'tenantUser.applicationSuite.home', url: '/application-suite', component: 'tenantUserApplication... |
const fs = require('fs-extra')
const os = require('os')
const path = require('path')
const constants = require('../../config/constants')
const logger = require('./loggerutil')('%c[ConfigManager]', 'color: #a02d2a; font-weight: bold')
const sysRoot = process.env.APPDATA || (process.platform == 'darwin' ? process.e... |
module.exports={A:{A:{"2":"H D G E A B nB"},B:{"1":"I J q","2":"C K f L N"},C:{"1":"0 1 2 3 4 5 6 8 n o p M r s t u v w x y z EB NB DB BB FB HB IB JB KB LB MB","2":"kB OB F O H D G E A B C K f L N I J P Q R S T U V W X Y Z a b c d e AB g h i j k l m eB dB"},D:{"1":"0 1 2 3 4 5 6 8 p M r s t u v w x y z EB NB DB BB FB H... |
function Grunt(index, game, player, bullets, x, y) {
this.game = game;
this.player = player;
this.bullets = bullets;
this.health = 3;
this.fireRate = 1000;
this.nextFire = 0;
this.alive = true;
this.grunt = game.add.sprite(x, y, 'grunt');
this.grunt.anchor.setTo(0.5);
this.grunt... |
var React = require('react');
class Project extends React.Component {
constructor(props) {
super(props)
this.state = {
elementsNumber: 0,
projectNumber: 0
}
this.onKeyDown = this.onKeyDown.bind(this);
this.backClick = this.backClick.bind(this);
this.leftArrowClick = this.leftArrowClick.bind(this);
... |
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import Button from '../../components/button';
import Translation from '../../behaviours/translation';
function isDescendant(parent, child) {
let node = child.parentNode;
while (node != null) {
if (node == parent) {
... |
/* Element css manipulation.
*
* Get the computed style properties for the first element in the set of matched elements.
*
* |Name |Type |Desc |
* |-------|--------------------|--------------------------|
* |element|string array element|Elements to manipulate |
* |name ... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import router from 'umi/router';
import {
Row,
Col,
Card,
Form,
Input,
Button,
Select,
Table, message, Modal, DatePicker,
} from 'antd';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import moment f... |
function loadMapScenario() {
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
center: new Microsoft.Maps.Location(25.206426, 55.306465),
zoom: 13
});
var pushpins = Microsoft.Maps.TestDataGenerator.getPushpins(4, map.getBounds(),
{
icon: 'https://www.bingmapsp... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... |
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import {configure} from 'enzyme';
configure({ adapter: new Adapter() }); |
import React from 'react';
import eventUtils from '../../util/events';
import styles from './search-styles';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import SearchOutlinedIcon from '@material-ui/icons/SearchOutlined';
import TextField from '@material-ui/core/Text... |
import { createSvgIcon } from '@mui/material/utils';
export const Bell = createSvgIcon(
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z" />
... |
// @flow
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/fromEvent';
import 'rxjs/add/operator/throttleTime';
import 'rxjs/add/operator/mapTo';
import 'rxjs/add/operator/mergeMap';
import { updateInnerHeight } from './comics';
const START_RESIZE_EPIC = 'START_RESIZE_EPIC';
function fromResiz... |
//================================================================
// RS_EX_ToolKit.js
// ---------------------------------------------------------------
// The MIT License
// Copyright (c) 2020 biud436
// ---------------------------------------------------------------
// Free for commercial and non commercial use.
//=... |
export default {
name: 'grid',
fit: true, // whether to fit the viewport to the graph
//padding: 30, // padding used on fit
//boundingBox: undefined, // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h }
//avoidOverlap: true, // prevents node overlap, may overflow boundingBox if not enough space
... |
import React, { useState, useEffect } from "react"
import { Link, graphql } from "gatsby"
import Layout from '../components/Layout'
import Img from "gatsby-image"
const Theme = (props) => {
const { title, description, logo } = props.data;
return (
<Layout>
<div className="content">
<Img fluid={l... |
/*
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.lang.functional.multirec"]){
dojo._hasResource["dojox.lang.functional.multirec"]=true;
dojo.pr... |
/*
* Copyright 2017 StreamSets Inc.
*
* 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 applicable law or agreed... |
/**
* Copyright 2015 The AMP HTML Authors. 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 require... |
require('dotenv').config()
const { expect } = require('chai')
const Ringover = require('../index')
describe('addNumberContactByID', function() {
this.timeout(0)
const { TEST_TOKEN, TEST_CONTACT_ID } = process.env
const clientInvalid = new Ringover('invalidtoken')
const client = new Ringover(TEST_TOKEN)
cont... |
/* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
/* ******************************************
* @eonZ041e
*
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports)
: typeof define === 'function' && define.amd ? define(['exports'], factory)
: (factory((global.eonZ041e = global.eonZ041e |... |
import { CREATE_CHANNEL } from '../actions/actionsTypes';
const initialState = {
isFetching: false,
failure: false,
result: '',
error: ''
};
export default function messages(state = initialState, action) {
switch (action.type) {
case CREATE_CHANNEL.REQUEST:
return {
...state,
isFetching: true,
f... |
var $ = require("../../core/renderer"),
window = require("../../core/utils/window").getWindow(),
domAdapter = require("../../core/dom_adapter"),
eventsEngine = require("../../events/core/events_engine"),
clickEvent = require("../../events/click"),
extend = require("../../core/utils/extend").extend,
... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
//Mongo Keys
const ExerciseSchema = new Schema({
type: String,
name: String,
distance: Number,
duration: Number,
weight: Number,
sets: Number,
reps: Number
});
const Exercise = mongoose.model("Exercise", ExerciseSchema);... |
var express = require('express');
var router = express.Router();
var url= require('url');
var querystring= require('querystring');
var mongo= require("mongodb");
var events= require('events');
var eventEmitter= new events.EventEmitter();
//mongodb参数
var host= 'localhost';
var port= 27017;
var db= "lanzhouPOI";
var glo... |
import Stream from './presenter';
import { shallow } from 'enzyme';
describe('Stream', () => {
const props = {
tracks: [{ origin: { title: 'x' }}, { origin: { title: 'y' }}],
};
it('shows two elements', () => {
const element = shallow(<Stream { ...props } />);
expect(element.find('.track')).to.ha... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const NoteSchema = new Schema({
userID: {
type: String,
trim: false
},
title: {
type: String,
trim: false,
},
note: {
type: String,
trim: false
},
noteCreated: {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./Tab"), exports);
tslib_1.__exportStar(require("./Tabs"), exports);
tslib_1.__exportStar(require("./TabContent"), exports);
tslib_1.__exportStar(require("./TabContentBody"), expo... |
import React, {Component, Fragment} from 'react'
import {Form, Segment, Button} from 'semantic-ui-react'
import {format} from 'date-fns'
class SingleReservation extends Component {
constructor(props) {
super(props)
this.handleSubmit = this.handleSubmit.bind(this)
}
handleSubmit(event) {
event.preven... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeIndexOperation = exports.index = void 0;
/*
* Copyright 2021 Algolia
*
* 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 ... |
import Editor from './editor.vue';
export default Editor; |
import { makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles((theme) => ({
table: {
textTransform: 'capitalize'
},
tableNav: {
display: 'flex',
justifyContent: 'space-between',
margin: theme.spacing(1),
paddingLeft: theme.spacing(1),
paddingRight: theme.spaci... |
class Player {
constructor() {
this.name = null;
this.index = null;
this.positionX = 0;
this.positionY = 0;
}
//players - player1 player2
// update the player name, player xposition and yposition in the database
addPlayer() {
var playerIndex = "players/player" + this.index;
if (this.ind... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.