text stringlengths 2 1.04M |
|---|
import React from "react";
import getSlugs from '@utils/getSlugs'
class Sitemap extends React.Component {
static async getInitialProps(ctx) {
console.log("ctx: ");
console.log(ctx)
const baseUrl = {
development: "http://localhost:3000",
production: "https://andenacitelli... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from "../views/Home";
Vue.use(VueRouter)
const routes = [
{
path: '/',
redirect:'/Home'
},
{
path: '/Home',
name: 'Home',
component: Home
},
{
path: '/classify',
name: 'cl... |
new Vue({
el: '#app',
data: {
showMessage: false
}
}) |
import { createBranchRequest, toggleXAPRequest } from "./actions";
export const CreateBranch = ({ name, onClick, onXAPToggle, isFetching, fromBranch, isXAPOnlyBranch }) => {
let input;
let from = fromBranch ? ("Create From " + fromBranch) : "Create From master"
let btn = isFetching ? <button... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[1],{"tH/P":function(e,a,n){"use strict";n.r(a);var t=n("MVZn"),c=n.n(t),s=n("o0o1"),r=n.n(s),o=n("dCQc");a["default"]={namespace:"bkinfo",state:{},effects:{fetch:r.a.mark(function e(a,n){var t,c,s,p,u,i,d;return r.a.wrap(function(e){while(1)switch(e.prev=e.next... |
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
export default function Section({ title, children }) {
return (
<View style={styles.container}>
<Text style={[styles.title]}>
{title}
</Text>
<View style={styles.seperator} />
{children}
</View>
... |
var dataset = [];
document.addEventListener('DOMContentLoaded', function () {
d3.dsv(",", "text/plain")("https://rawgit.com/danilomalzao/teste/master/leilaoxmercado/dump.csv?v5", function (leilao) {
dataset = leilao.map(function (val) {val.source = 1; return val});
d3.dsv(",", "text/plain")("https:/... |
locations = [
{
name: 'Peräkammari',
roles: [
'Emmiina',
'Aikku',
'MC',
'Maija',
'Kyylämummo',
'Tuulipukumummo',
'Jymy',
'Nestori',
'Rilla',
'Gert'
]
},
{
name: 'Kasarmi',
roles: [
'Lauri',
'Misa',
'Tarvo',
'He... |
import useScreenSize from './use-screen-size'
import useStyles from './use-styles'
export {
useScreenSize,
useStyles,
} |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
/* eslint-disable */
import React from 'react';
import {makeStyles} from '@material-ui/core';
import IconButton from '@material-ui/core/IconButton';
import Menu from '@material-ui/core/Menu';
import MoreVertIcon from '@material-ui/icons/MoreVert'
import MoreHorizIcon from '@material-ui/icons/MoreHoriz'
const useStyle ... |
// Table Operations Plugin for HTMLArea-3.0
// Implementation by Mihai Bazon. Sponsored by http://www.bloki.com
//
// htmlArea v3.0 - Copyright (c) 2002 interactivetools.com, inc.
// This notice MUST stay intact for use (see license.txt).
//
// A free WYSIWYG editor replacement for <textarea> fields.
// For full sourc... |
import React, { Component } from 'react';
import api, { getItemById } from '../api';
import { shared } from '../constants';
import styled from 'styled-components';
import
const Title = styled.h1.attrs({
className: 'h1',
})``;
const Wrapper = styled.div.attrs({
className: 'form-group',
})`
margin: 0 0 30p... |
//! moment.js locale configuration
//! locale : Klingon [tlh]
//! author : Dominika Kruk : https://github.com/amaranthrose
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'fu... |
const multer = require('multer');
const path = require('path');
module.exports = {
storage: multer.diskStorage({
destination: path.resolve(__dirname, '..', '..', 'uploads'),
filename: (req, file, cb) => {
const ext = path.extname(file.originalname);
const name = path.basenam... |
/**
* Copyright (c) 2006-2017, JGraph Ltd
* Copyright (c) 2006-2017, Gaudenz Alder
*/
var mxClient =
{
/**
* Class: mxClient
*
* Bootstrapping mechanism for the mxGraph thin client. The production version
* of this file contains all code required to run the mxGraph thin client, as
* well as global constan... |
/*global web3*/
const fs = require('../../core/fs');
const ContractSources = require('./contract_sources');
// Set up the web3 extension
web3.extend({
property: 'debug',
methods: [{name: 'traceTransaction', call: 'debug_traceTransaction', params: 2}]
});
class CodeCoverage {
constructor(embark, _options) {
... |
const ThreeButtonControlResult = require('../Core/ThreeButtonControlResult');
/**
* @class InputResult
*
* Constructs a result object for input based controls.
*
* @extends ThreeButtonControlResult
*/
class InputResult extends ThreeButtonControlResult {
/**
* @inheritDoc
*/
constructor(control, numeri... |
// @flow
import type { UISize } from '../../constants/types'
import React, { PureComponent as Component } from 'react'
import getValidProps from '@helpscout/react-utils/dist/getValidProps'
import Scrollable from '../Scrollable'
import styled from '../styled'
import { classNames } from '../../utilities/classNames'
impor... |
/*!
* proxy-addr
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
/**
* Module exports.
* @public
*/
module.exports = proxyaddr
module.exports.all = alladdrs
module.exports.compile = compile
/**
* Module dependencies.
* @private
*/
var forwarded = require('forwarded')
va... |
import _tool from "fp-dom-tool";
export const initContainer = (containerName) => {
return _tool._getElementClass(containerName);
};
export const initChild = (containerName) => {
return _tool._createElement("div")(["class", `${containerName}__container`]);
};
export const initTemplate = (importedTemplate) => (prep... |
var mongoose = require('mongoose')
, p = require("promised-io/promise")
, DateUtils = require('./dateutils')
, Fixtures = require('../fixtures/fixtures')
, _ = require('underscore')
, log = require('../modules/log')
, mongoProfiles = require('./mongo_profiles')
, mongoMigrations = require('.... |
"use strict";
require("core-js/modules/es.object.define-property");
require("core-js/modules/es.object.define-property");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.bpc = void 0;
var _breakpoints = require("./breakpoints");
// TODO remove this when other CSS in JS patterns exist
/* e... |
/**
* Evaluating simply whether or not two objects are same with no nesting
* and only toward primitive values.
*
* @param {Object} obj1
* @param {Object} obj2
* @returns boolean
*/
function isEqual(obj1, obj2) {
if (obj1 === obj2) {
return true;
}
for (const prop in obj1) {
if (!Object.prototype... |
// Change this file to config.js
// Add your keys
// Add file .gitignore: config.js
// Load with
// var config = require('./config.js');
module.exports = {
client_id: '',
client_secret: '',
access_token: '',
api_url: 'https://botsin.space/api/v1/' // optional, defaults to https://mastodon.social/api/v1/
} |
/**
* Project: Minerva KB
* Copyright: 2015-2016 @KonstruktStudio
*/
(function($) {
'use strict';
var GLOBAL_DATA = window.MinervaKB;
var ui = window.MinervaUI;
var $termSettingsContainer = $('.mkb-term-settings');
function init() {
if (!$termSettingsContainer.length) {
ret... |
import React,{Component} from 'react';
import {
Button,
Card,
CardBody,
CardFooter,
CardHeader,
Col,
Form,
FormGroup,
ListGroup,
ListGroupItem,
Input,
Label,
Row,Table } from 'reactstrap';
import { connect } from 'react-redux';
import {addStoreData,getStoredata}... |
import { BigNumber } from 'bignumber.js'
import { composeReducers } from '../utils'
import { createReducer } from 'redux-act'
import blockChainActions from '../../actions/blockchain-actions'
import persistentDecorator from '../../store/persistentDecorator'
import u from 'updeep'
import vaultActions from '../../actions/... |
// This plugin changes a tables css and html
// so that the table's header is sticky on scroll
// It is derivitive of the below jsFiddle by D-Pixie
// https://jsfiddle.net/dPixie/byB9d/3/light/
// But unlike the fiddle this allows you to keep your
// HTML sheet clean and abstract the details by applying the DOM changes... |
export const defaultTo = {
fn: () => {},
str: '',
zero: 0,
arr: [],
obj: {},
}; |
var callbackArguments = [];
var argument1 = function (prefix) {
callbackArguments.push(arguments)
return inputTrimmed.indexOf(prefix) === 0;
};
var argument2 = null;
var argument3 = true;
var argument4 = function (m) {
callbackArguments.push(arguments)
if (m.route !== match.route)
return false;
... |
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then... |
module.exports = {
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
// This option interrupts the configuration hierarchy at this file
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
root: true,
// https://eslint.vuejs... |
/**
* Created by Tristan on 09/09/2015.
*/
/* global $ */
function Background ( container, backgroundImage ) {
var _ = this
// First check if the given container exist, else throw an error
if ( container === null || typeof container === 'undefined' || container.length === 0 ) {
throw new Error... |
var FeatureViewer = require("feature-viewer");
//Create a new Feature Viewer and add some rendering options
window.onload = function() {
//Create a new Feature Viewer and add some rendering options
var ft2 = new FeatureViewer("FDSJKLFJDSFKLJDFHADJKLFHDSJKLFHDAFJKLDHFJKLDASFHDJKLFHDSAJKLFHDAKLFJDHSAFKLDLSNCDJKL... |
/**
* Make a pie chart.
*
* @param config: a javascript object with the following properties:
* @param dataset: the dataset to visualize, should be in [{obj}, {obj}, ..] format
* @param svgId: id of the svg element onto which draw the piechart
* @param dispkey: the names to display in the slices
* ... |
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions, react/prop-types */
import React from 'react';
import { storiesOf } from '@storybook/react-native';
import { View } from 'react-native';
import UnreadBadge from '../../app/presentation/UnreadBadge';
import { ThemeContext } fr... |
define('JBrowse/View/TrackList/nls/Faceted_nl-nl',{
'dojox/grid/enhanced/nls/EnhancedGrid':{"singleSort":"Enkelvoudig sorteren","nestedSort":"Genest sorteren","ascending":"Klik hier voor oplopend sorteren","descending":"Klik hier voor aflopend sorteren","sortingState":"${0} - ${1}","unsorted":"Deze kolom niet sorteren"... |
/**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示***************... |
const Promise = require('bluebird');
const Errors = require('common-errors');
const moment = require('moment');
const { ActionTransport } = require('@microfleet/core');
// helpers
const key = require('../../redis-key');
const { agreement: operations } = require('../../utils/paypal');
const resetToFreePlan = require('.... |
const ghpages = require('gh-pages');
const deploy = async () => {
// App
await ghpages.publish('packages/app/dist', {
history: false,
repo: 'https://github.com/todosh/todosh.github.io',
});
// Storybook
await ghpages.publish('packages/shared/dist', {
dest: '/docs',
repo: 'https://github.com/todosh/todo... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var NodeWatchFileSystem = require("./NodeWatchFileSystem");
var NodeOutputFileSystem = require("./NodeOutputFileSystem");
var NodeJsInputFileSystem = require("enhanced-resolve/lib/NodeJsInputFileSystem");
var CachedInput... |
/**
* Copyright (c) 2020 Philippe Lieser
*
* This software is licensed under the terms of the MIT License.
*
* The above copyright and license notice shall be
* included in all copies or substantial portions of the Software.
*/
// @ts-check
import {
addrIsInDomain,
addrIsInDomain2,
domainIsInDomain,
getDom... |
import "./club-teaser.scss";
import React from "react";
import { Link } from "gatsby";
import { ChevronRight } from "react-feather";
import Layout3Col from "./../../layouts/layout-3col/layout-3col";
import ShadowBox from "./../shadow-box/shadow-box";
import groupSmallImage from "../../../images/group-xsmall.jpg";
/**... |
import MessageBox from 'packages/message-box';
describe('MessageBox', () => {
let hasPromise = true;
before(() => {
if (!window.Promise) {
hasPromise = false;
window.Promise = require('es6-promise').Promise;
}
});
after(() => {
if (!hasPromise) {
window.Promise = undefined;
}... |
const Pessoas = require('../data/dataPessoas')
const PessoasMaioresOuMenores = Pessoas.pessoas.reduce((valorAcc, valorAray) => {
let propMaiorOUMenor
if(2019 - valorAray.anoNascimento > 18) {
propMaiorOUMenor = 'maiores'
}
else {
propMaiorOUMenor = 'menores'
}
valorAcc[p... |
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/*!**********************************************************************!*\
!*** ../demo1/src/js/pages/crud/datatables/advanced/row-grouping.js ***!
\**********************************************************************/
var KTDatatablesAdvancedRowGro... |
// @flow strict
import * as React from "react";
import type {
FieldLink,
Validation,
Extras,
AdditionalRenderInfo,
CustomChange,
} from "./types";
import {cleanErrors, cleanMeta} from "./types";
import {
type ShapedTree,
treeFromValue,
dangerouslyReplaceArrayChild,
mapRoot,
dangerouslySetChildren,... |
import React, { Component} from 'react';
import { Text, View, ScrollView, Dimensions, SafeAreaView } from 'react-native';
import styles from '../resources/Styles';
import AllTasks from '../components/AllTasks/AllTasks';
import AddModal from '../components/AddTask/AddTaskModal';
import { Icon } from 'react-native-elemen... |
import React, { Component, PropTypes } from 'react'
import classnames from 'classnames'
import './index.less'
import echarts from 'echarts/lib/echarts';
import 'echarts/lib/chart/pie';
import 'echarts/lib/component/tooltip';
import 'echarts/lib/component/title';
class Piechat extends Component {
componentDidMount(... |
var ace = require('brace'),
Mock = require('mockjs');
require('brace/mode/javascript');
require('brace/mode/json');
require('brace/mode/xml');
require('brace/mode/html')
require('brace/theme/xcode');
require("brace/ext/language_tools.js");
var json5 = require('json5');
const MockExtra = require('common/mock-extra.js'... |
const fp = require('lodash/fp');
const reduce = require('lodash/fp/reduce').convert({ cap: false });
const validateOptions = (options, callback) => {
const stringOptionsErrorMessages = {
investigateUrl: 'You must provide a valid Investigation URL',
apiKey: 'You must provide a valid API Key from your Cisco Um... |
import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import {
Route, Redirect, withRouter, Switch,
} from 'react-router-dom';
import graphql from 'babel-plugin-relay/macro';
import { propOr } from 'ramda';
import {
QueryRenderer,
requestSubscription,
} from '../../../../relay/environ... |
const express = require('express');
const { restrictAudienceMiddleware } = require('@keystonejs/session');
const { GraphQLPlaygroundApp } = require('@keystonejs/app-graphql-playground');
const { createApolloServer } = require('./lib/apolloServer');
const validation = require('./validation');
class GraphQLApp {
const... |
// dependencies
var express = require("express");
var router = express.Router(); // express middleware
var pg = require("pg"); // postgres connector
var config = require("./config");
var conString = config.connectionString;
/*******************************/
/************* GET *************/
/**************************... |
define('docs/api.md', function(require, exports, module) {
module.exports = {
"title": "API 说明",
"toc": {
"label": "目录",
"type": "toc",
"children": [
{
"label": "整体要求",
"fragment": "%E6%95%B4%E4%BD%93%E8%A6%81%E6%B1%82",
"fullPath": "#%E6%95%B4%E4%BD%93... |
/* global describe it expect */
import sinon from 'sinon';
import { mockReq as mockRequest, mockRes } from 'sinon-express-mock';
import jwt from 'jsonwebtoken';
import { homeLocation } from '../../../../config/env';
import createRequestAuthorization, {
isAllowedPath
} from './request-authorization';
const validJWTS... |
console.log('load _drum_76_1_Chaos_sf2_file');
var _drum_76_1_Chaos_sf2_file={
zones:[
{
midi:128
,loopStart:0
,loopEnd:0
,keyRangeLow:76
,keyRangeHigh:76
,sampleRate:44100
,coarseTune:0
,fineTune:0
,originalPitch:7600
,anchor:0.00256236
//'High Wood Block
}
]
}; |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
// Copyright (C) 2020 Alexey Shvayka. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: prod-StringLiteral
description: >
\u is at the end of string, Hex4Digits is required.
info: |
StringLiteral ::
" DoubleStringCharacters_opt "
' SingleStringCharacter... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(React.createElement(App), div);
ReactDOM.unmountComponentAtNode(div);
}); |
Package.describe({
summary: "Adds notification functionality",
version: "0.0.7",
git: "http://github.com/yogiben/meteor-notifications.git"
});
both = ['client', 'server'];
Package.onUse(function(api) {
api.versionsFrom('METEOR@1.0.3');
api.use(
[
'coffeescript',
'templating',
... |
// 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.
<include src="../uber/uber_utils.js">
<include src="history_focus_manager.js">
//////////////////////////////////////////////////////////////////////... |
/**
* Rutas de Lugares
*/
// Libs
const express = require("express");
const cors = require("cors");
const services = require("./Services");
const Calificaciones = express.Router();
Calificaciones.use(express.urlencoded({ extended: false }));
Calificaciones.use(express.json());
Calificaciones.use(cors());
Calificaci... |
window._ = require('lodash');
import InstantSearch from 'vue-instantsearch';
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
win... |
let url_atual = window.location.href;
window.onload = function(){
if(url_atual.indexOf('/noticias') != -1){
document.getElementsByClassName('cat-ativa')[0].style.borderBottom = "solid 5px #ffffff"
let corForteCat = "#0396f8"
let corFracaCat = "#b3dffc"
corDaCategoriaHome(corForteCa... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from ... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... |
"use strict";
import ascii2mathml from "../index.js";
import expect from "expect.js";
var test = function(ascii, mathml) {
return expect(ascii2mathml(ascii)).to.be(mathml);
};
test.with = function(options) {
return function(ascii, mathml) {
return expect(ascii2mathml(ascii, options)).to.be(mathml);
};
};
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
/*!
* sChart JavaScript Library v2.0.1
* http://blog.gdfengshuo.com/example/sChart/ | Released under the MIT license
* Date: 2018-04-16T18:59Z
*/ |
import test from "ava";
import { Box3, Vector3 } from "math-ds";
import { Octree } from "../../build/sparse-octree.js";
const box = new Box3(
new Vector3(-1, -1, -1),
new Vector3(1, 1, 1)
);
test("can be instantiated", t => {
const object = new Octree();
t.truthy(object);
});
test("can compute its center", t ... |
'use strict';
//-----------------------------------// Export The Module \\-----------------------------------\\
module.exports = (req, res, next) => {
res.status(404);
res.statusMessage = 'Not Found';
res.json({ error: 'Page not found' });
};
//-------------------------------------------------------------------... |
window.bookSummaryJSON = "<p>One man. Assassin. Caster. A new world. And a game that is as brutal as it is complex.</p> <p>Michael finds himself in the realm of the Forever Kingdom, with no memory of how he got there and who he is. Even so, he must participate in the Grand Game and forge a new destiny for himself.</p> ... |
import $ from 'jquery'
import throttle from 'lodash.throttle'
import '../scss/index.scss'
// allow hot reload for html files by requiring them here
if(process.env.NODE_ENV === 'development') {
// pages
require('../views/pages/index.pug')
require('../views/pages/courses.pug')
require('../views/pages/ho... |
"use strict";
const _ = require('underscore');
const commonMappers = require('../commonMappers');
const { globalSchemaObject } = require('../commonSchemaDefinitionsUtil');
const format = require('../replikering/bindings/format');
/*
* Computes the list of fieldMap that should be included in the CSV representation fo... |
$(document).ready(function() {
// Insere classe no primeiro item de produto
$('#id_main-finaliza').prop('type', 'date');
$('#id_estoque-0-produto').addClass('clProduto');
$('#id_estoque-0-quantidade').addClass('clQuantidade');
// Desabilita o primeiro campo 'Saldo'
$('#id_estoque-0-saldo').prop('type', 'hid... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("4453bc71711f2269cdbeb3fdd130078c.js");
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
assertEq(function testcase() {
var proto = {};
Object.defineProperty(proto, "prop", {get: function () {return... |
export default {
'app.login.userName': '用户名',
'app.login.password': '密码',
'app.login.message-invalid-credentials': '账户或密码错误(admin/ant.design)',
'app.login.message-invalid-verification-code': '验证码错误',
'app.login.tab-login-credentials': '账户密码登录',
'app.login.tab-login-mobile': '手机号登录',
'app.login.remember-me... |
AFRAME.registerComponent('ejecuta',{
init: function(){
const _this = this;
this.target = this.el.sceneEl.querySelector("[programa]");
this.clickListener = function(){
console.log("Ejecutando programa");
_this.target.emit("run");
};
//Establezco el cl... |
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/User/toolList-create-component',
{
'pages/User/toolList-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("4e4a"))
})
},
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.Bookmark = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curren... |
if (self.CavalryLogger) { CavalryLogger.start_js(["xeTiz"]); }
__d("XUISelectorButton.react",["invariant","React","XUIPopoverButton.react"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=functio... |
//纳米说滚动
function startmarquee(elementID,h,n,speed,delay){
var t = null;
var box = '#' + elementID;
$(box).hover(function(){
clearInterval(t);
}, function(){
t = setInterval(start,delay);
});
function start(){
$(box).children('ul:first').animate({marginTop: h},speed,function(){
$(this).css({m... |
// @flow
import { PasswordProtect } from 'rust-cardano-crypto';
import cryptoRandomString from 'crypto-random-string';
import { WrongPassphraseError, CardanoCryptoError } from '../api/ada/lib/cardanoCrypto/cryptoErrors';
export function encryptWithPassword(
password: string,
bytes: Uint8Array
): string {
const ... |
'use strict';
const metricsServiceLoader = require('../metrics');
let metricsService;
describe('metrics', () => {
describe('sendDidConfigureListView', () => {
const contentType = {
attributes: {
field1: {
type: 'relation',
relation: 'oneToMany',
},
field2: {
... |
// 1. When using var, our counter exists after a for-loop is done
for (var i = 0; i < 5; i++) {
console.log(i);
}
console.log(i); // Prints 5
// When using let, our counter is not defined outside of the for-loop block
let x = 42;
for (let j = 0; j < 5; j++) {
console.log(j);
console.log(x);
}
console.log(j)... |
// Polyfill `Promise`.
window.Promise = window.Promise || require('promise-polyfill');
// WebVR polyfill
// Check before the polyfill runs.
window.hasNativeWebVRImplementation = !!window.navigator.getVRDisplays ||
!!window.navigator.getVRDevices;
window.hasNativeWebXRImplementatio... |
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 { getDataInFn } from 'store/models';
import store from './store'
export default (models = {}) => {
let route = null
const computed = Object.keys(models).reduce((agg, key) => {
// eslint-disable-next-line no-param-reassign
agg[key] = () => store.getters.data[models[key](route).hash]
return ag... |
/**
*
* Node.js Express App
*
**/
var express = require('express'),
app = express(),
bodyParser = require('body-parser'),
jade = require("jade"),
portraits = [];
config = require("./gcs-config"),
gcs = require("gcs-signed-urls")(config.servicesEmail, config.storageBucket, config.privateKey);
app.use(bod... |
import React from 'react';
import Layout from '../components/layout';
const ContactPage = () => {
return (
<>
<Layout>
<h1>Contact Us</h1>
<p>THe best way to reach me is via @panhara on <a href="https://facebook.com" target="_blank">Facebook</a></p>
</Layout>
</>
)
}
export def... |
"use strict";
const logger = require("../../lib/logger");
const xstdout = require("xstdout");
const extendRequire = require("../../lib/extend-require");
describe("logger", function() {
after(() => {
logger.setLevel();
});
it("should handle log info", () => {
const intercept = xstdout.intercept(true);
... |
import { routerRedux } from 'dva/router';
import { query } from '../services/error';
export default {
namespace: 'error',
state: {
error: '',
isloading: false
},
effects: {
*query({ payload }, { call, put }) {
yield call(query, payload.code);
// redirect on client when network broken
... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp","ug",{title:"قوشۇمچە چۈشەندۈرۈش",contents:"ياردەم مەزمۇنى. بۇ سۆزلەشكۈنى ياپماقچى بولسىڭىز ESC نى بېسىڭ.",legend:[{name... |
var test = require('tape')
var mockAdapter = require('any-db-fake')
var ConnectionPool = require('../')
test('Connection error forwarding', function (t) {
// A stub adapter errors on connect
var pool = ConnectionPool(mockAdapter({
createConnection: function (_, callback) {
process.nextTick(function () { ... |
import { NAME_FORM_INPUT } from '../../constants/components'
import Vue from '../../utils/vue'
import { arrayIncludes } from '../../utils/array'
import { attemptBlur } from '../../utils/dom'
import { eventOn, eventOff, eventOnOff, stopEvent } from '../../utils/events'
import formMixin from '../../mixins/form'
import fo... |
var syrup = require('dmc-syrup')
var devutil = require('../../../../util/devutil')
var logger = require('../../../../util/logger')
module.exports = syrup.serial()
.dependency(require('../../support/properties'))
.dependency(require('./display'))
.dependency(require('./phone'))
.define(function(options, proper... |
var config = {
type: Phaser.WEBGL,
width: 800,
height: 600,
parent: 'phaser-example',
scene: {
preload: preload,
create: create
}
};
var game = new Phaser.Game(config);
function preload ()
{
this.load.image('turkey', 'assets/pics/turkey-1985086.jpg');
this.load.image('l... |
/**
* Browse issue details and allow to put comment.
*/
import React, { useState, useEffect } from 'react';
import {
Text, SafeAreaView, Keyboard,
TouchableWithoutFeedback, Platform,
StyleSheet, ScrollView, View,
FlatList, TextInput, Button, ActivityIndicator,
KeyboardAvoidingView
} from 'react-n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.