code
stringlengths
2
1.05M
'use strict'; let fs = require('fs'); let path = require('path'); let resolve = require('./resolve'); let resolveTree = module.exports = (location, metadata) => { try { let files = fs.readdirSync(location); return files.map((file) => { let resolvedPath = path.resolve(location, file); let stats ...
require('./out/koremake.js');
import angular from 'angular' import ChecklistController from "./checklist.controller"; import ChecklistService from "./checklist.service"; angular.module('checklist', ['ng-sortable']) .service('ChecklistService', ChecklistService) .controller('ChecklistController', ChecklistController);
/** * 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) { exports.FillStyleTypes = { SolidFill : 0x00, Lin...
/** * This file/module contains all configuration for the build process. */ module.exports = { /** * The `build_dir` folder is where our projects are compiled during * development and the `compile_dir` folder is where our app resides once it's * completely built. */ build_dir: 'build', ...
/** * @author Luiz Freneda <lfreneda@gmail.com> */ var ua = require('../'); exports['Baiduspider Bot'] = function (test) { var source = 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)'; var userAgent = ua.parse(source); test.ok(!userAgent.isMobile, 'Mobile'); ...
module.exports = [ 'Every dude thinks about killing his wife. He was just crazy enough to write it all down.', 'I think me and Dre are gonna be like Walter Matthau and Jack Lemmon. When we get really old, I\'ll probably be having gray braids.', 'I tell the truth. And I know what I\'m talking about. That\'s why I\'m a t...
var map; function initialize() { // Try HTML5 geolocation if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); ...
var _ = require('lodash') , Entity = require('./entity') , logger = require('../logger') var TrackingCategorySchema = new Entity.SchemaObject({ Name: {type:String}, Option: {type:String}, TrackingCategoryID: {type:String} }); var JournalLineSchema = new Entity.SchemaObject({ JournalLineID: {ty...
/*design pattern notes: 1.introduction: OO:需要考虑类的粒度,接口与继承关系,未来拓展,避免重新设计 要敢于使用面向对象 不要一开始就想新的方法去解决,学会复用,DRY One thing expert designers know not to do is solve every problem from first principles. Rather, they reuse solutions that have worked for them in the past. basing new designs on prior experience. object-o...
'use strict'; module.exports = { up: function(queryInterface, DataTypes) { return queryInterface.addColumn('Groups', 'backgroundImage', { type: DataTypes.STRING, }); }, down: function(queryInterface, Sequelize) { return queryInterface.removeColumn('Groups', 'backgroundImage'); }, };
;(function ($, window, document, undefined) { 'use strict'; var Modernizr = Modernizr || false; Foundation.libs.joyride = { name : 'joyride', version : '5.2.2', defaults : { expose : false, // turn on or off the expose feature modal ...
(function() { var delay = 20000, layers = {}, dataManagersLinks = {}, script = '/Layer/CheckVersion.ashx', intervalID = null, timeoutID = null, lastLayersStr = ''; var isExistsTiles = function(prop) { var tilesKey = prop.Temporal ? 'TemporalTiles' : 'tiles'; return tilesKey in prop; }; ...
import d3 from 'd3'; import MoneyChart from './MoneyChart'; export default class AreaChart extends MoneyChart { constructor(el, props) { super(el, props); this.props.margin = { top: 20, right: 10, bottom: 40, left: 40, }; this.props...
const Login = () => import('@/authuser/pages/Login') const LoginTitle = () => import('@/authuser/components/LoginTitle') const VerifyMailTitle = () => import('@/authuser/components/VerifyMailTitle') const RequestPasswordResetTitle = () => import('@/authuser/components/RequestPasswordResetTitle') const RequestPasswordRe...
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detial col-md-8"> <div className="embed-reponsive embed-reponsive-16by9"> ...
import {inject} from 'aurelia-framework'; import {CampaignCollection} from 'Models/CampaignCollection'; import {bindable, customElement} from 'aurelia-framework'; @inject(CampaignCollection) @bindable ({ name:'selectedCampaign', attribute:'selected-campaign'}) export class CampaignsList{ constructor(campaignCollect...
$(function() { var showHtml = function() { var html = marked(editor.val()); output.html(html); editor.hide(); output.fadeIn(); } var showMarkdown = function() { output.hide(); editor.fadeIn(); editor.focus(); } var switchView = function() { editor.is(":visible") ? showHtml() : showMarkdown(); r...
(function (app, inherit, Component, ls) { var TodoModel = function (id, description) { Component.apply(this, arguments); this.id = (id || (this.namespace + '/' + TodoModel.lastId++)); this.description = (description || ""); if (!this.get()) { this.save(); } }; TodoModel.lastId = 0;...
var users = tresdb.stores.users; var EventsView = require('../Events'); var template = require('./template.ejs'); var pointsTemplate = require('./points.ejs'); var emitter = require('component-emitter'); var ui = require('georap-ui'); module.exports = function (username) { // Parameters // username // str...
'use strict'; //Setting up route angular.module('mean.users').config(['$meanStateProvider', function($meanStateProvider) { // Check if the user is not connected var checkLoggedOut = function($q, $timeout, $http, $location) { // Initialize a new promise var deferred = $q.defer(); // Make an...
/** * @author Gustav 'Nuuf' Åberg <gustavrein@gmail.com> */ module.exports = function ( Nenkraft ) { 'use strict'; function Register ( _options ) { if ( !( this instanceof Register ) ) return new Register( _options ); this.commands = []; } Register.prototype = Object.create( null ); Registe...
var Result = function(movies) { var that = (this === window ) ? {} : this; that.key = movies[0].title + movies[1].title; that.movies = [movies[0], movies[1]]; //private methods var similarActors = function (actorsLists) { var commonParts = []; if (actorsLists[0] == undefined || acto...
import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import { translate as $t, formatDate } from '../../helpers'; import { get, actions } from '../../store'; import InfiniteList from '../ui/infinite-list'; import withLongPress from '../ui/longpress'; import AmountWell...
define(["myApp/hello"], function(hello){ describe("hello", function(){ it("should say some words", function(){ expect(hello()).toEqual("Hello World !"); }) }) })
/* Multiple Timeline Factory - Base class for templates supporting multiple timelines (e.g. Lists, Search) */ function MultipleTimelineFactory(template) { TimelineFactory.call(this, template); } MultipleTimelineFactory.prototype = $.extend({}, TimelineFactory.prototype, { create: function() { if(this.templa...
// Platform: ios // 2c29e187e4206a6a77fba940ef6f77aef5c7eb8c /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the A...
$(document).ready(function () { /** letting the cancel avoid html5 validation and redirect back */ $('.remove-client-validation').click(function () { $(this).parent('form').attr('novalidate', 'novalidate'); }); /** * Trigger deletion of the record from the dynamic DataTables entries. ...
(function () { var Notifier = function () { var titlebar = document.getElementsByTagName('title')[0]; var pageTitle = titlebar.innerHTML; var total = 0; var totalMax = 99; var withSuffix = false; var updateTotal = function (value) { if (value > 0 && value ...
NEWSBLUR.Views.FeedList = Backbone.View.extend({ tagName: 'ul', className: 'folder NB-feedlist', options: { sorting: "alphabetical" }, initialize: function() { this.$s = NEWSBLUR.reader.$s; if (!this.$el.length) return; if (this.options.fe...
describe('cursor', function() { 'use strict'; var window, document, body, pageDone, PlainDraggable, defaultDraggableCursor, defaultDraggingCursor, draggable = {default: [], byInline: []}, orgValue = {}, normalValue = {}, parentCursor = 'wait', classCursor = 'help'; function getMouseE...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createSetSize = void 0; var _array = require("../../utils/array"); var _factory = require("../../utils/factory"); var name = 'setSize'; var dependencies = ['typed', 'compareNatural']; var createSetSize = /* #__PURE__ */ (0, _fact...
import { set_global } from './set_global'; export const group = { set_global };
// s6d module m1 { export fn1, var1; } // -s6d "use strict"; var fn1 = function () { return true; }; var var1 = 'EXPORTED NAMED MODULE!!';
import { getMetadataArgsStorage } from "../../index"; /** * Classes decorated with this decorator will listen to ORM events and their methods will be triggered when event * occurs. Those classes must implement EventSubscriberInterface interface. */ export function EventSubscriber() { return function (target) { ...
'use strict'; module.exports = { "payingWith" : "ชำระเงินด้วย {{paymentSource}}", "chooseAnotherWayToPay" : "เลือกวิธีการชำระเงินอื่น", "chooseAWayToPay" : "โปรดเลือกวิธีชำระเงิน", "otherWaysToPay" : "วิธีอื่นในการชำระเงิน", "edit" : "แก้ไข", "doneEditing" : "เสร็จแล้ว", "editPaymentMethods" : "แก้ไขวิธี...
var Promise = require('promise'); /** * @constructor */ function RouteParam() { } /** * @param {*} value * @returns {Promise<string>} */ RouteParam.prototype.stringify = function (value) { return Promise.resolve(String(value)); }; module.exports = RouteParam;
import WalletDb from "../stores/WalletDb" import WalletUnlockActions from "../actions/WalletUnlockActions" //import BalanceClaimStore from "stores/BalanceClaimStore"//circular dep somewhere import ApplicationApi from "../rpc_api/ApplicationApi" import PrivateKey from "../ecc/key_private" import Apis from "../rpc_api/Ap...
module('lively.data.FileUpload').requires('lively.persistence.Serializer', 'lively.Network').toRun(function() { // Handles uploading of dropped files via HTML5 event API. This is how it works: // From the drop event we get a list of files, each have a type attribute // (String, mime type) // 1. lively.data.FileUpload>...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs"); const json_schema_1 = require("@ngtools/json-schema"); function buildSchema(inFile, _logger) { const jsonSchema = JSON.parse(fs.readFileSync(inFile, 'utf-8')); const SchemaClass = json_schema_1.SchemaClassFact...
// Define Dependencies const { dest, src } = require('gulp') const config = require('../../config').optimize.html const htmlmin = require('gulp-htmlmin') const htmlreplace = require('gulp-html-replace') const handleErrors = require('../../utilities/handle-errors') const plumber = require('gulp-plumber') // Task functi...
'use strict'; System.register(['aurelia-templating', 'aurelia-dependency-injection', 'aurelia-framework', '../common/attributeManager', '../common/attributes', '../element/element'], function (_export, _context) { "use strict"; var bindable, customElement, noView, inject, computedFrom, AttributeManager, getBo...
// @flow import React from "react"; import { ChoiceType } from "../../types"; import { List } from "immutable"; import { DragTypes } from "./DragTypes"; import { DragSource, DropTarget } from "react-dnd"; import Confirm from "./Confirm"; type Props = { choice: ChoiceType, sectionId: number | string, questionId:...
var net = require('net'); var elink = require('./envisalink.js'); var events = require('events'); var eventEmitter = new events.EventEmitter(); //var config = require('./config.js'); var connections = []; var alarmdata = { zone: {}, partition: {}, user: {} }; var actual, server, config; var consoleWrapper = new Obj...
exports.commands = []; const quietChannels = { '477270527535480834': true, '289447389251502080': true, '285040042001432577': true, '284746888715042818': true, '294244239485829122': true, '290228574273798146': true, }; function isQuiet(channel, speaker) { if (quietChannels[channel.id] && !U...
;(function () { 'use strict'; angular.module('model.banks', []) .service('banks', banks); banks.$inject = ['http', 'url']; function banks(http, url) { let service = { getAllBanks: getAllBanks, }; return service; function getAllBanks() { ...
(function () { "use strict"; angular .module("ui.components", [ "ui.core" ]); })(); (function () { 'use strict'; angular .module('ui.components') .directive('uiSplashScreen', uiSplashScreenDirective); /** @ngInject */ function uiSplashScreenDirecti...
var listFirewalls = { path: '/firewalls', method: 'GET', cache: false, template: [ { id: 'XXXXXXX-a493-45e6-46c9-922d9764e78c', name: 'Restricted', openstack_security_group_id: 'XXXXXXX-47bb-47c2-b6b3-df097191e79b', rules_count: 3, inst...
var g=this.self||global; function k(c,x){var p=c.replace(/[; ]*$/,"").trim().split(/\s*;\s*/).reduce(function(e,a){if(a){var f=a.split(/\s*(==|=|<=|>=|<|>)\s*/),b=f[0].toUpperCase(),d=f[1]||"",f=f[2]||"";b in l?e.push([b,d,f]):console.log("DeviceQuery invalid token: "+a)}return e},[]),p=p.reduce(function(e,a){var f=a[0...
'use strict'; module.exports = function (grunt) { require('jit-grunt')(grunt, { 'simplemocha': 'grunt-simple-mocha' }); // Project configuration. grunt.initConfig({ simplemocha: { options: { timeout: 3000, ignoreLeaks: false, ui: 'bdd', reporter: 'tap' }, ...
/** * Visualizes a specified compass direction (aspect) by color coding faces which are perpendicular to that direction within a specified deviation. * This is similar to the DirectionMaterial but only considers the horizontal angle of the face normals and not the vertical angle. * * @namespace GIScene * @class A...
/*! * Native JavaScript for Bootstrap Alert v3.0.14c (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined...
// public/core.js // var app = angular.module('app', []); var app = angular.module('app', []); app.factory('socket', function($rootScope){ var socket = io.connect(); return{ on: function(eventName, callback){ socket.on(eventName, function(){ var args = arguments; ...
"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...
!function(fa,$,O){"undefined"!==typeof module?module.exports=O(fa,$):"function"===typeof define&&"object"===typeof define.amd?define(O):$[fa]=O(fa,$)}("zpipe",this,function(fa,$){var O,Q,Nb,S,la,ab;function jd(a){eval.call(null,a)}function T(a){ga(a+":\n"+Error().stack);throw"Assertion: "+a;}function ha(a,e){a||T("Asse...
// Set login and password to your Yammer credentials. // It is NOT RECOMMENDED to have the Inbox open while running this script. // Read messages will be added to a list at the bottom of the page without // ever removing them. A hundred messages caused Fluid to use 2GB+ of memory. var login = 'me@lullabot.com'; var pas...
import React, { Component } from 'react'; class Header extends Component { render(){ return( <header> <div className="header-logo"> <a href="/"> <img width="165" height="auto" className="header-logo" src="https://mural.co/public/assets/images/logo.svg" alt="Mural" /> </a> </div> <...
require('/application/circle2.js')(); module.exports = function() { console.log('circle-1'); }
'use strict'; // Configuring the Articles module angular.module('mypages').run(['Menus', function(Menus) { // Set top bar menu items //Menus.addMenuItem('topbar', 'Mypages', 'mypages' ,'mypages/create' ); //Menus.addSubMenuItem('topbar', 'mypages', 'List Mypages', 'mypages'); //Menus.addSubMenuItem('topbar',...
import React, { Component } from 'react'; class Activites extends Component { render() { return( <div>activity-list</div> ); } }
'use strict'; exports.each = arrayUtil(Array.prototype.forEach, myForEach); exports.some = arrayUtil(Array.prototype.some, mySome); exports.every = arrayUtil(Array.prototype.every, myEvery); function arrayUtil(nativeFunc, shimFunc) { return nativeFunc ? contextify(nativeFunc) : shimFunc; } /** * Makes function f...
const test = require('ava') const comparePolygonsAsPoints = require('../../../test/helpers/comparePolygonsAsPoints') const { geom2, geom3 } = require('../../geometry') const { circle, rectangle, sphere, cuboid } = require('../../primitives') const { subtract } = require('./index') // test('subtract: subtract of a ...
// initial state const state = { // We just need to reference the pokemon's id id: null, } // getters const getters = { // Retrieve's the pokemon from the rootState pokemon(state, getters, rootState){ return rootState.pokedex[state.id]; }, fightOptions(state, getters){ return Ob...
'use strict'; module.exports = function(GroupModel, $done) { var UserModel = DependencyInjection.injector.model.get('UserModel'); UserModel.homeDefaultTile(function($socket, callback) { if (!$socket || !$socket.user || !$socket.user.id) { return callback(null); } UserModel.fromSocket($socket, f...
jQuery(function(){ var KonamiKeys = []; function Konami(e){ KonamiKeys.push(e.keyCode); if (KonamiKeys.toString().indexOf("38,38,40,40,37,39,37,39,66,65") >= 0) { jQuery(this).unbind('keydown', Konami); kExec(); } } jQuery(document).keydown(Konami); }); fu...
import { Serializer as AccessSerializer } from '../mixins/regenerated/serializers/i-c-s-soft-s-t-o-r-m-n-e-t-security-access'; import __ApplicationSerializer from './application'; export default __ApplicationSerializer.extend(AccessSerializer, { });
/* * Copyright (C) 2015 xiuno.com */ /* 参考 jquery 1.4 对话框参数设计 用法: <div class="dialog bg2 border shadow" title="对话框标题" id="dialog1" style="display: none;">文字HTML等内容...</div> <script> // 弹出指定的 div $('#id1').dialog(); $('#id1').dialog('open'); $('#id1').dialog('close'); $('#id1').dialog({ modal: true }); ...
/** * @description Server entry-point file. * @script * @standalone */ // If 'NODE_ENV' not set, set it if (!process.env.NODE_ENV) { process.env.NODE_ENV = 'dev'; } const isDevEnv = process.env.NODE_ENV.toLowerCase().indexOf('dev') === 0; // If dev mode load local environment config if (isDevEnv) { requi...
import Logger from './logger'; Logger('domain').info('loaded'); import Base from './base'; /** Domain represents an encapsulated world of Ampere modules. The Domain class allows parallel ampere worlds with same named modules. Domains are completely disconnected from others. */ export default class Domain exten...
'use strict'; var exec = require('child_process').execSync, gutil = require('gulp-util'); module.exports = function (path, options, cb) { if(!cb && typeof options === 'function') { cb = options; options = {}; } if(!cb || typeof cb !== 'function') cb = function() {}; if(!options) ...
function solve(args) { var sizes = args[0].split(' '), startPosition = args[1].split(' '), rows = parseInt(sizes[0]), cols = parseInt(sizes[1]), row = parseInt(startPosition[0]), col = parseInt(startPosition[1]), lab = args.slice(2), visited = {}, sum,...
'use strict'; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('formations');
version https://git-lfs.github.com/spec/v1 oid sha256:359d57e54ba9ff233360bedeb503acb0fa38f69ea17a60063a900131617d9fc9 size 109542
import Vue from 'vue' import FlatElements from './index' Vue.use(FlatElements) export default new Vue({ el: '#app' })
export const _structure = ` <Box> <StorybookComponents.Placeholder> Content </StorybookComponents.Placeholder> </Box>; `; export const _dimensions = ` <StorybookComponents.Stack flexDirection="column"> <Box width="100%" height="100px"> <StorybookComponents.Placeholder>Width 100%, Height 100px</StorybookC...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), AdmissionEligibilityRule = mongoose.model('AdmissionEligibilityRule'), agent = request.agent(app); /** * Globals */ var credentials, user,...
var express = require('express'); var router = express.Router(); const { getEntry, getAllEntries, getEntryByUrl, addEntry, deleteEntry } = require('./../db/entries') /* GET entries */ router.get('/', function(req, res) { getAllEntries() .then(response => res.json(response)) .catch(err => res.send(...
'use strict'; require([ 'config', 'connectors', 'customPatterns', 'storage/chromeStorage', 'wrappers/chrome', 'services/scrobbleService', 'util', 'bootstrap' ], function(config, connectors, customPatterns, ChromeStorage, chrome, ScrobbleService, Util) { const EXPORT_FILENAME = 'local-cache.json'; /** * Ob...
var gulp = require('gulp'); var watch = require('gulp-watch'); var config = require('../config.js'); gulp.task('watch', function(){ watch(config.coffee.all, function(){ gulp.start('coffee', 'html'); }) watch(config.jade.src, function(){ gulp.start('jade', 'html'); }) watch(config.sa...
require('../../mctad'); var assert = require('chai').assert; describe('sampleVariance', function() { it('can return undefined when given something other than an array', function() { assert.isUndefined(mctad.sampleVariance(), 'empty argument to sampleVariance'); assert.isUndefined(mctad.sampleVariance(2), 'sc...
/* @flow */ import program from 'commander' import {getConfig, setConfig} from '../../config' import {NavyError} from '../../errors' import {reconfigureAllNavies} from '../util/reconfigure' const NAME_MAP = { 'default-navy': 'defaultNavy', 'external-ip': 'externalIP', } const configWhichNeedsReconfigure = [ 'e...
'use strict'; var builder = require('botbuilder'); var request = require('request'); var platforms = require("../data/platforms"); var emoji = require('node-emoji'); module.exports = { Label: 'Account information', Dialog: [ function (session) { builder.Prompts.text(sess...
const { assert } = require('chai'); const collar = require('../../src/collar'); describe('collar', () => { it('Should resolve single promise', async() => { const response = await collar(Promise.resolve('test'), 5); assert.equal(response, 'test'); }); it('Should resolve multiple promises', async() => { ...
quiz_data = { "title": "What floor of Davis library should you study on?", "description": "When the UL is too busy to focus, the study lounge is occupied with other chatty students, and, there's only one other place to go for students looking to get their lives together: Davis library. In a place so monstrous,...
/** * * user.js * * @description * @author Fantasy <fantasyshao@icloud.com> * @create 2014-12-01 * @update 2014-12-01 */ var models = require('../models'); var User = models.User; exports.getUserByQuery = function (name, callback) { User.find({ name: name }, callback); }; exports.getUserById = function (...
/* eslint-env jest */ import superagent from 'superagent'; import httpClient from './HttpClient'; const url = 'url'; const query = { a: 1, b: 2 }; describe('HttpClient', () => { beforeEach(() => { superagent.get.mockClear(); superagent.query.mockClear(); superagent.end.mockClear(); }); describe('g...
var express = require('express'); var router = express.Router(); //var dbconnect = require('../middlewares/dbconnect'); var alumnos = require('../models/alumno'); var dbname = 'mongodb://localhost/alumnos'; var mongoose = require('mongoose'); mongoose.connect(dbname); var db = mongoose.connection; db.once('op...
import"./index-bd74d86a.js";import{F as t}from"./formatter-eea8aef7.js";import{n as e}from"./number-d5d94d66.js";export default class extends t{static get formatter(){return e}}
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import './material.min.css'; import './app.css'; const store = configureStore(); render( <...
import svg from './svg/email.svg' export default svg
'use strict'; (function(lunar) { var toggleData = function() { var allRunsSelect = false; return function toggleData (event) { // ----- toggles chart lines and background colours in dataselector ----- // var e = event; var el = angular.element(e.target.parentNode); var runNum = el....
// Download the Node helper library from twilio.com/docs/node/install // These 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 ...
/*global describe, it */ (function () { "use strict"; describe( 'Processing the template', function () { var expected, view, $head = $( "head" ); afterEach( function () { expected = view = undefined; Backbone.InlineTemplate.clearCache(); } ); ...
// The background page is asking us to find an address on the page. if (window == top) { $(document).ready(function () { chrome.runtime.sendMessage({ 'action': 'matched', 'hostname': document.location.hostname }, function (options) { var profile = options.profile...
var app = require('../../server/server'); var config = require('../../server/config.json'); var cloudinary = require('cloudinary'); var path = require('path'); var bodyParser = require('body-parser'); var formidable = require('formidable'); var fs =require('fs-extra'); //app.use(bodyParser({defer: true})); module.exp...
/** * Module dependencies */ var app = require('./app'); var should = require('should'); var supertest = require('supertest'); describe('simple-stack-common', function() { it('should start a server', function(done) { supertest(app) .get('/') .end(function(err, res) { if (err) return done(e...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _extends2 = _int...
/** * @mixin Task * @property {String} title The task's title * @property {String} description The task's description * @property {Date} deadline The task's deadline * @property {INTEGER} priority The task's priority * @property {BOOLEAN} status The task's status ('Done','Undone') * @pro...
"use strict"; const from = require("resolve-from"); module.exports = (args) => { const options = { __proto__ : null, paths : [], ...args, }; return (src, file) => { let result; options.paths.some((dir) => (result = from.silent(dir, file)) ...
'use strict'; define('admin/plugins/composer-default', ['settings', 'alerts'], function (Settings, alerts) { var ACP = {}; ACP.init = function () { Settings.load('composer-default', $('.composer-default-settings')); $('#save').on('click', function () { Settings.save('composer-default', $('.composer-default-...