code
stringlengths
2
1.05M
import * as React from 'react'; import { expect } from 'chai'; import { createClientRender, describeConformanceV5, screen } from 'test/utils'; import Paper, { paperClasses } from '@material-ui/core/Paper'; import Button from '@material-ui/core/Button'; import MobileStepper, { mobileStepperClasses as classes } from '@ma...
#!/usr/bin/env node 'use strict'; /** * Third-party requires */ let chalk = require("chalk"); let stdin = process.openStdin(); // Retrieving options from CLI let prefix = process.argv.filter(el => el.indexOf("--prefix=") > -1).pop(); prefix = prefix ? prefix.split("=").pop().toUpperCase() : ""; let color = pr...
/** * Broadcast updates to client when the model changes */ 'use strict'; var Oauth = require('./oauth.model'); exports.register = function(socket) { Oauth.schema.post('save', function (doc) { onSave(socket, doc); }); Oauth.schema.post('remove', function (doc) { onRemove(socket, doc); }); } functi...
/** * Created by lenovo on 2016-09-08. */ requirejs.config({ // pathsオプションの設定。"module/name": "path"を指定します。拡張子(.js)は指定しません。 paths: { "jquery.showLoading": web_path + "/plugin/loading/js/jquery.showLoading.min", "csrf": web_path + "/js/util/csrf", "attribute_extensions": web_path + "/js/...
var DATA = [ { video: { src: 'videos/reef_1920_4.webm' }, size: 50, pos: [-100,0,0] }, { video: { src: 'videos/pano.webm' }, size: 50, pos: [100,0,0] } ];
var fs = require('fs'); /* * configures an ipc with the configurations specific to remote communincation * @param ipc {IPC}: the ipc to be configured */ function configureRemoteIPC(ipc) { ipc.config.maxRetries = 3; ipc.config.retry = 600; //ipc.config.silent = true; } function configureLocalIPC(ipc) { ...
#!/usr/bin/env node 'use strict'; var fs = require('fs'); var amock = require('./..'); var file = process.argv[2]; var qty = parseInt(process.argv[3], 10) || 20; if (file) { fs.readFile(file, 'utf8', function(err, data){ if (err){ console.log(err); return; } amock(file, JSON.parse(data)); ...
import angularMeteor from 'angular-meteor'; import { Players } from '/imports/api/players.js'; import { Teams } from '/imports/api/teams.js'; import { Games } from '/imports/api/games.js'; import { Goals } from '/imports/api/goals.js'; class GameScoreService { constructor(playersService, teamsService) { this.pla...
directives.directive('paCurrentTime', ['$interval', 'dateFilter', function($interval, dateFilter) { return function(scope, element, attrs) { var stopTime; function updateTime() { element.text(dateFilter(new Date(), 'MM/dd/yyyy @ h:mma')); } updateTime(); ...
// Copyright 2013 Google Inc. // // 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 // // Unless required by applicable law or agreed to ...
// Generated on 2015-06-29 using generator-angular 0.11.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks a...
(function () { // Including extend function so we aren't dependent upon JQuery. var hasOwn = Object.prototype.hasOwnProperty; var toString = Object.prototype.toString; function isPlainObject(obj) { if (!obj || toString.call(obj) !== '[object Object]' || obj.nodeType || obj.setInterval) return false; ...
import { push } from 'react-router-redux'; import { REQUEST_RESULTS, RECEIVE_RESULTS, RECEIVE_FAILURE } from '../constants'; import { processParams, search } from './common'; export function requestResults() { return { type: REQUEST_RESULTS, }; } export function receiveResults(payload) { return { type:...
import React from 'react' // import DuckImage from '../assets/Duck.jpg' import './AboutMe.scss' export const AboutMe = () => ( <div> <h3>About me</h3> <div className="pageContainer"> <p> Ipsum is unattractive, both inside and out. I fully understand why it’s former users left it for something e...
'use strict';var _fs; function _load_fs() {return _fs = _interopRequireDefault(require('fs'));}var _jestHasteMap; function _load_jestHasteMap() {return _jestHasteMap = require('jest-haste-map');}function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} const FAIL = 0; ...
var should = require('should'); var Queue = require('../lib/queue'); describe('Queue', function () { describe('#queue', function () { it('Processes queue in order', function (done) { var queue = new Queue(); var string = ''; var incrementString = function(i) { return function() { ...
'use strict'; const jwt = require('jsonwebtoken'); function UserController (db) { this.database = db; this.model = db.User; } UserController.prototype = { list, read, create, logIn, update, destroy }; module.exports = UserController; // [GET] /user function list (request, reply) { this.model.find...
/** * Game Controller */ function GameController(game) { var controller = this; this.isPaused = false; this.game = game; this.clients = new Collection(); this.socketGroup = new SocketGroup(this.clients); this.compressor = new Compressor(); this.waiting = null; this...
"use strict"; var VElement = require("../vdom").___VElement; module.exports = function ( tagName, attrs, key, component, childCount, flags, props ) { return new VElement(tagName, attrs, key, component, childCount, flags, props); };
var common = require('./_common.js'); var Test = common.Test; var MIME = require('../index.js'); var namespace = 'MIME.decodeQuotedPrintable'; var tests = [ [ ' \t=20_', ' \t _', true, null ], [ ' \t=20_', ' \t ', false, null ], // TO DO: Add option to accept/reject illegal qu...
var class_tempo_test_1_1_instance_count = [ [ "InstanceCount", "class_tempo_test_1_1_instance_count.html#a3e92a5fd6dd6caf4633742b22d740ff4", null ], [ "value", "class_tempo_test_1_1_instance_count.html#a421f58f5cdbfeacc93976ae979f9bb40", null ] ];
console.error( //eslint-disable-line new Error('[comon-micro-libs] PickerCE.js is NO LONGER SUPPORTED') ); import Picker from "./Picker" export {Picker}; export default Picker; //import getCustomElementFromWidget from "../utils/getCustomElementFromWidget" // import Picker from "./Picker" // // export const Picke...
"use strict"; var FriendRequest = (function () { function FriendRequest() { } return FriendRequest; }()); exports.FriendRequest = FriendRequest; //# sourceMappingURL=friend-request.js.map
var EventEmitter = require('events').EventEmitter var assign = require('object-assign') var dispatcher = require('../dispatcher') var constants = require('../constants/ChatConstants') var CHANGE_EVENT = 'messageChange' var messages = [] var selectedBuddyId /** * All the message state management in one place! */ var...
'use strict'; describe('app.version module', function() { beforeEach(module('app.version')); describe('version service', function() { it('should return current version', inject(function(version) { expect(version).toEqual('0.1'); })); }); });
$(function(){ var pathname = window.location.pathname; populateTable(pathname); var input = document.getElementById("input-file"); $('#input-file').change(function(){ var file = input.files; var cont = input.files.lenght; // $('#form-upload').append($('<input type="text" , name...
/** @module ember @submodule ember-application */ import DAG from 'dag-map'; import Container from 'container/container'; import Ember from "ember-metal"; // Ember.FEATURES, Ember.deprecate, Ember.assert, Ember.libraries, LOG_VERSION, Namespace, BOOTED import { get } from "ember-metal/property_get"; import { set } fr...
(function() { module("can/view"); test("multiple template types work", function(){ var expected = '<h3>helloworld</h3>'; can.each(["micro","ejs","jaml", "mustache"], function(ext){ var actual = can.view.render("//can/view/test/template." + ext, { "message" :"helloworld" }, { helper: function(){ ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z" }), 'ListTwoTone');
// main.js L(function(){ var myClock = new jClock({ canvasId: 'j-clock', clockHight: window.innerWidth * 0.3, clockWidth: window.innerWidth * 0.3 }); })
import Ember from 'ember'; export default Ember.Controller.extend({ actions: { save(proposal) { this.store.createResource('proposals', proposal).then((resp) => { this.transitionToRoute('proposals.details', resp); }); } } });
const jsonMerger = require("../../dist"); const { testConfig } = require("../../__helpers__"); jest.mock("fs"); const fs = require("fs"); describe("when processing an object containing an $include operation", function () { test("it should resolve to the file defined in the $include property", function () { cons...
module.exports = require('./lib/email-obj');
var lib2 = require("TestLib2"); var output = lib2.t2("abc");
'use strict'; let terms; let categories; let series; const highChartConverter = (function ( $ ) { return { convertCategories: function () { // initialize xaxis categories (months) const months = []; $.map(data, function ( datapoint, i ) { months.push(datapoint["month"]); }); ...
/** * @author amberovsky * * Исполнители */ var AvaritiaExecutor = { /** * @var {Integer} последний максимальный id згруженного заказа */ lastMaxOrderId: 0, /** * Инициализация страницы */ init: function () { this .checkNewOrders(this) .initExecu...
define([ 'ui-components/rb-check-control' ], function (rbCheckControl) { describe('rb-check-control-group', function () { var $compile, $rootScope, $scope, compileTemplate, element, isolatedScope, options = [ { ...
export default class Map { constructor(container) { this.container = container || document.getElementById('map') // failure to init as there's no map if (!this.container) { return false } this.map = L.map(this.container, {attributionControl: false}) // defaulting location to Stanley Park if ...
/* globals QUnit */ import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import Ember from 'ember'; moduleForComponent('ui-progress', 'Integration | Component | ui progress', { integration: true }); test('It updates the bar width on progress change', function(assert)...
import './flipIcon.tpl.jade'; Template.flipIcon.onCreated(function () { this.data.data.name = this.data.data.name || ""; }) Template.flipIcon.helpers({ name() { return this.data.name.substr(0,3); }, isActive() { return this.data.state ? "selected" : ""; }, color() { return this.data.color || '...
var gulp = require('gulp'), mini = require('gulp-minify'), clean = require('gulp-clean-css'), concat = require('gulp-concat'), sass = require('gulp-sass'); paths = { 'style': { sass: './src/scss/*.scss', output: './src/css' } }; gulp.task('sass', function () { gulp.src(paths.style.sass) .pipe(s...
#include "common/helpers.js" #include "common/mysql_helper.js" #include "cmon/io.h" /** * show full processlist * Format: hostAndPort * hostAndPort : * for all hosts or 10.10.10.10:3306 */ function main(hostAndPort) { if (hostAndPort == #N/A) hostAndPort = "*"; var result={}; result["stat...
'use strict'; angular.module('myApp.setup-2', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/setup-2', { templateUrl: 'setup-2/setup-2.html', controller: 'setup-2Ctrl' }); }]) .controller('setup-2Ctrl', function($scope, $http) { $scope.interests = [ {nam...
process.env.NODE_ENV = 'test'; process.env.DEBUG = 'carcass:*'; require('should'); var gulp = require('gulp'); var gutil = require('gulp-util'); var coffee = require('gulp-coffee'); var coffeelint = require('gulp-coffeelint'); var jshint = require('gulp-jshint'); var mocha = require('gulp-mocha'); var coverage = requi...
'use strict'; /* jasmine specs for controllers go here */ describe('controllers', function(){ beforeEach(module('atruestory.controllers')); it('should ....', inject(function() { //spec body })); it('should ....', inject(function() { //spec body })); });
(function() { 'use strict'; // POST RELEASE // TODO(jelbourn): Demo that uses moment.js // TODO(jelbourn): make sure this plays well with validation and ngMessages. // TODO(jelbourn): calendar pane doesn't open up outside of visible viewport. // TODO(jelbourn): forward more attributes to the internal input...
var _ = require('lodash'); var should = require('should'); var helper = require('../support/spec_helper'); var async = require('async'); var ORM = require('../.'); describe("Hook", function() { var db = null; var Person = null; var triggeredHooks = {}; var getTimestamp; // Calling it '...
'use strict'; module.exports = { db: 'mongodb://localhost/mychat-dev', app: { title: 'myChat - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: 'http://localhost:3000/auth/facebook/callback' }, t...
'use strict'; module.exports = { audio: [ { name: 'soundtrack', file: '/assets/sound/themeBTTF.mp3' }, { name: 'ringHit', file: '/assets/sound/ringHit.wav' }, { name: 'bufferconcert', file: '/assets/sound/concert-crowd.ogg' } ] };
var Module; if (typeof Module === 'undefined') Module = eval('(function() { try { return Module || {} } catch(e) { return {} } })()'); if (!Module.expectedDataFileDownloads) { Module.expectedDataFileDownloads = 0; Module.finishedDataFileDownloads = 0; } Module.expectedDataFileDownloads++; (function() { var de...
import { silenceError, isHandled } from './inspect' import { attachTrace } from './trace' const UNHANDLED_REJECTION = 'unhandledRejection' const HANDLED_REJECTION = 'rejectionHandled' export default class ErrorHandler { constructor (emitEvent, reportError) { this.rejections = [] this.emit = emitEvent th...
import React from 'react'; import SearchInput, {createFilter} from 'react-search-input'; class ItemsOptions extends React.Component { constructor(props) { super(props); this.state = { is_showing_options_modal: false } } render() { return( ...
/** A simple function * This is a super simple function. ** It takes two numbers or something * @a {string} - the string * @b {number} - the number * @returns {number} - the sum of a + b */ somenamespace.nested.test = function (a, b) { } /** Another simple function */ namespace.other = function (c...
const React = require('react'); const sanfona = require('react-sanfona'); const Accordion = sanfona.Accordion; const { UiComponentLoader } = require('./ui-module-util'); const EventEmitter = require('events'); class Navigation extends React.Compone...
/* eslint handle-callback-err: 0 */ 'use strict' import fs from 'fs' import path from 'path' import frontMatter from 'front-matter' import yaml from 'js-yaml' import Config from '../config' import Gulp from 'gulp' import Plugins from 'gulp-load-plugins' const $ = Plugins() const isProd = Config.environment === 'produ...
(function() { var module = QUnit.module; var test = QUnit.test; module("Collision"); test("Collision constructors", function(_) { var newHitboxEvents = 0; var e = Crafty.e("2D, Collision").bind("NewHitbox", function(newHitbox) { newHitboxEvents++; }); var poly = new Crafty.polygon([50, ...
const express = require("express"); const app = express(); app.use(express.static(__dirname + "/dist")); app.get("*", (req, res) => { res.sendFile(__dirname + "./dist/index.html"); }); const PORT = process.env.PORT || 3000; app.listen(PORT, () => { console.log('Server listening on ', PORT) });
'use strict'; describe('Controller: AboutCtrl', function () { // load the controller's module beforeEach(module('weatherApp')); var AboutCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); AboutCtrl = $con...
/** * Created by zhoujialin on 2016/5/4. */ // 组件模块化 const ReactDOM = require('react-dom'); const React = require('react'); const List = require('./lib/List'); ReactDOM.render( <List/>, document.getElementById('test') );
import Vue from '../node_modules/vue/dist/vue'; import App from './app.vue'; import './styles/styles.css'; import './styles/styles.scss'; new Vue({ el: '.todo', components: { App } })
module.exports = { EMPTY: 0, CROSS: 1, ROUND: 2 }
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1.79 1.8 1.42-1.42zM3.55 4.46l1.79 1.79 1.41-1.41-1....
// Karma configuration // Generated on Wed Nov 06 2013 00:03:21 GMT+0100 (CET) module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '../', // frameworks to use frameworks: ['jasmine'], // list of files / patterns to load in t...
const tap = require('tap'); const expect = require('expect.js'); const testUtils = require('../../../../../../testUtils'); tap.mochaGlobals(); const describeTitle = 'bin/east create command with source dir'; describe(describeTitle, () => { let commandResult; let testEnv; before(() => { return Promise.resolve()...
var mongoose = require('mongoose'), UserModel = require('../data/models/User'), PlaylistModel = require('../data/models/Playlist'); module.exports = function(config) { mongoose.connect(config.db); var db = mongoose.connection; db.once('open', function(err) { if (err) { console...
Fr.Controller.create('offline','main/add', function(){ return{ render : function(done){ done({body: 'main/add'}); }, afterRender : function(done){ $('.nav a').click(function(){ Fr.offline.renderViewTo({ view: $(this).attr('href'), target: '#content', transition: 'slide-right' }); ...
/* */ var numeral = require('../../numeral'), language = require('../../languages/fr-ch'); numeral.language('fr-ch', language); exports['language:fr-ch'] = { setUp: function (callback) { numeral.language('fr-ch'); callback(); }, tearDown: function (callback) { numeral.languag...
import React from 'react'; import Router from 'react-router'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import routes from './views/routes'; import createRedux from './redux/create'; import { Provider } from 'redux/react'; import ApiClient from './ApiClient'; const history = new BrowserHistory(); c...
// All symbols in the Bopomofo block as per Unicode v3.2.0: [ '\u3100', '\u3101', '\u3102', '\u3103', '\u3104', '\u3105', '\u3106', '\u3107', '\u3108', '\u3109', '\u310A', '\u310B', '\u310C', '\u310D', '\u310E', '\u310F', '\u3110', '\u3111', '\u3112', '\u3113', '\u3114', '\u3115', '\u3116', '\u3...
import { expect } from "chai"; import { createFile } from "./index"; describe("index", () => { describe("createFile", () => { it("should fail horribly", done => { createFile() .then(() => { throw new Error("test should have failed"); }) .catch(error => { expect(e...
'use strict'; const { QueryBuilderOperation } = require('./QueryBuilderOperation'); class OnBuildKnexOperation extends QueryBuilderOperation { constructor(name, opt) { super(name, opt); this.func = null; } onAdd(_, args) { this.func = args[0]; return true; } onBuildKnex(knexBuilder, builde...
const { checkContextForAuth } = require('../../actions/SessionActions') const { getUserById } = require('../../actions/UserActions') const schema = ` currentUser: User getUserById(id: Int!): User ` const resolvers = { currentUser: (root, input, context) => { checkContextForAuth(context) return getUserBy...
export default { SORT_DESC: 'desc', SORT_ASC: 'asc', SIZE_PER_PAGE: 10, NEXT_PAGE: '>', LAST_PAGE: '>>', PRE_PAGE: '<', FIRST_PAGE: '<<', PAGE_START_INDEX: 1, ROW_SELECT_BG_COLOR: '', ROW_SELECT_NONE: 'none', ROW_SELECT_SINGLE: 'radio', ROW_SELECT_MULTI: 'checkbox', CELL_EDIT_NONE: 'none', C...
/*! * fscloud * Copyright(c) 2013 Gabriele Di Stefano <gabriele.ds@gmail.com> * MIT Licensed */ /** * Module dependencies. */ var friend = require('friend') , fs = friend.fs , mime = require('mime') , request = require('request') , services = require('../../fscloud') , storage = require('./') ; /**...
/*global ShapeCaptcha dat FontFaceObserver*/ const fontFamily = 'Indie Flower'; const fo = new FontFaceObserver(fontFamily); fo.load().then(app, function () { console.log(`Font ${fontFamily} is not available`); }); function app() { const $ = id => document.getElementById(id); const guiContainer = $('guiCont...
$(document).ready(function () { $(window).scrollPress(); });
 $(function () { function count($this) { var current = parseInt($this.html(), 10); $this.html(current += 10); if (current <= $this.data('count')) { setTimeout(function () { count($this) }, 1); } else { $this.html($this...
/* @flow */ import React from 'react' import { AppRegistry, StyleSheet, ListView, } from 'react-native' import ItemCell from 'react-native-item-cell' const items = React.createClass({ getInitialState: function() { const itemsArray = [ 'Item 1', 'Item 2', 'Item 3', 'Settings', ...
version https://git-lfs.github.com/spec/v1 oid sha256:f9f31a6bbe215a44bf4ba350fcba1becba81bc0e279f6afba135048ac17d1731 size 5414
/* * VitalSigns * Copyright 2013 Tom Frost */ var should = require('should'), uptime = require('../../lib/monitors/uptime'); describe("Uptime monitor", function() { it("should return sys and proc uptime", function() { var mod = uptime.report(); mod.should.have.property('sys'); mod.should.have.property('pro...
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Footer.scss'; import Link from '../Link'; class Footer extends Component { render() { return ( <div className={s.root}> <div className={s.container}> <span classNam...
export const RESET_ERROR_MESSAGE = 'RESET_ERROR_MESSAGE'; // Resets the currently visible error message. export function resetErrorMessage() { return { type: RESET_ERROR_MESSAGE }; }
import { _, assert, sinonsb } from "../../common"; import Cache from "../../../app/scripts/lib/util/cache"; describe("Cache", () => { describe("#memoize", () => { it("memoizes the result of given function", () => { const cache = new Cache; const val = cache.memoize("test", () => { return 123;...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import Login from './Login'; import Pro from './profile'; ...
(function(){ app.controller('bookmanager',['$scope','$http', 'NgTableParams','$uibModal', function($scope, $http, NgTableParams, $uibModal){ var bookmanager = this; bookmanager.book = {}; this.books = null; this.booksParams = null; $http({ method: 'GET', url: BASE + "api/books" }).then(function(data...
/*! Buttons for DataTables 1.2.0 ©2016 SpryMedia Ltd - datatables.net/license */ (function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(o){return d(o,window,document)}):"object"===typeof exports?module.exports=function(o,n){o||(o=window);if(!n||!n.fn.dataTable)n=require("data...
var chalk = require('chalk'); module.exports = function(io, models){ var cleardb = require('../../app/models/dbConnection'); //Se importa el modelo var Alumno = models.alumno; var Deposito = models.deposito; var Carrera = models.carrera; var Usuario = models.usuario; var Grupo = models....
'use strict';Object.defineProperty(exports, '__esModule', { value: true }); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('val...
'use strict'; angular .module('anguHttpInterceptor', []) .provider('anguHttpInterceptor', httpInterceptorProvider) .config(anguHttpInterceptorConfiguration) function httpInterceptorProvider() { // 4xx error codes this.badRequest = null; this.unauthorized = null; this.paymentRequired = null; this.forb...
import color from "color"; import { Platform, Dimensions, PixelRatio } from "react-native"; const deviceHeight = Dimensions.get("window").height; const deviceWidth = Dimensions.get("window").width; const platform = Platform.OS; const platformStyle = "material"; export default { platformStyle, platform, // Andr...
"use strict"; const { add, dec, divide, inc, multiply, subtract, sum, } = require('ramda'); module.exports = { add, dec, divide, inc, multiply, subtract, sum, }; module.exports.add = add; module.exports.dec = dec; module.exports.divide = divide; module.expor...
module.exports.policies = (function() { var defaults = ['corsHeaders', 'isLoggedIn'], admin = defaults.concat(['admin']); return { '*': defaults, SystemController: { index: [] }, TrackController: { upload: ['corsHeaders'] }, AsyncController: { list: admin },...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * BrowserSync * Run the build task, and spin up a production server with BrowserSync */ // Tools var gulp = require('gulp'); var browsersync = require('browser-sync'); var config = require('../../config').browsersync.production; // Task (gulp browsersync:production) gulp.task('browsersync:productio...
/* **************************************************************************** * Filename: jquery.chcanvas.js * Version: 0.7.0, July 2013 * Tested jquery versions: * - jQuery v0.1 * **************************************************************************** * * DESCRIPTION: * *********************************...
/** * @fileoverview Tests for prefer-arrow-callback rule. * @author Toru Nagashima */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require("../../../lib/r...
'use strict'; /* Filters */ angular.module('elevendanceFilters', []).filter('checkmark', function() { return function(input) { return input ? '\u2713' : '\u2718'; }; });
'use strict'; crop.factory('cropAreaSquare', ['cropArea', function(CropArea) { var CropAreaSquare = function() { CropArea.apply(this, arguments); this._resizeCtrlBaseRadius = 10; this._resizeCtrlNormalRatio = 0.75; this._resizeCtrlHoverRatio = 1; this._iconMoveNormalRatio = 0.9; this._iconMo...
Tasks = new Mongo.Collection("tasks"); if (Meteor.isClient) { // This code only runs on the client Meteor.subscribe("tasks"); Template.body.helpers({ tasks: function () { if (Session.get("hideCompleted")) { // If hide completed is checked, filter tasks return Tasks.find({checked: {$ne...
var Point = function(data, mission) { this._marker = null; this.mission = mission; this.lat = parseFloat(data.lat); this.long = parseFloat(data.long); this.portal_name = data.portal_name; this.draw = function() { var marker_data = { ...