text stringlengths 2 1.04M |
|---|
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
TextField,
} from '@material-ui/core';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
class FlashcardboxEditModal extends Component {
state = {
fcb_name: '',
fcb_description: '... |
const path = require('path');
/**
* default configuration
*/
const config = {
/**
* project structure
*/
path_base: '.',
dir_src: 'src',
dir_dist: 'dist',
/**
* webpack configuration
*/
webpack: {
performance: {
hints: false
},
stats: {
colors: true,
modules: tr... |
var fxNow, timerId,
rfxtypes = /^(?:toggle|show|hide)$/,
rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
rrun = /queueHooks$/,
animationPrefilters = [ defaultPrefilter ],
tweeners = {
"*": [function( prop, value ) {
var end, unit,
tween = this.createTween( prop, value ),
part... |
/* @flow */
import config from '../config'
import { initProxy } from './proxy'
import { initState } from './state'
import { initRender } from './render'
import { initEvents } from './events'
import { mark, measure } from '../util/perf'
import { initLifecycle, callHook } from './lifecycle'
import { initProvide, initInj... |
const value = /*Object.seal*/({
/** @type {IPAddress[]} */
listenerForbiddenIPs: [],
/** @type {string[]} */
listenerAcceptedOrigins: [],
listenerMaxConnections: 100,
listenerMaxClientDormancy: 1000 * 60,
listenerMaxConnectionsPerIP: -1,
listeningPort: 8081,
serverFrequency: 25,
... |
'use strict';
const types = require('babel-types');
function isModuleNode(node) {
return types.isModuleDeclaration(node);
}
function isClassMethodBody(block) {
return types.isClassMethod(block.container);
}
function isModule(block) {
return block.node.body.some(isModuleNode);
}
module.exports = {isModule, is... |
import config from 'config';
import level from 'level';
console.log('\nopening level database');
console.log(config.LEVEL_DB_PATH);
const db = level(config.LEVEL_DB_PATH); // the levelDB database we're going to create
console.log('\nlevel database is open');
export default db; |
import axios from 'axios';
export const USER_API_BASE_URL = 'https://dev-api.pushleopard.com/';
class axiosInstance {
login(credentials) {
return axios.post(USER_API_BASE_URL + "rest-auth/login/", credentials);
}
getUserkey() {
return (localStorage.getItem('key'));
}
getUserI... |
const { describe, it } = require('mocha')
const assert = require('assert')
const bitcoin = require('../../')
const regtestUtils = require('./_regtest')
const regtest = regtestUtils.network
function rng () {
return Buffer.from('YT8dAtK4d16A3P1z+TpwB2jJ4aFH3g9M1EioIBkLEV4=', 'base64')
}
describe('bitcoinjs-lib (trans... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-eval-err.case
// - src/dstr-binding/error/cls-decl-meth-static-dflt.template
/*---
description: Evaluation of property name returns an abrupt completion (static class expression method (default parameter))
esid: sec-... |
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
*/
THREE.OrbitControls = function ( object, domElement ) {
this.object = object;
this.domElement = ( domElement !== undefined ) ... |
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
var assert = require('assert');
var util = require('util');
var Filter = require('./filter');
var Protocol = require('../protocol');
///--- API
function AndFilter(options) {
if (typeof (options) === 'object') {
if (!options.filters || !Array.isArray... |
export * from "./ChatList";
export * from "./Chat";
export * from "./Welcome";
export * from "./Loader";
export * from "./UserProfile";
export * from "./ChatRequests";
export * from "./SettingModal"; |
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within ... |
import { AppConfig } from 'blockstack'
export const appConfig = new AppConfig(['store_write'])
export const HIGHLIGHTS_FILENAME = '{ORIGINAL_PDF_FILE}_highlights.json' |
/* eslint-disable camelcase */
import express from 'express'
import get from 'lodash/get'
import pick from 'lodash/pick'
import {RESET_PASSWORD_SECRET} from '../configs'
import {VERSION_API} from '../constants'
import {authenticate, ensureRefreshToken, requireStatusRole} from '../middlewares/auth'
import sendEmail from... |
/**
* @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
*/
import * as tslib_1 from "tslib";
import { LocationStrategy } from '@angular/common';
import { Attribute, Directive, ... |
import { inject as service } from '@ember/service';
import { alias } from '@ember/object/computed';
import Component from '@ember/component';
import { computed } from '@ember/object';
import { engines } from 'vault/helpers/mountable-secret-engines';
import { methods } from 'vault/helpers/mountable-auth-methods';
import... |
import React from 'react'
const Instagram = props => (
<svg
width="40"
height="40"
viewBox="0 0 24 24"
strokeWidth="1.1"
fill="none"
stroke="#fff"
strokeLinecap="round"
strokeLinejoin="round"
{...props}
>
<rect x="2" y="2" width="20" height="20" rx="5" ry="5" />
<g fill=... |
export default function HelixCanvas(targetName) {
this.logEnabled = false;
this.log("HelixCanvas");
this.targetName = targetName;
this.target = $("#" + this.targetName);
// settings:
this.stageColor = "#FFFFFF";
this.dotHSLA = "hsla(270,100%,85%,255)"; // hsla(hue, saturation, lightne... |
/**
* 项目配置参数聚合
*/
//软件版本
const {version}=require('../../../package.json')
//获取当前环境host
let host = document.location.protocol + '//' + document.location.hostname
module.exports = {
name: '管理系统',
prefix: 'ERP',
description: '致力于打造最易于使用的管理系统',
footerText: `Stan 版权所有 © 2017 由 Stan 支持 版本:${version}`,
logoSrc:... |
const mongoose = require('mongoose');
const bcrypt = require('bcrypt');
const passport = require('passport');
const userSchema = mongoose.Schema(
{
name: {
type: String,
required: true,
trim: true,
lowercase: true,
},
email: {
type: String,
required... |
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = require('./_an-object');
var dPs = require('./_object-dps');
var enumBugKeys = require('./_enum-bug-keys');
var IE_PROTO = require('./_shared-key')('IE_PROTO');
var Empty = function () {/* empty */};
var PROTOTYPE = 'prototype';
// Create object wit... |
import React from "react";
import { useStaticQuery, graphql } from "gatsby";
import Img from "gatsby-image";
/*
* This component is built using `gatsby-image` to automatically serve optimized
* images with lazy loading and reduced file sizes. The image is loaded using a
* `useStaticQuery`, which allows us to load t... |
var dcApp = angular.module('iMotDataCollector')
.controller('downloadCtrl', function($scope, DcMediaRecorder) {
videosContainer = document.querySelector('#videoContainer');
// dcMediaRecorder.vidUrl = URL.createObjectURL(blob);
var vidUrl = DcMediaRecorder.vidUrl
var aref = document.createElement('... |
import {createStore, applyMiddleware} from 'redux';
import {persistStore} from 'redux-persist';
import thunk from 'redux-thunk';
import createRootReducer from './configureReducer';
const middlewares = [thunk];
export const store = createStore(
createRootReducer,
applyMiddleware(...middlewares),
);
export const p... |
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// @tags: [assumes_unsharded_collection]
t = db.update_addToSet1;
t.drop();
o = {
_id: 1,
a: [2, 1]
};
t.insert(o);
as... |
/**
* @author: @AngularClass
*/
const webpack = require('webpack');
const helpers = require('./helpers');
/*
* Webpack Plugins
*/
// problem with copy-webpack-plugin
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ForkCheckerPlugin = requir... |
'use strict'
const t = require('tap')
const zlib = require('../')
// String "test" encoded with dictionary "dict".
const input = Buffer.from([0x78, 0xBB, 0x04, 0x09, 0x01, 0xA5])
{
const stream = new zlib.Inflate()
stream.on('error', err =>
t.match(err, {
message: 'zlib: Missing dictionary',
errn... |
var mysql = require("mysql");
var password = require("../password")
var connection = mysql.createConnection({
port: 3306,
host: "localhost",
user: "root",
password: "password",
database: "brokerhub"
});
connection.connect(function(err) {
if(err) {
console.error("error connection: " + err.stack);
return;
}
... |
export const validateEmail = value => {
value = String(value)
if (!value || value === '') {
return false
}
if (value !== '') {
const reg = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
if (!reg.test(value)) {
return false
}
}
return true
}
export const validateMobile... |
'use strict';
var express = require('express');
var controller = require('./recommendation.controller');
var router = express.Router();
router.get('/:longitude/:latitude', controller.location);
router.get('/', controller.index);
router.get('/:id', controller.show);
router.post('/', controller.create);
router.put('/:... |
import { DisplayMode } from "../../enums/DisplayMode";
import { Orientation } from "../../enums/Orientation";
export class AlControlPanel {
constructor() {
this.boundingBoxEnabled = false;
this.displayMode = DisplayMode.MESH;
this.orientation = Orientation.CORONAL;
this.graphEnabled ... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
export default class Vector {
constructor(...values) {
values.forEach((value, i) => {
this[i] = value;
});
this.length = values.length;
}
negate() {
return new this.constructor(...new Array(this.length).fill().map((_, i) => -this[i]));
}
add(other) {
return new this.constructor(...ne... |
//// [/src/app/module.js]
"use strict";
"myPrologue";
"myPrologue3";
"myPrologue2";
var myGlob = 20;
define("file1", ["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.x = 10;
console.log(exports.x);
});
define("file... |
const Discord = require("discord.js");
const fs = require('fs');
var Language = require('/app/Languages/English.json');
module.exports.run = async (client, message, args) => {
if (client.config.languages[message.guild.id] && client.config.languages[message.guild.id] == "vie") Language = require('/app/Languages/Vietna... |
define((function () {
const localVariable = 'local';
try {
globalVariable = localVariable;
} catch (error) {
console.log('use strict; detected', error);
Function("g", "globalVariable = g")(localVariable);
}
})); |
import { program } from "commander";
import loadConfig from "@zlanguage/config";
import loadPlugins from "@zlanguage/plugin/loader";
program.version("0.6.0");
program.name("zcomp");
program.description("The Z programming language transpiler.");
const config = loadConfig();
const plugins = loadPlugins(config);
// All... |
/**
* @author margaret.iinteranfac96@animalzero.com
* @license MIT
*
* MIT License
*
* Copyright (c) 2019-2020 margaret.iinteranfac96@animalzero.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... |
'use strict';
// This test makes sure that when throwing from within a timer's callback,
// its active domain at the time of the throw is not the process' active domain
// for the next timers that need to be processed on the same turn of the event
// loop.
const common = require('../common');
const assert = require('... |
import React from 'react'
import { withRouter } from 'next/router'
import { CROWDFUNDING_PLEDGE } from '../../lib/constants'
import PledgeForm from '../Pledge/Form'
import PledgeReceivePayment from '../Pledge/ReceivePayment'
import { PSP_PLEDGE_ID_QUERY_KEYS } from '../Payment/constants'
import SectionContainer from '... |
export { flatten } from "./flatten";
export { fetcher } from "./fetcher";
export { apiCall, createApiUrl } from "./api";
export {
setToken,
unsetToken,
getUserFromLocalCookie,
getIdFromLocalCookie,
getTokenFromLocalCookie,
getUserFromServerCookie,
getIdFromServerCookie,
getTokenFromServe... |
export function LazyloadConfig($ocLazyLoadProvider) {
'ngInject'
$ocLazyLoadProvider.config({
debug: true,
events: true,
modules: [{
name: 'isotope',
files: [
'assets/plugins/imagesloaded/imagesloaded.pkgd.min.js',
... |
export match from './match';
export matches from './matches';
export actions from './actions'; |
var searchData=
[
['c_5fdialect_5',['C_DIALECT',['../_c_make_c_compiler_id_8c.html#a07f8e5783674099cd7f5110e22a78cdb',1,'CMakeCCompilerId.c']]],
['changeperiod_6',['changePeriod',['../class_i_periodic_job.html#a1ba29d18c93a8582265e3a3fec0b2325',1,'IPeriodicJob::changePeriod()'],['../class_i_periodic_job_controller.... |
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool... |
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import theme from '../../theme'
import MenuButton from './MenuButton'
import { NAVIGATION_HEIGHT } from '../../constants'
import NavLink from './NavLink'
const Wrapper = styled.div`
width: 100%;
height: ${NAVIGATION... |
import React, { useState, useMemo } from 'react'
import './CommentsTree.css'
function getTree(list) {
if (!list) {
return []
}
const roots = []
const childrenByParentId = {}
list.forEach((item) => {
if (!item.parentId) {
roots.push(item)
return
}
if (!childrenByParentId[item.par... |
import Draw from './Draw'
import { getTranslation } from '../helper'
import { Marker, divIcon, polygon, Util } from '@/core'
Draw.Polygon = Draw.Line.extend({
initialize(map) {
this._map = map;
this._shape = 'Polygon';
this.toolbarButtonName = 'drawPolygon';
},
_finishShape(e) {
// if self inters... |
/* eslint-disable no-case-declarations */
/* eslint-disable no-unused-vars */
/* eslint-disable no-irregular-whitespace */
/**
* This source code below is free, please DO NOT sell this in any form!
* Source code ini gratis, jadi tolong JANGAN jual dalam bentuk apapun!
*
* If you copying one of our source code, ple... |
new Vue({
el: '',
data: {
},
methods: {
}
}); |
import Keyboard from './input/Keyboard.js';
import Mouse from './input/Mouse.js';
import State from './State.js';
import LoadingState from './state/LoadingState.js';
import Paddle from './Paddle.js';
import Ball from './Ball.js';
export default class BoyceBall {
constructor(ctx) {
this.ctx = ctx;
t... |
import DatePicker from '../date-picker/locale/cs_CZ';
import TimePicker from '../time-picker/locale/cs_CZ';
import Calendar from '../calendar/locale/cs_CZ';
import Pagination from '../rc-components/pagination/locale/cs_CZ';
export default {
locale: 'cs',
Pagination: Pagination,
DatePicker: DatePicker,
T... |
function messageNotice(message)
{
$("#messageBox").html(message);
$("#messageBox").show();
setInterval(function(){$("#messageBox").hide();},3000);
} |
define(["require", "exports", "../../../Styling", "../../../Utilities", "../BaseButton.styles", "../SplitButton/SplitButton.styles", "../BaseButton.classNames"], function (require, exports, Styling_1, Utilities_1, BaseButton_styles_1, SplitButton_styles_1, BaseButton_classNames_1) {
"use strict";
Object.defineP... |
var searchData=
[
['imagecontent',['ImageContent',['../struct_jmcpp_1_1_image_content.html',1,'Jmcpp']]]
]; |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
// all the important Keys and numbers-----------------------------------
// Please Donot Give this data to any one this may cause you a problem
const API_KEY = "5e3749d7-73f0-4c2a-bb6c-dda24d7c6a07";
const DEVICE_ID = "BOLT5780232";
const USERNAME = "1";
const PASSWORD = "1";
// ========================================... |
export default function activated(list, key) {
key = key || 'props';
return list.some(d => this[key].activated && this[key].activated.config.id === d);
} |
import '../assets/styles/index.scss';
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './Root';
import routes from './routes';
const renderApp = (appRoutes) => {
render(
<AppContainer>
<Root routes={appRoutes} />
</AppCo... |
const fkill = require('fkill');
fkill(':9000', {
force: true,
tree: true,
})
.then(() => {
console.log('Killed process');
})
.catch(e => {
console.log("Couldn't kill process: ", e);
}); |
import { configure } from '@storybook/react';
// automatically import all files ending in *.stories.js
configure(require.context('../src/stories', true, /\.stories\.js$/), module);
configure(require.context('../src', true, /(components|layouts)\/[^/]+\/stories.js$/), module); |
/* eslint-disable */
import React, { useRef, useState, useEffect, useImperativeHandle } from 'react';
import styled from 'styled-components';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Ve... |
define(['backbone', 'models/location_site', 'views/location_site'], function (Backbone, LocationSiteModel, LocationSiteView) {
return Backbone.Collection.extend({
model: LocationSiteModel,
url: "/api/location-site/",
viewCollection: [],
renderCollection: function () {
var... |
const { Mixin } = require('hops-mixin');
class WebpackStartMixin extends Mixin {
registerCommands(yargs) {
const { name } = this.config;
yargs.command(
this.configureCommand({
command: 'start',
describe: `Build and serve ${name}`,
builder: {
production: {
... |
var _regeneratorRuntime = require("@babel/runtime-corejs3/regenerator/index.js");
void
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
case "end":
return _conte... |
'use strict';
var error = require('../../error');
var onData = require('./_data_listener');
var onEnd = require('./_end_listener');
var onError = require('../common/_error_listener');
/**
* Respond to HTTP/s data
*
* @param {Response}
* @returns {Promise~Response}
*/
module.exports = function onResponse(res) {
... |
/*
* jQuery FlexSlider v2.1
* Copyright 2012 WooThemes
* Contributing Author: Tyler Smith
*/
;(function(d){d.flexslider=function(i,k){var a=d(i),c=d.extend({},d.flexslider.defaults,k),e=c.namespace,p="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,t=p?"touchend":"click",l="vertical... |
const { NotImplementedError } = require('../extensions/index.js');
// function ListNode(x) {
// this.value = x;
// this.next = null;
// }
module.exports = function removeKFromList(l, k) {
let m = l;
while(m){
if(m.value === k){
m.value = m.next.value;
m.next = m.next.next... |
var baseClamp = require('./_baseClamp'),
baseRandom = require('./_baseRandom'),
toArray = require('./toArray'),
toInteger = require('./toInteger');
/**
* Gets `n` random elements at unique keys from `collection` up to the
* size of `collection`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category C... |
/*******************************************
* @xs
*/
(function (global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) :
typeof define === "function" && define.amd ? define(["exports"], factory) :
(factory((global.xs = global.xs || {})))
}(this, function (ex... |
import Container from "../UI/Container";
import chefLeftPng from "../../assets/chef-left.png";
import Title from "../UI/Title";
function NewsLetter() {
return (
<section className="py-8 bg-gray-100 flex justify-center items-center">
<Container>
<div className="w-full flex items-center justify-cent... |
/* global angular */
'use strict';
/**
* @ngdoc directive
* @name bsValidation
* @requires BsValidationService
*/
angular.module('bootstrap.angular.validation').directive('bsValidation', [
'$timeout', '$injector', 'BsValidationService', 'bsValidationConfig',
function ($timeout, $injector, validationService, b... |
var structio_1_1error_1_1base =
[
[ "format_error_message", "structio_1_1error_1_1base.html#a7d9ff6a31b716a24f056cf8a3e15191d", null ],
[ "what", "structio_1_1error_1_1base.html#a8ab2a048ea0a9b698e28626801fa1088", null ],
[ "error_message_buffer", "structio_1_1error_1_1base.html#a8e38f86a7afea1f0c6e6cac0c54... |
export function calculateWinner(squares) {
const lines = [
[0, 1, 2],
[3, 4, 5],
[6, 7, 8],
[0, 3, 6],
[1, 4, 7],
[2, 5, 8],
[0, 4, 8],
[2, 4, 6],
];
for (let i = 0; i < lines.length; i++) {
const [a, b, c] = lines[i];
if (squares[a] && squares[a] === squares[b] && square... |
/**
* @license
* Copyright 2020 Google LLC. 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
*... |
export const SELECT_CHAT_CONTENT = 'SELECT_CHAT_ADDRESS'
export const ADD_SENDER_ADDRESS = 'SET_CHAT_CONTENT'
export function selectChatContent (address) {
return {
type: SELECT_CHAT_CONTENT,
address
}
}
export function addSenderAddress (senderAddress) {
return {
type: ADD_SENDER_ADDRESS,
sende... |
const calcAverage = (s1,s2,s3) => (s1+s2+s3) / 3;
const checkWinner = function (s1,s2,s3) {
const avgDol = calcAverage(85,54,41);
const avgkol = calcAverage(23,34,27);
if (avgDol > 2*avgkol){
console.log('Dol is winner!');
}else if(avgkol > 2*avgDol) {
console.log('Kol is winner!');
... |
/*! AdminLTE app.js
* ================
* Main JS application file for AdminLTE v2. This file
* should be included in all pages. It controls some layout
* options and implements exclusive AdminLTE plugins.
*
* @Author Almsaeed Studio
* @Support <http://www.almsaeedstudio.com>
* @Email <support@almsaeedstudio.... |
const path = require("path")
exports.createPages = async ({ actions, graphql }) => {
const { createPage } = actions
const { data } = await graphql(`
query {
allContentfulCreator {
edges {
node {
slug
name
}
}
}
}
`);
data.allConten... |
import React from 'react';
import { useAPI } from '@app/common/hooks/api';
export const LoadAPI = ({ url, options = {}, loading: Loader, success: Success, error: Error }) => {
const { loading: l, data: d, error: e, status: s } = useAPI(url, options);
if (l && Loader) return <Loader />;
if (l) return null;
if... |
'use strict';
var containerTpl = document.querySelector('#container-template').innerHTML;
var container = document.querySelector('#container');
/**
* Data in the form for JavaScript object.
*/
var jsonData = {
"message": "Hello World!",
"name": "Ashwin Hegde"
};
/**
* Compile innerHTML using compile method.
... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
/* eslint react/prop-types:0 */
import React from 'react';
import thunk from 'redux-thunk';
import promiseMiddleware from 'redux-promise-middleware';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import { shallow } from 'enzyme';
import configureStore from 'redux-mock-store';... |
Ext.define('Fiddle.model.Patient', {
extend: 'Ext.data.Model',
idProperty: 'insuranceCode',
fields: ['name', 'address', 'telephone']
}); |
import React from "react";
import "./style.css";
export function CardItemSearched(props) {
return (
<div className="card">
<div className="card-body">
{props.books.map((book, index) => {
return (
<li key={index} className="search-list... |
/**
* Filter for humanizing durations
* Filter uses moment.js function moment.duration().humanize()
*/
(function(){
'use strict';
angular
.module('starter')
.filter('duration', duration);
duration.$inject = [];
function duration(){
return function(input){
... |
if (process.env.NODE_ENV !== "production") {
require("dotenv").config();
}
const express = require("express"),
app = express(),
path = require("path"),
mongoose = require("mongoose"),
bodyParser = require("body-parser"),
cookieSession = require("cookie-session"),
reglagesServices = require(... |
let dolp1 = 85, dolp2 = 54, dolp3 = 41;
let koala1 = 23, koala2 = 34, koala3 = 27;
const calcAverage = (x, y, z) => (x + y + z)/3;
const avgDolphins = calcAverage(dolp1, dolp2, dolp3);
const avgKoala = calcAverage(koala1, koala2, koala3);
console.log(avgDolphins, avgKoala);
function checkWinner(a, b){
if(a >= b*... |
;
// license: https://mit-license.org
//
// MONKEY: Memory Object aNd KEYs
//
// Written in 2020 by Moky <albert.moky@gmail.com>
//
// =============================================================================
// The MIT License (MIT)
//
// Copyright (c) 2020 Albert Moky
//
// Permissi... |
export default async function listFolders(event, data) {
const {page, perpage, isDeleted} = data;
const {Folder} = this.params.models;
const where = isDeleted ? ['deletedAt', '>', 0] : {deletedAt: 0};
const folders = await Folder.find(null, where, {skip: (page - 1) * perpage, limit: perpage});
const total =... |
import React from 'react';
import { PropTypes } from 'prop-types';
import { Card, Form } from 'react-bootstrap';
import * as yup from 'yup';
class ConfirmationCode extends React.Component {
constructor(props) {
super(props);
this.state = {
confirmation_code: '',
errors: {},
};
this.valida... |
/* jshint esversion: 6 */
module.exports = angular.module("scrabbleRackModule", []); // eslint-disable-line no-undef |
import React, { Component } from "react";
import { connect } from "react-redux";
import cx from "classnames";
import uuid from "uuid/v4";
import { DragSource, DropTarget } from "react-dnd";
import { TriangleIcon } from "../library/Icons";
import AddCommandButton from "./AddCommandButton";
import { FormField } from "../... |
/*
* Project: ZilPay-wallet
* Author: Rinat(lich666dead)
* -----
* Modified By: the developer formerly known as Rinat(lich666dead) at <lich666black@gmail.com>
* -----
* Copyright (c) 2019 ZilPay
*/
import { FIELDS, DEFAULT, DEFAULT_TOKEN } from 'config'
import { BrowserStorage, BuildObject } from 'lib/storage'
i... |
#!/usr/bin/env node
'use strict';
const http = require('http');
const url = require('url');
const fs = require('fs');
const path = require('path');
const networkTrace = 'network-trace.txt';
const port = 9000;
let firstRequestTime;
if (Number.isFinite(process.argv[2])) {
port = Number(process.argv[2]);
if (process... |
/**
* Copyright 2020 ForgeRock AS. All Rights Reserved
*
* Use of this code requires a commercial software license with ForgeRock AS.
* or with one of its affiliates. All use shall be exclusively subject
* to such license between the licensee and ForgeRock AS.
*/
import { shallowMount } from '@vue/test-utils';
im... |
import React from 'react'
import PropTypes from 'prop-types'
import Img from 'gatsby-image'
import Image from '../../image'
import Button from '../../ui/button'
import {
BoxImgWrapper,
BoxImgInner,
BoxImgMediaWrap,
DefaultImage,
BoxImgContent,
HeadingWrap,
TextWrap,
BoxImgBtnWrap} f... |
/*
object-assign
(c) Sindre Sorhus
@license MIT
/** @license React v16.4.1
* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
/** @license React v16.4.1
* react-dom.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.