code
stringlengths
2
1.05M
// Regular expression that matches all symbols in the `Meroitic_Cursive` script as per Unicode v9.0.0: /\uD802[\uDDA0-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDDFF]/;
frappe.ui.Filter = class { constructor(opts) { $.extend(this, opts); if (this.value === null || this.value === undefined) { this.value = ''; } this.utils = frappe.ui.filter_utils; this.conditions = [ ["=", __("Equals")], ["!=", __("Not Equals")], ["like", __("Like")], ["not like", __("Not Lik...
goog.provide('ngeo.StateManager'); goog.require('goog.asserts'); goog.require('goog.storage.mechanism.HTML5LocalStorage'); goog.require('ngeo'); goog.require('ngeo.Location'); /** * Provides a service for managing the application state. * The application state is written to both the URL and the local storage. * @...
/*!! * @atlassian/aui - Atlassian User Interface Framework * @version v7.9.0-alpha-3 * @link https://docs.atlassian.com/aui/latest/ * @license SEE LICENSE IN LICENSE.md * @author Atlassian Pty Ltd. */ // src/js/aui/internal/deprecation/deprecated-adg2-icons.js (typeof window === 'undefined' ? global : window).__a...
import Loader from 'loader/Loader.js'; export default class LoaderTest { constructor (key, url) { this.loader = new Loader(); this.loader.path = 'assets/'; this.loader.binary(key, url, (key, data) => { this.checkFile(key, data); }); } start () { this.loader.start(); ...
'use strict'; // Local dependencies var command = require('../lib/command'); /** * A HELP request asks for human-readable information from the server. The * server may accept this request with code 211 or 214, or reject it with code * 502. * * A HELP request may include a parameter. The meaning of the parameter ...
/*! * Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file. */ import '@webex/internal-plugin-conversation'; import '@webex/internal-plugin-mercury'; import {registerPlugin} from '@webex/webex-core'; import Memberships from './memberships'; registerPlugin('memberships', Memberships); export default Membe...
import lodash from 'lodash'; import { mergeEnvironment } from './config.js'; let config = mergeEnvironment(); let karmaReporters = ['progress']; karmaReporters.push('coverage'); // Karma configuration module.exports = function (karmaConfig) { let karmaFiles = []; karmaFiles.push('karma.setup.js'); karmaFiles....
"use strict"; const conf = require('./protractor.conf.js').config; const JUnitXmlReporter = require('jasmine-reporters').JUnitXmlReporter; const oldPrepare = conf.onPrepare; conf.onPrepare = onPrepare; conf.seleniumAddress = 'http://localhost:4444/wd/hub'; function onPrepare(){ if(oldPrepare) oldPrepare(); cons...
<<<<<<< HEAD <<<<<<< HEAD var assert = require('assert'), nodeuuid = require('../uuid'), uuidjs = require('uuid-js'), libuuid = require('uuid').generate, util = require('util'), exec = require('child_process').exec, os = require('os'); // On Mac Os X / macports there's only the ossp-uuid packag...
const rp = require('request-promise'); /** * Class representing a Find API */ class FindAPI { /** * Create a new Find API * @param {AuthAPI} Auth - Authorization to the API */ constructor(Auth) { this.Auth = Auth; this.url = `${this.Auth.getHost()}/fmi/data/v1/databases/${th...
// // パズル固有スクリプト部 マカロ版 makaro.js // (function(pidlist, classbase){ if(typeof module==='object' && module.exports){module.exports = [pidlist, classbase];} else{ pzpr.classmgr.makeCustom(pidlist, classbase);} }( ['makaro'], { //--------------------------------------------------------- // マウス入力系 MouseEvent:{ inputModes...
{ test.equal( scale .scalePow() .domain([0, 9]) .tickFormat(10, "")(2.1), "2" ); test.equal( scale .scalePow() .domain([0, 9]) .tickFormat(100, "")(2.01), "2" ); test.equal( scale .scalePow() .domain([0, 9]) .tickFormat(100, "")(2.11), ...
"use strict"; var appRoot = process.cwd(); var assert = require('assert'); var sinon = require('sinon'); var Promise = require('bluebird'); var Journal = require(`${appRoot}/journal.js`); module.exports = function() { describe('error handling', function() { it('should throw an error when given an invali...
import MatchDialog from './src/MatchDialog' /* istanbul ignore next */ MatchDialog.install = function(Vue) { Vue.component(MatchDialog.name, MatchDialog); }; export default MatchDialog;
function randomElementOf(theArray) { return theArray[Math.floor(Math.random() * theArray.length)]; } // close function mathematicians = [{ "name" : "Galileo", "des": "You cannot stand devotion to archaic works that do not stand up to emprical evidence. You may go along to get along, but you'll mutter the tru...
/* * jQuery Mobile Framework : "listview" plugin * Copyright (c) jQuery Project * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function($, undefined) { //Keeps track of the number of lists per page UID //This allows support for multiple nested list in the same page //htt...
var Plotly = require('@lib/index'); var Lib = require('@src/lib'); var d3 = require('d3'); var createGraphDiv = require('../assets/create_graph_div'); var destroyGraphDiv = require('../assets/destroy_graph_div'); var failTest = require('../assets/fail_test'); var mouseEvent = require('../assets/mouse_event'); var clic...
version https://git-lfs.github.com/spec/v1 oid sha256:e847cb39793f726908e51e499c618101a112c1fc489793b0b330c49fba2928c8 size 48203
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
/* * @Author: Picker * @Date: 2017-05-27 11:04:54 * @Last Modified by: Picker * @Last Modified time: 2017-05-27 15:27:33 */ import { v4 } from 'uuid'; /** * 基础组件模型 * 其他组件模型均需要继承自该模型 */ export default class BaseComponent { constructor(options) { this.cid = v4(); this.attrs = { '@click.native.stop': `_...
Template.server_info.events({ 'click button.stripe-button': function(e, t){ // e = event, t = template e.preventDefault(); var params = this; var rate = this.rate; var serverName = this.serverName; var serverOwner = this.serverOwner; console.log('Client rate ' + rate); var checkout ...
// import Gallery from '../index'; import expect from 'expect'; // import { shallow } from 'enzyme'; // import React from 'react'; describe('<Gallery />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(false); }); });
const ngdocPackage = require('./'); const Dgeni = require('dgeni'); const mockLog = require('dgeni/lib/mocks/log'); describe('ngdoc package', () => { it("should be instance of Package", () => { expect(ngdocPackage instanceof Dgeni.Package).toBeTruthy(); }); function runDgeni(docs) { const testPackage ...
var React = require('react'); var UI = require('UI'); var View = UI.View; var Content = UI.Content; var List = UI.List; var Grid = UI.Grid; var Card = UI.Card; var Icon = UI.Icon.Icon; var Badge = UI.Badge.Badge; var Button = UI.Button.Button; var SHOW_NONE_BUTTON = 0; var SHOW_CALLIN_BUTTON = 1; var SHOW_CALLOUT_BU...
$(document).ready(function () { var enviroment = 'production'; if (enviroment == 'local') { url = 'http://localhost/guestRegistration/settings.php'; urlajax = 'http://localhost/guestRegistration/settings/core/ajax.php'; // urlajaxlive = 'http://localhost/onaf3/settings/core/live_report....
import Ember from "ember"; import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('file-menu', 'Integration | Component | file menu', { integration: true, beforeEach() { this.addFileCalled = false; this.renameFileCalled = false; this.re...
!function(w,d){ var extras = { _el:function (name){ return document.createElement(name); }, c_node:function(data,clb,selected,id,state){ var li = this._el('li') ,d = this._el('div') ,node_text = this._el('span') ,l = this._el('span') ,contain...
import React, { Component } from 'react' import { Carousel } from 'semantic.js' export default class Rtl extends Component { render() { const settings = { dots: true, infinite: true, slidesToShow: 3, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, rtl: true ...
// Make sure we don't re-inject if (!window.ssSmugmugForChromeAtStart) { window.ssSmugmugForChromeAtStart = true; /** * Inject our tweak JS into the DOM, along with any information it needs from us to get started (since it can't call chrome extension APIs). * Note that the DOM is completely empty at this point,...
var monad = require('../monad'); var monoid = require('../monoid'); monad(Array, { // map: already defined in Array of: function(value) { return [value]; }, ap: function(other) { var ret = []; this.forEach(function(f) { other.forEach(function(x) { ret.push(f(x)); }); }); ...
export default { plugins : {}, /** push ( name: String ) Return Type: void Description: 查看是否存在指定插件 URL doc: http://amaple.org/###### */ has ( name ) { return !!this.plugins [ name ]; }, /** push ( name: String, plugin: Object|Function ) Return Type: void Description: 添加插件 ...
(function() { angular .module('meanApp') .controller('homeCtrl', homeCtrl); homeCtrl.$inject = ['authentication', '$routeParams', '$location'] function homeCtrl (authentication, $routeParams, $location) { console.log('Home controller is running'); } })();
var Config = require('./config.js'); var URL = require('url'); var Parse = require('parse').Parse; function Api(cfg) { if (typeof this !== 'object') { throw new TypeError('Api must be constructed via new'); } if (Config.keys[cfg]) { this.parseAppID = Config.keys[cfg].parseAppID; t...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var logger = require('../util/logger'); var db = require('../util/db'); var mongodb = require("mongodb"); var Rx_1 = require("rxjs/Rx"); var util = require("util"); var SensorModel = (function () { function SensorModel() { this._sc...
'use strict'; var router = require('koa-router')(); module.exports = function (app) { app.use(router.routes()); }; router.get('/api', function *(next) { this.body = 'return some documentation'; });
//http://www.rejoicealways.net/lcu-semesters/fall2010/mat1302/Eigenmath.pdf //EigenMath Manual const utils = require("../utils.js"); const Algebrite = require("./Interpreters/Algebrite.js"); const Jimp = require("jimp"); const helpMain = "```" + `MiniAlpha Module Help /minialpha <expression> Examples: integral ...
import './Index.css'; import React from 'react'; import {render} from 'react-dom'; import {deepOrange500} from 'material-ui/styles/colors'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvid...
c['3378']=[['3379',"Properties","topic_000000000000006C_props--.html",1]];
/* * Copyright (c) 2016 airbug Inc. http://airbug.com * * bugcore may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@TestFile //@...
$(document).ready(function() { $('.count').each(function() { $(this).prop('Counter', 0).animate({ Counter: $(this).text() }, { duration: 4000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now).toLocaleString('en')); ...
(function() { var Batman, __slice = [].slice; Batman = function() { var mixins; mixins = 1 <= arguments.length ? __slice.call(arguments, 0) : []; return (function(func, args, ctor) { ctor.prototype = func.prototype; var child = new ctor, result = func.apply(child, args); return Ob...
// A module that exports a single function that accepts a function as an argument. // The function specified will only be called when the DOM has completely been loaded, // or will be called immediately if the DOM has already been loaded. The implementation // of this module comes directly from the jQuery implementatio...
"use strict"; const _ = require('lodash'); const config = require('config'); const GitHubApi = require("github"); module.exports = function(sequelize, DataTypes) { var Repository = sequelize.define("Repository", { owner: { type: DataTypes.STRING, allowNull: false }, name: { type: DataT...
var webpack = require('webpack'); var path = require('path'); module.exports = { devtool: 'source-map', entry: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', './app/index.jsx', ], output: { path: __dirname + '/app/dist', filename: 'bundle.js', publicPath:...
export const config = { redditUrl: 'http://www.reddit.com/', popularSubs: 'subreddits/popular.json', subredditDetail: 'r/${subreddit}.json', comments: 'r/${subreddit}/comments/${commentsId}.json' }; export function AppConfig() { return config; }
if (!process.env.token) { console.log('Error: Specify token in environment'); process.exit(1); } var Botkit = require('./lib/Botkit.js'); var os = require('os'); var request = require('request'); var controller = Botkit.slackbot({ debug: true, }); var bot = controller.spawn({ token: process.env.token...
/* global require, describe, it */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Matrix data structure: matrix = require( 'dstructs-matrix' ), // Check whether an element is a finite number isFiniteNumber = require( 'validate.io-finite' ), // Validate a value is NaN: i...
describe("Integration", function() { describe("Run integration multiple times", function() { for(i=1; i<=5; i++) { describe("Try "+i, function() { var fake_api = new vk.FakeAPI() var trav = new vk.Traverser(function(id, is_detailed, on_result) { var friends = fake_api.getFriends(id, is_detailed) ...
#!/usr/local/bin/node var Jarbas = require('./core/jarbas.js'); var pars = process.argv.slice(2); if (pars.length) { Jarbas.doThis(pars.join(' ')); } else { Jarbas.salute(); Jarbas.toWork(); }
import { validateAndFix } from "../src/svgo"; import test from "tape"; test("fills essential plugins when empty", function(t) { let opts = {}; validateAndFix(opts); t.equal(opts.plugins.length, 3); t.end(); }); test("enable disabled essential plugins", function(t) { let opts = { full: true, plugins:...
import React from 'react'; import { View, Image, TouchableOpacity } from 'react-native'; import navBarStyles from '../../styles/create/navBarStyles'; import TextOpenSans from '../utils/TextOpenSans'; import arrowLeft from '../../../assets/arrow-left.png'; const propTypes = { progress: React.PropTypes.number, navig...
"use strict"; global.sinon = require('sinon'); global.chai = require('chai'); global.should = require('chai').should(); global.expect = require('chai').expect; global.AssertionError = require('chai').AssertionError; global.swallow = function (thrower) { try { thrower(); } catch (e) {} }; var sinonChai = ...
/** * @package Graph * @file GraphSerializer.js * @author Nagy Zoltán (NAZRAAI.ELTE) <abesto0@gmail.com> * @license Apache License, Version 2.0 * * Serialize a graph (model and coordinates from the UI) into JSON * * Copyright 2011 Nagy Zoltán * Licensed under the Apache License, Version 2.0 (the "License"); *...
/** * @since 2019-09-16 07:53 * @author vivaxy */ import React, { Component } from 'react'; export default class Child2 extends Component { render() { return <div>{this.props.name}</div>; } }
/** * @fileoverview Tests for no-redundant-should-component-update */ 'use strict'; // ----------------------------------------------------------------------------- // Requirements // ----------------------------------------------------------------------------- const rule = require('../../../lib/rules/no-redundant...
/** * Event emitter mixin. This will add emitter properties to an object so that * it can emit events, and have others listen for them. Based on * [node.js event emitter](https://github.com/joyent/node/blob/master/lib/events.js) * * @class EventEmitter * @constructor */ var EventEmitter = function() { this._...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.session = exports.passport = exports.controllers = exports.connect = undefined; var _connect = require('./connect'); var _connect2 = _interopRequireDefault(_connect); var _controllers = require('./controllers'); var _controllers...
(function(window, document, Sync, undefined) { // no strict in ie :) "use strict"; if (document.addEventListener) return; var eventsMap = { click: { type: 'MouseEvent', targets: { Element: true }, bubbles: true, cancelable: true }, mousedown: { type: 'Mo...
// require("./jquery_import"); module.exports = function (config) { // This is the default webpack config defined in the `../webpack.config.js` // modify as you need. };
(function() { 'use strict'; var app = angular.module('formlyExample', ['formly', 'formlyBootstrap']); app.run(function(formlyConfig) { formlyConfig.setType({ name: 'input', templateUrl: 'input.html' }); }); app.controller('MainCtrl', function MainCtrl() { ...
import React, { Component, PropTypes } from 'react'; import { DISPLAY_NAME_PREFIX } from '../../constants'; import findBy from '../../utils/find-by'; import BaseCollectionHelper from '../BaseCollectionHelper'; // This can't be an SFC because it has the potential to return `null`. class Some extends Component { re...
// 1.引入并使用 vuex import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) // 2.增加一个 state 常量对象 const state = { count: 1 } // 3. 加入两个改变state 的方法 const mutations = { add(state, n) { state.count += n; }, reduce(state) { state.count --; } } // 4. 封装代码,让外部可以引用 export default new Vuex.Store({ state,...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({printNotes:"Introdu\u00efu les notes aqu\u00ed",printDisclaimer:"\u00f3_Directions are provided for planning purposes only and are subject to \x3ca href\x3d...
// eslint-disable-next-line no-unused-vars, import/no-unresolved const lib = require("different_node_module");
const _ = require('lodash'); const $ = require('jquery'); class InputReplacementService { /** * Input replacement service * @param {PulsarFormComponent} pulsarFormComponent */ constructor ( pulsarFormComponent, ) { this.pulsarFormComponent = pulsarFormComponent; } /*...
var iw = 1000; var ih = 600; var h = 32; var r = 18; var images = { 'wall':{'src':"wall.png", 'w':h, 'h':h}, 'floor':{'src':"floor.png", 'w':32, 'h':32}, 'dungeon':{'src':"input_dungeon.png"} }; var image_promise = function(image){ return new Promise(function(resolve, reject) { var img = document.createElement(...
module.exports = require('./lib/bos-middleware');
import Team from "./Team"; const createTeam = () => new Team("id", "owner", "name"); const areTeamsEqual = (team1, team2) => team1.id === team2.id && team1.owner === team2.owner && team1.name === team2.name; test("Given a team when calling Object.isFrozen then returns true", () => { const team = createTeam();...
function Magazine() { this.deleteMagazine = function(magazine_id) { var token = $("input[name=csrfmiddlewaretoken]").val(); if ( confirm("Are you sure you want to delete this magazine?") ) { $.post("/myreadings/magazine/"+magazine_id+"/delete/", {'csrfmiddlewaretoken': token}, function(retData){location.relo...
$(function() { var $wrapper = $('#wrapper'); var popupView = new Diccal.PopupView(); popupView.render($wrapper); $wrapper.on('click', '.displayWindowId', function(event) { event.preventDefault(); /* Act on the event */ // Todo: Viewのやることじゃない…… popupView.openCalibration(...
/* * Copyright 2016 Rethink Robotics * * Copyright 2016 Chris Smith * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * ...
'use strict'; angular.module('demo', ['ui.router.grant']) .controller('DemoController', ['$scope', 'faker', function($scope, faker) { var scope = this; scope.roles = { user: false, admin: false }; scope.toggleRole = function(role) { scope.roles[role] = !scope.roles[role]; faker[role](scope....
import { timeAgo } from 'emberjs-feed-wrangler/helpers/time-ago'; module('TimeAgoHelper'); // Replace this with your real tests. test('it works', function() { var result = timeAgo(42); ok(result); });
var Marionette = require('backbone.marionette'); var itemView = Marionette.ItemView.extend({ template: require('../../templates/video_small.hbs'), initialize: function() { this.listenTo(this.model, 'change', this.render); }, events: { 'click': 'showDetails' }, showDetails: func...
'use strict'; /* Controllers */ angular.module('myApp.controllers', []) .controller('LandingPageController', [function() { }]) .controller('WaitlistController', ['$scope', 'partyService', 'textMessageService', 'authService', function($scope, partyService, textMessageService, authService) { // Bind user's p...
$(function(){ var timer; $('#start').click(function() { $("#saveDialog").fadeOut(); timer = setInterval( updateTime, 100); }); $('#stop').click(function(){ clearInterval(timer); saveDialog(); updateDisplay(); }); }); var h = 0; var m = 15; var s = 0; var ms = 0 function updateTime() { ++ms; if( ms =...
import ArrayLimit from './array-limit'; export default ArrayLimit;
const {app} = require('electron') const roles = { about: { get label () { return process.platform === 'linux' ? 'About' : `About ${app.getName()}` } }, close: { label: process.platform === 'darwin' ? 'Close Window' : 'Close', accelerator: 'CommandOrControl+W', windowMethod: 'close' },...
/* */ 'use strict'; Object.defineProperty(exports, "__esModule", {value: true}); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixi...
import React from 'react'; import classnames from 'classnames'; import styles from './SettingsPopup.pcss'; import {Modal} from 'react-overlays'; import {Button} from './Button'; export class SettingsPopup extends React.Component { static propTypes = { availableFrameworks: React.PropTypes.array.isRequired,...
// Download the Node helper library from twilio.com/docs/node/install // These consts are your accountSid and authToken from https://www.twilio.com/console // To set up environmental variables, see http://twil.io/secure const accountSid = process.env.TWILIO_ACCOUNT_SID; const authToken = process.env.TWILIO_AUTH_TOKEN; ...
const width = 600; const height = 600; const radius = 5; const nodeCount = 1000; const anim = 50; var draw = SVG('svgCanvas').size(width, height); var nodeList = []; var slider1 = document.getElementById("range1"); var slider2 = document.getElementById("range2"); var slider3 = document.getElementById("range3"); var...
'use strict'; var jwt = require('jsonwebtoken'); var DEFAULT_ALGORITHM = 'HS256'; var VALID_ALGORITHMS = ['HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512']; var SECRET_KEY_MIN_LENGTH = 6; // private fields var _secretKey; var _algorithm; var _inited; /* [private static function] C...
var fullMonth = require('./day'); var month = require('./month'); var zeller = require('./zellers'); var _ = require('lodash'); formatMonths = function(year) { var monthArr = []; var monthTitles; var chunkedArr = []; var yearArr = []; var dayArr = [] var numWeekArr = []; //for each month in year. Call t...
const path = require('path'); function defaultIndexTemplate(filePaths) { const exportEntries = filePaths.map((filePath) => { const basename = path.basename(filePath, path.extname(filePath)); const exportName = /^\d/.test(basename) ? `Svg${basename}` : basename; return `export { default as ${exportName} }...
const hexFont = [ 0xF0, 0x90, 0x90, 0x90, 0xF0, // 0 0x20, 0x60, 0x20, 0x20, 0x70, // 1 0xF0, 0x10, 0xF0, 0x80, 0xF0, // 2 0xF0, 0x10, 0xF0, 0x10, 0xF0, // 3 0x90, 0x90, 0xF0, 0x10, 0x10, // 4 0xF0, 0x80, 0xF0, 0x10, 0xF0, // 5 0xF0, 0x80, 0xF0, 0x90, 0xF0, // 6 0xF0, 0x10, 0x20, 0x40, 0...
'use strict'; const manualApiClient = require('../app/services/manualApiClient.server.services'); const config = require('../config/config'); const should = require('should'); const nock = require('nock'); describe('The manualApiClient service', () => { let manualApiEndpointMock, responseBodies, email; be...
#! /usr/bin/env node require('colors'); var fs = require('fs'), license = require('./license.js'), _ = require('lodash'); var configPath = process.cwd() + '/license.json'; var config = {}; if (fs.existsSync(configPath)) { config = require(configPath); } else { console.log('No license.json found'.yello...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { isAccessCodeGenerated, isAccessCodePending } from '../../../../../app/shared/reservation-access-code/helpers'; import TooltipOverlay from '../../../../common/tooltip/TooltipOverlay'; im...
/** * @module ember-flexberry */ import Ember from 'ember'; export default Ember.Component.extend({ module: 'message', classNameBindings: ['cssClass'], visible: true, floating: false, compact: false, attached: false, closeable: false, type: null, color: null, size: null, icon: null, title: n...
var assert = require("assert"), request = require("request"), zlib = require("zlib"), HttpCache = require("./setup").HttpCache, CacheServer = require("./cache-server") ; describe("http-cache", function() { var server, cache, ops; before(function(done) { opts = { rules: function(req, res, cb...
function FaveFood(){ } FaveFood.prototype.showText = function(){ } FaveFood.prototype.init = function(){ this.showText(); }
const destPath = require('../dest-path') test('Basic usage', () => { expect(destPath('foo/bar/baz.html')).toBe('bar/baz') }) test('Argument path has ./ at the head.', () => { expect(destPath('./foo/bar/baz.html')).toBe('bar/baz') })
var path = require('path') module.exports = function() { return { test: /\.js$/, loader: 'babel-loader', include: path.resolve(GULP_CONFIG.root.src, GULP_CONFIG.tasks.js.src), query: { "presets": ["es2015", "stage-1"], "plugins": [] } }; }
'use strict' const test = require('tape') const ApiWrapper = require('./api-wrapper') const registryMock = { model (modelName) { return {name: modelName} } } test('ApiWrapper', (t) => { const someModelMock = { name: 'some-model-name', attributesSerialize: [], schema: { tableName: 'some' } } const ...
var todoApp = angular.module('todo', ['ui.sortable']); todoApp.factory('todoAppStorage', function () { var STORAGE_ID = 'godo-angularjs'; return { get: function () { return JSON.parse(localStorage.getItem(STORAGE_ID)) || [ { description: "Walk t...
angular.module('teamformApp') //everything that changes view is in controller //everything that's an object is in the factory .controller("myProfileCtrl", ['$scope', '$state', '$stateParams', '$firebaseArray', '$firebaseObject', function ($scope, $state, $stateParams, $firebaseArray, $firebaseObject) { ...
var basePath = '/api'; var app = angular.module('adminApp'); app.controller('AccountController', [ '$routeParams', '$location', 'AuthService', 'ReferenceResource', 'AccountResource', 'RelationResource' , function($routeParams, $location, AuthService, ReferenceResource, AccountResource, RelationResource) { ...
const Bear = require(__dirname + '/../models/bear'); const handleError = require(__dirname + '/../lib/handle_error'); const router = module.exports = exports = require('koa-router')({ prefix: '/api' }); var koaBody = require('koa-body')(); router.post('/bears', koaBody, function *(next) { this.body = yield Bea...