code
stringlengths
2
1.05M
Ember.Fuel.Grid.ColumnSelector = Ember.Fuel.Grid.View.Base.extend({ classNames: ['btn-group'], defaultTemplate: Ember.Handlebars.compile( '<button class="btn dropdown-toggle" data-toggle="dropdown"><i class="icon-th-list"></i> <span class="caret"></span></button>' + '<ul class="dropdown-menu dro...
'use strict'; var request = require('superagent'); var chai = require('chai'); var sinon = require('sinon'); var expect= chai.expect; chai.use(require('sinon-chai')); var BPromise = require('bluebird'); global.Promise = BPromise; var PouchDB = require('pouchdb'); var seed = require('pouchdb-seed-design'); var util = ...
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { PropTypes }...
'use strict'; describe('home controller', function () { beforeEach(module('fireworkNgApp')); var $scope; beforeEach(inject(function ($rootScope, $controller) { $scope = $rootScope.$new(); $controller('HomeController', { $scope: $scope }); })); it('has a happy ...
var _ = require('lodash'), assert = require('assert'); describe('Association Interface', function() { describe('1:1 Association', function() { ///////////////////////////////////////////////////// // TEST SETUP //////////////////////////////////////////////////// var userRecord, profileRecord;...
var quote = new Array() quote[0] = "It is better to have loved and lost than just to have lost." quote[1] = "It is bad luck to be superstitious." quote[2] = "If it jams, force it. If it breaks, it needed replacing anyway." quote[3] = "Always remember that you are unique. Just like everyone else." quote[4] = "A woman w...
import _extends from 'babel-runtime/helpers/extends'; import _without from 'lodash/without'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey } from '.....
var appTitle = 'Sajjad Hossain | Novelist, Artisan, Entrepreneur', qaEmail = 'sajjad@withpulp.com', qaPassword = 'Knight22'; module.exports = { qaEmail: qaEmail, qaPassword: qaPassword, appTitle: appTitle, step8Header: '#step8', step8HeaderText: 'STEP 8', bottom: '#bottom', formDiv:...
/** * Try to detect and use WEB API for hash functions * * Usage: * cryptoHash('SHA-256', 'hello', function (error, digest) { * console.log(digest); // => '2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824' * }) * * IE: http://msdn.microsoft.com/en-us/library/ie/dn302328(v=v...
/*! * CanJS - 2.0.7 * http://canjs.us/ * Copyright (c) 2014 Bitovi * Wed, 26 Mar 2014 16:12:27 GMT * Licensed MIT * Includes: CanJS default build * Download from: http://canjs.us/ */ // this file should not be stolen directly steal('can/util', 'can/map', 'can/list', function (can) { // ## model.js // `can....
import React, { cloneElement, Component } from 'react'; import PropTypes from 'prop-types'; import { getSlideByIndex } from '../utils/slides'; import styled from 'react-emotion'; const StyledExport = styled.div` height: 100%; width: 100%; `; export default class Export extends Component { _renderSlides() { ...
/* app.js * Copyright (c) 2014 Christopher L Bray <chris@brayniverse.com> * Open source under the MIT license. * https://raw.github.com/brayniverse/markdown-doctor/master/LICENSE */ ;(function( window, document, undefined ) { 'use strict'; angular.module( 'app.controllers', [] ) /* Base controller to inje...
(function(){CKEDITOR.on("instanceReady",function(h){var e=h.editor,l=CKEDITOR.document.$.getElementsByName("ckeditor-sample-required-plugins"),m=l.length?CKEDITOR.dom.element.get(l[0]).getAttribute("content").split(","):[],c=[],d;if(m.length){for(d=0;d<m.length;d++){if(!e.plugins[m[d]]){c.push("<code>"+m[d]+"</code>");...
import TailoredKeymapping from './src/TailoredKeymapping'; export default TailoredKeymapping;
RedditOauth = {}; // Request reddit credentials for the user // @param options {optional} // @param callback {Function} Callback function to call on // completion. Takes one argument, credentialToken on success, or Error on // error. RedditOauth.requestCredential = function (options, callback) { // support both ...
import { rollDieWithBonus } from "../../lib/DiceRoller"; let idCounter = 0; function rollForInit(i) { const roll = rollDieWithBonus(20, i.bonus); i.value = roll.value; i.source = roll.rolls.join(", "); } export default { setActionMessenger(state, actionMessenger) { state.actionMessenger = actionMessenger...
var _ = require('lodash'); var LOG = require('slf').Logger.getLogger('tapeworm:rrtw-client'); var Client = function (socket, prefix) { this._prefix = prefix || '/vdb'; this._socket = socket; this._requests = {}; this._requestId = 10; var self = this; var onReconnect = function () { self._resubscribe()...
var gulp = require('gulp') gulp.task('default', ['serve', 'watch'])
// Serves client JS code / CSS that the chrome extension injects into the page. var http = require('http'), https = require('https'), fs = require('fs'), express = require('express'); var app = express(); // Client code and styles that will run in the browser page app.get('/louie.js', function(req, res) { res...
'use strict'; const template = require('../../views/components/Search.hbs'); const Logo = require('../components/Logo.js'); const Button = require('./Button.js'); class Search { constructor(logo, currentWeather, forecastWeather, errorPage) { this.container = document.createElement('div'); this.container.classLi...
// Classic NES parameters - http://www.tetrisconcept.net/wiki/Tetris_%28NES,_Nintendo%29 // DEPENDS ON rot-nintendo block.roads.nes=[ block.defaults.readygo(), {setup:{gravity:fpc2g(48)},nextstage:[{condition:[["onlock","or","overall","lines",">=",null,10]]}]}, {setup:{nextstagenumber:true,nextbackground:true,grav...
/* See https://github.com/appsbu-de/phaser_plugin_pathfinding/blob/master/bin/phaser_pathfinding-0.2.0.js */ //For require.js if (typeof define === "function" && define.amd) { define("easystar", [], function() { return EasyStar; }); } //For browserify and node.js if (typeof module !== 'undefined' && module.ex...
/** * @class Oskari.clazz.define('Oskari.mapframework.bundle.printout.event.PrintWithParcelUIEvent * * */ Oskari.clazz.define('Oskari.mapframework.bundle.printout.event.PrintWithParcelUIEvent', /** * @method create called automatically on construction * @static * @param {String} contentId * ...
function HorizontalPositionCache(getElement, getContentDiv) { var t = this, elements = {}, lefts = {}, rights = {}; var getContentDiv = getContentDiv; function e(i) { return elements[i] = elements[i] || getElement(i); } function scrollOffset() { return getContentDiv ? getContentDiv().scro...
import React from "react"; import { mount } from "enzyme"; import { Nav } from "../../Nav/index"; import { NavItem } from "../index"; import { NavLink, HashRouter } from "react-router-dom"; import renderer from "react-test-renderer"; describe("Test correct render", () => { it("Test correct render", function() { ...
// See docs // https://developer.mozilla.org/en-US/docs/Web/API/Touch module.exports = function GTouch(id, target, x, y) { this.identifier = id; this.clientX = x; this.clientY = y; this.force = 1.0; // default this.pageX = x + document.body.scrollLeft; this.pageY = y + document.body.scrollTop; this.r...
/** * This file decorates the Angular CLI with the Nx CLI to enable features such as computation caching * and faster execution of tasks. * * It does this by: * * - Patching the Angular CLI to warn you in case you accidentally use the undecorated ng command. * - Symlinking the ng to nx command, so all commands r...
let Modes = { NotStarted: 0, Running: 1, Stopped: 2 }; export default Modes;
{% strings 'errors.json' %} function getResponse(url, parameters, callback, errorCallback) { var separator = (url.indexOf('?') != -1) ? '&' : '?'; var parameterString = (parameters) ? '&' + $.param(parameters) : ''; return $.get(url + separator +'ajax' + parameterString, function(data) { var response = JSON....
function solve(params){ var s = params[0], c1 = params[1], c2 = params[2], c3 = params[3], answer = 0, i, j, k, price; for (i = 0; i <= s / c1; i += 1){ for (j = 0; j <= s / c2; j += 1){ for (k = 0; k <= s / c3; k += 1){ price = i * c1 ...
Fusion.require("widgets/StreetView/StreetViewPane.js"); Fusion.Widget.StreetView = OpenLayers.Class(Fusion.Widget, { isExclusive: true, uiClass: Jx.Button, sFeatures : 'menubar=no,location=no,resizable=no,status=no', options : {}, panorama : null, dragControl : null, initializeWidget:...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('implementation-guide-dependency', 'Unit | Serializer | ImplementationGuide_Dependency', { needs: [ 'serializer:implementation-guide-dependency', 'model:meta', 'model:narrative', 'model:resource', 'model:extension' ] }); test('...
// config var maxBreakpoint = 640; // maximum breakpoint var navSelectors = 'body > header nav, body > aside'; // targeting navigation var navNodes = document.querySelectorAll(navSelectors); // targetID will be initially closed if JS enabled Array.prototype.filter.call(navNodes, function (node) { node.classList.ad...
const constants = require('../lib/constants'); const moment = require('moment'); const mongoose = require('../lib/mongooseinit'); const Run = new mongoose.Schema({ jobId: { type: mongoose.Schema.ObjectId, required: true, index: true }, name: { type: String }, path: { type: String, required: true }, qu...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return inst...
const ipc = window.require('electron').ipcRenderer; import React, {PropTypes, Component} from 'react'; import IconButton from 'material-ui/lib/icon-button'; export default class QuitButton extends Component { handleAppQuit() { ipc.send('quit-app'); } render() { return <IconButton ...
'use strict'; require('./_login.scss'); module.exports = ['$log', '$location', 'authService', 'profileService', LoginController]; function LoginController($log, $location, authService, profileService) { $log.debug('LoginController'); this.myProfile = {}; this.login = function() { $log.debug('loginCtrl.lo...
module.exports = [ '2.7.8.12:8333', '2.228.70.198:8333', '5.39.64.7:8333', '5.45.80.34:38333', '5.51.160.38:8333', '5.61.33.33:8333', '5.61.37.12:8333', '5.95.80.47:8333', '5.102.164.173:8333', '5.175.71.130:8333', '5.189.165.22:8333', '5.199.130.228:8333', '5.228.100.222:8333', '5.255.64.23...
var DigitalLineSensor = function(pin) { this._pin = pin; this._pin.mode('input'); var self = this; setWatch( function(e) { self.emit(e.state ? 'black' : 'white'); }, this._pin, { repeat: true, edge: 'both', debounce: 10 } ); }; DigitalLineSensor.prototype.read = fu...
var conn = require('../config/db').conn; module.exports = { getAll: getAll, insert: insert, getLineaPorId: getLineaPorId, update: update, del: del, } function getAll(cb){ conn('select * from lineas', cb); } function insert(codigo, nombre, cb){ conn("insert into lineas(codigo, nombre, activa) values ('"+ codi...
$( document ).ready(function() { $(':file').on('fileselect', function(event, numFiles, label) { var input = $(this).parents('.input-group').find(':text'), log = numFiles > 1 ? numFiles + ' files selected' : label; if( input.length ) { input.val(log); } els...
ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var reservedKeywords = exports.reser...
const quilt = require('@quilt/quilt'); const infrastructure = require('../../config/infrastructure.js'); const Django = require('@quilt/django'); const haproxy = require('@quilt/haproxy'); const Mongo = require('@quilt/mongo'); const infra = infrastructure.createTestInfrastructure(); const mongo = new Mongo(3); const...
/** * Each section of the site has its own module. It probably also has * submodules, though this boilerplate is too simple to demonstrate it. Within * `src/app/home`, however, could exist several additional folders representing * additional modules that would then be listed as dependencies of this one. * For exam...
/* * File: jquery.dataTables.columnFilter.js * Version: 1.5.6. * Author: Jovan Popovic * * Copyright 2011-2014 Jovan Popovic, all rights reserved. * * This source file is free software, under either the GPL v2 license or a * BSD style license, as supplied with this software. * * ...
import { upperFirst } from "lodash"; import { getSingular } from "./annotationTypes"; export default function getAnnotationNameAndStartStopString( { name, start, end, type, message, annotationTypePlural, overlapsSelf, isWrappedAddon }, { startText, isProtein } = {} ) { const typ...
/*global define:false*/ define(['grasshopperBaseView', 'contentDetailViewConfig', 'resources', 'jquery', 'api', 'breadcrumbWorker', 'constants', 'mixins/handleRowClick'], function (GrasshopperBaseView, contentDetailViewConfig, resources, $, Api, breadcrumbWorker, constants, handleRowClick) { 'use strict'; ...
// BASE SETUP // ============================================================================= // call the packages we need var express = require('express'); // call express var app = express(); // define our app using express var bodyParser = require('body-parser'); var City = require('./app/mod...
export default function ajax(url) { return new Promise((resolve, reject) => { let xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onload = () => resolve(xhr.responseText); xhr.onerror = () => reject(xhr); xhr.send(); }); }
(function() { var wrapWords = function(text, before, after, join) { var join = join || ' '; var words = text.split(' '); for(var i=0;i<words.length;i++) { words[i] = before + words[i] + after; } return words.join(join); }; var wrapWordsInChildElement = function(el) { if(el.parentEl...
var step_1_plateform_start = null; var step_2_playlist = null; var step_3_plateform_end = null; function alert_data(){ alert(step_1_plateform_start+" "+step_2_playlist+" "+step_3_plateform_end); } function launchTransfer(){ if( step_1_plateform_start != null && step_2_playlist != null && step_3_plateform_en...
/** * @fileoverview 动画事件 * @author Leo.Zhang * @email zmike86@gmail.com */ define([ '../util/util', '../array/array', '../events/event' ], function(util, array, EventBase) { 'use strict'; /** * 动画事件 * @param {string} type 事件类型. * @param {Animation} anim 动画...
angular.module('students-module',['bootstrap-modal']).factory('form', function($compile,$timeout,$http,bootstrapModal) { function form() { var self = this; self.data = function(scope) { // initialize data scope.formHolder = {}; scope.student_info = {}; scope.student_info.id_number = 0; sco...
define([ './immutable', './trie/setIn', './utils/pathFromKey', '../functional/isObject', '../functional/reduce' ], function( Immutable, setIn, pathFromKey, isObject, reduce ) { 'use strict'; /** * Ensure everything on start. * * @param {Array} [trie] Tr...
/*! @name mux.js @version 5.10.0 @license Apache-2.0 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self...
// @flow export default function delay(ms: number): Promise<void> { return new Promise(res => { setTimeout(() => res(), ms) }) }
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import Component from '@ember/component'; module('Integration | Component | input-wrappers/default', function(hooks) { setupRenderingTest(hoo...
import { SET_USERNAME, SET_PASSWORD, SET_ARTIST, SET_SONG, NEXT_STEP, PREV_STEP, RESET_STEP } from '../constants' export function setUsername(payload) { return { type: SET_USERNAME, payload } } export function setPassword(payload) { return { type: SET_PASSWORD, payload } } export function setArtist(payload)...
const Promise = require('bluebird'), htmlPdf = require('html-pdf-chrome'), request = require('superagent'), mongoose = require('mongoose'), options = require('../config/api_options.json'), path = require('path'), fs = require('fs-extra') import Order from '../src/server/models/order' import Ticket from '...
angular.module('CreateSurvey', []) .controller('CreateSurveyCtrl', function ($scope, api, $state) { $scope.newSurveyData = { "questions": [ { "text":"How likely would you be to recommend Xignal to people you know?", "type":"range" ...
/** * @popperjs/core v2.10.1 - MIT License */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function getWindow(node) { if (node == null) { return window; } if (node.toString() !== '[object Window]') { var ownerDocument = node.ownerDocument; return ownerDocument ? o...
var log; var socket; function main() { setInterval(blinkCursor, 500); socket = io.connect(); socket.emit("clientType", "client"); socket.on("write", write); socket.on("erase", erase); socket.on("eraseLine", eraseLine); socket.on("cursor", cursor); socket.on("setCoder", function(coder, linke){setCoder(coder, l...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['655',"Tlece.Recruitment.Entities Namespace","topic_0000000000000265.html"],['709',"tlece_ApplyPostVacancyCv Class","topic_0000000000000296.html"],['710',"Properties","topic_0000000000000296_props--.html"],['715',"Or...
import isActive from '../is-active'; @isActive class Target {} describe('IsActive', () => { let target; beforeEach(() => { target = new Target(); }); it('decorates a target class', () => { expect(target.isActive).toBeDefined(); }); it('returns true if activeIndex equals index, and both are valid...
function quote (string, lang = 'en') { return lang === 'en' ? `"${string}"` : `„${string}”` } module.exports = quote
var winston = require('winston'), MongoDB = require('winston-mongodb').MongoDB; // instantiating our own logger via Winston var logger = new(winston.Logger)({ transports: [ new winston.transports.MongoDB({ db: 'mwc_logs_test', level: 'error', handleExceptions: true }) ] }); // extending the Winston functiona...
require('dotenv').load() process.env.TZ = process.env.TZ || 'America/Montevideo' process.env.TICKET_RESERVATION = process.env.TICKET_RESERVATION || 8 var keystone = require('keystone') require('./lib/patchs') keystone.init({ 'name': 'JSConfUY', 'brand': 'JSConfUY', 'sass': 'public', 'static': 'public', ...
import {assert, log} from '@luma.gl/webgl'; import {Matrix4, Quaternion} from 'math.gl'; // TODO: import from loaders.gl? export const ATTRIBUTE_TYPE_TO_COMPONENTS = { SCALAR: 1, VEC2: 2, VEC3: 3, VEC4: 4, MAT2: 4, MAT3: 9, MAT4: 16 }; export const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = { 5120: Int8Array...
/* Highcharts Gantt JS v8.0.4 (2020-03-10) Tree Grid (c) 2016-2019 Jon Arild Nygard License: www.highcharts.com/license */ (function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts"],function(C)...
import React from 'react'; import { Link } from 'react-router'; const TitlebarBrowseVacancy=()=>{ return( <div id="titlebar"> <div className="container"> <div className="ten columns"> <h2>Ми знайшли для вас такі пропозиції:</h2> </div> <...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) : typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : globa...
$(document).on('click', '.envovi', function() { $('.player').slideToggle('slow'); });
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return O...
/** @license React vundefined * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * 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 l=require("object-assign"),m=60103,p=60106;exports.Fragmen...
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Debug=require("./Debug-f0e931a3.js");require("./turn-order-c2bfc680.js"),require("immer"),require("lodash.isplainobject"),require("./reducer-77599f21.js"),require("flatted"),require("./ai-7339b9e7.js"),exports.Debug=Debug.Debug;
/*! * dist/inputmask * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2019 Robin Herbots * Licensed under the MIT license * Version: 5.0.0-beta.302 */ !function webpackUniversalModuleDefinition(root, factory) { if ("object" == typeof exports && "object" == typeof module) module.expor...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["printJS"] = factory(); else root["print...
import { registerVersion, _registerComponent, _getProvider, getApp } from 'https://www.gstatic.com/firebasejs/9.1.0-2021822203916/firebase-app.js'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribu...
/*! UIkit 3.6.1 | https://www.getuikit.com | (c) 2014 - 2020 YOOtheme | MIT License */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) : typeof define === 'function' && define.amd ? define('uikitfilter', ['uikit-util']...
import { select as d3_select } from 'd3-selection'; import { t } from '../util/locale'; import { svgIcon } from '../svg/icon'; import { services } from '../services'; import { utilDetect } from '../util/detect'; export function uiImproveOsmComments() { var _error; function errorComments(selection) { ...
var DAMP = Symbol("damp");
var request = require('supertest'); var app = require(__dirname+'/../../lib/app.js'); var gateway = require(__dirname+'/../../'); describe('list processes', function(){ it('should return unauthorized without credentials', function(done){ request(app) .get('/v1/processes') .expect(401) .end(fun...
"use strict" var fs = require('fs-extra'); var Deck = require("../modules/deck"); var ps = require('pokersolver'); var hand = ps.Hand; var Game = ps.Game; var bank = require("../modules/bank"); var Timer = require("timer.js"); var settings = require("../settings/settings.json"), devMode = settings.devmode,...
'use strict'; module.exports = function(grunt) { // Unified Watch Object var watchFiles = { serverViews: ['app/views/**/*.*'], serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'], clientViews: ['public/modules/**/views/**/*.html'], clientJS: ['public/js/*.js', 'public/modules/*...
(function() { var module = angular.module('ui.grid'); function getStyles (elem) { return elem.ownerDocument.defaultView.getComputedStyle(elem, null); } var rnumnonpx = new RegExp( "^(" + (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source + ")(?!px)[a-z%]+$", "i" ), // swappable if display is none or starts with ta...
import fsmIterator, { safeName } from './fsmIterator' import { take, fork, actionChannel, delay } from '../io' import * as buffers from '../buffers' export default function throttle(delayLength, pattern, worker, ...args) { let action, channel const yActionChannel = { done: false, value: actionChannel(pattern, buf...
angular.module('nl.kevinverhoef.computerPlayer', []). value('simpleDartsAi', { getPresets: function(presetFor){ if (presetFor == "lvl1"){ return { basicStrategy:({ target: 20,targetPercentage: 25,closePercentage: 40,offPercentage: 90,trippleChance: 10,dubbleCh...
(function(){ 'use strict'; angular .module('app') .factory('ceAuthentication', ceAuthentication); ceAuthentication.$inject = ['$window']; function ceAuthentication ($window) { var connectedUser = false; return { getUser: getUser, logout: logout, setUser: setUser }; f...
module.exports = function() { console.log(x, y, z); };
//============================================================================= // Yanfly Engine Plugins - Message Core // YEP_MessageCore.js //============================================================================= var Imported = Imported || {}; Imported.YEP_MessageCore = true; var Yanfly = Yanfly || {}; Yanfl...
import forSelect from "../utils/for-select"; import Cell from "../utils/cell"; import beforePost from "../utils/before-post-creation"; var textArea = null, submitBtn = null, canPost = null; export default function (node) { if (!node) { beforePost(ta => { if (!canPost.va...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), Ciudad = mongoose.model('Ciudad') // Crear un nuevo método controller manejador de errores var getErrorMessage = function(err) { // Definir la variable de error message var m...
describe('Unit : seminarNotesPlugin design.home.controller.js', function () { var $scope, DesignHome, $rootScope, q, $controller, DataStore, TAG_NAMES, STATUS_CODE, STATUS_MESSAGES; beforeEach(module('seminarNotesPluginDesign')); beforeEach(inject(function (_$rootScope_, _$q_, _$controller_, _DataStore_, _TAG_NA...
/** * Provides a single, consistent place for js files to get * relevant paths, globs, etc pertaining to the project structure. */ // node imports var path = require('path') // directories var rootDir = path.join(__dirname, '..') var configDir = path.join(rootDir, 'config') var buildDir = path.join(rootDir, 'buil...
'use strict'; var util = util || require('./util'); // eslint-disable-line var UM = UM || require('../uglymol'); // eslint-disable-line const dsn6_buf = util.open_as_array_buffer('1mru.omap'); const map2_buf = util.open_as_array_buffer('1mru.map'); const map0_buf = util.open_as_array_buffer('1mru_m0.map'); let map; ...
import _ from 'underscore'; import {Object} from 'pageflow/ui'; export const CommonPageConfigurationTabs = Object.extend({ initialize: function() { this.configureFns = {}; }, register: function(name, configureFn) { this.configureFns[name] = configureFn; }, apply: function(configurationEditorView) ...
var gulp = require('gulp'), sass = require('gulp-sass'), cssmin = require('gulp-cssmin'), rename = require('gulp-rename'), uglify = require('gulp-uglify'); gulp.task('watch', ['build'], function () { gulp.watch('./src/scss/**/*.scss', ['build:scss']); gulp.watch('./src/js/**/*.js', ['build:js']...
import { expect } from 'chai'; import server from '../../utils/server.mock'; import User from '../../../app/models/user'; import Post from '../../../app/models/post'; import UserFactory from '../../factories/user.factory'; import PostFactory from '../../factories/post.factory'; const ENDPOINT = '/posts'; let testUser;...
{ "name": "minitron.js", "url": "https://github.com/achillesrasquinha/Minitron.js.git" }
/** * MapResponseController * Concrete view controller to display a Response. * @constructor */ let MapResponseController = ResponseController.createComponent("MapResponseController"); MapResponseController.createViewFragment = function createViewFragment() { return cloneTemplate("#template-map-response"); }; ...