text stringlengths 2 1.04M |
|---|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.7-6-a-59
description: >
Object.defineProperties - both desc.[[Set]] and P.[[Set]] are two
objects which refer to the same object (8.12.9 step 6)
includes: [... |
webpackHotUpdate_N_E("pages/index",{
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/next/dist/compiled/postcss-loader/index.js?!./styles/Welcome.module.css":
/*!************************************************************************************************************************************************... |
import _extends from "@babel/runtime/helpers/esm/extends";
import React, { memo, forwardRef } from 'react';
import Icon from '../src/Icon';
var svgPaths16 = ['M10 12h3c.55 0 1-.45 1-1V7c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zm5 2H1c-.55 0-1 .45-1 1s.45 1 1 1h14c.55 0 1-.45 1-1s-.45-1-1-1zM3 12h3c.55 0 1-.... |
/*
Copyright (C) 2019 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import canStache from 'can-stache';
import canMap from 'can-map';
import canComponent from 'can-component';
import '../sortable-column/sortable-column';
import './tree-visible-column-checkbox';
import t... |
//# sourceMappingURL=icon.vis_metric.min.js.map |
const router = require('express').Router();
const { Tag, Product, ProductTag } = require('../../models');
// The `/api/tags` endpoint
router.get('/', async (req, res) => {
// find all tags
try {
const TagsData = await Tag.findAll({
// be sure to include its associated Product data
include: [{ mode... |
/**
* @license
* Copyright 2021 Energinet DataHub A/S
*
* Licensed under the Apache License, Version 2.0 (the "License2");
* 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 appl... |
(function() { const icons = { "weather/wind-nw": "M32 27c-1.3 0-2.6.5-3.5 1.5-1 .9-1.5 2.2-1.5 3.5s.5 2.6 1.5 3.5c.9.9 2.2 1.5 3.5 1.5 1.3 0 2.6-.5 3.5-1.5.9-.9 1.5-2.2 1.5-3.5s-.5-2.6-1.5-3.5c-.9-1-2.2-1.5-3.5-1.5zM54.6 9.4C48.6 3.3 40.5 0 32 0 23.5 0 15.4 3.3 9.4 9.4 3.3 15.4 0 23.5 0 32c0 8.5 3.3 16.6 9.4 22.6 6 6 1... |
window._ = require('lodash');
/**
* 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 {
window.Popper = require('popper.js').default;
... |
"use strict";this.EXPORTED_SYMBOLS=["FxAccountsManager"];const{classes:Cc,interfaces:Ci,utils:Cu}=Components;Cu.import("resource://gre/modules/XPCOMUtils.jsm");Cu.import("resource://gre/modules/Services.jsm");Cu.import("resource://gre/modules/FxAccounts.jsm");Cu.import("resource://gre/modules/Promise.jsm");Cu.import("r... |
import axios from "axios";
export default class SchemaClient {
constructor(schema) {
this.schema = schema;
}
search(searchTerm, pageSize = 10, pageNumber = 1) {
return createRequest(this.schema.path, {
...(searchTerm !== '') && {q: searchTerm},
pageSize: pageSize,
... |
export const promotedSaleArtworks = [
{
'artwork': {
'id': 'torkil-gudnason-hothouse-flowers',
'title': 'Hothouse Flowers',
'date': '',
'sale_message': 'Contact For Price',
'is_in_auction': false,
'image': {
'placeholder': '75.23510971786834%',
'url': 'https://d... |
const { Minimatch } = require('minimatch')
const sm = require('sitemap')
const isHTTPS = require('is-https')
const unionBy = require('lodash/unionBy')
const uniq = require('lodash/uniq')
const path = require('path')
const fs = require('fs-extra')
const AsyncCache = require('async-cache')
const { promisify } = require('... |
const express = require('express');
const router = express.Router();
const model = require('../../../models/model.js');
const auth = require('../../middleware/auth.js');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
router.use(bodyParser.urlencoded({
extended: false
}));
router... |
// import React from 'react';
// import { shallow } from 'enzyme';
// import UserCompanyInfo from '../index';
describe('<UserCompanyInfo />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
}); |
/* global BaseModule */
'use strict';
(function() {
var AirplaneModeServiceHelper = function() {};
/**
* AirplaneModeServiceHelper should be deprecated in the future.
* We should let each API handler to observe airplane mode
* status change to turn on/off each API on their own.
*/
AirplaneModeService... |
// @flow
import * as React from 'react';
import _ from 'lodash';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { defaultProps } from './utils';
type Props = {
className?: string,
htmlFor?: string,
classPrefix?: string,
srOnly?: boolean
};
class ControlLabel extends React.Com... |
import * as React from 'react'
import {storiesOf} from '@storybook/react'
import Crosshair from '../src/Crosshair'
const stories = storiesOf('Crosshair', module)
stories.add('Example', () => {
class Example extends React.Component {
state = {
isActive: false,
}
toggle = () => {
this.setStat... |
/*
common.js
common javascript of zichi
@author zichi
*/
/* requestAnimationFrame */
window.requestAnimFrame = (function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
wi... |
Date.prototype.Format = function(fmt)
{ //author: meizz
if(this==null){
return;
}
var o = {
"M+" : this.getMonth()+1, //ๆไปฝ
"d+" : this.getDate(), //ๆฅ
"h+" : this.getHours(), //ๅฐๆถ
"m+" : this.getMinutes(), //... |
import angular from 'angular';
import ngeoDatasourceDataSources from 'ngeo/datasource/DataSources.js';
import ngeoDatasourceHelper from 'ngeo/datasource/Helper.js';
/**
* @type {angular.IModule}
*/
export default angular.module('ngeoDatasourceModule', [
ngeoDatasourceDataSources.name,
ngeoDatasourceHelper.name,
... |
import PropTypes from 'prop-types';
import React, { Component, Fragment } from 'react';
import { ChromePicker } from 'react-color';
import onClickOutside from "react-onclickoutside";
// TODO: this could be a functional component
class BackgroundColorPicker extends Component {
constructor(props) {
super(props)
... |
import ol_ext_inherits from '../util/ext'
import ol_filter_Base from './Base'
/** Add a mix-blend-mode CSS filter (not working with IE or ol<6).
* Add a className to the layer to apply the filter to a specific layer.
* With ol<6 use {@link ol_filter_Composite} instead.
* Use {@link ol_layer_Base#addFilter},... |
var config = {
apiKey: "AIzaSyDswmlurteMFo-r4VWmmRasLB8lluwUr4A",
authDomain: "enva-2017.firebaseapp.com",
databaseURL: "https://enva-2017.firebaseio.com",
storageBucket: "enva-2017.appspot.com",
messagingSenderId: "614609718503"
};
firebase.initializeApp(config);
angular.module('Prakriti')
.co... |
// ๅคๆญๆต่งๅจๆพๅคง็ผฉๅฐๅ่ฝ็ปไปถ
// 100 ไธบๆญฃๅธธ๏ผๅฐไบ100 ๅ็ผฉๅฐ๏ผๅคงไบ100 ๅๆพๅคง
define("common:chinaso/page/common/controller/detect.zoom", function (require, exports, module) {
"use strict";
function DetectZoom() {
var ratio = 0,
screen = window.screen,
ua = navigator.userAgent.toLowerCase();
... |
const inquirer = require('inquirer');
const Manager = require('../lib/Manager');
const Engineer = require('../lib/Engineer');
const Intern = require('../lib/Intern');
const fs = require('fs');
const generatePage = require('./page-template');
const managerQuestions = [
{
type: 'text',
name: 'name',
... |
//ๆฏๅฆไฝฟ็จhttps
exports.isHttps = false;
// ๅ่ฝฆๅๆชๆญข่ฎข็ฅจๆถ้ด๏ผๅไฝๅ้
exports.DEADLINE_TIME = 10;
// ่ฝฆ็ฅจ่ถ
่ฟๅ่ฝฆๆถ้ด็่ฟๆๆถ้ด๏ผๅไฝๅ้
exports.INVALIDATION_TIME = 10;
// ๆซ็ ็ซฏ่ทๅ็ญ่ฝฆๅ่กจ ๆๅๆถ้ด
exports.SCAN_DEADLINE_TIME = 30;
// ๅญๅจSocketๅฏน่ฑก็Map
exports.SocketMap = new Map();
// ่ฝฆ็ฅจ่ฟๆ ๆฃ้ค็งฏๅ
exports.INVALID_INTEGRAL = 4;
// 1~4ๅฐๆถ ๆฃ้ค็งฏๅ
exports.ONE_TO_FOUR_... |
import { commands, info } from "./collections.js";
import { promises } from "fs";
export const categoryTemplate = {
general: [],
tags: ["> **Every command in this category is a subcommand of the tag command.**\n"],
"image-editing": ["> **These commands support the PNG, JPEG, WEBP (static), and GIF (animated or s... |
import { Alert } from 'react-native';
import { call, select, put, all, takeLatest } from 'redux-saga/effects';
import api from '../../../services/api';
import { formatPrice } from '../../../utils/format';
import { addToCartSuccess, updateAmountSuccess } from './actions';
import * as NavigationService from '../../../se... |
var React = require("react");
function A(props) {
return <span>{props.title}</span>;
}
function App(props) {
return <div>{Array.from(props.items).map(item => <A title={item.title} key={item.id} />)}</div>;
}
App.getTrials = function(renderer, Root) {
let items = [{ title: "Hello world 1", id: 0 }, { title: "He... |
import React from "react";
import "./GlobalStats.css";
import { useEffect, useState } from "react";
import axios from "axios";
import { toArray } from "lodash";
import GoogleLogin from "react-google-login";
import { Link } from "react-router-dom";
import headerImage from "../../img/headerpicture.png";
import Footer fro... |
const ATTACHMENT = {
name: 'file.pdf',
referenceId: '868aa70a-3590-46f6-a0f8-18089d417576',
}
export default ATTACHMENT |
//>>built
define(
//begin v1.x content
({
"clearFilterDialogTitle": "Ryd filter",
"filterDefDialogTitle": "Filter",
"ruleTitleTemplate": "Regel ${0}",
"conditionEqual": "lig med",
"conditionNotEqual": "er forskellig fra",
"conditionLess": "er mindre end",
"conditionLessEqual": "mindre end eller lig med",
"con... |
import React from 'react'
import SvgContainer from './SvgContainer'
const CaretForwardCircleSharp = ({ height = 22, width = 22, style = {}, color = '#000', cssClasses = '', className = '', onClick = () => null }) => {
return (
<SvgContainer
height={height}
width={width}
color={color}
onCl... |
const {
TABLES_DIST_STYLE_RAW_KEYS,
} = require('../constants');
const { convertKeys } = require('../helpers');
/**
* @param {{ rows: TablesDistStyleRawRow[] }} result
* @returns {{ list: TablesDistStyleRow[], map: TablesDistStyleRowMap }}
*/
exports.tablesDistStyle = (result) => {
/** @type TablesDistStyle... |
import store from '../helplers/globalStore'
import { RESOURCES } from '../config'
import { getImageScale } from '../helplers/size'
class PreloaderScene extends Phaser.Scene {
constructor () {
super({
key: 'PreloaderScene'
})
}
preload () {
this.add.sprite(0, 0, 'background').setOrigin(0, 0)
... |
// @flow
import {action, autorun, observable, toJS, set, when} from 'mobx';
import type {IObservableValue} from 'mobx'; // eslint-disable-line import/named
import log from 'loglevel';
import jsonpointer from 'json-pointer';
import ResourceRequester from '../../services/ResourceRequester';
import type {ObservableOptions... |
import React from 'react';
import { Table, Button } from 'reactstrap';
import {deleteProduct} from '../../../../../actions/productActions';
import { connect } from 'react-redux';
class ItemRow extends React.Component {
onUpdate(id){
window.location.assign("#/store/products/update-product/"+id)
}
render() {... |
const mongoose = require('mongoose');
const pacienteSchema = new mongoose.Schema({
nome : String,
cpf : String,
peso : Number,
altura : Number,
imc : Number,
classificacao : String,
dataNascimento : Date,
cidade : String,
UF : String,
listaComorbidades : String,
JaTeveCovid ... |
const express = require('express')
const mongoose = require('mongoose')
const routes = require('./routes')
const cors = require('cors')
const app = express()
mongoose.connect('mongodb+srv://geral:geral@cluster0-jraao.mongodb.net/omni10?retryWrites=true&w=majority', {
useNewUrlParser: true,
useUnifiedTopology: tru... |
import React from 'react';
import styled from 'styled-components';
import AppTile from '../../../components/AppTile';
import { routesProp } from '../../../utils/propTypes';
import theme from '../../../utils/theme';
export const Wrapper = styled.div`
max-width: calc(${theme.hub.numApps} * ${theme.hub.tileSize}px + ... |
function ProcessTemplateAsmSelect() {
/**
* Identify asmSelect <li> items with classes that indicate how they contribute to Inputfield width rows
*
* - "rowItem" class is added all items that contribute to a row
* - "rowStart" class is added to items that begin a row
* - "rowStop" class is added to items th... |
const home = (state = {}, action) => {
switch (action.type) {
case ("ADD_HOME_INFO"):
if (!action.payload.users) {
return state;
}
const users = action.payload.users.map(user => {
return {
name: user.attributes.name,
id: user.id
}
})
retur... |
import TextEditor from './TextEditor';
import BoldMark from './BoldMark';
import ItalicMark from './ItalicMark';
import FormatToolbar from './FormatToolbar';
export {TextEditor, BoldMark, ItalicMark, FormatToolbar}; |
// Invoke 'strict' JavaScript mode
'use strict';
var util = require('util'),
axios = require('axios'),
EventEmitter = require('events').EventEmitter,
Product = require('./product'),
Webhook = require('./webhook'),
Order = require('./order');
function Printify(option) {
EventEmitter.call(this);
this.opts... |
#!/usr/bin/env node
const tip = require('../lib/tip');
const currentNodeVersion = process.versions.node;
const semver = currentNodeVersion.split('.');
const major = semver[0];
const BASE_VERSION = 10;
if(major < BASE_VERSION) {
tip.fail(
'You are running Node ' +
currentNodeVersion +
'.\n' +
... |
/*! jQuery UI - v1.10.1 - 2013-02-15
* http://jqueryui.com
* Includes: jquery.ui.datepicker-tj.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.tj={closeText:"ะะดะพะผะฐ",prevText:"<าะฐัะพ",nextText:"ะะตั>",currentText:"ะะผัำฏะท",monthNames:["ะฏะฝะฒะฐั","... |
global.db_path = "mongodb://root:root@ds041561.mongolab.com:41561/issuetracker";
global.auth = {
user: 'trackmyissues@gmail.com',
pass: 'issuetracker'
};
global.from = 'Admin TrackMyIssues';
global.host = 'http://trackmyissues.azurewebsites.net/';
//global.host = 'http://localhost:3000/'; |
/**
* 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 '../I... |
const Game = function() {
this.color = 'rgb(0,0,0)';
this.colors = [0, 0, 0];
this.shifts = [1, 1, 1];
this.update = function() {
for (let index = 0; index < 3; index ++) {
let color = this.colors[index];
let shift = this.shifts[index];
if (color + shift > 2... |
function ranges_to_ip_list(ranges)
{
var list = []
for (index in ranges)
list.push(ranges[index].join("/"));
return list;
} |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... |
(function () {
'use strict';
angular.module('ngIOS9UIWebViewPatch', ['ng']).config(['$provide', function ($provide) {
'use strict';
$provide.decorator('$browser', ['$delegate', '$window', function ($delegate, $window) {
if (isIOS9UIWebView($window.navigator.userAgent)) {
return applyIOS9Shim... |
import React, { PropTypes } from 'react'
import { Provider } from 'react-redux'
import Router from 'react-router/lib/Router'
import browserHistory from 'react-router/lib/browserHistory'
const AppContainer = ({ store, routes }) => (
<Provider store={store}>
<Router history={browserHistory}>
{routes}
</R... |
import './style.css'
document.querySelector('#app').innerHTML = `
<h1>Hello Vite!</h1>
<a href="https://vitejs.dev/guide/features.html" target="_blank">Documentation</a>
` |
/**
* angular-bootstrap-calendar - A pure AngularJS bootstrap themed responsive calendar that can display events and has views for year, month, week and day
* @version v1.0.0
* @link https://github.com/mattlewis92/angular-bootstrap-calendar
* @license MIT
*/
(function webpackUniversalModuleDefinition(root, factory... |
Bridge.merge(new System.Globalization.CultureInfo("da-DK", true), {
englishName: "Danish (Denmark)",
nativeName: "dansk (Danmark)",
numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), {
nanSymbol: "NaN",
negativeSign: "-",
positiveSign: "+",
negativeInfin... |
import React from 'react'
import { Chart } from "react-google-charts";
export default function Screen2() {
return (
<div className="center">
<h1>Usage: ReactJS Vs AngularJS Vs Vue</h1>
<div className='background'>
<div className="chart">
<Chart
width={'100%'}
... |
/* translators: %s expands to the taxonomy name. */
/* translators: %s expands to Yoast SEO. */ |
const mysql = require('mysql2');
// utilize dotenv so we don't have to upload our password
require('dotenv').config();
// database connection
const connection = mysql.createConnection({
host: 'localhost',
port: 3306,
user: 'root',
password: process.env.MYSQL_PASSWORD,
database: 'employee_trackerDB'
});
modul... |
"use strict";
/**
*
* @param {number} column
* @param {string[][]} matrix
*/
function isColumnSorted(column, matrix) {
for (let i = 1; i < matrix.length; i++)
if (matrix[i][column] <= matrix[i - 1][column]) return false;
return true;
}
/**
*
* @param {string[][]} matrix
*/
function solve(matri... |
import request from '@/utils/request'
export function getList(search) {
return request({
url: '/mate-code/data-source/page',
method: 'get',
params: {
current: search.current,
size: search.size,
keyword: search.keyword,
startDate: search.startDate,
endDate: search.endDate,
... |
import React from 'react';
const EuiIconAppDevtools = ({ title, titleId, ...props }) => (
<svg
width={32}
height={32}
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
aria-labelledby={titleId}
{...props}>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M21 28h-2v-8... |
export const headingRtl24 = "M8 4h14v2h-6v14h-2V6H8zM6 6H4v3H2v2h2v5.5A3.504 3.504 0 0 0 7.5 20H9v-2H7.5A1.502 1.502 0 0 1 6 16.5V11h3V9H6z"; |
const sql = require('../lib/db');
const helper = require('../lib/helper');
const bcrypt = require('bcrypt');
const jwt = require('jsonwebtoken');
const config = require('../config.json');
module.exports.name = "user/logout";
module.exports.verify = function (req, res) {
return true;
}
module.exports.execute = fun... |
import React from "react";
// nodejs library that concatenates classes
import classNames from "classnames";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import { Link } from "react-router-dom";
// @material-ui/icons
import Camera from "@material-ui/icons/Camera";
import Palett... |
module.exports = {
improve: 'apostrophe-global',
seoEnabled: false,
}; |
import {
INTERVAL_YEAR_RESULTS
} from '../constants'
export const getYearsForResults = amortizationPeriod => {
let yearsToShowResults = [1]
for (
let i = INTERVAL_YEAR_RESULTS;
i <= amortizationPeriod;
i = i + INTERVAL_YEAR_RESULTS
) {
yearsToShowResults.push(i)
}
/* To show the year after ... |
import React from "react";
import ReactDOM from "react-dom";
import CommonHeader from "../common-component/common-header/index";
import ParticularFundMain from "./component/particular-fund-main/index";
import ParticularSideBar from "../common-component/particular-sidebar/index";
import { getData } from "../lib/app/js/a... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./lib/ActorRdfResolveQuadPattern"));
__export(require("./lib/ActorRdfResolveQuadPatternSource"));
//# sourceMappingURL=index.js.... |
/**
* This file contains valious validation functions.
* Function schema
* @param {any} args - any arguments function might use
* @returns {async function(): {result: boolean, message: string}}
*/
const isAggregationValid = (aggregation, message = null) => async () => {
try {
JSON.parse(aggregation);
re... |
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* 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
*
* Un... |
const Remittance = artifacts.require("./Remittance.sol");
const truffleAssert = require('truffle-assertions');
const BN = require('bn.js');
contract('Remittance', (accounts) => {
let remit;
let owner = accounts[0];
let depositor = accounts[1];
let shopAddress = accounts[2];
let plainPassword = "0x... |
require("dotenv").config({ path: '../.env' });
const MongoClient = require('mongodb').MongoClient;
const uri = `mongodb+srv://${process.env.hijiriLogin}.nqvty.mongodb.net/database?retryWrites=true&w=majority`;
const hijiriDB = new MongoClient(uri, { useNewUrlParser: true, useUnifiedTopology: true });
const fetch = req... |
var PageName = 'SMP-photo';
var PageId = 'p21bcea4be98849d3810db6bbefb38754'
var PageUrl = 'SMP-photo.html'
document.title = 'SMP-photo';
if (top.location != self.location)
{
if (parent.HandleMainFrameChanged) {
parent.HandleMainFrameChanged();
}
}
var $OnLoadVariable = '';
var $CSUM;
var hasQuery = false;
var ... |
/* qtip2 v3.0.4 | Plugins: None | Styles: core | qtip2.com | Licensed MIT | Mon Feb 08 2021 10:20:42 */
//# sourceMappingURL=jquery.qtip.min.map |
/* eslint-disable no-console */
import React, { Component } from 'react';
import { FormControl, Select } from '..';
import { FormControlType } from './FormControlType';
import { Sizes } from '../../src/common';
import { generateCodeBlock, generateInput, generateState } from '../../docs/utils';
const TYPES = [
{ val... |
import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
import _ from 'underscore';
import s from 'underscore.string';
import { escapeRegExp } from '@rocket.chat/string-helpers';
import { Base } from './_Base';
import Subscriptions from './Subscriptions';
import { settings } from '../.... |
import { makeid } from "./utils";
import isEqual from 'lodash.isequal';
function stackTrace() {
var err = new Error();
return err.stack;
}
export function variable (val) {
if (val.subscribe !== undefined) return val;
let subscribers = new Set();
let current_value = val;
let old_value = undefined;
retur... |
var assert = require('assert');
var battle;
describe('Relic Song', function () {
afterEach(function () {
battle.destroy();
});
it('should pierce through substitutes', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: "Deoxys-Attack", ability: 'victorystar', it... |
function checkUpdates() {
var pkg = require('../package.json');
var updateNotifier = require('update-notifier');
var notifier = updateNotifier({
packageName: pkg.name,
packageVersion: pkg.version,
});
if (notifier.update) {
notifier.notify();
}
}
module.exports = checkUpdates; |
import { useMutation, useFlash } from '@redwoodjs/web'
import { Link, routes } from '@redwoodjs/router'
import { QUERY } from 'src/components/WebsitesCell'
const DELETE_WEBSITE_MUTATION = gql`
mutation DeleteWebsiteMutation($id: String!) {
deleteWebsite(id: $id) {
id
}
}
`
const MAX_STRING_LENGTH =... |
const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(__dirname + '/dist/UAE-CYCLING-FEDRATION'));
app.get('/*', (req,res,next) => {
res.sendFile(path.join(__dirname + '/dist/UAE-CYCLING-FEDRATION/index.html'));
});
app.listen(process.env.PORT || 8000); |
import * as helpers from '../helpers';
import { registerPrivatePropertiesFilter } from './registerPrivatePropertiesFilter';
jest.mock('../helpers');
const styleProperties = {
attributes: {},
filePath: 'properties/platforms/html/typography.js',
isSource: true,
name: 'platformOverlineLetterSpacing',
original:... |
๏ปฟNDFramePage.OnPageTitleLoaded("File:src/graphicsEngine/toolbox/MousePicker.cs","MousePicker.cs");NDSummary.OnSummaryLoaded("File:src/graphicsEngine/toolbox/MousePicker.cs",[["C#","CSharp"]],[["Classes","Class"],["Functions","Function"],["Groups","Group"],["Properties","Property"],["Variables","Variable"]],[[4491,0,0,"... |
L.HeatMapLayer = L.Layer.extend({
initialize: function (options) {
this._latlngs = options.latlngs;
this._radius = (options.radius == undefined) ? 8 : options.radius;
this._blurSize = (options.blur_size == undefined) ? 12 : options.radius;
},
onAdd: function (map) {
this._m... |
import DS from 'ember-data';
import config from '../config/environment';
export default DS.RESTAdapter.extend({
host: config.host
}); |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[16],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&":
/*!************************************************************************************... |
/**
* 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 '../I... |
// Copyright 2017 Cristian Mattarei
//
// Licensed under the modified BSD (3-clause BSD) License.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// ... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var react_redux_1 = require("react-redux");
var azsearchstore_1 = require("azsearchstore");
var SortBy_1 = require("../components/SortBy");
function getReturnType(expression) {
return {};
}
var mapDispatchToProps = function (dispatch, ownP... |
/* eslint-disable max-len */
const { defaults } = require('lodash');
const instance = require('../helpers/weak_cache');
const { DYNAMIC_SCOPE_LABEL } = require('../consts');
module.exports = function discovery(ctx, next) {
const config = instance(ctx.oidc.provider).configuration();
ctx.body = {
acr_values_s... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropert... |
/**
* Copyright 2012-2021, 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';
module.exports = {
moduleType: 'locale',
name: 'de-CH',
dictionary: {},
format: {
days: ... |
// Table Operations Plugin for HTMLArea-4.0
// Maintained and developed by SF_chris, http://Inferior-Products.com
// Original implementation by Mihai Bazon. Initiated by http://www.bloki.com
//
// HTMLArea (c) 2005-2013 Inferior-Products.com
// HTMLArea 3.0 is (c) Dynarch.com, 2003-2005
//
// Visit us at http://Inferi... |
var bl = require("bl");
var should = require("should");
var MemoryFileSystem = require("../lib/MemoryFileSystem");
describe("directory", function() {
it("should have a empty root directory as startup", function(done) {
var fs = new MemoryFileSystem();
fs.readdirSync("/").should.be.eql([]);
var stat = fs.statSyn... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function get() {
return _CommentsO["default"];
}
});
var _CommentsO = _interopRequireDefault(require("../lib/icons/legacy/CommentsO"));
function _interopRequireD... |
// eslint-disable-next-line no-unused-vars
import _ from './components/dotenv';
import api from './components/api';
import common from './components/common';
import database from './components/database';
import server from './components/server';
import sentry from './components/sentry';
// use Joi in each components
/... |
import React,{Component} from 'react'
import isEqual from 'lodash.isequal'
const watcher = (Comp) => {
const didUpdate = Comp.prototype.componentDidUpdate
return class extends Comp {
componentDidUpdate(props,state) {
for(let value in this.state.watch) {
let cb = this.state.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.