code
stringlengths
2
1.05M
$.testHelper.delayStart(); /* * mobile navigation unit tests */ (function($){ // TODO move siteDirectory over to the nav path helper var changePageFn = $.mobile.changePage, originalTitle = document.title, originalLinkBinding = $.mobile.linkBindingEnabled, siteDirectory = location.pathname.replace( /[^/]+$/, "...
/*! jQuery UI - v1.10.3 - 2013-10-10 * http://jqueryui.com * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function (t) { t.datepicker.regional.af = {closeText: "Selekteer", prevText: "Vorige", nextText: "Volgende", currentText: "Vandag", monthNames: ["Januarie", "Februarie", "M...
import React, {PropTypes} from 'react'; import {InputButton} from '../input-button/InputButton'; const nodePropTypes = PropTypes.shape({ text: PropTypes.string.isRequired, id: PropTypes.string.isRequired }); nodePropTypes.children = PropTypes.arrayOf(nodePropTypes); export class Node extends React.Component ...
/*! * clipboard.js v1.5.9 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(t...
import angular from 'angular'; class PhotosController { /** @ngInject */ constructor($scope, $stateParams, $state, photosGallery) { this.$scope = $scope; this.$stateParams = $stateParams; this.$state = $state; this.photosGallery = photosGallery; this.photosByMonth = {}; this.initWatchers(...
'use strict'; angular.module('myApp.header',['myApp.signup']) .controller('HeaderCtrl',['$scope','UserDataService',function($scope, UserDataService){ $scope.username = UserDataService.getUser(); /* if($scope.username){ $("#signupHead").text($scope.username); }*/ }]);
var _ = require('underscore'); var $ = require('jquery'), Backbone = require('backbone'), menuBarTemplate = require('../templates/_barProject.tpl'), chatFormTemplate = require('../templates/_formProjectChat.tpl'), FormView = require('./__FormView'), ProjectStatus = require('../models/ProjectStatus'); var config = ...
var global = require('../../global'); module.exports = function (unitReceiptNote) { var items = [].concat.apply([], unitReceiptNote.items); var iso = "FM-AG2-00-GU-06-004"; var number = unitReceiptNote.no; var locale = global.config.locale; var moment = require('moment'); moment.locale(loca...
'use strict'; angular.module('myApp.form', ['ngRoute']) .controller('FormCtrl', ["$location", "config", 'cardsServicesRequests', function ($location, config, cardsServicesRequests) { var vm = this; vm.errors={}; vm.card = {}; vm.sendPost = function () { cardsServic...
module.exports = { extend: function(a, b) { var newvar = this.clone(a); for(var x in b) { newvar[x] = b[x]; } return newvar; }, clone: function(obj) { var newobj = {}; for(var keys = Object.keys(obj), l = keys.length; l; --l) { newobj[keys[l-1]] = obj[keys[l-1]]; } ...
require([ "inc/audio-listener", "inc/duckbox-client", "inc/impulse", "inc/looping-impulse", "inc/renderer", "inc/settings" ], function(AudioListener, DuckboxClient, Impulse, LoopingImpulse, Renderer) { var audioListener = new AudioListener() , apiClient , renderer , groupRanges ...
version https://git-lfs.github.com/spec/v1 oid sha256:8f1636e3111e06b42fc2a2868ed721784ad757c53f76006e190023240767f199 size 21734
import React from 'react'; import { StyleSheet, Text, TouchableOpacity, View, Animated } from 'react-native'; const propTypes = { goToPage: React.PropTypes.func, activeTab: React.PropTypes.number, tabs: React.PropTypes.array, underlineColor: React.PropTypes.string, backgroundColor: React.PropType...
document.body.innerHTML = ''; var span = document.createElement('span'); span.style.fontSize = '200%'; span.style.fontWeight = 'bold'; span.textContent = 'This is created by JS in PNG.'; document.body.appendChild(span);
import Ember from 'ember'; import Resolver from './resolver'; import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; let App; Ember.MODEL_FACTORY_INJECTIONS = true; if (config.environment === "development") { Ember.run.backburner.DEBUG = true; } App = Ember.Application....
(function() { var app = angular.module('colApp', ['collectionDirectives']); // Controller to work with the Collection object app.controller('CollectionController', ['$http','$location', function($http, $location){ var c = this; c.collection = {}; // Initialization // When the app ploads, it connects...
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.extend...
/** * angular-strap * @version v2.3.8 - 2016-04-05 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict';angular.version.minor<3&&angular.version.dot<14&&angular.mod...
var config = {} //The published google spreadsheet with the data. config.spreadsheet = 'https://docs.google.com/spreadsheets/d/1VtWYSW7Z-Dzjgln3MKWhYL3gEQo5J450aepk9NPv7KA/pubhtml' //Each sheet in the spreadsheet gets its own .JSON file config.sections = ['site', 'social', 'staff', 'map']; //Change for local v. prod...
pagerun.newTask('domtime', function(){ var task = this; var doc = document; var win = window; var startTime, readyTime; startTime = (new Date()).getTime(); DOMContentLoaded = function() { if (doc.addEventListener) { doc.removeEventListener("DOMContentLoaded", DOMContentLoa...
/* * @author paper */ var imageSign=(function(){ var o = {}, odiv, key = false, clickOther = false, $imageWrap = BJ('imageWrap'), curIndex=+BJ('#curZIndex').value, setStyle = function(elem, obj){ for (var i in obj) { elem.style[i] = obj[i]; } }, asynInnerHTML = function(HTML, doingCallback, endCallback)...
'use strict' const chai = require('chai') const expect = chai.expect const sinon = require('sinon') chai.use(require('sinon-chai')) chai.use(require('dirty-chai')) chai.use(require('chai-as-promised')) chai.should() const { TlsAuthenticator } = require('../../lib/models/authenticator') const SolidHost = require('../...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({"esri/widgets/Editor/nls/Editor":{widgetLabel:"Editor",multipleFeaturesTemplate:"Flera geoobjekt ({total})",untitledFeatureTemplate:"Titell\u00f6st geoobje...
var express = require('express');//加载express var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan');//加载morgan,主要功能是在控制台中,显示req请求的信息 var cookieParser = require('cookie-parser');//支持cookie var bodyParser = require('body-parser'); var ejs = require('ejs'); var util = require('...
import React from 'react'; import PropTypes from 'prop-types'; export const Slider = props => ( <div className='slider'> <label htmlFor='amount'>{ props.label }</label> <input type='range' className='slider__range' name='amount' min={ props.min } max={ props.max } value={ props....
module.exports = { port: process.env.PORT || 3000, db: process.env.MONGODB || 'mongodb://localhost:27017/productsfinder', // db: "mongodb://admin:ZBTTYquBL0OprSCJ@productsfinder-shard-00-00-ipql1.mongodb.net:27017,productsfinder-shard-00-01-ipql1.mongodb.net:27017,productsfinder-shard-00-02-ipql1.mongodb.ne...
// configuration var database = "moita"; // database name var output = "totalUnallocatedClassesByCampus"; // output collection name (for shell usage) var semester = "20161"; // desired semester // code db = db.getSiblingDB(database); var map = function() { for (var j in this.classes) { var _class = this.classes...
import { createIterator } from '../helpers/helpers'; QUnit.test('AsyncIterator#asIndexedPairs', assert => { assert.expect(10); const async = assert.async(); const { asIndexedPairs } = AsyncIterator.prototype; assert.isFunction(asIndexedPairs); assert.arity(asIndexedPairs, 0); assert.name(asIndexedPairs, '...
/// <reference path="Xrm.js" /> var EntityLogicalName = "importmap"; var Form_71b19870_5e4e_4a19_8d4d_1cde7322d566_Properties = { createdby: "createdby", createdon: "createdon", description: "description", modifiedby: "modifiedby", modifiedon: "modifiedon", name: "name", ownerid: "ownerid" ...
describe("mockAjax", function() { it("throws an error if installed multiple times", function() { var fakeXmlHttpRequest = jasmine.createSpy('fakeXmlHttpRequest'), fakeGlobal = { XMLHttpRequest: fakeXmlHttpRequest }, mockAjax = new window.MockAjax(fakeGlobal); function doubleInstall() { mock...
/** * Fetch the primary records. This mutates `context.response` * for the next method. * * @return {Promise} */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = function (context) { var adapter = this.adapter; var _context$request = context.request; var t...
//home.js //Used by the external pages (simple UI stuff) var skyColor = "#64a7eb"; //Lifesaver function _g(id) { return document.getElementById(id); } //Elements function fadeInElement(ele, step, speed) { step = typeof(step) != 'undefined' ? step : 1; speed = typeof(speed) != 'undefined' ? speed : 5; for (i=0;i<1...
var cutX; var cutY; var cutW; var cutH; var imgWidth; var imgHeight; function fileChange(imgSrc) { $("#target").attr("src", "../../images/nohead.png"); var filepath = $("#uploadFile").val(); var extStart = filepath.lastIndexOf("."); var ext = filepath.substring(extStart, filepath.length).toUpperCase(); ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _reactNative = require('react-native'); var _default = require('../../style/themes/default'); var _default2 = _interopRequireDefault(_default); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default...
'use strict'; const Joi = require('joi'); const Confidence = require('confidence'); const todoSchema = require('../../schemas').todoSchema; /* This model is for Demo purposes only. This must be replaced with actual database api. */ exports.row = function (filter, next) { const ids = Object.keys(this.todosDB); ...
nv.models.scatterPlusLineChart = function() { //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var scatter = nv.models.scatter() , xAxis = nv.models.axis() , yAxis ...
// Copyright (c) 2015 Uber Technologies, Inc. // // 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, merge...
import VCO, { SINE, PINK_NOISE } from "synth/basics/vco"; import PulseTrigger from "synth/basics/pulseTrigger"; import VCF, { LOWPASS } from "synth/basics/vcf"; import VCA from "synth/basics/vca"; import ADGenerator, { LINEAR } from "synth/basics/ADGenerator"; import { equalPower } from "helpers"; // 0 = conga, 1 = to...
//create variables var barSpacing = 0; var barWidth = 0; var chartHeight = 0; var chartHeightArea = 0; var chartScale = 0; var maxValue = 0; var highestYlable = 0; var valueMultiplier = 0; //create a document ready statement $(document).ready(function(){ //setting the global variables window.chartHeight = Number($(...
export default from './ContextMenu';
var class_physics_component = [ [ "createXmlNode", "class_physics_component.html#a5a2e3761a13d45a4dd38fe3b69253332", null ], [ "destroyDispatcher", "class_physics_component.html#a3c17f238e0ea725fc91a151591bf9510", null ], [ "getPosition", "class_physics_component.html#aeee07d4204bae0ff7747f5c0009907a1", nul...
var _ = require('underscore'); var $ = require('jquery'), Backbone = require('backbone'), revenueTpl = require('../templates/_entityRevenue.tpl'), loadingTpl = require('../templates/__loading.tpl'); var config = require('../conf'); Backbone.$ = $; exports = module.exports = Backbone.View.extend({ el: '#statVi...
Controllers.controller('VideoController', ['$scope', "$sce", '$routeParams', 'VideoService', function($scope, $sce, $routeParams, VideoService) { //var videoSrc = "https://github.com/malaba03/testvideo/blob/master/videos/video1.mp4"; var videoSrc = "/videos/"+$routeParams.videoName, type = "video/"+$routeParams.t...
Space.eventSourcing.Projection.extend('Donations.OrgProjection', { collections: { organizations: 'Donations.Organizations' }, eventSubscriptions() { return [{ 'Donations.OrganizationCreated': this._onOrganizationCreated, 'Donations.LocationAdded': this._onLocationAdded, 'Donations.Loca...
module.exports = require('path').join(__dirname, 'teamcity.js');
/** * @author Rob Taylor [manix84@gmail.com] */ define('window/queriesObject', function () { /** * Takes the Query/Search String, and parses it into an object. * @exports window/queriesObject * * @return {Object} An object, containing all query keys and values. */ var queriesObject ...
'use strict'; const assert = require('assert'); const Browscap = require('../src/index.js'); suite('checking for issue 807. (1 test)', function () { test('issue-807 ["Mozilla/5.0 (compatible; Orangebot/2.0; support.orangebot@orange.com)"]', function () { const browscap = new Browscap(); const browser = brow...
'use strict'; var util = require('util'); var fs = require('fs.extra'); var path = require('path'); var yeoman = require('yeoman-generator'); var cheerio = require('cheerio'); var FrontendGenerator = module.exports = function FrontendGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); ...
GENTICS.Aloha.Help = new GENTICS.Aloha.Plugin('com.gentics.aloha.plugins.Help'); GENTICS.Aloha.Help.languages = ['en', 'ru']; GENTICS.Aloha.Help.url = "https://github.com/alohaeditor/Aloha-Editor/wiki"; GENTICS.Aloha.Help.width = 640; GENTICS.Aloha.Help.height = 480; GENTICS.Aloha.Help.init = function () { var tha...
import React, { Component } from 'react' import { connect } from 'react-redux' import {Link} from 'react-router-dom' import Images from '../widget/images' import Button from '../widget/button' import Icon from '../widget/icon' import { setInactiveLoading, setActiveLoading } from '../../action/LoadingAction' import { se...
import React from 'react' import { randomColorFor } from '../../utils.js' import ImageLoadMixin from '../../lib/imageLoadMixin.js' const ResourceImage = React.createClass({ mixins: [ImageLoadMixin], propTypes () { return { resource: React.PropTypes.object.isRequired } }, getInitialState () { ...
version https://git-lfs.github.com/spec/v1 oid sha256:3ab14b97c430368f9d0534e7f9284830617bc2287c4245f29b159ef3686cbc5b size 364
/* * grunt-mcompile * https://github.com/JohnCashBB/grunt-mcompile * * Copyright (c) 2013 John Cashmore * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js',...
/** * User model schema * * @author NullDivision * @version 0.1.0 * @flow */ import mongoose from 'mongoose'; const USER_SCHEMA = new mongoose.Schema({name: String, role: {type: String, enum: ['ADMIN', 'USER']}, skills: []}); export default mongoose.model('User', USER_SCHEMA);
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'underscore'; import moment from 'moment'; import { history_views } from './globals'; import { Form, FormMixin, Input } from '../libs/bootstrap/form'; import { Pan...
export const bindToMinMax = (value, min, max) => Math.min(Math.max(value, min), max); export const parseValue = (value, min, max) => bindToMinMax(toNumber(value), min, max); export const toNumber = (rawNumber) => { let number = parseFloat(rawNumber); if (isNaN(number) || !isFinite(number)) { number = 0; } ...
const path = require('path') const indexController = { _init (pathResolver = path) { this.indexFilePath = pathResolver.join(__dirname, '..', '..', 'client', 'dist', 'index.html') return this }, getIndexPage (req, res) { res.sendFile(this.indexFilePath) } } module.exports = indexController
'use strict'; var value = require('../../object/valid-value'), contains = require('./contains'), byLength = require('./_compare-by-length'), filter = Array.prototype.filter, push = Array.prototype.push, slice = Array.prototype.slice; module.exports = function () /*…list*/{ var lists; if (!argume...
//~ name a672 alert(a672); //~ component a673.js
"use strict"; System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) { var foo, foo2, bar, bar2, test2; return { setters: [function (_foo) { foo = _foo["default"]; foo2 = _foo; bar = _foo.bar; bar2 = _foo.foo; }, function (_fooBar) {}, function (_directoryFooB...
define(['jquery', 'underscore', 'backbone', 'text!templates/place.html', 'models/alert', 'views/utils/progress'], function( $ , _ , Backbone , placeTpl, Alert, ProgressView ){ var PlaceView = Backbone.View.extend({ tagname: 'div', className: 'row-fluid', template: _.template( placeTpl ), initialize: ...
'use strict'; angular.module('searchResults').directive('searchResults', function(){ return { restrict: "E", templateUrl: 'app/search_results/search_results.html' } });
var group__alchemy__sem = [ [ "RT_SEM_INFO", "structRT__SEM__INFO.html", [ [ "count", "structRT__SEM__INFO.html#a0b0e81f66b4e936c603f18bf9641a24b", null ], [ "name", "structRT__SEM__INFO.html#a661011cc10b4fabf562b8ddd92d5dd46", null ], [ "nwaiters", "structRT__SEM__INFO.html#a456c1a4a5b4c2e192e74b...
require("ember-handlebars/ext"); require("ember-views/views/view"); require("ember-handlebars/controls/text_support"); /** @module ember @submodule ember-handlebars */ var get = Ember.get, set = Ember.set; /** The internal class used to create textarea element when the `{{textarea}}` helper is used. See [hand...
import invariant from 'invariant'; import { Collection } from 'marsdb'; import OAuthLoginManager from './OAuthLoginManager'; import BasicLoginManager from './BasicLoginManager'; import AccountManager from './AccountManager'; // Internals let _oauthManager = null; let _basicManager = null; let _accManager = null; let ...
ECS.System("inputhandler", { order: 0, init: function(state) { var input = state.systems.inputhandler; input.axis = [0, 0]; input.axisAcc = 25; input.keysdown = {}; input.dashTime = 0; input.player = null; ECS.Events.handle('keyreleased', function(key...
/* Theme Name:iDea - Clean & Powerful Bootstrap Theme * Author:HtmlCoder * Author URI:http://www.htmlcoder.me * Author e-mail:htmlcoder.me@gmail.com * Version: 1.2.1 * Created:October 2014 * License URI:http://support.wrapbootstrap.com/ * File Description: Initializations of plugins */ (function($){ $(docume...
bang! (1, 2, 3)
'use strict'; let inspect = require('inspect.js'); let sinon = require('sinon'); inspect.useSinon(sinon); let CoreIO = require('../src/coreio'); let log = require('logtopus').getLogger('coreio'); log.setLevel('error'); describe('CoreIO.SyncList', function() { describe('instance', function() { var initSocketStu...
'use strict'; angular.module('sfchecks.project', ['ui.bootstrap', 'sgw.ui.breadcrumb', 'bellows.services', 'sfchecks.services', 'palaso.ui.listview', 'palaso.ui.typeahead', 'palaso.ui.notice', 'palaso.ui.textdrop', 'palaso.ui.jqte', 'ngFileUpload', 'ngRoute']) .controller('ProjectCtrl', ['$scope', 'textService',...
var mongoose = require('mongoose'); var mongooseUniqueValidator = require('mongoose-unique-validator'); var Schema = mongoose.Schema; var schema = new Schema({ username: {type: String, required: true, unique: true}, password: {type: String, required: true}, email: {type: String, required: true, unique: tru...
const path = require('path'); const webpack = require('webpack'); var WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin'); module.exports = { context: __dirname, entry: [ 'webpack-hot-middleware/client', './src/client', ], output: { path: path.resolve(__dirname, 'public', 'ass...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var Lorem = 'Material'; exports.default = Lorem; var lorems = require.context('./', true, /Material\w*.jsx/); lorems.keys().forEach(function (filename) { var ipsum = lorems(filename).default; var ipsumName = filename.replace(/^...
/* global require, ResearchItemEditorship, Validator, Source */ 'use strict'; const BaseModel = require("../lib/BaseModel.js"); const fields = [ {name: 'title'}, {name: 'authorsStr'}, {name: 'yearFrom'}, {name: 'yearTo'}, {name: 'source'}, {name: 'editorshipRole'}, {name: 'researchItem'} ]...
'use strict' var EventManager = require('ethereum-remix').lib.EventManager function Files (storage) { var event = new EventManager() this.event = event var readonly = {} this.type = 'browser' this.exists = function (path) { var unprefixedpath = this.removePrefix(path) // NOTE: ignore the config fil...
/* * NODE SDK for the KATANA(tm) Framework (http://katana.kusanagi.io) * Copyright (c) 2016-2018 KUSANAGI S.L. All rights reserved. * * Distributed under the MIT license * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code * * @link ...
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojo.DeferredList"]){ //_hasResource checks added by build. Do not use _hasResource directly in your...
export const name = "Triangle by Angle and Orthocenter"; export const L = 3; export const E = 6; export const V = 1; export const init = function() { return this .point("A", 0, 2) .point("X", -1, 0) .point("Y", 1, 0) .ray("AX", "A", "X") .ray("AY", "A", "Y") .point("...
angular.module('wiz.features.auth.settings') .controller('SettingsCtrl', [ '$rootScope', '$scope', '$timeout', '$state', 'settings', 'wizSettingsSvc', 'wizMenuSvc', 'STATUS', function ($rootScope, $scope, $timeout, $state, settings, wizSettingsSvc, wizMenuSvc, STATUS) { $scope.settings = settings...
/* */ /* jshint latedef:false */ /* jshint forin:false */ /* jshint noempty:false */ 'use strict'; var util = require('util'); var msRest = require('ms-rest'); var ServiceClient = msRest.ServiceClient; var WebResource = msRest.WebResource; var models = require('./models'); /** * @class * Initializes a new insta...
// #docregion (function(global) { // map tells the System loader where to look for things var map = { 'app': 'app', // 'dist', 'rxjs': 'node_modules/rxjs', 'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', '@angular': ...
import Message from './Message'; /** * Message class, used to send a message to multiple chats */ export default class BulkMessage extends Message { /** * Create a new message * @param {object} properties Message properties, as defined by Telegram API */ constructor(properties = {}) { super(propert...
import BaseHero from './baseHero' import OrochiPowerHandler from './powers/heroPowers/orochi/aHandler'; export const heroName = 'Orochi'; export default class Waller extends BaseHero { constructor(game, name, id) { super(game, name, id, 'Orochi', {speed:6, airSpeed:6, jumpStrength:300, rollGroundSpeed:8, ro...
import faker from 'faker'; const fakeData = { invalidEmailUser: { firstName: faker.name.firstName(), lastName: faker.name.lastName(), username: faker.name.firstName(), email: 'wrong data', password: faker.internet.password(), roleID: 3, }, invalidPasswordUser: { firstName: faker.name....
/** @flow */ import { INDEX_MODES } from "./constants"; import SearchIndex from "./SearchIndex"; import type { IndexMode } from "./constants"; import type { SearchApiIndex } from "../types"; type UidMap = { [uid: string]: boolean }; /** * Synchronous client-side full-text search utility. * Forked from JS search...
// ========================================================================== // Project: TestApp // ========================================================================== /*globals TestApp */ TestApp.main = function main() { TestApp.getPath('mainPage.mainPane').append() ; } ; function main() { TestApp.main...
class AbstractSection { constructor() { this.id = ""; this.active = true; this.modifiers = []; this._constructorName = "AbstractSection"; } getConcreteSections(state) { logit("Sections need to implement getConcreteSections() " + this._constructorName + "<br />"); ...
const CSSFlatError = require('./error') const postcss = require('postcss') const _ = require('lodash') const cssnano = require('cssnano') const getSelectorName = require('./getSelectorName') const getSelectorType = require('./getSelectorType') const cacheLocalRuleInfo = {} const parserPlugin = postcss.plugin('postcss-...
class MCProcessActionsComponentController { /*@ngInject*/ constructor(selectItems) { this.selectItems = selectItems; this.state = { createSampleName: '', process: null, items: [ { action: 'create', kind:...
"use strict"; let gulp = require('gulp'); let webpackStream = require('webpack-stream'); let nodemon = require('gulp-nodemon'); //let webpack2 = require("webpack"); let webpackConfig = { devtool: "source-map", output: { filename: "app.js" }, module :{ loaders: [ { ...
const gulp = require('gulp'); const plugins = require('gulp-load-plugins')(); const pngquant = require('imagemin-pngquant'); const browserSync = require('browser-sync'); const jsDir = [ './js/*.js', './js/render/*.js', './js/data/*.js', './js/admin/*.js' ]; gulp.task('css', () => { gul...
define('dojorama/layers/nls/global-stuff_nb',{ 'dojorama/ui/_global/widget/nls/FooterWidget':{} , 'dojorama/ui/_global/widget/nls/NavigationWidget':{"labelHome":"Dojorama","labelStorage":"Storage","labelReleaseIndex":"Releases"} });
const fs = require("fs"); const path = require("path"); module.exports = { collectCoverageFrom: ["packages/*/src/**/*.js", "!**/*.ts.js"], coverageDirectory: "coverage", coverageReporters: ["html", "lcov", "text"], coverageThreshold: { global: { statements: 80, branches: 75, functions: 85...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:vote', 'Unit | Controller | vote', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let controller = this.subject(); ass...
$(function () { $('.tree li:has(ul)').addClass('parent_li').find(' > span').attr('title', 'Collapse this branch'); $('.tree li.parent_li > span').on('click', function (e) { var children = $(this).parent('li.parent_li').find(' > ul > li'); if (children.is(":visible")) { children.hide...
import browserTools from 'testcafe-browser-tools'; import { killBrowserProcess } from '../../../../utils/process'; import BrowserStarter from '../../utils/browser-starter'; const browserStarter = new BrowserStarter(); function buildChromeArgs (config, cdpPort, platformArgs, profileDir) { return [] .conca...
Package.describe({ name: 'evaisse:diacritics', version: '1.0.1', // Brief, one-line summary of the package. summary: 'Removes accents / diacritics from strings, sentences, and paragraphs fast and efficiently.', // URL to the Git repository containing the source code for this package. git: 'https://github.co...
'use strict'; module.exports = function () { var self = { _ttyWrite : function (code, key) { this.ttyWrite.push({ code : code, key : key }); } , _moveCursor : function (arg) { this.moveCursor.push(arg); } , _wordLeft : function () { this.wordLeft++; } , _wordRight : ...
// 日時取得 var koyomi = require('../..').create(); var to = koyomi.toDatetime.bind(koyomi); var eq = require('assert').deepEqual; var D = require('../../date-extra.js'); koyomi.startMonth = 1; koyomi.startWeek = '日'; eq(to('2015年10月8日 8時15分'), D(2015, 10, 8, 8, 15)); // さらに詳細なテストはutils/to-datetime.jsで
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; // Import Style import styles from './Header.css'; export function Header(props, context) { const languageNodes = props.intl.enabledLanguages.map( lang => <li ke...