code
stringlengths
2
1.05M
define(['app', 'model/candidate'], function(App, CandidateCollection){ App.commands.setHandler('votePageDisplay', function(voter){ require(['views/vote', 'backbone'], function(VoteView, Backbone){ var list = new CandidateCollection(); list.fetch(); //Display only those candid...
"use strict"; var platform_browser_dynamic_1 = require('@angular/platform-browser-dynamic'); var app_module_1 = require('./app/app.module'); //enableProdMode(); //Uncomment for production document.addEventListener('WebComponentsReady', function () { platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModul...
'use strict'; var util = require('util'), errors = module.exports = {}; errors.BaseError = function() { var tmp = Error.apply(this, arguments); tmp.name = this.name = 'QMFError'; this.message = tmp.message; if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor); }; util.inherits(...
Slipmat.Views.LabelShow = Backbone.ModularView.extend({ tagName: "main", className: "group", template: JST["labels/show"], initialize: function (options) { this.router = options.router; this.listenTo(this.model, "sync change", this.render); }, events: { "submit": "addComment" }, render: ...
Meteor.startup(function () { // Notification email Router.route('/email/notification/:id?', { name: 'notification', where: 'server', action: function() { var notification = Herald.collection.findOne(this.params.id); var notificationContents = buildEmailNotification(notification)...
'use strict'; module.exports = { db: 'mongodb://lolo:tazkypass@dogen.mongohq.com:10048/todo-database', app: { title: 'TuDu - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callbac...
const WRAPPER = Symbol('wrapper'); /** * @function * @description Decorator function that convert a class method to a getter */ export default function getter( prototype, property, { initializer, value, get }, ) { return { configurable: true, enumerable: true, get() { if (!this[WRAPPER]) {...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global', './SplitContainerRenderer', 'sap/ui/core/Renderer'], function(jQuery, SplitContainerRenderer, Re...
import DS from 'ember-data'; import BackboneElement from 'ember-fhir/models/backbone-element'; const { belongsTo, hasMany } = DS; export default BackboneElement.extend({ resource: belongsTo('reference', { async: false }), param: hasMany('test-script-param', { async: true }) });
module.exports = function ( grunt ) { // Project configuration. grunt.initConfig({ pkg : grunt.file.readJSON( 'package.json' ), jshint : { options: { jshintrc: true }, files : ['src/javascripts/**/*.js'] }, browserify : { ...
'use strict'; const User = require('../../models/admin/user'), Role = require('../../models/admin/role'), page = require('../../util/page'), _ = require('lodash'); module.exports = class UserController { /** * Display a list of users. */ static index(req, res) { page(User, req).then(data => { res.rende...
/** * File * * @author Tijme Gommers <t.gommers@jetcat.nl> * @package server.helpers */ module.exports = { /** * @var Object */ fs: require('fs'), /** * File exists * * @param string Path to the file * @return boolean exists */ exists: function(file) { ...
/*! WebUploader 0.1.6 */ /** * @fileOverview 让内部各个部件的代码可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。 * * AMD API 内部的简单不完全实现,请忽略。只有当WebUploader被合并成一个文件的时候才会引入。 */ (function (root, factory) { var modules = {}, // 内部require, 简单不完全实现。 // https://github.com/amdjs/amdjs-api/wiki/...
// https://www.creare.co.uk/blog/js/js-eu-cookie-law-banner // Creare's 'Implied Consent' EU Cookie Law Banner v:2.4 // Conceived by Robert Kent, James Bavington & Tom Foyster var cookieDuration = 365; // Number of days before the cookie expires, and the banner reappears var cookieName = 'EuCookieLa...
// flow-typed signature: 715c8753230e19bbaff4d8c2ee503f1a // flow-typed version: <<STUB>>/babel-preset-stage-0_v^6.22.0/flow_v0.47.0 /** * This is an autogenerated libdef stub for: * * 'babel-preset-stage-0' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to shar...
$(document).ready(function() { // <editor-fold defaultstate="collapsed" desc="Fonctions globales"> function addAjaxLoading(element, id) { var loadingImage = $('#loading-image-path').attr('value'); element.parent('div').append('<img id="' + id + '" src="' + loadingImage + '" alt="loading" />'); ...
import copySitecoreLibraries from './tasks/copy-sitecore-libraries'; import deploy from './tasks/deploy'; import nugetRestore from './tasks/nuget-restore'; import publishProjects from './tasks/publish-projects'; import publishTDS from './tasks/publish-tds'; export { copySitecoreLibraries, deploy, nugetRestore, ...
'use strict' const path = require('path') const utils = require('./utils') const webpack = require('webpack') const config = require('../config') const merge = require('webpack-merge') const baseWebpackConfig = require('./webpack.base.conf') const CopyWebpackPlugin = require('copy-webpack-plugin') const HtmlWebpackPlug...
import {h, div, h1, h2} from '@cycle/dom' const view = props$ => { return props$.map(x => { return div('.page2', [ h1('.content-subhead', ['Page 2']), h1([`This is the second Page`]), h2(['Counter : ' + x]) ]) }); }; export default view
export const TYPE = { PUBLIC: 'public', LINK: 'link', USER: 'user', PRIVATE: 'private', }; export const SHARE_TYPE = { PUBLIC: 'public', LINK: 'link', USER: 'user', PRIVATE: 'private', };
Boom.SecretTrigger = function( params ){ this.type = params.type || Boom.Assets.world.ENTITY.MISSING; this.position = params.position; this.interactable = params.interactable || false; this.triggered = false; Boom.Entity.call(this, {name: 'TRIGGER_SECRET', }); }; Boom.SecretTrigger.prototype = Boom.inherit...
/* * fingerprintJS 0.5.4 - Fast browser fingerprint library * https://github.com/Valve/fingerprintjs * Copyright (c) 2013 Valentin Vasilyev (valentin.vasilyev@outlook.com) * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CO...
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import H1, { styles } from './index'; describe('<H1 />', () => { it('should correctly render children, when text', () => { const wrapper = shallow(<H1>Title</H1>); expect(wrapper.text()).to.equal('Title'); }); i...
'use strict'; var elements = require('../elements'); /** * Show the element (remove the class .hidden) * * @name Element#show * @method * */ /** * Show the elements (remove the class .hidden) * * @name ElementsArray#show * @method */ elements.addMethodWithoutArgumentsReturnThis('show'); /** * Hide the e...
// Copyright StrongLoop 2014 Arc.controller('ArcMainController', [ '$scope', 'ArcUserService', '$log', '$rootScope', 'LandingService', function($scope, ArcUserService, $log, $rootScope, LandingService){ $scope.suiteIA = { apps: [] }; //set help id for app modules $scope.$watch('suite...
Template.modalEditLanguages.events({ "submit form": function (event) { event.preventDefault(); var name = event.target["language-name"].value.trim(), project = event.target["project-id"].value; if (name) { Meteor.call('addLanguage', project, name, function (error, r...
var EventEmitter = require('events').EventEmitter; var util = require('util'); var MongoClient = require('mongodb').MongoClient; var Channel = require('./channel'); /** * Connection constructor. * * @param {String|Db} uri string or Db instance * @param {Object} mongo driver options * @api public */ function Conn...
/* jshint node: true */ 'use strict'; var DeployPluginBase = require('ember-cli-deploy-plugin'); var S3Client = require('./lib/aws-s3'); var CodeDeployClient = require('./lib/aws-codedeploy'); var path = require('path'); var minmatch = require('minimatch'); var Promise = require('ember-cli/lib/ext/promise'); module.exp...
require(['common', 'jquery.metisMenu', 'layui', 'layers',"tools","ajaxurl", 'text!/assets/popup/del-news.html', 'text!/assets/popup/clear-news.html','text!/assets/popup/shield-news.html'], function (common, undefined, layui, layers,tool,ajaxurl,delNews, clearNews, shieldNews) { var main = { /** * [...
import $ from 'jquery'; import ChromeExtensionMessageService from '../../../reuse/messageServiceDefinition'; /** * * @param {*} $scope * @param {*} $document * @param {*} $location * @param {ChromeExtensionMessageService} messageService * @param {*} analyticsService */ function MenuController($scope, $doc...
import * as actions from '../UserActions'; it('should setup loggingIn', () => { const action = actions.loggingIn(); const expected = { type: 'LOGGING_IN' }; expect(action).toEqual(expected); }); it('should setup loggedInSuccess', () => { const user = 'janesmith'; const action = actions.loggedInSuccess...
var page; var healthStore; var weightType; function pageLoaded(args) { page = args.object; weightType = HKObjectType.quantityTypeForIdentifier(HKQuantityTypeIdentifierBodyMass); healthStore = HKHealthStore.new(); requestPermissions(healthStore, [weightType], [weightType]); } exports.pageLoaded = pageLoa...
/** * 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. * * @flow * @format */ 'use strict'; const visit = require('graphql').visit; import type { Argument, Condition, Directive,...
var ip = require('ip'); var azure = require('azure-storage'); var osenv = require('osenv'); var Guid = require('guid'); //console.log(process.env.AZURE_STORAGE_ACCOUNT); //console.log(process.env.AZURE_STORAGE_ACCESS_KEY); // Some things are not reliably in the env, and have a fallback command: var h = osenv.hostname...
export const ic_format_paint_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3zm-2 ...
'use strict'; /** * @ngdoc function * @name gccdApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the itisforgirls */ angular.module('itisforgirls') .controller('AboutCtrl', function ($scope) { $scope.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; ...
const Sequelize = require('sequelize'), connection = require('./sequelize.js'); const attributes = { id: { type: Sequelize.UUID, primaryKey: true, defaultValue: Sequelize.UUIDV4 }, username: { type: Sequelize.STRING, allowNull: false, unique: true, validate: { is: /^[a-z0-...
var searchData= [ ['lib_2ehpp',['lib.hpp',['../lib_8hpp.html',1,'']]], ['lib_5f8hpp_2ejs',['lib_8hpp.js',['../lib__8hpp_8js.html',1,'']]] ];
// Generated by CoffeeScript 1.8.0 module.exports = (function(_this) { return function(stream, stdout, stderr) { var count, type; type = null; count = 0; return stream.on('readable', function() { var header, payload; while (true) { while (count > 0) { payload = stream.rea...
/** * Created by sam on 17/1/2. */ "use strict"; const mongoose = require('mongoose'); const SystemConfig = require('./config'); const { exceptionLogger: ExceptionLogger, dbMongoLogger : MongoLogger } = require('./logger'); const ProcessExitError = require('./error').ProcessExitError; const mongoConfig =...
~function () { /** * Create a new player. */ function Player(params) { params || (params = {}); for (var key in params) this[key] = params[key]; _createAnimation(this); _createMesh(this); _setThirdPersonCamera(this); this.score = 0; this.target = this.mesh.position.clone(); } Player.prototype...
"use strict"; /* exported deleteGroupOnClick */ function deleteGroupOnClick(event) { var name = ""; for(var i = 0; i < GROUPS.length; i++) { if(GROUPS[i].id === getAttribute(event, "id")) { name = GROUPS[i].name break; } } var aq = new ActionQueue([new Action(CONFIG.apiuri + "/group/" + encodeURIComp...
jQuery(document).ready( function (){ $('#ingresar').click( function () { var $usuario = $('input[name=usuario]'); var $pass = $('input[name=pass]'); //alert($usuario.val() + "-" + $pass.val()); //----// if ($usuari...
describe('Bikini.BikiniStore', function() { var TEST = { data : { firstName: 'Max', sureName: 'Mustermann', age: 33 } }; it('creating bikini store', function() { assert.isString(serverUrl, 'Server url is defined.'); assert.isFunction(Bi...
(function () { 'use strict'; var url = $('.cart-item-selector').data('variant-action'), stockMessage = $("#stockMessage"), totalPrice = $('#totalPrice'), selectedSKUID = $('#selectedVariantID'); $('.js-variant-selector').change(function () { var id = $(this).val(); ...
var inherits = require('inherits') var Stream = require('stream') function Leveler(fn) { Stream.call(this) this.readable = this.writable = true this.points = 0 this.reached = Object.create(null) this.level = 0 this.fn = fn || function(x) { return Math.floor(Math.floor(25 + Math.sqrt(625 + 100 * x)) / 5...
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function(window, undefined) { ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><circle cx="16.5" cy="2.38" r="2" /><path d="M24 11.88v-4.7l-5.05-2.14c-.97-.41-2.09-.06-2.65.84l-1 1.6c-.67 1.18-1.91 2.06-3.41 2.32l.06.06c.69.69 1.52 1.07 2.46 1.17.8-.42 1.52-.98 2.09-1.64l...
const router = require('express').Router() const { users } = require('./users') const { todos } = require('./todos') router.use('/', users) router.use('/', todos) module.exports = { routes : router }
// All symbols in the Supplemental Arrows-B block as per Unicode v5.0.0: [ '\u2900', '\u2901', '\u2902', '\u2903', '\u2904', '\u2905', '\u2906', '\u2907', '\u2908', '\u2909', '\u290A', '\u290B', '\u290C', '\u290D', '\u290E', '\u290F', '\u2910', '\u2911', '\u2912', '\u2913', '\u2914', '\u2915', '\...
import React, {Component, PropTypes} from 'react'; import moment from 'moment'; import theme from '../../Item/components/FieldsView.scss'; const tripHelps = { auto: 'Автомобиль', plane: 'Самолет', train: 'Поезд' }; export default class TripFields extends Component { static propTypes = { fields: PropTypes....
import React, { Component } from "react"; class PageHeader extends Component { render() { return ( <div> Page Header </div> ); } } export default PageHeader;
// Code borrowed from: // https://github.com/DockYard/ember-one-way-controls/blob/v2.0.0/addon/-private/dynamic-attribute-bindings.js import Mixin from '@ember/object/mixin'; export default Mixin.create({ attributeBindings: [], NON_ATTRIBUTE_BOUND_PROPS: ['class', 'classNames'], concatenatedProperties...
var autoprefixer = require('autoprefixer'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); var WatchMissingNodeModulesPl...
angular .module('sectorWeb.ctrl.reports', []) .controller('reportsCtrl', [ '$scope', '$location', 'reportsService', '$routeParams', function ($scope, $location, reportsService, $routeParams) { $scope.list = []; $scope.searchText = $routeParams.par...
var pins={}; module.exports={ setup:function(pin, direction, callback){ pins[pin]={value:0, direction:direction}; callback(null); }, read:function(pin, callback){ callback(null, pins[pin].value); }, write:function(pin, value, callback){ pins[pin].value=value; callback(null); } }
(function() { $(function() { $.getHash = function(url) { if (url) { return url.substring(url.indexOf("#") + 1); } else { return window.location.hash; } }; /* ```javascript unless Modernizr.input.placeholder $("input").each -> $(this).placeholder() unles...
'use strict'; /** * @ngdoc function * @name anyandgoApp.controller:MemosNewCtrl * @description * # MemosNewCtrl * Controller of the anyandgoApp */ angular.module('anyandgoApp') .controller('MemosNewCtrl', function ($scope, $routeParams, PeopleService, $interval) { if(typeof chatInterval !== 'undef...
var Type = require("@kaoscript/runtime").Type; module.exports = function() { var __ks_Foobar = {}; __ks_Foobar.__ks_func_foobar_0 = function() { }; __ks_Foobar._im_foobar = function(that) { var args = Array.prototype.slice.call(arguments, 1, arguments.length); if(args.length === 0) { return __ks_Foobar.__ks_...
const compose = require('koa-compose') const helmet = require('koa-helmet') const cors = require('kcors') const compress = require('koa-compress') const bodyParser = require('koa-bodyparser') const handleErrors = require('./errors') const middlewares = () => compose([ handleErrors(), // handle thrown or uncaught exc...
'use strict'; const commonTags = require('common-tags'); const prepareFilenameToContentMap = require('../lib/prepare_filename_to_content_map'); describe('prepareFilenameToContentMap()', () => { it('should return a map with file name to file contents', () => { const filepaths = ['./path1/slide1.md', './path2/sl...
import CharacterNav from './CharacterNav' export default CharacterNav
module.exports = { invokeCallback: function (callback, error, result) { return (this.isFunction(callback)) ? callback(error, result) : null; }, isFunction: function (f) { return f && typeof f === 'function'; } };
/*global chart $*/ var requestsAll; var colorPattern = ['#003d66', '#4d004d', '#00ccff']; $(document).ready(function() { var max; var dates = ['x']; var theDate = new Date(); for (var i = 0; i < 7; i++) { theDate = new Date(new Date().setDate(new Date().getDate()-i)); dates.push( theDate.getFullYear()...
/*! * js-file-browser * Copyright(c) 2011 Biotechnology Computing Facility, University of Arizona. See included LICENSE.txt file. * * With components from: Ext JS Library 3.3.1 * Copyright(c) 2006-2010 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license */ /*! * Ext JS Library 3.3.1 * Copyrigh...
var group__freemaster__demo = [ [ "FreeMASTER Demo Introduction", "group__freemaster__demo__introduction.html", "group__freemaster__demo__introduction" ], [ "FreeMASTER Demo User's Guide", "group__freemaster__demo__user__guide.html", "group__freemaster__demo__user__guide" ] ];
var wru = require('wru'); var collection = []; var functions = require('./..'); var setBit = functions.setBit; var resetBit = functions.resetBit; var isSetBit = functions.isSetBit; var toggleBit = functions.toggleBit; var result; collection[collection.length] = function() { var bitMask = 5; // 1 + 0 + 4 wru.assert("...
const squads = (state = [], action) => { return state; } export default squads;
PageModule.controller('PageFormController', function PageFormController($scope, $http, $q) { /** * * @type {String} */ var rootUrl = ''; /** * * @returns {void} */ $scope.generateSlug = function() { var pageHeader = $('#Page_header').val(); $http({ ...
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router, Route, browserHistory} from 'react-router'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {Main} from './app/main'; import './index.less'; // Needed for onTouchTap // http://stackoverflow.com/a/...
(function() { if (!window.JHVH) window.JHVH = {}; // need to keep for keeping calculating svg path to fit all sizes var ORIGIN_WIDTH = 559; var ORIGIN_HEIGHT = 100; var RATIO_W = ORIGIN_WIDTH / ORIGIN_HEIGHT; var RATIO_H = ORIGIN_HEIGHT / ORIGIN_WIDTH; var TEMP_WIDTH = ORIGIN_WIDTH; var TEMP_HEIGHT = TEMP_WI...
/* * Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
var expect = require("chai").expect , comment = require("../app/service/comment"); /* * Mocks */ var socket = { request: { user: { logged_in: true, id: 1 } } }; describe("app/service/comment", function () { describe('#post()', function () { it('if user is logged out then socket shoul...
/*global describe:false,expect:false,rIt:false*/ describe("utils", function() { "use strict"; describe("format", function() { rIt("should format single param", ["utils"], function(utils) { expect(utils.format("The Winner is %", "John Doe")) .toEqual("The Winner is John Doe"); }); rIt("s...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _linglog = require('linglog'); var _linglog2 = _interopRequireDefault(_linglog); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = (0, _linglog2.default)('gulp-insert-m...
import {createCustomOsc} from './oscillator' export function createChorus(ctx: Object) { const merger = ctx.createChannelMerger(2) const input = ctx.createGain() const output = ctx.createGain() const feedbackL = ctx.createGain() const feedbackR = ctx.createGain() const delayL = ctx.createDelay() const de...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var Class = require('../utils/Class'); var CONST = require('./const'); var GetValue = require('../utils/object/GetValu...
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | ...
/* * The MIT License (MIT) * Copyright (c) 2016 SK PLANET. All Rights Reserved. * * 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 ...
"use strict"; module.exports = { entry: { playground: "./playground/index.js" }, output: { filename: "[name].js", path: __dirname + "/static/" }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader", options: { pre...
(function (global, factory) { if (typeof define === "function" && define.amd) { define(['exports', '../node_modules/skatejs/lib/index'], factory); } else if (typeof exports !== "undefined") { factory(exports, require('../node_modules/skatejs/lib/index')); } else { var mod = { exports: {} }; ...
jQuery(document).ready(function(){ /** * add a category */ jQuery("#submitCategory").on("click", function(){ var category_name = jQuery("#category_name").attr("value"); if(!category_name) { alert("category input filde is empty please enter a category name"); retu...
/* tags: basic <p>This example shows how you can implement a simple Minecraft renderer in regl.</p> */ const canvas = document.body.appendChild(document.createElement('canvas')) const fit = require('canvas-fit') const regl = require('../regl')(canvas) const mat4 = require('gl-mat4') const camera = require('canva...
module.exports = { output: { library: 'RadioGroup', libraryTarget: 'umd' }, externals: [ { react: { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react' } } ], module: { loaders: [ {test: /\.jsx?$/, exclude: /build|node_module...
export const RouteAuth = { REQUIRED: 2, DISABLED: 0, OPTIONAL: 1, };
// Entry point for the notebook bundle containing custom model definitions. // // Setup notebook base URL // // Some static assets may be required by the custom widget javascript. The base // url for the notebook is not known at build time and is therefore computed // dynamically. __webpack_public_path__ = document.que...
"use strict"; module.exports = { home: require("./home") };
describe('inventory routes', () => { var expect = chai.expect; describe('state', () => { var view = 'inventory/inventory.html'; beforeEach(function () { angular.mock.module('app.inventory'); bard.inject(this, '$rootScope', '$state', '$templateCache'); $templateCache.put(view, ''); ...
export default class ChatService { constructor(webSocketService, $q, $rootScope) { this.channelName = 'chat'; this.webSocketService = webSocketService; this.$q = $q; } enterChat(){ var deferred = this.$q.defer(); if(this.webSocketService.isConnected()){ this.webSocketService.enterRoom(t...
var initSort = function() { $("#sortable").sortable({ containment: "document", items: "> div", handle: ".handle", tolerance: "pointer", cursor: "move", opacity: 0.8, revert: 300, delay: 150, placeholder: "movable-placeholder", start: fu...
'use strict'; angular.module('yeoMeanApp') .controller('ContactCtrl', function ($rootScope, $scope) { $rootScope.metaTitle = "Contact | Brian Mitchell"; $rootScope.metaDescription = "Where to find Brian Mitchell"; $rootScope.metaType = "website"; $rootScope.metaImage = "/assets/images/BM-Logo-Large.p...
// Importing from `.json.js` a workaround for a bug in web browsers' "native" // ES6 importing system which is uncapable of importing "*.json" files. // https://github.com/catamphetamine/libphonenumber-js/issues/239 import metadata from '../metadata.mobile.json.js' export default metadata export function withMetadata(...
import{C as e}from"./component-f7c3c04e.js";import"./index-5013a1cd.js";export default class extends e{static get params(){return{component:"debugger",props:["target"]}}}
/** * Smokescreen Player - A Flash player written in JavaScript * http://smokescreen.us/ * * Copyright 2011, Chris Smoak * Released under the MIT License. * http://www.opensource.org/licenses/mit-license.php */ define(function(require, exports, module) { var ext = require('lib/ext') var env = require('lib/env'...
version https://git-lfs.github.com/spec/v1 oid sha256:ba917294e0f245eed27f8fcafe6ff796ed9b6f99a4025eb0271300e09e1c464d size 1209
import { reducerFactory } from 'retax'; import { userTheme, adminTheme } from 'themes'; import { SET_ADMIN_THEME, SET_USER_THEME, } from 'constants/actions'; export default reducerFactory( userTheme, { [SET_ADMIN_THEME]() { return adminTheme; }, [SET_USER_THEME]() { return userTheme; ...
import { expect } from 'chai'; import HttpSmartError from 'http-smart-error'; import { RSError } from '../src'; import RSBaseError from '../src/error/base'; describe('RSError', () => { it('checks the error classes', () => { const classes = [ 'InvalidInputType', 'InvalidArgumentType', 'InvalidParameterTyp...
/** * Selfbits API V2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 2.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the cl...
define(function (require) { var fs = require('fs'), when = require('when'); return Constructor; function Constructor(debugLogger, filePath) { var self = this; self.diff = function diff(otherFile) { var deferred = when.defer(); fs.stat(filePath, function (err...
var path = require('path') var fs = require('fs') var argv = require('optimist').argv; var express = require('express') var webpack = require('webpack') var config = require('../config') var opn = require('opn') var proxyMiddleware = require('http-proxy-middleware') var webpackConfig = process.env.NODE_ENV === 'testing...