code
stringlengths
2
1.05M
/* eslint-disable */ import React from 'react'; class BasicExample extends React.Component { render() { return ( <MessageModalLayout primaryButtonText="Leave" secondaryButtonText="Cancel" title="Discard changes" sideActions={<Checkbox>Don't show this again</Checkbox>} ...
var history = require(__dirname+'/process/chat_history'); history.init();
"use strict"; var self = this, fdb = new ForerunnerDB(), db = fdb.db('fdbChromeExtension'); self._expanded = { 'Databases': true }; // Setup the main db data view collection db.collection('dataView').setData([]); var getCall = function (js, callback) { chrome.devtools.inspectedWindow.eval(js, callback); }; var...
/* * Copyright (C) 2017 Alasdair Mercer, !ninja * * 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, me...
describe("user.signup",function(){ beforeEach(function(ready){ var options = { transports: ['websocket'], 'force new connection': true }; client_a = socket_io(base_url, options); ready(); }); afterEach(function(ready){ client_a.disconnect(); ready(); }); it("Will not allow an email in use t...
var gulp = require('gulp'); var config = require('../config'); var runSequence = require('run-sequence'); gulp.task('build:d', function (callback) { runSequence( [ 'jshint' ], [ 'less:theme', 'less:vendor', 'copy:build' ], [ 'cssmin:vendor', 'cssmin:theme', ...
angular.module('budget.categories', ['firebase']) .controller('categoriesCtrl', function ($scope, transactions, categories) { $scope.categories = categories; var groupTransactionsByMonth = function (transactions, category) { byCats[category] = _.groupBy(transactions, function (transaction) { ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _index = require('../../subHours/index.js'); var _index2 = _interopRequireDefault(_index); var _index3 = require('../_lib/convertToFP/index.js'); var _index4 = _interopRequireDefault(_index3); function _interopRequireDefault(obj) {...
var LEFT = 0; var RIGHT = 1; function Juggler(pattern,propsInput) { this.colors = ["blue", "red", "yellow", "green", "purple"] this.pattern = new Pattern(pattern); this.props = null; // props get loaded on init this.juggleTime = null; this.throwCounter = null; this.init = function () { this.j...
(function ( root, factory ) { if ( typeof module === "object" && module.exports ) { // Node, or CommonJS-Like environments // Intentionally returning a factory method module.exports = function(app) { return factory(app); }; } else { // Browser globals fa...
var objectUtils = require('../lib/objectUtils') describe("ObjectUtils", function() { describe("forEachProperty", function () { var testObj = { propOne: "one", propTwo: { propThree: "three" }, propFour: [ { ...
import React, { Component } from 'react'; import moment from 'moment'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import Recipe from 'client/app/components/Recipe'; const mapStateToProps = function (state) { return { cooks: state.cooks, juices: state.juices, recipes...
// PLUGIN: sequencer (function ( Popcorn ) { // XXX: SoundCloud has a bug (reported by us, but as yet unfixed) which blocks // loading of a second iframe/player if the iframe for the first is removed // from the DOM. We can simply move old ones to a quarantine div, hidden from // the user for now (see #2630)...
importScripts('socket.io-1.4.5.js'); var address = 'http://192.168.2.116:2017'; console.log("Connecting to: " + address); var socket = io(address); var RTTStart = new Date(); var tripDuration = null; var connections = 0; var s = this; socket.on("connect", function(e){ tripDuration = (new Date() - RTTStart) / 2; ...
import {routerView} from './RouterView'; import {router} from './reduxdirector'; import {reducer} from './reducer'; const Reducer=reducer const View=routerView const Router=router export {Reducer} export {View} export {Router}
/** * @fileoverview Main ESLint object. * @author Nicholas C. Zakas * @copyright 2013 Nicholas C. Zakas. All rights reserved. * See LICENSE file in root directory for full license. */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-----------------...
function demoSpread() { // array literals var fruits = ["apples", "oranges"]; var shoppingList = ["bananas", ...fruits]; console.log(shoppingList); // ["bananas", "apples", "oranges"] // function arguments function trySpread(one, two) { console.log(one, two); // ["apples", "oranges"] } trySpread(.....
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "en-NL", likelySubtags: { en: "en-Latn-US" }, identity: { language: "en", territory: "NL" }, territory: "NL", numbers: { currencies: { ADP: { displayName: "Ando...
(function () { 'use strict'; /** * @ngdoc function * @name config * * @description * Configuration function of the application's main module. */ function config($locationProvider) { // Setting HTML5 Location Mode $locationProvider.hashPrefix('!'); } //Start by defining the main module and addin...
const express = require('express'); const router = express.Router(); /* GET users listing. */ router.get('/', (req, res, next) => { res.status(200).send('respond with a resource'); }); module.exports = router;
class system_runtime_remoting_metadata_w3cxsd2001_soapnotation { constructor() { // string Value {get;set;} this.Value = undefined; } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // type GetType() GetType() { } ...
import { Map } from 'immutable'; import * as types from '../actions/action-types'; const INITIAL_STATE = Map({ windowHeight: window.innerHeight, // the height of the window, needs to be dynamically set when the window is resized so that the griddle table can be resized }); export default function reducer(state ...
import {createSelector} from 'reselect'; import {sortObjectArrayByOrderProperty} from 'utils'; export const navigationLinkArraySelector = state => state.layoutReducer.navigationLinkArray; export const socialMediaLinkArraySelector = state => state.layoutReducer.socialMediaLinkArray; export const sortedNavigationLinkSe...
(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); ...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.layout.DynamicSideContent. sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', 'sap/ui/core/ResizeH...
// autogenerated from src/templates/project.html at 2013-08-13 13:28:25 -0500 define(function() { var m = {}; m.source = "<section class=\"project\">\n" + " <header>\n" + " <h2>Project: <span class=\"name\"></span></h2>\n" + " </header>\n" + "</section>\n"; return m; });
function vectorTests() { var vec; vec = [0,0,0]; // equality assert_equal([0,0,0], vec); assert_not_equal([1], [NaN]); // normalization assert_equal([1], [3].normalize()); assert_equal([2/Math.sqrt(2*2+2*2), 2/Math.sqrt(2*2+2*2)], [2,2].normalize()); assert_equal([2/Math.sqrt(2*2+2*2+2*2), 2/Mat...
import Ember from 'ember'; import FirebaseSimpleAuth from 'ember-simple-auth-firebase/torii-providers/firebase-simple-auth'; export default FirebaseSimpleAuth;
'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...
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("widget","sq",{move:"Kliko dhe tërhiqe për ta lëvizur"});
declare class postcss$node { raw: Function, raws: Object, type: "rule" | "atrule" | "root" | "comment" | "decl", parent: Object, nodes: Array<Object>, next(): postcss$node | void, prev(): postcss$node | void, source: { start: { line: number, column: number }, end: { line: n...
/** * 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 */ import type {Fiber} from './ReactInternalTypes'; import type {Lanes, Lane} from './ReactFiberLane.new'; import type { ...
ScalaJS.is.scala_Product9 = (function(obj) { return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_Product9))) }); ScalaJS.as.scala_Product9 = (function(obj) { if ((ScalaJS.is.scala_Product9(obj) || (obj === null))) { return obj } else { ScalaJS.throwClassCastException(obj, "scala.Product9...
//TODO: WE NEED TO CONVERT ALL OF THESE METHODS TO PROXY TO OUR APPLICATION SINCE MANY CUSTOM APPS USE THIS! Umbraco.Sys.registerNamespace("Umbraco.Application"); (function($) { Umbraco.Application.SpeechBubble = function() { /** * @ngdoc function * @name getRootScope ...
var net = require('net'); var server = net.createServer(function(){ console.log("got connection"); }); server.listen(3490,"::");
(function() { angular.module('featureReport') .directive('jxlScenarioTable', jxlScenarioTable) function jxlScenarioTable() { return { restrict: 'E', scope: {}, transclude: false, templateUrl: "featureReport/scenarioTable/scenarioTable.directive.html", controller: 'ScenarioTab...
'use strict'; module.exports = function (grunt) { // Load grunt tasks automatically require('load-grunt-tasks')(grunt); // Time how long tasks take. Can help when optimizing build times require('time-grunt')(grunt); // Check for a new version var bump = grunt.option('bump') || ''; var currentversion =...
var driverPath = './DBDriver/' , defaultDriver = 'EasyTingo' , util = require('util') , Collection = require('./lib/Collection.js') , Parser = require('./lib/Parser.js') , defaultLimit = 30; /* this.DB this.params = { driverPath, driver } var test = {a: 1, b: { "b1": 2 }} */ /* var edb = require('ecdb'); ...
(function(){ var c = MVC.Controller.init; MVC.Controller.init = function(){ if(!this.className) return ; c(model, actions); }; MVC.Object.extend(MVC.Controller, c); if(!MVC._no_conflict) Controller = MVC.Controller; })();
'use strict'; /* global app:true */ /* exported app */ var app = angular .module('fbAuthApp', [ 'ngAnimate', 'ngAria', 'ngCookies', 'ngMessages', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'firebase' ]) .run(function($rootScope, $location){ $rootScope .$on('$r...
'use strict' var path = require('path') var gulp = require('gulp') var inno = require('gulp-inno') var LineDriver = require('line-driver') var basePath = path.resolve(__dirname, '..', '..') var issFilePath = path.join(basePath, 'InstallationMediaMetadata', 'WindowsInnoInstallerSetupScript.iss') var marksearchVersion...
// environment can either be production or development if (window.location.origin === "http://localhost:3000") { environment = 'development'; } else{ environment = 'production' ; }; var localhost = "http://localhost:3000/"; if(location.href.indexOf(localhost) > -1 && location.href != localhost){ location.h...
var React = require('react'); function getState() { return { visible: window.pageYOffset > 300 }; } var BackToTop = React.createClass({ getInitialState: function () { return getState(); }, _onChange: function () { this.setState(getState()); }, componentDidMount: function () { window.addEventListener('s...
/** * 可以对传入的对象链式添加一系列验证规则,然后开始逐条验证。 */ var options = { method:'get', datType:'json' } function Validate(option){ this.option = option; this.rules = []; } Validate.prototype = { addRule:function(key,msg,check){ this.rules.push({ key:key, msg:msg, check:check })...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:players', 'Unit | Route | players', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function(assert) { var route = this.subject(); assert.ok(route); });
Template.livechatAppearance.helpers({ previewState() { return Template.instance().previewState.get(); }, showOnline() { return Template.instance().previewState.get().indexOf('offline') === -1; }, color() { return Template.instance().color.get(); }, title() { return Template.instance().title.get(); }, ...
var teButtons = TextileEditor.buttons; /* Link button. */ link_button = TextileEditor.prepareButton(new TextileEditorButton('ed_link','link.png','"', '":', 'l', 'Link')); link_button.onclick = function() { this.standard = false; if (!this.textile_editor.checkOpenTags(this)) { this.tagEnd = '":' + prompt("A...
import React, { Component, PropTypes } from 'react' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' export default class extends Component { static propTypes = { //children: PropTypes.any.isRequired, animationEnter: PropTypes.string.isRequired, animationLeave: PropTypes.string.is...
/** * Draws a lamp rooted at the light beam */ import { drawPolygon, drawOval } from '../art-util' const BEAM_COLOR = '#ffcc6170' const LAMP_COLOR = '#494c53' const head = (g, x, y) => { g.save() g.translate(x, y) g.rotate(Math.PI * 0.20) g.translate(-x, -y) g.fillStyle = BEAM_COLOR drawPolygon( g...
(function() { angular .module('genesys') .directive('adminCheckinBarChart', AdminCheckinBarChart); AdminCheckinBarChart.$inject = ['Checkin']; function AdminCheckinBarChart( Checkin) { return { restrict : 'E', scope : { locationId : '=' ...
var GetterSetter = require('./'); var fred = { health: 90 } GetterSetter(fred, 'health'); function operate() { fred.health += 10; } function doctor() { operate(); } doctor();
// Temporary solution until I find a way to do it natively (hate this stuff) var bigInt = require('big-integer'); // Create limit number of 1000 digits for (var i = 1, limit = [1]; i < 1000; ++i) { limit.push(0); } limit = bigInt(limit.join('')); function fib() { var current = bigInt(1), before = bigInt(1...
var App = angular.module('whereismycar', [ 'ionic', 'ngStorage' ]); App.factory('Geolocation', [ '$rootScope', '$q', '$interval', '$http', function($rootScope, $q, $interval, $http) { var watchId = null; var url = 'http://maps.googleapis.com/maps/api/geocode/json?sensor...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M3 5v14h17V5H3zm4 2v2H5V7h2zm-2 6v-2h2v2H5zm0 2h2v2H5v-2zm13 2H9v-2h9v2zm0-4H9v-2h9v2zm0-4H9V7h9v2z" }), 'ViewListOutlined');
Vue.component('media-uploader', require('./components/MediaUploader'));
export const sizes = { XXS: 3, XS: 5, S: 10, M: 15, L: 20, XL: 25, }
/** * zrender: 图形空间辅助类 * * @author Kener (@Kener-林峰, linzhifeng@baidu.com) * * isInside:是否在区域内部 * isOutside:是否在区域外部 * getTextWidth:测算单行文本宽度 */ define( function(require) { var util = require('../tool/util'); var _ctx; /** * 包含判断 * @param {string} s...
Function.RegisterNamespace("Test.xUnit.js"); [Fixture] Test.xUnit.js.Mocks=function(){ }
import React from 'react' import ServiceList from '../shared/service-list' export default function ServicesByGSIM({ services, msg }){ return <ServiceList services={services} msg={msg} /> }
const Promise = require('bluebird') const time2date = require('../helper/time2date') const pagination = require('../helper/pagination') function dataFilter(data, repoName) { if (data.length === 0) return [] // noinspection JSUnusedGlobalSymbols return data.map(item => ({ sha: item.sha, repoName, git_...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { // production 生产环境 build: { // 构建环境 env: require('./prod.env'), // 构建输出的index.html文件 index: path.resolve(__dirname, '../dist/index.html'), // 构建输出的静态资源路径 assetsRoot: path.reso...
import Joi from 'joi'; export default { // POST /api/v1/user createUser: { body: { name: Joi.string().required(), email: Joi.string().email().required() } }, // GET/DELETE /api/v1/user/:userId byId: { params: { userId: Joi.string().hex().length(24).required() } }, // P...
import ajaxSendItems from '../../../ajax/ajaxSendItems'; import allChecks from './allChecks'; import changeLvls from './changeLvls'; import clearChecks from './clearChecks'; import doAction from './doAction'; import dropItem from '../../../ajax/dropItem'; import equipItem from '../../../ajax/equipItem'; import getCheck...
function Chat(organization, course, tutor, start_time) { this.org = organization; this.course = course; this.tutor = tutor; this.start_time = start_time; }; Chat.prototype.setOrg = function(organization) { this.org = organization; }; Chat.prototype.setCourse = function(course) { this.course = course; }; Ch...
/** * @ngdoc service * @name angularJs01App.login * @description * # login * Service in the angularJs01App. */ (function(){ 'use strict'; var app = angular.module('movimientos-service', []); app.factory('MovimientosService', ['$http', 'toastr', function ($http, toastr) { ...
import * as bountyTable from './bounty-table.css'; import * as login from './login.css'; import * as toast from './toast.css';
var app = angular.module('store'); app.directive('encuestasDirective',function(){ //Para meter HTML return{ restrict:'E', templateUrl:"app/templates/encuestas.html" } });
var Client = require('../../client'); module.exports = Client.sub({ "appPackage": require('./appdev/appPackage'), "package": require('./appdev/package') });
var settingsController = require('./settingsController.js'); module.exports = function(app) { app.route('/') .get(settingsController.getAllSettings); app.route('/laborCost') .post(settingsController.modifyLaborCost); };
/*! * # Semantic UI 2.2.4 - Progress * http://github.com/semantic-org/semantic-ui/ * * * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ($, window, document, undefined) { "use strict"; window = (typeof window != 'undefined' && window.Math == Math) ? windo...
var mongo = require('mongodb').MongoClient; var ObjectId = require('mongodb').ObjectId; var prompt = require('prompt'); var bcrypt = require('bcrypt-nodejs'); var config = require('./config/app'); var schema = { properties: { username: { description: 'Dashboard administrator username', required: true...
"use strict"; import path from "path"; import { expect } from "chai"; import Loader from "../src/loader"; describe("Loader", function () { let loader; beforeEach(function () { loader = new Loader({ type: "controller", path: path.resolve(__dirname, "fixtures", "controllers") }); }); des...
import React from 'react'; import styles from './styles.css'; const LoadingIndicator = () => ( <div> <div className={styles['sk-fading-circle']}> <div className={styles.skCircle}></div> <div className={styles['sk-circle2']}></div> <div className={styles['sk-circle3']}></div> <div classNa...
const fs = require('fs') const util = require('util') const async = require('async') const tileCase = require('title-case') const Vector = require('./math/vector').Vector const Tile = require('./game/tile').Tile const World = require('./game/world').World const Sprite = require('./game/sprite').Sprite const SpriteReg...
'use strict'; /* eslint-disable no-new-func */ module.exports = Function();
define([ "spaceobject", "enemyship", "asteroid", "bgs/background" ], function(SpaceObject, EnemyShip, Asteroid, Background) { var objects = []; var constraints = []; var Level = Class.extend({ story : "", outStory : "", gravity : new cv3(0, 0, 0), objects : objects, ...
JSONEditor.defaults.editors.upload = JSONEditor.AbstractEditor.extend({ getNumColumns: function() { return 4; }, build: function() { var self = this; this.title = this.header = this.label = this.theme.getFormInputLabel(this.getTitle()); // Input that holds the base64 string this....
'use strict'; //Comment votes service used to communicate Comment votes REST endpoints angular.module('comment-votes').factory('CommentVotes', ['$resource', function($resource) { return $resource('comment-votes/:commentVoteId', { commentVoteId: '@_id' }, { update: { method: 'PUT' } }); } ]);
import React, { Component, PropTypes } from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import AppRoot from './pages/appRoot'; import IndexPage from './pages/index/index'; import AboutPage from './pages/about'; import ForumPage...
/** * chovanec-elo-rating.js * * @author Romain FLEURY <fleury@romain.in> */ (function(){ "use strict"; angular.module("eloRating").provider("ChovanecEloRating", [function () { // thanks to Chovanec.elo-rating github this.KFACTOR = 16; this.$get = ["$http", "$log", "$q", function...
'use strict'; var Category = require('../models/category'); module.exports = { allCategories: findAll, findACategory: getOne, newCategory: save, updateCategory: update, deleteCategory: delCategory }; // GET function findAll(req, res) { Category.find({}, function(err, categories) { res.json(categories...
module.exports = (function(global) { 'use strict'; let AudioContext = null; try { AudioContext = global.AudioContext || global.webkitAudioContext || global.mozAudioContext || global.oAudioContext || ...
module.exports = { db: process.env.MONGODB|| 'mongodb://localhost:27017/test', sessionSecret: process.env.SESSION_SECRET || 'Your Session Secret goes here', pushover: { login: process.env.MAILGUN_LOGIN || 'postmaster@sandbox697fcddc09814c6b83718b9fd5d4e5dc.mailgun.org', password: process.env.MAILGUN_PA...
'use strict'; module.exports = function () { return { 'saveEvent': [{ role: 'basic-user', customValidator: [{ role: 'cd-events', cmd: 'is_ticketing_admin' }] }], // TODO: verify this one, seems meh to me 'getEvent': [{ role: 'none' }], 'listEvents': [{ ...
Function.prototype.method = function (name, func) { this.prototype[name] = func; return this; }; Object.method('superior', function (name) { var that = this; var method = that[name]; return function() { return method.apply(that, arguments); }; })
import { injectReducer } from '../../store/reducers' export default (store) => ({ getComponent (nextState, cb) { require.ensure([], (require) => { const Todos = require('./containers/TodosContainer').default const reducer = require('./modules/todos').default injectReducer(store, { key: 'todos'...
// WebIntent test require("../lib/WebModule.js"); // publish to global WebModule.publish = true; __MODULES__ __WMTOOLS__ __SOURCES__ __OUTPUT__ __TEST_CASE__
module.exports = function (app) { app.directive("topBar", function () { return { restrict: "E", templateUrl: "/static/views/topbar/index.html" }; }); app.directive("sideBar", function () { return { restrict: "E", templateUrl: "/static/views/sidebar/index.html" }; }); v...
'use strict'; //Forums service used for communicating with the articles REST endpoints angular.module('forums').factory('Forums', ['$resource', function($resource) { var that = $resource('forums/:forumId', { forumId: '@_id' }, { update: { method: 'PUT' } }); that.forums = that.query(...
'use strict'; angular .module('softvApp') .config(function ($stateProvider) { var states = [{ name: 'home.procesos', abstract: true, template: '<div ui-view></div>' }, { name: 'home.procesos.atencion', data: { pageTitle: 'SOFTV | ATENCIÓN TELEFÓNICA'...
var path = require('path') var utils = require('./utils') var webpack = require('webpack') var config = require('../config') var merge = require('webpack-merge') var baseWebpackConfig = require('./webpack.base.conf') var CopyWebpackPlugin = require('copy-webpack-plugin') var HtmlWebpackPlugin = require('html-webpack-pl...
/*! * bory * Copyright(c) 2017 Daniel Röhers Moura * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */ const createError = require('http-errors'); const debug = require('debug')('bory:urlencoded'); const deprecate = require('depd')('bory'); const read = require('../read'); const typeis = ...
/** * Created by Admin on 7/30/2016. */ (function(document, window, $) { 'use strict'; $.myapp = $.myapp || { url: null, limit: 10, page: 1, data: {ajax:true }, done: function(data){}, always: function(data) {}, ...
/** * Created by Window Hello on 2016/6/24. */ // An example Backbone application contributed by // [Jérôme Gravel-Niquet](http://jgn.me/). This demo uses a simple // [LocalStorage adapter](backbone.localStorage.html) // to persist Backbone models within your browser. // Load the application once the DOM is ready, u...
const _ = require('underscore'); const pathUtils = require('path'); const fs = require('fs'); const pProps = require('p-props'); const pathExists = require('path-exists'); /** * Fs adapter stores executed migration in file system. * NOTICE: because of entry file is read and write and it's async operations * paralle...
/** * settings.serv.js */ class SettingsServ { constructor() { this.clickDelay = 350; this.autoCloseDialogDelay = 1000; } } export default SettingsServ;
'use strict' const t = require('tcomb') const fetch = require('node-fetch') const { requestProperties, validateResponse, parseJSON } = require('../utils') const PATH = '/urls' module.exports = function createURL(body) { t.Object(body) return new Promise((resolve, reject) => { const { href, headers } = reque...
/*global angular, sms*/ angular.module("gessami") .provider("SmsProvider", function () { "use strict"; this.$get = function () { return { sendSMS: function (phoneNumber, message, successHandler, errorHandler) { if (sms) { sms.s...
import chance from 'chance'; import { API_BASE, API_FORMAT, ENDPOINT_INBOX, ENDPOINT_DOMAINS, ENDPOINT_DELETE } from './constants'; /** * Format Mail * @param {object} message */ export function formatMessage(msg) { return { id: msg.mail_id, uid: msg.mail_unique_id, from: msg.mail_from, ...
// Runs adapt script on all apps in a system 'use strict'; var deferred = require('deferred') , generateAppsList = require('./generate-apps-list') , generateAppsClientModelScript = require('./generate-apps-client-model-script') , generateAppsClientProgramScript = require(...