code stringlengths 2 1.05M |
|---|
!function($) {
'use strict';
function getUniques(arr) {
var n = {};
var uniques = [];
for (var i = 0; i < arr.length; i++) {
var val = arr[i];
if (!n[val]) {
n[val] = true;
uniques.push(val);
}
}
return uniques;
}
function empties(str) {
return (str.length > 0);
}
$.hasUnique = fun... |
{
"listAddLink": "Dodaj",
"listRemoveLink": "usuń"
} |
(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{322:function(t,s,e){"use strict";e.r(s);var a=e(0),r=Object(a.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h2",{attrs:{id:"examples"}},[s("a",{staticClass:"header-... |
(function(){Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});Function.prototype.bind||(Function.prototype.bind=function(b){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var a=Array.prototype.s... |
var gulp = require('gulp');
var useref = require('gulp-useref');
var uglify = require('gulp-uglify');
var cssnano = require('gulp-cssnano');
var gulpIf = require('gulp-if');
var imagemin = require('gulp-imagemin');
var cache = require('gulp-cache');
var del = require('del');
var nodemon = require('gulp-nodemon');
var r... |
const trapezoidArea = (a, b, h) => ((a + b) / 2) * h;
export default trapezoidArea;
|
import Ember from 'ember';
import ResetScrollMixin from '../mixins/reset-scroll';
export default Ember.Route.extend(ResetScrollMixin, {
ajax: Ember.inject.service(),
toast: Ember.inject.service(),
errorHandler: Ember.inject.service(),
user: Ember.inject.service(),
model(params) {
return this.get('ajax')... |
/**
* Whether a reference is defined or not.
* @method isDefined
* @param {*} value Reference to check
* @return {boolean} Whether a reference is defined or not.
*/
export const isDefined = (value) => {
if (typeof value === 'undefined') {
return false
}
return true
}
/**
* Whether a reference is undefi... |
(function () {
"use strict";
require('../bufferjs/indexOf');
var assert = require('assert');
// Test the static version, Buffer needle
function test1() {
var haystack = new Buffer(10)
, needle = new Buffer(1);
needle[0] = haystack[0] = 255;
assert.equal(Buffer.indexOf(haystack, needle), ... |
// Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
// This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
// The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
// The complete set of contributors may be found at http://p... |
define([
'pex/materials/Material',
'pex/gl/Context',
'pex/gl/Program',
'pex/color/Color',
'pex/utils/ObjectUtils',
'lib/text!pex/materials/SolidColor.glsl'
], function (Material, Context, Program, Color, ObjectUtils, SolidColorGLSL) {
function SolidColor(uniforms) {
this.gl = Context.currentContext.gl... |
var db = require('./db')
// create a comments sublevel
var comments = db.sublevel('comments')
var Comment = module.exports = function(key, attrs) {
this.key = key
if (attrs) {
this.author = attrs.author
this.date = attrs.date
this.body = attrs.body
}
}
Comment.prototype.save = function(callback) {... |
var $routeProviderReference;
var app = angular.module('cdg', [require('angular-route'),'angularUtils.directives.dirPagination', 'ngCookies']);
var basel = require('basel-cli');
var routes = basel.routes();
app.config(['$routeProvider', function($routeProvider) {
$routeProviderReference = $routeProvider;
}]);
... |
import SettingsListView from '../components/settingslist.js'
import { connect } from 'react-redux'
import {
showToggleAcceptingModal,
hideToggleAcceptingModal,
updateSettings,
pushSettings
} from '../actions/actions.js'
import { bindActionCreators } from 'redux'
import { Map } from 'immutable'
const mapDispatc... |
(function($) {
$.fn.extend({
dustParticles: function(particlesNumber, opacity) {
return this.each(function() {
//Generate a 'canvas' with size of element selected from the DOM .
var width = $(this).width();
var height = $(this).height();
... |
import getBrowserDimensions from './utils/getBrowserDimensions.js';
import Logger from './Logger';
export default class Screen {
constructor(parent, width = 600, height = 600) {
this.parent = parent;
this.log = new Logger();
// const { browserWidth, browserHeight } = getBrowserDimensions(window, document... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"
}), 'Markunread'); |
nucleomediaApi.controller('moedaCtrl', ['$scope', 'nucleomediaRequest', function ($scope, nucleomediaRequest) {
var rootScope = $scope.$root;
rootScope.moedas = [];
rootScope.carregarMoeda = function (idMoeda) {
url = "http://localhost:8080/getMoeda?" + idMoeda + "&cachebuster=" + RandomNumber();
... |
"use strict";
(function (cornerstoneWADOImageLoader) {
function decodeJPEGLossless(dataSet, frame) {
var pixelDataElement = dataSet.elements.x7fe00010;
var bitsAllocated = dataSet.uint16('x00280100');
var pixelRepresentation = dataSet.uint16('x00280103');
var frameData = dicomParser.readEncapsulatedP... |
'use strict';
/**
* remove-hidden-paths module
* @module remove-hidden-paths
* @see module:index
*/
const lang = require('zero-lang');
const isHidden = require('./is-hidden');
module.exports = paths => lang.filter(paths, pathname => !isHidden(pathname));
|
const sleep = require('es6-sleep').promise;
var test = require('ava');
var OpenT2T = require('opent2t').OpenT2T;
var config = require('./testConfig');
console.log('Device Under Test - Name: ' + config.Device.name + ' Props: ' + JSON.stringify(config.Device.props));
var translatorPath = require('path').join(__d... |
var modal = (<Modal type="popup" title="爱过什么女爵的滋味">
<p>为你封了国境<br/>为你赦了罪<br/>为你撤了历史记载<br/>为你涂了装扮<br/>为你喝了醉<br/>为你建了城池围墙<br/>一颗热的心穿着冰冷外衣<br/>一张白的脸漆上多少褪色的情节<br/>在我的空虚身体里面<br/>爱上哪个肤浅的王位<br/>在你的空虚宝座里面<br/>爱过什麽女爵的滋味<br/>为你封了国境</p><p>为你赦了罪<br/>为你撤了历史记载<br/>一颗热的心<br/>穿着冰冷外衣<br/>一张白的脸<br/>漆上多少褪色的情节<br/>在我的空虚身体里面<br/>爱上哪个肤浅的王位... |
import jQuery from 'jquery';
export const DelayedStart = (function($) {
return function() {
var waitDeferred = new $.Deferred();
var promises = [];
var performed = false;
return {
promise: function() {
return waitDeferred.promise();
},
wait: function(callback) {
va... |
"use strict";
module.exports = require('./lib/modclean');
|
var common = require("./common")
, ibmdb = require("../")
, db = new ibmdb.Database()
, assert = require("assert");
db.query("select * from " + common.tableName).then(null, function (err) {
assert.deepEqual(err, { message: 'Connection not open.' });
assert.equal(db.connected, false);
});
db.open(common.conn... |
// Globals
var $window = $(window);
var $document = $(document);
var location = window.location;
var navigator = window.navigator;
var ArrayBuffer = window.ArrayBuffer;
var Uint8Array = window.Uint8Array;
var DataView = window.DataView;
var btoa = window.btoa;
// Constants
var NAMESPACE = 'croppe... |
module.exports = {
"git": require('./git'),
};
|
(function () {
'use strict';
PN.namespace('PN.AngularDashboard.List');
PN.AngularDashboard.List.PagedListControllerScope = PN.AngularDashboard.List.ListControllerScope.extend({
_$timeout: null,
pageSize: 30,
pageNumber: 1,
pageCount: 1,
maxPageLength: 11,
... |
'use strict';
const NODE_ENV = process.env.NODE_ENV || 'development';
const webpack = require('webpack');
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.e... |
/**
* Main JS file for Scriptor behaviours
*/
/*globals jQuery, document */
(function ($) {
"use strict";
$(document).ready(function(){
// Scroll to content
$('.cover .scroll-down').on('click', function(e) {
$('html, body').animate({'scrollTop': $('.cover').height()}, 1800);
e.prevent... |
import Comp from './index.vue'
import { mount } from 'vue-test-utils'
import { expect } from 'chai'
describe('Datetime', () => {
it('basic', () => {
const wrapper = mount(Comp)
expect(wrapper.name()).to.equal('datetime')
})
})
|
/**
* Copyright (C) 2015 tieba.baidu.com
* target.js
*
* changelog
* 2015-11-06[16:45:43]:revised
*
* @author yinyong02@baidu.com
* @version 0.1.0
* @since 0.1.0
*/
module.exports = 'module.yml'; |
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
}
module.exports = listCacheClear;
|
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Create an array of points for each corner of a Rectangle
* If an array is specified, each point object will be added to the end of the a... |
'use strict';
module.exports = (sequelize, DataTypes) => {
const revision = sequelize.define('revision', {
// Schema
id: {
type: DataTypes.UUID,
primaryKey: true,
defaultValue: DataTypes.UUIDV4
},
postId: {
type: DataTypes.UUID,
allowNull: false,
references: {
... |
(function($) {
jQuery.fn.intoViewport = function(options) {
options = $.extend({
// Configuration
// Add whatever options animate schould get by default
duration: 200,
easing: "swing"... |
// Karma configuration
// Generated on Fri Feb 26 2016 16:59:16 GMT+0900 (JST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... |
{
if ("development" !== "production" && dir.modifiers) {
warn("v-on without argument does not support modifiers.");
}
el.wrapListeners = function(code) {
return "_g(" + code + "," + dir.value + ")";
};
}
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Slider = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _DomHandler = _interopRequireDefault(require("../utils/DomHandler"));
var _classnames =... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule RelayIRTransforms
* @flow
* @format
*/
'use strict';
const RelayApplyFragmentArgumentTransform = require('../trans... |
var searchData=
[
['tanhhtable_5fq15',['tanhHTable_q15',['../arm__nntables_8c.html#a4d093f7b0dc798d4898ff4fd125b21a6',1,'arm_nntables.c']]],
['tanhltable_5fq15',['tanhLTable_q15',['../arm__nntables_8c.html#a7cb5ad2fff7e241d09024332488a706e',1,'arm_nntables.c']]],
['tanhtable_5fq15',['tanhTable_q15',['../arm__... |
/**
* @fileoverview Firebase namespace and Firebase App API.
* Version: 3.3.0
*
* Copyright 2016 Google Inc. 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
*
*... |
var gulp = require('gulp');
var config = require('../config');
gulp.task('watch', function() {
// watch for changes to html
gulp.watch([
config.baseDir() + '/**/*.html'
], ['html']);
// watch for changes to sass
gulp.watch([
'common/assets/css/*',
config.baseDir() + '/css/*'
], ['sass']);
}); |
TeamPoker.CurrentVoterName = '';
TeamPoker.CurrentVoterId = 0;
TeamPoker.CurrentVotingStory = 0;
TeamPoker.MessageType = {
LoginCallback: 'LoginCallback',
NewParticipant: 'NewParticipant',
LeaveParticipant: 'LeaveParticipant',
SetCurrentStory: "SetCurrentStory",
UpdateStoryInfo: "UpdateStoryInfo",
... |
describe('Logger', ()=> {
let loggerInstance, toaster, toasterMock;
beforeEach(()=> {
angular.mock.module(function ($provide) {
$provide.service('toaster', function () {
this.pop = jasmine.createSpy('pop');
});
});
angular.mock.module('espackApp... |
'use strict';
jest.mock('@strapi/strapi/lib/utils/ee', () => {
const eeModule = () => false;
Object.assign(eeModule, {
features: {
isEnabled() {
return false;
},
getEnabled() {
return [];
},
},
});
return eeModule;
});
const adminController = require('../admin... |
export { default } from 'ember-pikaday/components/pikaday-input';
|
var UU5 = UU5 || {};
UU5.DocKit = UU5.DocKit || {};
UU5.DocKit.data = UU5.DocKit.data || {};
UU5.DocKit.data.uu5_bricks_link = {
tagName: "UU5.Bricks.Link",
sourceFile: "../../data/source/uu5-bricks-link.js",
cssFile: "../../data/source/uu5-bricks-link.less",
lessFile: "../../data/source/uu5-bricks-link-func.l... |
import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const {Label} = WeUI;
describe('<Label></Label>', ()=> {
[undefined, null, 'custom_class'].map(clazz => {
describe(`<Label className=${clazz}></Label>`, ()=> {
const wrapp... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-... |
/* eslint-disable flowtype/require-valid-file-annotation */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import Dialog, {
DialogTitle,
DialogContent,
DialogContentText,
DialogActions,
} from 'material-ui/Dialog';
import Typography from '... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetValue = require('../object/GetValue');
var Shuffle = require('./Shuffle');
var BuildChunk = function (a, b, qty)
{
var out = [];
... |
"use strict";
// START A WEB SERVER INSTANCE FOR EACH CPU CORE. START WITH COMMAND: forever startWebServers.js
var cluster = require('cluster');
var os = require('os');
var redisService = require('./server/service/redisService');
var log = require('./server/service/logFunction.js');
var service = 'WEB SERVERS STARTU... |
/*
* Copyright 2016-2017 Hewlett Packard Enterprise Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'backbone',
'find/app/util/merge-collection'
], function(Backbone, MergeCollection) {
'use strict';... |
import React from 'react'
export default () => (
<div>
<h1>Features</h1>
</div>
)
|
var searchData=
[
['handler',['Handler',['../classHandler.html',1,'']]],
['host',['Host',['../classHost.html',1,'']]]
];
|
'use strict';
angular.module('rastros')
.directive('loader', function (loader) {
return {
restrict : 'E',
templateUrl: 'app/templates/directives/loader-directive-template.html',
scope : {},
link : function (scope) {
scope.activities = loader.activities;
... |
import _ from 'lodash';
import 'ui/paginated_table';
import popularityHtml from 'plugins/kibana/management/sections/indices/_field_popularity.html';
import controlsHtml from 'plugins/kibana/management/sections/indices/_field_controls.html';
import dateScripts from 'plugins/kibana/management/sections/indices/_date_scrip... |
'use strict';
module.exports = require('tough-cookie');
|
/**
* Autocomplete User @ Mentions in Chat
*/
/* global Dubtrack */
var settings = require("../lib/settings.js");
var modal = require('../utils/modal.js');
var options = require('../utils/options.js');
var myModule = {};
myModule.id = "custom_mentions";
myModule.moduleName = "Custom Mentions";
myModule.description... |
module.exports = [
'socketFactory',
function (socketFactory) {
var socket = socketFactory({
url: '/socket'
});
socket._handlers = {};
socket.addHandler = function (name, handler) {
socket._handlers[name] = handler;
};
socket.doDeploy = function (project, environment) {
so... |
'use strict';
var Grid = require('nd-grid');
var datetime = require('nd-datetime');
var RbacRoleModel = require('../../../mod/model/rbac/role');
module.exports = function(util) {
if (!util.auth.hasAuth('=8')) {
return util.redirect('error/403');
}
var instance = new Grid({
parentNode: '#main',
pro... |
'use strict';
var _ = require('lodash');
var Inherits = require('util').inherits;
var URI = require('urijs');
var sway = require('sway');
var Promise = require('bluebird');
var swagger2openapi = require('swagger2openapi');
var BaseFormat = require('../base_format.js');
var Util = require('../util.js');
var Swagger2 ... |
"use strict";
/**
* Copyright 2013 Facebook, 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... |
//
// Grunttask runners
//
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'tests/**/*.js'],
options: {
ignores: ['tests/specs/libs/*.js'],
// options here to override JSHint defaults
globals: {
... |
/*
Copyright (c) 2017 Jirtdan Team and other collaborators
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... |
const Product = require('../models/product');
exports.getAddProduct = (req, res, next) => {
res.render('admin/edit-product', {
pageTitle: 'Add Product',
path: '/admin/add-product',
editing: false
});
};
exports.postAddProduct = (req, res, next) => {
const title = req.body.title;
const imageUrl = r... |
module.exports={title:'Fedora',slug:'fedora',svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Fedora icon</title><path d="M12 0C5.375 0 .005 5.368 0 11.992v9.286A2.728 2.728 0 0 0 2.728 24h9.277C18.63 23.997 24 18.626 24 12c0-6.627-5.373-12-12-12zm4.595 5.577c-.379 0-.516-.073-1.072-.0... |
var Promise = require('bluebird');
var pm2 = require('pm2');
pm2.connect = Promise.promisify(pm2.connect);
pm2.disconnect = Promise.promisify(pm2.disconnect);
pm2.start = Promise.promisify(pm2.start);
pm2.kill = Promise.promisify(pm2.killDaemon);
var config = require(__dirname+'/../../config/en... |
describe('Unit : youtubePlugin content services', function () {
describe('Unit: Buildfire Provider', function () {
var Buildfire;
beforeEach(module('youtubePluginContent'));
beforeEach(inject(function (_Buildfire_) {
Buildfire = _Buildfire_;
}));
it('Buildfire should exist and be an object... |
var Filemanager = new Class({
Implements: [Options, Events],
Request: null,
RequestQueue: null,
Directory: null,
Current: null,
ID: null,
options: {
/*
* onComplete: function( // Fired when the 'Select' button is clicked
* path, // URLencoded absolute URL path to s... |
/*!
* UI development toolkit for HTML5 (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'],function(q){"use strict";var D={};D.render=function(r,c){var a=r;a.write("<div");a.writeControlDat... |
/**
* @author: Dennis Hernández
* @webSite: http://djhvscf.github.io/Blog
* @version: v1.0.0
*/
!function ($) {
'use strict';
var isSearch = false;
var rowAttr = function (row, index) {
return {
id: 'customId_' + index
};
};
$.extend($.fn.bootstrapTable.defaults,... |
define({
"_widgetLabel": "Kaldvaatur",
"locateButtonLabel": "Valige peamisel kaardil punkt kaldpiltide kuvamiseks.",
"clearButtonLabel": "Kustuta kogu graafika",
"zoomButtonLabel": "Suumi kaldpildi ulatuses",
"syncButtonLabel": "Sünkroniseeri nadiirkaart",
"rasterListLabel": "Kuva saadaolevad kaldpildid",
... |
var should = require('should'),
getPaginatedUrl = require('../../../../server/data/meta/paginated_url'),
configUtils = require('../../../utils/configUtils');
describe('getPaginatedUrl', function () {
var data, getTestUrls;
beforeEach(function () {
data = {};
});
getTestUrls = function... |
version https://git-lfs.github.com/spec/v1
oid sha256:1f792858194799d7baee9c92b71369620f20b27976c9db4d5edb0e1ea118891b
size 18585
|
a >= b |
var util = require('util');
function UnexpectedError(inner) {
this.message = "Unexpected Error";
this.inner = inner;
Error.call(this, this.message);
Error.captureStackTrace(this, this.constructor);
}
util.inherits(UnexpectedError, Error);
UnexpectedError.wrap = function (err) {
return (err instanceof Unex... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = function () {
// Init module configuration options
var applicationModuleName = 'agileTek';
var applicationModuleVendorDependencies = [
'ngResource',
'ngCookies',
'ngAni... |
$(function() {
var gifPath = undefined;
var gifData = undefined;
var currentFrame = 0;
var framesSeen = 0;
var save = [
HTM.SpSnapshots.ACT_COL,
HTM.SpSnapshots.POT_POOLS,
HTM.SpSnapshots.INH_MASKS,
HTM.SpSnapshots.CON_SYN
];
var history = {
input: [... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
"use strict";
var childProcess = require("child_process");
var os = require("os");
module.exports = function opener(args, options, callback) {
var platform = process.platform;
// Attempt to detect Windows Subystem for Linux (WSL). WSL itself as Linux (which works in most cases), but in
// this specific c... |
'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _CSSCore = require('fbjs/lib/CSSCore');
var _CSSCore2 = _interopRequireDefault(_CSSCore);
function _... |
import reducer from '../../../src/renderer/reducers/auth';
describe('reducer/auth', () => {
const initialState = {
mail: ''
};
it('should return the initial state', () => {
const expectedResult = initialState;
expect(reducer(undefined, {})).toEqual(expectedResult);
});
it('should handle LOGIN'... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
errorHandler = require('../errors.server.controller'),
mongoose = require('mongoose'),
passport = require('passport'),
User = mongoose.model('User');
var jwt = require('jwt-simple');
var secret = 'keepitquiet';
/**
* Signup
... |
/**
* 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 a... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const _ = require("underscore")
const sinon = require("sinon")
const benv = require("benv")
const rewire = require("rewire"... |
class Foo {
static test() {
return babelHelpers.classPrivateFieldLooseBase(Foo, _bar)[_bar];
}
test() {
return babelHelpers.classPrivateFieldLooseBase(Foo, _bar)[_bar];
}
}
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
Object.defineProperty(Foo, _bar, {
writable: true,
value: "foo"
}... |
/*
* Copyright (c) 2017. MIT-license for Jari Van Melckebeke
* Note that there was a lot of educational work in this project,
* this project was (or is) used for an assignment from Realdolmen in Belgium.
* Please just don't abuse my work
*/
/*
* DateJS Culture String File
* Country Code: de-LU
* Name: German (... |
var url_util = require('url');
var common = require("./url_common.js");
exports._constructUrl = function (url, query, params) {
var url_parts = url_util.parse(url);
return common.buildUrl(
url_parts.protocol + "//" + url_parts.host + url_parts.pathname,
url_parts.search,
query,
params
);
};
expo... |
var baseInvoke = require('./_baseInvoke'),
rest = require('./rest');
/**
* Invokes the method at `path` of `object`.
*
* @static
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the method to invoke.
* @param {...*} [args] Th... |
/*global angular */
'use strict';
var angular = require('angular');
var angularMocks = require('angular-mocks');
// var angular = require('angular');
var localisationService = require('../../../src/app/services/localisationService');
describe('Unit: LocalisationService', function() {
var service;
beforeEach(f... |
export function getNewVersion() {
return require('../../package.json').version;
}
|
var Player = function (game, x, y) {
Phaser.Sprite.call(this, game, x, y, 'testsprite');
game.add.existing(this);
}
Player.prototype = Object.create(Phaser.Sprite.prototype);
Player.prototype.constructor = Player;
/**
* Automatically called by World.update
*/
Player.prototype.update = function() {
};
modul... |
import {get} from 'ember-metal/property_get';
import {set} from 'ember-metal/property_set';
import EnumerableUtils from 'ember-metal/enumerable_utils';
import {computed} from 'ember-metal/computed';
import run from 'ember-metal/run_loop';
import {typeOf} from 'ember-metal/utils';
import {observer} from 'ember-metal/mix... |
module.exports = {
description: 'handles call of aliased external function (#957)',
warnings() {},
context: {
require(id) {
if (id === 'foo') {
return () => 42;
}
}
}
};
|
/**
* @license AngularJS v1.5.8
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
(function (window, angular) {
'use strict';
/**
* @ngdoc module
* @name ngAria
* @description
*
* The `ngAria` module provides support for common
* [<abbr title="Accessible Ric... |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease.displayName = 'EditorFormatInden... |
/* globals module require */
module.exports = require("./data-loader"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.