text stringlengths 2 1.05M |
|---|
'use strict'
module.exports = wrap
wrap.needed = needed
var phrasing = require('mdast-util-phrasing')
// Wrap all inline runs of mdast content in `paragraph` nodes.
function wrap(nodes) {
var result = []
var length = nodes.length
var index = -1
var node
var queue
while (++index < length) {
node = n... |
import { useEffect } from 'react';
import { useLocation } from 'react-router-dom';
const ScrollToTop = () => {
const { pathname } = useLocation();
useEffect(() => {
window.scrollTo(0, 0);
}, [pathname]);
return null;
};
export default ScrollToTop;
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{221:function(e,t,n){__NEXT_REGISTER_PAGE("/_app",function(){return e.exports=n(222),{page:e.exports.default}})},222:function(e,t,n){e.exports=n(223)},223:function(e,t,n){e.exports=n(224)},224:function(e,t,n){"use strict";var r=n(19),u=n(4);Object.defineProperty(t... |
class ias_ntsamperuser_1 {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
GetLif... |
/*! SmartAdmin - v1.5.2 - 2015-04-23 */function data_nolabel(){return"20070101,62,39\n20070102,62,44\n20070103,62,42\n20070104,57,45\n20070105,54,44\n20070106,55,36\n20070107,62,45\n20070108,66,48\n20070109,63,39\n20070110,57,37\n20070111,50,37\n20070112,48,35\n20070113,48,30\n20070114,48,28\n20070115,53,28\n20070116,5... |
const assert = require("chai").assert;
const npmChecker = require("../index.js");
describe("test npm-checker", function() {
it("should return a resolved promise - package exists", function(done) {
npmChecker("http-fetcher")
.then(res => {
assert.typeOf(res, "object");
done();
})
.catch(err => {
... |
import './vars.css'
import './reset.css'
import './screen-readers.css'
import './base-styles.css'
import './site.css'
import './views.css'
import './form.css'
|
const heroes = [
{
alias: 'Aquaman',
firstname: 'Arthur',
lastname: 'Curry',
picture: '/static/heroes/aquaman.jpg',
description:
"The son of an Atlantean queen and a lighthouse keeper from the town of Amnesty Bay, Arthur Curry would grow up to become the superhero Aquaman, and later take on ... |
module.exports = {
friendlyName: 'View definiciones',
description: 'Display "Definiciones" page.',
exits: {
success: {
viewTemplatePath: 'pages/admin/definiciones/definiciones'
}
},
fn: async function (inputs, exits) {
// Respond with view.
return exits.success({'estatus':'1'}... |
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var ScatterMapbox = {};
ScatterMapbox.attributes = require('./attributes');
ScatterMapbox.supplyDefaults = req... |
'use strict';
/* eslint-disable no-new */
var analytics = require('../../../../src/lib/analytics');
var browserDetection = require('../../../../src/lib/browser-detection');
var BaseView = require('../../../../src/views/base-view');
var DropinModel = require('../../../../src/dropin-model');
var DropinError = require('.... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../.... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
import React from 'react';
import {
Mjml,
MjmlHead,
MjmlTitle,
MjmlBody,
MjmlSection,
MjmlColumn,
MjmlImage,
} from 'nextmail/mjml-react';
import config from './src/config';
function WithImage() {
return (
<Mjml>
<MjmlHead>
<MjmlTitle>With Image</MjmlTitle>
</MjmlHead>
<Mj... |
// // Get the modal
// var modal = document.getElementById('myModal');
//
// // Get the button that opens the modal
// var btn = document.getElementById("myBtn");
//
// // Get the <span> element that closes the modal
// var span = document.getElementsByClassName("close")[0];
//
//
// $(document).ready(function(){
// ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FileService = void 0;
class FileService {
constructUrlBase(prefix) {
var url;
var location = window.location;
var paths = location.pathname.split("/");
while (paths.length > 0) {
if (paths[0] === "") {
... |
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
const GameManager = require('./game/logic/GameManager')
var app = express();
// view engine... |
const Discord = require('discord.js');
const moment = require('moment');
const LenoxCommand = require('../LenoxCommand.js');
require('moment-duration-format');
module.exports = class serverinfoCommand extends LenoxCommand {
constructor(client) {
super(client, {
name: 'serverinfo',
group: 'utility',
... |
import {Collection, Model} from 'backbone';
import ClientError from 'background/model/clientError';
var ClientErrors = Collection.extend({
model: ClientError,
url: function() {
return StreamusBG.serverUrl + 'ClientError/';
},
// Don't allow duplicate ClientErrors by stack + lineNumber.
add: function(c... |
/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.require('shaka.media.PlayRateController');
goog.require('shaka.test.Util');
describe('PlayRateController', () => {
/** @type {!jasmine.Spy} */
let getPlayRateSpy;
/** @type {!jasmine.Spy} */
let setPlayR... |
import React, { Fragment } from 'react';
import Link from '../../common/link.js';
const Jumbotron = () => (
<div className="hero__jumbotron bg-near-white flex items-center pa3">
<div>
<h1 className="f1-ns mid-gray">hey! I'm Maddie.</h1>
<span className="sans-serif mid-gray lh-copy">I'm a software de... |
{"dp": [{"dpName":"Pumpe1", "name":"Manual control for this relay.", "type":"number","min":0, "max":2, "states":{"0":"Off", "1":"Auto", "2":"On"}},
{"dpName":"Pumpe2", "name":"Manual control for this relay.", "type":"number","min":0,"max":2, "states":{"0":"Off", "1":"Auto", "2":"On"}},
{"dpName":"AutoRueckkuehl"... |
// ----------------------------------------------------------------------------
// Copyright (c) 2016-2018, QIIME 2 development team.
//
// Distributed under the terms of the Modified BSD License.
//
// The full license is in the file LICENSE, distributed with this software.
// -----------------------------------------... |
const { SlashCommandBuilder } = require("@discordjs/builders");
const { EmojiText, formattedDateInTimezone } = require("../util");
const moment = require("moment-timezone");
/**
* @typedef {import('../typedefs').Client} Client
* @typedef {import('discord.js').CommandInteraction} CommandInteraction
* @typedef {impor... |
/* eslint-disable react/destructuring-assignment */
import React, { useState } from 'react';
import { Redirect } from 'react-router-dom';
import { loginAction } from '../../state/actions/userActions';
import { calculateExpirationTime } from '../../utils/calculateTime';
import withData from '../../containers/withData';
... |
// Task 3 - Oscars week In Cinema
function oscarsWeek(input){
// Read Input
let name = input.shift();
let roomType = input.shift();
let ticketsCount = Number(input.shift());
// Logic
let priceMap = {
"normal": {
"A Star Is Born": 7.50,
"Bohemian Rhapsody": 7.35,... |
import * as tslib_1 from "tslib";
import { QueryRunnerAlreadyReleasedError } from "../../error/QueryRunnerAlreadyReleasedError";
import { QueryFailedError } from "../../error/QueryFailedError";
import { AbstractSqliteQueryRunner } from "../sqlite-abstract/AbstractSqliteQueryRunner";
import { Broadcaster } from "../../s... |
/**
* @flow
*/
import React, { Component } from 'react';
import * as Manifesto from 'manifesto.js';
import { withBemClass } from '../Bem/Bem';
import type { BemBlockType } from '../Bem/Bem';
type Vector = {
x: number,
y: number,
width?: number,
height?: number,
};
type Props = {
...Vector,
annotation: ... |
/*******************************************************************************
* 异步上传文件兼容IE8,火狐和谷歌可用
* 实现单个多次上传不刷新
* 修改自:http://www.ponxu.com
* @author 柳伟伟 <702295399@qq.com>
* @version 1.3 (2015-6-14)
*******************************************************************************/
(function ($) {
var f... |
import isObject from "lodash/isObject"
import getIn from "lodash/get"
// Assertions are in the following order ( bailing as soon as we hit the firs assertion )
//
// Assertation typo
// If a paramter with `in: formdata` exists, warn about typo ( it should be formData )
// Assertation 1
// If a paramter with `in: for... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const uuid = require("uuid/v4");
class BaseCollector {
// The constructor for a collector usually takes a URI.
// It can also take an optional object with options.
constructor() {
this.logs = []; // logs in descending order... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Table = require('cli-table');
var config_1 = require("../common/config");
var List = /** @class */ (function () {
function List(options) {
this.options = options;
}
/**
* Invoke action.
*/
List.... |
var _deserialize_floor_8cpp =
[
[ "BOOST_FIXTURE_TEST_CASE", "_deserialize_floor_8cpp.xhtml#ac7e90c90e72cdd03e3066bc8a03881e1", null ]
]; |
var TSC = TSC || {}; TSC.embedded_config_xml = '<?xml version="1.0" encoding="utf-8" ?><x:xmpmeta xmlns:x="adobe:ns:meta/" xmlns:tsc="http://www.techsmith.com/xmp/tsc/" ><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/Dyn... |
import Primary from "./Primary";
import Secondary from "./Secondary";
import Tertiary from "./Tertiary";
import Quaternary from "./Quaternary";
export default { Primary, Secondary, Tertiary, Quaternary };
|
console.log( "loaded" ) ;
define( [ ], function () {
console.log( "Module loaded: model" ) ;
let replaceText = "" ;
let _editor ;
return {
appInit: function ( optionalAceEditor ) {
if ( optionalAceEditor ) {
_editor = optionalAceEditor ;
}
... |
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule()... |
module.exports={A:{A:{"2":"M D H F A B lB"},B:{"1":"I J K","2":"C E q L O"},C:{"2":"5 8 iB AB G M D H F A B C E q L O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w cB bB","4609":"4 6 BB CB DB EB FB HB IB JB","4674":"9","5698":"3","7490":"0 1 x y z","7746":"2 KB"},D:{"1":"6 FB HB IB JB VB OB nB P... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[96],{591:function(s,t,a){"use strict";a.r(t);var n=a(3),r=Object(n.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("div",{staticClass:"language-js line-numbers-mode"},[a("pre... |
//= require bootstrap-sprockets
//= require jquery
//= require jquery.cookie
//= require jquery.jstree/jquery.jstree
//= require jquery_ujs
//= require jquery-ui/datepicker
//= require jquery-ui/sortable
//= require jquery-ui/autocomplete
//= require modernizr
//= require underscore-min.js
//= require velocity
//= requ... |
/// <reference path="../runtime.d.ts" />
"use strict";
function enemys() {
this._init();
}
////// 初始化 //////
enemys.prototype._init = function () {
this.enemys = enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80;
this.enemydata = functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.enemys;
for (var e... |
import React from 'react';
import { shallow } from 'enzyme';
import ClaimReward from '../ClaimReward';
describe('(Component) ClaimReward', () => {
describe('with default prop values', () => {
it('renders and matches snapshot', () => {
const props = {
timestamp: '0',
rewardSteem: '0 STEEM',
... |
;
'use strict';
(function(_7YMEDIO){
let jugar;
let disponible = 0;
let mazo_cartas;
let carta_descubierta;
let plantarse;
let cartas_usuario;
let apuesta = 0;
let player = {};
let res_text;
let contador = 0;
let puntos_usuario = 0;
let TOTAL = 0;
let ARRAY_CARTAS ... |
import React, {Component} from 'react';
import './FrontEndError.css';
import PropTypes from 'prop-types';
import {FrontEndError} from './FrontEndError.react';
class FrontEndErrorContainer extends Component {
constructor(props) {
super(props);
}
render() {
const {errors, connected} = this.p... |
/**
* @module Sound Manager service
*
* @description The main idea of this service is managing of background music and global volume within the whole app
*/
angular.module('subtrack90.app.soundManager', ['subtrack90.app.sound'])
/**
* We use it to prevent unexpected bugs in $cordovaNativeAudio service
* and bug... |
function confirmDel(event, form){
// atraves da variavel event estamos usando a funcao preventDefault() que vai impedir que o formulario seja enviado, vai barrar
event.preventDefault();
// funcao do javaScript que vai retornar uma mensagem para escolher true or false
var decision = confirm('Tem certez... |
import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import './App.css';
import Routes from './components/Routes';
function App() {
return (
<div className='App'>
<Router>
<Routes />
</Router>
</div>
);
}
export default... |
/*
* 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 n... |
// Copyright 2017 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script=Multani`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v10.... |
var annotated =
[
[ "sprockit", null, [
[ "serializable_ptr_type", "classsprockit_1_1serializable__ptr__type.html", "classsprockit_1_1serializable__ptr__type" ]
] ],
[ "SST", null, [
[ "Core", null, [
[ "Environment", null, [
[ "EnvironmentConfigGroup", "classSST_1_1Core_1_1Env... |
const router = require('express').Router();
const authService = require('../services/authService');
const { body, validationResult } = require('express-validator');
const { COOKIE_NAME } = require('../config/config');
router.get('/login', (req, res) => {
res.render('login');
});
router.post('/login', (req, res, n... |
(function () {
/**
* Posterize Filter. Adjusts the channels so that there are no more
* than n different values for that channel. This is also applied
* to the alpha channel.
* @function
* @name Posterize
* @author ippo615
* @memberof Kinetic.Filters
* @param {Object} imag... |
const { Command, KlasaMessage } = require('klasa')
const { MessageAttachment } = require('discord.js')
const fetch = require('node-fetch')
const YuigahamaError = require('../../../lib/error/YuigahamaError')
/**
* @extends Command
*/
class Yuigahama extends Command {
constructor (...args) {
super(...a... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'giella', 'en', {
btn_about: 'About GIELLA',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable GIELLA',
btn_enable: 'Enable GIELLA',
btn_l... |
/**
* @author Armano
*/
'use strict'
const utils = require('../../../lib/utils/index')
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const rule = {
create (context) {
return u... |
const TuyaAccessory = require('./lib/TuyaAccessory');
const TuyaDiscovery = require('./lib/TuyaDiscovery');
const OutletAccessory = require('./lib/OutletAccessory');
const SimpleLightAccessory = require('./lib/SimpleLightAccessory');
const MultiOutletAccessory = require('./lib/MultiOutletAccessory');
const Custo... |
/*
* 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 ... |
module.exports = {
options: {
separator: ';',
},
dev: {
cwd: '<%= cwd %>',
src: ['src/app/app.js',
'src/app/common/global/*.js',
'src/app/common/models/*.js',
'src/app/common/services/*.js',
'src/app/common/controllers/*.js',
'src/app/common/directives/*.js',
... |
'use strict';
var fs = require('graceful-fs');
function readLink(file, opt, cb) {
fs.readlink(file.path, function(err, target) {
if (err) {
return cb(err);
}
// Store the link target path
file.symlink = target;
return cb(null, file);
});
}
module.exports = readLink;
|
// jshint undef:true
// jshint eqeqeq:false
/* globals Set */
/* globals getAttrByName */
/* globals findObjs */
/* globals _ */
/* globals createObj */
/* globals log */
/* globals sendChat */
/* globals state */
/* globals Campaign */
/* globals getObj */
/* globals randomInteger */
/* globals spawnFx */
/* globals s... |
import React from 'react';
import styles from './pressVideos.css';
function PressVideos() {
return (
<div className={styles.pressVideos}>
<iframe
title="GitHub Universe: Operation Code"
src="https://www.youtube.com/embed/xN7yMoe38xc"
frameBorder="0"
allowFullScreen
w... |
function AS_FlexContainer_f438600b9f654d2c8dec64709b33c05e(eventobject) {
this.setTimeListUI();
} |
import metadataProvider from './classes/MetadataProvider';
import {
getBoundingBox,
pixelToPage,
repositionTextBox,
} from './lib/cornerstone.js';
const cornerstone = {
metadataProvider,
getBoundingBox,
pixelToPage,
repositionTextBox,
};
export default cornerstone;
|
import React, { useState } from "react";
import { Container, Row, Col } from "react-grid-system";
import addToMailchimp from "gatsby-plugin-mailchimp";
export default function index() {
const [input, setInput] = useState("");
const [result, setResult] = useState({});
// const [buttonStatus, setStatus] = useStat... |
const readline = require('readline')
const { createSocket} = require('dgram')
const CommandParser = require('./CommandParser')
const Commander = require('./Commander')
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
})
const TELLO_CMD_PORT = 8889
const TELLO_HOST = '192.168... |
define([
"../_base/lang", "../_base/declare", "../Deferred", "../_base/array",
"./util/QueryResults", "./util/SimpleQueryEngine" /*=====, "./api/Store" =====*/
], function(lang, declare, Deferred, array, QueryResults, SimpleQueryEngine /*=====, Store =====*/){
// module:
// dojo/store/DataStore
// No base class, ... |
const Koa = require('koa')
const json = require('koa-json')
const onerror = require('koa-onerror')
const bodyparser = require('koa-bodyparser')
const koaBody = require('koa-body')
const logger = require('koa-logger')
const jwt = require('koa-jwt')
const config = require('./config')
const statusCode = require('./statusC... |
export { default } from './Suppliers';
|
const express = require('express');
const app = express();
const path = require('path');
const expressStaticGzip = require('express-static-gzip');
const port = 5001;
function cacheHeaders(res, p) {
if (express.static.mime.lookup(p) === 'text/html') {
res.setHeader('Cache-Control', 'public, max-age=0');
}
}
... |
ShadyDOM = {
force: true,
noPatch: !!window.location.search.match('noPatch'),
preferPerformance: !!window.location.search.match('preferPerformance')
};
// TODO(sorvell): noPatching does not work with the custom elements polyfill.
// IF the polyfill used `ShadyDOM.wrap` throughout, it could be made to work.
if (w... |
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import {Scene, Router} from 'react-native-router-flux';
import connect from './connect';
import RouteList from './routes/routeList';
import ConnectionContainer from './containers/connection';
import AccountsContainer from './containe... |
// @flow
import type { Structure, GetFormState } from '../types'
import type { GetFormSyncErrorsInterface } from './getFormSyncErrors.types'
const createGetFormSyncErrors = ({ getIn, empty }: Structure<*, *>) => (
form: string,
getFormState: ?GetFormState
): GetFormSyncErrorsInterface => (state: any) => {
const ... |
"use strict";
var element = null;
var previousUrl = null;
function getElement () {
if (element === null) {
element = document.createElement('a');
element.innerText = 'Download';
element.style.position = 'absolute';
element.style.top = '-100px';
element.style.left = '0px';
}
return element;
... |
if (typeof(CAPTCHA_JS) === 'undefined') {
if (typeof ci_url === 'undefined') {
alert('올바르지 않은 접근입니다.');
}
var CAPTCHA_JS = true;
var captcha_word = '';
$(function () {
$(document).on('click', '#captcha', function () {
$.ajax({
url: ci_url + '/captcha/sh... |
$( document ).ready(function() {
var urlSearch = window.location.search;
var html = $("body").html();
if (urlSearch.indexOf("/cases/") >= 0 && urlSearch.indexOf("/edit/") >= 0 && html.indexOf("About TestRail") >= 0)
{
console.log("TestRail LivePreview is Online");
/* * * * * * * * * * * *
* micromarkdown... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'id', {
euro: 'Tanda Euro',
lsquo: 'Left single quotation mark', // MISSING
rsquo: 'Right single quotation mark', /... |
'use strict';
var queryString = require('query-string');
var uuid = require('node-uuid');
var events = require('./events');
var Socket = require('./websocket');
/**
* Open a new WebSocket connection to the Hypothesis push notification service.
* Only one websocket connection may exist at a time, any existing socke... |
import VinberoHTTPAdapter from 'vinberodb-http-adapter/VinberoHTTPAdapter';
import _ from 'lodash';
import bodyParser from 'body-parser';
import express from 'express';
import { testSimpleManager } from 'vinberodb-test-helpers';
const PORT = 2999;
let server;
let storage;
const createApp = () => {
const app = expre... |
let mongoose = require('mongoose');
let Schema = mongoose.Schema;
let PostSchema = new Schema({
title: String,
slug: String,
tags: [{
id: String,
name: String
}],
date_created: Date,
date_updated: Date,
attachment: [{
name: String,
size: Number,
url: ... |
import React, {useContext} from 'react';
import {
ActivityIndicator,
View,
StyleSheet,
Dimensions,
Platform,
} from 'react-native';
import {color} from '../../utility';
import {Store} from '../../Context/Store';
const {height, width} = Dimensions.get('window');
const styles = StyleSheet.create({
loaderCon... |
/*
* Copyright (c) 2018 The Weibo-Picture-Store Authors. All rights reserved.
* Use of this source code is governed by a MIT-style license that can be
* found in the LICENSE file.
*/
import { Log } from "./log.js";
/**
* @static
* @typedef {Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Uint... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_settings_voice_twotone = void 0;
var ic_settings_voice_twotone = {
"viewBox": "0 0 24 24",
"children": [{
"name": "path",
"attribs": {
"d": "M0 0h24v24H0V0z",
"fill": "none"
},
"children": []
}, ... |
// test/pzpr/parser_test.js
var assert = require("assert");
var pzpr = require("../../");
var puzzle = new pzpr.Puzzle();
describe("changeProperPid:URL", function() {
it("Check bonsan", function() {
var url =
"http://indi.s58.xrea.com/pzpr/v3/p.html?bonsan/5/5/000000003h2i0j1g1n0g";
var pzl = pzpr.parser(ur... |
import React from "react";
const counterStyle = {
/* styles skipped for brevity */
};
export default class Counter extends React.Component {
static defaultProps = {
initialvalue: 0
};
state = {
value: Number(this.props.initialvalue)
};
handleIncrement = () => {
this.setState(state => {
... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'sv', {
'move': 'Klicka och drag för att flytta'
} );
|
import React from 'react';
import { mount, shallow } from 'enzyme';
import ModalDialog from './ModalDialog';
import sinon from 'sinon';
const setup = propsOverride => {
const props = {
visible: true,
};
return mount(<ModalDialog {...props} {...propsOverride} />);
};
describe('<ModalDialog />', () => {
it... |
/**
* 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... |
'use strict';
/* eslint no-new-func:0 */
import validate from 'validate.js';
export default {
async created () {
this.component = (this.field && this.field.type) ? this.field.type : this.type;
if (this.component) {
this.$service.get(`validaciones/${this.component}-all`)
.then(async (res) => {
... |
/**
* gatsby-node.js
* Gatsbyがページ生成する際に、特定のタイミングやイベントを合わせて実行したい時に処理を設定する
*/
const path = require("path")
exports.createPages = async ({ graphql, actions, reporter }) => {
const { createPage } = actions
const blogresult = await graphql(`
query {
allContentfulBlogPost(sort: { fields: publishDate, orde... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{454:function(t,a,s){"use strict";s.r(a);var r=s(27),e=Object(r.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"服务器环境初始化"}},[s("a",{staticClass:"header-a... |
"use strict";
function cdt() {
let dt = new Date();
return dt.getTime();
}
$(() => {
/*
/api/staff/tickets/queue/ - GET
GET:
Description: Retrieves a list of unsolved tickets for staff to respond to.
URL Parameters: None
Fields: None
Note: Staff usage only.
/api/tickets/id-here/ ... |
'use strict';
/**
* lab-member service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::lab-member.lab-member');
|
import React, { useState } from 'react';
import Welcome from '../Welcome';
import Chat from '../Chat';
import { BrowserRouter, Switch, Route } from 'react-router-dom'
function App() {
const [ userName, setUserName ] = useState('')
return (
<BrowserRouter outer>
<Switch>
<Route exact path=... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 Cesium Contributors
*
* 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/l... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceTransport = exports.HostTransport = void 0;
const io_1 = require("./io");
const async_eve... |
var DistanceBetween = require('../../../math/distance/DistanceBetween');
var Furthest = function (source)
{
var bodies = this.tree.all();
var max = -1;
var farthest = null;
var x = source.x;
var y = source.y;
for (var i = bodies.length - 1; i >= 0; i--)
{
var target = bodies[i];
... |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
Vue.config.productionTip = false
/* eslint-disable no-new */
export default new Vue({
router,
comp... |
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"TerminalDosis":{"light":"TerminalDosis-Light.ttf"}}; |
import React from 'react';
import { connect } from 'react-redux';
import { assert, translate as $t, notify } from '../../helpers';
import { actions, get } from '../../store';
import PasswordInput from '../ui/password-input';
import CancelAndSubmit from '../ui/modal/cancel-and-submit-buttons';
import ModalContent from... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.