text stringlengths 2 1.04M |
|---|
import React from 'react'
import { withGoogleMap, GoogleMap, withScriptjs, InfoWindow, Marker } from "react-google-maps";
import Autocomplete from 'react-google-autocomplete';
import Geocode from "react-geocode";
import { G_API_URL } from "./constants";
const key = process.env.REACT_APP_GOOGLE_MAPS
const urlKey=`https:... |
module.exports = {"Title":"Dexter","Year":"2006–2013","Rated":"TV-MA","Released":"01 Oct 2006","Runtime":"53 min","Genre":"Crime, Drama, Mystery, Thriller","Director":"N/A","Writer":"James Manos Jr.","Actors":"Michael C. Hall, Jennifer Carpenter, David Zayas, James Remar","Plot":"By day, mild-mannered Dexter is a blood... |
/*
AngularJS v1.4.5-build.4181+sha.dc48aad
(c) 2010-2015 Google, Inc. http://angularjs.org
License: MIT
*/
(function(x,s,y){'use strict';function t(f,k,p){n.directive(f,["$parse","$swipe",function(c,e){return function(l,m,g){function h(a){if(!b)return!1;var d=Math.abs(a.y-b.y);a=(a.x-b.x)*k;return r&&75>d&&0<a&&30<a... |
const http = require('http');
const url = require('url');
const PORT = 8080;
const DEBUG = false;
handleRequest = (request, response) => {
const website = url.parse(request.url, true).query['website'];
if (!website) {
response.end('{error: "Missing website"}');
return;
}
const methods = [];
const s... |
import JSBI from 'jsbi';
export { default as JSBI } from 'jsbi';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import { getAddress, getCreate2Address } from '@ethersproject/address';
import _Big from 'big.js';
import toFormat from 'toformat';
import _Decimal from 'decimal.js-light';
import... |
/*
* The MIT License (MIT)
*
* Copyright (c) Ankit
*
* 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, mo... |
/**
* Functions/constants needed by both the client and server.
*/
exports.DEFAULT_ANNOUNCE_PEERS = 50
exports.MAX_ANNOUNCE_PEERS = 82
exports.binaryToHex = function (str) {
if (typeof str !== 'string') {
str = String(str)
}
return Buffer.from(str, 'binary').toString('hex')
}
exports.hexToBinary = functi... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import assert from 'assert';
import deepFreezeAndThrowOnMutation from 'utils/deep_freeze';
import TestHelper from 'test/test_helper';
import * as Selectors from 'selectors/entities/roles';
import {General} ... |
// Copyright (c) 2019 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.
const path = require('path')
const fs = require('fs-ext... |
/*! UIkit 3.6.19 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitlightbox', ['uikit-uti... |
import React from "react";
import styled from "styled-components";
import { ElementBuilder } from "./ElementBuilder";
export class FicheServicePublic extends React.PureComponent {
render() {
return (
<Div>
<ElementBuilder {...this.props} />
</Div>
);
}
}
const Div = styled.div`
& > ... |
import React, { useState, useEffect } from "react";
import { useHistory } from "react-router-dom";
import "./Nav.css";
function Nav() {
// change header once the user gets to a certain point of the page
const [show, handleShow] = useState(false);
const history = useHistory();
const transitionNavBar = () => {
... |
$(document).ready(function () {
$('#copper_modal').on('hidden.bs.modal', function () {
canvas.cropper("destroy");
});
});
$("#copper_modal").modal("hide");
var canvas = $("#canvas"),
context = canvas.get(0).getContext("2d"),
$result = $('#result');
$('#file-input').on( 'change', function(){
$('#copper_mo... |
import React from 'react';
import { render, cleanup } from 'react-testing-library';
import { Tooltip } from '../../src/components';
import 'jest-styled-components';
const props = {
pageX: 100,
pageY: 100,
};
afterEach(cleanup);
test('Tooltip', () => {
const { container } = render(<Tooltip {...props}>foo</Toolt... |
const coreApi = require("./../app/api/coreApi.js");
const addressApi = require("./../app/api/addressApi.js");
const utils = require("./../app/utils.js");
const debug = require("debug");
const debugLog = debug("btcexp:core");
const bitcoinjs = require('bitcoinjs-lib');
const Cache = require("./../app/cache.js");
const u... |
export class Grafica {
constructor(datos) {
this.datos = datos;
}
iniciarGrafica() {
/** SETUP **/
const labels = [
'Enero',
'Febrero',
'Marzo',
'Abril',
'Mayo',
'Junio',
'Julio',
'Agosto',
// 'Septiembre',
// 'Octubre',
// 'Noviembr... |
$(document).ready(function() {
$("#pform").submit(function(event) {
$("#pform").hide();
const nameInput = $("#name").val();
const qulInput = $("#qul").val();
const ageInput = parseInt($("#Age").val());
const operator = $("input:radio[name=operator]:checked").val();
if(nameInput !== ' ' && ... |
import React from 'react';
import { render } from 'react-dom';
import HelloWorld from './HelloWorld';
render(<HelloWorld />, document.getElementById('root')) |
class CannonBall{
constructor(x,y){
var op = {
restituition : 0.8,
friction : 1,
density : 1,
isStatic : true,
}
this.body = Bodies.circle(x,y,40,op);
World.add(world,this.body);
this.r = 40;
this.Image = loadImage... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Physician", "CONTRIBUTION AMOUNT (F3L Bundled)": "300.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Self Employed", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "4114 Stone Haven Dr", "CONTRIBUTOR MIDDLE NAME": "Withers", "DONOR CANDIDATE FEC ID": ""... |
const platformIDs = {
BRAZIL: 'br1',
EUROPE: 'eun1',
EUROPE_WEST: 'euw1',
KOREA: 'kr',
LATIN_AMERICA_NORTH: 'la1',
LATIN_AMERICA_SOUTH: 'la2',
NORTH_AMERICA: 'na1',
NORTH_AMERICA_OLD: 'na',
OCEANIA: 'oc1',
RUSSIA: 'ru',
TURKEY: 'tr1',
JAPAN: 'jp1',
}
export default platf... |
//
// Vivado(TM)
// rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6
// Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.
//
echo "This script was generated under a different operating system."
echo "Please update the PATH variable below, before executing this script"
exit
var WshShell = new ActiveXObjec... |
import Vue from 'vue'
import Skeleton from './Skeleton'
export default new Vue({
components: {
Skeleton
},
template:'<Skeleton />'
}) |
/*!
* ${copyright}
*/
// Provides control sap.ui.layout.HorizontalLayout.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', './library'],
function(jQuery, Control, library) {
"use strict";
/**
* Constructor for a new HorizontalLayout.
*
* @param {string} [sId] id for the new control, generated a... |
import React from 'react'
import Layout from './layout'
import { withPrefix } from 'gatsby'
const Masthead = () => (
<Layout>
<div
className="masthead"
style={{
backgroundImage: `url('${withPrefix('/img/masthead.png')}')`,
}}
>
<div className="masthead__content">
<h1>... |
var class_tg_bot_1_1_chosen_inline_result =
[
[ "Ptr", "class_tg_bot_1_1_chosen_inline_result.html#ad4b7edd30fd0d876fa99493fe19b3247", null ],
[ "from", "class_tg_bot_1_1_chosen_inline_result.html#ab35d35a8968b0d943a415a23feed48cd", null ],
[ "inlineMessageId", "class_tg_bot_1_1_chosen_inline_result.html#ab... |
module.exports = function(grunt) {
grunt.config('concat.js', {
files : {
'build/static/js/global.js' : [
'libs/moment/moment.js',
'libs/moment/min/locales.js',
'libs/moment-timezone/builds/moment-timezone-with-data.js',
'assets/js/global.js'
],
'build/static/js/core-test.js' : [
... |
import React, {PropTypes, Component} from 'react';
import bemHelper from 'react-bem-helper';
const bem = bemHelper({ prefix: 'toga-', name: 'currency' });
export default class Currency extends Component {
static propTypes = {
code: PropTypes.string.isRequired
};
static symbols = {
GBP: '£',
EUR: '... |
require('@nomiclabs/hardhat-truffle5');
const fs = require('fs');
task('fetch-vaults-data-4', 'Fetch vaults data').setAction(async () => {
const BPool = artifacts.require('BPool');
const MockVault = artifacts.require('MockVault');
const MockVaultRegistry = artifacts.require('MockCurvePoolRegistry');
const va... |
var fs = require('fs');
var path = require('path');
function loadOutput(outputPath) {
return fs.readFileSync(path.join(path.dirname(__dirname), 'templates/output', outputPath))
.toString()
.replace(/%%LOADER%%/g, require.resolve('../../file-loader.js'));
}
module.exports = loadOutput; |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
var boom = (function(stdlib, foreign, heap) {
"use asm";
var MEM8 = new stdlib.Uint8Array(heap);
var MEM32 = new... |
// hero.js 0.5.0
// (c) 2014 Ivan Ruby
// hero may be freely distributed under the MIT license.
// For all details and documentation:
// ivanruby.com/herojs/documentation.html
(function() {
'use strict';
var root = this;
var hero = {
/**
Versions:
0.1.0 Library creation
0.2.0 hero... |
var searchData=
[
['failed_0',['FAILED',['../namespace_aws_1_1_iotjobs.html#ab23745174d4d2f57ebf542bdbd1bacf0ab9e14d9b2886bcff408b85aefa780419',1,'Aws::Iotjobs']]],
['failed_5fhash_1',['FAILED_HASH',['../_job_status_8cpp.html#a748e80818b2b1a630bdaaeb6fdedc963',1,'JobStatus.cpp']]],
['failedupdateconditioncheckerr... |
jQuery(function($){
$.fn.Training = function(){
var margin = {top: 20, right: 120, bottom: 20, left: 120},
width = 960 - margin.right - margin.left,
height = 800 - margin.top - margin.bottom;
var i = 0,
duration = 750,
root;
var tree = d3.layout.tree()
.size(... |
const helpers = require("./global-setup");
describe("Check configuration without modules", function () {
beforeAll(function (done) {
helpers.startApplication("tests/configs/without_modules.js");
helpers.getDocument(done, 1000);
});
afterAll(function () {
helpers.stopApplication();
});
it("Show the message ... |
define(function(require) {
var console = require('util/console');
console.warn(
'%s is deprecated. Please require %s instead.',
'splunkjs/mvc/simplexml/dashboard',
'splunkjs/mvc/simplexml/dashboardview');
return require('./dashboardview');
}); |
module.exports = md => {
const defaultCodeInline = md.renderer.rules.code_inline
// eslint-disable-next-line camelcase
md.renderer.rules.code_inline = (...args) => {
const [tokens, idx] = args
const token = tokens[idx]
token.attrSet('v-pre', '')
return defaultCodeInline(...args)
}
} |
var express = require("express");
var mongojs = require("mongojs");
var bodyParser = require("body-parser");
var logger = require("morgan");
var app = express();
app.use(logger("dev"));
app.use(
bodyParser.urlencoded({
extended: false
})
);
app.use(express.static("public"));
var databaseUrl = "week18day2";
v... |
import { NotImplementedError } from '../extensions/index.js';
/**
* Given a string, return its encoding version.
*
* @param {String} str
* @return {String}
*
* @example
* For aabbbc should return 2a3bc
*
*/
export default function encodeLine(str) {
// throw new NotImplementedError('Not implemented');
l... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
/**
This is the entrance point for the Galaxy UI.
*/
define(['utils/utils', 'galaxy.masthead', 'galaxy.menu', 'galaxy.frame',
'mvc/ui/ui-portlet', 'mvc/ui/ui-misc', 'mvc/ui/ui-modal',
'mvc/user/user-quotameter', 'mvc/app/app-analysis'],
function( Utils, Masthead, Menu, Frame, Portlet, Ui, Modal,... |
module.exports = {
title: '目录', // 必要的
path: '/posts/', // 可选的, 应该是一个绝对路径
// collapsable: true, // 可选的, 默认值是 true,
// sidebarDepth: 2, // 可选的, 默认值是 1
// children: [
// '../../README.md',
// ]
} |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-2-3
description: >
Array.isArray applied to an Array-like object with length and some
indexed properties
---*/
assert.sameValue(A... |
#!/usr/bin/env node
'use strict';
// eslint-disable-next-line import/no-unassigned-import
require('symbol-observable'); // Important: This needs to be first to prevent weird Observable incompatibilities
const logSymbols = require('log-symbols');
const meow = require('meow');
const updateNotifier = require('update-notif... |
'use strict';
const PubNub = require('pubnub');
const MockPubnub = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/pubnub/mock_pubnub');
const PubNubClient = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/pubnub/pubnub_client_async');
const SocketClusterClient = require(process.env.CSSVC... |
import React, { Component } from "react";
export default class LandingPage extends Component {
render() {
return <div>hello</div>;
}
} |
tinyMCE.addI18n('no.template_dlg',{title:"Maler",label:"Mal","desc_label":"Beskrivelse",desc:"Sett inn forh\u00e5ndsdefinert malinnhold",select:"Velg en mal",preview:"Forh\u00e5ndsvis",warning:"Advarsel: Oppdatering av mal med en annen kan f\u00f8re til tap av data.","mdate_format":"%d-%m-%Y %H:%M:%S","cdate_format":"%... |
import React from 'react';
import { shallow } from 'enzyme';
import InfoTipMenu from './InfoTipMenu';
const props = {
children: 'children'
};
test('forwards only valid props to the root element', () => {
const view = shallow(
<InfoTipMenu
{...props}
id="id"
bsRole="bsRole"
bsClass="bsC... |
/**
*
* @desc 获取浏览器类型和版本
* @return {String}
*/
module.exports = function() {
} |
"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];
})... |
const sshParse = require('ssh-parse');
const url = require('url');
const trimStart = require('lodash.trimstart');
const parseRepoUrl = repoUrl => {
const parsedRepoUrl = url.parse(repoUrl);
const parsedRepoSshUrl = sshParse(repoUrl);
const parsedUrl = parsedRepoUrl.protocol ? parsedRepoUrl : parsedRepoSsh... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","hu",{title:"Kisegítő utasítások",contents:"Súgó tartalmak. A párbeszédablak bezárásához nyomjon ESC-et.",legend:[{name:"Általános",items:[... |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.20.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
deepmacDetailCallback("4a7f74000000/24",[{"d":"2019-04-06","t":"add","s":"ieee-cid.csv","a":"1-1-25 Shin-urashima-cho, Kanagawa-ku Yokohama-shi Kanagawa-ken JP 221-0031","c":"JP","o":"INTEC Inc."}]); |
import { css } from '@emotion/react'
const lists = theme => css`
ul,
ol,
dl {
margin: 0 0 ${theme.margin} 0;
}
ol,
ul {
padding-left: 1.3em;
padding-right: 1.5em;
}
ol ol,
ul ul,
ul ol,
ol ul {
margin: 0.5em 0 1em;
}
ul {
list-style: disc;
}
ol {
list-style: de... |
import React, { useEffect } from "react";
import { Link } from "react-router-dom";
import { useSelector, useDispatch } from "react-redux";
import { detailsProduct } from "../actions/productActions";
function ProductScreen(props) {
const productDetails = useSelector((state) => state.productDetails);
const { product... |
ig.module('game.entities.gas').requires('impact.entity').defines(function ()
{
EntityGas = ig.Entity.extend(
{
size: {
x: 16,
y: 16
},
checkAgainst: ig.Entity.TYPE.A,
animSheet: new ig.AnimationSheet('media/sprites/gas.png', 16, 16),
collect: new i... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-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 from 'react';
import PropTypes from 'prop-... |
import webpack from 'webpack';
// Try the environment variable, otherwise use root
const ASSET_PATH = process.env.ASSET_PATH || '/';
export default {
output: {
publicPath: ASSET_PATH,
},
plugins: [
// This makes it possible for us to safely use env vars on our code
new webpack.DefinePlugin({
'process.env... |
/*jslint
browser: true,
nomen: false,
debug: true,
forin: true,
undef: true,
white: false,
onevar: false
*/
var sc, DOMParser, jQuery;
/**
* An image uploader library for SpazCore. Probably this will supercede spazfileuploader.js
* @param {object} [opts] options hash
* @param {object} [opts.auth_obj] A SpazAuth... |
/* @flow */
import { _Set as Set, isObject } from '../util/index'
import type { SimpleSet } from '../util/index'
import VNode from '../vdom/vnode'
const seenObjects = new Set()
/**
* Recursively traverse an object to evoke all converted 递归遍历一个对象以调用所有转换的getter,
* getters, so that every nested property inside the... |
angular.module('ngMApp')
.controller('LoginDialogController', ['$scope', '$mdDialog', 'AuthService',
function($scope, $mdDialog, AuthService) {
$scope.isRegister = AuthService.getIsRegister();
$scope.anonUser;
$scope.hide = function() {
$mdDialog.hide();
};
$scope.cance... |
'use strict';
/**
* Configuration dependencies.
*/
var config = require('../config/production/config');
/**
* Node dependencies.
*/
var LRU = require('lru-cache');
var cache = new LRU({ maxAge: 2.592e9 });
var fs = require('fs');
var path = require('path');
var request = require('request');
var express = requir... |
const accessNanopool = require('./ethereum/accessNanopool')
const apiFields = require('./ethereum/apiFields')
module.exports = async ({chainName, config, log}) => {
const values = await Promise.all(apiFields
.map(async field => {
const result = {}
const value = await accessNanopool({config, log, fiel... |
/* @flow */
import type { L10nsStrings } from "../formatters/buildFormatter";
// Japanese
const strings: L10nsStrings = {
prefixAgo: "",
prefixFromNow: "今から",
suffixAgo: "前",
suffixFromNow: "後",
seconds: "1 分未満",
minute: "約 1 分",
minutes: "%d 分",
hour: "約 1 時間",
hours: "約 %d 時間",
day: "約 1 日",
da... |
export default (store) => ({
path: 'dashboard',
getComponent (nextState, cb) {
require.ensure([], (require) => {
/* Webpack - use require callback to define
dependencies for bundling */
const Dashboard = require('./components/Dashboard').default
/* Return getComponent */
... |
var keys = new Tone.Sampler({
"C1" : "FILE1.[mp3|ogg]",
"E1" : "FILE5.[mp3|ogg]",
"G#1" : "FILE9.[mp3|ogg]",
"C2" : "FILE13.[mp3|ogg]",
"E2" : "FILE17.[mp3|ogg]",
"G#2" : "FILE21.[mp3|ogg]",
"C3" : "FILE25.[mp3|ogg]"
}, {
"baseUrl" : "https://raw.githubusercontent.com/publicsam... |
var path = require('path'),
config;
config = {
database: {
client: 'sqlite',
filename: path.join(__dirname, '/content/data/wishlist.db'),
username: 'admin',
password: 'password'
}
};
module.exports = config; |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
(global.... |
/**
* Starts standalone RS with skipShardingConfigurationChecks.
*/
(function() {
'use strict';
function expectState(rst, state) {
assert.soon(function() {
var status = rst.status();
if (status.myState != state) {
print("Waiting for state " + state + " in repl... |
import Dialog from 'primevue/dialog'
import DataTable from 'primevue/datatable'
import Column from 'primevue/column'
import Skeleton from 'primevue/skeleton'
import Button from 'primevue/button'
import InputText from 'primevue/inputtext'
import Toolbar from 'primevue/toolbar'
import FileUpload from 'primevue/fileupload... |
module.exports = {
presets: [
['@babel/preset-env', {
targets: {
node: 'current'
}
}],
'@babel/preset-typescript',
],
}; |
const apiurl = 'http://localhost:5000';
export default {
users: {
signup: `${apiurl}/users/signup`,
signin: `${apiurl}/users/signin`,
signout: `${apiurl}/users/signout`,
oauth: {
google: `${apiurl}/users/oauth/google`,
facebook: `${apiurl}/users/oauth/facebook`
},
status: `${apiur... |
import React from "react";
import PropTypes from "prop-types";
import { graphql } from "gatsby";
//import ReactMarkdown from "react-markdown";
import Helmet from "react-helmet";
import emailjs from 'emailjs-com';
import Layout from "../components/Layout";
import "../styles/contact-page.scss";
export class ContactPageT... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ |
const path = require("path");
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
develop: {
port: 8545
}
},
compilers: {
solc: ... |
import styled from 'styled-components'
import { Link } from 'gatsby'
const StyledLink = styled(Link)`
${tw`text-inherit no-underline`}
`
export default StyledLink |
const router = require('express').Router();
const HttpError = require('../utils/HttpError');
const { User } = require('../db/models');
router.put('/login', (req, res, next) => {
const { email, password } = req.body
User.findOne({
where: { email, password }
})
.then(user => {
if (!user) throw HttpError(... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
import _inherits from "@babel/runt... |
import Component from 'metal-component';
import Soy from 'metal-soy';
import {Config} from 'metal-state';
import templates from './Spinner.soy.js';
/**
* Spinner component.
*/
class Spinner extends Component {}
/**
* State definition.
* @static
* @type {!Object}
*/
Spinner.STATE = {
/**
* Indicates if the... |
/**
* Author: Callum Taylor
* Filename: ex27.js
* License: MIT
*/
/**
* Exercise 27
* Modifies the pie chart example.
* @export
*/
export default function exercise27() {
var dataset = {
apples: [5345, 2879, 1997, 2437, 4045],
};
var dataset2 = {
apples: [2300, 1279, 1485, 2695, 2352],
};
d... |
export const LOST = 'LOST';
export const PLAYING = 'PLAYING';
export const WON = 'WON'; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const utils_1 = require("../utils");
function addESLintToProject(schema) {
return (tree) => {
const projectName = utils_1.determineTargetProjectName(tree, schema.project);... |
"use strict";
// Import here Polyfills if needed. Recommended core-js (npm i -D core-js)
// import "core-js/fn/array.find"
// ...
Object.defineProperty(exports, "__esModule", { value: true });
var double_1 = require("./double");
exports.default = {
double: double_1.default
};
//# sourceMappingURL=na-toolkit.js.map |
const test = require('ava')
const rewire = require('rewire')
const semver = require('semver')
// loading with rewire to mock process.versions.node
const atLeastNode = rewire('.')
// test macro
const macro = (t, nodeVersion, requestedVersion, expectedResult) => {
let result
// rewire process.versions.node
atLeas... |
/**
* Created by King Lee on 14-9-25.
*/
var db = require('./mysql/dboperator');
var userInfo = require('./userInfo.js').userInfo;
var user = require('./user.js');
var analysis = require('./module/analysis');
var modifyInfo = require('./modifyInfo');
exports.onCompass = function(req,res){
var uid = parseInt(req.... |
//DISPLAY
export const DISPLAY = {
current: document.querySelector('[data-current-display]'),
previous: document.querySelector('[data-previous-display]'),
}
export const MAX_DISPLAY_LENGTH = 12;
// SETTINGS
export const DECIMAL_SIGN = '.' // if use comma, parsefloat ignore decimal
export const PLUS_MINUS_SIGN =... |
import { defineConfig } from "vite";
import * as path from "path";
export default defineConfig({
resolve: {
alias: {
"@lib": path.resolve(__dirname, "src/lib"),
},
},
}); |
describe("HAL links", function() {
var TestResource = undefined,
res = undefined,
json = {
_links: {
self: {
href: "http://example.com/self"
},
search: {
href: "http://example.com/search{?a,b,c}",
templated: true
},
... |
import React from 'react';
import Routes from '../routes';
const App = () =>
<div>
{ Routes }
</div>;
export default App; |
import httpStatusCodes from 'http-status-codes'
import { createAction } from '../../../../utils/redux'
import * as API from '../../../../api/spaces'
import { mapToWorkflow } from '../../../../views/shapes/WorkflowShape'
import { mapToPagination } from '../../../../views/shapes/PaginationShape'
import {
SPACE_WORKFLO... |
// import React from 'react';
// import { shallow } from 'enzyme';
// import { ListsPage } from '../index';
describe('<ListsPage />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
}); |
export default {
namespaced: true,
state: {
// 侧边栏, 折叠状态
menuCollapse: false,
// 侧边栏、tab, 激活菜单
menuActiveName: "",
//tabs导航
tabs: [],
},
mutations: {
updateMenuCollapse(state, val) {
state.menuCollapse = val;
},
updateMenuActiveName(state, val) {
state.menuActiveN... |
'use strict';
describe('ngAnimate integration tests', function() {
beforeEach(module('ngAnimate'));
var html, ss;
beforeEach(module(function() {
return function($rootElement, $document, $$body, $window, $animate) {
$animate.enabled(true);
ss = createMockStyleSheet($document, $window);
v... |
'use strict';
let angular = require('angular');
//BEN_TODO: where is this defined?
module.exports = angular.module('spinnaker.core.pipeline.stage.aws.destroyAsgStage', [
require('../../../../../utils/lodash.js'),
require('../../stageConstants.js'),
require('./destroyAsgExecutionDetails.controller.js')
])
.co... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { Tab, Container, Menu, Icon } from "semantic-ui-react";
import { Dashboard } from "../Dashboard/Dashboard";
import { WorkObject } from "../WorkObject/WorkObject";
import { assignmentActions, userActions } from "../_actions";
/**
... |
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},_={"૧":"1","૨":"2","૩":"3",... |
#!/usr/bin/env node
/** @license
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview
*
* A node script that generates externs automatically from the uncompiled
* source of a Closure project. Designed for Shaka Player, but may be usable
* in other projects as well. Does no... |
(function () {
'use strict';
angular
.module('app')
.factory('authInterceptor', authInterceptor);
authInterceptor.$inject = ['$localStorage', '$sessionStorage'];
function authInterceptor($localStorage, $sessionStorage) {
var service = {
request: request
};
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.