code
stringlengths
2
1.05M
const { expect } = require('chai'); const request = require('supertest'); const api = require('../../../'); const { cleanDatabase, createPosts } = require('../../helpers'); describe('GET /api/posts when posts exist', async () => { before(async () => { await createPosts(); }); after(async () => { await ...
'use strict'; var matcherUtils = _interopRequireWildcard(require('jest-matcher-utils')); var _utils = require('./utils'); var _matchers = _interopRequireDefault(require('./matchers')); var _spyMatchers = _interopRequireDefault(require('./spyMatchers')); var _toThrowMatchers = _interopRequireWildcard(require('./toT...
// ========================================================================== // Date/Time Functions // // Author: Kirk Swenson // // Copyright (c) 2016 by The Concord Consortium, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use ...
// @flow import { combineReducers } from 'redux' import filter from './filter' import patterns from './patterns' import routes from './routes' import shapes from './shapes' import stops from './stops' import timetables from './timetables' import validation from './validation' export default combineReducers({ filte...
app.directive('repoInfo', function($compile) { return { templateUrl: 'js/directives/repoinfo.html' }; });
import React from 'react'; import PropTypes from 'prop-types'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/lib/NavItem'; import { LinkContainer } from 'react-router-bootstrap'; import FontAwesome fr...
var arrow; var ball; var catchFlag = false; var launchVelocity = 0; var items, throwBall, floor, limitLaunch, limitThrow, limit; //Limit es el valor que hace disminuir la barra para agarrar var obstacles, obstacleMove; var score, scoreTextValue, etapa, stageTexValue, shoot, shootTextValue, textStyle_Key, textStyle_Val...
define([ 'underscore', 'text!templates/grid-docs.html', 'text!pages/grid-options-fullWidthRows.html', 'dobygrid' ], function (_, template, page, DobyGrid) { "use strict"; return Backbone.DobyView.extend({ events: function () { return _.extend({}, Backbone.DobyView.prototype.events, { "change #option...
/** A **DepthBuf** configures the WebGL depth buffer for attached {{#crossLink "GameObject"}}GameObjects{{/crossLink}}. ## Overview <ul> <li>A DepthBuf configures **the way** that pixel depths are written to the WebGL depth buffer</li> <li>DepthBuf is not to be confused with {{#crossLink "DepthTarget"}}DepthTarg...
// parse to parse sleep spreadsheet var parse = require('csv-parse'); //save.js to save json var save = require('../save.js'); // google var google = require('googleapis'); var OAuth2 = google.auth.OAuth2; // moment to parse time var moment = require('moment'); //get api keys from config file var config = require('../c...
$(document).ready(function(){ var ref = new Firebase("https://pdxshelters.firebaseio.com/"); $('#googleOauth').click(function(){ ref.authWithOAuthPopup("google", function(error, authData) { if (error) { if (error.code === "TRANSPORT_UNAVAILABLE") { // fall-back to browser redirects, and pick u...
Ext.define('App.controller.Profiles',{ extend: 'Ext.app.Controller', views: [ // change password 'App.form.profile.ChangePassword', 'App.view.profile.tabChangePassword' ], stores: [], models:[], init: function(){ log('Login Ctl Loaded ----'); // this.control({ // 'frmLogin' : { // } // }); }, });
'use strict'; angular.module('angular-client-side-auth', ['ngCookies', 'ui.router']) .config(['$stateProvider', '$urlRouterProvider', '$locationProvider', '$httpProvider', function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) { $httpProvider.defaults.useXDomain = true; d...
'use strict'; const uniqueRandomArray = require('unique-random-array'); const supervillains = require('./supervillains.json'); exports.all = supervillains; exports.random = uniqueRandomArray(supervillains);
'use strict'; angular.module('transcript.app.security.confirm', ['ui.router']) .config(['$stateProvider', function($stateProvider) { $stateProvider.state('transcript.app.security.confirm', { views: { "page" : { templateUrl: '/webapp/app/App/Security/Confirm/...
module.exports = function (arg) { const router =arg.Router(); router.use('/Posts', require('./posts')(arg)); router.use('/Session', require('./session')(arg)); return router; };
import invitations from '@/invitations/api/invitations' import router from '@/base/router' import { createMetaModule, withMeta, metaStatuses, indexById } from '@/utils/datastore/helpers' function initialState () { return { entries: {}, } } export default { namespaced: true, modules: { meta: createMetaModu...
version https://git-lfs.github.com/spec/v1 oid sha256:b4a59d60db821eed60448c37f1c149def493f0effbb79c72c7ceb091b84b4846 size 7208
var assert = require('assert'); var babel = require('@babel/core'); var chalk = require('chalk'); var clear = require('clear'); var diff = require('diff'); var fs = require('fs'); var path = require('path'); require('@babel/register'); var pluginPath = require.resolve('../src'); function runTests() { v...
Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var utils_1 = require("@sentry/utils"); var spanstatus_1 = require("./spanstatus"); /** * Keeps track of finished spans for a given transaction * @internal * @hideconstructor * @hidden */ var SpanRecorder = /** @class */...
'use strict'; const mongoose = require('mongoose'), crypto = require('crypto'), uniqueValidator = require('mongoose-unique-validator'), Schema = mongoose.Schema; const LETTERS = /^[A-Za-zА-Яа-я]+$/, ALPHA_PATTERN = /^[A-Za-zА-Яа-я0-9]+$/, EMAIL_PATTERN = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:...
if (morning) (function() {});
var group___h_a_l = [ [ "HAL Exported Macros", "group___h_a_l___exported___macros.html", "group___h_a_l___exported___macros" ], [ "HAL Private Variables", "group___h_a_l___private___variables.html", null ], [ "HAL Private Constants", "group___h_a_l___private___constants.html", null ], [ "HAL_Exported_Fu...
import React, { Component } from 'react' class Spinner extends Component { render () { let spinningCssClass = []; switch(this.props.spinnerType) { case 'RotatingPlane': spinningCssClass.push('sk-rotating-plane'); break; case 'Pulse': spinningCssClass.push('sk-spinner sk-...
myApp .factory('DaumMapModel', [ function (){ return { // need to specify category for search category: {}, currentPosition: {}, markers: [], places: [], selectedPlace: {}, modal: { // Defined from template // It's the modal of DaumMa...
[ {"day": 25, "hour": 9, "start_id": 2000}, {"day": 25, "hour": 10, "start_id": 1989}, {"day": 25, "hour": 11, "start_id": 1977}, {"day": 25, "hour": 12, "start_id": 1966}, {"day": 25, "hour": 13, "start_id": 1953}, {"day": 25, "hour": 14, "start_id": 1940}, {"day": 25, "hour": 15, "start_i...
8.0-alpha3:0b551b285d481c3d63f65c00f60cf5aa4e09297386b602ac2b7a3803378065b3 8.0-alpha4:0b551b285d481c3d63f65c00f60cf5aa4e09297386b602ac2b7a3803378065b3 8.0-alpha5:0b551b285d481c3d63f65c00f60cf5aa4e09297386b602ac2b7a3803378065b3 8.0-alpha6:0b551b285d481c3d63f65c00f60cf5aa4e09297386b602ac2b7a3803378065b3 8.0-alpha7:0b551...
'use strict'; // set global default timeout to 1min30 mocha.setup({timeout: 90000});
/** * Anonymous metrics reporting for Kalabox. * * @name metrics */ 'use strict'; var kbox = require('./kbox.js'); var Promise = require('bluebird'); var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var Client = require('kalabox-stats-client').Client; var uuid = require('uuid'); /* ...
ig.module( 'plusplus.abstractities.character' ) .requires( 'plusplus.core.config', 'plusplus.core.timer', 'plusplus.core.entity', 'plusplus.core.hierarchy', 'plusplus.entities.explosion', 'plusplus.helpers.utils', 'plusplus.helpers.utilsintersectio...
function Menus() { this.buttons = { easy: new Button({x: 10, y: 550}, {width: 150, height: 40}, 'draw-maze', "Easy", ['menu']), normal: new Button({x: 225, y: 550}, {width: 150, height: 40}, 'draw-maze', "Normal", ['menu']), hard: new Button({x: 440, y: 550}, {width: 150, height: 40}, 'draw-maze', "Hardco...
/** * @fileoverview Component that decorates the controls for the list of * ReferenceGenomes. */ gd.RefGenomeControlsComponent = gd.DataTableControlsComponent.extend({ initialize: function() { gd.DataTableControlsComponent.prototype.initialize.call(this); this.eventListenerMap = {}; this.maybeC...
// Copyright 2015-2018 FormBucket LLC import parsedate from "./parsedate"; // DAY parses a date string and returns the day of the month. export default function day(d) { return parsedate(d).getDate(); }
'use strict'; const httpfuncs = require("./http/libhttp.so"); let LOGERR = console.log; function HTTPMessage(c) { this._sockp = c; this._headerPr = null; this._headers = null; } HTTPMessage.prototype.setDeadline = function (ddline) { httpfuncs.set_deadline(this._sockp, ddline); }; HTTPMessage.proto...
var BoxModelUtils = (function () { function BoxModelUtils() { } //----------------------------------------------------------------------------------------------- // STATIC METHODS. //----------------------------------------------------------------------------------------------- // BOXES. Box...
'use strict'; app.controller('UsersCtrl', ['$scope', 'users', 'SweetAlert','$uibModal','$log', '$http','$timeout', function ($scope, users,SweetAlert,$uibModal,$log) { //urussan tampilan $scope.main = { page: 1, term: '' }; if ($scope.dataUser.level == 0 ) { $state.go("app.dashboard") ...
exports.info = { FormatID: '646', FormatName: 'Macromedia Flash', FormatVersion: '1', FormatAliases: 'SWF (1)', FormatFamilies: '', FormatTypes: '', FormatDisclosure: '', FormatDescription: 'This is an outline record only, and requires further details, research or authentication to provide information tha...
var defaultW=800; var defaultH=500; var FH=40; var LAST_LEVEL=7; Crafty.mobile = false; // skip clever logic, use our own if (window.matchMedia('(max-height: ' + (defaultH+100) + 'px)').matches) { // small viewport, fill completely // http://stackoverflow.com/a/8876069/60982 defaultH = Math.max(document.d...
'use strict'; function passedNumber(list) { return list.filter(function(item) { return item.isPassed; }).length; } function failedNumber(list) { return list.filter(function(item) { return !item.isPassed; }).length; } function testNumber(list) { return list.length; } function sui...
const charset = require('superagent-charset'); const request = require('superagent'); const Promise = require('bluebird'); const cheerio = require("cheerio"); const fs = require("fs"); const flow = require("async"); const DB = require("./db"); charset(request); var download_path = ''; function getPage(url) { retur...
'use strict'; let PayloadBase = require('./payload_base'), StateChangedModel = require('../message/state_changed_model'); /** * StateChanged payload is received when a user start/pause typing */ class StateChanged extends PayloadBase { /** * Creates a proper instance of a heartbeat * * @para...
var browserify = require('browserify'); var coffeeify = require('coffeeify'); var gulp = require('gulp'); var gutil = require('gulp-util'); var source = require('vinyl-source-stream'); var uglifyify = require('uglifyify'); var vendor = require("./config/externals.js") var destFolder =...
/* @flow */ import React from 'react'; import { connect } from 'react-redux'; import GoogleLogin from 'react-google-login'; import { actionCreator } from '../reducer'; class GoogleAuthContainer extends React.Component { props: { onLogin: (loginData: mixed) => void, } render() { return ( <GoogleL...
import Timer from "openfl/utils/Timer"; import * as assert from "assert"; describe ("ES6 | Timer", function () { it ("currentCount", function () { // TODO: Confirm functionality var timer = new Timer (0); var exists = timer.currentCount; assert.notEqual (exists, null); }); it ("delay", ...
if (global.isClient) { require("./password_client.js") } else { require("./email_templates.js") require("./password_server.js") }
//GuiStack - Tower of Balance - GuiGhost Games 2018 //Credits to http://www.emanueleferonato.com/ for the tuturial on the javascript that started this project var game; var levelScore = 0; var oldLevelScore = 0; var LEVEL = 1; var gameOptions = { timeLimit: 30, gravity: 2000, crateSpeed: 1500, crateHori...
/** * Copyright 2014 aixigo AG * Released under the MIT license. * http://laxarjs.org/license */ define( [ 'underscore' ], function( _ ) { 'use strict'; function isDigit( value ) { return _.isString( value ) && value.length === 1 && '0' <= value && value <= '9'; } ////////////////////////////...
/** * AllInOne attempts to map objects that come from a complete json structure into javascript hierarchical structure * @return {AllInOne} */ function AllInOne(){ this.children = []; this.drawingArea =null; this.canvasElementId="myCanvas"; this.canvasContextType="2d"; } AllInOne.prototype=new DataLoader(); /*...
Bullet = function (game,x,y,weapon,type){ var velocity; var key; var sprite; var state=game.state.callbackContext; if(type=='player' && state.player.powerUp.rateOfFire!=0){ Phaser.Sprite.call(this, game, x, y, type+'_'+weapon.ammunition_type+'_fast'); }else{ Phaser.Sprite.call(this, game, x, y, typ...
#!/usr/bin/env node /* app.js */ var argv = require('optimist').argv; var path = require('path'); var util = require('util'); var http = require('http'); var fs = require("fs"); var nor_fs = require("nor-fs"); var tld = require('tld'); var getent = require('getent'); var debug = require('./debug.js'); var _config_fil...
'use babel'; import Dialog from './dialog'; export default class CommitMessageDialog extends Dialog { constructor() { super({ 'prompt': 'Update with message:', 'initialPath': '', 'select': false, 'iconClass': 'icon-file-directory' }); } onConfirm(msg) { this.trigger('do-com...
/*! * Bootstrap v3.3.5 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') ...
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var AttendanceSchema = new Schema({ classYear: { type : Schema.Types.ObjectId, ref: 'ClassYear', index: true }, user: { type : Schema.Types.ObjectId, ref: 'User', index: true }, da...
var React = require('react/addons'); var ReactWinJS = require('react-winjs'); // UNDONE: for development, just jam the content in here... :) window.unicode = global_data; function shorten(str) { var maxLen = 20; if (str.length > maxLen) { return str.substring(0, maxLen-3) + "..."; } return str...
/** * Copyright 2013-present, Novivia, Inc. * All rights reserved. */ import { ReadOnlyError, ApplicationError, PermissionError, } from "../"; import shouldInheritFromErrors from "./util/shouldInheritFromErrors"; describe( "ReadOnlyError", () => shouldInheritFromErrors({ error: new ReadOnlyError(), ...
/*global define */ define(['angular', 'filters/InterpolateFilter', 'services/services'], function (angular, InterpolateFilter) { 'use strict'; var filters = angular.module('app.filters', ['app.services']); filters.filter('interpolate', InterpolateFilter); return filters; ...
//Main application file
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["static/development/pages/next/dist/pages/_error.js"],{ /***/ "./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?page=%2Fnext%2Fdist%2Fpages%2F_error&absolutePagePath=%2FUsers%2Famathur%2Fworkspace%2Fopen-source%2Fajaymathur.github...
import createShots from '../../uiexplorer/core/utils/shots' createShots()
var commandHandlerBase = require('../../../index').commandHandlerBase; module.exports = commandHandlerBase.extend({ commands: ['changeDummy', 'destroyDummy', 'cancelDummy', 'fooIt' ], aggregate: 'dummyAggregate', fooIt: function(id, cmd) { var self = this; (new this.Command({ ...
if (Meteor.isClient) { Template.allTicketPosts.helpers({ tickets: function () { return Tickets.find({}, {sort: {dateAdded: -1}}); }, }); Template.addTickets.events({ 'submit .addTicketsForm': function(e){ var title = e.target.title.value; var locate = e.target.locate.value; v...
const Discord = require("discord.js"); var moment = require('moment'); moment.locale('pt-BR'); exports.run = (bot, message, args) => { let parts = message.content.split(' '); let argsJunto = parts[1] let toDeleteCount = parseInt(parts[1]); if (message.member.hasPermission('MANAGE_MESSAGES')) ...
export default process.env.REACT_APP_NODE_ENV ? process.env.REACT_APP_BASE_URL : 'http://localhost:3002' // export default 'https://tabbr-api.herokuapp.com'
/*jshint esversion: 6 */ /*********** MessageBox ****************/ // simply show info. Only close button function infoMessageBox(message, title){ $("#info-body").html(message); $("#info-title").html(title); $("#info-popup").modal('show'); } // like info, but for errors. function errorMessageBox(message) { var msg...
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ describe('page with sidebar', function() { let rootScope, scope; beforeEach((module("guanlecoja.ui"))); let elm...
/*Copyright (C) 2013 David Orchard Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
import {NavView} from './view'; import {Nav} from './model'; export default function initNav(app){ app.views.addViewProvider(Nav, function(model, app){ return new NavView(model); }); app.workspace.addHeaderPanel(new Nav(app)); }
var Game = { loadState: function(data) { if (typeof(teardownFunction) == "function") { teardownFunction(); } setupFunction = null; teardownFunction = null; $("#gameState").empty().append(data); Game.applyState(); }, applyState: function() { Game.applyStoreState(); Game....
var settings = {}; var myObj = { duration:"50000", easing:"swing", css_class:"cualquierCosa", links: [ { text:"GameSpot", href:"http://www.gamespot.com/" }, { text:"Pinterest", href:"https://www.pinterest.com/" }, [...
/*global define*/ define([ 'marionette', 'config', 'viewports/desktop/Router' ], function (Backbone, config, Router) { "use strict"; var app = new Backbone.Marionette.Application(); app.config = config; app.addRegions(appRegions()); app.addInitializer(function () { new Router(); ...
var functions_func = [ [ "a", "functions_func.html", null ], [ "b", "functions_func_b.html", null ], [ "c", "functions_func_c.html", null ], [ "d", "functions_func_d.html", null ], [ "e", "functions_func_e.html", null ], [ "f", "functions_func_f.html", null ], [ "g", "functions_func_...
import {isObject, setProperty} from './utils'; import formatMetadata from './format-metadata'; import buildExpiration from './expiration-date'; /** * @private * * Proxy for document.cookie * * @see * https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie * * @type {object} */ const $cookie = { get...
/* ----------------------------------------------------------------------------- This source file is part of Cell Cloud. Copyright (c) 2009-2014 Cell Cloud Team (www.cellcloud.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
'use strict' import Utils from '../Utils' export function handleOnline(data) { // emits the normal event this.emit('online', data) // console.log('handleOnline()') } export function handleConnect(data) { // emits the normal event this.emit('connect', data) // console.log('handleConnect()') } export func...
import express from 'express'; import * as vehicleController from './controllers/vehicle-controller'; import * as areaController from './controllers/area-controller'; function createRouter() { const router = express.Router(); router.get('/vehicles', vehicleController.getVehicles); router.get('/areas', are...
/*! * 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. */ // Provides control sap.m.Popover. sap.ui.define(['jquery.sap.global', './Bar', './Button', './InstanceManager', './library', 'sap/ui...
'use strict'; const { messages, ruleName } = require('..'); testRule({ ruleName, config: ['always'], accept: [ { code: 'a { background-size: 0\n,0\n,0; }', }, { code: 'a { background-size: 0\n\n,0\n\n,0; }', }, { code: 'a { background-size: 0\n, 0\n,\t0; }', }, { code: 'a { background-s...
a: break a;
/* * StageData.js * 2014/08/06 * @auther minimo * This Program is MIT license. */ (function() { //ステージ1 phina.define("pbr.Stage1", { superClass: "pbr.StageController", init: function(parent, player) { this.superInit(parent, player); //初期化処理 this.add(1, function(app) { ...
// cli-progress legacy style as of 1.x module.exports = { format: 'progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}', barCompleteChar: '=', barIncompleteChar: '-' };
import User from '../models/user'; import cuid from 'cuid'; import sanitizeHtml from 'sanitize-html'; const TEACHER_USER_TYPE = 'TEACHER'; /** * Get all teachers * @param req * @param res * @returns void */ export function getTeachers(req, res) { User.find({ userType: TEACHER_USER_TYPE }).sort('-dateAdded') ...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; //create a Schema var modelSchema = new Schema({ value:{ type: String, required: true }, make_id:{ type: String, required: true }, name:{ type: String, required: true }, checke...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'portfolio', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-c...
import React from 'react'; import { MemoryRouter } from 'react-router' import { Provider } from 'react-redux'; import Enzyme, { mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: new Adapter() }); import AssessmentList from './AssessmentList'; import createStore from '../...
const gulp = require("gulp") const babel = require("gulp-babel") const del = require("del") const less = require("gulp-less") const path = require("path") const plumber = require("gulp-plumber") const webpack = require("webpack-stream") gulp.task("default", ["copy", "js", "less"]) gulp.task("clean", () => del(["publi...
import React from 'react'; import PureComponent from './PureComponent.js'; import Move from './Move.js'; import Hud from './Hud.js'; import {formatNumber} from '../misc/jshelpers.js'; export default class HudPanel extends PureComponent { render() { const HUD_HEIGHT = 18; return ( <g cl...
/* eslint-env jasmine, mocha */ import htmlContent from '../../lib/html-content'; describe('dom: replaceChild', () => { function runTests (type) { describe(`${type}: `, () => { let div; let elem; let fragment; let host; let root; let slot; beforeEach(() => { div...
/** * Define some helpers to deal with NextJS. */ /** * When called from server-side code, this function throws an error that * NextJS will translate to a 404, rendering the `src/page/_error.js` with * the proper status code set. * * When called from client-side, this function does nothing. * * Check [this li...
module.exports = function(io) { io.on('connection', function(socket) { console.log("Hello world"); socket.on('chat message', function(msg) { socket.emit('chat message', msg); }); }); };
/** * Created by Stone on 2016/4/17. */ "use strict"; var UserDal = require('../dal/user'); exports.addUser = function (user) { !user.nickname && (user.nickname = '佚名'); user.role = 2; //先查询 return UserDal.findOne({$or: [{email: user.email}, {nickname: user.nickname}]}, null) .then(doc=> { ...
/** * Created by senntyou on 2017/11/30. */ /** * note: * * modify fie 'demo/project/dev/js/common/in_css_config.js' with: * * baseUrl: '/project/dev/css' */ require('../../util/change_cwd_to')(__dirname + '/demo'); require('./cus'); require('./cus-in-css-config'); var projectConfig = require('./demo/lilac...
/** * promisify */ function promisify(fn, exec) { return new Promise(function (res, rej) { fn = fn || function (err, html) { if (err) { return rej(err); } res(html); }; exec(fn); }); }
(function() { angular.module('frodocms.controllers') .controller('AllDocumentsController', ['$rootScope', 'Document', 'Auth', function($rootScope, Document, Auth) { var self = this; self.documents = []; self.allDocuments = []; $rootScope.$on('$routeChangeStart', function() {...
if (process.env.NODE_ENV !== 'production') { window.console.dev = function(msg) { console.log(msg); }; // use it for hot reload module.exports = require('./Root.hot'); // enable it and don't forget to add back render() function // module.exports = require('./Root.dev'); } else { window.console.dev = function(...
define([], function () { console.warn( 'wq/photos.js is now built-in, and does not need to be imported separately.' ); return {}; });
/* * The MIT License (MIT) * Copyright (c) 2016 Jim Liu * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Created by dsmiley on 5/18/17. */ var ColorUtils = /** @class */ (function () { function ColorUtils() { } ColorUtils.rgb2hex = function (rgb) { var result = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); if ...
/** * This file is part of the ProjectDOVE. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ requirejs.config({ //By default load any module IDs from js/vendor baseUrl: "js/vendor", //except, if the module ID starts with ...
System.register([], function (exports) { 'use strict'; return { execute: function () { exports('Extension', Extension); function Extension(name, deps) { return function (constructor) { Extension.prototype.registry[name] = { ...