code
stringlengths
2
1.05M
'use strict'; var _ = require('lodash'); var Q = require('q'); var Page = require('../../../../base/Page'); var deserialize = require('../../../../base/deserialize'); var values = require('../../../../base/values'); var ValidationRequestPage; var ValidationRequestList; var ValidationRequestInstance; var ValidationReq...
/** * Simple function to set the focus to the element with autofocus in the dialog template * @param templateInstance */ Dialog = {}; Dialog.autoFocus = function(templateInstance) { templateInstance.$('.modal').first().on('shown.bs.modal', function () { templateInstance.$('[autofocus]').focus(); }); }
import { t } from '../../../polyglot-modules/polyglot.js' import Github from '../components/Github' const data = [0, 1] const data2 = [0] const items = [0, 1, 2, 3,4] const DemocracyOs = () => ( <div className='democracy-os-container'> <img src={t('what-we-do.democracyOs.img')} alt='Democracy OS' className='dem...
userIndex *= 123
var React = require('react'); module.exports = React.createClass({ render() { return ( <div className="item-title-row"> {this.props.children} </div> ); } });
/** * Select2 Georgian (Kartuli) translation. * * Author: Dimitri Kurashvili dimakura@gmail.com */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "ვერ მოიძებნა"; }, formatInputTooShort: function (input, min) { var n = min - input.length...
import Popper from "popper.js" export class InfoBox { constructor(container) { this._container = container; this._initGui(); } _updatePosition(selector=null, popperOptions={}) { if (selector) { let referenceTag = document.querySelector( selector ); var options = Object.assign({ gpuAcceleration:...
/** * Myjson API bridge * Database in [http://myjson.com/5953q] */ var MyjsonBridge = new Sgfd.Bridge({ metaName: 'MyjsonBridge', type: 'json', base: 'https://api.myjson.com/bins', paths: { all: '5953q', }, bridgeTo: (to) => { with (MyjsonBridge) { return base + '/...
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res) { res.render('index', { title: 'EQUINOX', classes: 'home' }); }); /* GET clubs page. */ router.get('/clubs', function(req, res) { res.render('clubs', { title: 'EQUINOX ...
// @flow import { getGameById } from 'api/models/game' const game = async (_: any, args: { id: string }, _ctx: Object) => { const { id } = args return getGameById(id) } export default game
PagesTrainsView = Backbone.View.extend({ events: { }, initialize: function () { this.trains = $('#data').data('response'); this.render(); }, render: function () { this.$el.html(render('pages/trains', { trains: this.trains })); } });
// @flow import { SurveySubmission } from './ActionTypes'; import callAPI from 'app/actions/callAPI'; import { surveySubmissionSchema } from 'app/reducers'; import type { Thunk } from 'app/types'; export function fetchSubmissions(surveyId: number): Thunk<*> { return callAPI({ types: SurveySubmission.FETCH_ALL, ...
"use strict"; const IconTables = require("../../icons/icon-tables.js"); const Strategy = require("../strategy.js"); class PathStrategy extends Strategy { constructor(){ super({ priority: 1, matchesFiles: true, matchesDirs: true, noSetting: true, ignoreVirtual: false, }); } regi...
/*!banner: c6896d8a*/var a = function() { return true; }; /*!c6896d8a*/
import mongoose from 'mongoose'; import express from 'express'; import session from 'express-session'; import bodyParser from 'body-parser'; import config from '../src/config'; import * as actions from './actions/index'; import {mapUrl} from 'utils/url.js'; import PrettyError from 'pretty-error'; import http from 'http...
const assert = chai.assert; const Workbook = xmind.Workbook; const options = { firstSheetId: 'firstSheet', rootTopicId: 'rootTopic', firstSheetName: 'sheet 1', rootTopicName: 'root topic' }; const workbook = new Workbook(options); // first sheet added const sheet = workbook.getPrimarySheet(); const rootTopic = ...
export { default } from 'ember-fhir/models/process-response';
function solve() { return function (selector, isCaseSensitive) { isCaseSensitive = isCaseSensitive || false; // Creating the structure var root = document.querySelector(selector); root.className += ' items-control'; var addControls = document.createElement('div'); v...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('value-set-expansion', 'Unit | Model | ValueSet_Expansion', { needs: [ 'model:meta', 'model:narrative', 'model:resource', 'model:extension', 'model:value-set-parameter', 'model:value-set-contains', 'model:value-set-contain...
'use strict'; const express = require('express'); const User = require('../model/user'); const jwtAuth = require('../lib/jwt'); const userRouter = module.exports = exports = express.Router(); userRouter.get('/:id/', jwtAuth, (req, res, next) => { User.findOne({_id: req.params.id}, (err, user) => { user.passwor...
import 'aurelia-polyfills'; import { Options } from 'aurelia-loader-nodejs'; import { globalize } from 'aurelia-pal-nodejs'; import * as path from 'path'; Options.relativeToDir = path.join(__dirname, 'unit'); globalize(); //# sourceMappingURL=jest-pretest.js.map
define(['dispatcher'], function(dispatcher) { "use strict"; var initialized = false; var step1counter = 0; var step2counter = 0; var step1total = 2; var step2total = 3; var step1ready = false; var step2ready = false; var animation = false; var scheme = 'light'; var pageNameId = false; v...
/*global html,isHostMethod */ /* Description: Relies on W3C compliant `e.stopPropagation()` */ /* Degrades: IE8, IE7, IE6, IE5.5, IE5, IE4, IE3, Opera 7.6 */ /* Author: Adam Silver */ var cancelPropagation; if(html && isHostMethod(html, 'addEventListener')) { cancelPropagation = function(e) { e.stopPropagation(...
/** * Copyright (c) 2014,Egret-Labs.org * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of c...
import { $, getStyle, isVoidElement, promise } from '../util/index'; var storage = window.sessionStorage || {}, svgs = {}, parser = new DOMParser(); export default function (UIkit) { UIkit.component('svg', { props: { id: String, icon: String, src: String, ...
'use strict'; /** * @param {*} subject * @param {*} target * @returns {Boolean} */ module.exports.isStrictlyEqual = function (subject, target) { return subject === target; }; /** * @param {*} subject * @param {*} target * @returns {Boolean} */ module.exports.isEqual = function (subject, target) { retu...
const initialState = { client: { state: { tool: 'move', color: '#222222', size: 4, opacity: 1 }, x: 0, y: 0, m1Down: false, offsetX: 0, offsetY: 0, points: [], pointCount: 0 }, clientStates: {} /* network clients */ } ...
'use strict'; /** * Module dependencies. */ var assert = require('assert'); var includes = require('../'); /** * Detects and disables ES5-only tests in non-ES5 environments. */ var es5It = typeof Object.create === 'function' ? it : xit; /** * Tests. */ describe('includes', function() { it('should be a fun...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.ux3.ExactAttribute. sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', './library'], function(jQu...
/*jslint plusplus: true, nomen: true, indent: 4 */ /*globals define */ define(function (require, exports, module) { 'use strict'; var AbstractCommand = require('./../../core/mvc/abstract-command'), Command = AbstractCommand.extend({}, { execute: function () {} }); module.exports...
const webpack = require("webpack"); const { serverConfig, clientConfig, outputMessages } = require("./webpack-config"); webpack([serverConfig, clientConfig]).run((err, stats) => { if (err) { console.log(err); } else { outputMessages(stats); } });
'use strict'; const tessel = require('tessel'), accelLib = require('accel-mma84'); let accel; const init = () => { initAccel(); }; const initAccel = () => { accel = accelLib.use(tessel.port['A']); accel.on('ready', accelReady); }; const accelReady = () => { accel.on('data', (xyz) => { console.log('x:...
import path from 'path'; // app export const APP = { NAME: 'xixi', SESSION_SECRET: 'xixi' }; // server export const SERVER = { PORT: 9876 }; export const SESSION = { SECRET: 'xixi' }; export const REDIS = { host: 'redis', port: '6379' }; // paths const LOG_DIR = path.resolve(__dirname, '../logs'); expo...
#!/usr/bin/env node // // bin/fenearplayer.js // // The main fenear player cli entry point. // // Note that this file is in JavaScript because CoffeeScript is currently // unable to properly add hashbangs as this file has. // // Copyright (c) 2012 Lee Olayvar <leeolayvar@gmail.com> // MIT Licensed // requir...
/* global QUnit */ import { runStdGeometryTests } from '../../utils/qunit-utils'; import { RingBufferGeometry } from '../../../../src/geometries/RingGeometry'; export default QUnit.module( 'Geometries', () => { QUnit.module( 'RingBufferGeometry', ( hooks ) => { var geometries = undefined; hooks.beforeEach( fu...
/** * The controller for the main app * @param {object} $scope - The $scope * @param {object} AuthService - The auth service * @param {object} AUTH_EVENTS - The auth events constants */ function mainApp($scope, AuthService, AUTH_EVENTS) { 'ngInject'; $scope.currentUser = null; $scope.isAuthenticated = AuthS...
import expect from 'expect'; import multiplexSubscriber from '../src/multiplexSubscriber'; describe('multiplexSubscriber', () => { it('returns a multiplex subscriber that ' + 'will be notified once a tag of target has been changed', () => { let traceState = []; const tracer = expect.createSpy((state) => ...
var Deletion = require('./delete'); module.exports = Marionette.View.extend({ template: '#tpl-blog', tagName: 'li', events: { 'click .delete': 'showDeletion', }, showDeletion: function() { var that = this; this.deletion = new Deletion(); this.deletion.on('delete', this.delete.bind(this));...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Malay language. */ /**#@+ @type String @example */ /** * Contains the dict...
// * ben - non dropdown select version. ----------------// (function($){ $.fn.custom_mobileMenu = function() { //attach the down arrow for submenu $( "#mobile-menu > ul li" ).has( "ul" ).prepend("<span class='submenu-slide' href='#'><i class='fa fa-angle-down fa-6'></i></span>"); /* toggle nav */ $("#m...
/*! * inputmask.phone.extensions.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2018 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.0-beta.9 */ !function(factory) { "function" == typeof define && define.amd ? define([ "./dep...
'use strict'; eventsApp.factory('$exceptionHandler', function(){ return function(exception) { console.log("exeption handled: " + exception.message); }; });
var Validator, isValidator; Validator = require("../types/Validator"); module.exports = isValidator = function(value) { return value && value.constructor[Validator.type]; }; //# sourceMappingURL=../../../map/src/core/isValidator.map
(function() { "use strict"; var TemperatureReadingService = function($http) { var getAllTemperatures = function() { return $http.get("/api/readings"); }; var getTemperaturesForLastHours = function (hours) { return $http.get("/api/readings?lastHours=" + hours); }; return { getAllTemperatures: ge...
function fetchAsync (url, timeout, onData, onError) { onData(); return url; } let fetchPromised = (url, timeout) => { return new Promise((resolve, reject) => { fetchAsync(url, timeout, resolve, reject) }) } Promise.all([ fetchPromised("http://backend/foo.txt", 500), fetchPromised("http://ba...
var from = require('from'); var through2 = require('through2'); var through = require('through'); var streamworks = require('../src'); describe('streamworks', function(){ describe('constructor', function(){ it('should be a pipe and merge function', function(){ streamworks.pipe.should.be.type('function'...
// All symbols in the Specials block as per Unicode v3.2.0: [ '\uFFF0', '\uFFF1', '\uFFF2', '\uFFF3', '\uFFF4', '\uFFF5', '\uFFF6', '\uFFF7', '\uFFF8', '\uFFF9', '\uFFFA', '\uFFFB', '\uFFFC', '\uFFFD', '\uFFFE', '\uFFFF' ];
"use strict"; const gulp = require('gulp'), rename = require('gulp-rename'), concat = require('gulp-concat'), babel = require('gulp-babel'), ngAnnotate = require('gulp-ng-annotate'), sourcemaps = require('gulp-sourcemaps'), browserSync = require('browser-sync'), scripts = { landing: landing }; module.expor...
// Hlavní direktive sloupcového grafu v jQuery dashboardApp.directive('barchartJq', ['JsonChartResource', function(JsonChartResource) { return { restrict: 'E', replace: true, scope: { }, link: function(scope, elem, attrs) { /* Nutno obalit jQuery funkcionalitou aby fungovalo při testování ka...
var Lexer = module.exports = function Lexer(str) { this.tokens = []; this.line = 1; this.indented = 0; this.str = String(str) .trim() .replace(/\r\n|\r|\n *\n/g, '\n'); }; Lexer.prototype = { exec: function () { while (this.str.length) { this.next(); } this.push('eos', this.line); ...
(function () { 'use strict'; angular.module('theometer.common') .service('modalService', Service); /** @ngInject */ function Service($ionicModal, $rootScope, $q, $injector, $controller) { var service = this; service.show = show; /** ---------------------------- private helper functions ----...
var crypto = require('crypto'); var request = require('request'); var path = require('path'); var fs = require('fs'); var querystring = require('querystring'); var KdtApiProtocol = function() { } KdtApiProtocol.APP_ID_KEY = 'app_id'; KdtApiProtocol.METHOD_KEY = 'method'; KdtApiProtocol.TIMESTAMP_KEY = 'timestamp'; Kdt...
import { appleStock } from '../src'; describe('mocks/appleStock', () => { test('it should be defined', () => { expect(appleStock).toBeDefined() }) test('it should be an array', () => { expect(appleStock.length).toBeDefined() }) test('it should return [{ date, close }]', () => { const data = app...
import React, { Component } from 'react'; import Target from './example1/target'; import Source from './example1/source'; class Example1 extends Component { getTarget = () => this.refs.target; render() { return ( <div style={{ background: 'red', position: 'relative', padding: '20px' }}> <Target ...
angular.module('rmCornerstone').factory('rmCornerstone',[function(element){ var orthanc_url = 'http://test/'; var viewport = null; var rmCornerstone = { /** * [function description] * @param {[type]} element [description] * @param {[type]} image [description] * @return {[type]} ...
/** * @author Mugen87 / https://github.com/Mugen87 */ const fs = require( 'fs' ); const path = require( 'path' ); const util = require( 'util' ); const expect = require( 'chai' ).expect; const fetch = require( 'node-fetch' ); // provide implementation of browser APIs used in NavMeshLoader global.fetch = fetch; glo...
'use strict'; /** * Module dependencies. */ var passport = require('passport'), LocalStrategy = require('passport-local').Strategy, mongoose = require('mongoose'), Admin = mongoose.model('Admin'), sha256 = require('sha256'), config = require('../env/all'); module.exports = function() { // Use local strategy ...
'use strict'; var MACROUTILS = require( 'osg/Utils' ); var StateAttribute = require( 'osg/StateAttribute' ); var Uniform = require( 'osg/Uniform' ); var Map = require( 'osg/Map' ); var Notify = require( 'osg/Notify' ); /** * ShadowReceiveAttribute encapsulate Shadow Main State object * @class ShadowReceiveAttribute...
/* */ export default async(type='GET',url = '', data = {}, method= 'fetch')=>{ type = type.toUpperCase(); if(type === 'GET'){ let dataStr = ''; Object.keys(data).forEach(key =>{ dataStr += key + '=' + data[key] + '&'; }); if (dataStr !== '') { dataStr = dataStr.substr(0,dataStr.lastIndexOf('&')); u...
import {List, Map, fromJS} from 'immutable'; import {expect} from 'chai'; import reducer from '../src/reducer'; describe('reducer', () => { it('handles SET_STATE', () => { const initialState = Map(); const action = { type: 'SET_STATE', state: Map({ vote: Map...
'use strict'; module.exports = { up: function(queryInterface, DataTypes) { return queryInterface.createTable('Cards', { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true, }, number: DataTypes.STRING, token: DataTypes.STRING, serviceId: Data...
version https://git-lfs.github.com/spec/v1 oid sha256:e176c8b1c3f314a4e4813aa635ba29938d6bf19b0867ac6c0361e6c066f4f242 size 1087
import { Record } from 'immutable'; import { ACTIONS } from './constants'; export const AuthState = new Record({ authenticated: false, uid: null, user: null }); export function authReducer(state = new AuthState(), { payload, type }) { switch (type) { case ACTIONS.SIGN_IN_FULFILLED: return state.me...
import React, { Component } from "react"; import TweetLiveCounter from "./TweetLiveCounter"; import Tweet from "./Tweet"; class Stream extends Component { constructor() { super(); this.state = { tweets: [], pending_tweets: [] }; } componentWillMount() { var self = this; ...
/* global $ */ /* global GOVUK */ // Warn about using the kit in production if ( window.sessionStorage && window.sessionStorage.getItem('prototypeWarning') !== 'false' && window.console && window.console.info ) { window.console.info('GOV.UK Prototype Kit - do not use for production') window.sessionStorage.setI...
'use strict'; var tm = require( '../lib/index.js' ); var corpus = new tm.Corpus( [] ); corpus.addDoc( 'wat you cash money go to boots and cats and dogs with me' ); corpus.removeWords( tm.STOPWORDS.EN ) ; var terms = new tm.Terms( corpus ); console.log( terms );
import './main'; import './table'; import './form'; import './nestedForm';
import React from 'react'; export default class About extends React.Component { render() { return (<div className={'container'} style={{ maxWidth: '960px' }}> <section className={'section'}> <h1 className={'title'}>About</h1> <h2 className={'subtitle'}>AutoScout is a heavy work-in-progress ...
// This module creates a digital timer that will run in sync with the clock // animation created by the clock.js module, with its output formatted as // hh:mm:ss (hh=hours, mm=minutes, ss= seconds). It also includes, with its // setDirection() and getDirection() methods, functionality to track the // forward vs. revers...
// gm - Copyright Aaron Heckmann <aaron.heckmann+github@gmail.com> (MIT Licensed) var assert = require('assert') module.exports = function (_, dir, finish, gm) { if (!gm.integration) return finish(); var filename = dir + '/autoOrient.jpg'; gm(dir + '/originalSideways.jpg').orientation(function (err, o) {...
"use strict"; var BinaryTree = require('../basic/binarytree/simple'); require('should'); describe('binarytree', function() { it('traverse should get sequene in order', function() { var na = {left: null, right: null, value: 'A'}; var nb = {left: null, right: null, value: 'B'}; var nc = {left: na, right...
import Vue from 'vue' import Vuex from 'vuex' import createLogger from 'vuex/dist/logger' import state from './state.js' import getters from './getters.js' import actions from './actions.js' import mutations from './mutations.js' Vue.use(Vuex) export default new Vuex.Store({ state, getters, actio...
import parser from '../src/core/parser/parser'; const FormatJSON = (str) => JSON.stringify(str, null, 2); test('#parser - 1', () => { expect(FormatJSON(parser(`<div></div>`))).toBe(FormatJSON({ "type": "Program", "body": [ { "type": "Element", "name": "di...
var textInput = document.querySelectorAll('input[type="text"]'); var currentIdx = 0; var limitIdx = textInput.length; chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { if (currentIdx==limitIdx) { currentIdx=0; }; var inputElement = textInput[currentIdx]; inputElement.focus(); ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M16 4H8c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h8c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM4 6c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1zM20 6c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1s1-.45 1-1...
exports.Class = require("./lib/class"); exports.createLimitter = require("./lib/limitter"); exports.StringUtil = require("./lib/string_util"); exports.DateTime = require("./lib/date_time");
// CodeMirror version 2.32 // // All functions that need access to the editor's state live inside // the CodeMirror function. Below that, at the bottom of the file, // some utilities are defined. // CodeMirror is the only global var we claim var CodeMirror = (function() { // This is the function that produces an edi...
//------------------------------------- Waiting for the entire site to load ------------------------------------------------// jQuery(window).load(function() { jQuery("#loaderInner").fadeOut(); jQuery("#loader").delay(400).fadeOut("slow"); $('.teaserTitle ').stop().animate({marginTop :'330px', opacity:"1"}, 1...
/** * Match Object * * Plan: * > Conducts one round between two agents. * > Requirements: * * 1) Must take the two agents and the payoff matrix as inputs. * 2) Must call Agent.nextMove() * 3) Must include a run() function * * Can I pass the history in as a parameter to nextMove(), i.e., Agent.nextMove(his...
// http-response-error-filter.js const http = require("http"); const arccore = require("@encapsule/arccore"); const serializeResponseFilter = require("./http-response-serialize-filter"); const httpResponseErrorRequestSpec = require("./iospecs/http-response-error-request-spec"); var factoryResponse = arccore.filter.cr...
module.exports = [ require('../../success/webpack.config'), require('../../success/webpack.config'), require('../../module-not-found-errors/webpack.config') ];
// This test written in mocha+should.js var should = require('./init.js'); var jdb = require('../'); var DataSource = jdb.DataSource; var createPromiseCallback = require('../lib/utils.js').createPromiseCallback; var db, tmp, Book, Chapter, Author, Reader; var Category, Job; var Picture, PictureLink; var Person, Addres...
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey * http://lehni.org/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ module('Layer...
'use strict'; angular.module('footieApp') .directive('helloWorld', function() { return { restrict: 'AE', replace: 'true', template: '<h3>Hello World!!</h3>' }; });
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.eventMap = undefined; var _global = require('global'); exports.default = { alt: false, bubbles: true, button: 0, cancelable: true, clientX: 0, clientY: 0, ctrl: false, detail: 1, key: '13', isTrusted: true, m...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports["default"] = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/...
"use strict"; describe('Repository', function() { require("./init").spec(); require("./ref").spec(); require("./update_index").spec(); require("./add").spec(); require("./remove").spec(); require("./move").spec(); require("./contents").spec(); require("./commit").spec(); require("./...
/** * The MIT License (MIT) * * Copyright (c) 2014 Schmoopiie * * 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, ...
/** * Given a list of blocks, determine if a provided block * is the first child of its parent */ import siblingsOf from './siblingsOf' export default function(list, block, delta) { let siblings = siblingsOf(list, block) let index = siblings.indexOf(block) return index !== -1 ? siblings[index + delta] : nul...
const path = require('path'); module.exports = { root: true, extends: [ 'eslint:recommended', 'prettier', 'plugin:import/errors', 'plugin:qunit/recommended', ], plugins: [ 'ember-internal', 'prettier', 'import', 'qunit', ], rules: { 'semi': 'error', 'no-unused-vars':...
/** * angular-strap * @version v2.1.7 - 2015-10-19 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes (olivier@mg-crea.com) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('mgcrea.ngStrap.tooltip').run(['$templateCache', function($templateCach...
var songs = []; // Constructor function SongInMem(song) { // always initialize all instance properties this.username = song.username; this.title = song.title; this.artist = song.artist; this.text = song.text; this._id = null; } // class methods SongInMem.prototype.save = function(callback) { if (this....
app.controller('RentalController', ['$scope', 'EquipmentService', 'RentalService', function ($scope, equipmentService, rentalService) { $scope.model = { showCart: false, equipments: null, cart: [] }; $scope.rent = function (equipment) { cons...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createMeeting } from '../../../redux/meetings'; import MeetingEditor from './MeetingEditor'; class MeetingEditorContainer extends Component { render() { return ( <MeetingEditor isNew={true} onSave={(de...
/* global it */ /* global describe */ 'use strict'; const Chai = require('chai'); const expect = Chai.expect; const valydet = require('../lib/valydet'); describe('default attribute test cases', () => { let UserSchema = new valydet.Schema({ id: { type: 'alphaNumeric', default: 1, required: tru...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { Menu: '菜单', 'Menu Items': '菜单项', 'Menu key is exists': '菜单KEY已经存在' };
/** @jsx React.DOM */ var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; var QuoteStream = React.createClass({displayName: 'QuoteStream', load: function() { $.ajax({ url: this.props.url, dataType: 'json', success: function(data) { this.setSta...
define(['text!templates/credits.html', 'text!templates/overlay.html', 'text!templates/popup.html', 'text!templates/popup_arrow.html', 'text!templates/popup_simple.html', 'text!templates/metodologia.html', 'text!templates/sql/click_feature.txt', 'text!templates/sql/click_feature_winner.txt', ...
/** * This module is the base for all controls that have the primary task of displaying either text, a graphic or both to the * user. * * @module jidejs/ui/control/Labeled * @abstract * @extends module:jidejs/ui/Control */ define([ './../../base/Class', './../../base/Util', './../../base/ObservableProperty', '....
function renderRadar() { var element = "detailSVG"; if (d3.select("#" + element).size() == 0) { d3.select(outerElement) .append("svg") .attr("id", element); } element = "#" + element; var radarData = getRadarData(); if (radarData.length == 0) { return d3.select(element).selectAll("*").remove...