text
stringlengths
2
1.04M
/*! grafana - v4.0.0-1478693311beta1 - 2016-11-09 * Copyright (c) 2016 Torkel Ödegaard; Licensed Apache-2.0 */ System.register(["test/lib/common","../query_part"],function(a){var b,c;return{setters:[function(a){b=a},function(a){c=a}],execute:function(){b.describe("InfluxQueryPart",function(){b.describe("series with m...
var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000); var renderer = new THREE.WebGLRenderer(); renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); var geometry = new THREE.BoxGeometry...
import React from 'react'; import ReactDom from 'react-dom'; import ParentNode from './index.js'; ReactDom.render( <ParentNode></ParentNode>, document.getElementById('react') );
/* Highstock JS v7.2.1 (2019-10-31) Indicator series type for Highstock (c) 2010-2019 Kacper Madej License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/zigzag",["highchar...
/** * @class: cyMouse * @author: Mikhail Mansion */ define(function() { //cyMouse should only be instantiated through Cyto (main) var cyMouse = function(target) {}; /* Prototype inheritance -------------------------------------------------- */ var p = cyMouse.prototype; /* Public Methods ---...
import appcdLogger from 'appcd-logger'; import pluralize from 'pluralize'; import Response, { codes } from 'appcd-response'; import { v4 as uuidv4 } from 'uuid'; const logger = appcdLogger('appcd:service-dispatcher'); const { highlight, note } = appcdLogger.styles; /** * List of all valid handler types. * @type {A...
/** * @license Highstock JS v1.2.5 (2012-12-19) * Prototype adapter * * @author Michael Nelson, Torstein Hønsi. * * Feel free to use and modify this script. * Highcharts license: www.highcharts.com/license. */ // JSLint options: /*global Effect, Class, Event, Element, $, $$, $A */ // Adapter interface between...
var bcrypt = require('bcrypt'); exports.cryptPassword = function(password, callback) { bcrypt.genSalt(10, function(err, salt) { if (err) return callback(err); bcrypt.hash(password, salt, function(err, hash) { return callback(err, hash); }); }); }; exports.com...
import CryptoJS from 'crypto-js' const PBULICFUNC = { // 子系统集成跳转公共方法 10.12.1.20 10.248.68.27 showPage(num) { if (num === 1) { // 评价管理系统 // let url = 'http://10.248.68.27:9094/estimate/#/login' let num = (new Date().getTime()) let url = 'http://' + window.location.host + '/estimate/#/login?' +...
import React from 'react' import RichText from './richText' import styled from 'styled-components' const HeroWrapper = styled.section` background: url('${props => props.backgroundImage}'); background-size: cover; background-repeat: no-repeat; height: calc(100vh - 66px); display: flex; align-items: center; text-...
import React, { useState } from 'react'; import { useForm, Controller } from "react-hook-form"; import { CModal, CModalHeader, CModalBody, CModalFooter, CButton, CForm, CFormGroup, CInvalidFeedback, CInput } from '@coreui/react'; import Helper from '../../helpers' const DiaryDel = props => { const REQ_U...
const router = require("express").Router(); const watchlistController = require("../../controllers/watchlistController"); // Matches with "/api/stocks" /// all stocks person have router.route("/all/:email") .get(watchlistController.findByUser); /// add new one router.route("/new") .post(watchlistController.create)...
vdifn.datepicker = {}; vdifn.datepicker.defaultOptions = { setDefaultDate: true, minDate: Date.create('April 16, 2014'), maxDate: Date.create('2 days from today'), format: 'MMMM D, YYYY', onClose: function() { this.config().field.blur(); } }; vdifn.datepicker.create = function(options)...
/*! * CanJS - 2.3.34 * http://canjs.com/ * Copyright (c) 2018 Bitovi * Mon, 30 Apr 2018 20:56:51 GMT * Licensed MIT */ /*[global-shim-start]*/ (function (exports, global){ var origDefine = global.define; var get = function(name){ var parts = name.split("."), cur = global, i; for(i = 0 ; i < parts.le...
const mutations ={ addCounter(state, payload) { payload.count++ }, addToCart(state, payload) { payload.checked = true; state.cartList.push(payload) } } export default mutations
var WIDTH = 320; var HEIGHT = 240; var SCALE = 2; var canvas = document.getElementById("game"); canvas.width = WIDTH * SCALE; canvas.height = HEIGHT * SCALE; var ctx = canvas.getContext('2d'); ctx.scale(SCALE, SCALE); ctx.imageSmoothingEnabled = false; var TICKS_PER_SECOND = 40; var TIMESTEP = 1000 / TICKS_PER_SECON...
/*jslint nomen: true */ /*global jQuery */ var _training; // PvE------------------------------------------------------------------------------------------------------------- // PvP-------------------------------------------------------------------------------------------------------------
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { createFragmentContainer } from 'react-relay'; import graphql from 'babel-plugin-relay/macro'; import { withStyles } from '@material-ui/core/styles'; import ListItem from '@material-ui/cor...
import request, { getBaseUrl } from "../lib/request" import { getFullUrl } from "../lib/request"; export const itemNameToEncodedName = (str) => { if (typeof str !== 'string') { str = ''; } // https://stackoverflow.com/questions/987105/asp-net-mvc-routing-vs-reserved-filenames-in-windows var seoName = str.r...
import produce from 'immer'; const INITIAL_STATE = { token: null, signed: false, loading: false, }; export default function auth(state = INITIAL_STATE, action) { return produce(state, draft => { switch (action.type) { case '@auth/SIGN_IN_REQUEST': { draft.loading = true; break; ...
mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "1000.00", "ELECTION CODE": "P2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Retired", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "624 Westfield Avenue", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR...
export default { avatarDir: '/public/avatars', };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("v...
// ------------------------------------------------------------------ // APP CONFIGURATION // ------------------------------------------------------------------ module.exports = { logging: true, intentMap: { 'AMAZON.StopIntent': 'END', }, };
import React from 'react' import {drawNewCard, wipeCardToNull, applyCardToCharacter} from '../store' import {connect} from 'react-redux' const DrawCard = props => ( <div className="card" style={{width: '18rem'}}> {props.currentCard.id ? ( <img className="card-img-top" src=".../100px180/" alt="Card image ca...
module.exports = { moduleNameMapper: { '@/(.*)$': '<rootDir>/src/$1', '^src/(.*)$': '<rootDir>/src/$1', '^suggestion_utils/(.*)$': '<rootDir>/src/suggestion_utils/$1', '^suggestion_engine/(.*)$': '<rootDir>/src/suggestion_engine/$1', '^lib/(.*)$': '<rootDir>/src/lib/$1', '^msg/(.*)$': '<rootDi...
///import core ///import uicore (function() { var utils = baidu.editor.utils, Stateful = baidu.editor.ui.Stateful, uiUtils = baidu.editor.ui.uiUtils, UIBase = baidu.editor.ui.UIBase; var PastePicker = (baidu.editor.ui.PastePicker = function(options) { this.initOptions(options); this.initPastePi...
import React, { Component } from 'react'; import { Button, FormControl, Form } from 'react-bootstrap'; import { search } from '../../actions/searchActions'; import { connect } from 'react-redux' import { Redirect } from 'react-router-dom' class CreatorSearch extends Component { constructor(props) { super(pro...
/*! * Font Awesome Free 5.12.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */
/* global alert */ import React, { useState, useEffect, useCallback } from 'react'; import { View, TextInput, Linking, StyleSheet } from 'react-native'; import { Button } from 'react-native-elements'; import { useTheme, useNavigation, useRoute } from '@react-navigation/native'; import { AppStorage } from '../../class';...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.5.4.10_A1_T1; * @section: 15.5.4.10; * @assertion: String.prototype.match (regexp); * @description: Arguments is true, and instance is object; */ __instance = new Object...
// Working off this example (v0.9.11): // https://github.com/timhagn/gbitest/blob/master/src/components/FullBackground.js // Thanks @timhagn :) import React from "react" import { graphql, useStaticQuery } from "gatsby" import styled from "styled-components" import BackgroundImage from "gatsby-background-image" import...
import React from 'react'; import PropTypes from 'prop-types'; import { ThemeProvider } from 'styled-components'; import SEO from '@common/SEO'; import theme from '@styles/theme'; import GlobalStyles from '@styles/GlobalStyles'; import Navbar from '@common/Navbar'; import Footer from '@common/Footer/Footer'; const ...
import expect, {createSpy, spyOn} from 'expect' import xmock from 'xmock' import path from 'path' import fs from 'fs' import qs from 'querystring' import jsYaml from 'js-yaml' import {execute, buildRequest, baseUrl, applySecurities, self as stubs} from '../../../src/execute' const petstoreSpec = jsYaml.safeLoad(fs.re...
'use strict'; const mongoose = require('mongoose'); const categories = mongoose.Schema({ name:{ type: String, required: true, }, description: { type: String, }, }); module.exports = mongoose.model('categories ', categories);
import { consola } from '../utils' import { Hookable } from '../mixins' import { getNuxt, getGenerator } from '../utils/nuxt' export default class Worker extends Hookable() { constructor (options, { failOnPageError } = {}) { super() this.options = options this.id = -1 this.failOnPageError = failOnPa...
/** * @augments milkmidi * @version 1.0.0 * @example * v-ga="'gaCode'" * v-ga.mounted="'mountedCode'" * v-ga.event="'gaEvent'" */ import { gaPage, gaEvent } from '@/util/ga'; // https://vuejs.org/v2/guide/custom-directive.html type DirectiveBinding = { name:string, value:string, oldValue:string, express...
import React, {Component} from 'react'; import { Badge, Row, Col, Card, CardHeader, CardBody, Table, Pagination, PaginationItem, PaginationLink } from 'reactstrap'; class Tables extends Component { render() { return ( <div className="animated fadeIn"> <Row> <Col xs="1...
"use strict"; /** * @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 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonJsUsageWarnPlugin = void 0...
/*\ title: $:/plugins/oflg/fishing/interval.js type: application/javascript module-type: filteroperator Calculate the interval of tiddler \*/ (function () { /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Export our filter function */ exports.interval = func...
import React from "react"; import AccountBadge from "./AccountBadge"; export default class AssetLink extends React.Component { render() { return ( <span> <code>{this.props.code}</code> {this.props.issuer ? ( <AccountBadge horizonURL={this.props.horizonURL} ...
$(document).ready(function () { var type = $('#sslCertificate').data('type'); $('#sslCertificate').on('click', 'td.remove', function () { var row = $(this).parent(); $.ajax(OC.generateUrl('settings/' + type + '/certificate/{certificate}', {certificate: row.data('name')}), { type: 'DELETE' }); row.remove();...
import { View } from './View.js'; import { DateConverter } from '../converters/DateConverter.js'; export class NegociacoesView extends View { template(model) { return ` <table class="table table-hover table-bordered"> <thead> <tr> <th>DATA</th> ...
import Promise from 'bluebird'; import nconf from 'nconf'; import R from 'ramda'; function channelinfo(client, evt, suffix) { const channelinfo = []; if (evt.message.channel.isPrivate) { channelinfo.push(`\`\`\`ID: ${evt.message.channel.id} Type: Direct Message New Messages: ${evt.message.channel.messages.le...
/** * @license * (C) Alva Chien, 2017 - 2021. 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://github.com/alvachien/datastructure/blob/master/LICENSE * * File: DateUtility.ts * */ export class DateUtility { /** * Co...
//! moment.js locale configuration ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (f...
var learnQuery = (function() { 'use strict'; var eventList = []; // Dom selector functions var domSelector = function(selectors) { try { var selectedElements = document.querySelectorAll(selectors); return Array.prototype.slice.call(selectedElements); } catch (e) { throw new Error('In...
const path = require("path"); const { hooks } = require("./src/support/hooks"); exports.config = { // // ==================== // Runner Configuration // ==================== // // WebdriverIO allows it to run your tests in arbitrary locations (e.g. locally or // on a remote machine). ru...
module.exports = { siteMetadata: { title: `Rajah Maggay`, author: { name: `Rajah Maggay`, summary: `who lives and works in San Francisco building useful things.`, }, description: `Rajah Maggay is running for City Council`, siteUrl: `https://quirky-austin-231cc0.netlify.app`, social...
const fs = require('fs') const util = require('util') const path = require('path') const { run } = require('micro') const match = require('fs-router')(path.join(__dirname, '/routes')) const auth = require('basic-auth') const express = require('express') module.exports = function (config) { config.backend.on('expres...
import React, { PureComponent } from 'react' import { Image, TouchableOpacity, StyleSheet } from 'react-native' import { Box, Text } from 'react-native-design-utility' import { NavigationService } from '../api/NavigationService' class CategoryCard extends PureComponent { state = {} handlePress = () => { cons...
{ "handler" : [ { "code": "azasterisk", "name": "Surround with asterisk", "type": "surround", "start": "*", "end": "*" } ], "command" : [ { "code": "newline to asterisk", "name": { "input": "newline delimited", "output": "asterisk" }, "handlers": { "input" : ["_newline", ...
module.exports = { extends: 'stylelint-config-recommended', };
tinyMCE.addI18n('bn.simple',{ bold_desc:"\u09AC\u09CB\u09B2\u09CD\u09A1 (Ctrl+B)", italic_desc:"\u0987\u099F\u09BE\u09B2\u09BF\u0995 (Ctrl+I)", underline_desc:"\u0986\u09A8\u09CD\u09A1\u09BE\u09B0\u09B2\u09BE\u0987\u09A8 (Ctrl+U)", striketrough_desc:"\u09AE\u09BE\u099D \u09AC\u09B0\u09BE\u09AC\u09B0 \u09B0\u09C7\u0996\...
/* Print a chess board into a string, given a size (8 initial) */ const generateSpace = () => ' '; const generateHash = () => '#'; const generateLineBreak = () => '\n'; const isEven = number => !!((number % 2)); const generateLine = (size, isLineEven) => { let line = ''; let characterCount; for (characterCou...
/* * /MathJax/localization/th/th.js * * Copyright (c) 2009-2018 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
(function() { ace.require(["ace/ext/keybinding_menu"], function() {}); })();
import Vue from "vue"; import {mount} from "@vue/test-utils"; import AddPermission from "../../../js/components/admin/addPermission.vue"; describe("add permission", () => { it("shows error if invalid permission is selected", async () => { const wrapper = mount(AddPermission, { propsData: { ...
import React, {useState} from 'react'; import Layout from "../components/Layout"; import MediaPlayerWrapper from "../components/MediaPlayerWrapper"; import VideoControlPanel from "./VideoControlPanel"; /** * Main video screen * @param props * @returns {*} * @constructor */ const VideoScreen = (props) => { con...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Coordinate/setting/nls/strings":{id:"ID",state:"Secara default, koordinat akan ditampil...
'use strict'; import React from "react"; import ReactDOM from "react-dom"; //If you don't need rendering to strings comment out the following line import ReactDOMServer from "react-dom/server"; //Export the base React packages to the Window object for GWT to access window.React = React; window.ReactDOM = ReactDOM; ...
const API_BASE_URL = process.env.API_BASE_URL || 'http://localhost:3000'; const AVAX_CHAIN_ID = 43114; const AVAX_RPC = process.env.AVAX_RPC || 'https://api.avax.network/ext/bc/C/rpc'; const BASE_HPY = 2190; const HOURLY_HPY = 8760; const DAILY_HPY = 365; const WEEKLY_HPY = 52; module.exports = { API_BASE_URL, A...
import './plugin-deactivation.scss'; import UninstallFeedback from './uninstall-feedback'; jQuery(document).ready(_ => { const uninstallScript = UninstallFeedback; uninstallScript.slug = 'kaliforms'; uninstallScript.template = KaliFormsPluginDeactivationObject.modalHtml; uninstallScript.form = 'kaliforms-deactivat...
describe("Robot Services: spotCleaning basic-1", function() { var robot = new Neato.Robot("serial", "secretKey") , deferredObject = "deferredObject" , robotState = { "version": 1, "reqId": "77", "result": "ok", "data": {}, "state": 1, "action": 0, "avail...
import React, { PureComponent } from 'react'; import { Platform, View, TouchableWithoutFeedback } from 'react-native'; import Ionicons from 'react-native-vector-icons/Ionicons'; import Feather from 'react-native-vector-icons/Feather'; import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; import { backgr...
// Copyright (c) 2015-present Xenia, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {getFilterOptions} from './get_users'; describe('get_users', () => { describe('getFilterOptions', () => { it('should return empty options in case of empty filter', () => { const fil...
/** * List libraries and it's opening hours */ import React from 'react'; import { List, ListItem } from 'material-ui/List'; const OpeningHours = props => { const handleClick = (lid) => { props.router.push(`/libraries/${lid}`); }; const renderDepartments = (departments) => { return ( ...
// import { HTTPResponse } from '@src/types'; // export default async function fetcher<T>(url: string, options: RequestInit): Promise<HTTPResponse<T>> { // try { // const response = await fetch(url, options); // const { statusCode, data, message } = await response.json(); // if (response.ok) { // c...
/* Formatblock * Is used to insert block level elements * It tries to solve the case that some block elements should not contain other block level elements (h1-6, p, ...) * */ (function(wysihtml) { var dom = wysihtml.dom, // When the caret is within a H1 and the H4 is invoked, the H1 should turn into H4 ...
//# sourceMappingURL=main.0f4474a8.chunk.js.map
dojo.provide("dojo.nls.vclVirtualHosts_ja");dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.ja");dijit.nls.common.ja={"buttonOk":"OK","buttonCancel":"キャンセル","buttonSave":"保存","itemClose":"閉じる"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo....
/* Navigation */ $('a.scroll-link').on('click', function(e) { e.preventDefault(); scroll_to($(this), $('nav').outerHeight()); }); $(document).ready(function(){ $('.customer-logos').slick({ slidesToShow: 6, slidesToScroll: 1, autoplay: true, autoplaySpeed: 1500, arrows: false, dots:...
/** * Copyright (c) 2017, Árpád Poprádi * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import store from '../store'; import { Provider } from 'rea...
'use strict'; var mongoose = require('mongoose'); mongoose.Promise = global.Promise; var Schema = mongoose.Schema; /** * User Schema */ var SupplierSchema = new Schema({ store:String, name: {type : String, default : '', trim : true}, url:{type :String,index:true}, index: Number, rate:{ty...
'use strict'; var expect = require('chai').expect, fspath = require('path'), Mongod = require('mongodb-memory-server').MongoMemoryServer, { MongoClient, ObjectId } = require('mongodb'), restore = require('./restore-database'); describe('restore-database', () => { var dbName = 'db-1', s...
import React from 'react'; import './App.css'; import axios from "axios"; import Header from './components/Header'; import Navbar from './components/Navbar'; import {Container, Row, Col} from "./components/Grid"; class App extends React.Component { state = { employees: [], }; componentDidMount() { axi...
import viewIndex from '@/layout/index' import contentView from '@/layout/contentView' const ioRouter = [ { path: '/board', redirectTo:'/login', pathMatch:'full', name: '系统看板', icon:'project', component:viewIndex, meta: { requireAuth: true, ...
import styled from 'styled-components'; import { themeGet } from '@styled-system/theme-get'; export const Section = styled.section` padding: 80px 0; @media only screen and (max-width: 768px) { padding-top: 50px; } `; export const ContentWrapper = styled.div` display: flex; align-items: center; @media ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.setState = exports.getState = void 0; const StateMachine_1 = __importDefault(require(".....
var mongoose = require( 'mongoose' ); var reviewsSchema = new mongoose.Schema({ user_id: String, name: String, movie_id:{ type: Number, required: true }, review: String, rating: Number, created_date: Date, updated_date: Date }); mongoose.model('reviews', reviewsSchema);
/* * NOTICE * This software was produced for the U.S. Government and is subject to the * Rights in Data-General Clause 5.227-14 (May 2014). * Copyright 2018 The MITRE Corporation. All rights reserved. * Approved for Public Release; Distribution Unlimited. Case 18-2165 * * This project contains content developed ...
// array in local storage for registered users let users = JSON.parse(localStorage.getItem('users')) || []; export function configureFakeBackend() { let realFetch = window.fetch; window.fetch = function (url, opts) { return new Promise((resolve, reject) => { // wrap in timeout to simulate s...
/** * Format data into string. * * @param {*} data * @param {function} cb */ exports.format = function (data, cb) { var err; try { data = JSON.stringify(data); } catch (e) { err = e; } cb(err, data); }; /** * Parse data. * * @param {*} data * @param {function} cb */ exports.parse = func...
/* eslint-env mocha */ const assert = require('assert') const mineflayer = require('../') const commonTest = require('./externalTests/plugins/testCommon') const mc = require('minecraft-protocol') const fs = require('fs') const path = require('path') // set this to false if you want to test without starting a server a...
angular.module('app.controllers') .controller('ProjectEditController', [ '$scope', '$routeParams', '$location', '$cookies', '$q', '$filter', 'Project', 'Client', 'appConfig', function ($scope, $routeParams, $location, $cookies, $q, $filter, Project, Client, appConfig) { Project.get({id: ...
import React, { Fragment, useState } from 'react'; import PropTypes from 'prop-types'; import Carousel from '../index'; require('../carousel.less'); export default { component: Carousel, title: 'Carousel' }; const IMAGES = [ 'http://picsum.photos/400/300', 'http://picsum.photos/275/300', 'http://picsum.pho...
import React from 'react'; import _ from 'lodash'; import { Sparklines ,SparklinesBars,SparklinesReferenceLine } from 'react-sparklines'; import GoogleMap from './google_map.js'; function average(data){ if(data.length>0){ return _.round(_.sum(data)/data.length); }else{ return 0; } } expo...
import { EventEmitter } from 'events' import StreamWindow from './StreamWindow' class PopupHandler extends EventEmitter { constructor({ url, target, features, preopenInstanceId }) { super() this.url = url this.target = target || '_blank' this.features = features || 'directories=0,titlebar=0,toolbar=...
const express = require('express'); const auth = require('../middlewares/authorize'); const multer = require('../middlewares/multer-config'); const { Post } = require('../config/dbConfig'); module.exports = (app) => { app.get('/api/posts', (req, res) => { Post.findAll() .then(posts => { ...
// Copyright (C) 2015 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 20.2.2.30 description: > Math.sin.name is "sin". info: | Math.sin ( x ) 17 ECMAScript Standard Built-in Objects: Every built-in Function object, including constructor...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/c...
/*! * Datepicker for Bootstrap v1.4.0 (https://github.com/eternicode/bootstrap-datepicker) * * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0) */
/* File: util.js */ /* Creation date: 2017-06-13 */ /* Creator: Dmitry Guzeev <dmitry.guzeev@yahoo.com> */ /* Description: */ /* Utility stuff */ const fs = require('fs'); const path = require('path'); const logger = require('./logger'); /** * @summary * Print message about the unknown command-line argument * * ...
/* =========================================================== * jquery-simple-text-rotator.js v1 * =========================================================== * Copyright 2013 Pete Rojwongsuriya. * http://www.thepetedesign.com * * A very simple and light weight jQuery plugin that * allows you to rotate multipl...
import PropTypes from 'prop-types'; const ProfileInfoGroup = ({ infoKey, val }) => ( <div className="profile__info__group"> <p className="profile__info__key"> {infoKey} : </p> <p className="profile__info__value"> {val} {' '} </p> </div> ); ProfileInfoGroup.propTypes = { i...
/* Copyright 2020-2021 Lowdefy, 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 in wri...
import React, { useMemo } from 'react'; import DefaultApp from './App.js'; import { useComponents, useRoutesMap, useIndexRoute, useRouteTitle, navRef, useNavigationProps, useCreateNavigator } from './hooks'; import { NavigationContainer } from '@react-navigation/native'; import PropTypes fro...
// Copyright (C) 2017 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: > Test Atomics.sub on non-shared integer TypedArrays includes: [testTypedArray.js] ---*/ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, I...
const en_US = {} en_US.strings = { addBulkFilesFailed: { '0': 'Failed to add %{smart_count} file due to an internal error', '1': 'Failed to add %{smart_count} files due to internal errors', }, addingMoreFiles: 'Adding more files', addMore: 'Add more', addMoreFiles: 'Add more files', allFilesFromFol...