code stringlengths 2 1.05M |
|---|
//Part of the Spelling Corrector app
//Licensed under the MIT license, see COPYING.txt for details
"use strict";
/** @namespace sc
*
* Contains all the functions and properties that the spelling corrector uses.
*
* Note that this depends on the accompanying HTML page, and will not work well without it.
*
* Fo... |
/**
*
* Web Starter Kit
* Copyright 2015 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*... |
// @flow
import React from 'react'
import styles from './styles/CommentPlaceholder.css'
export default function CommentPlaceholder() {
return <div className={styles.placeholder} />
}
|
(function() {
App.SessionsEditView = Ember.View.extend({
templateName: 'sessions/edit',
resourceBinding: 'controller.resource',
submit: function(event) {
this.get('resource').save();
Tower.router.transitionTo('sessions.index');
return false;
}
});
}).call(this);
|
import describe from 'tape-bdd';
import login from 'src/domain/services/login'; // eslint-disable-line import/no-extraneous-dependencies
describe('Login', (it) => {
it('sends back a welcome message and instructions message', (assert) => {
// Given
const lead = {
platform: 'facebook',
... |
// blur up
!function(){
var images = document.querySelectorAll("img[data-placeholder]");
var i = images.length;
var obj = {};
function bob(el, i){
if(el.naturalHeight){
clearInterval(obj[i]);
el.parentNode.style.height = el.naturalHeight + "px";
... |
__CLASS__('Page1Screen', Screen,
{
OnLoad: function()
{
alert("Page1Screen OnLoad");
this.Click(this.clickButton, '#button');
},
clickButton: function(sender)
{
alert("Page1 Button click = " + $(sender).text());
this.PushScreen('#page2', Page2Screen, nul... |
#!/usr/bin/env node
const minimist = require('minimist')
const configManager = require('./lib/configManager.js')
const podManager = require('./lib/podManager.js')
function run () {
configManager.loadFromArgs(minimist(process.argv.slice(2)))
podManager.start()
}
if (require.main === module) {
run()
}
|
/*
(c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
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, modi... |
import { click, visit } from '@ember/test-helpers';
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
module('Acceptance | application', function(hooks) {
setupApplicationTest(hooks);
test('double render failing test', async function(assert) {
await visit('/double-rende... |
'use strict';
module.exports = new (require('events')).EventEmitter();
|
/*
* angular-purge - v0.0.1 - 2015-10-14
* https://github.com/VanMess/angular-purge
* Copyright (c) 2014 Van (http://vanmess.github.io/)
*/
!(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['angular'], factory);
} else {
// Global Variab... |
/**
* @file mip-change-page 组件
* @author
*/
define(function (require) {
'use strict';
var customElement = require('customElement').create();
/**
* 第一次进入可视区回调,只会执行一次
*/
customElement.prototype.firstInviewCallback = function () {
// 获取元素
var myThis = this.element;
/... |
'use strict';
/**
* @ngdoc overview
* @name angularSearchApp
* @description
* # angularSearchApp
*
* Main module of the application.
*/
(function() {
angular
.module('angularSearchApp', ["search-directives"]);
})();
|
/*
PhantomJS "main"-script
*/
var getSource = require('./getSource.js');
var system = require('system');
var fs = require('fs');
var basePath = './';
var prefix = 'output-';
function output(data) {
var timestamp = +new Date();
var path = [basePath, '/', prefix, timestamp, '.json'].join('');
var toStd... |
define([
'lib/pluginManager'
], (pluginManager) => {
describe('Check out the KBaseServiceManager module exists', () => {
it('module loads', () => {
expect(pluginManager).toBeTruthy();
});
});
// describe('Instantiate with good and bad values', function () {
// it('G... |
'use strict';
const test = require('tape').test
const fs = require('fs')
const tls = require('tls')
const persistents = require('../')
const provider = require('./util/get-provider')('TLSWRAP')
const PORT = 3000
const fixturesDir = __dirname + '/fixtures';
function resWithServer(results) {
for (let i = 0; i < resul... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
const WebKit = require('../');
const expect = require('expect.js');
const fs = require('fs');
const Path = require('path');
const rimraf = require('rimraf');
// this test doesn't really work
describe("init method", () => {
before((done) => {
rimraf(Path.join(__dirname, '..', 'cache/test?'), done);
});
it("should... |
const sj = require("../");
const vm = require("vm");
const net = require("net");
const server = net.createServer(
{ allowHalfOpen: true },
(stream) => {
const output = new sj.DataStream();
output.JSONStringify().pipe(stream);
const input = stream.pipe(new sj.StringStream())
... |
Numbers.test = {};
Numbers.test.toRoman = function(assert, json) {
var test;
var message = function(param, expected) {
return 'Converting ' + param + ' into ' + expected;
};
for (var i = 1; i <= json.numbers.length; i++) {
assert.strictEqual(Numbers.toRoman(i), json.numbers[i-1], message(i, json.n... |
const throttle = function (func, wait, options = {
heading: true, // 是否需要头部,false表示不需要
trailing: true, // 是否需要最后一次执行,false表示不需要
}) {
let timeout;
let context;
let args;
let pre = 0;
let next = function () {
pre = options.heading === false ? 0 : Date.now();
func.apply(context... |
const express = require('express');
const graphqlHTTP = require('express-graphql');
const Scrapper = require('../index');
const schema = require('../graph/schema');
const converter = require('../graph/gqlConverter');
const mockedData = require('../sampleData/example.json') || {};
const scrapper = new Scrapper();
cla... |
/**
* Place your JS-code here.
*/
$(document).ready(function(){
'use strict';
// Function to update shopping cart
var updateCart = function(data) {
$('#content').html(data.content);
$('#numitems').html(data.numitems);
$('#sum').html(data.sum);
$('#status').html('Shopping cart refreshed.');
... |
'use strict';
/**
* @ngdoc overview
* @name dresdenjsApp
* @description
* # dresdenjsApp
*
* center maps on resize created by ui-gmap-google-map directive.
*/
angular
.module('dresdenjsApp')
.directive('uiGmapGoogleMap', function (uiGmapGoogleMapApi) {
return {
require: '^uiGmapGoogl... |
function initConf(){/*初始化页面组件配置参数*/
pageName="";
gridToolbar = [btnAdd,btnEdit,btnDel,btnRefresh,btnSearch];
dgConf={
url:'data1.json',
title:label.dg_title,
columns:[[
{field:'itemid',width:80,editor:'text',title:'aa',halign:'center'},
{field:'productid',width:160,editor:'text',title:'aa',halign... |
var Contact = DS.Model.extend({
name: DS.attr('string'),
twitter: DS.attr('string'),
notes: DS.attr('string')
});
export default Contact;
|
'use strict';
var Recorder = require('../Recorder');
var self = {
activate: function (game) {
game.recorder = new Recorder();
game.eventEmitter.on(game.PRIZES_SAVED, self.saveRecord);
},
deactivate: function (game) {
game.eventEmitter.removeListener(game.PRIZES_SAVED, self.sav... |
describe('CrossBrowserTesting', function() {
require('./crossbrowsertesting/tunnel-deps')
require('./crossbrowsertesting/manager')
require('./crossbrowsertesting/tunnel')
})
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isFolders(preset) {
return preset.toLowerCase().includes('folders');
}
exports.isFolders = isFolders;
function getFunc(preset) {
switch (preset) {
case 'hideFolders':
return (iconsJson) => Object.keys(icons... |
var current_version = '1.1.1';
var new_version = '2.0.0';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-replace');
grunt.initConfig({
replace: {
task1: {
options: {
patterns: [
{
match: current_version,
replacement: new_version
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const main_1 = require("./main");
/**
* represents a Player that the api can interact with
*/
class Player {
/**
* creates the player according to the given string
* @param uuidOrName the name or uuid of the player: interpreted... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('em-phone-input', 'Integration | Component | em-input', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any... |
google.load("visualization", "1", {packages:["corechart"], 'language': 'en'});
(function($) {
$(document).ready(function() {
var loading = $('#loading');
$.getJSON("/api/v1/users", function(result) {
var dropdown = $("#user_id");
$.each(result, function(key, value) {
... |
var tx = require('../index.js');
//tx.init('test');
tx.end('test');
|
/**
* Created by csharon on 6/18/14.
*/
angular.module('mc.views.ComicList', [
'mc.components.ListGroup',
'xd.services.toastr',
'mc.components.ComicFilter',
'mc.services.ComicListModel'
])
.controller('comicListCtrl', function ($scope, comicListModel) {
$scope.comics = [];
$scope.comicsL... |
var app = angular.module('myApp', []),
apiKey = 'MDExODQ2OTg4MDEzNzQ5OTM4Nzg5MzFiZA001',
nprUrl = 'http://api.npr.org/query?id=61&fields=relatedLink,title,byline,text,audio,image,pullQuote,all&output=JSON';
app.factory('audio', function($document) {
var audio = $document[0].createElement('audio');
return audio;
});
a... |
import { createSelector } from 'reselect';
import { COUNTRY_COMPARE_COLORS } from 'data/constants';
const COUNTRIES_TO_SELECT = 3;
const getCountries = state => state.countriesData || null;
const getLocations = state => state.locations || null;
export const getSelectedCountries = createSelector(
[getCountries, get... |
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, compose } from 'redux';
import { Provider, connect } from 'react-redux';
import DevTools from './DevTools';
import reducers from './reducers/FormReducer';
import Form from './components/Form';
const finalCreateStore = compose(
DevToo... |
import '../../api/documents/documents.methods'
import '../../api/documents/server/documents.publications'
|
import './Main.html';
import './Guestbook';
import './Home';
Meteor.subscribe("userAvatar");
Meteor.subscribe("images");
|
import React, {PropTypes} from 'react';
import { Link } from 'react-router';
import ForumArray from 'containers/ForumArray';
import TermItem from 'containers/TermItem';
import ContentHolder from 'Organisms/ContentHolder';
class ChapterItem extends React.Component {
static propTypes = {
chapterItem: PropTypes.sha... |
// Polyfill for DOM matches() function for IE11 and Edge
Element.prototype.matches = Element.prototype.matches
|| Element.prototype.msMatchesSelector;
(function () {
const databasesList = document.querySelector('.list');
databasesList.addEventListener('click', function (e) {
if (!e.target || !e.ta... |
{
var cloned = new VNode(
vnode.tag,
vnode.data,
vnode.children,
vnode.text,
vnode.elm,
vnode.context,
vnode.componentOptions,
vnode.asyncFactory
);
cloned.ns = vnode.ns;
cloned.isStatic = vnode.isStatic;
cloned.key = vnode.key;
cloned.isComment = vnode.isComment;
cloned.is... |
import Header from './components/Header/index.js';
import Main from './components/Main/index.js';
import Footer from './components/Footer/index.js';
// 匹配路由时一定要注意先后顺序,他们会是同辈元素
export default [{
'path': '/',
'components': Header + Main + Footer
}, {
'path': '/Main',
'components': Main
}, {
'path': '/Footer',
... |
import FormValidationProvider from './form-validation.provider';
angular.module('symfony-form', [])
.provider('FormValidation', FormValidationProvider); |
if ('serviceWorker' in navigator) {
/*
Defer service worker registration
https://developers.google.com/web/fundamentals/instant-and-offline/service-worker/registration
*/
window.addEventListener('load', function () {
navigator
.serviceWorker
.register('/service-worker.js')
.th... |
/** @constructor */
ScalaJS.c.scala_collection_MapLike$DefaultKeySet = (function() {
ScalaJS.c.scala_collection_AbstractSet.call(this);
this.$$outer$f = null
});
ScalaJS.c.scala_collection_MapLike$DefaultKeySet.prototype = new ScalaJS.inheritable.scala_collection_AbstractSet();
ScalaJS.c.scala_collection_MapLike$De... |
import {MAKE_BARK} from '../actions/dog-actions';
import Immutable from 'immutable';
const initialState = Immutable.Map({
hasBarked: false,
});
const dogReducer = (state = initialState, action) => {
switch (action.type) {
case MAKE_BARK:
return state.set('hasBarked', action.payload);
... |
//= include ../../../bower_components/respond/dest/respond.src.js |
// Chart option
var options = {
legendTemplate : "<% for (var i=0; i<datasets.length; i++){%><li><span style=\"color:<%=datasets[i].strokeColor%>\">■</span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%>"
};
// GC count
var gc_chart_ctx = document.getElementById('gc_chart').getContext('2d');
var gc_... |
var Flume = require('../')
var OffsetLog = require('flumelog-offset')
require('./memlog')(
Flume(
OffsetLog(
'/tmp/test_flumedb-offset' + Date.now() + '/log',
1024,
require('flumecodec/json')
)
)
)
require('./memlog')(
Flume(
OffsetLog(
'/tmp/test_flumedb-offset' + Date.now() ... |
exports.up = (knex, Promise) => {
return knex.schema.createTableIfNotExists('users', table => {
table.increments('id').primary()
table.string('ghid')
table.string('username')
table.binary('hash')
table.boolean('is_approved')
})
}
exports.down = (knex, Promise) => {
return knex.schema.dropTabl... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerate... |
var transformer = require('./transformer');
var transMethod = process.argv[2];
function readBitmap(data) {
// save head information from bitmap file
var headerField1 = data.readUInt8(0);
var headerField2 = data.readUInt8(1);
var headerFieldParsed = String.fromCharCode(headerField1) +
... |
module.exports = { prefix: 'far', iconName: 'sliders-h-square', icon: [448, 512, [], "f3f0", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6zm-42-244v8c0 6.6-5.4 12-12 12H192v... |
const CleanWebpackPlugin = require('clean-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
const webpack = require('webpack')
// Define two different css extractors
const extractBundle = new ExtractTe... |
import { APP_CREDENTIALS } from '../../../constants';
let platform;
let geocoder;
export function getPlatform() {
if (!platform) {
/*jshint camelcase: false */
platform = new H.service.Platform({
app_id: APP_CREDENTIALS.ID,
app_code: APP_CREDENTIALS.CODE,
useHTTPS: location.protocol === 'h... |
/**
*
* site
*
* @description
* @author Fantasy <fantasyshao@icloud.com>
* @create 2014-09-05
* @update 2014-09-05
*/
module.exports = {
index: function *() {
yield this.render('site/index');
}
};
|
'use strict';
const request = require('request');
const bearer = 'BEARER eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NjU0NzA2MTUsInR5cGUiOiJleHRlcm5hbCIsInVzZXIiOiJqdWFuQHRha2VwYXJ0LmNvbS5hciJ9.EqmkqlVDR4mzlLQOPrKL92zx2raZOPfIAEgCDsVHJKI5SQevBE3Mu9tfz66nP4qp_I-mrI128t3ssQ4dVamdtw';
const apiUSD = 'http://api.es... |
var webpack = require('webpack');
var config = require('./webpack.config.server');
var _ = require('lodash');
var config = module.exports = _.assign(_.clone(config), {
plugins: (config.plugins || []).concat([
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production'),
}),
new w... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'cheap-module-source-map',
resolve: {
root: [
path.resolve(__dirname, '..', 'src')
]
},
entry: './demo/index',
output: {
path: path.join(__dirname, '..', 'build'),
f... |
import Ember from 'ember';
import config from '../config/environment';
export default Ember.Component.extend({
tagName: "a",
href: "#",
cordova: Ember.inject.service(),
click() {
if (config.cordova.enabled) {
cordova.InAppBrowser.open(this.decodeLink(), "_system");
} else {
window.open(thi... |
var CheckPointCommand = function() {
this.Extends = Command;
this.initialize = function() {
try {
this.parent(Command.CKP);
} catch(error) {
Utils.alert("CheckPointCommand/constructor Error: "+error.message,Utils.LOG_LEVEL_ERROR);
}
};
//Getters & Setters
//Functions
this.clone = function() {
Utils.... |
import Ember from 'ember';
export default Ember.View.extend({
templateName: 'forms/list/select'
}); |
'use strict';
const BbPromise = require('bluebird');
const expect = require('chai').expect;
const sinon = require('sinon');
const proxyquire = require('proxyquire');
const killIntentPath = srcPath('./alexa/intents/kill');
const chaosService = { terminate: () => ({}) };
const killIntent = proxyquire(killIntentPath,... |
/** @jsx React.DOM */
'use strict';
var React = require('react');
var SearchView = React.createClass({displayName: 'SearchView',
render: function() {
return (
React.DOM.div( {className:"col-xs-12 col-sm-6 col-md-8"},
React.DOM.h3(null, "Etsi pysäkki"),
React.DOM.label( {htmlFor:"stop-id"}... |
function isBoolean(o) {
return o === true || o === false || o instanceof Boolean;
} |
/**
* jquery.dump.js
* @author Torkild Dyvik Olsen
* @version 1.0
*
* A simple debug function to gather information about an object.
* Returns a nested tree with information.
*
* http://plugins.jquery.com/files/jquery.dump.js.txt
*/
(function($) {
$.d = function(object) {
alert($.dump(object));
};
$.... |
'use strict';
module.exports = {
db: 'mongodb://localhost/easywork-test',
port: 3001,
app: {
title: 'easywork - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: '/auth/facebook/callback'
},
twitter: {
... |
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2016
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Text, StyleSheet, ViewPropTypes } from 'react-native';
import { OnePressButton } from '../OnePressButton';
import { BottomModal } from './BottomModal';
import globalStyles, { SUSSOL... |
angular.module('awsStarterApp', ['ngRoute', 'ngFacebook'])
.run( function( $rootScope ) {
// Load the facebook SDK asynchronously
(function(){
// If we've already installed the SDK, we're done
if (document.getElementById('facebook-jssdk')) {return;}
// Get the fir... |
import Formatter from '../core/Formatter';
import Tokenizer from '../core/Tokenizer';
const reservedWords = [
'ALL',
'ALTER',
'ANALYZE',
'AND',
'ANY',
'ARRAY',
'AS',
'ASC',
'BEGIN',
'BETWEEN',
'BINARY',
'BOOLEAN',
'BREAK',
'BUCKET',
'BUILD',
'BY',
'CALL',
'CASE',
'CAST',
'CLUSTE... |
var Fs = core.System.IO.Fs;
var $mod$0 = core.VW.Ecma2015.Utils.module(require('path'));
var $mod$1 = core.VW.Ecma2015.Utils.module(require('zlib'));
{
var Creator = function Creator() {
Creator.$constructor ? Creator.$constructor.apply(this, arguments) : Creator.$superClass && Creator.$superClass.apply(thi... |
'use strict';
var path = require('path'),
YAML = require('yamljs');
exports.speakers = require('./speakers.yml').map(function (speaker) {
var firstName = speaker.name.split(' ')[0],
id = firstName.toLowerCase();
speaker.id = id;
speaker.firstName = firstName;
speaker.photo ... |
var path = require('path');
var wordwrap = require('wordwrap');
/* Hack an instance of Argv with process.argv into Argv
so people can do
require('optimist')(['--beeble=1','-z','zizzle']).argv
to parse a list of args and
require('optimist').argv
to get a parsed version of process.argv.
*/
... |
(function() {
'use strict';
angular
.module('demo')
.config(setupRoutes);
setupRoutes.$inject = ['$stateProvider', '$urlRouterProvider'];
function setupRoutes($stateProvider, $urlRouterProvider) {
// For any unmatched url show the demo
$urlRouterProvider.otherwise("/d... |
// Generated Code for the Draw2D touch HTML5 lib
//
// http://www.draw2d.org
//
// Go to the Designer http://www.draw2d.org
// to design your own shape or down... |
export { default, truncateText } from 'talentrh-components/helpers/truncate-text';
|
define(['exports', 'module', 'react', 'classnames', './AffixMixin', './utils/domUtils'], function (exports, module, _react, _classnames, _AffixMixin, _utilsDomUtils) {
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var ... |
import React, { Component } from 'react';
import './style.css';
class Pagination extends Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
getRange() { // 显示的页码按钮数量, 默认为 10
return this.props.range || this.props.pages || 5;
}
getCurrentPage() { /... |
OC.L10N.register(
"systemtags",
{
"Tags" : "Метки",
"Tagged files" : "Файлы с метками",
"Select tags to filter by" : "Выберите метки для фильтра",
"Please select tags to filter by" : "Выберите метки для фильтра",
"No files found for the selected tags" : "Для выбранных меток файлов не найдено... |
/*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* dolity: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Angular.js 1.x & zylkanexy
* dolity is distributed under the MIT License (MIT)
* Sources at https://github.com/raf... |
const u = up.util
up.Request.Queue = class Queue {
constructor(options = {}) {
this.concurrency = options.concurrency ?? (() => up.network.config.concurrency)
this.badResponseTime = options.badResponseTime ?? (() => up.network.config.badResponseTime)
this.reset()
}
reset() {
this.queuedRequests... |
var calendar = new Calendar();
function Calendar() {
this.calObj = this;
this.mouseUpContainer = null;
this.addEventButton = null;
this.eventClickContainer = null;
this.authClickButton = null;
this.scheduleTypes = {
"schedule": "Tunniplaan",
... |
#!/usr/bin/env node
var garnish = require('../')
var argv = require('minimist')(process.argv.slice(2))
argv.level = argv.level || argv.l
argv.verbose = argv.verbose || argv.v
process.stdin.resume()
process.stdin.setEncoding('utf8')
process.stdin
.pipe(garnish(argv))
.pipe(process.stdout) |
import React from 'react'
import Hook from 'util/hook'
import Async from 'client/components/Async'
import {client} from 'client/middleware/graphql'
import {registerTrs} from '../../util/i18n'
import {translations} from './translations/admin'
registerTrs(translations, 'Newsletter')
const SimpleDialog = (props) => <Asy... |
import Ember from 'ember';
import layout from '../../templates/components/table-pagination/table-toolbar';
export default Ember.Component.extend({
layout
});
|
module.exports = function(
config,
sessionStore,
fayeServer,
serversideClient,
channelRequestParser,
messageFactory,
tokenUtil,
errorUtil
){
var self = this;
let ms = require('ms');
self.createSession = function(request){
let newToken = null;
return sessio... |
(function() {
'use strict';
angular
.module('assessoriaTorrellesApp')
.factory('LoginService', LoginService);
LoginService.$inject = ['$uibModal'];
function LoginService ($uibModal) {
var service = {
open: open
};
var modalInstance = null;
... |
var test = require('tape'),
onError = require('..')
test('on-error().otherwiseWithError', function plan (t) {
var h = function errHandler () {}
t.equal(typeof onError(h).otherwiseWithError, 'function', 'should be a function')
t.throws(onError(h).otherwiseWithError, 'requires a callback')
t.end()... |
//~ name b189
alert(b189);
//~ component b190.js
|
const fs = require('fs')
const path = require('path')
const zlib = require('zlib')
const uglify = require('uglify-js')
const rollup = require('rollup')
if (!fs.existsSync('dist')) {
fs.mkdirSync('dist')
}
const configRef = require('./configs')
const builds = configRef.getAllBuilds()
build(builds)
function build (b... |
/**
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Lib = require('../lib');
var extendFlat = Lib.extendFlat;
var extendDeep = Lib.extendDeep;
// Put default... |
define([], function () {
'use strict';
function configValueFilter(configuration) {
return function (configKey) {
if (configuration.hasOwnProperty(configKey)) {
return configuration[configKey];
} else {
throw new Error('Configuration key ' + configK... |
var webpack = require('webpack');
var path = require('path');
var fs = require('fs');
var BUILD_DIR = path.resolve(__dirname, 'dist');
var WWW_DIR = path.resolve(BUILD_DIR, 'public/js');
var CLIENT_DIR = path.resolve(__dirname, 'frontend/js');
var SERVER_DIR = path.resolve(__dirname, 'server');
var CSS_DIR = path.reso... |
/**
* grunt-angular-translate
* https://github.com/firehist/grunt-angular-translate
*
* Copyright (c) 2013 "firehist" Benjamin Longearet, contributors
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all:... |
var log = require('./')
var net = require('net')
function createServer () {
var server = net.createServer()
setInterval(function () {}, 1000)
server.listen(0)
}
createServer()
createServer()
setTimeout(function () {
log()
}, 100)
|
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _AppBar = _interopRequireDefault(require("@material-ui/core/AppBar"));
var _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox"));
var _FormGroup = _interopRequireDefault(require("@material-ui/... |
/**
* Editor package.
*
* This package is independent from the application, and represent the graph
* (canvas element) and logic part of the editor. For organization purposes,
* the editor is divided into several namespaces:
*
* - **b3e** : contains all base classes, functions and constants;
* - **b3e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.