code stringlengths 2 1.05M |
|---|
/*!
* # Semantic UI 1.11.2 - Dimmer
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
"use strict";
$.fn.dimmer = function(parameters) {
var
$allModu... |
/* global hexo */
'use strict';
hexo.extend.filter.register('after_generate', () => {
const theme = hexo.theme.config;
if (!theme.minify) return;
const lists = hexo.route.list();
const velocity = lists.filter(list => list.includes('lib/velocity'));
const fontawesome = lists.filter(list => list.includes('li... |
/**
* Gumby Parallax
*/
!function() {
'use strict';
// define module class and init only if we're on touch devices
if(Gumby.gumbyTouch) {
return;
}
function Parallax($el) {
Gumby.debug('Initializing Parallax', $el);
this.$el = $el;
this.$holder = {};
this.ratio = this.offset = 0;
var scope = this... |
steal('can/util', 'can/observe', function(can, Observe) {
var unique = function( items ) {
var collect = [];
// check unique property, if it isn't there, add to collect
can.each(items, function( item ) {
if (!item["__u Nique"] ) {
collect.push(item);
item["__u Nique"] = 1;
}
});
// remove uniq... |
/*!
* CanJS - 2.0.3
* http://canjs.us/
* Copyright (c) 2013 Bitovi
* Tue, 26 Nov 2013 18:21:22 GMT
* Licensed MIT
* Includes: CanJS default build
* Download from: http://canjs.us/
*/
define(["jquery", "can/util/library", "can/control"], function($, can) {
//used to determine if a control instance is one of cont... |
!function(root, factory) {
"function" == typeof define && define.amd ? // AMD. Register as an anonymous module unless amdModuleId is set
define([], function() {
return root.svg4everybody = factory();
}) : "object" == typeof module && module.exports ? // Node. Does not work with strict CommonJS, but
... |
/* eslint-disable */
// adapted based on rackt/history (MIT)
// Node 0.10+
var execSync = require('child_process').execSync;
var stat = require('fs').stat;
// Node 0.10 check
if (!execSync) {
execSync = require('sync-exec');
}
function exec(command) {
execSync(command, {
stdio: [0, 1, 2]
});
}
stat('dist-m... |
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('align-plugin', function (Y, NAME) {
/**
* Provides advanced positioning support for Node via a Plugin
* for centering and alignment.
* @module ali... |
/*********************************************************************
* NAN - Native Abstractions for Node.js
*
* Copyright (c) 2015 NAN contributors
*
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
********************************************************************/
var addon = require('... |
(function ($) {
var materialChipsDefaults = {
data: [],
placeholder: '',
secondaryPlaceholder: '',
autocompleteOptions: {},
};
$(document).ready(function() {
// Handle removal of static chips.
$(document).on('click', '.chip .close', function(e){
var $chips = $(this).closest('.chips'... |
/* globals LivechatIntegration */
Template.livechatIntegrations.helpers({
webhookUrl() {
let setting = LivechatIntegration.findOne('Livechat_webhookUrl');
return setting && setting.value;
},
secretToken() {
let setting = LivechatIntegration.findOne('Livechat_secret_token');
return setting && setting.value;
... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'en-ca', {
toolbar: 'Remove Format'
} );
|
var Util = {};
Util.Arguments = require('./util/arguments');
Util.Exception = require('./util/exception');
Util.RegExp = require('./util/reg_exp');
Util.String = require('./util/string');
Util.ConsoleColor = require('./util/colors');
module.exports = Util;
|
/**
* filesize
*
* @copyright 2017 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 3.5.9
*/
(function (global) {
const b = /^(b|B)$/,
symbol = {
iec: {
bits: ["b", "Kib", "Mib", "Gib", "Tib", "Pib", "Eib", "Zib", "Yib"],
bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB"... |
(function(angular) {
'use strict';
angular.module('app', []).directive('setFocusIf', function() {
return function link($scope, $element, $attr) {
$scope.$watch($attr.setFocusIf, function(value) {
if ( value ) { $element[0].focus(); }
});
};
});
})(window.angular); |
Type.registerNamespace('dnn.util');dnn.extend(dnn.util, { tableReorderMove: function (ctl, bUp, sKey) {
var oTR = dnn.dom.getParentByTagName(ctl, 'tr'); if (oTR != null) {
var oCtr = oTR.parentNode; if (oCtr.childNodes[oCtr.childNodes.length - 1].nodeName == "#text") { dnn.dom.removeChild(oCtr.childNodes[... |
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.ShadowMapPlugin = function () {
var _gl,
_renderer,
_depthMaterial, _depthMaterialMorph, _depthMaterialSkin, _depthMaterialMorphSkin,
_frustum = new THREE.Frustum(),
_projScreenMatrix = new THREE.Matrix4(),
_min = new THREE.Vector3(),
_max = new T... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ug",{euro:"ياۋرو بەلگىسى",lsquo:"يالاڭ پەش سول",rsquo:"يالاڭ پەش ئوڭ",ldquo:"قوش پەش سول",rdquo:"قوش پەش ئوڭ",ndash:"سىزىقچە",mdas... |
import { compile } from '../../index';
QUnit.module('ember-template-compiler: transform-input-on');
QUnit.test('Using `action` without `on` provides a deprecation', function() {
expect(1);
expectDeprecation(() => {
compile('{{input action="foo"}}', {
moduleName: 'foo/bar/baz'
});
}, `Using '{{inp... |
version https://git-lfs.github.com/spec/v1
oid sha256:aaac047574907860fbb772401132a0ace58a07850b1ccc158781380348a10d00
size 7696
|
import fs from 'fs';
import rrs from 'recursive-readdir-sync';
const outArray = [];
rrs('./').forEach((file) => {
if (file !== 'index-generator.js' && file !== 'index.js') {
let fileLines = fs.readFileSync(file, 'utf8').split('\n');
let index = 0;
let found = false;
while (found === false && index ... |
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-jquerymanifest');
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-banner');
... |
// Copyright 2007 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... |
/*
* DarkTooltip v0.3.0
* Simple customizable tooltip with confirm option and 3d effects
* (c)2014 Rubén Torres - rubentdlh@gmail.com
* Released under the MIT license
*/
(function($) {
function DarkTooltip(element, options){
this.bearer = element;
this.options = options;
this.hideEvent;
this.mouseOverM... |
$(document).ready(function() {
// hide the save and edit button on startup
$('#save-page').hide();
$('#edit-page').hide();
// hide the log message container
$("#log").hide();
// load navigation
$("#navigation").load("./sitemap.html #sitemap li");
// and set active navigation item
setTimeout("setActiveNavIte... |
var path = require('path'),
url = require('url'),
request,
fs = require('fs');
var less = {
version: [1, 6, 0],
Parser: require('./parser').Parser,
tree: require('./tree'),
render: function (input, options, callback) {
options = options || {};
if (typeof(options) === 'funct... |
/**
* Package: svedit.select
*
* Licensed under the MIT License
*
* Copyright(c) 2010 Alexis Deveria
* Copyright(c) 2010 Jeff Schiller
*/
// Dependencies:
// 1) jQuery
// 2) browser.js
// 3) math.js
// 4) svgutils.js
var svgedit = svgedit || {};
(function() {
if (!svgedit.select) {
svgedit.select = {};
}
v... |
/*
AngularJS v1.3.0-beta.7
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function(){'use strict';function d(a){return function(){var c=arguments[0],b,c="["+(a?a+":":"")+c+"] http://errors.angularjs.org/1.3.0-beta.7/"+(a?a+"/":"")+c;for(b=1;b<arguments.length;b++)c=c+(1==b?"?":"&")+"p"+(b-1)+"="+en... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("language","gl",{button:"Estabelezer o idioma",remove:"Retirar o idioma"}); |
exports.BattleAbilities = {
"frisk": {
inherit: true,
desc: "When this Pokemon enters the field, it identifies the opponent's held item; in double battles, the held item of an unrevealed, randomly selected opponent is identified.",
shortDesc: "On switch-in, this Pokemon identifies a random foe's held item.",
o... |
module.exports={title:"TikTok",slug:"tiktok",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>TikTok icon</title><path d="M12.53.02C13.84 0 15.14.01 16.44 0c.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The Canvas class handles everything related to creating the `canvas` DOM tag that Phaser will use,
* including styl... |
/**
* Bullet module
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Bullet } from "../../charts/elements/Bullet";
impo... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v6.4.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : ... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v6.4.1
* @link http://www.ag-grid.com/
* @license MIT
*/
var Events = (function () {
function Events() {
}
/** A new set of columns has been entered, everything has potentially changed.... |
// Fine Uploader 5.11.6 - (c) 2013-present Widen Enterprises, Inc. MIT licensed. http://fineuploader.com
(function(global) {
var qq = function(element) {
"use strict";
return {
hide: function() {
element.style.display = "none";
return this;
},
... |
'use strict';
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) {
module.exports = 'ngParallax';
}
angular.module('ngParallax',[]);
angular.module('ngParallax').directive('ngParallax', [
'$timeout',
function ($window, $timeout) {
return {
restrict: 'AE'... |
// 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... |
var validator = require('../validator')
, format = require('util').format;
function test(options) {
var args = options.args || [];
args.unshift(null);
if (options.valid) {
options.valid.forEach(function (valid) {
args[0] = valid;
if (!validator[options.validator].apply(val... |
/**
* Disallows space after keyword.
*
* Types: `Array` or `Boolean`
*
* Values: Array of quoted keywords or `true` to disallow spaces after all possible keywords.
*
* #### Example
*
* ```js
* "disallowSpaceAfterKeywords": [
* "if",
* "else",
* "for",
* "while",
* "do",
* "switch... |
class C<+T, -U> {}
function f<+T, -U>() {}
type T<+T, -U> = {};
|
/**
* @fileoverview Tests for api.
* @author Gyandeep Singh
* @copyright 2015 Gyandeep Singh. All rights reserved.
* See LICENSE file in root directory for full license.
*/
"use strict";
var assert = require("chai").assert,
api = require("../../lib/api");
describe("api", function() {
it("should have Ru... |
/*
* jquery.inputmask.phone.extensions.js
* http://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2014 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.1.13
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.i... |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React === 'undefined') {
var React = require('react'... |
'use strict';
module.exports = require('./lib/weak')(require('./plain'));
|
(function () {
"use strict";
var root = this,
$ = root.jQuery;
if(typeof root.GOVUK === 'undefined') { root.GOVUK = {}; }
// Stick elements to top of screen when you scroll past, documentation is in the README.md
var sticky = {
_hasScrolled: false,
_scrollTimeout: false,
init: function(){
... |
"use strict";
var path = require('path');
var fs = require('fs');
var optimist = require('optimist');
/**
* The command line interface for interacting with the Protractor runner.
* It takes care of parsing command line options.
*
* Values from command line options override values from the config.
*/
var args = [];... |
"use strict";
var t = function t() {
return 5 + 5;
};
|
'use strict';
var enhanceError = require('./enhanceError');
/**
* Create an Error with the specified message, config, error code, request and response.
*
* @param {string} message The error message.
* @param {Object} config The config.
* @param {string} [code] The error code (for example, 'ECONNABORTED').
* @pa... |
"use strict";
function nextOdd(n) {
return isEven(n) ? n + 1 : n + 2;
}
var isOdd = (function (isEven) {
return function (n) {
return !isEven(n);
};
})(isEven);
|
jQuery.webshims.register("form-number-date-ui",function(c,f,n,k,v,g){var o=f.triggerInlineForm,r=Modernizr.inputtypes,s=function(){var c={"padding-box":"innerWidth","border-box":"outerWidth","content-box":"width"},a=Modernizr.prefixed&&Modernizr.prefixed("boxSizing");return function(b,h){var f,i,g;i="width";a&&(i=c[b.c... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbar', 'gl', {
toolbarCollapse: 'Contraer a barra de ferramentas',
toolbarExpand: 'Expandir a barra de ferramentas',
toolbarGroups: {
documen... |
/**
* Controllers
*
* By default, Sails inspects your controllers, models, and configuration and binds
* certain routes automatically. These dynamically generated routes are called blueprints.
*
* These settings are for the global configuration of controllers & blueprint routes.
* You may also override these set... |
/* global expect, describe, it */
describe('Object.setPrototypeOf(o, p)', function () {
'use strict';
it('changes prototype to regular objects', function () {
var obj = { a: 123 };
expect(obj).to.be.an.instanceOf(Object);
// sham requires assignment to work cross browser
obj = Object.setPrototypeO... |
/*globals describe, it, before, beforeEach, afterEach */
/*jshint expr:true*/
var should = require('should'),
sinon = require('sinon'),
Promise = require('bluebird'),
rewire = require('rewire'),
// Thing we're testing
pagination = rewire('../../server/models/base/pagination');
// To stop jshint compla... |
/* ============================================================
* bootstrap-dropdown.js v2.0.0
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
* ============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "Lice... |
/*
* File: AutoFill.js
* Version: 1.1.2
* CVS: $Id$
* Description: AutoFill for DataTables
* Author: Allan Jardine (www.sprymedia.co.uk)
* Created: Mon 6 Sep 2010 16:54:41 BST
* Modified: $Date$ by $Author$
* Language: Javascript
* License: GPL v2 or BSD 3 point
* Projec... |
/*
AngularJS v1.2.0
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(W,O,s){'use strict';function L(b){return function(){var a=arguments[0],c,a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/undefined/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)a=a+(1==c?"?":"&")+"p"+(c-1)+"="+encodeU... |
// Generated by CoffeeScript 1.4.0
(function() {
var Animation, Animations, Bezier, Dynamic, DynamicElement, Dynamics, EaseInOut, Gravity, GravityWithForce, Linear, Loop, Matrix, SelfSpring, Spring, Vector, animationFrame, animationStart, browserSupportPrefixFor, browserSupportTransform, browserSupportWithPrefix, cac... |
//! moment.js locale configuration
//! locale : italian (it)
//! author : Lorenzo : https://github.com/aliem
//! author: Mattia Larentis: https://github.com/nostalgiaz
import moment from '../moment';
export default moment.defineLocale('it', {
months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_set... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/SpacingModLetters.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* 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 Licens... |
import zeroFill from '../utils/zero-fill';
import { createDuration } from '../duration/create';
import { addSubtract } from '../moment/add-subtract';
import { isMoment } from '../moment/constructor';
import { addFormatToken } from '../format/format';
import { addRegexToken, matchOffset } from '../parse/regex';
import {... |
const { assert } = require('chai');
const sinon = require('sinon');
const Task = require('../src/task');
describe('Task', () => {
beforeEach(() => {
this.clock = sinon.useFakeTimers(new Date(2018, 0, 1, 0, 0, 0, 0));
});
afterEach(() => {
this.clock.restore();
});
it('should emit ... |
var
extend = require('../../utility/extend'),
Message_Reply = require('../../message/reply'),
Enum_Replies = require('../../enum/replies');
class Message_Reply_YouAreOperator extends Message_Reply {
getValuesForParameters() {
return { };
}
setValuesFromParameters() {
// Deliberately a noop.
}
}
... |
import minimist from 'minimist';
import server from './server';
const argv = minimist(process.argv, {
default: {
'server-port': 8888,
},
});
server.start({ port: argv['server-port'] });
|
// jshint mocha:true
'use strict';
var assert = require('assert');
var moduleInfo = require('../package-info');
describe('module info', function() {
it('should find the main info and test modules', function(done) {
moduleInfo(function(err, result) {
if (err) {
throw err;
}
assert(result);
assert... |
import React from "react";
export default function context(name, type = React.PropTypes.any.isRequired) {
return function contextDecorator(Component) {
class ContextDecorator extends React.Component {
render() {
return <Component {...this.context} {...this.props} />;
}
}
ContextDecor... |
// Karma configuration
// Generated on Sun Feb 07 2016 00:16:27 GMT+0100 (CET)
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... |
'use strict'
const h = require('virtual-dom/h')
const styles = require('./index.css.js')
const renderBar = require('./bar')
const renderMap = require('./map')
const render = (state, actions) =>
h('div', {
className: styles.wrapper + ''
}, [
renderBar(state, actions),
renderMap(state, actions)
])
module.exp... |
import { TOGGLE_MODAL } from './types';
import { resetCreateBoundaryError } from '.';
export const toggleCreatePreschoolModal = () => {
return (dispatch) => {
dispatch({
type: TOGGLE_MODAL,
modal: 'createPreschool',
});
dispatch(resetCreateBoundaryError());
};
};
|
Ember.ENV.TESTING = true;
var get = Ember.get;
var set = Ember.set;
var adapter;
var store;
var ajaxUrl;
var ajaxType;
var ajaxHash;
var person;
var Person, Article, Comment;
var expectUrl = function(url, desc) {
equal(ajaxUrl, url, "the URL is " + desc);
};
var expectType = function(type) {
equal(type, ajaxTy... |
#!/usr/bin/env babel-node
// @flow
import spawnAsync from 'crater-util/lib/spawnAsync'
import isDirectory from 'crater-util/lib/isDirectory'
import path from 'path'
import requireEnv from '../requireEnv'
async function installMeteorDeps(): Promise<any> {
const BULID_DIR = requireEnv('BUILD_DIR')
const programsSer... |
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: {
app: './src/app.js'
},
output: {
filename: '[name].js',
path: path.resolv... |
#!/usr/bin/env node
var stee = require('simple-log-tee');
var Command = require('../');
var commands = [
new Command('ls', ['-lRA'], '..')/*,
new Command('grep', ['sh', '-r', '/usr/bin'], './'),
new Command('npm', ['update'], './')*/
];
doTests(commands);
function doTests(commands) {
if (commands.length === 0) ... |
'use strict';
var chromedriver = require('chromedriver');
var selenium = require('selenium-webdriver');
/**
* Creates a Selenium WebDriver using Chrome as the browser
* @returns {ThenableWebDriver} selenium web driver
*/
module.exports = function() {
var driver = new selenium.Builder().withCapabilities({
... |
var TypeHelper = require('./type-helper');
function contains(set, item) {
if (!set) {
console.warn(`
Got invalid argument to ArrayHelper.contains:
${set}
`);
return false;
}
return set.indexOf(item) !== -1;
}
function intersects(a, b) {
var index = a.length;
while (index--) {
if (contains(b, a[i... |
require("node-test-helper");
describe(TEST_NAME, function() {
describe("constructor", function() {
it("should return an error object", function() {
var err = new StdError();
expect(err).to.be.instanceof(StdError);
expect(err).to.be.instanceof(Error);
expect(err.code).to.be.null;
ex... |
var React=require("react");
var E=React.createElement;
var styles={input:{fontSize:"100%"},deletebutton:{color:"red"}};
var ActionButton=React.createClass({
getHandler:function() {
var handler=this.props.editing?this.props.onUpdateMarkup:this.props.onCreateMarkup;
this.props.setHotkey&&this.props.setHotkey(handler... |
module.exports = { prefix: 'far', iconName: 'underline', icon: [448, 512, [], "f0cd", "M0 500v-24c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H12c-6.627 0-12-5.373-12-12zM278.066 12v24c0 6.627 5.373 12 12 12h40.44v210.742c0 74.424-39.957 112.144-106.502 112.144-66.896 0-106.501-35.297-106... |
import AuthService from './AuthService'
const auth = new AuthService(process.env.REACT_APP_AUTH_CLIENT_ID, process.env.REACT_APP_AUTH_DOMAIN_ADDRESS)
export default auth |
(function(){
angular
.module('app.chat.authentication')
.factory('authenticationService',authenticationService);
/* @ngInject */
function authenticationService(Restangular,$log){
var getData = function(action, id, action2, id2, flag, isPercentage, page, limit, sort_order, sort_by) {
var quer... |
function fix_broken_images2() {
// document.getElementById("message").style.display = 'none';
document.getElementById("test1").style.display = 'none';
return 'ok';
}
|
import React from 'react'
import PropTypes from 'prop-types'
import { ReactComponent as Heart } from 'assets/heart.svg'
import { ReactComponent as HeartOutline } from 'assets/heart-outline.svg'
import style from './Action.module.scss'
const Action = ({ className, icon, value, onChange }) => {
const component = { c... |
/*
Terminal Kit
Copyright (c) 2009 - 2021 Cédric Ronvel
The MIT License (MIT)
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
... |
/**
* @author: @AngularClass
*/
/*
* When testing with webpack and ES6, we have to do some extra
* things to get testing to work right. Because we are gonna write tests
* in ES6 too, we have to compile those as well. That's handled in
* karma.conf.js with the karma-webpack plugin. This is the entry
* file for w... |
// @flow
import React from "react";
import {render} from "react-dom";
import {Provider} from "react-redux";
import {Router, hashHistory} from "react-router";
import {syncHistoryWithStore} from "react-router-redux";
import routes from "./routes";
import configureStore from "./store/configureStore";
import "./app.global.... |
"use strict";
module.exports = {
app: {
title: 'ng SKorea',
description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js',
keywords: 'MongoDB, Express, AngularJS, Node.js'
},
port: process.env.PORT || 4545,
templateEngine: 'swig',
sessionSecret: 'OKKYAnuglar',
sessionCollection: 'sessi... |
/**
* Created by lcc3536 on 14-6-6.
*/
cc.ex = cc.ex || {};
(function () {
var list = [];
cc.ex.addStartFunc = function (func) {
list.push(func);
};
cc.ex.onStart = function () {
var len = list.length;
for (var i = 0; i < len; ++i) {
list[i]();
}
}... |
import React from 'react';
import ArboSimplified from './arbo-simplifield';
import { shallow } from 'enzyme';
import { COMPONENT_TYPE } from 'constants/pogues-constants';
const { QUESTION, SEQUENCE, SUBSEQUENCE, QUESTIONNAIRE } = COMPONENT_TYPE;
const mockEvent = {
preventDefault: () => {},
};
describe('<ArboSimp... |
function Ship(){
this.x=0;
this.y=0;
this.width=25;
this.hieght=20;
this.rotation=0;
this.showFlame=false;
}
Ship.prototype.draw=function(context){
context.save();
context.translate(this.x,this.y);
context.rotate(this.rotation);
context.lineWidth=1;
context.strokeStyle="#fff"... |
export default {
count(state) {
return state.count
},
isOdd(state) {
return state.count%2===0 ? '偶数' : '奇数'
}
} |
Package.describe({
name: "lifefilm:lf-films",
version: '0.0.4',
summary: 'video template for meteorjs telescope (nova react version)',
git: 'https://github.com/fortunto2/lf-films.git',
documentation: 'README.md'
});
Npm.depends({
// 'formsy-material-ui': '0.4.3',
// flexboxgrid: '6.3.0',
});
Package.o... |
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const devMode = process.env.NODE_ENV === 'developme... |
/*globals define, test, equal, ok, $*/
define(function (require) {
'use strict';
var can = require('can'),
menuView = require('views/menuView'),
domTestLoader = require('tests/helpers/domTestLoader');
domTestLoader.setupTestModule('menuView');
test('views/menuView', function () {
... |
/*
* grunt-refupdate
* https://github.com/chrisedson/grunt-refupdate
*
* Copyright (c) 2014 Chris Edson
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
... |
'use strict';
import {
FmkStore
} from 'components/FmkStore';
import {
Fmk
} from 'components/Fmk';
var moment = require('moment');
export class NewsStore extends FmkStore {
getInitialState() {
this.mm = moment();
return {
picture2: 'images/loading.gif'
};
}
$$ = (startingState, action) =>... |
import React, { useCallback, useMemo } from 'react';
import PropTypes from 'prop-types';
import AddressInput from '../AddressInput';
import { addressInputItemBuilder } from '../AddressInputItem';
import usePlacesAutocomplete from '../providers/usePlacesAutocomplete';
import useAtlasClient from '../providers/useAtlasCli... |
'use strict';
var path = require('path');
var fs = require('fs');
var extend = require('extend');
var RSVP = require('rsvp');
var findByName = require('./find-by-name');
function config(options) {
var relativePath = options.configPath || path.join('config', 'ember-try.js');
var configFile = path.join(options.proj... |
import test from 'ava';
import delay from 'delay';
import inRange from 'in-range';
import timeSpan from './index.js';
test('main', async t => {
const end = timeSpan();
await delay(100);
t.true(inRange(end(), {start: 80, end: 120}));
t.true(inRange(end.rounded(), {start: 80, end: 120}));
t.true(inRange(end.seconds... |
'use strict';
/* jshint -W098 */
angular.module('mean.checkout').controller('CheckoutController', ['$scope', '$http', '$location', 'Global', 'Checkout', 'Quartos',
function($scope, $http, $location, Global, Checkout, Quartos) {
$scope.global = Global;
$scope.package = {
name: 'checkout'
};
$sc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.