text stringlengths 2 1.05M |
|---|
import * as actionTypes from "../actions/actionTypes";
const counterReducer = (state = 0, action) => {
let newState;
switch (action.type) {
case actionTypes.INCREASE_COUNTER:
return (newState = state + action.payload);
case actionTypes.DECREASE_COUNTER:
return (newState = state - action.payloa... |
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.5 - 2014-11-14
*
*/!function(a){"use strict";a.i18nDict={"lang-code":"ar","lang-native":"العربية",all:"جميع",tphp:"أعلى الصفحة",load:" ... |
function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a functio... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[197],{3070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icon=void 0,n(10);var l=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=argum... |
'use strict';
// ----------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ArgumentsRequired, AuthenticationError, DDoSProtection } = require ('./base/errors');
// -----------------------------------------------------------------... |
const Pet = require("../models/PetModel");
module.exports = {
createOnePet: async (req, res) => {
try {
const pet = await Pet.create(req.body);
res.json(pet);
} catch (error) {
res.status(400).json(error);
}
},
deleteOnePet: async (req, res) => {
try {
const pet = await Pet... |
/**
* Framework7 5.7.12
* Full featured mobile HTML framework for building iOS & Android apps
* https://framework7.io/
*
* Copyright 2014-2020 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: September 3, 2020
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?modu... |
!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r... |
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
body: {
display: 'flex',
alignContent: 'center',
alignItems: 'center'
},
exposure: {
height: 200
}
})
export default styles; |
'use strict';
// gallery
(function () {
function toggleLogo() {
logos[lastLogoIdx].classList.toggle('selected');
}
var logos = document.querySelectorAll('.logos img'),
lastLogoIdx = 0;
// init
toggleLogo();
// loop
setInterval(function () {
toggleLogo();
... |
import fetchWrap from '@/utils/fetch';
import queryString from 'query-string';
// GET /projects/{projectId}/study-areas http://bit.ly/2DIvx4f
const getProjectStudyAreas = async id => {
const res = await fetchWrap({
url: `/api/v1/projects/${id}/study-areas`,
method: 'GET',
});
return res;
};
// POST /pro... |
import chai from 'chai';
import chaiHttp from 'chai-http';
import server from '../../../index';
import mockData from './mockData';
chai.use(chaiHttp);
const expect = chai.expect;
let usertoken;
let userAdmintoken;
describe('After Authentifications',() =>{
before((done) => {
// signin and get an access token
... |
import React from 'react';
import * as PropTypes from 'prop-types';
import { Button, Dropdown } from 'antd';
const ButtonDropdown = ({
overlay,
...buttonProps
}) => <Dropdown overlay={overlay} placement="bottomLeft" trigger={['click']}>
<Button {...buttonProps} />
</Dropdown>;
ButtonDropdown.propTypes = {
... |
/**
* @license
* Copyright 2019 Google LLC
*
* 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 ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{144:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return a})),r.d(t,"metadata",(function(){return s})),r.d(t,"rightToc",(function(){return c})),r.d(t,"default",(function(){return p}));var n=r(2),o=r(9),i=(r(0),r(326)),a={id:"index",title:"O... |
$(document).ready(function(e){
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
Inputmask({"mask":"9999-9999","clearIncomplete":true}).mask(".telefono");
Inputmask({"mask":"99999999-9","clearIncomplete":true}).mask(".dui");
Inputmask({"mask":"9999-9999... |
(function(e){function c(c){for(var u,t,a=c[0],f=c[1],h=c[2],o=0,b=[];o<a.length;o++)t=a[o],Object.prototype.hasOwnProperty.call(d,t)&&d[t]&&b.push(d[t][0]),d[t]=0;for(u in f)Object.prototype.hasOwnProperty.call(f,u)&&(e[u]=f[u]);k&&k(c);while(b.length)b.shift()();return r.push.apply(r,h||[]),n()}function n(){for(var e,... |
/**
* Combine all reducers in this file and export the combined reducers.
*/
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import history from 'utils/history';
import globalReducer from 'containers/App/reducer';
import languageProviderReducer from 'containers/Langu... |
var gapi=window.gapi=window.gapi||{};gapi._bs=new Date().getTime();(function(){var aa=function(a,b,c){return a.call.apply(a.bind,arguments)},ba=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.pro... |
// Copyright (c) 2020 Anastasiia Birillo
const mongoose = require('mongoose');
const ATI = mongoose.model('ActivityTrackerItem');
const createAti = async (atiData) => {
const ati = new ATI(atiData);
return await ati.save();
};
const getAtiByExternalId = async (externalId) => {
return await ATI.findOne({... |
import * as columnService from '../column/column.service';
import { build as buildExpression } from '../expression/expression.build';
import { PredicateVisitor } from '../expression/predicate.visitor';
import { yes } from '../utility/kit';
import { get as getValue } from '../services/value';
export function match(cont... |
var searchData=
[
['get_5fhistory_22',['get_history',['../classrth_1_1virtual__building_1_1ants_1_1_ant.html#a614b78a20c7ddf3be78ce1251f601e14',1,'rth::virtual_building::ants::Ant']]],
['get_5fip_5fof_5frouter_5fon_5fsubnetwork_23',['get_ip_of_router_on_subnetwork',['../classrth_1_1virtual__building_1_1network__cre... |
var __extends=this&&this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},Spriter;!function(t){var e=function(){function t(){this._items=[],this._itemNames=[]}return t.prototype.add=function(t,... |
/*!
* nodeclub - rss controller test
* Copyright(c) 2012 fengmk2 <fengmk2@gmail.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var request = require('supertest');
var app = require('../../app');
var config = require('../../config');
describe('test/controllers/rss.test.js', function () {
describe('/rss... |
const fs = require('fs');
const path = require('path');
const logger = require('log4js').getLogger('loader');
const loadModules = (moduleDir, filePredicate, afterLoadingModule) => {
const files = fs.readdirSync(path.join(__dirname, moduleDir));
for (const file of files) {
if (typeof filePredicate === ... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const mongoosePaginate = require('mongoose-paginate');
const timestamps = require('mongoose-timestamp');
const utils = require('../main/common/utils');
const Roles = require('../../src/shared/roles');
// Define the User model schema
const UserSchem... |
class Person {
constructor(first_name, last_name) {
this.first_name = first_name;
this.last_name = last_name;
}
full_name() {
return this.first_name + " " + this.last_name;
}
}
class Staff extends Person {
constructor(first_name, last_name, persno) {
super(f... |
// Cronicle Admin Page -- Categories
Class.add( Page.Admin, {
gosub_categories: function(args) {
// show category list
this.div.removeClass('loading');
app.setWindowTitle( "Categories" );
var size = get_inner_window_size();
var col_width = Math.floor( ((size.width * 0.9) + 200) / 5 );
var html = '... |
/**
* 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.
*/
'use strict';
var Icon = require('../Icon-399ca71f.js');
var React = require... |
var slider = document.getElementById("range-price");
var output = document.getElementById("price");
output.innerHTML = slider.value;
slider.oninput = function() {
output.innerHTML = this.value;
}
|
import React from "react"
import Img from "gatsby-image"
import { rhythm } from "../utils/typography"
export default props => {
const assets = props.data.allContentfulAsset.edges
return (
<div>
<h1>Image API examples</h1>
<p>
Gatsby offers rich integration with{` `}
<a href="https:/... |
"use strict";(self.webpackChunkion_holla_messenger=self.webpackChunkion_holla_messenger||[]).push([[8991],{8991:(V,v,m)=>{m.r(v),m.d(v,{startTapClick:()=>I});var u=m(2377);const I=n=>{let i,s,E,d,o=10*-h,r=0;const P=n.getBoolean("animated",!0)&&n.getBoolean("rippleEffect",!0),p=new WeakMap,A=e=>{o=(0,u.o)(e),R(e)},D=()... |
//@flow
// eslint-disable-next-line import/no-extraneous-dependencies
import i18n from 'external-i18n';
import type {I18nFunction} from '../common/types';
export const ScheduledTaskMessages: {[string]: string, transitionOption: *, runNowConfirm: I18nFunction, runNowConfirm: I18nFunction, jqlLimitDescription: I18nFun... |
export const footerBarList = [
{title: '首页', icon: 'home'},
{title: '视频', icon: 'video'},
{title: '微头条', icon: 'comment'},
{title: '未登录', icon: 'account'}
]
export const newsList = [
{title: '推荐', id: 1},
{title: '视频', id: 2},
{title: '热点', id: 3},
{title: '社会', id: 4},
{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 ... |
module.exports = function createDreamTeam(members) {
if (members!= undefined &&typeof members === "object" && members.length > 0) {
return members.filter(x => typeof x === "string").map(x => x.trim().split('')[0].toUpperCase()).sort().join('');
}
return false;
}; |
function words(str) {
var obj = {}, words = str.split(" ");
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
var keywords = words(
"absolute and array asm begin case const constructor destructor div do " +
"downto else end file for function goto if implementation in inherited " +
... |
const fs = require('fs')
const path = require('path')
const glob = require('glob')
const semver = require('semver')
const getVersion = require('../getVersion')
let [, , cwd, versionChange, prereleaseId] = process.argv
if (cwd === undefined || !cwd.startsWith('/')) {
;[cwd, versionChange, prereleaseId] = [process.... |
(this.webpackJsonp=this.webpackJsonp||[]).push([[208],{113:function(e,t,n){"use strict";n.r(t);var a=n(88),i=n(70),o=n(96);document.addEventListener("DOMContentLoaded",(function(){Object(o.a)(document,gon),new a.a,new i.a}))},1159:function(e,t,n){"use strict";n(42);var a=n(0),i=n.n(a),o=n(1);function r(e,t){for(var n=0... |
/* code stolen from http://www.switchonthecode.com/tutorials/javascript-draggable-elements */
function hookEvent(element, eventName, callback)
{
if(typeof(element) == "string")
element = document.getElementById(element);
if(element == null)
return;
if(element.addEventListener)
{
element.addEventLis... |
const express = require("express");
const helmet = require("helmet");
const cors = require("cors");
require("dotenv").config();
const middleware = require("./middleware");
const api = require("./api");
const app = express();
app.use(express.json());
app.use(helmet());
app.use(cors());
app.get('/', (req, res) => {... |
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/ext... |
/* globals Importer */
Importer.CSV = class ImporterCSV extends Importer.Base {
constructor(name, descriptionI18N, mimeType) {
super(name, descriptionI18N, mimeType);
this.logger.debug('Constructed a new CSV Importer.');
this.csvParser = Npm.require('csv-parse/lib/sync');
this.messages = new Map();
}
prep... |
var searchIndex = JSON.parse('{\
"anneml":{"doc":"Anneml is a composite machine learning library designed …","t":[0,0,0,0,0,0,0,0,0,0,0,0,4,3,4,13,13,13,13,13,13,13,13,13,13,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,... |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','sap/ui/core/theming/Parameters'],function(q,P){"use strict";var R={};R.render=function(... |
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
define([
'underscore',
'knockout',
'contrail-model',
'config/networking/routingpolicy/ui/js/views/routingPolicyFormatter',
'config/networking/routingpolicy/ui/js/models/routingPolicyTermFromModel',
'config/networking/routi... |
'use strict';
const styles = require('../../utilities/views/constants/styles');
module.exports = {
'containers': {
'/modal/included-columns': {
layout: {
component: 'Hero',
props: {
style: {
margin: 0,
},
},
children: [{
... |
var classrtf_1_1_formatting =
[
[ "Formatting", "classrtf_1_1_formatting.html#a5f64baac7436e5c1e75a5525aa5c588a", null ],
[ "operator!=", "classrtf_1_1_formatting.html#a871dd52e729506f0390d665ab3f5dd1e", null ],
[ "operator=", "classrtf_1_1_formatting.html#a41d6638afe3d7c3ae6e057f03a44ac17", null ],
[ "... |
var NAVTREEINDEX3 =
{
"classproton_1_1value.html#a035d5cba647aad8df637622977f71c9a":[6,0,0,54,1],
"classproton_1_1value.html#a051c12c4c7efc82a5f268d4f64e15b54":[6,0,0,54,8],
"classproton_1_1value.html#a2dd4c0151b171f03f2c36d907832522b":[6,0,0,54,9],
"classproton_1_1value.html#a486dfed974ca6f79e75039b3eee6c44c":[6,0,0,5... |
/*
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 ... |
'use strict';
const validateGroupInput = require('./validation/group');
const _ = require('lodash');
/**
* Groups controller
*/
module.exports = {
/**
* GET /groups handler
* Returns a list of available groups
* @param {Object} ctx - koa context
*/
async getGroups(ctx) {
const service = strapi.pl... |
// =========================================================================
// Copyright � 2017 T-Mobile USA, 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.apa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = require("path");
const vamtiger_create_directory_1 = require("vamtiger-create-directory");
const vamtiger_create_file_1 = require("vamtiger-create-file");
const export_empty_string_1 = require("./snippet/export-empty-string");
c... |
import React from "react";
// reactstrap components
import { Container } from "reactstrap";
// core components
import Header from "components/Headers/Header.js";
import PaginationOrder from "./TableOrders/Pagination";
import TableProductsUser from "./TableProducts/Table";
// const MapWrapper = () => {
// return (... |
(function(obj, key, value) {
return key in obj ? Object.defineProperty(obj, key, {
value: value,
enumerable: !0,
configurable: !0,
writable: !0
}) : obj[key] = value, obj;
})({}, Symbol.iterator, 0)[Symbol.nonsense];
|
module.exports = class TaskPsychomotorLevelOfLearning extends EcRemoteLinkedData {
psychoIterId;
psychoLoL;
taskLoLChar;
taskKSAGaps;
orgInfos;
docs;
rmks;
uid;
uri;
crud;
getPsychoIterId() {
return psychoIterId;
}
setPsychoIterId( value) {
this.psychoIterId = value;
}
getPsychoLoL() {
... |
import React from "react";
// Using the datalist element we can create autofill suggestions based on the props.breeds array
function SearchForm(props) {
return (
<div className="container">
<form className="search">
<div className="form-group">
<label>Search Employee:</label>
<input
... |
// -----------------------------------------------------------------------------------
// http://wowslider.com/
// JavaScript Wow Slider is a free software that helps you easily generate delicious
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
// Generated by WOW... |
const {
applicationContext,
testPdfDoc,
} = require('../../test/createTestApplicationContext');
const {
CASE_TYPES_MAP,
CONTACT_TYPES,
COUNTRY_TYPES,
DOCKET_SECTION,
DOCUMENT_PROCESSING_STATUS_OPTIONS,
PARTY_TYPES,
ROLES,
SERVICE_INDICATOR_TYPES,
} = require('../../entities/EntityConstants');
const ... |
var fs = require('fs');
var util = require('util');
var path = require('path');
var pickFiles = require('broccoli-static-compiler');
var transpileES6 = require('broccoli-es6-module-transpiler');
var mergeTrees = require('broccoli-merge-trees');
var defeatureify = require('broccoli-defeatureify');
var concat = require(... |
'use strict';
const SudokuSolver = require('../controllers/sudoku-solver.js');
module.exports = function (app) {
let solver = new SudokuSolver();
app.route('/api/check')
.post((req, res) => {
let {puzzle, coordinate, value} = req.body;
if (!puzzle || !coordinate || !value) {
res.json({ error: '... |
function getEditor(post) {
var simplemde = new SimpleMDE({
toolbar: [
"bold", "italic", "heading-2", "|",
"quote", "unordered-list", "ordered-list", "|",
"link", "code",
{
name: "insertImg",
action: openFileMgr,
... |
// worker.js
const CACHE_NAME = 'pwa-demo';
self.addEventListener('install', function (event) {
event.waitUntil(
caches.open(CACHE_NAME).then(function (cache) {
return cache.addAll(
[
'https://examples.cse135.site/pwa-demo/products.json'
]
);
})
);
});
self.addEvent... |
module.exports = {
GraphQLTodo: require('./todo'),
GraphQLProject: require('./project')
};
|
const express = require('express');
const app = express();
const server = require('http').Server(app);
const io = require('socket.io')(server);
var rooms = {};
server.listen(80, function () {
console.log("Server started");
});
app.use(express.static("static"));
function leaveRoom (socket, room) {
let r = rooms[... |
const UrlParser = {
parseActiveUrlWithCombiner() {
const url = window.location.hash.slice(1).toLowerCase();
const splitedUrl = this._urlSplitter(url);
return this._urlCombiner(splitedUrl);
},
parseActiveUrlWithoutCombiner() {
const url = window.location.hash.slice(1).toLowerCase();
return thi... |
var Encore = require('@symfony/webpack-encore');
Encore
// directory where compiled assets will be stored
.setOutputPath('web/build/')
.copyFiles({
from: './publics/uploads/images/',
// optional target path, relative to the output dir
//to: 'products',
// if versioning is enab... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Adds a package to the package.json
*/
function addPackageToPackageJson(host, type, pkg, version) {
if (host.exists('package.json')) {
const sourceText = host.read('package.json').toString('utf-8');
const json = JSON... |
#!/usr/bin/env node
require('./src/util/init');
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const rimraf = require('rimraf');
const cli = require('command-line-args');
const clu = require('command-line-usage... |
/**
* Module dependencies.
*/
var express = require('../../');
var app = module.exports = express();
// ignore GET /favicon.ico
app.use(express.favicon());
// pass a secret to cookieParser() for signed cookies
app.use(express.cookieParser('manny is cool'));
// add req.session cookie support
app.use(express.cook... |
const knex = require('knex');
const config = require('../../knexfile');
const dbEnv = process.env.DB_ENV || 'development';
module.exports = knex(config[dbEnv]);
|
(function(){
var app = angular.module('directives', ['datas']);
app.directive("ajoutProjetForm", function(Datas) {
return {
templateUrl: 'ajout-projet-form.html',
controller: function(){
this.projet = {};
this.addProjet = function(){
Datas.addProjet(t... |
! function() { "use strict"; var t = { Android: function() { return navigator.userAgent.match(/Android/i) }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i) }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i) }, Opera: function() { return navigator.userAgent.match(/Opera ... |
'use strict';
const AWS = require('aws-sdk');
const Slack = require('slack');
/**
* Handles the http request, calls the bot lambda and responds the request with data
* @async
* @param {Object} data
* @return {Object}
*/
module.exports.run = async ( data ) =>
{
const dataObject = JSON.parse( data.body );
... |
const express = require("express");
const mongoose = require("mongoose");
const cors = require('cors');
const routes = require('./routes');
const app = express();
mongoose.connect(
"mongodb+srv://omnistack:omnistack@cluster0-qny8w.mongodb.net/week10?retryWrites=true&w=majority",
{
useNewUrlParser: true,
u... |
/**
* University of La Laguna
* Computer engineering
* Subject: Programming of interactive applications
*
* @author Óscar Moreira Estévez
* @author Adal Díaz Fariña
* @date 14-03-2021
* @brief Code for Exercism's challenge "Armstrong Numbers"
*/
'use strict';
/**
* @description Returns whether or not it is ... |
import Ember from 'ember';
import UsesSettings from '../mixins/uses-settings';
import layout from '../templates/components/md-modal';
import {
EKMixin,
keyUp
} from 'ember-keyboard';
const {
Component,
computed,
computed: {
oneWay
},
String: {
htmlSafe
},
on
} = Ember;
export default Compone... |
/*
* Copyright (c) 2022, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
vis.projectionView = function () {
let projectionView = {},
size = [],
la... |
import path from 'path';
import typescript from 'rollup-plugin-typescript2';
import nodeResolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';
import sass from 'sass';
import scss from 'rollup-plugin-scss';
import postcss from 'postcss';... |
/* eslint-disable react/display-name */
import React from 'react';
import { Link } from 'gatsby';
import AboutSection from '../components/aboutSection';
import Header from '../components/header';
import SocialNav from '../components/socialNav';
import Galaxy from '../components/galaxy/galaxy';
import styles from './... |
/*
* MinIO Cloud Storage (C) 2016, 2018 MinIO, 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 applicab... |
/**
* @license Angular v9.1.13
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/* eslint max-params: [2, 25], max-statements: [2, 36], complexity:[2, 10], max-len: [2, 125] */
define([
'vendor/lib/q',
'okta/underscore',
'okta/jquery',
'@okta/okta-auth-js/jquery',
'util/Util',
'shared/util/Util',
'helpers/mocks/Util',
'helpers/dom/PasswordResetForm',
'helpers/dom/Beacon',
'help... |
export default (editor, config = {}) => {
const c = config;
let bm = editor.BlockManager;
if (c.blocks.link) {
bm.add('link', {
label: VjLocalized.Link,
category: VjLocalized.Basic,
attributes: { class: 'fas fa-link' },
content: {
type: 'link',
components: [{
ty... |
import React from 'react';
import {useTranslation} from 'react-i18next';
import {StyleSheet, View} from 'react-native';
import {Divider, Text} from 'src/components';
import {Col, Row} from 'src/containers/Gird';
import Button from 'src/containers/Button';
import {padding} from 'src/components/config/spacing';
const Fo... |
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).immer={})}(this,(function(n){function t(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];throw Error("[Immer] minified error nr: "+n+(r... |
import * as Rx from 'rxjs';
import { bufferCount, filter } from 'rxjs/operators';
import ThreadPool from '../lib/index';
// import './decode';
import DecodeWorker from './decode.worker';
const pool = new ThreadPool({
threadCtor: DecodeWorker,
maxThreadsNumber: 4
});
// --------------------- decode tile ----------... |
'use strict';
const SUMATRA_PDF_EXE = "C:\\Program Files (x86)\\SumatraPDF\\SumatraPDF.exe";
const express = require('express')
, multer = require('multer')
, upload = multer({ dest: 'uploads/' })
, spawn = require('child_process').spawn
, EventEmitter = require('events')
, util = require('util')
;
var app = expres... |
'use strict';
const tabs = require('sdk/tabs');
const chromeTabs = require('chrome-tabs-api');
exports['test '] = function(assert, done) {
var url = 'data:text/html,' + encodeURIComponent('<title>Test</title>');
tabs.open({
url: url,
onReady: function(tab) {
assert.ok(tab, 'SDK Tab ... |
const { hooks } = require('@adonisjs/ignitor');
const InitContracts = require('../app/Services/InitContracts');
hooks.after.httpServer(() => {
InitContracts();
});
|
export * from "./Wrappers"
|
import { getCarousel, getNewAlbum, getAlbumInfo } from "./api/recommend";
import { getRankingList, getRankingInfo } from "./api/ranking";
import { getSongVKey } from "./api/song";
import { getHotKey, search } from "./api/search"
import { getSingerList, getSingerInfo } from "./api/singer"
getCarousel().then((res) => {
... |
'use strict';
const fs = require('fs');
const path = require('path');
const execa = require('execa');
const pTimeout = require('p-timeout');
const ow = require('ow');
const npmName = require('npm-name');
const chalk = require('chalk');
const pkgDir = require('pkg-dir');
const {verifyRequirementSatisfied} = require('../... |
import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import Backend from 'i18next-xhr-backend';
import { initReactI18next } from 'react-i18next';
import { ENABLED_LANGUAGES } from '../constants/env';
i18n
.use(Backend)
.use(LanguageDetector)
.use(initReactI18next)
.init... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{119:function(e,n,t){"use strict";t.r(n),t.d(n,"frontMatter",(function(){return s})),t.d(n,"metadata",(function(){return i})),t.d(n,"toc",(function(){return c})),t.d(n,"default",(function(){return p}));var r=t(3),a=t(8),o=(t(0),t(453)),s={id:"username-email-passw... |
import { LitElement, html, css } from 'lit-element';
import marked from 'marked';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
import { schemaInObjectNotation, generateExample } from '~/utils/schema-utils';
import FontStyles from '~/styles/font-styles';
import FlexStyles from '~/styles/flex-styles';
im... |
const AWS = require('aws-sdk');
const ddb = new AWS.DynamoDB.DocumentClient({ apiVersion: '2020-04-16' });
const lambda = new AWS.Lambda({ region: "us-east-2" });
exports.handler = async event => {
var response = 'Data sent.';
let connectionData;
const room = JSON.parse(event.body).room + '.host';
try... |
import SetCache from './SetCache.js'
import arrayIncludes from './arrayIncludes.js'
import arrayIncludesWith from './arrayIncludesWith.js'
import cacheHas from './cacheHas.js'
import createSet from './createSet.js'
import setToArray from './setToArray.js'
/** Used as the size to enable large array optimizations. 用来限制大... |
angular
.module("umbraco")
.component("umbFormsIntegrationsCrmHubspotFields", {
controller: HubSpotFieldsController,
controllerAs: "vm",
templateUrl: "/App_Plugins/UmbracoForms.Integrations/Crm/Hubspot/hubspot-field-mapper-template.html",
bindings: {
setting: "<"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.