text stringlengths 2 1.05M |
|---|
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{nI0H:function(e,t,r){"use strict";r.r(t),r.d(t,"ion_spinner",(function(){return o}));var s=r("ePDZ"),n=r("ws0j"),i=r("hcCc"),a=r("6i10");const o=class{constructor(e){Object(s.q)(this,e),this.paused=!1}getName(){const e=this.name||n.c.get("spinner"),t=Object(n.b)... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
import React, { Component } from 'react';
import Slick from 'react-slick';
import '../../../node_modules/slick-carousel/slick/slick-theme.css';
import '../../../node_modules/slick-carousel/slick/slick.css';
import './style.scss';
const defaultSettings = {
adaptiveHeight: true,
arrows: false,
dots: true,
infini... |
const {GuildMember} = require('discord.js');
module.exports = {
name: 'resume',
description: 'Resume current song!',
async execute(interaction, player) {
if (!(interaction.member instanceof GuildMember) || !interaction.member.voice.channel) {
return void interaction.reply({
content: 'Você não e... |
!function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__e... |
module.exports = {
siteMetadata: {
title: `Pandas Eating Lots`,
description: `A simple description about pandas eating lots...`,
author: `gatsbyjs`,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `src`,
path: `${__dirname}/src/`,
},
},
... |
(()=>{var Ui=Object.defineProperty;var Ln=i=>Ui(i,"__esModule",{value:!0});var $n=(i,t)=>{Ln(i);for(var e in t)Ui(i,e,{get:t[e],enumerable:!0})};var We={};$n(We,{afterMain:()=>Zi,afterRead:()=>Gi,afterWrite:()=>es,applyStyles:()=>Yt,arrow:()=>Ie,auto:()=>ee,basePlacements:()=>rt,beforeMain:()=>Xi,beforeRead:()=>zi,befo... |
// Dependencies
import React, {Component} from 'react';
import KeyVal from './keyval';
// Helpers
import colors from './helpers/colors.js';
import types from './helpers/types.js';
// Export Component
export default class Type extends Component {
constructor(props) {
super(props);
this.data = this.props.dat... |
/**
* Export slider types.
*
* @author Naotoshi Fujita
* @copyright Naotoshi Fujita. All rights reserved.
*/
/**
* Normal slider.
*
* @type {string}
*/
export const SLIDE = 'slide';
/**
* Loop after the last slide and before the first one.
*
* @type {string}
*/
export const LOOP = '... |
import React from "react";
import "./footer.css";
import styled from "styled-components";
import { Link } from "gatsby";
import LogoGreen from "../NavBar/LogoGreen";
const FooterWrap = styled.div`
padding-top: 3%;
padding-bottom: 2%;
display: flex;
width: 100%;
height: 100%;
padding-left: 13%;
... |
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCSSExtractPlugin = require("mini-css-extract-plugin");
const webpack = require('webpack')
module.exports = {
entry: [__dirname + "/src/main.js", __dirname + "/src/sass/main.scss"],
output: {
path: path.resolve(__d... |
import React from 'react'
import PropTypes from 'prop-types'
import Image from './Image'
import Content from './Content'
import './PageHeader.css'
const PageHeader = ({
title,
subtitle,
backgroundImage,
large,
className = ''
}) => {
if (large) className += ' PageHeader-large'
return (
<div className... |
import React from 'react';
import { NavLink } from 'react-router-dom';
import Logo from '../../assets/images/Logo.png';
import Logo2 from '../../assets/images/Logo2.png';
import classes from './Logo.css';
const logo = (props) => (
<NavLink to="/" exact>
<div className={classes.Logo} style={{height: props.... |
import WebError from './WebError';
export default class NotFound extends WebError {
constructor(...args) {
super(404, ...args);
}
}
NotFound.prototype.name = 'NotFound';
|
module.exports={A:{A:{"2":"H E G D A B pB"},B:{"1":"EB M","2":"9 C N I J K L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 q H E G D A B C N I J K L g R o S T U V W X Y Z a b c d e f CB h i j k l m n Q p O r s t u v w x y z FB HB DB AB IB JB KB LB MB NB OB PB","2":"mB RB fB eB","33":"F"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F q H E G D A B C N... |
import React from "react";
import PropTypes, { string } from "prop-types";
const ErrorPresent = ({ errorMessages }) => {
return (
<div className="ErrorPresent">
<h2 className="ErrorPresentHeader">Please correct the following issues:</h2>
<ul className="ErrorPresentList">
... |
import axios from 'axios'
import qs from 'qs'
import config from './config.js'
import NProgress from 'nprogress'
import store from '../store'
import router from '../router'
var api = axios.create(config)
api.interceptors.request.use(config => {
NProgress.start()
return config
}, error => {
return Promise.reject... |
const fs = require('fs');
const wget = require('node-wget');
const KMZtoGeoJson = require('./helpers/KMZtoGeoJson');
module.exports = {
kmzToGeojsonLines: (usr, data) => new Promise((resolve, reject) => {
// con el enlace vamos a crear un stream de lectura
wget({ url: data.link, dest: './temp/' }, async (err... |
/////////////////////////////////////////Entry point//////////////////////////////////////////
////Require statements/////////////////////////////////////////////
//Require statements allow developers to pull in exported modules
//from either current code base or third party saved modules.
//Third part modules are bro... |
import { createAppContainer, createStackNavigator } from 'react-navigation';
// createSwitchNavigator
import Home from '~/pages/home';
import Mesa from '~/pages/mesa';
import Grupo from '~/pages/grupos';
import SubGrupo from '~/pages/subgrupos';
import Produto from '~/pages/produtos';
import Pedido from '~/pages/pedido... |
(function(){
/* your code goes here */
$(document).ready(function(){
// create an instance of the Jobs class and use getPositions to send AJAX request to get job listings information
window.app.model = new window.app.Jobs();
window.app.model.getPositions();
// these are for u... |
#!/usr/bin/nodejs
/*
Mashes together a bunch of different apps into a big binary blob.
We then store this *inside* the Bangle.js firmware and can use it
to populate Storage initially.
Bangle.js 1 doesn't really have anough flash space for this,
but we have enough on v2.
*/
var SETTINGS = {
pretokenise : true
};
var... |
'use strict';
import {ColorSlider,Slider,ColorGradient,Parent,LContainer} from '../src/index.js';
const cg1 =new ColorGradient({height:100,width:10,sliders:{
s1: new Slider({
value:0.5,
r:5,
type:'y',
con:'mid',
isexterior:false,
isinterior:false,
iscursor:true,
callb... |
const { compose, head, map, nth } = require('ramda');
const Task = require('folktale/concurrency/task');
const { fromNullable } = require('folktale/maybe');
const logTaskProgress = require('../utils/logTaskProgress');
const {
truncateTable,
insertAllMinuteCandles,
insertAllCandles,
selectCandlesByMinute,
in... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Chinese Traditional language.
*/
/**#@+
@type String
@example
*/
/**
* Con... |
import React, {useState} from 'react';
import {useSelector, useDispatch} from 'react-redux';
import {sortedCopy, byIndex} from 'utils/mahjong/helper';
import scoreMove from 'utils/mahjong/scoreTileEfficiency';
import {discardTile, drawTile} from 'slices/game';
import TileGroup from 'components/TileGroup';
import Tile... |
"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... |
export default (axios, store) => ({
getAll () {
return axios.get('api/sequences').then((response) => {
store.commit('sequences/setAllSequences', response.data)
return response.data
}).catch((error) => {
return Promise.reject(error.response.data)
})
},
get (id) {
return axios.get... |
import React from 'react';
import PropTypes from 'prop-types';
import { IndexPageTemplate } from '../../templates/index-page';
const IndexPagePreview = ({ entry, getAsset }) => {
const data = entry.getIn([ 'data' ]).toJS();
if (data) {
const { image, heading, subheading, blurbs, sections, final } = data;
return... |
import { Link } from 'gatsby'
import get from 'lodash/get'
import React from 'react'
import map from 'lodash/map'
import Img from 'gatsby-image'
import Meta from '../../components/Meta/index'
import Footer from 'components/Footer'
import Layout from 'components/Layout'
import './style.scss'
export const Post = node =... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
/**
* @license
* Copyright 2013 Palantir Technologies, 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... |
const match = require('./match');
var express = require('express'); // Express web server framework
var request = require('request'); // "Request" library
var cors = require('cors');
var querystring = require('querystring');
var cookieParser = require('cookie-parser');
const { json, Router } = require('express');
// ... |
import React, { Component } from "react";
import Img from "gatsby-image";
import styled from "styled-components";
const CriteriaSection = styled.section`
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
position: relative;
width: 100%;
min-height: 60rem;
`;
const CriteriaBac... |
/**
* @file rip command
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license MIT
*/
exports.exec = (Bastion, message, args) => {
message.channel.send({
embed: {
color: Bastion.colors.BLUE,
title: `R.I.P ${args.length ? args.join(' ') : 'Everything'}`,
image: {
url: 'https://reso... |
// app.shoppingListAddController.js
(function() {
"use strict";
angular.module("MyApp")
.controller("ShoppingListAddController", ShoppingListAddController);
ShoppingListAddController.$inject = ["ShoppingListService"];
function ShoppingListAddController(ShoppingListService) {
let AddCtrl = this;
... |
!function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";H5P.SimpleMultiChoice=n(1).default},function(e,t,n){"use strict";function i(e){return e&&e.... |
var db = require('./db');
module.exports = {
users: {
get: function (req, res) {
db.User.findAll()
.then(function(users) {
res.json(users);
});
},
post: function (req, res) {
db.User.findOrCreate({where: {username: req.body.username}})
// findOrCreate returns... |
import React from 'react'
export const Posts = props => {
return (
<div>
Posts post
</div>
)
} |
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchCityInfoViaThunk, fetchCityInfoViaSaga } from '../actions/index';
let SearchCity = ({ fetchCityInfoViaSaga, fetchCityInfoViaThunk }) => {
let input;
const handleOnClickViaThunk = () => (e) =... |
!function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t... |
import jwt from "jsonwebtoken";
import bcrypt from "bcryptjs";
import { parseErrors, makeUrl } from "../../shared/util";
import { requiresAdmin } from "../utils/permissions";
import SendMail from "../utils/mail";
import { getEmailBody } from "../utils/common";
export default {
Query: {
author: (root, args,... |
const DrawCard = require('../../drawcard.js');
class UtakuYumino extends DrawCard {
setupCardAbilities(ability) {
this.action({
title: 'Discard a card for +2/+2',
condition: () => this.game.isDuringConflict(),
cost: ability.costs.discardCard(card => card.location === 'ha... |
/**
* Description: Get length of string and buffer string.
*/
/** Import generics dependences */
import 'pretty-console-colors';
// Get length string const and lenght byte of Buffer and compare.
const str = 'Hi from NodeJS';
const str1 = Buffer.from(str);
const str2 = Buffer.byteLength(str);
console.log(`str: ${str... |
import { resolveMap } from '../resolve-map';
import getSelectionSet from './get-selection-set';
import db from '../db';
import config from '../config/config';
export default function getConnectionResolver(type) {
const typeData = resolveMap[type];
if (!typeData) {
throw new Error('Type "' + type + '" ... |
import {exec} from 'child_process'
import fs from 'fs'
import path from 'path'
import chalk from 'chalk'
import copyTemplateDir from 'copy-template-dir'
import inquirer from 'inquirer'
import ora from 'ora'
import runSeries from 'run-series'
import {
CONFIG_FILE_NAME, PROJECT_TYPES, REACT_COMPONENT, WEB_MODULE,
} f... |
exports.definition = {
config : {
"adapter" : {
"type" : "acs",
"collection_name" : "photos"
}
},
extendModel : function(Model) {
_.extend(Model.prototype, {
// extended functions go here
});
// end extend
return Model;
},
extendCollection : function(Collection) {
_.extend(Collection.prototy... |
/*
Copyright 2020 Adobe. All rights reserved.
This file is licensed to you 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 agre... |
// @flow
import { connect } from 'react-redux';
import Filters from './Filters.component';
import { restMenuItemSelected } from './filterSelector.actions';
import { makeOnItemSelectedSelector } from './filters.selectors';
const mapStateToProps = (state: ReduxState, props: Object) => ({
stickyFilters: state.working... |
var path = require('path'),
should = require('should'),
mockFs = require('mock-fs'),
ConfigLoader = require('../../lib/config_loader');
var getCorrectConfig = function() {
return {
server: {
port: 8080
},
mpd: {
host: 'localhost',
port: 6600
... |
/*!
* protobuf.js v6.8.4 (c) 2016, daniel wirtz
* compiled thu, 04 jan 2018 21:51:40 utc
* licensed under the bsd-3-clause license
* see: https://github.com/dcodeio/protobuf.js for details
*/
!function (e, t) { "use strict"; !function (t, r, n) { function i(e) { var n = r[e]; return n || t[e][0].call(n = r[e] = {... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(functio... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colordialog', 'km', {
clear: 'សម្អាត',
highlight: 'បន្លិចពណ៌',
options: 'ជម្រើសពណ៌',
selected: 'ពណ៌ដែលបានរើស',
title: 'រើសពណ៌'
}... |
/*
VRT - Copyright © 2014 Odd Marthon Lende
All Rights Reserved
*/
define([
'types/widget'
], function (
Widget
) {
function BarGraph (fields) {
Widget.call(this, fields);
}
BarGraph.prototype = Object.create(Widget.prototype);
BarGraph.required = {
'(... |
window.addEventListener('scroll', (e) => {
const scrollY = window.scrollY;
const wantedPoster = document.querySelector('.white-beard');
wantedPoster.setAttribute('style', `
clip-path: inset(0% ${Math.trunc(scrollY / 10)}% 0% 0%);
`);
}); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.providers = void 0;
const default_provider_1 = require("./default.provider");
const javascript_provider_1 = require("./javascript/javascript.provider");
exports.providers = [
javascript_provider_1.JavaScriptProvider,
default_pr... |
"use strict";
var outputFileSync = require("output-file-sync");
var pathExists = require("path-exists");
var chokidar = require("chokidar");
var slash = require("slash");
var path = require("path");
var util = require("./util");
var fs = require("fs");
var _ = require("lodash");
module.exports = function (commander, ... |
macDetailCallback("0050c2c06000/36",[{"a":"2 rue Georges Besse Antony FR 92160","o":"ANALOG WAY","d":"2010-02-07","t":"add","s":"ieee","c":"FR"}]);
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
'use strict';
eventsApp
.directive('greeting', function () {
return {
restrict: 'E',
replace: true,
transclude: true,
template: "<div><button class='btn' ng-click='sayHello()'>Say Hello</button><div ng-transclude></div></div>",
name: 'ctrl',
... |
/*!
* Google Analytics Library
* https://github.com/open-city/google-analytics-lib
*
* Copyright 2012, Nick Rougeux and Derek Eder of Open City
* Licensed under the MIT license.
* https://github.com/open-city/google-analytics-lib/wiki/License
*
* Date: 5/9/2012
*
*/
var analyticsTrackingCode = 'U... |
jQuery.support.cors = true;
// navigation menu
$('#menu-toggle').on('click', function() {
$('#menu').slideToggle(150);
})
// make table rows highlight-able. Not ideal to attach listener to `body`
// but we have some tables that are created by js after page load
$('body').on('click', 'tr', function(){
$(this).... |
import MongoClient from 'mongodb';
const URL = "mongodb+srv://JessicaGray:KVLPnFGHN72uqoo6@cluster0.yuzwq.mongodb.net";
export default class Database {
constructor() {
this.connection = null;
this.database = null;
this.collection = null;
}
async connect() {
this.connection... |
import { LitElement, html } from 'lit-element';
import { BsModalCss } from './bs-modal.css.js';
import { BsContentRebootCss } from '@lit-element-bootstrap/content/bs-content-reboot.css.js';
export class BsModal extends LitElement {
static get styles() {
return [
BsContentRebootCss,
... |
import styled from 'styled-components/native';
export const Container = styled.View`
flex: 1;
background: #f3f3f3;
`;
|
var mongoose = require('mongoose');
var bcrypt = require('bcrypt');
var UserSchema = new mongoose.Schema({
username: {
type: String,
unique: true,
required: true,
trim: true
},
email: {
type: String,
unique: true,
required: true,
trim: true
},
password: {
type: String,
... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Text from '../Text';
/* global atob */
class SsoPage extends Component {
constructor(props) {
super(props);
this.onLoad = this.onLoad.bind(this);
this.getElement = this... |
const {Item} = require("../src/gilded_rose")
class WackyItem extends Item{
constructor(name, sellIn, quality){
super(name, sellIn, quality)
this.updateCount = 0
}
updateItem(){
if (this.updateCount === 0) {
this.quality = 50
} else {
this.quality = 0
}
... |
import DS from 'ember-data';
import AdapterFetch from 'ember-fetch/mixins/adapter-fetch';
export default DS.RESTAdapter.extend(AdapterFetch, {
namespace: 'api/v1',
});
|
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
import {
DynamicallyInjectedByGestureHandler,
ConditionallyIgnoredEventHandlers,
} from ... |
import request from 'request'
import path from 'path'
import shell from '../../util/shell';
export default {
key : 'test',
taskName : '基于Docker镜像测试',
desc : '选择一个Dockerfile用来测试',
config : {},
async context(ctx) {
ctx.log(`当前工作目录:${ctx.REPOSITORY_WORKSPACE}`);
try {
if (!this.config.dockerfile) {... |
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {Dimensions, PixelRatio, Platform, StyleSheet} from 'react-native';
import {changeOpacity, makeStyleSheetFromTheme} from 'app/utils/theme';
export function getCodeFont() {
return Platform.OS === ... |
var class_ext_1_1_net_1_1_function_items_collection_json_converter =
[
[ "End", "db/d40/class_ext_1_1_net_1_1_function_items_collection_json_converter.html#a6c9688163ecfa042e121b492586c0782", null ],
[ "Start", "db/d40/class_ext_1_1_net_1_1_function_items_collection_json_converter.html#a89f28c3962b503f78a96995e... |
function updateStatus(typ,value,id) {
console.log(typ);
var urlbase = FULL_PATH+"/status/update/"+typ+"/"+value+"/"+id;
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url : urlbase,
type: "GET",
success: function(respo... |
const { Order, ProductCart } = require("../models/order");
// get Order by ID
exports.getOrderById = (req, res, next, id) => {
Order.findById(id)
.populate("products.product", "name price")
.exec((err, order) => {
if (err) {
return res.status(400).json({
error: "NO order found in DB",... |
import { useEffect, useRef } from 'react';
import EditorJS from '@editorjs/editorjs';
import Header from '@editorjs/header';
import List from '@editorjs/list';
import ImageTool from '@editorjs/image';
import Underline from '@editorjs/underline';
import Checklist from '@editorjs/checklist';
import Delimiter from '@edito... |
require('../css/app.scss');
const $ = require('jquery');
require('webpack-jquery-ui');
const hamburger = document.querySelector(".hamburger");
hamburger.addEventListener("click", function() {
hamburger.classList.toggle("is-active");
$('#mobile-menu').toggle("slide", { direction: "right" }, 500);
});
|
var gulp = require('gulp');
var connect = require('gulp-connect');
gulp.task('connect', function() {
connect.server({
host: '127.0.0.1', //地址,可不写,不写的话,默认localhost
port: 3000, //端口号,可不写,默认8000
root: './', //当前项目主目录
livereload: true //自npm ins动刷新
});
});
gulp.task('reload', function() {
return gulp.src('*').... |
define(["create-audiobuffer"], function(createAudioBuffer){
var Looper = function(){
this.initialize.apply(this, arguments);
};
Looper.prototype= {
initialize: function(context){
this._context = context;
this.destination = context.createMediaStreamDestination();
this._recorder =... |
_.max = function (obj, iterator, context) {
if (!iterator && _.isArray(obj) && obj[0] === +obj[0] && obj.length < 65535) {
return Math.max.apply(Math, obj);
}
if (!iterator && _.isEmpty(obj)) return -Infinity;
var result = { computed: -Infinity, value: -Infinity };
each(obj, function (value,... |
import React, { useState, useEffect, useContext } from 'react';
import { Tabs, Tab, Container } from 'react-bootstrap';
import { useHistory } from 'react-router-dom';
import LoggedIn from '../components/LoginContext';
import ShipmentForm from '../components/ShipmentForm';
import SingleShipment from '../components/Singl... |
import Cookies from 'universal-cookie';
global.cookie = new Cookies();
export const saveCookie = (value) => {
const expires = new Date();
expires.setDate(Date.now() + 60 * 60 * 4);
global.cookie.set('userid', value, {
path: '/',
expires,
maxAge: 100000
});
};
export const deleteCookie = (value) =... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button, Loader } from 'semantic-ui-react';
import { generateMessage } from "../../actions/chartActions";
class MarkovGenerator extends Component {
constructor(props) {
super(props);
thi... |
var mysql = require("mysql");
var connection;
// if (process.env.JAWSDB_URL) {
connection = mysql.createConnection(process.env.JAWSDB_URL);
// } else {
// connection = mysql.createConnection({
// host: "localhost",
// user: "root",
// password: "Apollo1215!",
// database: "burgers_db"
// });
// ... |
const fs = require('fs');
const path = require('path');
const request = require('request');
const chalk = require('chalk');
const datafire = require('../index');
const logger = require('../util/logger');
const INTEGRATION_LOCATIONS = [
path.join(process.cwd(), 'integrations'),
path.join(process.cwd(), 'node_module... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
/*
Plugin Name: Geodanmaps
Plugin URI: www.geodanmaps.nl
Description: Geodanmaps plugin to embed multiple maps from different public configurations.
Version: 0.1
Author: Gabriel Guita
Author http://www.geodanmaps.nl
License: MIT
*/
define(
['gdmap-config2ol'],
function(G) {
'use strict';
... |
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities: {
'browserName'... |
const page = {
bankInternalRefNameInput: () => cy.get('[data-cy="bank-supply-contract-id"]'),
additionalRefNameInput: () => cy.get('[data-cy="bank-supply-contract-name"]'),
cloneTransactionsInput: () => cy.get('[data-cy="clone-transactions"]'),
submit: () => cy.get('[data-cy="submit-button"]'),
};
module.expor... |
import pick from "../../src/object/pick";
test("pick", () => {
const result = pick(["a", "c", "d"], { a: 1, b: 2, c: 3 });
expect(result).toEqual({ a: 1, c: 3 });
});
|
export default {
'form.basic-form.basic.title': '基础表单',
'form.basic-form.basic.description':
'表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。',
'form.basic-form.title.label': '标题',
'form.basic-form.title.placeholder': '给目标起个名字',
'form.basic-form.title.required': '请输入标题',
'form.basic-form.date.label': '起止日期',
'form... |
/**
* Module dependencies
*/
var _ = require('lodash');
var types = require('../utils/types');
var utils = require('../utils/helpers');
var hasOwnProperty = utils.object.hasOwnProperty;
/**
* Builds a Schema Object from an attributes
* object in a model.
*
* Loops through an attributes object to build a schema
... |
var assert = require("assert");
exports.setUp = function (setUp){
//throw new Error("error setUp");
setUp.done();
};
exports.tearDown = function (tearDown){
//throw new Error("error tearDown");
tearDown.done();
};
exports.testA = function (test){
//throw new Error("error A");
// setTimeout(function(){
// ... |
if(window.SimpleSlide) {
new SimpleSlide({
slide: "quote", // nome do atributo data-slide
time: 8000 // tempo de transição dos slides
});
new SimpleSlide({
slide: "portfolio",
time: 8000,
nav: true
})
}
if(window.SimpleAnime) {
new SimpleAnime();
}
if(window.SimpleForm) {
new SimpleFo... |
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var port = process.env.PORT || 8888;
var router = express.Router()
const JSum = require('jsum')
let { default: Neon, api, nep5, rpc, sc, wallet } = require('@cityofzion/neon-js')
getByteArrayAddress = (address) => {
if... |
module.exports = {
env: {
mocha: true
},
rules: {
'no-unused-expressions': 'off'
}
}
|
(this.webpackJsonpcleanfolio=this.webpackJsonpcleanfolio||[]).push([[0],{26:function(e,t,a){},32:function(e,t,a){},33:function(e,t,a){},35:function(e,t,a){},36:function(e,t,a){},37:function(e,t,a){},38:function(e,t,a){},39:function(e,t,a){},40:function(e,t,a){},41:function(e,t,a){},42:function(e,t,a){},44:function(e,t,... |
/**
* @license
* Copyright Google LLC 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
*/
import { Directive, Inject, InjectionToken, Optional, ViewContainerRef, } from '@angular/core';
/**
* Injection token... |
import styled from 'styled-components';
import View from '../View';
const Label = styled(View)`
position: relative;
cursor: pointer;
pointer-events: ${(props) => (props.disabled ? 'none' : '')};
`;
export default Label;
|
/**
* Copyright (c) 2015-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use stric... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.