text
stringlengths
2
1.05M
"use strict";var exports=module.exports={};var baseGetTag = require('./_baseGetTag.js'), getPrototype = require('./_getPrototype.js'), isObjectLike = require('./isObjectLike.js'); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var fun...
// jscs:disable (function (test) { 'use strict' //- //- Private //- var xml = { 'Sofa01.dae': '<?xml version="1.0" encoding="utf-8"?><COLLADA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.4.1" xmlns="http://www.collada.org/200...
// @ts-check // @ts-ignore import { isJust, isString, compose, map, flatMap } from '@7urtle/lambda'; import { requestAccessToken } from '../../src/effects/AccessToken.js'; import { createDID, readDID } from '../../src/effects/DID.js'; const helpCreateDID = payload => compose( flatMap(token => createDID({...
var b = ([])=>"foo"; var c = ({})=>"bar"; var d = (a = "default")=>a; var e = ({ foo: a = "default" , bar: b = "default" })=>a; var a = (...[a])=>a; var a = (...{ foo: a })=>a; var f = ({ [compute()]: a })=>{}; var g = ([, , ...a] = [ 1, 2 ])=>{}; var h = ({ foo: a })=>{}; var i = (...[])=>"foo"; var j = (....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.login = exports.deleteRecord = exports.updateRecord = exports.createRecord = exports.fetchRecord = undefined; var fetchRecord = exports.fetchRecord = function () { var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime...
export default { container: { alignItems: 'center' }, name: { color: '#ffffff' }, repo: { fontWeight: 'bold', color: '#ffffff' }, avatar: { marginVertical: 15, width: 80, height: 80, borderRadius: 40, borderWidth: 4, borderColor: '#ffffff', backgroundColor: '#3d...
import Ember from 'ember'; import CourseModel from 'gooru-web/models/content/course'; export default Ember.Component.extend({ // ------------------------------------------------------------------------- // Dependencies /** * @property {Service} User service API SDK */ courseService: Ember.inject.service...
import { get, post } from '../../../../utils/util.js'; var purchase = true; var loggingStatus =true; var rechargeNum = '' Page({ /** * 页面的初始数据 */ data: { orderData: [], orderon:'', orderNumber:'', addTime:'', statusDesc:'', title:'', buyNumber:'', price:'', contacts:'', ...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['es-mx']={"editor":"Editor de texto enriquecido","editorPanel":"Panel del editor de texto","common":{"editorHelp":"Presiona ALT + 0 para ayuda","browseServer":"Ex...
/** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} head * @param {number[]} G * @return {number} */ const numComponents = function (head, G) { let set = new Set(); G.forEach(g => set.add(g)); let count = ...
const pageSizeInput = document.getElementById('pageSize'); const pageInput = document.getElementById('page'); const searchBtn = document.getElementById('searchBtn'); const clearBtn = document.getElementById('clearBtn'); const tableBody = document.getElementById('tableBody'); const paginationBox = document.getElementByI...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var Icon = require('../../Icon-deabd942.js'); var React = _interopDefault(require('react')); require('@carbon/icon-helpers'); require('prop-types'); var QBarrier16 = /*#__PURE__*/ React.fo...
const webpack = require("webpack"); const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const buildPath = "./build/"; const Dotenv = require('dotenv-webpack'); module.exports = (env, argv) => { console.log('Environment:', argv.mode); return { entry: ["./src/main.js"], o...
import express from 'express'; import bodyParser from 'body-parser'; import { getResources, createResource, updateResource, deleteResource, getRandomResource } from './api/records'; const app = express(); const router = express.Router // Configure express to use body-parser as middleware app.use(bodyParser.urlencode...
; (function() { ace.require(["ace/snippets/latte"], function(m) { if (typeof module == "object" && typeof exports == "object" && module) { module.exports = m; } }); })(); ...
/** * Search Console Settings View component * * Site Kit by Google, 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...
import extend from '../../../../extend'; export default function Lineal() {} extend(Lineal.prototype, { interfaces_: function () { return []; }, getClass: function () { return Lineal; } });
export const lusolveDocs = { 'name': 'lusolve', 'category': 'Algebra', 'syntax': [ 'x=lusolve(A, b)', 'x=lusolve(lu, b)' ], 'description': 'Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.', 'examples': [ 'a = [-2, 3; 2, 1]', 'b = [11, 9]', 'x...
import React, { Component } from "react"; class Footer extends Component { render() { return ( <footer className="footer"> <div className="container"> <span className="text-muted" className="col-3"><a href="https://greatbit.com.au" target="_blanc">@GreatBit</a></span> <span clas...
/** * node-queue-lib * Copyright(c) 2014 year Andrey Gromozdov * License: MIT */ var QueueServer = require('../lib/core/node-queue-server'); var SocketIoBridgeServer = require('../lib/net/socket-io-bridge-server'); var createHttpServer = require('./httpServer'); var server = new QueueServer({ serverBridge: ne...
let handler = async (m, { conn, command, usedPrefix }) => { if (!m.quoted) throw `Balas pesan bot dengan perintah ${usedPrefix + command}` if (!m.quoted.fromMe) throw false if (!m.quoted.id) throw false let members = m.quoted.chat.endsWith('g.us') ? (await conn.groupMetadata(m.quoted.chat)).participants.length ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DIR_TARGET = exports.DEFAULT_TARGET = exports.Target = exports.Platform = void 0; function _bluebirdLst() { const data = require("bluebird-lst"); _bluebirdLst = function () { return data; }; return data; } function _...
import { retryInterval } from 'asyncbox'; import { SubProcess, exec } from 'teen_process'; import { fs, logger } from 'appium-support'; import log from '../logger'; import B from 'bluebird'; import { fixForXcode7, fixForXcode9, setRealDeviceSecurity, generateXcodeConfigFile, setXctestrunFile, updateProjectFile...
import { Material } from '../../src/og/layer/Material'; import { Worker } from '../worker'; import { JSDOM } from 'jsdom'; window.Worker = Worker; const dom = new JSDOM('<html><div id="globus_viewport_0"></p>'); global.document = dom.window.document; global.window = dom.window; global.URL.createObjectURL = jest.fn((...
/** * CustomModalDialog creates custom ReactBootstrap ModalDialog * https://github.com/react-bootstrap/react-bootstrap/blob/master/src/ModalDialog.js * * This extends ModalDialog and adds contentClassName prop for setting * `modal-content` div's class */ import classNames from 'classnames'; import React from 'rea...
// Zepto.js // (c) 2010-2014 Thomas Fuchs // Zepto.js may be freely distributed under the MIT license. ;(function($){ var _zid = 1, undefined, slice = Array.prototype.slice, isFunction = $.isFunction, isString = function(obj){ return typeof obj == 'string' }, handlers = {...
// var T = {}; /** * Data serialization classes using Backbone framework */ // T.bb = {}; // T.bb.models = {}; // T.bb.collections = {}; /** * Configuration parameters for application */ var config = { canvas_size: { width: 800, height: 600 }, grid_size: { x_min: 0, x_max: 8, y_min: 0, y_max: 8 }, lower_lef...
import playground from './playground'; export default playground;
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
import { Link, graphql, useStaticQuery } from 'gatsby' import React from 'react' export default function Navbar() { const data = useStaticQuery(graphql` query SiteInfo { site { siteMetadata { title } } } `) c...
module.exports = { publicPath: process.env.NODE_ENV === "production" ? "./" : "./", };
'use strict' var base58 = require('bs58') var createHash = require('create-hash') // SHA256(SHA256(buffer)) function sha256x2 (buffer) { var tmp = createHash('sha256').update(buffer).digest() return createHash('sha256').update(tmp).digest() } // Encode a buffer as a base58-check encoded string function encode (p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.filters = exports.functions = exports.takeSums = exports.takeObjects = exports.takeArrays = void 0; const typ = require("@quenk/noni/lib/data/type"); const schema = require("../schema"); const arrays = require("@quenk/noni/lib/data/arr...
const path = require('path'); const imagesDir = path.join(__dirname, 'images'); const homedir = require('os').homedir(); let SETTINGS = { "ui": { "clips": { "display": { "max-length": 50 }, }, "hide-on-copy": true, "hide-dock-icon": true, ...
export const orange = '#D6AB73'; export const green = '#83B78C'; export const red = '#C75F59';
/** * Amazon Elastic Compute Cloud * <fullname>Amazon Elastic Compute Cloud</fullname> <p>Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster....
/***************************************************************************** * Open MCT, Copyright (c) 2014-2020, United States Government * as represented by the Administrator of the National Aeronautics and Space * Administration. All rights reserved. * * Open MCT is licensed under the Apache License, Version ...
var express = require("express"); var router = express.Router(); var Campground = require("../models/campground"); var Comment = require("../models/comment"); var middleware = require("../middleware/index.js"); //Comments New router.get("/campgrounds/:id/comments/new", middleware.isLoggedIn, function(req, res){ //...
import transferOptions from '../core/transferOptions' import mergeOptions from '../core/mergeOptions' import builtInKeysMap from './patch/builtInKeysMap' import { makeMap } from '../helper/utils' import * as webLifecycle from '../platform/patch/web/lifecycle' const webAppHooksMap = makeMap(webLifecycle.LIFECYCLE.APP_H...
'use strict'; const AuthPlugin = require('../../../server/auth'); const AuthenticatedUser = require('../fixtures/credentials-admin'); const Code = require('code'); const Config = require('../../../config'); const Hapi = require('hapi'); const HapiAuth = require('hapi-auth-cookie'); const Lab = require('lab'); const Mak...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const userSchema = new Schema({ _id: mongoose.Schema.Types.ObjectId, profileImg: { type: String } }, { collection: 'users' }) module.exports = mongoose.model('User', userSchema)
import React, { useEffect } from 'react'; import TodoList from './TodoList'; import TodoForm from './TodoForm'; import useTodoState from './Hooks/useTodoState'; import { Typography, Paper, AppBar, Toolbar, Grid } from "@material-ui/core"; function TodoApp() { const initialTodos = JSON.parse(window.localStorage.getIt...
import React, {Component} from 'react'; import axios from 'axios'; import Spinner from './spinner'; class JobApply extends Component { state = { name: '', email: '', phone: '', dateOfBirth: '', experience: 0, education: '', message: '', loading: false, responseMessage: '' }; onChangeName(e) { t...
import faker from "faker"; import PropTypes from "prop-types"; import { Icon } from "@iconify/react"; import googleFill from "@iconify/icons-eva/google-fill"; import twitterFill from "@iconify/icons-eva/twitter-fill"; import facebookFill from "@iconify/icons-eva/facebook-fill"; import linkedinFill from...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 9.5.15 description: > Proxy ( target, handler ) ... 3. If Type(hand...
(function(d){ const l = d['uk'] = d['uk'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"%0 із %1","Align cell text to the bottom":"","Align cell text to the center":"","Align cell text to the left":"","Align cell text to the middle":"","Align cell text to the right":"","Align cell text to the top"...
import WaveformPlaylist from "waveform-playlist"; async function main() { const playlist = WaveformPlaylist({ container: document.getElementById("playlist"), timescale: true, state: "cursor", samplesPerPixel: 1024, controls: { show: true, width: 200, }, colors: { waveOut...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {getConfig} from 'mattermost-redux/selectors/entities/general'; import {getTheme} from 'mattermost-redux/selectors/entit...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Refresh = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createElem...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.CgAttribution = function CgAttribution (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none"},"child":[{"tag":"path","attr":{"d":"M6 8C6.74028 8 7.38663 7.5978 7.73244 7H14C15.1046 7 16 7.89543 16 9C16 10...
$(".option-list ul li").click(function () { var splitContents = this.id.split("_"); var chartId = splitContents[0] + "-" + splitContents[1] + "-plot"; if ($(this).hasClass("selected")) { $(this).removeClass("selected"); $("#" + chartId + "-container").remove(); } else { $(this)...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.vueIonicons = factory()); }(this, (function () { 'use strict'; var A_ROTATE = 'rotate'; var A_BEAT = 'beat'; var A...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Champion Schema */ var ChampionSchema = new Schema({ enabled: { type: Boolean, default: false, }, created: { type: Date, default: Date.now }, version: { type: String }, id: { type: ...
import { useState, useEffect } from "react"; import jwtDecode from "jwt-decode"; export const isLoggedIn = () => { const userData = JSON.parse(localStorage.getItem("userData")); if (!userData) { return false; } if (userData.token) { const decodedToken = jwtDecode(userData.token); const currentTim...
/** * * @format * @flow */ import React from 'react'; import {Dimensions, Text, View} from 'react-native'; import AbstractGraph from './abstractGraph'; import {BarChart} from 'react-native-chart-kit'; import {Color, Theme} from 'components/stylesheet.js'; class ScoreGraph extends AbstractGraph { constructor(pro...
const multer = require('multer'); const multerS3 = require('multer-s3'); const aws = require('aws-sdk'); aws.config.loadFromPath(__dirname + '/../config/s3.json'); const s3 = new aws.S3(); var upload = multer({ storage: multerS3({ s3, bucket: 'watcha', acl: 'public-read', key: functi...
import { helper } from './helpers'; import { status } from './status'; export const db = () => { const projectData = (name, description, priority, duedate, todos = []) => ({ name, description, priority, duedate, todos, }); const todoData = (name, description) => ({ name, description, }); const load...
(window.webpackJsonp=window.webpackJsonp||[]).push([[355],{3999:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return o}));r(6),r(7);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&...
import React from 'react'; import { AiFillGithub } from 'react-icons/ai'; import { SocialIcons } from '../Header/HeaderStyles'; import { CompanyContainer, FooterWrapper, LinkColumn, LinkItem, LinkList, LinkTitle, Slogan, SocialContainer, SocialIconsContainer } from './FooterStyles'; const Footer = () => { return ( ...
/** * jquery-form-validator %> * * @website by * @license MIT * @version 2.2.71 */ !function(a,b){"use strict";var c="undefined"!=typeof b.FileReader,d=function(b){var c=a.split((b.valAttr("allowing")||"").toLowerCase());return a.inArray("jpg",c)>-1&&-1==a.inArray("jpeg",c)?c.push("jpeg"):a.inArray("jpeg",c)...
/** * Copyright 2015 Telerik AD * * 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 ...
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vuecal"]=e(require("vue")):t["vuecal"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){function e(e...
/** * WelcomePage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import PropTypes from 'prop-types'; import { StepHeader, StepContent, StepFooter, Stepper } from '../components'; import { StyledRow, StyledCol, H1, H2, P, Container, Styl...
import { SearchFilterFirstLetter, SearchFilterSortBy } from "components/search-filter"; import useEntitySearch from "hooks/useEntitySearch"; import { SearchEntity } from "components/search"; import { navigate } from "gatsby"; import { SummaryCard } from "components/card"; const sortByFields = new Map([ [ "A ➜ Z", ...
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ export default {"viewBox":"0 0 24 24","xmlns":"http://www.w3.org/2000/svg","path":{"d":"M23.1 22.4c0 .4-.3.7-.7.7H1.6c-.4 0-.7-.3-.7-.7V21c0-.4.3-.7.7-.7h20.8c.4 0 .7.3...
export default { name: 'QueryForm', props: { data: { type: Array, default: () => { return [] } } }, data () { return { simple: { current: '', data: [] }, quick: { data: [] }, complex: { open: false, data: [] }, result: { data: [] } } }, compu...
const { chromium } = require('playwright-chromium'); const { expect } = require('chai'); const host = 'http://localhost:3000'; // Application host (NOT service host - that can be anything) const DEBUG = true; const mockData = require('./mock-data.json'); const endpoints = { register: '/users/register', ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var random_js_1 = require("random-js"); var DefaultRandomProvider = /** @class */ (function () { function DefaultRandomProvider() { this.engine = random_js_1.MersenneTwister19937.autoSeed(); } DefaultRandomProvider.prototyp...
// @flow import log from 'loglevel'; import { ofType } from 'redux-observable'; import { map, switchMap } from 'rxjs/operators'; import { push } from 'connected-react-router'; import i18n from '@dhis2/d2-i18n'; import { errorCreator } from 'capture-core-utils'; import { getApi } from '../../../../d2'; import { isSelect...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.1.2 (2019-11-19) */ !(function() { 'use strict' func...
function addStyles(css) { var head = document.querySelector("head"); var style = document.createElement("style"); style.textContent = `${css}`; head.appendChild(style); } chrome.storage.sync.get( { feedWidth: "600", topNavigation: false, noTweetButton: false, showMessageDrawer: false, fee...
import React, {useState} from 'react' import { Platform, SafeAreaView, KeyboardAvoidingView, TouchableOpacity, ActivityIndicator, ScrollView, TextInput, StatusBar, View, Text } from 'react-native' import Icon from 'react-native-vector-icons/Feather' import { connect } from 'react-redux' import { For...
import React from "react"; import { Link } from "react-router-dom"; import SignedOutLinks from "./SignedOutLinks"; import SignedInLinks from "./SignedInLinks"; import { connect } from "react-redux"; const Navbar = props => { const { auth, profile } = props; const links = auth.uid ? ( <SignedInLinks profile={pr...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @param {?} n * @param {?} x * @return {?} */ function mod(n, x) { return (n % x + x) % x; } /** * @param {?} num * @return {?} */ function absFl...
import React, { memo, forwardRef } from 'react' import Icon from '../src/Icon' const svgPaths16 = [ 'M5.99 11.99c-.28 0-.53.11-.71.29l-.29.29V8.99c0-.55-.45-1-1-1s-1 .45-1 1v3.59l-.29-.29a1.003 1.003 0 00-1.42 1.42l2 2c.18.18.43.29.71.29.28 0 .53-.11.71-.29l2-2c.18-.18.29-.43.29-.71 0-.56-.45-1.01-1-1.01zM12.7 10h-1...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.TextAlignRight32 = factory()); }(this, (function () { 'use strict'; var _32 = { elem: 'svg', attrs: { xm...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Nudges (translates) the top left corner of a Rectangle by a given offset. * * @function Phaser.Geom.Rectangle.Offset * @since 3.0.0 *...
'use strict'; class StepBuilder { jobJAR(location) { this.jarLocation_ = location; return this; } jobClass(jobClass) { this.class_ = jobClass; return this; } commandLineArgument(key, value) { if (!this.args_) { this.args_ = []; } ...
let admin = require('firebase-admin') let firestore = admin.firestore() function storeInfoToUser (uid, storeId) { let docRef = firestore .collection('users') .where('uid', '==', `${uid}`) return firestore.runTransaction(t => { return t.get(docRef) .then(docs => { let promises = [] ...
const name = null; const text = `Hello, ${ name ? name : 'Guest' }!`; console.log(text); // Hello, Guest!
layui.use(['table', 'admin', 'ax', 'func'], function () { var $ = layui.$; var table = layui.table; var $ax = layui.ax; var admin = layui.admin; var func = layui.func; /** * 数据处理管理 */ var DataOptInfo = { tableId: "dataOptInfoTable" }; /** * 初始化表格的列 */ ...
module.exports = { presets: [ ['@babel/preset-env']], env: { test: { presets: [['@babel/preset-env', {targets: {node: 'current'}}]], }, }, };
/* MIT License Copyright (c) 2022 Looker Data Sciences, 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, modi...
/** * Module dependencies. */ var express = require('express') , mongoStore = require('connect-mongo')(express) , flash = require('connect-flash') , helpers = require('view-helpers') , pkg = require('../package.json') module.exports = function (app, config, passport) { app.set('showStackError', true) ...
const transformer = require('./person.transformer') describe('API Client', function () { describe('Transformers', function () { describe('#personTransformer', function () { let item beforeEach(function () { item = { id: '12345', first_names: 'Foo', last_name: 'B...
/** * The REST entity generator * @namespace entity */ 'use strict'; const generator = require ('yeoman-generator'), to = require ('to-case'), validators = require ('../util/validators'), editors = require ('../util/editors'); var index; require ('harmony-reflect'); module.exports = generator.Base.extend ({ ...
import styled from "styled-components" const BackgroundImage = styled.img` width: 90%; display: block; margin-left: auto; margin-right: auto; ` export default BackgroundImage
'use strict'; const mongoose = require('mongoose'); const Schema = mongoose.Schema; const schema = new Schema({ title: { type: String, required: true, trim: true, }, slug: { type: String, required: true, trim: true, index: true, unique: true, }, description: { type: Strin...
/* * * SQLite sqlite_master table representation * Karolinska Institutet, 2019 * * Matthias Stahl */ /* eslint-disable no-underscore-dangle */ /* eslint-disable class-methods-use-this */ // column types of the sqlite_master table const COL = { TYPE: 0, NAME: 1, TBL_NAME: 2, ROOTPAGE: 3, SQL: 4, }; const Sq...
/************************************************************************ * Copyright (c) 2016 IoT-Solutions e.U. * * 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.apac...
import { TODO_ACTIONS } from "../actions/todo"; import { v4 as uuidv4 } from "uuid"; const defaultState = []; function rootReducer(state = defaultState, action) { switch (action.type) { case TODO_ACTIONS.ADD_ITEM: return [ ...state, { id: uuidv4(), desc: "", i...
import React from 'react'; import { connect } from 'react-redux'; import { Label, Popup } from 'semantic-ui-react'; import { selectPopupOpen } from 'containers/Skyscrapers/selectors'; import * as a from 'containers/Skyscrapers/actions'; const { Detail: LDetail } = Label; const buildPopupId = (id, inPopup = false) => ...
/** * calendar-month-view.component */ import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Optional, Output, ViewChild } from '@angular/core'; import { CalendarCell, OwlCalendarBodyComponent } from './calendar-body.component'; import { OWL_DATE_TIME_FORMATS } from './adapter/date-time-forma...
/** * Copyright 2017, Google, 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 to i...
/** * @license Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
import { isEqual } from 'lodash/core'; import { isEmpty } from 'lodash'; import { sendMessageToAllTabs } from '../utils/messaging'; const axios = require('axios'); const syncStatus = { syncing: false, syncFailed: false, syncingBlockedBySyncing: false, }; const cloudSync = async function(serverUrl, skipEqualityC...
/* istanbul instrument in package npmdoc_code */ /*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 - pre-init (function () { // ...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var Icon = require('../Icon-deabd942.js'); var React = _interopDefault(require('react')); require('@carbon/icon-helpers'); require('prop-types'); var IbmSecurity16 = /*#__PURE__*/ React.fo...
/** @license MIT License (c) copyright 2010-2016 original author or authors */ /** @author Brian Cavalier */ /** @author John Hann */ /** * Doubly linked list * @constructor */ export default function LinkedList () { this.head = null this.length = 0 } /** * Add a node to the end of the list * @param {{prev:O...