code
stringlengths
2
1.05M
// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module', ecmaVersion: 8 }, env: { browser: true, es6: true, }, extends: 'eslint:recommended', plugins: [ 'html' ], rules: { yoda: 0, curly: 0, indent: [ "error...
import mod211 from './mod211'; var value=mod211+1; export default value;
SystemJS.config({ paths: { "@ignavia/draph/": "src/" }, devConfig: { "map": { "babel-plugin-transform-export-extensions": "npm:babel-plugin-transform-export-extensions@6.8.0", "babel-preset-stage-0": "npm:babel-preset-stage-0@6.5.0", "babel-regenerator-runtime": "npm:babel-regenerator-ru...
'use strict' let cli = require('heroku-cli-util') let co = require('co') function styledDrain (id, name, drain) { let output = `${id} (${name})` if (drain.extended) output = output + ` drain_id=${drain.extended.drain_id}` cli.log(output) } function * run (context, heroku) { const {partition} = require('lodas...
var mod = require('./index'); mod({ foo: 'other' });
function(head, req) { var ddoc = this, path = require("vendor/couchapp/lib/path").init(req); send('{"dateTimeFormat": "iso8601", "events": ['); var sep = ""; while(row = getRow()) { var doc = row.doc; var coordinates = null; if (doc.Latitude && doc.Longit...
version https://git-lfs.github.com/spec/v1 oid sha256:7b178c98098ef61e6ebfdc8b32169fd3dbcd6e75bf391a88fffde51be43dec8a size 129934
$(function() { var canvas = $("#canvas0").get(0); if (!canvas || !canvas.getContext || !canvas.getContext("2d")) alert("You must use a browser that supports HTML5 Canvas to run this demo."); function start() { var marioRef = new Firebase("https://drvirus.firebaseio.com/mario"); var marioController = ...
import { createStore, applyMiddleware, compose, combineReducers } from 'redux'; import thunk from 'redux-thunk'; import { createLogger } from 'redux-logger'; import { routerReducer, routerMiddleware } from 'react-router-redux'; import { i18n } from 'redux-pagan'; import history from '../libs/History'; import reducers ...
var vows = require('vows'); var assert = require('assert'); var suite = vows.describe('pop'); require('../env'); suite.addBatch({ 'pop' : { 'topic' : function () { return CBuffer; }, 'pop items' : function (CBuffer) { var tmp; tmp = CBuffer(1, 2, 3); assert.equal(tmp.pop(), 3); ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.6-master-810c4f3 */ function MdWhiteframeDirective(e){function a(a,m,n){var o=parseInt(n.mdWhiteframe,10)||i;(o>t||r>o)&&(e.warn("md-whiteframe attribute value is invalid. It should be a number between "+r+" and "+t,m[0]),o=i...
var audio = require("audio"), vec2 = require("vec2"), vec3 = require("vec3"), Component = require("./index"); var ComponentPrototype = Component.prototype, AudioSourcePrototype; module.exports = AudioSource; function AudioSource() { var _this = this; Component.call(this); this.offset...
var script_create; script_create = function () { if ($('.script_form').length) { $("#script_target_id").imagepicker( {show_label: true} ); } }; $(document).ready(script_create); $(document).on('page:load', script_create);
var async = require('async'); var colors = require('colors'); var pg = require('pg'); var types = require('pg').types; types.setTypeParser(1700, 'text', parseFloat); var _ = require('underscore'); var jwt = require('jsonwebtoken'); var pool = require('../../server.js').pool; var fs = require("fs"); var dir_1 = "/../.....
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor an...
// Include Desktop Specific JavaScript files here (or inside of your Desktop Controller, or differentiate based off App.mobile === false) require(["Filmtrik", "routers/AppRouter", "controllers/DesktopController", "jquery", "backbone", "marionette", "jqueryui", "bootstrap", "backbone.validateAll"], function (Filmt...
var flatten = require('arr-flatten'), ensureMap = require('ensure-map'), onFinished = require('on-finished'); module.exports = function(logger) { return function *(next) { var ctx = this; ctx.log = logger; onFinished(ctx.res, function() { ctx.log.debug({ res: ctx.res, req: ctx.req }, 'Respons...
// The MIT License (MIT) // Typed.js | Copyright (c) 2014 Matt Boldt | www.mattboldt.com // 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 limi...
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/** * Created by Prem on 11/07/17. */ let mongoose = require('mongoose'); let Schema = mongoose.Schema; let messages = new Schema({ from: { type: String, required: false, minLength: 1, trim: true }, to: { type: String, required: false, minLength: 1, trim: true }, message: ...
// /* global Feature, Scenario */ // Feature('Unregistered user can register using Github Auth') // Scenario('with unregistered user', (unregisteredUser, homePage) => { // // TODO: complete after researching redirect issue // // unregisteredUser.registers('timothy-tolley', 'ideology1') // // unregisteredUser.cl...
/*! * jQuery UI Focusable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: :focusable Selector //>>group: Core //>>description: Selects elements which can be focused. //>>docs: http://api.j...
import React from 'react'; import ReactDOM from 'react-dom'; import * as d3Node from '../d3/d3Node'; export default class Node extends React.Component { componentDidMount() { const el = ReactDOM.findDOMNode(this); d3Node.create(el, { width: '100%', height: '300px', }, this.props.data); } ...
"use strict"; var http = require('http'); var path = require('path'); var fs = require('fs'); var url = require('url'); var co = require('co'); var parse = require('./parse'); var dragon = require('./dragon'); var content_type = require('./content_type'); var logger = require('./tool/log'); var Mongo = require('./db/mo...
import React from 'react' import { render } from 'react-dom' import App from './end/App' import './index.css' render(<App />, document.getElementById('root'))
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
import React from 'react'; import Settings from 'material-ui/svg-icons/action/settings'; import MenuListItem from './MenuListItem'; import appActions from '../../appActions'; class SettingsMenuItems extends React.Component { handleThemeChange() { this.props.dispatch(appActions.themeChanged()); } handleToggl...
/* * Rea * by stagas * * MIT licenced */ var router = require('connect/lib/middleware/router') // modified version of creationix/stack function Stack() { var handle = function(req, res, next) { next() } ;[].slice.call(arguments).reverse().forEach(function(layer) { var child = handle handle = functio...
module.exports = { OK: 200, OK_NO_CONTENT: 204, BAD_REQUEST: 400, NOT_FOUND: 404, INTERNAL_SERVER_ERROR: 500 }
import parsePropertyValue from './../src/parse-property-value'; describe('parsePropertyValue', function () { it('should parse unit-less value', function () { const expectation = { unit: '', value: 100, output: '100', original: '100' }; expect(parsePropertyValue('100')).toEqual(ex...
'use strict'; var path = require('path'); var webpack = require('webpack'); var _ = require('lodash'); var common = require('./webpack.common.config'); var hot = _.cloneDeep(common); hot.entry.unshift( 'webpack-dev-server/client?http://localhost:8080', 'webpack/hot/only-dev-server' ); hot.output.public...
'use strict'; var chai = require('chai'); var expect = chai.expect; exports.basicSuperAgentRequestSuccess = function basicSuperAgentRequestSuccess(err, res, statusCode) { expect(err, 'should not have an err').to.not.exist; expect(res.status, 'should have the expected status').to.eql(statusCode || 200); expect(re...
var through = require('through'), gutil = require('gulp-util'), File = gutil.File, PluginError = gutil.PluginError, crypto = require('crypto'); module.exports = function(data){ var manifest = data; return through(function(file) { if(file.isNull()) return; if(file.isStream()){ return ...
;(function(undefined) { 'use strict'; /** * artoo core * =========== * * The main artoo namespace and its vital properties. */ // Checking whether a body exists var body; if ('document' in this) { body = document.getElementsByTagName('body')[0]; if (!body) { body = document.crea...
$(document).ready( function() { // Setup the datepickers $('#date_start').datepicker({ dateFormat: 'dd/mm/yy', minDate: 0, onSelect: function( selectedDate ) { $( "#end_date" ).datepicker( 'option', 'minDate', selectedDate ); } }); $('#end_date').datepicker({ dateFormat: 'dd/mm/yy' ...
// Generated by CoffeeScript 1.12.6 (function() { 'use strict'; module.exports = function(dd) { var errorHash; errorHash = dd.helper.requireSafe('lib/code/errors'); return dd.drive([ { it: "returns false if no errors found", i: [errorHash, ['title', dd.helper.f, 'name', true]], ...
describe("Thermostat", function() { var thermostat; beforeEach(function() { thermostat = new Thermostat(); }); it("starts with a temperature of 20 degrees", function() { expect(thermostat.getCurrentTemperature()).toEqual(20); }); it("increases the temperature with the up button", function() { ...
import {Command} from "./Command"; export class MaintainerCommand extends Command { constructor(instruction) { super(); this.instruction = instruction; } buildInstruction() { return `MAINTAINER ${this.instruction}`; } }
var fs = require('fs'); var should = require('should'); var jsdom = require('jsdom').jsdom; require('jsdom').defaultDocumentFeatures = { FetchExternalResources: false, ProcessExternalResources: false }; var TestUtils = require('./test_utils.js'); var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; var U...
// Given two paramaters, an integer(n), a list of Arrays with Objects that conatin a Host_id, Listing_id, Score, City // Build a function that helps display n amount of objects per page. // The list of objects are given in order of Score, from High to Low. // The objects must be displayed in order of highest score fir...
var path = require('path'), rootPath = path.normalize(__dirname + '/../..'); module.exports = { app: { name: "scape", url: "https://github.com/arabold/scape/", title: "Scape", description: "Responsive email editor based on ZURB's Ink boilerplate" }, root: rootPath, port: process.env.PORT || 3000 }
export { FunnelBar } from './FunnelBar';
define(['js/d3/d3.min.js', 'js/doT/doT.min.js'], function(d3, doT) { function composite(widthValue, heightValue, selectionValue, xdomain) { var margin = {top: 10, right: 0, bottom: ((heightValue - 10) || 10), left: 0}, width = (widthValue || 960) - margin.left - margin.right, height...
module.exports = function ({ $lookup }) { return { object: function () { return function (object, $buffer, $start) { let $i = [] $buffer[$start++] = object.nudge & 0xff for ($i[0] = 0; $i[0] < object.array.length; $i[0]++) { $...
goog.provide('API.Client.FreeStyleProjectactions'); /** * @record */ API.Client.FreeStyleProjectactions = function() {} /** * @type {!string} * @export */ API.Client.FreeStyleProjectactions.prototype._class;
import fs from 'fs'; // var storePath = path.join(path.dirname(fs.realpathSync(__filename)), 'store'); function nodeModules(storePath){ let files = []; const webpackModules = function(path){ return require(storePath+"/"+path) } webpackModules.keys = () => files webpackModules.set = functi...
import React from 'react'; import classnames from 'classnames'; import styles from './styles.css'; export default () => ( <span> <span className={styles.dot}>.</span> <span className={classnames(styles.dot, styles.dotTwo)}>.</span> <span className={classnames(styles.dot, styles.dotThree)}>.</span> </sp...
function SolverState(repulsion, wholeNumber, attraction, limit) { this.REPULSION = repulsion; this.WHOLENUMBER = wholeNumber; this.ATTRACTION = attraction; this.LIMIT = limit; }
/** * Created by Dzianis on 25/08/2016. */ import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' class Cell extends Component { static propTypes = { x: PropTypes.number.isRequired, y: PropTypes.number.isRequired, ball: PropTypes.any, onClick: PropTypes.func.isReq...
const assign = require('object-assign'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const baseConfig = require('./webpack.base.config.js'); const config = Object.assign(baseConfig, {}); Object.assign = assign; // No hot reload, just straight compiling. // Keep this in sync with webpack.config....
describe('bsdate', function() { beforeEach(function() { browser().navigateTo(mainUrl); }); it('should show editor and submit new value', function() { var s = '[ng-controller="DevBsdateCtrl"] '; expect(element(s+'a#minMax').css('display')).not().toBe('none'); expect(element(s+'a#minMax').text())...
var test = require('test'); var pass = false; try { require('b'); } catch (exception) { pass = true; } test.assert(pass, 'require does not fall back to relative modules when absolutes are not available.')
var through = require('through2'); var gutil = require('gulp-util'); var request = require('request'); var path = require('path'); var fs = require('fs'); var PluginError = gutil.PluginError; var green = gutil.colors.green; const PLUGIN_NAME = "gulp-file-upload"; function fileUpload(options) { var options = opt...
module.exports = function (grunt) { grunt.initConfig({ // Builds Sass sass: { dev: { options: { style: 'expanded', sourcemap: true, includePaths: [ 'govuk_modules/govuk_template/assets/stylesheets', 'govuk_modules/govuk_frontend_toolkit/styl...
console.log('Problem 4. Number of elements'); /*Write a function to count the number of div elements on the web page*/ function numberOfElements(){ var count = document.getElementsByTagName('div').length; console.log('There are ' + count + ' DIVs. in the HTML page'); } numberOfElements();
/** * Socket.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { attributes: { description: { type: 'string', required: false, defaultsTo: '' }, ...
/*! * Bootstrap collapse.js v5.0.0-alpha1 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' &&...
class SockJS { constructor(url, whitelist, options, mockOptions) { this.nextLoginState = true; this.url = url; this.whitelist = whitelist; this.options = options; SockJS.mockInstances.push(this); SockJS.currentMockInstance = this; let fn = () => { if (typeof this.onopen === 'functio...
import { connect } from "react-redux"; import LastUpdateInfo from "../components/lastUpdateInfo.js"; function mapStateToProps(state) { const { selectedSubreddit, postsBySubreddit } = state; const { lastUpdated } = postsBySubreddit[selectedSubreddit] || {}; return { lastUpdated }; } export def...
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * 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 createMesh = require('gl-mesh3d'); var parseColorScale = require('../../lib/gl_format_color').parseColorSca...
'use strict'; var S = require('..'); var eq = require('./internal/eq'); test('eitherToMaybe', function() { eq(typeof S.eitherToMaybe, 'function'); eq(S.eitherToMaybe.length, 1); eq(S.eitherToMaybe.toString(), 'eitherToMaybe :: Either a b -> Maybe b'); eq(S.eitherToMaybe(S.Left('Cannot divide by zero')), S...
"use strict"; /* tslint:disable */ var load_themed_styles_1 = require("@microsoft/load-themed-styles"); var styles = { pickerText: 'pickerText_56a98698', inputFocused: 'inputFocused_56a98698', pickerInput: 'pickerInput_56a98698', }; load_themed_styles_1.loadStyles([{ "rawString": ".pickerText_56a98698{displ...
import './field_group'; import '../dom'; frappe.provide('frappe.ui'); window.cur_dialog = null; frappe.ui.open_dialogs = []; frappe.ui.Dialog = class Dialog extends frappe.ui.FieldGroup { constructor(opts) { this.display = false; this.is_dialog = true; $.extend(this, { animate: true, size: null }, opts); ...
import React, { Component } from 'react'; class Page extends Component { render() { //console.log(this.props.entry) // logs the current state and the text entry //console.log(this.props.updateEntry) //logs the function itself return ( <div className="Page"> <div className="Welcome"> ...
"use strict" import Queue from "./queue" import PromiseSet from "./promise-set" export default function QueueConsumer(queue){ this.__queue = queue this.__doing = new PromiseSet() this.__done = ()=>{} } Object.assign(QueueConsumer.prototype, { start: function(consumer, concurrency=1){ for (let i=0; i<con...
'use strict'; module.exports = require('./driver.js');
var _; //globals /* This section uses a functional extension known as Underscore.js - http://documentcloud.github.com/underscore/ "Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extend...
import angular from 'angular'; import homeComponent from './home-component'; import homeConfig from './home-config'; import characterSelection from './directives/character-selection/index'; import queryBar from './directives/query-bar/index'; import characterDisplay from './directives/character-display/index'; require...
"use strict"; const Collection = require("../util/Collection"); const GuildChannel = require("./GuildChannel"); const Member = require("./Member"); /** * Represents a guild voice channel. See GuildChannel for more properties and methods. * @extends GuildChannel * @prop {Number?} bitrate The bitrate of the channel * @...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-...
const EventEmitter = require('events'); const Grid = require('../../../gamelib/grid/Grid.js'); const BaseCell = require('../../../gamelib/grid/BaseCell.js'); const Wall = require('./Wall.js'); const Mouse = require('./Mouse.js'); const Cat = require('./Cat.js'); const House = require('./House.js'); const Tra...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const bignumber_js_1 = require("bignumber.js"); const json2typescript_1 = require("json2typescript"); const DataConverter_1 = require("./DataConverter"); let WithdrawalData = class WithdrawalData { constru...
export default { type: 'document', name: 'documentActionsTest', title: 'Document actions', fields: [ { type: 'string', name: 'title', title: 'Title', }, ], }
"use strict"; const middleware = require("../index"); const httpMocks = require("node-mocks-http"); const sinon = require("sinon"); const assert = require("chai").assert; const req = httpMocks.createRequest({ headers: { Authorization: `Basic ${Buffer.from("username:password").toString( "base64" )}` ...
'use strict'; module.exports = { port: 443, db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/tekeisushi', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css', ], js: [ 'public/lib/ang...
import React from 'react'; import PropTypes from 'prop-types'; import { Table, Alert } from 'react-bootstrap'; import Card from './card'; import Loader from '../ui/loader'; const ProfileCards = (props) => { const renderCards = (cards) => { if (cards) { return Object.keys(cards).map(key => ( ...
'use strict'; const setup = require('./include/setup'); const sinon = require('sinon'); var git, sandbox; exports.setUp = function (done) { setup.restore(); sandbox = sinon.sandbox.create(); done(); }; exports.tearDown = function (done) { setup.restore(); sandbox.restore(); done(); }; exports.lo...
import {Inferno, Component} from './infernowrapper'; import {classNames} from './utils'; import {CharCounter} from './stateless/charcounter'; export default class extends Component { constructor(props) { super(props); this.state = { editing: false, inputLen: 0 }; ...
Template.userDiaryDetails.helpers({ joinWithDiaries: function() { var userDiary = this; var diary = Diaries.findOne({_id: userDiary.diary_id}); return _.extend(userDiary, _.omit(diary, '_id')); }, countDays: function() { var userDiary = this; var diary = UserDiaries.findOne({user_id : userDia...
function Toggle(id) { var e = document.getElementById(id).style; e.display = ( e.display != 'block' ) ? 'block' : 'none'; } function buttonToggle(where, showLabel, hideLabel, disp) { if(typeof(disp)==='undefined') disp = 'block'; where.value = (where.value == showLabel) ? hideLabel : showLabel; var e =...
version https://git-lfs.github.com/spec/v1 oid sha256:f6ad6d10b0d40075605ea2654b1c7897564f87bc9d310012369843bee9c5c814 size 1486
// Calculate the start and end values and store them into the TweenTarget objects var LoadValues = function (tweenData) { var targets = this.targets; var prop = tweenData.key; // console.log('--> LoadValues', prop); // Targets array: // 0: // ref: GameObject, // keys: { /...
console.log('main')
'use strict'; const gulp = require('gulp'); const spawn = require('child_process').spawn; const del = require('del'); const plugins = require('gulp-load-plugins')(); const babelConfig = { 'retainLines': true, plugins: ['transform-decorators-legacy'] }; gulp.task('clean', function () { return del(['dist/**']); ...
// A reference configuration file. exports.config = { // ----- How to setup Selenium ----- // // There are three ways to specify how to use Selenium. Specify one of the // following: // // 1. seleniumServerJar - to start Selenium Standalone locally. // 2. seleniumAddress - to connect to a Selenium server ...
'use strict'; describe('sector-component', function () { var controller, scope, backEndServer; beforeEach(function () { this.addMatchers({ toEqualData: function (expected) { return angular.equals(this.actual, expected); } }); }); befo...
'use strict'; var helpers = require('opent2t-testcase-helpers'); var uuidRegExMatch = /[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i; function runTranslatorTests(settings) { helpers.updateSettings(settings); var test = settings.test; var opent2t = settings.opent2t; var SchemaName = settings.s...
var requirejs = require('requirejs'); requirejs.config({ nodeRequire: require }); requirejs(["i18n/Localizer"], function (Localizer) { var localizer = new Localizer(); localizer.validateLiterals(); console.log(localizer.get("hello_world")); localizer.setLocale("ca"); console.log(localizer.get...
import _ from 'lodash' import m from 'mithril' import Templates from '../templates/index.js' export default class Home { constructor () { this.links = [ { href: 'https://mithril.js.org/', text: 'Mithril Docs' }, { href: 'https://github.com/jocodev1/mithril-cli', ...
import {inject, renderCss, space, face} from '../lib'; inject({ styles: { heading: { phone: { family: 'serif', fontWeight: 600, fontSize: 22, lineHeight: 30, fontSmoothing: 'antialiased', letterSpacing: '0.5px' }, default: { family: 'seri...
Ext.define('App.view.security.Profile', { extend: 'Ext.window.Window', alias: 'widget.profile', // height: 260, // width: 550, requires: [ 'App.util.Util', 'App.view.security.formProfile' ], layout: { align: 'stretch', type: 'vbox' }, title: 'User',...
var MongoClient = require('mongodb').MongoClient; var moment = require("moment"); var async = require("async"); var logger = require("winston"); var db = null; var queryAggregationCount = 0; var progressNotifier = null; exports.setDatabase = function(database) { db = database; }; exports.getDatabase = function() ...
//defining the searched words var searchWord1 = 'seksuaaliset vähemmistöt'; var searchWord2 = 'lhbt'; $(function () { // getting the pictures using finna api function getPictures(pictureSearch1, pictureSearch2) { console.log('getPictures'); $.ajax({ 'url': 'https://ap...
import React from 'react'; export default function TotalResults(props) { const number = props.number; function format(num) { let n = num.toString(), p = n.indexOf('.'); return n.replace(/\d(?=(?:\d{3})+(?:\.|$))/g, function ($0, i) { return p < 0 || i < p ? ($0 + ',') : $0; }); } return (...
Ext.define('OppUI.view.loadtestDashboard.loadtestsummary.groupreportfilter.LoadTestGroupReportFilter', { extend: 'Ext.form.FieldContainer', alias: 'widget.groupreportfilter', requires: [ 'OppUI.view.loadtestDashboard.loadtestsummary.groupreportfilter.LoadTestGroupReportFilterController', 'O...
(function($) { // Initilize tooltipster tooltips $('.tooltipster').tooltipster({ animation: 'fade', delay: 0, theme: 'tooltipster-donnie-dark', touchDevices: false, trigger: 'hover' }); // Add tooltip for topright corner avatar $('#top-user-image').tooltipster({ content: $('<span>'+donnie...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPosts } from '../actions'; import { Link } from 'react-router-dom'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts(); } renderPosts() { return _.map(this.props.posts, post => { re...
/** * flowplayer.playlist 3.0.7. Flowplayer JavaScript plugin. * * This file is part of Flowplayer, http://flowplayer.org * * Author: Tero Piirainen, <info@flowplayer.org> * Copyright (c) 2008 Flowplayer Ltd * * Dual licensed under MIT and GPL 2+ licenses * SEE: http://www.opensource.org/licenses * * Date:...
var fs = require('mz/fs'); var readFiles = require('read-files-promise'); var path = require('path'); var config = require('../config/config'); var util = require('../util'); var documentation = require('documentation'); var RSVP = require('rsvp'); /** * Takes a block of text and wraps URL into a Markdown link. * Fo...
import React, { Component, PropTypes as pt } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { asyncConnect } from 'redux-async-connect'; import Helmet from 'react-helmet'; import last from 'lodash/last'; import { mapStateToProps } from './ArchiveSelectors'; import { loa...