code stringlengths 2 1.05M |
|---|
import * as React from 'react';
import ReactDOMServer from 'react-dom/server';
import { expect } from 'chai';
import { createClientRender } from 'test/utils/createClientRender';
import TabContext, { getPanelId, getTabId, useTabContext } from './TabContext';
describe('<TabContext />', () => {
const render = createCli... |
/**
* jspsych-survey-multi-choice
* a jspsych plugin for multiple choice survey questions
*
* Shane Martin
*
* documentation: docs.jspsych.org
*
*/
jsPsych.plugins['survey-multi-choice'] = (function() {
var plugin = {};
plugin.info = {
name: 'survey-multi-choice',
description: '',
parameters:... |
const electron = require('electron')
const Template = require('../../lib/template')
const Block = require('../block')
class CopyToClipboard extends Block {
constructor (data) {
super(data)
this.clipboard = electron.clipboard
this.text = data.text || '{value}'
}
call (state) {
this.logger.log('i... |
import * as neo from '../neo'
neo.init('http://localhost:7474')
export default function(files, log) {
var complete = 0
var promise = neo.deleteAll()
promise.then(()=>{complete = 0})
promise = files.reduce(addFile, promise)
promise = promise.then(neo.createIncludes).then(()=>console.log('Includes created'))
pro... |
// NOTE: Don't use this config by itself! It is just a parent for the dev and production configs.
const _ = require('lodash');
const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
co... |
//@see https://github.com/enb-make/enb
module.exports = require('../node_modules/bem-node/enb-make')
// .noBEMHTML()
.pages('app/*')
.levels([
'configs/' + process.env['YENV'] + '/common.blocks',
'blocks',
'data.blocks',
'pages.blocks'
]);
// .freeze();
|
// Filtered view manager
// We define local filter objects for each different type of field (SetFilter,
// RangeFilter, dateFilter, etc.). We then define a global `Filter` object whose
// goal is to filter complete documents by using the local filters for each
// fields.
function showFilterSidebar() {
Sidebar.setView... |
(function() {
var app = angular.module('diagram-controller', []);
app.controller('diagramController', ["$scope", function($scope) {
this.paper_width = 700;
this.paper_height = 400;
this.graph = new joint.dia.Graph;
this.paper = new joint.dia.Paper({
el: $('#diagram'),
width: this.paper_width,
... |
'use strict';
angular.module('programas')
.directive('ngThumb', function() {
return {
restrict: 'A',
template: '<canvas/>',
link: function(scope, element, attributes) {
scope.$watch('fileImagen', function(value){
var onLoadFile = function(event) {
... |
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import './index.css';
import { App } from './views';
import reducer from './reducers';
import registerServiceWorker from '.... |
function countChecked() {
"all" === checkState && $(".bulk_action input[name='table_records']").iCheck("check"), "none" === checkState && $(".bulk_action input[name='table_records']").iCheck("uncheck");
var e = $(".bulk_action input[name='table_records']:checked").length;
e ? ($(".column-title").hide(), $(".bulk-... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM18 17l-8-.01V3h8v14zm-4-9c1.1 0 2-.89 2-2s-.9-2-2-2-2 .89-2 2 .9 2 2 2zm0 8c1.93 ... |
var MyModule = (function(Temple) {
var Template = {};
return Template;
}(Temple));
|
var fs = require('fs');
/**
* @param filename Optional parameter for selecting a custom config file
*/
module.exports = (function(filename) {
var config = require('./default.js');
// Load user config if exists
// Config values override the default values
var environment = process.env.NODE_ENV || "development";... |
var expect = require('expect.js'),
request = require('request'),
Server = require('./fixtures/serverWithPluginTest/server');
describe('a server with a mongo plugin', function() {
var server;
before(function (done) {
server = Server('test/fixtures/serverWithPluginTest', done);
});
afte... |
var logger=require('../util/logger');
var config = require('../../wb.config');
var common = require('../util/common');
var constants = require('../constants');
var queries = require('./queries');
var errors = require('../errors');
var XlatAM = function(dbc)
{
this.dbc = dbc;
}
XlatAM.prototype.getIt... |
/** [ツ] @author Phil Ricketts [phil@replete.nu] @replete */
/* globals global, process */
var fs = require('fs');
var minify = js => require('uglify-js').minify(js,{
fromString: true,
output: { comments: true }
}).code;
var p = require('../package');
var license, prismjs, prismcss;
function build() {
// Jav... |
var expect = require('chai').expect;
var AWS = require('../');
var fs = require('fs');
describe('S3 with defaultOptions', function () {
var s3 = AWS.S3({
params: {
Bucket: __dirname + '/local/otters',
Delimiter: '/',
}
});
var marker = null;
it('should list files in bucket with less tha... |
/*!
* modernizr v3.0.0pre
* modernizr.com
*
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton, Ryan Seddon, Alexander Farkas, Patrick Kettner, Stu Cox
* MIT License
*/
/*
* Modernizr tests which native CSS3 and HTML5 features are available in the
* current UA and makes the results available to you in two way... |
"use strict";
const { expect } = require("chai");
const {
SourcePos,
ErrorMessageType,
ErrorMessage,
ParseError,
StrictParseError,
Config,
State,
Result,
StrictParser,
} = $core;
const { mapM_ } = $monad;
describe("mapM_", () => {
it("should create a parser that applied the given function to eac... |
;(function(Backbone) {
'use strict';
var Cord = Backbone.Cord;
var convertToBool = Cord.convertToBool;
var convertToString = Cord.convertToString;
var addClass = Cord.addClass;
var removeClass = Cord.removeClass;
var regex = Cord.regex;
function _createObserver(el, cls) {
return function(key, value) {
// Add or re... |
/**
* @fileoverview 页面级模块编写样例
* 请根据实际需要返回单例或函数对象
*
**/
KISSY.add('widget/demo/demo', function(S, NODE){
"use strict";
return {
init: function() {
// init方法作为模块的入口函数
// 请在此添加你的代码
}
};
},{
requires:['node']
});
|
/**
* hilojs 2.0.2 for commonjs
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
var Class=require("../core/Class"),ImageLoader=Class.create({load:function(o){var r=this,n=new Image;o.crossOrigin&&(n.crossOrigin="Anonymous"),n.onload=function(){r.onLoad(n)},n.onerror=n.onabort=r.onError.bind(n),n.sr... |
// domo.js 0.5.7
// (c) 2012 Jed Schmidt
// domo.js is distributed under the MIT license.
// For more details, see http://domo-js.com
!function() {
// Determine the global object.
var global = Function("return this")()
// Valid HTML5 tag names used to generate DOM functions.
var tags = [
"A", "ABBR", "AC... |
export default {
create({Meteor, LocalState, FlowRouter}, email, password, confirmPassword, token) {
if (!email) {
return LocalState.set('ACCEPT_INVITATION_ERROR', 'Email is required.');
}
if (!password) {
return LocalState.set('ACCEPT_INVITATION_ERROR', 'Password is required.');
}
i... |
'use strict';
module.exports = {
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/nerdclub',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.min.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.min.cs... |
jQuery(document).ready(function () {
// Tabsy
jQuery('body').on('click', '[data-ik-tabs-menu-id]', function (e) {
e.preventDefault();
var $this = jQuery(this),
$parent = $this.closest('.ik-tabs'),
tabid = $this.data('ik-tabs-menu-id');
jQuery('[data-ik-tabs-men... |
/* Thanks to ryanflorence/react-project */
import webpack from 'webpack'
import path from 'path'
import * as SHARED from './webpack.shared.config'
export const ENTRY = {
app: SHARED.CLIENT_ENTRY,
_vendor: [
'react',
'react-dom',
'react-router',
'redux',
'react-redux',
]
}
export const BUILD_... |
// Zero.js
// (c) 2013 Stefan Andres Charsley
// Zero.js may be freely distributed under the MIT license.
// The following code is heavily inspired by jQuery's $.fn.data()
;(function($) {
var data = {}, dataAttr = $.fn.data, camelize = $.camelCase,
exp = $.expando = 'Zero' + (+new Date())
... |
var fs = require('fs');
var data = fs.readFileSync('input.txt');
console.log(data.toString());
console.log('执行结束!');
|
'use strict';
/**
* Converts a color number value to a hexadecimal formatted string,
* or a hexadecimal formatted string to a number.
*
* @category Misc
* @param {Number|String} color The color value to convert.
* @param {Boolean} [toNumber] If set to true, a numeric color value is returned.
* @throws {TypeErro... |
'use strict';
/**
*
* @name myLibraryApp.controller:SubjectsController
* @description
* # SubjectsController
* Controller of the myLibraryApp
*/
angular.module('myLibraryApp')
.controller('SubjectsListController', function ($scope, $state, Subjects, DocumentsCount) {
// Start timing now
console.time('Subje... |
/**
* Testing
* @ndaidong
*/
const test = require('tap').test;
const {
isFunction,
} = require('bellajs');
const {stringify} = require('../../../src/helpers');
test('.stringify()', (assert) => {
assert.ok(isFunction(stringify), 'stringify() must be a function');
const v1 = 'Just a string';
const e1 = v... |
page('/', myProjects);
page('/About123', myAbout);
page();
var repos = [];
const render = Handlebars.compile($('#repo-template').text());
function myProjects(){
console.log('going to projects!');
$('#information').hide();
$('#projectholder').show();
$.get({
url: `github/user/repos`,
type: 'GET'
})
... |
/**
* Created by allyshia on 2016-03-06.
*/
var messageUtil = require('../util/message-crud');
var QUERY_IS_PALINDROME = 'isPalindrome';
var _validQueries = [QUERY_IS_PALINDROME];
module.exports.validateQueries = function (queries) {
var isValid = true;
for (var i in queries) {
// Stop as soon as we... |
/**
* Created by asus on 05/04/2017.
*/
var express = require('express');
var router = express.Router();
var mongoose = require('mongoose');
var users = mongoose.model('users');
var commutes = mongoose.model('commutes');
var schedules = mongoose.model('Schedule');
var moment = require('moment');
var momentCountdown =... |
var express = require('express');
var router = express.Router();
var Snippet = require('../models/snippet');
var Project = require('../models/project');
router.all('*', function(req, res, next) {
res.locals.currentSection = 'Snippets';
next();
});
/* GET list snippets */
router.get('/', function(req, res, nex... |
angular.module('saveCrop.posts', ['saveCrop.posts.controllers', 'wysiwyg.module', 'colorpicker.module', 'ui.bootstrap']).config(['$stateProvider', '$locationProvider', function($stateProvider,$locationProvider){
$stateProvider.state('allPosts',{
url:'/posts',
templateUrl: 'modules/posts/views/posts.... |
(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... |
// Copyright (C) 2015 Jeffrey Meyers
// This program is released under the "MIT License".
// Please see the file COPYING in the source
// distribution of this software for license terms.
function EventHandler(map, sidebar, defaultStyle, eventStyle) {
this.map = map;
this.sidebar = sidebar;
this.eventKey = ... |
// =====================================================================
// This file is part of the Microsoft Dynamics CRM SDK code samples.
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line docu... |
// MATERIAL DESIGN INIT
$(document).ready(function() {
$.material.init();
}); |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.10_A3.1_T2;
* @section: 12.10;
* @assertion: No matter how control leaves the embedded 'Statement',
* the scope chain is always restored to its former state;
... |
// flow-typed signature: a0bdb158a5d377f74d68d37923b0bf8c
// flow-typed version: <<STUB>>/webpack_v^1.13.2/flow_v0.34.0
/**
* This is an autogenerated libdef stub for:
*
* 'webpack'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* c... |
/**
* Logger
*
* Init is synchronous
*/
var LOG_PATH_ACTIVITY = "activity.log";
var LOG_PATH_EXCEPTIONS = "exceptions.log";
var winston = require('winston');
var config = require('./config');
var log;
if (config.isProd())
{
log = new (winston.Logger)({
transports: [
new winston.transports.Console({ timesta... |
{
var m = null;
var outputIndex = 0;
var outputDevice = null;
var outputDevices = null;
var outputMenu = null;
var output = null;
var timerId = null;
var run = function (){
navigator.requestMIDIAccess( { sysex: true } ).then( success, failure );
}
var success = function... |
/* eslint ember/order-in-components: 0 */
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
import Component from '@ember/component';
import { isPresent } from '@ember/utils';
import ValidationErrorDisplay from 'ilios-common/mixins/validation-error-display';
import { validato... |
var path = require('path')
var config = require('../config')
var utils = require('./utils')
var webpack = require('webpack')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var HtmlWebpackPlugin = require('html-we... |
module.exports = {
enabled: false,
algorithm: 'sha1',
};
|
'use strict';
describe('Directive: icheck', function () {
// load the directive's module
beforeEach(module('learnAngularApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
... |
module.exports = {
presets: [
['@babel/preset-env',{targets: {node: 'current'}}],
'@babel/preset-typescript',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
],
}; |
(function() {
var width = 1000;
var height = 500;
var data = [1, 2, 3, 5, 6, 7, 10, 2, 4, 6, 7, 2, 5, 4, 6, 1, 3, 6, 5, 7, 9, 4, 1, 2, 5, 3, 5, 6, 7, 8, 4, 3, 2, 5, 6];
// var data = [2, 3];
var hScale = d3.scale.linear()
.domain([0, Math.max.apply(null, data)])
.range([height, 0]... |
"use strict";
var core_1 = require('@angular/core');
var GridComponent = (function () {
function GridComponent() {
}
GridComponent = __decorate([
core_1.Component({
templateUrl: 'app/css/grid/grid.component.html'
}),
__metadata('design:paramtypes', [])
], GridCompone... |
/**
* week-hours <https://github.com/datetime/week-hours>
*
* Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
* Released under the MIT license.
*/
'use strict';
var assert = require('assert');
var weekHours = require('./index');
describe('week-hours:', function() {
it('should get the number of ho... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var collection = 'chips';
/**
* Table Schema
*/
var TableSchema = new Schema({
name : String,
owner : String,
type : String,
user: {
type: Schema.ObjectId,
ref: 'Us... |
'use strict';
const fetch = require('node-fetch');
const Command = require('../../models/Command.js');
const WhereisEmbed = require('../../embeds/WhereisEmbed.js');
const { createGroupedArray, createPageCollector, apiBase } = require('../../CommonFunctions.js');
const inProgressEmbed = { title: 'Processing search...'... |
(function( $ ) {
var defaults = {
class4open: "open",
selector4trigger: "small:first",
selector4content: "section:first"
}
, identifilter = "$ui.slide"
, Slide = function( target, settings ) {
var trigger = "string" === typeof settings.selector4trigger ? target.find( settings.selector4trigger ) : sett... |
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const pkg = require('./package.json');
const isBuild = process.argv.join('').indexOf('webpack-dev-server') === -1;
const BASE_PATH = './';
const EXAMPLES_PATH = path.join(BASE_PATH, '/examples')... |
const {get} = require('lodash')
function getDocumentIds(id) {
const isDraft = id.indexOf('drafts.') === 0
return {
published: isDraft ? id.slice('drafts.'.length) : id,
draft: isDraft ? id : `drafts.${id}`
}
}
function serializePath(path) {
return path.reduce((target, part, i) => {
const isIndex =... |
/*global env: true, Packages: true */
/**
* @overview A minimal emulation of the standard features of Node.js necessary
* to get JSDoc to run.
*/
/**
* Emulate DOM timeout/interval functions.
* @see https://developer.mozilla.org/en-US/docs/DOM/window#Methods
*/
setTimeout = null,
clearTimeout = null,
setI... |
/**
* a HUD container and child items
*/
game.HUD = game.HUD || {};
game.HUD.Container = me.ObjectContainer.extend({
init: function() {
// call the constructor
this.parent();
// persistent across level change
this.isPersistent = true;
// non co... |
/*
* Toastr
* Copyright 2012-2015
* Authors: John Papa, Hans Fjällemark, and Tim Ferrell.
* All Rights Reserved.
* Use, reproduction, distribution, and modification of this code is subject to the terms and
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
*
... |
/* global Node */
import { assert } from '@ember/debug';
import { fireEvent, focus, matches } from './system/synthetic-events';
export default class NodeQuery {
static query(selector, context = document) {
assert(`Invalid second parameter to NodeQuery.query`, context && context instanceof Node);
return new ... |
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node / CommonJS
factory(require('jquery'));
} else {
// Browser globals.
factory(jQuery);
}
})(function ... |
require('./init');
var expect = require('chai').expect;
var contentServiceFactory = require('../lib/fetching/content-service-factory');
var ContentService = require('../lib/fetching/content-service');
var DummyContentService = require('../lib/fetching/content-services/dummy-content-service');
var Source = require('../m... |
'use strict'
let db = require(__dirname + '/../../modules/database')
function linkArt( currentAnimal ) {
console.log(currentAnimal.name + ' triggered')
db.Art.findAll({
where: {
animal: {
$iLike: '%'+currentAnimal.name+'%'
}
}
}).then( (arts) => {
console.log('The ' + currentAnimal.name + ' count:... |
/*
The MIT License (MIT)
Copyright (c) 2015 Nicolás Narváez
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, merg... |
/*
* My Wallet
* It is a Money Coontroll application with Node.JS and Angular.js
* This software is free for General Porpouses
* @author: Max Andriani <max.andriani@gmail.com>
*/
var app = angular.module('myWallet.ui');
app.controller('UiController', ['$scope', 'UsersService', 'UiModalsService', 'SessionsServic... |
var watchify = require('watchify');
var browserify = require('browserify');
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var gutil = require('gulp-util');
var sourcemaps = require('gulp-sourcemaps');
var assign = require('lodash.assign');
var uglify = re... |
var FolderModel = BaseModel.extend({
defaults: {
name: 'undefined',
order: 0,
openFolder: true,
createdInDb: false,
selected: false,
modelType: 'folder',
},
url: function() {
var base = 'folders';
if (this.isNew()) return base;
return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + thi... |
var User = require('../models/user');
var authenticateLocation = '/authenticate-negotiate';
var homeLocation = '/home';
// If the kerberos authentication succeeds we set req.session.authenticatedPrincipal.
// This can happen even when "authentication" fails because we don't have a user
// object for this principal.
... |
/**
* Created by mmalkav on 01.03.2016.
*/
module.exports = function (knex, wait, moment, BS) {
return {
start: function () {
var bettingService = BS.start();
//GLOBAL VARIABLES
var betType;
//MESSAGES
var globalSettings = bettingService.getG... |
import "./atual/dist.js";
|
/*jslint node: true */
'use strict';
exports.CONST = require("./const");
exports.helper = require("./helper"); |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M14.71 6.71a.9959.9959 0 00-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41z"
}), 'ChevronLeftRounded'); |
import { adminFetch } from "../common/fetch";
export const fetchAdminDiagnosticsCacheRest = () => adminFetch('/rest/admin/diagnostics/cache');
|
var Nes = require('arduino-nes');
var nes = new Nes({
serial: "/dev/tty.usbmodem1d1131", // Make sure this is set to your port!
controllers:[
{
clock: 2,
latch: 3,
data: 4
}
]
});
nes.on('error', function(){
console.log('error', arguments);
}).on('ready', function(){
console.log('ready', arguments);... |
'use strict';
const request = require('request');
const facets = require('./facets/index');
const bind = require('lodash').bind;
const forEach = require('lodash').forEach;
const API_MAJOR_VERSION = 'v1';
class lightningAPI {
constructor(accessToken, opts) {
this.accessToken = accessToken;
this.APIUrl = (opts ... |
const foldImages = {
"default": {
"file": "watchtower-sunset-closeup.jpg",
"alt": "Ancient watchtower at the sunset in the Galactic of Orion.",
"description": "I follow my <em>intuition</em>. I pay a lot of attention to <em>detail</em>.<br>Inspiration comes when the time is right."
},
"portfolio": {
... |
'use strict';
// dependencies
var through = require('through2');
var gutil = require('gulp-util');
var path = require('path');
function html2js(value) {
return value.replace(/\r\n/g, "").replace(/>(\s)+</g, "><");
}
function getFileName(file) {
var fileBaseArr = file.path.split('\\');
return fileBaseArr[... |
module.exports = function (grunt) {
"use strict";
grunt.config("cssmin", {
options: {
sourceMap: true
},
target: {
files : [
{
expand : true,
cwd: "<%= testcss %>",
src: ["style.css"],
dest: "<%= dist %>/css/",
ext: ".min.css"
}
]
}
});
grunt.loadNpmTasks("grunt-c... |
const LyricBase = require('../include/lyric-base');
const keyword = 'franks543-lyric-get';
const info_url = 'https://franks543-lyric-get.azurewebsites.net/info';
class Lyric extends LyricBase {
find_lyric(url, json) {
this.lyric = JSON.stringify(json, undefined, ' ');
return true;
}
find_info(url, j... |
const test = require('tape')
const CHR = require('../../src/index')
test('chr.Store', function (t) {
const chr = new CHR()
t.equal(typeof chr.Store, 'object', 'chr.Store is object')
t.end()
})
test('chr.History', function (t) {
const chr = new CHR()
t.equal(typeof chr.History, 'object', 'chr.History is ... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m13 5.83 1.59 1.59L16 6l-4-4-4 4 1.41 1.41L11 5.83v4.27c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5s5-2.24 5-5c0-2.42-1.72-4.44-4-4.9V5.83zM12 18c-1.66 0-3-1.34... |
'use strict'
const sheath = require('../../../src/sheath')
describe('devMode enables more advanced debugging tools', () => {
sheath.config.mode('dev').emulateBrowser(true).async(false)
it('logs a warning when lazy-loading is disabled, sync phase has ended, and undeclared modules are found', () => {
return new ... |
const {cyan} = require('chalk');
export default require('tiny-error')({
prefix: `${cyan('[doxie.render]')} `,
});
|
angular.module('allcomment.controllers', [])
.controller('AllCommentCtrl', function($scope,$state) {
$scope.gotoCoffeeShop1 =function(){
$state.go('coffeeshop1')
}
}) |
'use strict';
/**
* @ngdoc function
* @name workshopApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the workshopApp
*/
angular.module('workshopApp')
.controller('MainCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
... |
test('atomic.core.StringMapperTest', [
'tinymce.plugins.wordcount.text.StringMapper',
'tinymce.plugins.wordcount.text.UnicodeData'
],
function (StringMapper, UnicodeData) {
var ci = UnicodeData.characterIndices;
var ALETTER = ci.ALETTER;
var MIDNUMLET = ci.MIDNUMLET;
var MIDLETTER = ci.MIDLETTER;... |
/**
* Enhance the Messages model to capture metadata containing information about how the message
* was created and is to be handled
*/
// import {_} from 'underscore';
_.extend(RocketChat.models.Messages, {
addMetadata(message, metadata) {
const query = { _id: message._id };
const update = {
$set: {
m... |
import React from 'react'
import styles from './ItemSelectResultsList.scss'
const ItemSelectResultsList = props => {
const { emptyResultsMessage, items, keywords, resultListItems } = props
const numberOfItems = items.length
const resultIsEmpty = numberOfItems < 1
const hasManyResults = numberOfItems > 3
r... |
module.exports = {
posts: {
id: {type: 'increments', nullable: false, primary: true},
uuid: {type: 'string', maxlength: 36, nullable: false, validations: {isUUID: true}},
title: {type: 'string', maxlength: 150, nullable: false},
slug: {type: 'string', maxlength: 150, nullable: false,... |
"use strict";
module.exports = {
"env": {
"es6": false
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": true,
"objectLiteralComputedProperties":... |
/*
Copyright 2013, KISSY UI Library v1.40dev
MIT Licensed
build time: Apr 17 00:23
*/
KISSY.add("scrollview/drag",function(p,y,z,q){function r(a,c,b){var c=c.timeStamp,g=a.get("scroll"+p.ucfirst(b));a._startScroll[b]=g;a._swipe[b].startTime=c;a._swipe[b].scroll=g}function s(a,c,b,g){if(!t(a,b)){var h="left"==b?"pageX":... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Talk;
(function (Talk) {
(function (Connection) {
var Pure = (function (_super) {
... |
var _ = require('underscore'),
syBookshelf = require('./base'),
UserCooperation, UserCooperations,
tbUserCooperation = 'user_cooperation',
fkUser = 'userid';
UserCooperation = module.exports = syBookshelf.Model.extend({
tableName: tbUserCooperation,
fields: [
'id', 'userid', 'cooperationid', 'isaccepted'
],
... |
"use strict";
var helpers = require("../../helpers/helpers");
exports["America/Nassau"] = {
"guess:by:offset" : helpers.makeTestGuess("America/Nassau", { offset: true, expect: "America/New_York" }),
"guess:by:abbr" : helpers.makeTestGuess("America/Nassau", { abbr: true, expect: "America/New_York" }),
"1912" : h... |
var fs = require('fs');
var _ = require('lodash');
var path = require('path');
var viewerTemplate = require('./viewerTemplate');
const indexTemplate = _.template(fs.readFileSync(path.join(__dirname, 'indexTemplate.html'), { encoding: 'utf8' }));
const frameTemplate = _.template(fs.readFileSync(path.join(__dirname, 'fra... |
module.exports = function (schema, fn) {
if (!Array.isArray(schema.required)) {
return;
}
schema.required.forEach(function(name){
var resolved;
if('patternProperties' in schema) {
// http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.3
for(var pro... |
describe('List', function() {
/**
* Define a global test variable.
*/
var People;
/**
* add
*/
it('add', function() {
People = new leaf.List([
{
lastName: 'Doe',
firstName: 'John',
},
{
lastName: 'Doe',
firstName: 'Jane',
}
]);
People.add(new leaf.Model(
{
lastN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.