text
stringlengths
2
1.05M
var assert = module.exports = require('assert'); assert.isClient = function (client) { assert.isObject(client); !client.apiKey || assert.match(client.auth(), /^Basic .+$/); !client.token || assert.match(client.auth(), /^Bearer .+$/); } assert.isUser = function (user) { assert.isObject(user); assert.include...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d6bf53a"],{"057f":function(t,r,n){var e=n("fc6a"),i=n("241c").f,o={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(r){return c.slice()}};t.exports.f=funct...
class employee { constructor(firstName, lastName, roleID, managerID) { this.firstName = firstName; this.lastName = lastName; this.roleID = roleID; this.managerID = managerID; } } module.exports = employee;
const Joi = require('joi') const baseValidator = require('../../helper/validator.joi') const schema = Joi.object({ email: Joi .string() .email() .required() .label('E-mail'), password: Joi .string() .min(7) .max(100) .required() .label('...
var sizes = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 } var createHmac = require('create-hmac') var checkParameters = require('../lib/precondition') var defaultEncoding = require('../lib/default-encoding') var Buffer = require('safe-buf...
/* Implement a function called countUniqueValues which appects a sorted array, and counts the unique values in the array. There can be negative numbers in the array, but it will always be sorted. */ function countUniqueValues(arr) { let arrLength = arr.length; if (arrLength === 0) return 0; let i = 0; for (let ...
'use strict'; const _ = require('lodash'); const Model = require('../../').Model; const expect = require('expect.js'); const Promise = require('bluebird'); module.exports = session => { describe('Composite keys', () => { let A; let B; before(() => { return session.knex.schema .dropTableIf...
/* @generated */ // prettier-ignore if (Intl.NumberFormat && typeof Intl.NumberFormat.__addLocaleData === 'function') { Intl.NumberFormat.__addLocaleData({"data":{"so-DJ":{"units":{"simple":{"degree":{"long":{"other":"{0} digrii"},"short":{"other":"{0} dig"},"narrow":{"other":"{0} dig"},"perUnit":{}},"hectare":{"long...
import * as constants from './constants'; import * as actions from './balance'; it('creates an action to set the balance', () => { const balance = 0; const expectedAction = { type: constants.SET_BALANCE, balance }; expect(actions.setBalance(balance)).toEqual(expectedAction); }); it('creates an action to deposi...
require('dotenv').config(); const { readFileSync, unlinkSync } = require('fs'); const { argv } = require('yargs'); const FSCredStore = require('../utils/fs-cred-store'); const MongoCredStore = require('../utils/mongo-cred-store') const { browserCommands } = require('./custom-commands'); const { browserConf } = requi...
YUI.add("base-base",function(b){var g=b.Lang,e="destroy",i="init",h="bubbleTargets",c="_bubbleTargets",j=b.BaseCore,f=b.AttributeCore,a=b.Attribute;function d(){j.apply(this,arguments);}d._ATTR_CFG=a._ATTR_CFG.concat("cloneDefaultValue");d._ATTR_CFG_HASH=b.Array.hash(d._ATTR_CFG);d.NAME="base";d.ATTRS=f.prototype._prot...
"use strict"; var configParser_1 = require('./configParser'); /** * The taskScheduler keeps track of the spec files that needs to run next * and which task is running what. */ var TaskQueue = (function () { // A queue of specs for a particular capacity function TaskQueue(capabilities, specLists) { th...
// Test mongos implementation of time-limited operations: verify that mongos correctly forwards max // time to shards, and that mongos correctly times out max time sharded getmore operations (which // are run in series on shards). // // Note that mongos does not time out commands or query ops (which remains responsibil...
import { get } from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; // Components import { Item, Select } from 'components/Form'; // Entities import { getTablespaceList } from 'entities/tablespaces/selector'; const EditTablespace = ({ currentTablespace, name, tablespaces, value, }...
import setup from '../setup-base'; import desired from './desired'; import _ from 'lodash'; describe('testapp - wait-for-apps', function () { let test = function (desc, script, checkAfter) { script = `env.currentTest = "${desc}"; ${script}`; describe(desc, function () { let session = setup(this, _.def...
module.exports = { 'secret' : 'secret', 'dbURI' : 'mongodb://localhost:27017/myproject' };
import * as Error from '../error'; import * as Ast from './ast'; import * as TypeAst from './typeAst'; export const createScope = () => { return {}; }; export const createChildScope = (parentScope) => { return Object.create(parentScope); }; export const set = (scope, name, value) => { scope[name] ...
/**! @license handlebars v4.1.0 Copyright (C) 2011-2017 by Yehuda Katz 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...
/******/ (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...
const handleDomo = (e) => { e.preventDefault(); $("#domoMessage").animate({width:'hide'}, 350); if ($("#domoName").val() == '' || $("#domoAge").val() == '') { handleError("RAWR! All fields are required"); return false; } sendAjax('POST', $("domoForm").attr("action"), $("#domoForm"...
module.exports = { siteMetadata: { title: `Gatsby Default Starter`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ { resolve: ...
import React, { Component } from "react"; import Header from "./views/Header"; import AppRouter from "./components/shared/routers/AppRouter"; /** * Happy coding! * React Template by Lucas Pelloni */ class App extends Component { render() { return ( <div> <Header height={"100"} /> <AppR...
Microsoft.WebPortal.Views.List.TablePageRenderer = function (list) { /// <summary> /// Renders a paged list. The footer will contain links used to navigate to pages. /// </summary> /// <param name="list">The list to render.</param> this.base.constructor.call(this, list, "tablePageListBody-template...
const { networkInterfaces, NetworkInterfaceInfo } = require('os'); const ora = require('ora'); const chalk = require('chalk'); const inquirer = require('inquirer'); const spinner = ora(); /** * @description: success tip * @Date: 2020-03-16 13:06:12 */ function successTip(msg) { spinner.succeed( console.log(...
import esbuildServe from 'esbuild-serve'; esbuildServe( { entryPoints: ['./src/app.tsx'], bundle: true, // minify: true, sourcemap: true, // target: ['chrome58', 'firefox57', 'safari11', 'edge16'], tsconfig: 'tsconfig.json', outfile: './public/bundle.js', // splitting: true, // ch...
"use strict"; class MakeCards extends BaseComponent { static async pInit () { MakeCards._ = new MakeCards(); await MakeCards.utils.pLoadReducedData(); await MakeCards._.pInit(); window.dispatchEvent(new Event("toolsLoaded")); } constructor () { super(); this._list = null; this._modalFilterItems = ...
import CollectionBrowsePage from '@/pages/CollectionBrowsePage' import render from '../../test-utils/render' describe('CollectionBrowsePage', () => { const options = { propsData: { query: { provider: 'foo', }, }, mocks: { $store: { state: { query: { ...
/*------------------------------------------------------------------------------- # Copyright © 2019 by California Community Colleges Chancellor's Office # # 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 th...
/*! ========================================================= * Argon Dashboard React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https:/...
module.exports = function(config) { config.set({ frameworks: ["mocha", "chai"], files: ["js/todos.js", "test/todo.test.js"], browsers: ["PhantomJS"], singleRun: true }); };
var iTunes = require('../') , conn = null , t1 , t2 iTunes.createConnection(onConn); function onConn (err, c) { if (err) throw err; conn = c; conn.selection( onSelection ); conn.selection(0, onFirstSelection); } function onSelection (err, selection) { if (err) throw err; if (selection.length > 0)...
/** * Created by Raphael Karanja on 2019-01-04. */ import React, {Component} from 'react'; import AuthorStore from '../../../../Flux/stores/AuthorStores'; import AuthorActions from '../../../../Flux/actions/AuthorActions' export default class extends Component { constructor(props) { super(props); ...
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES6 for(var _iterator = X[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormal...
'use strict'; import galleryItemsData from './gallery-items.js'; const gallery = document.querySelector('.js-gallery'); const test = createGallery(galleryItemsData); function createGallery(galleryItemsData) { galleryItemsData.forEach(function(galleryItemData, i) { const galleryItem = document.createElement('li...
/* eslint-disable max-len */ const { allValues, edgeGap, edgeSiteMax, gapSiteMax, edgeOnly, gapOnly, siteMaxOnly, columnsOnly, customProperties, } = require('./sharedConfigs'); const Columns = require('../Columns'); /** * Test a method of the Columns class. * * @param {Object} testConfig { * @p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exploreGlobalApiHeaderMetadata = void 0; const constants_1 = require("../constants"); const exploreGlobalApiHeaderMetadata = (metatype) => { const headers = Reflect.getMetadata(constants_1.DECORATORS.API_HEADERS, metatype); ret...
module.exports = { plugins: [ // require('postcss-import'), // require('postcss-discard-comments')({ removeAll: true }), require('tailwindcss')('./src/styles/tailwind.config.js'), // require('postcss-preset-env')({ stage: 1 }), // require('@fullhuman/postcss-purgecss')({ // content: ['src/**/*.css', 'src/...
import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { CHeader, CToggler, CHeaderBrand, CHeaderNav, CHeaderNavItem, CHeaderNavLink, CSubheader, CBreadcrumbRouter, CLink } from '@coreui/react' import CIcon from '@coreui/icons-react' // routes config import routes fro...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var classifiedCategorySchema = new Schema({ name : String, type : String, disableStatus : String, status : String }, { timestamps: true }); var ClassifiedCategory...
//定时 缓存 var MyLocalStorage ={ Cache : { /** * 总容量5M * 存入缓存,支持字符串类型、json对象的存储 * 页面关闭后依然有效 ie7+都有效 * @param key 缓存key * @param stringVal * @time 数字 缓存有效时间(秒) 默认60s * 注:localStorage 方法存储的数据没有时间限制。第二天、第二周或下一年之后,数据依然可用。不能控制缓存时间,故此扩展 * */ put : function(key,stringVal,time){ ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
/******/ (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...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var SadCry = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createEleme...
'use strict'; process.env.SECRET = "toes"; const dotenv = require('dotenv'); dotenv.config(); const server = require('../src/server.js').server; const supergoose = require('@code-fellows/supergoose'); const mockRequest = supergoose(server); const middleware = require('../src/auth/middleware/bearer.js'); const Users = ...
const { ImageFragment } = require('../image/index.js'); const ProductsFragment = ` fragment ProductsFragment on WpProduct { id productId nodeType link description galleryImages { nodes { id title altText mediaItem...
import * as React from "react"; import PropTypes from "prop-types"; import { v4 } from "uuid"; import { GatsbyImage } from "gatsby-plugin-image"; const Gallery = ({ images }) => ( <div> {images.map((image) => ( <div key={v4()}> {image?.url ? ( <img src={image} obje...
/** * @author yamahigashi https://github.com/yamahigashi * * This loader loads FBX file in *ASCII and version 7 format*. * * Support * - mesh * - skinning * - normal / uv * * Not Support * - material * - texture * - morph */ var THREE = require('../three.js'); ( function() { T...
function my_function467(){ //19823498967154687951993517319482kCbJzavEOKDXSjSrayqrCmxYDqXhrtMY } function my_function471(){ //84068505306783362671548669169364zahtIXSmRMIEmMSicfNuDOMQnwAlCJJP } function my_function868(){ //76451678194314147319523523502312MjkIingrbdEdtbHvssjbSGBPiLQZeZmU } function my_function523(){ /...
/* eslint import/no-extraneous-dependencies: ["error", { devDependencies: true}] */ require('dotenv').config({ silent: true }); const path = require('path'); const webpack = require('webpack'); const CleanPlugin = require('clean-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const...
const hasOwnProperty = Object.prototype.hasOwnProperty; export function noop() {}; export function hasOwn(obj, key) { return hasOwnProperty.call(obj, key); }; function extend(to, _from) { for (let key in _from) { to[key] = _from[key]; } return to; }; export function toObject(arr) { var res = {}; for...
Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFile...
import React, { Component } from 'react'; import '../carouselStyle.css'; class SeeBook extends Component { constructor(props) { super(props); this.state = { token: "", loggedIn: false } } componentDidMount() { const token = localStorage.getItem("token"); if (token) { this.se...
const express = require('express'); const MongoClient = require('mongodb').MongoClient; const bodyParser = require('body-parser'); const db = require('../app/config/db'); const app = express(); const port = 8000; app.use(bodyParser.urlencoded({ extended: true })); MongoClient.connect(db.url, (err, database) => { ...
var express = require('express'); var router = express.Router(); router.post('/download',function(req,res,next){ var downloadURL = req.body.downloadURL; res.download(downloadURL); }); module.exports = router;
//Copyright [2020] [Indian Institute of Science, Bangalore] //SPDX-License-Identifier: Apache-2.0 const WEBPAGE_VERSION = true; //simulation inputs NUM_DAYS = 120; //Number of days. Simulation duration SIM_STEPS_PER_DAY = 4; //Number of simulation steps per day. NUM_TIMESTEPS = NUM_DAYS * SIM_STEPS_PER_DAY; // INIT_...
'use strict'; const { COLOR } = require('@data/config'); const { Command, SimplicityEmbed } = require('@structures'); const moment = require('moment'); class ServerInfo extends Command { constructor(client) { super(client, 'serverinfo', { aliases: ['si', 'server', 'svinfo', 'sv', 'guild', 'serverinformati...
import xs from 'xstream'; import {run} from '@cycle/run'; import {div, button, h1, h4, a, makeDOMDriver, DOMSource} from '@cycle/dom'; import {makeHTTPDriver, Response, HTTPSource} from '@cycle/http'; function main(sources) { const requests$ = intent(sources) const {user$, todo$} = model(sources) const vdom$ = v...
import reducer, { initialState } from '../reducer'; import * as types from '../types'; describe('Series relations reducer', () => { it('should have initial state', () => { expect(reducer(undefined, {})).toEqual(initialState); }); it('should change loading state on loading action', () => { const action =...
/* global notFramework */ var CommonNetwork = { addHost: function (uri) { return this.get('host') + uri; }, addProtocol: function (uri) { return this.get('protocol') + uri; }, preloadImages: function (dataArray, fields) { for (var i in dataArray) { for (var f in fields) { if (dataArray[i].hasOwnProper...
"use strict"; // 'npm run prepare' must be run for this to work during testing const WebsocketClient = require("../../../client/clients/WebsocketClient"); window.expectedClient = WebsocketClient; // eslint-disable-next-line camelcase, no-undef window.injectedClient = __webpack_dev_server_client__;
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('a11yhelp', 'fi', { accessibilityHelp: { title: 'Saavutettavuus ohjeet', contents: 'Ohjeen sisällöt. Sulkeaks...
function asyncGeneratorStep(t,i,e,n,o,r,s){try{var a=t[r](s),l=a.value}catch(d){return void e(d)}a.done?i(l):Promise.resolve(l).then(n,o)}function _asyncToGenerator(t){return function(){var i=this,e=arguments;return new Promise((function(n,o){var r=t.apply(i,e);function s(t){asyncGeneratorStep(r,n,o,s,a,"next",t)}funct...
// Important modules this config uses const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') const WebpackPwaManifest = require('webpack-pwa-manifest') const OfflinePlugin = require('offline-plugin') const { HashedModuleIdsPlugin } = require('webpack') const TerserPlugin = require('terser...
 CKEDITOR.lang['gu']={"editor":"રીચ ટેક્ષ્ત્ એડીટર","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"પ્રેસ ALT 0 મદદ માટ","browseServer":"સર્વર બ્રાઉઝ કરો","url":"URL","protocol":"પ્રોટોકૉલ","upload":"અપલોડ","uploadSubmit":"આ સર્વરને મોકલવું","image":"ચિત્ર","flash":"ફ્લૅશ","form":"ફૉર્મ/પત્રક","checkbox...
const RopeSequence = require("rope-sequence") const {Mapping} = require("prosemirror-transform") const {Selection, Plugin, PluginKey} = require("prosemirror-state") // ProseMirror's history isn't simply a way to roll back to a previous // state, because ProseMirror supports applying changes without adding // them to t...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var base_1 = require('./base'); var Response = (...
import React from "react"; import ReactDOM from "react-dom"; import App from "next/app"; import Head from "next/head"; import Router from "next/router"; import PageChange from "components/PageChange/PageChange.js"; import "assets/plugins/nucleo/css/nucleo.css"; import "@fortawesome/fontawesome-free/css/all.min.css"; ...
// All symbols with the `Diacritic` property as per Unicode v5.0.0: [ '\x5E', '\x60', '\xA8', '\xAF', '\xB4', '\xB7', '\xB8', '\u02B0', '\u02B1', '\u02B2', '\u02B3', '\u02B4', '\u02B5', '\u02B6', '\u02B7', '\u02B8', '\u02B9', '\u02BA', '\u02BB', '\u02BC', '\u02BD', '\u02BE', '\u02BF', '\u02C0', ...
test("IFrame", function() { var iframe = document.createElement("iframe"); assert( !!iframe, "iframe supported" ); }); // test("IFrame Seamless", function() { // var iframe = document.createElement("iframe"); // assert( "seamless" in iframe ); // }); test("IFrame Sandbox", function() { var iframe = docume...
export * from './urls.constants'; export * from './form.constants';
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.random = random; /** * @param {String|Number|null} value * @returns {Number} */ function customParseInt(value) { var intVal = parseInt(value, 10); return isNaN(intVal) ? 0 : intVal; } exports.parseInt = customParseIn...
/* * Copyright (c) AXA Group Operations Spain S.A. * * 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,...
// |jit-test| error:TypeError // Binary: cache/js-dbg-64-ff51ddfdf5d1-linux // Flags: // var a = []; for (var i = 0; i < 200; ++i) a.push({}); var p = Proxy.create({fix: function() { return a; }}); Object.preventExtensions(p);
import FaceTime from "../components/apps/FaceTime"; import Terminal from "../components/apps/Terminal"; import Safari from "../components/apps/Safari"; import Bear from "../components/apps/Bear"; import VSCode from "../components/apps/VSCode"; const apps = [ { id: "launchpad", title: "Launchpad", desktop...
/** * * @title 垂直排列的按钮组 * @description 通过`vertical`属性设置按钮组垂直排列 * */ import React, { Component } from 'react'; import ButtonGroup from '../../src'; import Button from 'bee-button'; import Icon from 'bee-icon'; class Demo2 extends Component { render () { return ( <ButtonGroup vertical> ...
import "../App.css"; import React, { useState, useEffect } from "react"; import Nav from "./Nav.js"; import projectData from "../projects.json"; function Projects() { return ( <div className="App"> <Nav /> <div style={{ color: "white", paddingTop: "50px" }}> <h1>My Projects </h1> <div...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 3c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1zm5.14 2.86c-.39.39-.38 1-.01 1.39 1.13 1.2 1.83 2.8 1.87 4.57.09 3.83-3.08 7...
let data = { "body": "<path d=\"M6.5 2.27L20 10.14L6.5 18l-1-1.73l10.53-6.13L5.5 4l1-1.73M20 20v2H5v-2h15z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; export default data;
const utils = require('../../../utils'); /** * TODO: descricao * */ module.exports = class MegaSenaInterpreter { constructor() {} static interpret(user, questionPhrase, mentions) { return questionPhrase.match(/(mega ?sena|loteria)/i); } static get priority() { return 100 }; static ph...
import { createContext, useContext } from 'react' import { makeAutoObservable } from 'mobx' import { find, compact, isEqual, isNull, isNil, isUndefined, has, some, chunk, get, uniq, } from 'lodash' import toast from 'react-hot-toast' import { createClient } from '@supabase/supabase-js' import { ...
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示***************...
import { Color, Mesh, Plane, Program } from 'ogl' import fragment from 'shaders/background-fragment.glsl' import vertex from 'shaders/background-vertex.glsl' import { random } from 'utils/math' export default class { constructor ({ gl, scene, viewport }) { this.gl = gl this.scene = scene this.viewport ...
/*! * Start Bootstrap - New Age v5.0.7 (https://startbootstrap.com/template-overviews/new-age) * Copyright 2013-2020 Start Bootstrap * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-new-age/blob/master/LICENSE) */ !function(t){"use strict";t('a.js-scroll-trigger[href*="#"]:not([href="#"])')...
import React, { useState } from 'react' import ClassNames from 'classnames' import PropTypes from 'prop-types' import Scrollbars from '../Scrollbars' import useSize from '../../hooks/useSize' import './style.css' const getTabTitle = (tab) => { // eslint-disable-line const { htmlKey, tabtitle } = tab.props if (ty...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { refType } from '@mui-magic/utils'; import InputBase from '../InputBa...
/** * Created by Eduardo Luttinger on 05/04/2016. */ angular.module('App') .factory('BusinessLookup', function ($http, $q, CONST_PROXY_URL) { var lookup = {}; var businessIdFound = 0; var businessJson = { business: {}, totalPages: 0, totalRecords: 0 ...
/** * password controller * helps user to reset his password * @author adrienjoly, whyd */ var config = require('../../models/config.js'); var users = require('../../models/user.js'); var md5 = users.md5; var notifEmails = require('../../models/notifEmails.js'); var templateLoader = require('../../templates/templa...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.GiOasis = function GiOasis (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M307.4 20.97c-21.7-.15-43.9 3.68-64.9 9.72C296.7 39.1 344.7 55 364.3 80.71c-39.8-9.4-74.5 34.19-75...
module.exports = exports = joi => (fields = []) => { let fieldsValid; if (fields.length > 0) fieldsValid = joi.string().valid(fields); const rule = joi .array() .items(fieldsValid) .default([]); return rule; };
/** * Copyright 2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><circle cx="6.18" cy="17.82" r="2.18" /><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{TbC0:function(l,n,t){"use strict";t.r(n);var u=t("CcnG"),e=function(){},a=t("t68o"),i=t("zbXB"),r=t("NcP4"),o=t("xYTU"),c=t("pMnS"),s=t("lzlj"),b=t("FVSy"),p=t("21Lb"),f=t("OzfB"),d=t("zh/F"),g=t("coki"),m=t("bujt"),h=t("UodH"),y=t("dWZg"),v=t("lLAP"),Z=t("wFw1")...
import { ADD, TICK } from '../constants/actionTypes' export const initialState = { lastUpdate: 0, light: false, count: 0 } export default (state = initialState, action) => { const { type, ts, light } = action switch (type) { case TICK: { return Object.assign({}, state, { lastUpdate: ts, ...
/* Problem: How to Sum Integers 1 to n Example: Input: [1,2,3,4,5,6,7,8,9,10] Output: 55 */ // Solution 1 - Brute Force function sumNumbers(listOfIntegers) { var result = 0; for (var i = 0; i < listOfIntegers.length; i++) { result += listOfIntegers[i]; } return result; } sumNumbers([1, 2, 3, 4, 5, 6, 7...
var Whitespace = require('./whitespace'); var wrap = require('./wrap'); var output = []; var whitespace = null; module.exports = function(node, options) { output.length = 0; whitespace = new Whitespace(options, token); generate(node); whitespace = null; return output.join(''); } var types = { 'root': gen_root,...
import React from "react" import PropTypes from "prop-types" export default function HTML(props) { return ( <html {...props.htmlAttributes}> <head> <meta charSet="utf-8" /> <meta httpEquiv="x-ua-compatible" content="ie=edge" /> <meta name="viewport" content="widt...
import React from 'react'; import ReactDOM from 'react-dom'; import './scss/main.scss'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); serviceWorker.register();
import { html, css, LitElement } from 'lit-element'; export class LiveSearchInput extends LitElement { static get styles() { return css` :host { display: block; padding: 25px; color: var(--live-search-text-color, #000); } .highlight { font-weight: bold; } ...
const router = require("express").Router(); const db = require("../models"); router.get('/api/workouts', (req, res) => { db.Workout.find({}) .then(workoutData => { console.log(workoutData); workoutData.forEach(workout => { let total = 0; workout.exercises.forEach(ex => { tot...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TreasureChest = void 0; var _react = _interopRequireDefault(require("react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _extends() { _extends = Object.assign || func...