text
stringlengths
2
1.04M
import axios from 'axios'; const Vehicle_API_BASE_URL = 'http://localhost:8081/api/vehicle'; const Vehicles_API_BASE_URL = 'http://localhost:8081/api/vehicles'; const MESSAGE_API_BASE_URL = 'http://localhost:8081/api/message'; const headers = { 'Accept-Language': 'ar', }; /* 'Content-Type': 'application/j...
import React, { Component } from "react"; import "bootstrap/dist/css/bootstrap.css"; import "react-dazzle/lib/style/style.css"; import "react-vis/dist/style.css"; import "./App.css"; import Dashboard from "./components/Dashboard"; class App extends Component { render() { return ( <div classNam...
/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow * @lint-ignore-every XPLATJSCOPYRIGHT1 */ import React, {Component} from 'react'; import { StyleSheet, View, TouchableOpacity, Text, Modal, Alert, } from 'react-native'; type Props = {} // class Page exten...
import React, { Component } from 'react'; import { S3Image } from 'aws-amplify-react'; import { Storage, Auth } from 'aws-amplify'; import "../styles/upload.css"; import preview from '../img/preview.jpg'; import axios from 'axios'; import $ from 'jquery'; import Loader from "./Loader"; class LabelsList extends Compon...
import { act } from "@testing-library/react"; import { IS_START, TURN } from "./gameConditionTypes"; const initialState = { isStart: false, turn: 0, }; const gameConditionReducer = (state = initialState, action) => { switch (action.type) { case IS_START: return { ...state, isStart: act...
/* global xxx */ 'use strict'; { let player = ''; let cpu = ''; let filled = []; let free = []; const createEvents = () => { document.getElementById('X').addEventListener('click', start); document.getElementById('O').addEventListener('click', start); document.getElementById('continue').addEventLi...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /* https://github.com/banksean wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace so it's better encapsulated. Now you can have multiple random number generators and they won't stomp all over each other's state. If y...
/* eslint-disable camelcase */ const Player = require('../player/Player'); class Profile { /** * Profile class * @param profile {Object} Profile object returned by the Hypixel API * @type {Promise} */ constructor(profile = {}) { return (async () => { if (!profile.profile_id) throw new Error('...
// Example to test the React Reconciler. This example // is 100x faster in development mode, // and 1.5-2x faster with NODE_ENV==='production' // The idea was to not draw map children on hovers, but subscribe inside children on hover change // see ./markers/ReactiveMarker source import React from 'react'; import comp...
import Stlye from '../css/style.styl' import Index from './index.js' import Anm from './animate.js' import Mobile from './mobile.js' import Search from './search.js' import Post from './post.js' import Hover from './hover.js' import Gallery from './gallery.js' import Lazyload from './lazyload' const $ = require('e...
/** * Makes Droppable area * * @return Dom Element */ mw.dropables = { prepare: function() { var dropable = document.createElement('div'); dropable.className = 'mw_dropable'; dropable.innerHTML = '<span class="mw_dropable_arr"></span>'; document.body.appendChild(dropable); ...
/* http://keith-wood.name/calendars.html Hindi INDIA localisation for Gregorian/Julian calendars for jQuery. Written by Pawan Kumar Singh. */ (function($) { $.calendars.calendars.gregorian.prototype.regional['hi-IN'] = { name: 'Gregorian', epochs: ['BCE', 'CE'], monthNames: ['जनवरी',' फरवरी', 'मार्च', 'अप...
"use strict";var wirup=function(){};wirup.prototype=function(){var t={},n={},e=(t,e)=>{n[t]=e},o=(n,e)=>{t[n]=e},r=()=>new Promise(function(t,n){var e="";document.querySelectorAll("[datasource]").forEach(t=>{e=i(t.tagName.toLowerCase(),t.getAttribute("datasource"));t.innerHTML=e}),t()}),c=t=>{document.getElementsByTagN...
const escapeMarkdown = require('discord.js').escapeMarkdown; const { oneLine, stripIndents } = require('common-tags'); /** A fancy argument for a command */ class CommandArgument { /** * @typedef {Object} CommandArgumentInfo * @property {string} key - Key for the argument * @property {string} [label=key] - Labe...
/** * Delete from the Left * https://codeforces.com/problemset/problem/1005/B */ var s = readline(); var t = readline(); var slength = s.length; var tlength = t.length; var minLength = Math.min(slength, tlength); var equal = 0; for(var i = 0; i < minLength; i++) { if(s[s.length - 1 - i] === t[t.length - 1 - i]...
/*! * stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack) * Copyright 2017 PIXINVENT * Licensed under the Themeforest Standard Licenses */
var Daemon = require('./daemon').getInstance(); /** * Constructor for image buffer from html image * @param {string || Imag} src. * @param {number} width optional * @param {number} height optional */ function ImageBuffer(src, width, height) { this.buffer = null;; if (typeof src === 'string' || src instanceof I...
/** enscroll.js - jQuery plugin to add custom scrollbars HTML block elements Copyright (C) 2012 Jason T. Stoudt This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (a...
const mongoose = require('mongoose'); module.exports = () => { mongoose.connect('mongodb+srv://movie-user:1907@movie-api.8iu0n.mongodb.net/movie-user?retryWrites=true&w=majority',{ useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, useFindAndModify: false }); mongoose.connection.o...
// Copyright (c) 2012 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. cr.define('cr.ui', function() { /** * The class name to set on the document element. * @const */ var CLASS_NAME = 'focus-outline-visible...
import React, { memo } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { mq, spacing } from 'core/theme' const Indicator = memo(({ position }) => ( <ChartContainerIndicator position={position} className={`ChartContainerIndicator ChartContainerIndicator-...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement("path", { d: "M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43 12 7 8.43 15.57 17 12 20.57...
/* eslint-disable no-console */ const logger = require('./logger'); const app = require('./app2'); const port = process.env.PORT || app.get('port'); const express = require('@feathersjs/express'); app.use(express.static('./client')); console.log('eee') app.get('/*', function (req, res) { res.sendFile(path.join(__dir...
define(['angular'], function (ng) { 'use strict'; ng.module('cs_session.providers', []); ng.module('cs_session.controllers', []); ng.module('cs_session.services', []); var module = ng.module('cs_session', [ 'cs_common', 'cs_session.providers', 'cs_session.controllers', 'cs_session.services' ...
var book = { "name": "Philémon", "numChapters": 1, "chapters": { "1": { "1": "<sup class=\"versenum\">1 </sup>Paul, prisonnier de Jésus Christ, et le frère Timothée, à Philémon, notre bien-aimé et notre compagnon d'oeuvre,", "2": "<sup class=\"versenum\">2 </sup>à la soeur Apphia, à Archippe, notre compagnon...
$(function(){ if ('speechSynthesis' in window) { speechSynthesis.onvoiceschanged = function() { var $voicelist = $('#voices'); if($voicelist.find('option').length == 0) { speechSynthesis.getVoices().forEach(function(voice, index) { var $option = $('<option>') ...
import React from "react"; // nodejs library that concatenates classes import classNames from "classnames"; // nodejs library to set properties for components import PropTypes from "prop-types"; // material-ui components import { makeStyles } from "@material-ui/core/styles"; import Tabs from "@material-ui/core/Tabs"; ...
/* * Copyright (C) 2013 salesforce.com, 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 ...
import * as caniuse from 'caniuse-lite'; // return a list of browsers that do not support the feature export default function getUnsupportedBrowsersByFeature(feature) { const caniuseFeature = caniuse.features[feature]; // if feature support can be determined if (caniuseFeature) { const stats = caniuse.feature(ca...
import { combineReducers } from 'redux'; import notesReducer from './notes/notesReducer'; import filterReducer from './notes/filterReducer'; export default combineReducers({ notes: notesReducer, filter: filterReducer, });
const days = [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]; const months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ] let cloc...
import { map } from 'jquery'; import React, { useState, useEffect } from 'react'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Form, FormGroup,Label,Input,Row } from 'reactstrap'; import FriendList from './FriendList'; import Loading from '../logreg/loading'; import {getFriends} from '../../actions/frie...
'use strict'; module.exports = { url: 'https://laelog.github.io/', pathPrefix: '/', title: 'Blog by Lael', subtitle: 'TBD', copyright: '© All rights reserved.', disqusShortname: '', postsPerPage: 4, googleAnalyticsId: 'UA-73379983-2', useKatex: false, menu: [ { label: 'Articles', pa...
function getHTTPObject() { if (typeof XMLHttpRequest == "undefined") { // IE XMLHttpRequest = function() { try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {} try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {} try { return new ActiveXObject("Msxml2.XMLHTT...
/*global d3 */ var formatDate = d3.time.format.utc("%B %d, %Y"), formatMonthYear = d3.time.format.utc("%B %Y"), formatYear = d3.time.format.utc("%Y"), formatTime = d3.time.format.utc("%H:%M UTC"), formatWeek = d3.time.format.utc("%U"), formatHour = d3.time.format.utc("%H"), formatNumber = d3.fo...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; } Object.defineProperty(exports, "__esModule", { value: true }); const mongoose_1 = __importDefault(require("mongoose")); const Schema = mongoose_1.default.Schema; const ...
'use strict'; /* global MocksHelper */ /* global MockStackManager */ /* global SheetsTransition */ requireApp('system/js/sheets_transition.js'); requireApp('system/shared/test/unit/mocks/mock_service.js'); requireApp('system/test/unit/mock_stack_manager.js'); requireApp('system/shared/test/unit/mocks/mock_settings_li...
/** * Memory * * @author Matthias Morin <matthias.morin@gmail.com> * @version 1.0.1 */ // Declare cards array var arPictures = ['camel', 'chick', 'cow', 'dog', 'elephant', 'fish', 'lamb', 'owl', 'pig', 'rabbit', 'reindeer', 'turtle']; // Duplicates array with itself var arPictures = arPictures.concat(arPictu...
define([ 'common/$', 'bonzo', 'common/utils/ajax', 'common/utils/mediator', 'common/utils/to-array', 'lodash/collections/find' ], function( $, bonzo, ajax, mediator, toArray, find ) { function snaps(selector) { fetchSnaps(selector); mediator.on('windo...
/* ======================================================================== * Bootstrap (plugin): validator.js v0.11.8 * ======================================================================== * The MIT License (MIT) * * Copyright (c) 2016 Cina Saffary. * Made by @1000hz in the style of Bootstrap 3 era @fat * ...
'use strict' const fs = require('fs'); function getBootstraprcCustomLocation() { return process.env.BOOTSTRAPRC_LOCATION; } const bootstraprcCustomLocation = getBootstraprcCustomLocation(); let defaultBootstraprcFileExists; try { fs.statSync('./.bootstraprc'); defaultBootstraprcFileExists = true; } catch (e)...
// Generated by CoffeeScript 1.7.1 (function() { var SVGPath; SVGPath = (function() { var apply, arcToSegments, cx, cy, parameters, parse, px, py, runners, segmentToBezier, solveArc, sx, sy; function SVGPath() {} SVGPath.apply = function(doc, path) { var commands; commands = parse(path); ...
module.exports = { "extends": "airbnb-base", "rules": { "no-console": 0, "no-param-reassign": [2, { "props": false }], "prefer-destructuring": 0, "treatUndefinedAsUnspecified": true, "arrow-body-style": 0, "comma-dangle": 0, }, "env...
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/components/toggle-button', false, /\.(md|js|tsx)$/); const reqSource = require.context( '!raw-loader!...
define( ["hint/foundries","hint/foundries/stts","hint/foundries/negranodes","hint/foundries/negraedges"], function (ah, sttsArray, negraNodesArray, negraEdgesArray) { var namedEntities = [ ["I-LOC", "I-LOC ", "Location"], ["I-MISC", "I-MISC ", "Miscellaneous"], ["I-ORG", "I-ORG ", "Organiz...
define(['jquery', 'appInitData'], function ($, appInitData) { var hostCommunicator = { postMessageAvailable: (window.postMessage ? true : false), init: function () { var externalHostCommunicator = this; this.setHeight(); this.startWatching(); if (this....
import React, {Component} from 'react'; import {HashRouter, Redirect, Route, Switch} from 'react-router-dom'; import {FormattedMessage, IntlProvider} from 'react-intl'; import AppLocale from './lang/index'; import {connect} from "react-redux"; import {getLoginObject} from "./redux/auth/actions"; // import { renderRout...
"use strict"; var _babelHelpers = require("./utils/babelHelpers.js"); exports.__esModule = true; var _react = _babelHelpers.interopRequireDefault(require("react")); var _Icon = require("./Icon"); var _fragments = require("./fragments"); var FilledSpa = /*#__PURE__*/ function FilledSpa(props) { return _react.def...
/** * server.js * Stripe Billing demo. Created by Michael Glukhovsky (@mglukhovsky). * * This creates and starts an Express server (and is the main entry point for * Typographic). */ 'use strict'; const config = require('../config.js'); const setup = require('../setup'); const express = require('express'); const...
angular.module('palladioGraphComponent', ['palladio.services', 'palladio']) .run(['componentService', function(componentService) { var compileStringFunction = function (newScope, options) { // Options // showSettings: true // height: 300px newScope.showSettings = newScope.showSettings === undefined ?...
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, {PropTypes} f...
/** * Minified by jsDelivr using Terser v3.14.1. * Original file: /npm/jquery@3.4.1/src/var/documentElement.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ define(["./document"],function(e){"use strict";return e.documentElement}); ...
export default { devAuthConfig: { title: { list: '权限配置', record: '权限配置', code: '权限配置' }, route: { listTag: '权限配置', recordTag: '权限配置' }, field: { id: '主键', roleId: '配置id', beginAt: '开始日期', endAt: '结束日期', startTime: '开始时间', endTime: '...
import { ACTION_TYPE, CLASSNAME, JS_SELECTOR } from "../../constants/index.js"; import { Lotto } from "../../models/index.js"; import { $, toDataAttributeSelector as toDAS } from "../../utils/index.js"; import ResultModalPresentational from "./Presentational.js"; import { Container } from "../core/index.js"; class Res...
/** * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import clientJson from '../../../package.json'; import FabricVersion from '../../FabricVersion'; const styles = theme => { const { type } = theme.palette; const dark = type === 'dark';...
/*! * Ext JS Library 3.0.0 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ // Create and append to the body, a Panel containing a block of code from the passed URL function createCodePanel(url, title) { var panel = new Ext.Panel({ hideMode: 'visibility', title: tit...
var viewData = {"id":30785,"isExpandedObject":false}; var objectRelations = { }; var objectData = { "30785" : { "id":30785, "typeIconPath":"data/icons/UML/UML_ClassDiagram.png", "data" : [ { "lang":"nl", "name":"LDT_BerichtVersie", "type":"Klassendiagram", "categories":[] } ] } }; var viewReferences = {}; var objectRef...
import React, { Component } from 'react'; class BinsShare extends Component { onShareClick() { const email = this.refs.email.value; Meteor.call('bins.share', this.props.bin, email); } renderShareList() { return this.props.bin.sharedWith.map(email => { return ( <button key={email} class...
import React , { useState, useEffect }from "react"; import { Grid, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, } from "@material-ui/core"; import MUIDataTable from "mui-datatables"; import AddCircleIcon from '@material-ui/icons/AddCircle'; import {Card, CardDeck} from 'react-bootstrap'...
//// [genericTypeUsedWithoutTypeArguments1.js] var Bar = (function () { function Bar() { } return Bar; })();
import { preFansNum } from '@/api/fans' // removeItem // import { setItem } from '@/utils/storage' const account = { namespaced: true, state: { }, mutations: { // SET_ACCOUNTLIST (state, data) { // state.accountList = data // setItem('accountList', state.accountList) ...
/** * bootstrap-colorpicker.js * (c) 2013~ Jiung Kang * Licensed under the Apache License, Version 2.0 (the "License"); */ (function($) { "use strict"; var aaColor = [ ['#000000', '#424242', '#636363', '#9C9C94', '#CEC6CE', '#EFEFEF', '#EFF7F7', '#FFFFFF'], ['#FF0000', '#FF9C00', '#FFFF00', '#00FF00', ...
module.exports={A:{A:{"2":"I F E D A B gB"},B:{"1":"T P H J K UB IB N","2":"C O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 f g h i j k l m n o p q r s t u v Q x y z TB AB FB CB DB BB w R M JB KB LB MB NB OB PB QB RB SB","2":"qB GB G U I F E D A B C O T P H J K V W X Y Z a b c d e nB fB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 W X Y Z a b c d ...
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { userActions } from '../_actions'; import { GoogleMap } from '../GoogleMap'; import { DynamicForm } from '../DynamicForm'; import { Modal } from '../Modal'; import formData from './data.json'; import st...
import { TextureLoader, Box2, Vector2, Color } from '../Three'; import {TerrainOverlayMaterial } from '../materials/TerrainOverlayMaterial'; import proj4 from 'proj4'; import { TERRAIN_BLEND } from '../core/constants'; class Overlay { constructor ( ctx, overlayProvider ) { this.provider = overlayProvider; this...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const IonBinaryReader_1 = require("./IonBinaryReader"); const IonConstants_1 = require("./IonConstants")...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'flash', 'ms', { access: 'Script Access', // MISSING accessAlways: 'Always', // MISSING accessNever: 'Never', // MISSING accessSameDomain: 'Same d...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchGame } from '../actions/fetchGame'; import { answeredCorrect } from '../actions/answeredCorrect'; import { answeredIncorrect } from '../actions/answeredIncorrect'; import Game from '../components/Game'; import Summary from '...
Eden.Selectors.NavigateNode = function(direction, deep) { this.type = "navigate"; this.left = undefined; this.right = undefined; this.direction = direction; this.deep = deep; this.local = false; } Eden.Selectors.NavigateNode.prototype.append = function(node) { if (!node) return this; if (node.local) this.local...
/* @generated */ // prettier-ignore if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') { Intl.ListFormat.__addLocaleData({"data":{"ro-MD":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} și {1}","pair":"{0} și {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","...
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ ( function() { 'use strict'; /** * JSONP communication. * * @private * @singleton * @class CKEDITOR.plugins.embedBase._jsonp ...
const mongoose = require("mongoose"); // Things related to the body : activity lvl, height, weight, age const bodyThings = mongoose.Schema({ age: { type: Number, default: 0 }, height: { type: Number, default: 0 }, weight: { type: Number, default: 0 ...
import { createApp } from 'vue' import router from "./router"; import App from './views/App' import ArgonDashboard from "./plugins/argon-dashboard"; import ElementPlus from 'element-plus' import 'element-plus/lib/theme-chalk/index.css' import jQuery from 'jquery' import VueFormWizard from '@anivive/vue3-form-wizard' ...
//SOLUTION const greeting = (parameterVariable) => { console.log('Hello, World!'); console.log(parameterVariable); } //TEST greeting ("Welcome to 10 Days of JavaScript!");
var Builder = require('./builder.js'); /** * @private * Mapping of classes being instantiated * to avoid cyclic depdendencies * * @type {object} */ var _holdingToInstantiate = Object.create(null); /** * @private * Singleton of Injector * * @type {Injector} */ var _instance; /** * @private * Private m...
import React from "react"; import PortfolioContainer from "../portfolio/portfolio-container"; export default function () { return ( <div> <PortfolioContainer /> </div> ); }
define(["exports", "./property-accessors.js", "../utils/mixin.js"], function (_exports, _propertyAccessors, _mixin) { "use strict"; Object.defineProperty(_exports, "__esModule", { value: true }); _exports.DirMixin = void 0; /** * @fileoverview * @suppress {checkPrototypalTypes} * @license Copyr...
function draw_pipeline_image(l1lables, l2lables, l1link, l2link, display_id) { var width = 700; var height = 215; var border = 35; var color = "hsb(" + [.6, .5, 1] + ")"; var canvas = Raphael(display_id, width, height); var centerx = width/2; var centery = height/2+height/8; ...
//============================================================================= // rpg_windows.js v1.6.2 //============================================================================= //----------------------------------------------------------------------------- // Window_Base // // The superclass of all windows wit...
'use strict'; const ROOT = __dirname; const path = require('path'); const webpack = require('webpack'); module.exports = { context: ROOT, entry: { csp: path.join(ROOT, 'src', 'csp'), }, output: { path: path.join(ROOT, 'build'), filename: '[name].min.js', libraryTarget: 'umd', library: '[na...
import chai, { expect } from 'chai'; import chaiAsPromised from 'chai-as-promised'; import dirtyChai from 'dirty-chai'; import sinon from 'sinon'; import CallLogger, { callIdentityFunction, } from './index'; import LoggerBase from '../../lib/LoggerBase'; import telephonyStatuses from '../../enums/telephonyStatus'; im...
import React from 'react'; import { node, string, bool } from 'prop-types'; import classNames from 'classnames'; import { LABEL } from 'common/constants/testIDs'; import ScreenReaderOnly from 'components/ScreenReaderOnly/ScreenReaderOnly'; import styles from './Label.module.css'; Label.propTypes = { children: node.i...
var parent = require('../../es/string/starts-with'); module.exports = parent;
import React, { Fragment } from "react" import { CSSTransition, TransitionGroup } from "react-transition-group" export function Timeout({ ms, fallback, children }) { return ( <React.Timeout ms={ms}> {didTimeout => ( <Fragment> <span hidden={didTimeout}> <CSSTransition ...
angular.module("template/pagination/pagination.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/pagination/pagination.html", "<div class=\"pagination\"><ul>\n" + " <li ng-repeat=\"page in pages\" ng-class=\"{active: page.active, disabled: page.disabled}\"><a ng-click=...
const path = require("path") const { ApolloServer } = require("apollo-server-lambda") const { importSchema } = require("graphql-import") const { makeExecutableSchema } = require("graphql-tools") const { resolvers } = require("./resolvers") const typeDefs = importSchema(path.join(__dirname, "schema.graphql")) const sch...
import { connect } from 'react-redux'; import { doHideModal } from 'redux/actions/app'; import ModalPublishPreview from './view'; import { makeSelectPublishFormValue, selectPublishFormValues, selectIsStillEditing, selectMyChannelClaims, makeSelectClaimIsStreamPlaceholder, SETTINGS, } from 'lbry-redux'; impo...
import { OutlineBluetoothAudio as TwoToneBluetoothAudio } from './OutlineBluetoothAudio' export { TwoToneBluetoothAudio }
import _ from "lodash"; import CreateTabrisConCategories from "./FilterTabrisConCategories"; import texts from "./resources/texts"; export default class CreateTabrisConPreviewCategories { static fromSessionsAndKeynotes(tabrisConSessions, tabrisConKeynotes) { return [ { id: "KEYNOTES", title...
"use strict"; var chalk = require('chalk'), error = require('../util/error'), InstallSource = require('./install-source'); module.exports = InstallSource.extend('git-master', { extractSource() { return this.git.symbolicRef('HEAD') .then((HEAD) => { if ( HEAD === 'refs/heads/master' ) { return this.git...
import { GetGenres, getDetails, getContent, setLoading, setFilter, setCurrentPage, setSearchValue, } from '../contentActions'; import HttpService from '../../api/httpService'; import { store } from '../../store'; jest.spyOn(HttpService, 'searchMovieRequest').mockImplementation(() => ({ results: [{ id: 2412412,...
'use strict'; var isValid = function(data) { if (typeof(data.status) != "undefined") { $.userSession.storeOK = 0; ohSnap(data.message); return false; } else { return true; } } $("#activemenu").on("change",function( event ){ $...
const debug = require('debug')('W2:content:inline-edit/resources/panel-item'); const Promise = require('bluebird'); const ComplexTypes = require('./../../../../lib/core/complex-types'); const basicPropertyPanelItemResource = require('./panel-item-basic-property'); const relationshipPanelItemResource = require('./panel...
#!/usr/bin/env node var prerender = require('./lib'); var server = prerender({ chromeFlags: ['--no-sandbox', '--headless', '--disable-gpu', '--remote-debugging-port=9222', '--hide-scrollbars'] }); server.use(prerender.sendPrerenderHeader()); server.use(prerender.browserForceRestart()); // server.use(prerender.b...
import Units from './Units'; const _displayAbbreviations = { Gallon: 'gallon', Quart: 'qt', Liter: 'liter', Pound: 'lbs', Ounce: 'oz', Kilogram: 'kg', Gram: 'g', Fahrenheit: '°F', Celsius: '°C', Hour: 'hour', Minute: 'minute' }; const _shortAbbreviations = { Gallon: 'gal', Quart: 'qt', Lit...
"use strict"; /** * @file * The Waigo application object. */ const debug = require('debug')('waigo_application'), koa = require('koa'), log4js = require('log4js'), EventEmitter = require('eventemitter3'), path = require('path'); const waigo = global.waigo, _ = waigo._, logger = waigo.load('support/log...
/** * Summary Ranges */ let summaryRanges = function(nums) { let res = []; let start = 0, end = 0; for (let i = 0; i < nums.length; i++) { while (nums[i] + 1 == nums[i + 1]) { i++; end++; } if (start == end) { res.push("" + nums[start]); } else { res.push(nums[start] ...
var $mod$205 = core.VW.Ecma2015.Utils.module(require('../utils/has-own-prop')); var $mod$206 = core.VW.Ecma2015.Utils.module(require('../utils/to-int')); var tokens = {}; function addParseToken(token, callback) { var i, func = callback; if (typeof token === 'string') { token = [token]; } if (typ...
// Copyright 2017 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 in ...
import React, { Component } from 'react'; import Formulario from './form'; import { Container, Row, Col } from 'reactstrap'; import PaginationLibro from './paginationLibro'; import Carta from './carta'; class Libro extends Component { constructor(props) { super(props); this.state = {}; } render() { return ( ...