text stringlengths 2 1.05M |
|---|
"use strict";!function(r,i){r(function(){r(".anonymize").each(function(t,n){var n=r(n),a=String(n.attr("data-anonymize")),e=0;n.empty().text(i(function(){var t=a.substr(4*e++,4);return parseInt(t,16)/65536}))})})}(jQuery,sillyName); |
const fs = require('fs');
const ChromeExtension = require('crx');
/* eslint import/no-unresolved: 0 */
const argv = require('minimist')(process.argv.slice(2));
const name = require('../src/manifest.json').name;
const keyPath = argv.key || 'key.pem';
const existsKey = fs.existsSync(keyPath);
const crx = new ChromeExte... |
var callbackArguments = [];
var argument1 = function callback(a,b,c,d) {
callbackArguments.push(JSON.stringify(arguments))
argument3[1] = [843,595,823,0,607,823]
base_0 = 82
argument3[0] = false
return a*b*c/d
};
var argument2 = function callback(a,b,c,d) {
callbackArguments.push(JSON.stringify(arguments))
argu... |
import React, {Component} from 'react';
import axios from 'axios';
import {Link} from 'react-router';
class EditItem extends Component {
constructor(props) {
super(props);
this.state = {name: '', price: ''};
// The .bind(this) is to indic that function is about this current component "EditI... |
import { useState, useEffect } from "react";
import "./styles.css";
//yarn add react-dock, react-dock é a bliblioteca do sidebar, com algumas funções pré defina
import Dock from "react-dock";
import Product from "../product/list";
const Sidebar = () => {
const [opened, setOpened] = useState(false);
//recebendo o ... |
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Number, "isNaN", {
value: require("./shim"),
configurable: true,
enumerable: false,
writable: true
});
}
|
/*
Code modified from:
http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/
using graphics purchased from vectorstock.com
*/
/* Initialization.
Here, we create and add our "canvas" to the page.
We also load all of our images.
*/
// let canvas;
// let ctx;
var image = new Image();
var imageOb... |
/*! jQuery UI - v1.12.1 - 2018-12-06
* http://jqueryui.com
* Includes: keycode.js, widgets/datepicker.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([ "jquery" ], f... |
(function( $ ) {
var productTaggedAs = '.woocommerce-page.single-product div.product .product_meta>span.tagged_as';
// Method for Control's event handlers: sh_pp_sty_tag_typography.
wp.customize('mk_cz[sh_pp_sty_tag_typography]', function (value) {
$(productTaggedAs).css(
mkPreviewTypography(value(), true, ['... |
// Initialize Firebase
let config = {
apiKey: "AIzaSyBbGawQb-iggUU-OYQ-c0kXeHj9mXLfEgk",
authDomain: "quick-bytes-c7a3c.firebaseapp.com",
databaseURL: "https://quick-bytes-c7a3c.firebaseio.com",
projectId: "quick-bytes-c7a3c",
storageBucket: "quick-bytes-c7a3c.appspot.com",
messagingSenderId: "2... |
'use strict';
const BoxCommand = require('../../box-command');
const { flags } = require('@oclif/command');
class FilesMoveCommand extends BoxCommand {
async run() {
const { flags, args } = this.parse(FilesMoveCommand);
let updates = {
parent: {
id: args.parentID
}
};
if (flags.etag) {
updates.... |
const querystring = require('querystring')
const https = require('https')
const { debug } = require('../helpers/debug')
const { generateErrorResponse } = require('../helpers/generate-response')
function validateCaptcha(app, captchaResponse) {
const config = app.config
return new Promise((resolve, reject) => {
... |
import React from 'react';
import { mount } from 'enzyme';
import { spyElementPrototype } from 'rc-util/lib/test/domHook';
import Popconfirm from '..';
import mountTest from '../../../tests/shared/mountTest';
import { sleep } from '../../../tests/utils';
import rtlTest from '../../../tests/shared/rtlTest';
import Butto... |
// source ../src/head.js
(function (root, factory) {
'use strict';
var _global, _exports;
if (typeof exports !== 'undefined' && (root === exports || root == null)){
// raw nodejs module
_global = _exports = global;
}
if (_global == null) {
_global = typeof window === 'undefined' ? global : win... |
"use strict";
const _Common = require("./rolelib.common");
const _Targeting = require("./rolelib.targeting");
const _Military = require("./rolelib.military");
const Logger_1 = require("./tools.Logger");
var State;
(function (State) {
State[State["Waiting"] = 1] = "Waiting";
State[State["MovingToPosition"] = 2] ... |
import '../styles/gameScreen.css';
import PropTypes from 'prop-types';
function playingTitle(player, gameState, allPicked, isCzar) {
return (
<div>
{isCzar(player) ? (
<div className="gameScreenTitle">
You are the Czar, judge the following card combos:
</div>
) : (
<... |
/**
* @license Angular v12.2.6
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
import { ɵAnimationGroupPlayer, NoopAnimationPlayer, AUTO_STYLE, ɵPRE_STYLE, sequence, style } from '@angular/animations';
import { Injectable } from '@angular/core';
/**
* @license
* Copyright Google LLC All Rights... |
/* ------------------------------------------------------------------------- *
* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may *
* n... |
const React = require('react')
const ampHtmlValidator = require('amphtml-validator')
const Application = require('./Application')
const ampReactRenderer = require('../../../dist/AmpHtmlRenderer.js')
test('render a valid AMP page with amp-soundcloud component', async () => {
// arrangement
const AppComponent = <App... |
export default {
props: {
myClass: 'one two',
attributes: {
role: 'button'
}
},
html: '<div class="one two three" role="button"></div>',
test({ assert, component, target, window }) {
component.myClass = 'one';
component.attributes = {
'aria-label': 'Test'
};
assert.htmlEqual(target.innerHTML,... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var api_error_1 = require('./api_error');
var file_flag_1 = re... |
var group__Generic =
[
[ "acc_service_configuration_t", "group__Generic.html#ga3659144b760468217ed4cb1fc3447330", null ],
[ "acc_service_handle_t", "group__Generic.html#gac31f87097f46e587c8d54fb0406f62d4", null ],
[ "acc_service_status_t", "group__Generic.html#ga0fe34d6e342de54ae87279d7e10b5066", null ],
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["js/admin/DepartmentEdit"],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/admin/pages/setting/department/Edit.vue?vue&type=script&lang=js&":
/*!*****************************************************... |
/**
* Seanica
*
* User: sean
* Date: 13/04/13
* Time: 10:57 PM
*
*/
define(['sf1','modules/post/post.models','modules/post/post.views','text!modules/post/post.templates.html','uirte'],
function(sf1, Model, View, template, RTE){
var anchorSelector = '#TemplateContainer';
_.templateSettings.va... |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Serializer | stripe bank account token', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
let serial... |
import React from 'react';
import {
compose,
withStateHandlers,
withHandlers,
lifecycle,
} from 'recompose';
import { withRouter, Link } from 'react-router-dom';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import { MdArrowBack } from 'react-icons/lib/md'... |
var moment = require("../../index");
exports["America/La_Paz"] = {
"1931" : function (t) {
t.equal(moment("1931-10-15T04:32:35+00:00").tz("America/La_Paz").format("HH:mm:ss"), "23:59:59", "1931-10-15T04:32:35+00:00 should be 23:59:59 CMT");
t.equal(moment("1931-10-15T04:32:36+00:00").tz("America/La_Paz").format(... |
import {initComponent, destroy} from '../Utils'
import Header from '../../src/components/Header.vue'
//There are issues of importing vuetify components https://github.com/vuejs/vue-cli/issues/1584
import _ from 'lodash'
let wrapper
describe('Header.vue', () => {
afterEach(() => {
destroy(wrapper)
});... |
const jwt = require('jsonwebtoken');
const generateJWT = (username = '', id = 0) => {
if(id <= 0) {
return;
}
return new Promise ((resolve, reject) => {
const payload = { username, id };
jwt.sign( payload, process.env.SECRET_JWT_KEY, {
expiresIn: process.env.SECRET_J... |
const function720 = function (t, e, i) {
"use strict";
var n = this && this.__extends || function () {
var t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) {
t.__proto__ = e
} || function (t, e) {
for (var i in e) e.hasOwnProperty(i) && (... |
import { FilledAddToHomeScreen as OutlineAddToHomeScreen } from './FilledAddToHomeScreen';
export { OutlineAddToHomeScreen }; |
var gulp = require('gulp')
var $ = require('gulp-load-plugins')()
function errHandler( e ) {
$.util.beep()
$.util.log($.util.colors.red('↓看这里看这里,报错了:'))
$.util.log(e)
return this
}
module.exports = errHandler
|
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
... |
import React from 'react';
import ReactDOM from 'react-dom';
import reportWebVitals from './reportWebVitals';
import App from './App';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import 'bootstrap/dist/css/bootstrap.min.css';
import './index.css'; // Main css for the project
import './custom.css'; // Custom Them... |
(function($){
var Slideshow = function (element, options) {
this.$element = $(element);
this.options = options;
this.paused = false;
this.activeIndex = 0;
this.init = function() {
this.$items = this.$element.find('.item');
}
this.attachEvents();
this.init();
}
Slidesho... |
export const Header = () => (
<div class="container col-md-12 mr-3">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Movies.com</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls... |
var util = require('util');
var Moniker = require('moniker');
var maxEmits=4; //Maximum number of flood emits allowed
var emitInterval=2; //emitCount will be increased if two messages arrive in X seconds.
var ipList = {};
var maxKicks=3; //user will be banned after kicked X times.
var banTime=1800; //Ban for X seconds
... |
// Dependencies
const Logger = require('../logger')
// Constants
const DEBUG = process.env.DEBUG
// Helpers
class FakeConsole {
constructor () {
this.printed = ''
}
log (x) {
this.printed = x
if (DEBUG) { console.log(x) }
}
}
// Tests
describe('logging', () => {
beforeAll(() => {
this.log ... |
import React from 'react';
import { expect } from 'chai';
import { mount, configure } from 'enzyme';
import {
Stage,
Layer,
Rect,
Group,
Image,
useStrictMode,
Text,
__matchRectVersion
} from '../src/ReactKonva';
import useImage from 'use-image';
import './mocking';
import Konva from 'konva';
import sino... |
import React from 'react';
import Profile_picture from '../profile_picture/Profile_picture';
import './profile_data.css';
function Profile_data({user}) {
return (
<div className = 'profile_data'>
{/* Datos : Foto Perfil + Nombre + Seguidores + Seguidos */}
{/* Imagen de perfil ... |
import Route from '@ember/routing/route';
import { get, set } from '@ember/object';
import { inject as service } from '@ember/service';
export default Route.extend({
intl: service(),
model() {
return this.modelFor('groups.group.group-page');
},
afterModel(model) {
const tags = this.setHeadTags(model)... |
/*global document, jQuery, window, sw, Offline */
(function ($) {
"use strict";
try {
var isUndefinedOrNull, declare_namespace;
isUndefinedOrNull = function (o) {
if (!(o === undefined || o === null)) {
return false;
}
return true;
};... |
/*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Deve... |
'use strict';
/**
* @ngdoc function
* @name chofraNetflixApp.controller:DisclaimerctrlCtrl
* @description
* # DisclaimerctrlCtrl
* Controller of the chofraNetflixApp
*/
angular.module('chofraNetflixApp')
.controller('DisclaimerCtrl', ['myModals', '$rootScope', '$scope', '$location', '$timeout', '$routeParams',... |
import React from "react";
import renderer from "react-test-renderer";
import ExtraLargeTitle from "../extra-large-title";
import LargeTitle from "../large-title";
import MediumTitle from "../MediumTitle";
describe("title", () => {
it("renders extra large title correctly", () => {
const tree = renderer
.cr... |
var class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_search_result_context_1_1_musicres092063fc46031c768065e3a0a4887fe5 =
[
[ "displayPriority", "d0/d41/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_search_result_context_1_1_musicres092063fc46031c768065e3a0a4887fe5.html#a2c3d6218f8248d8... |
import React from 'react';
import PropTypes from 'prop-types';
import { styled } from '@storybook/theming';
import { Link, styles } from '@storybook/design-system';
import { rgba } from 'polished';
import GatsbyLink from './GatsbyLink';
const boxLinkStyles = `
&& {
display: block;
background: ${styles.color.... |
export default class Manager {
/**
* @param {Function} rollbackFn will execute when call undo or redo method. pass the stepDetail and isLastRollback for the function(require return a stepDetail to push on undo/redo stack)
* @param {Number} maxStep max stored undoList and redoList
*/
constructor(rollbackFn,... |
import * as core from '@pluralsight/ps-design-system-core'
import * as vars from '../vars/index.js'
export default {
'.psds-banner': {
display: 'flex',
alignItems: 'flex-start',
width: '100%',
overflow: 'hidden',
fontSize: core.type.fontSizeSmall,
lineHeight: core.type.lineHeightStandard,
... |
'use strict';
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/schedule-tracing.profiling.min.js');
} else {
module.exports = require('./cjs/schedule-tracing.development.js');
}
|
/* @flow */
/*eslint-disable no-undef, no-unused-vars, no-console*/
import _, {
compose,
pipe,
curry,
filter,
find,
reduce,
repeat,
subtract,
zipWith
} from "ramda";
const ns: Array<number> = [1, 2, 3, 4, 5];
const ss: Array<string> = ["one", "two", "three", "four"];
const obj: { [k: string]: number ... |
import './row.sass'
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Checkbox from 'controls/checkbox/Checkbox';
import request from 'actions/request';
const columns = [
{ attribute: 'start', sty... |
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2Vla2RheS5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy11aWtpdC1wcm8tc3RhbmRhcmQvIiwic291cmNlcyI6WyJsaWIvcHJvL2RhdGUtcGlja2VyL2ludGVyZmFjZXMvd2Vla2RheS5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydC... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-Order-Orderpages-PaySuccessful"],{"187c":function(n,a,t){"use strict";var r;t.r(a);var e,s=function(){var n=this,a=n.$createElement,r=n._self._c||a;return r("v-uni-view",{staticClass:"PaySunc"},[r("v-uni-view",{staticClass:"PaySunc_img"},[r("v-uni-image"... |
/*
jQWidgets v3.5.0 (2014-Sep-15)
Copyright (c) 2011-2014 jQWidgets.
License: http://jqwidgets.com/license/
*/
(function(a){a.jqx.jqxWidget("jqxValidator","",{});a.extend(a.jqx._jqxValidator.prototype,{defineInstance:function(){var b={rules:null,scroll:true,focus:true,scrollDuration:300,scrollCallback:null,position:"r... |
import React from 'react'
import './Spinner.css'
const Spinner = () => {
return <div className='lds-dual-ring'></div>
}
export default Spinner
|
import React from 'react'
import Container from '../container'
import Prose from '../prose'
import ProductShowcase from './product-showcase'
import { uppercase, border } from '../typography.module.css'
import { cn } from '../../lib/helpers'
import Cart from '../snipcart/cart'
import styles from './product.module.css'
i... |
var mongoose = require('mongoose');
const movieSchema = mongoose.Schema({
name:{
type: String,
required: true,
},
indate:{
type: String,
required: true,
},
outdate:{
type: String,
required: true,
},
genre:{
type: String... |
const router = require('express').Router();
const UserService = require('../service/UserService');
const User = require('../model/User');
const SchemaValidation = require('../validation/SchemaValidation');
const GPError = require('../error/GPError');
const { isAdmin, isModerator } = require('../middleware/authorizati... |
import ScrollReveal from 'scrollreveal'
// Export your custom function for declarative use
export { scrollRevelation }
// Code your custom function
function scrollRevelation( classString ) {
window.sr = new ScrollReveal();
sr.reveal('.card', 100);
}
|
const runExecutable = require('./run-executable');
const {getFlagArrayFromObject} = require('./utils');
const themekit = {
/**
* Runs a ThemeKit command with the runExecutable utility.
* Forces the --no-update-notifier flag to prevent update messages from
* appearing when `theme update` can't be run via CL... |
function listen() {
var server = http.createServer(this);
return server.listen.apply(server, arguments);
};
|
;
(function () {
'use strict';
//=require globalVars.js
//=require gtm-modules.js
//=require expose.js
})();
|
/*
*插件作者:周祥
*发布时间:2014年12月12日
*插件介绍:图片上传本地预览插件 兼容浏览器(IE 谷歌 火狐) 不支持safari 当然如果是使用这些内核的浏览器基本都兼容
*插件网站:http://jquery.decadework.com
*作 者QQ:200592114
*使用方法:
*界面构造(IMG标签外必须拥有DIV 而且必须给予DIV控件ID)
* <div id="imgdiv"><img id="imgShow" width="120" height="120" /></div>
* <input type="file" id="up_img" />
*调用代码:
* new... |
/*! UIkit 2.27.5 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
!function(t){var e;window.UIkit2&&(e=t(UIkit2)),"function"==typeof define&&define.amd&&define("uikit-htmleditor",["uikit"],function(){return e||t(UIkit2)})}(function(t){"use strict";var e=[];return t.component("htmleditor",{defaults:{ifram... |
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])
/******/ ret... |
// code to define and exporting the Employee class
class Employee {
constructor(name,id,email) {
this.name = name
this.id = id
this.email = email
}
getName() {
return this.name
}
getId() {
return this.id
}
getEmail() {
return this.email
... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time to build CKEditor again.
*
* If you would like to build CKEdi... |
(window.webpackJsonpFileIcons=window.webpackJsonpFileIcons||[]).push([[424],{226:function(q){q.exports={viewBox:"0 0 1024 1024",font:"file-icons",code:"263f",ref:"hg",path:"M209 473q0-60-52.5-90.5T52 382Q0 412 0 472.5T52 563q52 30 104.5 0t52.5-90m-115 4q2-26 32-40t45 10q12 19-5 39.5T131 512q-20 5-29-2t-8-33m18 73q3-3 1... |
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
export {default as PhoneInput} from './phone-input.js';
export {default as PhoneInputLite} from './phone-input-lite.js';
export {default as Phone... |
/**
*
* Root handler for "/" route
* restify each path to its handler
*
**/
var $ = require('../lib/dollar').$,
BaseHandler = require('./BaseHandler'),
DefaultHandler = require('./DefaultHandler'),
UserHandler = require('./UserHandler'),
MeHandler = require('./MeHandler');
function RootHandler(ctx) {
$('uti... |
import { connect } from 'react-redux'
import Controls from '../components/Controls'
import {
changeAmpLevel,
changeAttack,
changeCents,
changeDecay,
changeLFORate,
changeLFOSend,
changeLFOWaveform,
changeNoiseAmount,
changeOscGain,
changeOscWaveform,
changeRelease,
changeSemitones,
changeSusta... |
import {registerBidder} from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import * as utils from '../src/utils.js';
const BIDDER_CODE = 'krushmedia';
const AD_URL = 'https://ads4.krushmedia.com/?c=rtb&m=hb';
function isBidResponseValid(bid) {
if (!bid.requestId |... |
"use strict";(function(p,g,c){function q(d,h,k){return function(e){var m=this.getAttribute(d);h.call(this,e);this.getAttribute(d)===m&&this.setAttribute(d,k.call(this))}}for(var n=g.getOwnPropertyNames(c),l=0,r=n.length|0,a;l<r;l=l+1|0)a=n[l],/^HTML[A-Z]\w*Element$/.test(a)&&c.hasOwnProperty(a)&&!c.propertyIsEnumerable... |
import React from 'react'
import Svg from './Svg'
export const SvgPlusSquare = ({ size, ...props }) => (
<Svg
width={size}
height={size}
stroke="currentColor"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
className="plus-square_svg__feather plus-square_svg__feather-plus-squa... |
var callbackArguments = [];
var argument1 = null;
var argument2 = null;
var argument3 = null;
var base_0 = [":,<2","nk","^","]","q","$","`"]
var r_0= undefined
try {
r_0 = base_0.some(argument1,argument2,argument3)
}
catch(e) {
r_0= "Error"
}
function serialize(array){
return array.map(function(a){
if (a === null... |
const GuardConfig = {
registerMethods: ['email'],
loginMethods: ['password'],
mode: 'modal',
logo: 'https://static.nicegoodthings.com/project/ext/wb.logo.png',
title: 'Webrowse',
socialConnections: ['github', 'google'],
appHost: "https://portal-lite-china.authing.cn",
lang: 'en-US'
};
co... |
var metadata = require('./_metadata')
, anObject = require('./_an-object')
, getPrototypeOf = require('./_object-gpo')
, ordinaryHasOwnMetadata = metadata.has
, ordinaryGetOwnMetadata = metadata.get
, toMetaKey = metadata.key;
var ordinaryGetMetadata = ... |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.2.3.2
description: >
Set.prototype.clear ( )
1. Let S be the this value.
2. If Type(S) is not Object, throw a TypeError exception.
---*/
assert.throws(... |
import { GraphQLFloat, GraphQLObjectType } from 'graphql';
export const ItemPriceType = new GraphQLObjectType({
name: 'ItemPriceType',
description: 'Item Price',
fields: () => ({
amount: {
type: GraphQLFloat
}
})
});
|
import { GET_ACTIVE_HOUSE_SUCCESS, GET_ACTIVE_HOUSE_START } from '../constants/actionTypes';
import { loadReview, getReviewIsFinished, resetReviews, getReviewStart } from './reviewsActions';
import { loadUser } from './userActions';
import housesApi from '../api/housesApi';
export function loadActiveHouseStart() {
... |
/**
* Copyright IBM Corp. 2016, 2021
*
* 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.
*/
'use strict';
var iconPropTypes = require('./iconPropTypes-379308c1.js');
va... |
export { default as raised } from './raised.svelte';
export { default as depressed } from './depressed.svelte';
export { default as block } from './block.svelte';
export { default as fab } from './fab.svelte';
export { default as icon } from './icon.svelte';
export { default as outlined } from './outlined.svelte';
expo... |
import React, { Component } from "react";
import { GlobalStyle1 } from "./statics/global/style";
import { GlobalStyle2 } from "./statics/global/iconfont/iconfont";
import { Provider } from "react-redux";
import store from "./store";
import { BrowserRouter, Route } from "react-router-dom";
import Header from "./pages/... |
define(function(require, exports, module) {
"use strict";
exports.snippetText = require("../requirejs/text!./ruby.snippets");
exports.scope = "ruby";
});
|
// Changes XML to JSON
function parseXmlToJson(string){
}
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) { // element
// do attributes
if (xml.attributes.length > 0) {
obj["@attributes"] = {};
for (var j = 0; j < xml.attributes.length; j++) {
var attrib... |
/*!
=========================================================
* Argon Dashboard - v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard
* Copyright 2018 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://github.com/... |
export function registerElement(component, element) {
component.element = element;
}
export function deregisterElement(component) {
component.element = null;
}
|
import { SAVE_COMMENT } from '../actions/types';
export default function(state = [], action) {
console.log(action.type);
switch (action.type) {
case SAVE_COMMENT:
return [ ...state, action.payload ];
}
return state;
}
|
exports.run = (client, message) => {
const Discord = require('discord.js');
let user = message.mentions.users.first();
if (!user) {
return message.reply('You must mention someone!');
}
const mentioneduser = message.mentions.users.first();
const joineddiscord = (mentioneduser.createdAt.ge... |
/**
* Copyright (c) Microsoft. All rights reserved.
*
* 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 applicable law or ag... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
$(document).ready(function() {
AttachTaskListeners();
AttachProjectIndexListeners();
AttachSearchListener();
});
function AttachTaskListeners () {
var tasks = $('.todo li');
for (var i=0; i<tasks.length; i++) {
var task = $(tasks[i]);
$(task).on("click", function (e) {
if (!$(e.targe... |
import PropTypes from 'prop-types';
import clsx from 'clsx';
function foo(props) {
const { position: p } = props;
const x = clsx(p === 'top' && classes.x, p === 'bottom' && classes.y);
}
foo.propTypes = {
position: PropTypes.oneOf(['top', 'bottom']).isRequired,
};
|
import React from 'react';
import PropTypes from 'prop-types';
import { autoScrollUpDown } from '../../../hocs/autoScrollUpDown';
import { noop } from '../../../utils/misc';
import { BlockContentBoxAreaStyled } from './styles/BlockContentBoxAreaStyled';
const propTypes = {
isBordered: PropTypes.bool,
flex: PropTyp... |
// Copyright © 2021 The Things Network Foundation, The Things Industries B.V.
//
// 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... |
export function configure(config) {
config.globalResources('./template-factory');
}
|
// 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.10-3-5
description: >
Object.preventExtensions - indexed properties cannot be added into
a String object
---*/
var strObj = new String();
var preCheck = Ob... |
/*
* Copyright 2014 Amadeus s.a.s.
* 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 applicable law or agreed to i... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ObservableShim = exports.setObservable = exports.getObservable = void 0;
let _observable;
function getObservable() {
if (_observable) {
return _observable;
}
if (typeof window !== 'undefined' && window.Observable) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.