text stringlengths 2 1.04M |
|---|
'use strict';
if (typeof yaloadonce_cada367e228644d8b17a7162c125d8e2 !== 'undefined')
throw "Reference yaHTML5Sort.js only once."
var yaloadonce_cada367e228644d8b17a7162c125d8e2 = true;
(function () {
var root = {}, instances = [];
function addClass(node, name) {
if (name && (name = name.trim()))... |
"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.Hands = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentCo... |
const passport = require('passport')
const GitHubStrategy = require('passport-github').Strategy
const User = require('../models/user')
// Setting up Passport and the passport strategy
passport.use(new GitHubStrategy({
clientID: process.env.GH_ID,
clientSecret: process.env.GH_SECRET,
callbackURL: process.en... |
import { Controller } from "stimulus"
import ApexCharts from 'apexcharts'
export default class extends Controller {
createChart(ctx, response) {
const { labels, data } = response
var options = {
chart: {
type: 'line',
height: 300,
zoom: {
enabled: false
},
... |
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const { defaults, defaultsDeep, xor } = require('lodash');
//Prepping
const defaultLang = require('./en.json');
const langFiles = fs.readdirSync(__dirname, { withFileTypes: true })
.filter((dirent) => !dirent.isDirectory() && d... |
/*!
* filename: ej.grid.min.js
* version : 17.4.0.46
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted und... |
// File#: _1_infinite-scroll
// Usage: codyhouse.co/license
(function() {
var InfiniteScroll = function(opts) {
this.options = Util.extend(InfiniteScroll.defaults, opts);
this.element = this.options.element;
this.loader = document.getElementsByClassName('js-infinite-scroll__loader');
this.loadBtn = do... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[14,15,16,17,18,19],{"9e9m":function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u,a=o("oCYn");var d=new((u=a)&&u.__esModule?u:{default:u}).default;n.default=d}}]); |
import React from "react";
const ErrorMessage = ({ status }) => {
return (
<div class="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button
type="butto... |
require('./tests.css');
import './usage'; |
import React from "react";
import { View, Text } from "react-native";
import TemperatureStringStyles from "./TemperatureString.style";
const TemperatureString = ({
temp,
unit,
containStyle = {},
unitStyle = {},
tempStyle = {},
degStyle = {},
}) => (
<View style={[TemperatureStringStyles.container, conta... |
const React = require('react');
const { Link } = require('react-router');
module.exports = function Navigation() {
return (
<nav role="navigation">
<Link to="/">Home</Link>
<Link to="/tasks">Tasks</Link>
</nav>
);
}; |
function censor(text, words) {
for (let word of words) {
let temp = '-'.repeat(word.length);
while (text.indexOf(word) > - 1) {
text = text.replace(word, temp);
}
}
return text;
}
console.log(censor('roses are red, violets are blue', ['violets are', 'red'])); |
export default class Queue {
constructor() {
this.queue = [];
}
enqueue = value => this.queue.push(value);
// use Array.prototype.shift
dequeue = () => this.queue.shift();
// Different with dequeue only get the top element of the stack does not pop up
peek = () => this.queue[0];
length = () => t... |
var searchData=
[
['mail',['Mail',['../classkenjiuno_1_1_l_e_m_l_1_1_mail.html',1,'kenjiuno::LEML']]]
]; |
/**
* @fileoverview 关键词后需要一个空格规则
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = function(context) {
// unless the first option is `"never"`, th... |
define([
'../less-error',
'../tree/index',
'../visitors/index',
'./parser-input',
'../utils',
'../functions/function-registry'
], function (__module__0, __module__1, __module__2, __module__3, __module__4, __module__5) {
'use strict';
var exports = {};
var module = { exports: {} };
... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('fusionSeed', [
'ngRoute',
'ui.bootstrap',
'fusionSeed.viewSearch',
'fusionSeed.viewecommSearch',
'fusionSeed.viewecommProduct',
'fusionSeed.ecommService',
'fusionSeed.http',
'fusionSeed.version'
])
.confi... |
import buildRules from '../src/buildRules.es6'
describe('#buildRules', function () {
it("should output style rule from element name", function () {
expect(buildRules({
p: {
fontFamily: 'serif'
}
})).toEqual([
{sel: "p", props: {'font-family': 'serif'}}
]);
});
it("should ... |
// TODO: Create functions to generate markdown for the HTML file
//Create a function to generate the markdown for the html file
function generateHtml(data){
const {name, id, email, role, officeNumber, github, school, engineerEmail, engineerName, engineerId, internEmail, internId, internName} = data;
retur... |
import { __assign, __decorate, __extends } from "tslib";
import * as React from 'react';
import { BaseButton } from '../BaseButton';
import { customizable, nullRender } from '../../../Utilities';
import { getStyles } from './ActionButton.styles';
/**
* {@docCategory Button}
*/
var ActionButton = /** @class */ (functi... |
"use strict";
/**
* @license
* Copyright SOAJS All Rights Reserved.
*
* Use of this source code is governed by an Apache license that can be
* found in the LICENSE file at the root of this repository
*/
const core = require("../soajs.core");
const auth = require('basic-auth');
let log = null;
let _ = require("... |
//# sourceMappingURL=webpack-runtime-f5e80541b75a7e9ca5ea.js.map |
import React, { Component } from 'react';
import { CardElement, injectStripe } from 'react-stripe-elements';
import PT from 'prop-types';
import styled from 'styled-components';
import { validate } from 'email-validator';
import theme from '../theme/styledTheme';
import { messages } from '../utils/messages';
import Sp... |
/**
* Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui)
* Copyright 2018 Telerik AD. All rights reserved. ... |
//= require namespaces
//= require util/murmurhash3 |
import router from './router'
import store from './store'
import {
Message
} from 'element-ui'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import {
getToken
} from '@/utils/auth' // get token from cookie
import getPageTitle from '@/utils/get-page-title'
... |
<!--
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 not use ... |
import { StyleSheet } from 'react-native';
import { hp, wp } from 'services/responsive';
import typography from 'constants/typography';
import colors from 'constants/colors';
export default StyleSheet.create({
container: {
flexDirection: 'row',
paddingTop: hp(2.5),
paddingHorizontal: wp(4),
backgroundColor: ... |
// Generated by CoffeeScript 1.10.0
var AWS, docClient;
AWS = require('aws-sdk');
docClient = new AWS.DynamoDB.DocumentClient();
exports.handler = function(event, context) {
var param;
param = {
TableName: 'todos'
};
docClient.scan(param, function(err, data) {
if (err) {
return context.fail(err... |
dupe = new WorkshopFiles();
function ControllerDupes($scope, $rootScope, $location, $timeout, $routeParams)
{
$rootScope.ShowBack = true;
Scope = $scope;
dupe.Init( 'ws_dupe', $scope, $rootScope );
$scope.ArmDupe = function( entry )
{
if ( !IN_ENGINE ) return;
if ( entry.local ) {
gmod.ArmDupe( entry.in... |
import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import PropTypes from 'prop-types'
import './index.less'
export default class Tags extends Component {
constructor(props) {
super(...arguments)
this.state = {
}
}
render() {
return (
<Text classN... |
const db = require('../../data/db-config.js'),
{ add, find, update, remove } = require('./member-helper')
describe('member-helper', () => {
describe('CREATE', () => {
beforeEach(async () => await db.seed.run())
test('add should successfully add a neighbor to database', async () => {
await add('neigh... |
$(document).ready(function() {
$('.mobileNav').click( function(){
if($('.nav ul').hasClass('open') ){$('.nav ul').removeClass('open'); }
else{ $('.nav ul').addClass('open');}
})
}); |
Scoped.define("module:AudioPlayer.Dynamics.Message", [
"dynamics:Dynamic"
], [
"dynamics:Partials.ClickPartial"
], function(Class, scoped) {
return Class.extend({
scoped: scoped
}, function(inherited) {
return {
template: "<%= template(dirname + '/audio_playe... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var _ = require('lodash'); /* jshint ignore:line */
var Domain = require('../base/Domain'); /* jshint ignore:line */
var V1 = require('.... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//# sourceMappingURL=credentials.js.map |
require('dotenv').config()
const express = require('express');
const mongoose = require('mongoose');
const cors = require('cors');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const SECRET = process.env.SECRET_KEY
const {hash, jsonAuth, auth} = require('./controllers/authController');
cons... |
function drawCircle(x, y, r, c, options) {
if (!options)
options = {};
let _ctx = options.ctx || ctx;
_ctx.save();
_ctx.beginPath();
_ctx.arc(x, y, r, 0, 2 * Math.PI, false);
_ctx.fillStyle = c || 'red';
_ctx.globalAlpha = options.alpha || 1;
if (options.glow)
_ctx.shadowBlur = 100;
... |
var cooking = require('cooking');
var path = require('path');
var config = require('../../build/config');
cooking.set({
entry: {
index: path.join(__dirname, '_index.js')
},
dist: path.join(__dirname, 'lib'),
template: false,
format: 'umd',
moduleName: 'ElSelect',
extends: ['vue2'],
alias: config.al... |
g_db.quests[20887]={id:20887,name:"Depleted",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:1,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:1,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,remove_obta... |
!function(){"use strict";var o=window.location,c=window.document,l=c.currentScript,u=l.getAttribute("data-api")||new URL(l.src).origin+"/api/event";function e(e,t){if(!(window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)){try{if("true"===window.localStorage.plausible_ignore)return void cons... |
/**
* @author mikael emtinger / http://gomo.se/
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author bhouston / http://clara.io
*/
THREE.Quaternion = function ( x, y, z, w ) {
this._x = x || 0;
this._y = y || 0;
this._z = z || 0;
this._w = ( w !== und... |
import React, { Component } from 'react';
import './Skills.css';
class War extends Component {
constructor(props) {
super(props);
this.state = {
items: []
};
this.componentWillMount = this.componentWillMount.bind(this);
}
componentWillMount() {
fetch('https://api.myjson.com/bins/l0yy... |
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import './styles/three-dots/three-dots.scss';
// These can be imported and used, commenting out till when needed.
// import $ from 'jquery';
// import Popper from 'popper.js';
import React from 'react';
import ReactDOM fro... |
const mongoose = require('mongoose');
const config = require('config');
const db = config.get('mongoURI');
const connectDB = async () => {
try {
await mongoose.connect(db, {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false,
useUnifiedTopology: true,
});
consol... |
import React from 'react';
import wcag from 'wcag-contrast-verifier/lib/wcag';
import classNames from 'classnames';
import Icon from 'cultureamp-style-guide/components/Icon/Icon.js';
import successWhite from 'cultureamp-style-guide/icons/success.svg';
import Palette from './_Palette.js';
import styles from './ColorCard... |
'use strict';
const Lab = require('@hapi/lab');
const Code = require('@hapi/code');
const Joi = require('@hapi/joi');
const Hapi = require('@hapi/hapi');
const HapiCsv = require('..');
const lab = exports.lab = Lab.script();
const describe = lab.experiment;
const it = lab.it;
const before = lab.before;
const after =... |
import { useState, useEffect } from "react";
import Axios from "../../../../src/services/AxiosConfig";
import { SEARCH_PRODUCTS } from "../../../graphql";
import { emptyStrRegEx } from "../../../validations/Regex";
const useSearchProduct = (isOpen) => {
const [searchResults, setSearchResults] = useState([]);
const... |
$(document).ready(function(){
$(".footer").load("./footer.html");
}); |
import Vue from 'vue'
import VueCarousel from 'vue-carousel'
import VueRouter from 'vue-router'
import App from './App.vue'
import Main from './Main.vue'
import Landing from './Landing.vue'
Vue.use(VueCarousel)
Vue.use(VueRouter)
const routes = [{
path: '/:token',
component: App
},
{
path: '/',
compo... |
module.exports = {
title: 'ApiAdmin-Element',
showSettings: true,
tagsView: true,
fixedHeader: false
} |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["blur-off-rounded"] = fa... |
import React, { useState, useEffect } from 'react';
import Button from '@material-ui/core/Button';
import Post from '../../components/post';
import TextField from '@material-ui/core/TextField';
import './styles.scss';
import axios from 'axios';
import { CirclePicker } from 'react-color';
import clsx from 'clsx';
impor... |
const gulp = require('gulp');
const Project = require('kdev-utils/lib/project');
const Utils = require('kdev-utils/lib/utils');
const project = new Project();
const exec = function (taskName) {
return function () {
return project.exec(taskName);
}
};
const task = function(taskName){
const Task =... |
const {serveHTTP} = require('stremio-addon-sdk');
const addonInterface = require('./addon');
require('events').EventEmitter.defaultMaxListeners = 50;
try {
serveHTTP(addonInterface, {
port: process.env.PORT || 7000,
cacheMaxAge: 3600
});
} catch {} |
const getEnv = require('./helpers/env')
const lint = require('./helpers/lint')
const copy = require('./helpers/copy')
const clean = require('./helpers/clean')
const tsconfig = require('./configs/tsconfig')
const complier = require('./helpers/complier')
const opts = ctx.options
const src = tsconfig.compilerOptions.root... |
import React from 'react';
import PropTypes from 'prop-types';
import Box from '@material-ui/core/Box';
import styled from '@material-ui/core/styles/styled';
import getCurrencySymbol from '../utils/getCurrencySymbol';
import currencies from '../constants/currencies';
const ExchangeRateWrapper = styled(Box)({
display... |
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@material-ui/core/Toolbar";
import Typography from "@material-ui/core/Typography";
import Button from "@material-ui/core/Button";
import IconButton from "@material-ui/cor... |
// Copyright 2010 The Closure Library Authors. 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 requ... |
import { createSlice } from "@reduxjs/toolkit";
import _ from "underscore";
import sideNavMetadata from "./sideNavMetadata";
export const sideNavMetadataSlice = createSlice({
name: "sidenav",
initialState: sideNavMetadata,
reducers: {
bindToggleSubmenu: (state, action) => {
console.log... |
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/supermall/' : './',
configureWebpack: {
resolve: {
alias: {
'assets': '@/assets',
'common': '@/common',
'components': '@/components',
'network': '@/network',
'views': '@/views',
}
}
... |
var indexSectionsWithContent =
{
0: "abcdefghilmnoprstuy",
1: "abcdefhilmnprstuy",
2: "acdefghilmnoprstuy",
3: "dp",
4: "o"
};
var indexSectionNames =
{
0: "all",
1: "classes",
2: "functions",
3: "variables",
4: "related"
};
var indexSectionLabels =
{
0: "All",
1: "Classes",
2: "Functions",
... |
// Copyright 2019 Workiva Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
// Copyright (c) YugaByte, Inc.
import axios from 'axios';
import { IN_DEVELOPMENT_MODE, ROOT_URL, USE_SSO } from '../config';
import Cookies from 'js-cookie';
import { getCustomerEndpoint } from './common';
// Get current user(me) from token in localStorage
export const VALIDATE_FROM_TOKEN = 'VALIDATE_FROM_TOKEN';
e... |
import React from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import Navbar from 'react-bootstrap/Navbar';
import { Link } from 'react-router-dom';
import './header.css';
import LogoutButton from './LogoutButton';
class Header extends React.Component {
render() {
return (
<Navbar className="na... |
const ListNode = require('../extensions/list-node');
/**
* Implement the Queue with a given interface via linked list (use ListNode extension above).
*
* @example
* const queue = new Queue();
*
* queue.enqueue(1); // adds the element to the queue
* queue.enqueue(3); // adds the element to the queue
* queue.dequ... |
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 __());
};
import * as import0 from '@angular/core/src/linker/ng_module_f... |
class Vector {
constructor(x, y) {
this.x = x;
this.y = y;
}
moveAngle(angle, speed) {
const [velx, vely] = Vector.getComponents(angle, speed);
this.x += velx;
this.y += vely;
return this;
}
moveVector(vector) {
this.x += vector.x;
this.y += vector.y;
return this;
}
add(vector) {
this.x += ve... |
/*
*
* The device’s camera, the UI for progressbar, and the function to upload
* the photo to the server
*
*/
var gradients = require('gradients');
var UI = require('ui');
//
// Global variables
//
var cameraAvailable = true;
//
// Set up the cameraWindow
//
// The cameraWindow is mainly used to show a progres... |
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applica... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const path_1 = (0, tslib_1.__importDefault)(require("path"));
function default_1(_context, options) {
return {
name: 'docusaurus-plugin-ideal-image',
getThemePath() {
return pat... |
(function(undefined) {
if (!("Intl"in self&&Intl.RelativeTimeFormat&&Intl.RelativeTimeFormat.supportedLocalesOf&&1===Intl.RelativeTimeFormat.supportedLocalesOf("bs-Latn").length
)) {
// Intl.RelativeTimeFormat.~locale.bs-Latn
/* @generated */
// prettier-ignore
if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFo... |
"use strict";
const { expect } = require("chai");
const { show } = $utils;
describe("show", () => {
it("should return an escaped and double-quoted string if a string is given", () => {
// empty
expect(show("")).to.equal("\"\"");
// single character
expect(show("0")).to.equal("\"0\"");
expect(sh... |
const { initializeApp: init, database } = require('firebase');
class FirebaseUtil {
constructor(options) {
if (!global.firebaseConnect && typeof options !== 'object') return new Error('Não é um objeto!');
if (!global.firebaseConnect && !options.apiKey) return new TypeError('apiKey não foi definida!');
if... |
/**
* Given an array of domains, return the object with the appearances of the DNS.
*
* @param {Array} domains
* @return {Object}
*
* @example
* domains = [
* 'code.yandex.ru',
* 'music.yandex.ru',
* 'yandex.ru'
* ]
*
* The result should be the following:
* {
* '.ru': 3,
* '.ru.yandex': 3,
* '... |
const makeAsyncActions = actionName => ({
REQUEST: `${actionName}/REQUEST`,
SUCCESS: `${actionName}/SUCCESS`,
FAILURE: `${actionName}/FAILURE`,
});
const makeActionCreator = actionType => {
return payload => ({ type: actionType, payload });
};
const makeAsyncActionCreator = actions => {
const actionCreator = ... |
/**
* Sunshine Conversations API
*
* The version of the OpenAPI document: 9.7.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
* OpenAPI Generator version: 4.3.1
*
* Do not edit the class manually.
*
*/
import ApiClient from '... |
// import React from 'react';
// import { shallow } from 'enzyme';
// import { Business } from '../index';
describe('<Business />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
}); |
module.exports={A:{A:{"1":"J D F E A B","2":"oB"},B:{"1":"C P H I R K L W a M MB S T N V O aB"},C:{"1":"9 AB BB CB DB EB FB dB HB SB Q KB LB U NB OB PB QB IB GB Z Y TB UB VB WB RB W a M nB MB S T N V O","2":"0 1 2 3 4 5 6 7 8 hB XB G b J D F E A B C P H I R K L c d e f g h i j k l m n o p q r s t u v w x y z vB yB"},D:... |
module.exports = {
extends: [require.resolve('@znemz/js-common-eslint-config-react-emotion')],
}; |
'use strict';
var path = require('path');
var _ = require('lodash');
// if self signed CA
//http://stackoverflow.com/questions/20433287/node-js-request-cert-has-expired
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
function requiredProcessEnv(name) {
if(!process.env[name]) {
throw new Error('You must set the... |
// This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import React from 'react';
import ReactDOM from 'react-dom';
import {WTFDurationField} from 'indico/... |
/*
Language: ARM Assembly
Author: Dan Panzarella <alsoelp@gmail.com>
Description: ARM Assembly including Thumb and Thumb2 instructions
Category: assembler
*/
export default function(hljs) {
//local labels: %?[FB]?[AT]?\d{1,2}\w+
const COMMENT = {
variants: [
hljs.COMMENT('^[ \\t]*(?=#)', '$', {relevan... |
import actions from '../../actions';
import ProductMock from '../../__mocks__/productMock';
describe('Actions', () => {
test('Add to cart', () => {
const payload = ProductMock;
const expected = {
type: 'ADD_TO_CART',
payload,
};
expect(actions.addToCart(payload)).toEqual(expected);
});
... |
var a00244 =
[
[ "base", "a00244.html#a715575cd0379ad78633ddb4fe15b4b7c", null ],
[ "MemberSignature", "a00244.html#a6694997c23128fff4974aebff4cc1295", null ],
[ "_TessMemberResultCallback_6_0", "a00244.html#ad4bed8fbafe8f70ed26f387a19ba63e6", null ],
[ "Run", "a00244.html#ad0607014c1151a8ef3c3bfb940d0a... |
export default {
"pages": {
"root": {
"id": "root",
"pageUrl": "root",
"name": "root",
"children": [
"61e7c7d09ff12e001faba23f",
"61e7c7d09ff12e001faba242",
"61e7e2092e159e001e125b64",
"61e7e9dff88b8f001e946f67"
]
},
"61e7c7d09ff12e001faba23f": {
"id": "61e7c7d09ff12e001faba23f"... |
// flow-typed signature: 237ea5ae4c88657d38c38bece939adbe
// flow-typed version: <<STUB>>/case-sensitive-paths-webpack-plugin_v2.1.2/flow_v0.81.0
/**
* This is an autogenerated libdef stub for:
*
* 'case-sensitive-paths-webpack-plugin'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled o... |
import React, { Component } from 'react'
import Paper from '@material-ui/core/Paper'
import Divider from '@material-ui/core/Divider'
import Tabs from '@material-ui/core/Tabs'
import Tab from '@material-ui/core/Tab'
import { observer, inject } from 'mobx-react'
import { computed } from 'mobx'
@inject('routing')
@inject... |
'use strict';
const invertKv = require('invert-kv');
const all = require('./lcid.json');
const inverted = invertKv(all);
exports.from = lcidCode => {
if (typeof lcidCode !== 'number') {
throw new TypeError('Expected a number');
}
return inverted[lcidCode];
};
exports.to = localeId => {
if (typeof localeId !==... |
const mongoose = require("mongoose");
const productSchema = mongoose.Schema({
productTitle: {
type: String,
required: true
},
productPrice: {
type: Number,
required: true
},
productDate: {
type: Date,
default: Date.now,
required: true,
},
productStock: {
type: Numbe... |
export * from '@styled-icons/boxicons-regular'; |
module.exports = {
name: "help",
description: "it's help what do you expect",
cooldown: 5,
async execute(message, args) {
const fs = require("fs");
const Discord = require("discord.js");
const client = message.client
if (args[0]) {
const cmd = client.commands.... |
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ |
const natural = require('natural');
const classifier = new natural.BayesClassifier();
classifier.save('./trained-model/classifier.json', function (err, classifier) {
classifier.addDocument('Hello Hi', 'greet');
classifier.addDocument('What is the price', 'enquiry');
classifier.addDocument('how much', 'enq... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.arDriveAnonymousFactory = exports.arDriveFactory = void 0;
const arweave_1 = __importDefault(req... |
/**
*
* create by ligx
*
* @flow
*/
import '../common/shirm';
import type { ExpandInfo, NodeId2ExtendInfo, NodeId2SelectInfo, QueryType } from '@lugia/lugia-web';
import animation from '../common/openAnimation';
import ThemeHoc from '@lugia/theme-hoc';
import Empty from '../empty';
import * as React from 'react';
... |
'use strict';
// Constructor
var <%= _.classify(name.toLowerCase()) %> = function() {
this.name = '<%= name %>';
console.log('%s module', this.name);
};
module.exports = <%= _.classify(name.toLowerCase()) %>; |
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
var Controller = {
index: function () {
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'banner/index',
add_url: 'ba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.