code stringlengths 2 1.05M |
|---|
/*--------------------------------------------------------------------
Scripts for creating and manipulating custom menus based on standard <ul> markup
Version: 3.0, 03.31.2009
By: Maggie Costello Wachs (maggie@filamentgroup.com) and Scott Jehl (scott@filamentgroup.com)
http://www.filamentgroup.com
* reference arti... |
//
// Bot
// class for performing various twitter actions
//
var Twit = require('../lib/twitter');
var Bot = module.exports = function(config) {
this.twit = new Twit(config);
};
//
// post a tweet
//
Bot.prototype.tweet = function (status, callback) {
if(typeof status !== 'string') {
return callback(new E... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v5.0.0-alpha.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
functio... |
var web3 = require('../index');
var testMethod = require('./helpers/test.method.js');
var method = 'estimateGas';
var tests = [{
args: [{
to: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
data: '0x23455654',
gas: 11,
gasPrice: 11
}],
formattedArgs: [{
to: '0xa94f537... |
var chai = require('chai');
var expect = chai.expect;
var formatParamOutput = require('../index').utils.formatParamOutput;
describe('#formatParamOutput()', function() {
it('should correct return formatted string if all elements in array are strings', function() {
expect(formatParamOutput(['hey', 'yo', 'hello']))... |
module.exports = function(hljs) {
/* missing support for heredoc-like string (OCaml 4.0.2+) */
return {
aliases: ['ml'],
keywords: {
keyword:
'and as assert asr begin class constraint do done downto else end ' +
'exception external for fun function functor if in include ' +
'in... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.2.4
* @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 : ... |
/*
@license textAngular
Author : Austin Anderson
License : 2013 MIT
Version 1.5.6-0
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/
/*
Commonjs package manager support (eg componentjs).
*/
"use strict";// NOTE: textAngularVersion must match the Gruntfile.js 'setVersion' ta... |
module.exports = bugs
bugs.usage = 'npm bugs [<pkgname>]'
var npm = require('./npm.js')
var log = require('npmlog')
var opener = require('opener')
var fetchPackageMetadata = require('./fetch-package-metadata.js')
bugs.completion = function (opts, cb) {
// FIXME: there used to be registry completion here, but it st... |
/**
* ESL (Enterprise Standard Loader)
* Copyright 2013 Baidu Inc. All rights reserved.
*
* @file Browser端标准加载器,符合AMD规范
* @author errorrik(errorrik@gmail.com)
* Firede(firede@firede.us)
*/
var define;
var require;
(function ( global ) {
// "mod"开头的变量或函数为内部模块管理函数
// 为提高压缩率,不使用function或object包装
... |
/*!
* reveal.js
* http://revealjs.com
* MIT licensed
*
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
*/
(function( root, factory ) {
if( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define( function() {
root.Reveal = factory();
return root.Reveal;
} ... |
"use strict";
const fs = require("fs");
const path = require("path");
const webdriverCommands_1 = require("./webdriverCommands");
// Generate a random 8 character ID to avoid collisions.
function getLogId() {
return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(36).slice(0, 8);
}
/**
* Logs WebDrive... |
Popup.template.events({
'click .js-back-view'() {
Popup.back();
},
'click .js-close-pop-over'() {
Popup.close();
},
'click .js-confirm'() {
this.__afterConfirmAction.call(this);
},
// This handler intends to solve a pretty tricky bug with our popup
// transition. The transition is implemente... |
/**
* @module echarts/model/Model
*/
define(function (require) {
var zrUtil = require('zrender/core/util');
var clazzUtil = require('../util/clazz');
/**
* @alias module:echarts/model/Model
* @constructor
* @param {Object} option
* @param {module:echarts/model/Model} parentModel
... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
/*
* Copyright (C) 2009 Joel Sutherland
* Licenced under the MIT license
* http://www.newmediacampaigns.com/page/jquery-flickr-plugin
*
* Available tags for templates:
* title, link, date_taken, description, published, author, author_id, tags, image*
*/
(function($){$.fn.jflickrfeed=function(settings,callback){settings... |
/*!
* jQuery contextMenu - Plugin for simple contextMenu handling
*
* Version: 1.5.21
*
* Authors: Rodney Rehm, Addy Osmani (patches for FF)
* Web: http://medialize.github.com/jQuery-contextMenu/
*
* Licensed under
* MIT License http://www.opensource.org/licenses/mit-license
* GPL v3 http://open... |
/*
Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of cond... |
var through = require('through2');
var gutil = require('gulp-util');
var Minimize = require('minimize');
module.exports = function(opt){
function minimize (file, encoding, callback) {
if (file.isNull()) {
return callback(null, file);
}
if (file.isStream()) {
return callback(new gutil.Plugin... |
function template(locals) {
var pug_html = "", pug_mixins = {}, pug_interp;
pug_html = pug_html + "<pre><code>code sample\n</code></pre>\n<h1>Heading</h1>\n";
return pug_html;
} |
/**
* @license AngularJS v1.3.0-beta.19
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/**
* @ngdoc module
* @name ngCookies
* @description
*
* # ngCookies
*
* The `ngCookies` module provides a convenient wrapper for reading and writi... |
/*! angularjs-nvd3-directives - v0.0.5-beta - 2013-12-24
* http://cmaurer.github.io/angularjs-nvd3-directives
* Copyright (c) 2013 Christian Maurer; Licensed Apache License, v2.0 */
(function()
{
angular.module('legendDirectives', [])
.directive('simpleSvgLegend', function(){
return {
... |
// Copyright 2008 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
/**!
* AngularJS file upload/drop directive and service with progress and abort
* FileAPI Flash shim for old browsers not supporting FormData
* @author Danial <danial.farid@gmail.com>
* @version 7.0.9
*/
(function () {
/** @namespace FileAPI.noContentTimeout */
function patchXHR(fnName, newFn) {
window... |
// Backbone has a dependency on jQuery 1.7+ because it refers to the
// jQuery.fn.on and jQuery.fn.off methods. We polyfill them here, but prefer
// the native implementation if it exists.
(function ($) {
$.fn.off = $.fn.off || function( types, selector, fn ) {
var handleObj, type;
if ( types && types.prevent... |
var assert = require('assert')
var UINT32 = require('..').UINT32
describe('UINT32 constructor', function () {
describe('with no parameters', function () {
it('should properly initialize', function (done) {
var u = UINT32()
assert.equal( u._low, 0 )
assert.equal( u._high, 0 )
done()
... |
/*!
* FullCalendar v1.6.2 Google Calendar Plugin
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
(function($) {
var fc = $.fullCalendar;
var formatDate = fc.formatDate;
var parseISO8601 = fc.parseISO8601;
var addDays = fc.addDays;
var applyAll = fc.applyAll;
fc.sourceNormalizers.push... |
/**
* ComboBox.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This class creates a combobox control. Select box that you select a value from or
* type a valu... |
({
foo: 1
})
|
/*!
* Qoopido.js library v3.3.7, 2014-5-26
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,o,n,s,a){"use strict";var r=e.support;return r.addTest("/element/canvas",function... |
/*
Gherkin mode - http://www.cukes.info/
Report bugs/issues here: https://github.com/marijnh/CodeMirror/issues
*/
// Following Objs from Brackets implementation: https://github.com/tregusti/brackets-gherkin/blob/master/main.js
//var Quotes = {
// SINGLE: 1,
// DOUBLE: 2
//};
//var regex = {
// keywords: /(Feature|... |
import identity from './identity.js';
import metaMap from './_metaMap.js';
/**
* The base implementation of `setData` without support for hot loop shorting.
*
* @private
* @param {Function} func The function to associate metadata with.
* @param {*} data The metadata.
* @returns {Function} Returns `func`.
*/
var... |
/**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/*jshint unused:false */
/*global tinymce:true */
/**
* Register the plugin, specifying the list of the... |
x ^ y |
/**
* @license Highstock JS v1.3.7 (2013-10-24)
* Prototype adapter
*
* @author Michael Nelson, Torstein Hønsi.
*
* Feel free to use and modify this script.
* Highcharts license: www.highcharts.com/license.
*/
// JSLint options:
/*global Effect, Class, Event, Element, $, $$, $A */
// Adapter interface between... |
/*!
* Qoopido.js library v3.6.3, 2015-4-24
* https://github.com/dlueth/qoopido.js
* (c) 2015 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(r){window.qoopido.register("polyfill/array/indexof",r)}(function(r,o,t,i,n,e,f){"use strict";return Array.prototype.indexOf||(Array.prototype.indexOf=function(r){for(var... |
const test = require('tape')
const sinon = require('sinon')
const helpers = require('../test/helpers')
const bindFunc = helpers.bindFunc
const MockCrock = require('../test/MockCrock')
const curry = require('./curry')
const compose = curry(require('./compose'))
const isFunction = require('./isFunction')
const isObjec... |
'use strict';
var supertest = require('supertest');
var _app = require('../server/express_app');
var app = supertest(_app);
var assert = require('assert-diff');
var ws = require('ws');
var route = new (require('events').EventEmitter);
var fixtures = require('./fixtures')._payments;
var RL = require('ripple-lib');
var r... |
var HealthCheck = require('..')
, assert = require('assert-diff')
, mockdate = require('mockdate')
function makeCheck (output) {
return function check (cb) {
cb(null, output)
}
}
function errorFn (cb) {
cb(new Error('Oops'))
}
describe('health-check', function () {
it('should expected output for no ... |
/**
* @file ToDo List Item Component
* @module todo/components/list/item
* @author Bohdan Lubenets <bogdan.lubenets@dev-pro.net>
*/
import React, { PropTypes } from 'react';
import Paper from 'material-ui/Paper';
import Checkbox from 'material-ui/Checkbox';
import FloatingActionButton from 'material-ui/FloatingAct... |
const {createRobot} = require('probot')
const app = require('..')
describe('app', () => {
let robot
let github
let context = {
event: 'issues',
payload: require(`./fixtures/webhook/comment.created`)
}
const configure = async (content, ctx) => {
github.repos.getContent.mockImplementation(params =... |
/* vim: set ts=2 sw=2 expandtab : */
var Strategy = require('./strategy');
module.exports.Strategy = Strategy;
|
const requireDir = require('require-dir')
module.exports = {
templates: requireDir('./templates'),
spec: requireDir('./spec'),
dict: requireDir('./dict')
}
|
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
const easingOptions = {
// no easing, no acceleration
linear: function(t) {
return t;
},
// accelerating from zero velocity
easeInQuad: function(t) {
return t * t;
},
... |
/* eslint no-shadow:[0] */
import test from 'tape';
import MapboxDraw from '../index';
import modes from '../src/modes/index';
import styleWithSourcesFixture from './fixtures/style_with_sources.json';
test('Options test', (t) => {
t.test('no options', (t) => {
const Draw = new MapboxDraw();
const defaultOpti... |
describe('iD.operationStraighten', function () {
var fakeContext;
var graph;
// Set up the fake context
fakeContext = {};
fakeContext.graph = function () { return graph; };
fakeContext.hasHiddenConnections = function () { return false; };
describe('#available', function () {
before... |
// jshint -W001
"use strict";
// Identifiers provided by the ECMAScript standard.
exports.reservedVars = {
arguments : false,
NaN : false
};
exports.ecmaIdentifiers = {
3: {
Array : false,
Boolean : false,
Date : false,
decodeURI ... |
/**
* Main application routes
*/
'use strict';
var errors = require('./components/errors');
module.exports = function(app) {
// Insert routes below
app.use('/api/pocket', require('./api/pocket'));
app.use('/api/nytimes', require('./api/nytimes'));
app.use('/api/things', require('./api/thing'));
app.use(... |
version https://git-lfs.github.com/spec/v1
oid sha256:809d56e225b8ec8d37afe3a65d743ca02cd4ff4e768dfb6195a18e6cdf2626ee
size 603459
|
/**
* angular2-google-maps - Angular 2 components for Google Maps
* @version v0.14.0
* @link https://github.com/SebastianM/angular2-google-maps#readme
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? t... |
export default {
name: 'q-stepper-navigation',
functional: true,
render (h, ctx) {
const
data = ctx.data,
cls = data.staticClass,
slots = ctx.slots()
let child = [h('div', {staticClass: 'col'}), slots.default]
data.staticClass = `q-stepper-nav order-last row no-wrap items-center${cl... |
(function(FM) {
Ractive.components.color = Ractive.extend({
template: "<input type='color' value='{{hex}}'>",
computed: {
hex: {
get: function() {
return FM.argb_to_hex(this.get('argb'));
},
set: function(hex) {
this.set('argb', FM.hex_to_argb(hex));
... |
var webshot = require('webshot');
var screenConfig = {
thumb: {
siteType: 'url',
streamType: 'png',
defaultWhiteBackground: true,
screenSize: {
width: 640,
height: 480
},
shotSize: {
width: 640,
height: 480
}
},
mobile: {
siteType: 'url',
streamType: 'p... |
function repeat(pattern, count) {
"use strict";
if (count < 1) return '';
var result = '';
while (count > 0) {
if (count & 1) result += pattern;
count >>= 1;
pattern += pattern;
}
return result;
}
// Convert a byte array to a hex string
var bytesToHex = function (bytes)... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "twitter_current"); |
var log = require('./logger')
var assert = require('assert-plus')
var xmlns1 = require('./xml').ns1;
var escapeZOQL = require('./xml').escapeZOQL;
var common = require('./common');
var makeError = require('./common').makeError;
/**
* options:
* batchSize - (default: 0 or 2000) ... |
/// <reference path="jquery-3.4.1.js" />
/// <reference path="modernizr-2.8.3.js" />
/// <reference path="jquery-ui-1.12.1.js" />
/// <reference path="jquery.validate.js" />
/// <reference path="jquery.validate.unobtrusive.js" />
/// <reference path="knockout-3.4.0.debug.js" />
|
import React from "react";
import classNames from "classnames";
import { Field } from "redux-form";
import DateSelector from "./DateSelector";
// produces an array [start..end-1]
const range = (start, end) =>
Array.from({ length: end - start }, (v, k) => k + start);
// produces an array [start..end-1] padded with z... |
module.exports = {"OpenSans":{"bold":"OpenSans-Bold.ttf","bolditalics":"OpenSans-BoldItalic.ttf","extrabold":"OpenSans-ExtraBold.ttf","extrabolditalics":"OpenSans-ExtraBoldItalic.ttf","italics":"OpenSans-Italic.ttf","light":"OpenSans-Light.ttf","lightitalics":"OpenSans-LightItalic.ttf","normal":"OpenSans-Regular.ttf","... |
import comp from './Lists.vue'
export default comp
|
'use strict';
/* Directives */
angular.module('uiucEmailForm.directives', []).
directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};
}])
.directive('formDefault',function(){
return {
restrict: "E",
transclude: true,
... |
// @flow
import {googleKey} from './config';
export function getLocations(place) {
// eslint-disable-next-line
return fetch(`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${place}&key=${googleKey}`)
.then((response) => response.json())
.then((responseJson) => {
if (responseJson... |
System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
map: {
"angular": "github:angular/bower-angular@1.4.... |
import DS from 'ember-data';
var StructureDefinitionContactComponent = DS.Model.extend({
name: DS.attr('string'),
telecom: DS.hasMany('contact-point', {embedded: true})
});
export default StructureDefinitionContactComponent;
|
/**
* Comment
*/
var marked = require("marked"),
uuid = require('node-uuid');
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false,
highlight: function (code) {
return require('hi... |
'use strict';
var ensureObject = require('es5-ext/object/valid-object')
, capitalize = require('es5-ext/string/#/capitalize')
, deferred = require('deferred')
, resolve = require('path').resolve
, _ = require('mano').i18n.bind('Statistics time per p... |
lychee.define('app.net.server.REQUEST').tags({
platform: 'node'
}).requires([
'app.data.Config',
'app.data.Filter',
'app.data.Filesystem',
'app.net.server.PUBLIC'
]).supports(function(lychee, global) {
try {
require('http');
require('https');
require('url');
return true;
} catch (err) {
}
return... |
define(['backbone',
'../views/provinceView'
], function(Backbone,
ProvinceView) {
provinceModel = Backbone.Model.extend({
initialize: function() {
this.view = new ProvinceView({
model: this,
gameModel: this.gameModel
});
this.set('influence', Math.random());
this.est... |
/**
* The MIT License (MIT)
* Copyright (c) 2016, Jeff Jenkins.
*/
const AppDispatcher = require('../dispatcher/AppDispatcher');
const Constants = require('../constants/Constants');
const ArticleApi = require('../api/ArticlesApi');
const Actions = {
/**
* @param {number} start
* @param {number} skip
... |
var $M = require("@effectful/debugger"),
$x = $M.context,
$ret = $M.ret,
$unhandled = $M.unhandled,
$brk = $M.brk,
$m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", {
__webpack_require__: typeof __webpack_require__ !== "undefined" && __webpack_require__
}, n... |
import { PropTypes } from 'react';
// For a more detailed list of PropTypes
// see http://ricostacruz.com/cheatsheets/react.html#property-validation
const propTypes = {
allFeatures: PropTypes.arrayOf(PropTypes.object),
currentFeature: PropTypes.object,
selectFeature: PropTypes.func.isRequired,
ignoreFeatu... |
'use strict'
const co = require('co')
const cli = require('heroku-cli-util')
const pg = require('@heroku-cli/plugin-pg-v5')
function * run (context, heroku) {
const db = yield pg.fetcher(heroku).database(context.app, context.args.database)
const query = `
SELECT c.relname AS name,
pg_size_pretty(pg_total_relat... |
define(['Charts/BarChart'],
function(BarChart) {
'use strict';
var _buildBarChartObservable = function() {
return {
singleAxisValue: 'Month',
updateSingleAxis: function(event) {
var selectedValue = event.sender.value();
this.barChart.update(selectedValue, t... |
const fa_file_picture_o = 'M1596 380q28 28 48 76t20 88v1152q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h896q40 0 88 20t76 48zm-444-244v376h376q-10-29-22-41l-313-313q-12-12-41-22zm384 1528v-1024h-416q-40 0-68-28t-28-68v-416h-768v1536h1280zm-128-448v320h-1024v-192l192-192 128 128 384-384zm-832-192q-... |
//= require callback
//= require jquery
//= require ../utils/xml
if (!com.jivatechnology.Badger.Channel) { com.jivatechnology.Badger.Channel = {}; }
(function(){
var XML = com.jivatechnology.Badger.Utils.XML;
this.Atom = (function(){
return function(opts){
var that = this;
var options = opts ... |
Ext.define('MyApp.view.Viewport', {
extend : 'Ext.container.Viewport',
renderTo : Ext.getBody(),
requires : [
// Utils
'MyApp.Session', 'MyApp.util.Format', 'MyApp.util.Validator', 'MyApp.util.Restful', 'MyApp.locale.Converter',
'Ext.util.Cookies',
// 'MyApp.util.JsonWriter',
// events
'MyApp.event.... |
import ant from "antd/lib/index.css";
import fa from "font-awesome-webpack";
import b from './base.scss';
|
function SimpleView() {
if (SimpleView.prototype.instance) {
console.log("An instance of SimpleView already exists.");
return SimpleView.prototype.instance;
}
SimpleView.prototype.instance = this;
var cvs
, ctx
, peek = defaultPeek
, requestType = { peek : true, spectrum : fals... |
/**
* Lists all the projects on the system.
* @param req
* @param res
*/
exports.list = function(req, res) {
res.render('project/index', { title: 'Express' });
}
/**
* Create a new project
*/
exports.add = function(req, res) {}
/**
* Delete an existing project
*/
exports.delete = function(req, res) {} |
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { Provider } from 'react-redux';
import { RouterContext, match } from 'react-router';
import * as eventService from './api/service/event';
import configureStore from '../universal/store';
import routes from '../universal/routes';
import D... |
'use strict'
export default () => {
if (ON_TEST) {
require('./test/auctions.component.test')
}
const auctions = {
bindings: {
props: '='
},
controller: 'AuctionsController as Auctions',
template: require('./views/auctions-main.html')
}
angular.module('app.auctions')
.component... |
import Ember from 'ember';
export default function backup(isOffline, backupFn, args) {
return function(error) {
if(isOffline(error)) {
return backupFn.apply(null, args);
} else {
return Ember.RSVP.reject(error);
}
};
}
|
(function() {
var winston = require('winston');
var logger = null;
var init = function(config) {
var logToConsole = !!config.logToConsole, logLevel = config.logLevel || 'error',
filePath = typeof config.filePath !== 'undefined' ? config.filePath : '/tmp/nm-logger.log',
maxs... |
(function(angular){
'use strict';
angular.module('auth', ['ngRoute', 'ngCookies'])
.service('AuthUserService', require('./user-service'))
.controller('AuthController', require('./controller'))
.directive('authAccountBox', require('./account-box/directive'))
.config(['$routeProvider', function ($rou... |
import * as React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/bottom-navigation';
const requireDemo = require.context(
'docs/src/pages/components/bottom-navigation',
false... |
(function ( $ ) {
$.fn.skillBars = function( options ) {
var settings = $.extend({
from: 0, // number start
to: false, // number end
speed: 1000, // how long it should take to count between the target numbers
interv... |
let currentPosition, currentOffset, currentSpeed, tripletMeasure;
function reset () {
currentPosition = 1;
currentSpeed = 1;
tripletMeasure = false;
}
function size () {
let increment = 1 * currentSpeed;
if (tripletMeasure) {
increment = (increment / 3) * 2;
}
return increment;
}
function step () ... |
var gulp = require('gulp');
var browserSync = require('browser-sync');
var mainBowerFiles = require('main-bower-files');
var filter = require('gulp-filter');
var flatten = require('gulp-flatten');
var jade = require('gulp-jade');
var htmlPrettify = require('gulp-html-prettify');
var inject = require('gulp-inject');
var... |
const Language = require('./Language');
module.exports = Language;
|
/* eslint no-console:0 */
import { namespace } from './utils/namespace';
import CopyToClipboard from './globals/CopyToClipboard';
import Pagination from './globals/Pagination';
import PingChart from './websites/PingChart';
import Polyglot from 'node-polyglot';
class Dispatcher {
constructor() {
this.pageName = ... |
require("./24.js");
require("./49.js");
require("./98.js");
require("./195.js");
module.exports = 196; |
const {bar, baz} = (function () {
DEFINE_MACRO(FOO, () => "bar");
function bar() {
return FOO();
}
const baz = (function () {
DEFINE_MACRO(FOO, () => "baz");
return function baz() {
return FOO();
};
})();
return {bar, baz};
})();
export default function demo() {
return [bar(), baz(... |
import { loadModels } from 'ember-cli-uncharted-describe-models/utils/load-models';
const Definitions = {};
const loadDefinitions = function(definitions) {
for (const key in definitions) {
if (!definitions.hasOwnProperty(key)) {
continue;
}
Definitions[key] = definitions[key];
}
};
const loadM... |
'use strict';
angular
.module('freelook.info')
.controller('input.menu.ctrl',
function (nav) {
var vm = this;
vm.items = [
{
name: 'index.input.menu.filter',
icon: 'filter',
go: nav.goHome,
action: 'filter'
},
{
name: 'index.input.menu.user',
... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
/* eslint-disable jsx-a11y/aria-role */
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import ButtonBase from '../ButtonBas... |
/* jshint node: true */
'use strict';
module.exports = {
name: 'supertree-auth',
included: function(app) {
this._super.included(app);
app.import('vendor/ember-simple-auth/register-version.js');
},
};
|
/*
* Audit hook for intercepting both requests and responses and looking for a custom audit object.
* Note that
* The request/response MUST contain an audit object or whatever key you specify in clearResponseAuditOnClient config as part of your JSON:
... YOUR JSON REQUEST/RESPONSE OBJECT BEGIN...
audit: {... |
/* eslint-disable react/prefer-es6-class */
import React from 'react';
import { ReactMeteorData } from 'meteor/react-meteor-data';
import PowerSearch from '../../../api/search/search_source';
import SearchSort from '../../../api/search/search_sort';
import SearchLogger from '../../../utility/search_logger';
import get... |
'use strict';
// Configuring the Articles module
angular.module('dashboards').run(['Menus', 'gettextCatalog',
function(Menus, gettextCatalog) {
// Translate menu item
var title = gettextCatalog.getString('Dashboards');
// Set top bar menu items
Menus.addMenuItem('topbar', title, 'dashboards', '/dashboards'... |
import { CREATE_ADMINISTOR_INFOMATION } from 'constants/ActionTypes';
let localStorage = window.localStorage;
let localAdminInfo = JSON.parse(localStorage.getItem('adminInfo'));
const initialState = {
adminInfo: {
name: '',
avator: '',
email: '',
gender: '',
campous: '',
address: '',
phon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.