code
stringlengths
2
1.05M
/** * @license AngularJS v1.2.0rc1 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) {'use strict'; /** * @description * * This object provides a utility for producing rich Error messages within * Angular. It can be called as follows:...
/** * Created by stefabal on 02.08.15. */ /* Services */ /* http://docs.angularjs.org/api/ngResource.$resource Default ngResources are defined as 'get': {method:'GET'}, 'save': {method:'POST'}, 'query': {method:'GET', isArray:true}, 'remove': {method:'DELETE'}, 'delete': {method:'DELETE'} */ var ...
var fs = require('fs'); var path = require('path'); var Sequelize = require('sequelize'); var marked = require('marked'); var moment = require('moment'); var cheerio = require('cheerio'); var sequelize = require('./sequelize.js'); var git = require('./git.js'); var utility = require('./../content/utility.js'); var ba...
(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...
/*! * Native JavaScript for Bootstrap - Modal v4.1.0alpha5 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2022 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ /** * A global namespace for `Escape` key. * @type {string} e.which = 27 equivalent...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (global = global || self, factory(global.jQuery)); }(this, (function ($) { 'use strict'; $ = $ && Object.prototype.has...
/** * Tom Select v1.2.1 * Licensed under the Apache License, Version 2.0 (the "License"); */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../../tom-select.ts')) : typeof define === 'function' && define.amd ? define(['../../tom-select.ts'], factory) : ...
/** * Tom Select v1.7.3 * Licensed under the Apache License, Version 2.0 (the "License"); */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TomSelect=t()}(this,(function(){"use s...
import { l as log } from './index-44c0fa28.js'; class Leaf { constructor(trie) { this.children = []; this.parent = trie; } delete(value) { const index = this.children.indexOf(value); if (index === -1) return false; this.children = this.children.slice(0, i...
/*! * Name : Just Another Parallax [Jarallax] * Version : 1.12.2 * Author : nK <https://nkdev.info> * GitHub : https://github.com/nk-o/jarallax */ /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /**...
const test = require('tape') const sinon = require('sinon') const helpers = require('../test/helpers') const bindFunc = helpers.bindFunc const isFunction = require('../core/isFunction') const unit = require('../core/_unit') const constant = x => () => x const identity = x => x const swap = require('./swap') test('...
var Initializer = require("../initializer"); var _ = require('lodash'); Initializer.add('startup', 'stex.db', ['stex.config', 'stex.logging', 'stex.newrelic'], function(stex) { var Knex = require('knex'); var config = stex.conf.get("db"); config.connection = _.extend(config.connection, { stringifyObjects: tr...
/** * * Rotate device. * * <example> :rotate.js client.rotate(114, 198, 5, 3, 220, 2); * </example> * * @type appium * */ module.exports = function rotate(x, y, duration, radius, rotation, touchCount) { /*! * make sure that callback contains chainit callback */ var callback = argume...
'use strict'; var globalFs = require('fs'); var path = require('path'); var setTimeout = require('timers').setTimeout; var clearTimeout = require('timers').clearTimeout; var uuid = require('uuid'); var PROBE_INTERVAL = 25; var CPU_TICK_MS = 10; var IS_NULL_CHAR_REGEX = /\u0000/g; module.exports = ProcWatcher; funct...
var clc = require('cli-color'); module.exports = { run: function( next ){ global.desktopNotify('Starting the example module', 'Enjoy', 10); global.log.general( clc.bold.red('Hi there!') + 'This is the custom module in action!' ); global.log.general(''); global.log.general('Thi...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Sector = mongoose.model('Sector'); /** * Globals */ var user, sector; /** * Unit tests */ describe('Sector Model Unit Tests:', function() { beforeEach(function(done) { ...
/* http://prismjs.com/download.html?themes=prism-okaidia&languages=clike */ var self = (typeof window !== 'undefined') ? window : {}; /** * Prism: Lightweight, robust, elegant syntax highlighting * MIT license http://www.opensource.org/licenses/mit-license.php/ * @author Lea Verou http://lea.verou.me */ var Prism...
version https://git-lfs.github.com/spec/v1 oid sha256:f9e62fdf000383e5de776e9ff67c71b4da0e64b3e92b6093d77f05b59402b948 size 738
version https://git-lfs.github.com/spec/v1 oid sha256:1ec168495fcf5d3f686f6696b8fb45111dbf62d4956248fe3e1ebf6f3a257a98 size 771
version https://git-lfs.github.com/spec/v1 oid sha256:eecc753022aa9191fb353565afbea840bcf90f4a834d28cac48b89c987adfe0b size 846
describe('console plugin', function() { var logMessageButton = element(by.id('log-message')); var warningMessageButton = element(by.id('simulate-warning')); var deleteMessageButton = element(by.id('simulate-error')); it('should not fail on log and debug messages', function() { browser.get('/'); logMes...
import _cloneRegExp from './internal/_cloneRegExp'; import _curry2 from './internal/_curry2'; import _isRegExp from './internal/_isRegExp'; import toString from './toString'; /** * Determines whether a given string matches a given regular expression. * * @func * @memberOf R * @since v0.12.0 * @category String ...
var Rtern = {}; // define the Rtern namespace (function($) { var last_event_id = 0; var access_id = 0; var ajax_url = ""; var ajax_type = "json"; Rtern.init = function(url,type) { ajax_url = url; ajax_type = type; setTimeout(function() { poll(); // start the long poller },1000); }; ...
angular.module('mongolabResourceHttp', []).factory('$mongolabResourceHttp', ['MONGOLAB_CONFIG', '$http', function (MONGOLAB_CONFIG, $http) { function MmongolabResourceFactory(collectionName) { var config = angular.extend({ BASE_URL : 'https://api.mongolab.com/api/1/databases/' }, MONGOLAB_CONFIG); ...
/** * @ngdoc filter * @name join * @kind function * * @description * join a collection by a provided delimiter (space by default) */ angular.module('a8m.join', []) .filter('join', function () { return function (input, delimiter) { if (isUndefined(input) || !isArray(input)) { return input; ...
import {Buffer} from 'node:buffer'; import {promises as fs} from 'node:fs'; import path from 'node:path'; import test from '@ava/test'; import {cwd, fixture} from '../helpers/exec.js'; import {withTemporaryFixture} from '../helpers/with-temporary-fixture.js'; test.serial('With invalid .snap file and --update-snapsho...
/* eslint-env jest */ import { mapDataReducer } from '../../src/reducers/mapDataReducer' import ACTION_EVENTS from '../../src/actions/index' import { fromJS, Map, OrderedSet } from 'immutable' import metaData from '../../public/districts/pa/metaData.json' const { MAP_SWITCH_LAYER, META_DATA } = ACTION_EVENTS // State...
import storage from './oembed-storage'; import regexes from './regexes'; import providers from './providers'; function getContent(regex) { return regex[0].match(regexes.content)[0].match(/['|"].*/)[0].slice(1); } function decodeText(text) { return text .replace(/&lt;/g, '<') .replace(/&gt;/g, '>') .replace(/&amp...
var insert = require('./insert') insert('cursor.size', [{ hello: 'world1' }, { hello: 'world2' }, { hello: 'world3' }, { hello: 'world4' }], function (db, t, done) { db.a.find().skip(1).size(function (err, thesize) { t.error(err) t.equal(thesize, 3) db.a.find().limit(2).size(function (err, theoth...
/* 下拉框相关的功能 - 支持搜索 - 可编辑文本 */ $(function () { // 按关键词搜索 var advanceSelectSelector = "[data-toggle='advance-select']"; var advanceSelectKeywordSelector = advanceSelectSelector + " .keyword"; $(document).on("keyup", advanceSelectKeywordSelector, function () { var $this = $(this); var keyword = $t...
module.exports = { description: 'ensures bundle imports are deconflicted (#659)' };
/** * Example of how to use bind arrays and Collections using cb-repeat * attributes with ConboJS * * @author Neil Rackett */ conbo('example', function(undefined) { 'use strict' var ns = this; ns.MyContext = conbo.Context.extend ({ initialize: function() { this.mapSingleton('myList'...
ace.define('ace/theme/needs', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) { exports.isDark = false; exports.cssClass = "ace-language"; exports.cssText = ".ace-language{\ }\ .ace_token_Keyword.ace_keyword{\ color: #708;\ }\ .ace_string{\ color: blue;\ }\ .ace_variable.ace_def{...
/*const Config = require('electron-config') const config = new Config({ defaults: { autoStart: false, backgroundMode: true, colorTheme: "classic" } }) module.exports.config = config*/ nconf.argv() .env() .file({file: path.join(__dirname, 'config.json')}); module.exports = nco...
/* * EarningsTableFooter Messages * * This contains all the text for the EarningsTableFooter component. */ import { defineMessages } from 'react-intl'; export default defineMessages({ header: { id: 'app.components.EarningsTableFooter.header', defaultMessage: 'This is the EarningsTableFooter component !',...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import { Meteor } from 'meteor/meteor'; import { _ } from 'meteor/underscore'; import { ReactiveVar } from 'meteor/reactive-var'; import { Template } from 'meteor/templating'; import { inheritUtilForm, handleInputChange as inheritedHandleInputChange } from '/client/utils/form'; import { getAttributeNumber } from '/db/...
import React, { PropTypes } from 'react'; import injectSheet from 'react-jss'; import styles, { colors } from 'modules/common/styles'; import InlineThumbnail from 'modules/common/publishes/inlineThumbnail'; const Compact = ({ order, classes }) => { const { amount } = order; return ( <div className={classes.com...
/** * jQuery Yii GridView plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ */ (function ($) { var selectCheckedRows, methods, yiiXHR={}, gridSettings = []; /** * 1. Sele...
export default { el: { colorpicker: { confirm: 'OK', clear: 'Очистить' }, datepicker: { now: 'Сейчас', today: 'Сегодня', cancel: 'Отмена', clear: 'Очистить', confirm: 'OK', selectDate: 'Выбрать дату', selectTime: 'Выбрать время', startDate: 'Дата...
'use strict'; angular.module('sandstone.slurm') .directive('saDuration', function (){ return { restrict: 'A', require: 'ngModel', scope: { minDuration: '=', maxDuration: '=' }, link: function($scope, elem, attr, ngModel) { var isValid = function(duration) { var cmps; ...
var async = require('async'); describe('addCommand', function() { before(h.setupMultibrowser()); before(function(done) { var self = this; this.matrix.addCommand('getUrlAndTitle', function(callback) { var result = {}, error; this.url(function(err, url...
/* ## To write to the benchmark csv ```bash mocha test/c1_eventemitter_security_benchmarks.js.js | grep ^CSV | awk 'END {print ""} {printf "%i %s,", $2, $NF}' >> test/c1_eventemitter_security_benchmarks.js.csv ``` To also see it. nother console ``` tail -f test/.e2e_eventemitter_embedded_benchmarks.csv ``` */...
// flow-typed signature: d6d0cc53e665766936940cec9fd7b7e0 // flow-typed version: <<STUB>>/run-sequence_v^1.0.2/flow_v0.35.0 /** * This is an autogenerated libdef stub for: * * 'run-sequence' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with ...
export const AUTH_SIGNIN = 'AUTH_SIGNIN'; export const AUTH_SIGNOUT = 'AUTH_SIGNOUT'; export const signIn = (token) => { localStorage.setItem('token', token); return { type: AUTH_SIGNIN }; }; export const signOut = () => { localStorage.removeItem('token'); return { type: AUTH_SIGNOUT }; };
Schemas = {};
(function(){ var nv = window.nv || {}; nv.version = '1.1.15b'; nv.dev = true //set false when in production window.nv = nv; nv.tooltip = nv.tooltip || {}; // For the tooltip system nv.utils = nv.utils || {}; // Utility subsystem nv.models = nv.models || {}; //stores all the possible models/components nv.charts = {...
module.exports = function (sequelize, DataTypes) { var Play = sequelize.define( "Play", { id: { type: DataTypes.INTEGER.UNSIGNED, primaryKey: true, autoIncrement: true }, site: { type: DataTypes.STRING }, positive: { type: DataTypes.INTEGER.UNSIGNED, defaultValue: 0 }, negative: ...
// The integration test require the existence of a Team Projet named "TFS INTEGRATION" // Or you can override that name using the VSO_TEST_PROJECT env name // Agile process template and git // It should have at least one bug assigned to the user that is executing the tests // It should at least have a task (the first t...
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
describe('the $type operator with a number as parameter:', function() { var ArrayLike = function ArrayLike() { this.length = 0; } var C = [ { sample: 1 }, { sample: Math.PI }, { sample: "string"}, { sample: {} }, { sample: [] }, { sample: true }, { sample: new Date(1990, 10, 5) },...
/*! X-editable - v1.5.3 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2015 - 2016 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
import React, { PropTypes } from 'react'; import ReactDOM from 'react-dom'; import Plotly from 'plotly.js'; import Theme from '../../helpers/theme.js'; class RangeMetrics extends React.Component { // data should be an array of track and truth data // filtered by a track id static propTypes = { data: PropTyp...
'use strict'; var forEach = require('lodash/collection/forEach'); var Collections = require('../../../util/Collections'); /** * A handler that implements reversible moving of connections. * * The handler differs from the layout connection handler in a sense * that it preserves the connection layout. */ functio...
var expect = require('expect.js'); require('../dist/linq.js'); describe('skip', function () { it('Should bypass a specified number of elements in a sequence and then returns the remaining elements', function (done) { var arr = [1, 2, 3, 4, 5]; var res = arr.skip(2); expect(res).be.an(Array); expect(res).be....
///import core ///import plugins/inserthtml.js ///commands 音乐 ///commandsName Music ///commandsTitle 插入音乐 ///commandsDialog dialogs\music UE.plugins['music'] = function () { var me = this, div; /** * 创建插入音乐字符窜 * @param url 音乐地址 * @param width 音乐宽度 * @param height 音乐高度 * @para...
const { BufferedProcess } = require('atom'); const path = require('path'); const fs = require('fs'); const _ = require('underscore-plus'); const { watchPath } = require('atom'); const Package = require('./package'); const { CompositeDisposable, Emitter } = require('event-kit'); class Folder { static init...
var fs = require('fs'); var FTP = require('ftp'); var client = new FTP(); client.on('ready', function() { client.list(function(err, list) { if (err) throw err; client.get(list[1].name, function(err, stream) { if (err) throw err; var output =...
/** * This is a manifest file that will be compiled into application.js, which will * include all the files listed below. * * Any JavaScript file within this directory can be referenced here using a * relative path. * * It's not advisable to add code directly here, but if you do, it will appear * at the bottom ...
/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { // our app is within ...
KISSY.use('grid/util',function(S,Util){ describe("测试mask", function(){ var el = S.one('#J_Mask'); it('测试mask生成 ',function(){ Util.maskElement(el); expect(el.one('.ks-ext-mask')).not.toBe(null); }); it('测试mask取消',function(){ Util.unmaskElement(el); expect(el.one('.ks-ext-mask')).toBe(null); }); ...
'use strict'; (function() { // Resume Controller Spec describe('Resume Controller Tests', function() { // Initialize global variables var ResumeController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deleting the...
/*! * mime-types * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */ var db = require('mime-db'); var extname = require('path').extname; /** * Module variables. * @private */ var extractTypeRegExp = /^\s...
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */ var Seneca = require('seneca') Seneca({tag: 'github'}) .test() .use('monitor') .use('entity') .use('jsonfile-store', {folder: __dirname+'/../data'}) .use('../github.js') .use('mesh', { listen: [ {pin: 'role:githu...
var session = require('express-session'); var passport = require('passport'); var sop = require('simple-object-path'); const authenticationMiddleware = function (req, res, next) { if (req.isAuthenticated()) { if (!req.cookies.username) { res.cookie('username', req.user.username, { maxAge: 90000...
/** * PageSchema middlewares * @author heroic */ /** * Module dependencies */ var xss = require('../xss'); module.exports = exports = function(schema) { // 执行数据验证之前 schema .pre('validate', function(next) { xss(this, ['title', 'contentHtml']); next(); }); // 执行数据保存之前 schema .pre('...
(function () { 'use strict'; window.InlineShortcodeView_vc_single_image = window.InlineShortcodeView.extend( { render: function () { var model_id = this.model.get( 'id' ); window.InlineShortcodeView_vc_single_image.__super__.render.call( this ); vc.frame_window.vc_iframe.addActivity( function () { if ...
// Generated by CoffeeScript 1.6.3 (function() { window.load_compete = function() { return $.getScript("compete/game.min.js", function() { return $.getScript("compete/lib/API.js", function() { return $.getScript("compete/lib/jquery-ui.js", function() { return $.getScript("compete/lib/hinti...
module.exports = { plugins: [ require.resolve("@babel/plugin-syntax-jsx") ] }
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M18 9.52V6h-3.52L12 3.52 9.52 6H6v3.52L3.52 12 6 14.48V18h3.52L12 20.48 14.48 18H18v-3.52L20.48 12 18 9.52zM14.3 16l-.7-2h-3.2l-.7 2H7.8L11 7h2l3.2 9h-1.9zm-3.45-...
var fs = require('fs'); var path = require('path'); var _ = require('lodash'); var join = require('join-path'); var through = require('through2'); var mime = require('mime-types'); var onHeaders = require('on-headers'); var onFinished = require('on-finished'); var destroy = require('destroy'); module.exports = functi...
module.exports.setTestTimers = function(calls) { setTimeout(function() { calls.push(1); }, 100); setInterval(function() { calls.push(2); }, 100); setTimeout(function() { calls.push(3); }, 100); setTimeout(function() { calls.push(4); }, 100); setTimeout(function() { calls.push(6); ...
import hammerhead from '../../deps/hammerhead'; import testCafeCore from '../../deps/testcafe-core'; import testCafeUI from '../../deps/testcafe-ui'; import VisibleElementAutomation from '../visible-element-automation'; import { focusAndSetSelection, focusByRelatedElement } from '../../utils/utils'; import cursor from ...
$(function() { /* set navbar */ var $header = $('body > header'); $header.load('dashboard/menus.html', function() { if(!$('#navbar').length) { $('body').addClass('without-navbar'); return; } var tab = $header.data('tab') || 'index', $n...
define(["dojox/main", "dojo/_base/lang", "dojo/_base/array", "dojo/date", "dojo/i18n", "dojo/regexp", "dojo/string", "./Date", "dojo/i18n!dojo/cldr/nls/persian"], function(dojox, lang, arr, dd, i18n, regexp, string, IDate, bundle){ var ilocale = lang.getObject("date.persian.locale", true, dojox); // dojo.req...
/** * @license * pathfinding-visualiser <http://github.com/Tyriar/pathfinding-visualiser> * Copyright 2014 Daniel Imms <http://www.growingwiththeweb.com> * Released under the MIT license <http://github.com/Tyriar/pathfinding-visualiser/blob/master/LICENSE> */ (function (root, factory) { 'use strict'; if (typeo...
/* ====================================== Custom dashboard telemetry data filter ====================================== */ // This filter is used to change telemetry data // before it is displayed on the dashboard. // For example, you may convert km/h to mph, kilograms to tons, etc. // "data" object is an ...
var searchData= [ ['gesturemanager_2ecpp',['gesturemanager.cpp',['../gesturemanager_8cpp.html',1,'']]], ['gesturemanager_2eh',['gesturemanager.h',['../gesturemanager_8h.html',1,'']]] ];
import { client } from '../plugins/Platform.js' import { createDirective } from '../utils/private/create.js' import { addEvt, cleanEvt, position, leftClick, stopAndPrevent, noop } from '../utils/event.js' import { clearSelection } from '../utils/private/selection.js' import getSSRProps from '../utils/private/noop-ssr-...
var searchData= [ ['meter',['METER',['../ui_tags_8h.html#a4c2663345bc4b0d87f3538ad57d756fdae2e6be25b55c130066f8efb3490b3826',1,'uiTags.h']]], ['moving',['MOVING',['../player_state_8h.html#a3c730f37b1b3a893159bada67637fdb1a16ebdcb23eb5337fd5bc598fa8d6035d',1,'playerState.h']]] ];
(function(){ try { if(localStorage.mainOrder === "undefined" || localStorage.sideOrder === "undefined") { localStorage.removeItem('mainOrder'); localStorage.removeItem('sideOrder'); } var unmask = function () { var s = $('.splash-input').val(); return s.slice(1,4) + s.slice(6,9) + s.slice(10); }; timeCheck = ...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
import React from "react"; import PropTypes from "prop-types"; import FilterInput from "./FilterInput"; import ToolbarLayout from "./ToolbarLayout"; const BlueprintToolbar = (props) => ( <ToolbarLayout filters={props.filters} filterRemoveValue={props.filterRemoveValue} filterClearValues={props.filterClea...
version https://git-lfs.github.com/spec/v1 oid sha256:7745d8428b03a50c36201da71a1a4b014c4cc2d51ca3e04d0f348277bca2e6fb size 18615
var fn = require('./a.tpl.js'); console.log(fn({ a: '<h2>fdafad</h2>', b: 2, c: 2322 }));
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
import { Form } from '../../../../src'; const struct = [ 'tags[]', 'tags[].id', 'tags[].name', ]; const fields = [{ name: 'tags', label: 'Tags!!!', }, { name: 'other', label: 'Other!!!', fields: [{ name: 'nested', value: 'nested-value', }], }]; class NewForm extends Form { hooks() { ...
(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...
describe("Adventure", function() { var adventure; beforeEach(function() { // Given some options var map = { "root": [{"name": "airports", x: "10px", y: 2}, {"name": "fresh-fruit-juice", x: "10px", y: 4}, {"name": "art-history", x: "10px", y:6}], "options":[ ...
/*! backbone-repository - v1.0.0 - 2016-01-08 * Copyright (c) 2016 Nacho Codoñer; Licensed MIT */ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['backbone', 'underscore'], factory); } else if (typeof module === 'object' && module.e...
require.config({ paths: { 'domready' : 'libraries/domReady.min', 'jquery' : 'libraries/jquery-2.1.4.min', 'bootstrap' : 'libraries/bootstrap.min' }, shim: { 'bootstrap/affix': { deps: ['jquery'], exports: '$.fn.affix' }, 'bootstrap/alert': ...
import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import ActivityShareThumbnail from '.'; const renderer = new ShallowRenderer(); describe('ActivityShareThumbnail post component', () => { let props; beforeEach(() => { props = { actor: { displayName: 'Marty ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.10.2.6_A2_T10; * @section: 15.10.2.6; * @assertion: The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argu...
'use strict'; describe('Messages E2E Tests:', function() { describe('Test Messages page', function() { it('Should not include new Messages', function() { browser.get('http://localhost:3000/#!/messages'); expect(element.all(by.repeater('message in messages')).count()).toEqual(0); }); }); });
var lokijs = require('lokijs'), lokiNativescriptAdapter = require('lokijs/src/loki-nativescript-adapter'), dummyjson = require('dummy-json'), _ = require('lodash'); var LokiDb = (function () { // private variable var texto = 'default'; var _db; var _users; var _dashboard; // priva...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.10.0-master-dd11583 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.tooltip */ angular .module('material.components.tooltip', [ 'material.core' ]) .directive...
(function () { 'use strict'; /** * @ngdoc overview * @name ui.grid.treeBase * @description * * # ui.grid.treeBase * * <div class="alert alert-warning" role="alert"><strong>Beta</strong> This feature is ready for testing, but it either hasn't seen a lot of use or has some known bugs.</div> *...
var fs = require("fs"); var findFile = function (files, regex) { return files.find(function (file) { if (regex.test(file)) { return true; } }); }; var verifyFilenameLength = function (filename, expectedNameLength) { expect(filename).toMatch(new RegExp("^.{" + expectedNameLength + "}$")); }; module.exports ...
/// @file AdminUserPrivilegesModel.js /// Sets the layout for the information needed to specify whether user is admin define([ 'jquery', 'marionette', 'backbone', 'underscore' ], function($, Marionette, Backbone, _) { 'use strict'; return Backbone.Model.extend({ initialize: functio...
/** * Simple Layer constructor. * @constructor */ function SimpleLayer(){ this.dom_obj = this.create_block(); document.body.appendChild(this.dom_obj); this.container = document.createElement('div'); this.container.addClass('simple_layer'); this.dom_obj.appendChild(this.container); this.ba...