code
stringlengths
2
1.05M
/* global angular,_ */ 'use strict'; angular.module('core').controller('LoadingController', ['$scope', '$state', 'Auth', function ($scope, $state, Auth) { Auth.authenticate().then(function (user) { if (user) { $state.go('home'); } else { $state.go('welcome'); } }, function(e...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); var Field_1 = require("./Field"); exports.Field = Field_1.Field; var Submit_1 = require("./Submit"); exports.Submit = Submit_1.Submit; var ActionD...
const LANGUAGES = { aa: ["Afar", "Afar"], ab: ["Abkhazian", "Аҧсуа"], af: ["Afrikaans", "Afrikaans"], ak: ["Akan", "Akana"], am: ["Amharic", "አማርኛ"], an: ["Aragonese", "Aragonés"], ar: ["Arabic", "العربية"], as: ["Assamese", "অসমীয়া"], av: ["Avar", "Авар"], ay: ["Aymara", "Aymar"], az: ["Azerbaij...
'use strict'; const path = require('path'); const SourceInclusion = require('./source-inclusion').SourceInclusion; exports.DependencyInclusion = class { constructor(bundle, description) { this.bundle = bundle; this.description = description; this.items = []; this.traceDependencies = true; if (de...
// Copyright (c) 2016 Uber Technologies, Inc. // // 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...
/* * loglevel - https://github.com/pimterry/loglevel * * Copyright (c) 2013 Tim Perry * Licensed under the MIT license. */ (function (root, definition) { "use strict"; if (typeof module === 'object' && module.exports && typeof require === 'function') { module.exports = definition(); } else if ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2C8.2 7.18 6.84 6.62 5.4 6.62 2.42 6....
import stringifyComponent from 'ember-aframe/utils/stringify-component'; import { module, test } from 'qunit'; module('Unit | Utility | stringify-component', function() { test('it works', function(assert) { let result = stringifyComponent('animation', { dir: 'alternate', dur: undefined }); a...
'use strict'; var through = require('through2'); var fs = require('fs'); var _ = require('lodash'); var path = require('path'); var glob = require('glob'); var getCard = function(mid){ return new RegExp('import[*|\\w|\\s]+\''+mid+'\'|import[*|\\w|\\s]+\"'+mid+'\"','g'); } var escapeRegExp = function(str) { // credit...
var chessground = require('chessground'); var classSet = chessground.util.classSet; var game = require('game').game; var status = require('game').status; var partial = chessground.util.partial; var m = require('mithril'); module.exports = { standard: function(ctrl, condition, icon, hint, socketMsg, onclick) { //...
// @flow import { projectRun, toProjectRunOptions } from '../run'; test('bolt project run');
/** * This example shows how to use node-pixel to display a set of rainbow colors * on your NeoPixel strip using Johnny-Five. * * created by @pierceray in June 2015 */ const five = require('johnny-five'); const pixel = require('node-pixel'); const opts = {}; opts.port = process.argv[2] || ''; const board = new f...
'use strict'; var test = require('selenium-webdriver/testing'), register_new_user_func = require('../lib/register_new_user'), login_user_func = require('../lib/login_with_user'), open_page_func = require('../lib/open_page'), submit_form_func = require('../lib/submit_form')...
(function() { 'use strict'; angular .module("myPick10") .service('ergastCalls', ergastCalls); 7 /** * wrapper for all ergast based calls to ergast api * @param $log * @param MyHttp * @returns {{}} */ function ergastCalls($log, MyHttp, ergastAPIAddress){ var ErgastCalls = {}; Erga...
import { UPDATE_BASE } from '../actions/base'; import { initBaseState } from '../store/initState'; const initState = initBaseState(); export default (state = initState, action) => { let payload; let keys; switch (action.type) { case UPDATE_BASE: payload = action.payload; k...
var crossroads = require('crossroads'); var hasher = require('hasher'); var uQuery = require('cjs!uQuery'); var Context = require('cjs!Context'); var u = { start: start, get: get, run: run }; function get(uri, action) { crossroads.addRoute(uri, function() { var context = new Context(u); ...
const TKApi = require('./dist') const api = new TKApi({ apiKey: 'l7xx940a7b2120f54091b12efb1adaef1861', apiSecret: 'a0e12eb5753047b6be9b5d9cc7c84fc7', isSandbox: true }) api.getAvailability( { ReducedDataIndicator: false, RoutingType: 'r', PassengerTypeQuantity: [ { Code: 'adult', Quantity: 1 ...
import React, { PropTypes } from 'react' const ReduxCounter = ({ count, onIncrement, onDecrement, onAsyncCall}) => ( <div className="container"> <div className="jumbotron" style= {{backgroundColor :'transparent'}}> <h2 className="text-center"> Current Count : {count} </h2> ...
serverCall = Promise.promisify(Meteor.call, Meteor);
const { series, src, dest } = require('gulp'); const gulpLess = require('gulp-less'); const gulpReplace = require('gulp-replace'); const rimraf = require('rimraf'); const cleanCss =require('gulp-clean-css'); const exec = require('child_process').exec; const inlineResources = require('./scripts/inline-resources'); const...
var apiUrl = 'https://vta-tracker.andrewmacheret.com:9443'; var interval = 10000; var onError = function(jqXHR, textStatus, errorThrown) { alert('jqXHR: ' + jqXHR + ' textStatus: ' + textStatus + ' errorThrown: ' + errorThrown); }; $(function() { var mapOptions = { center: { lat: 37.35, lng: -121.9}, zoo...
if (typeof exports === 'object') { var assert = require('assert'); var alasql = require('..'); var DOMStorage = require('dom-storage'); global.localStorage = new DOMStorage('./test162.json', {strict: false, ws: ''}); } else { __dirname = '.'; } if (typeof exports === 'object' && false) { describe('Test 165 - Web...
export const Api = { get(url) { return fetch(url).then(response => { return response.json(); }).then(data => { if (data.message) { // May be show custom alert console.warn(data.message); return []; } re...
SV.controller('grid-layout', function(el) { var c = $(el).children(); var cols = $(el).attr("cols"); if (cols == "undefined") cols = 1; c.detach(); if (c.length > 0) { for (var i=0; i < c.length / cols; i++) { $(el).append("<div class='row'/>"); } var rows = $(...
/* * knockout-file-bindings * Copyright 2014 Muhammad Safraz Razik * All Rights Reserved. * Use, reproduction, distribution, and modification of this code is subject to the terms and * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php * * Author: Muhammad Safraz Razik...
var searchData= [ ['data',['data',['../class_tempest_1_1_color.html#a4f3e9640877ef9e09319bdce18ef70dc',1,'Tempest::Color']]] ];
version https://git-lfs.github.com/spec/v1 oid sha256:36114ad1c7ba25a48ad29b811548584311567b1d2abcf921162ac8d747b6d415 size 6210
version https://git-lfs.github.com/spec/v1 oid sha256:764426e1dfb3c105e5a204acb2dae7875a2a5027ca59894f2f9882d02eeca9ab size 1009
var expect = require('expect.js'); var helpers = require('../../helpers'); var cacheList = helpers.command('cache/list'); describe('apella cache list', function () { var cacheDir = new helpers.TempDir({ '87323d6d4e48be291a9616a033d4cc6c/1.3.8/.apella.json': { name: 'angular', vers...
import Ember from 'ember'; import moment from 'moment'; const { computed, Logger:logger } = Ember; export default Ember.Service.extend({ _timeZone: null, locale: null, defaultFormat: null, timeZone: computed('_timeZone', { get() { return this.get('_timeZone'); }, set(propertyKey, timeZone...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 React, { PropTypes } from 'react'; import withSty...
import jestDomCustomMatchers from '@jarmee/jest-dom-custom-matchers'; import insertVisualDebugger from '../../../src/util/insertVisualDebugger'; expect.extend(jestDomCustomMatchers); describe('insertVisualDebugger', () => { it('should insert the debugger with the correct dimensions', () => { insertVisualDebugge...
import ChatBot from './ChatBot'; import Loading from './steps/common/Loading'; //import Generic from './mrui/Generic'; import AgentSaleProperty from './mrui/AgentSaleProperty/AgentSaleProperty'; import AgentBuyProperty from './mrui/AgentBuyProperty/AgentBuyProperty'; import AgentRentProperty from './mrui/AgentRentP...
// Generated on 2013-07-06 using generator-angular 0.3.0 'use strict'; var LIVERELOAD_PORT = 35729; var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }); var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; // # Globbing // for performance reasons we...
/* * Morpheuz Sleep Monitor * * Copyright (c) 2013 James Fowler * * 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 u...
/** * Created by SilentAngel on 20.7.2017 г.. */ (function () { Command.prototype.delete = function (input) { // • delete <index> – deletes the string at the specified position in the list and prints the list. if (input.length !== 1 ) { return Command.invalidParametersMessage; ...
"use strict"; function FormationManager(pattern, slotAssignments) { this.centerOfMassOffset = null; this.pattern = (pattern) ? pattern : 0; this.slotAssignments = (slotAssignments) ? slotAssignments : []; } FormationManager.prototype.updateSlotAssignments = function() { this.pattern.calculateNumberOfSlots(this.sl...
// flow-typed signature: 0bc1bce6a8338a43bfda2b64b383a23a // flow-typed version: <<STUB>>/husky_v^0.14.3/flow_v0.62.0 /** * This is an autogenerated libdef stub for: * * 'husky' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * commun...
/** author : Isidoro Mercogliano */ define(["require", "exports", "jquery"], function (require, exports, $) { "use strict"; /// <reference path="../typings/index.d.ts" /> console.debug("helloworld loaded"); function start(selector) { $(selector).html('HELLO WORLD'); } exports.start = sta...
import React from 'react'; import { Media } from 'react-bootstrap'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item" > <Media> <Media.Left> ...
'use strict'; module.exports = function(app) { var db = require('../../app/controllers/database.server.controller'); // Setting up the users profile api app.route('/db/player').get(db.create); };
/* * Aloha Font Family Selector Plugin - select font family from 8 Definitive Web Font Stacks * * Copyright (C) 2011 by Recess Mobile and Anatoliy Chakkaev * * Licensed unter the terms of AGPL http://www.gnu.org/licenses/agpl-3.0.html * */ GENTICS.Aloha.FontFamilySelector = new GENTICS.Aloha.Plugin("com.gentics.alo...
import {MANUAL_LOGIN, SET_CURRENT_USER,LOGOUT_USER } from "../actions"; export default function(state=null, action) { switch (action.type) { case MANUAL_LOGIN: return action case SET_CURRENT_USER: console.log('SET CURRENT USER REDUCER'); console.log(action); ...
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import angularComponent from 'angular-component'; import bootstrapJs from '../../node_modules/bootstrap/dist/js/bootstrap.min'; import AppComponent from './app.component'; import routes from './app.routes'; import packageInfo from '../../package.j...
module.exports = { label: 'A5', variants: ['default.html'], context: { button: { text: 'Book your shuttle now!', type: 'primary' }, copytext: { text: 'With our special offering you can enter one of the next spaceships. Get ready for your holiday behind the milky way!' }, imag...
// generic javascript convention: declares local scope only 'use strict'; // cache tests (does Temp equal each other) // mock cache // test classes should be thin // Jabba Async Testing // Mocking params that are updated // easier to stub an object than creating a new classes
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Properties = void 0; let fs = require('fs'); let os = require('os'); const PropertyFileLine_1 = require("./PropertyFileLine"); const Converter_1 = require("./Converter"); class Properties { constructor() { this.lines = []; ...
'use strict'; var isError = require('./is-error'); module.exports = function (x) { if (!isError(x)) throw new TypeError(x + " is not an Error object"); return x; }; //# sourceMappingURL=valid-error-compiled.js.map
// ---------------------------------------- // Particle // ---------------------------------------- function Particle( x, y, radius ) { this.init( x, y, radius ); } Particle.prototype = { init: function( x, y, radius ) { this.alive = true; this.radius = radius || 10; this.wander = 0.15; this.theta ...
import React from 'react'; import Option from './Option'; export default class Range extends Option { render() { return ( <label> <p>{this.props.label}:</p> <input type="range" min="0" max="100" step="1" value={this.state.value} onChange={this.handleChangeEvent} /> <span>...
export * from './articles.js'
/** * Cisco Finesse - JavaScript Library * Version 10.5(1) * Cisco Systems, Inc. * http://www.cisco.com/ * * Portions created or assigned to Cisco Systems, Inc. are * Copyright (c) 2014 Cisco Systems, Inc. or its affiliated entities. All Rights Reserved. */ /** * This javascript library is made available to C...
function render_module(name, args, firstrun) { $('#' + name).load('modules/' + name + '.module.php?' + args , function() { if (firstrun==1) module_init (name); }); } function activate_module(name, seconds, args) { render_module(name, args, 1); if (seconds > 0) { setInterval("render_module('"+...
/** * Created by yuliang on 2017/1/11. */ "use strict" const co = require('co') const apiCode = require('./../../libs/api_code_enum') const log = require('../../libs/log4').koa module.exports = function (app) { app.on('error', (err, ctx)=> { console.log("app-on-error事件:" + err.toString()) log....
/* global malarkey:false, moment:false */ import { config } from './index.config'; import { routerConfig } from './index.route'; import { runBlock } from './index.run'; import { MainController } from './main/main.controller'; import { GithubContributorService } from '../app/components/githubContributor/githubContribut...
#!/usr/bin/env node const fs = require('fs'); const helpers = require('./helpers'); const rl = require('readline-sync'); const nl = require('os').EOL; let character = {}; //let game = JSON.parse(fs.readFileSync(process.argv[2])); let game = require('../' + process.argv[2]); helpers.setRooms(game); const hasName = g...
import BaseContoller from './base'; export default BaseContoller.extend({ modelName: 'for-format' });
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.MenuBar = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { tar...
'use strict'; var path = require('path'); var nconf = require('nconf'); const DEFAULT_HOST = 'http://next.openspending.org'; const DEFAULT_BASE_PATH = ''; nconf.file({ file: path.join(__dirname, '/../../settings.json') }); var apiHost = process.env.OS_VIEWER_API_HOST || DEFAULT_HOST; var authHost = process.env.OS...
// flow-typed signature: 082becb324dceb7eec399eb7d8ee2fbf // flow-typed version: <<STUB>>/directory-tree_v2.0.0/flow_v0.65.0 /** * This is an autogenerated libdef stub for: * * 'directory-tree' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work wi...
(function() { 'use strict'; angular .module('assessoriaTorrellesApp') .factory('ProfileService', ProfileService); ProfileService.$inject = ['$http']; function ProfileService($http) { var dataPromise; var service = { getProfileInfo : getProfileInfo ...
/** * Created by Fiamma on 2016/11/30. */ var mongoose = require('mongoose'); mongoose.connect('mongodb://127.0.0.1:27017/question', function(err){ if(err){ console.log('数据库连接失败:' + err); } console.log("数据库链接成功"); }); exports.User = mongoose.model('user',require('./user')); exports.Ask = mongoose.model('ask...
'use strict'; angular.module('copayApp.controllers').controller('pricechartController', function($scope, $q, $http, $timeout, $ionicModal, $log, $state, $ionicHistory, lodash, pricechartService, externalLinkService, popupService, $ionicNavBarDelegate) { $scope.openExternalLink = function(url) { externalLink...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const InterpolateHtmlPlugin = require('react-dev-utils...
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. // // 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 // // Un...
/* stylec vardec: comma-first */ var good; var good ,style; var also = true , good = false , good = false; var very, bad; //! column: 0 var veryBad //! column: 0 = true; var bad, //! column: 0 hello, there; var bad = true, //! column: 0 too = false; var also = true , good = false ;...
/* * Supports loading System.register in workers */ import { systemJSPrototype } from '../system-core'; import { hasSelf } from '../common'; if (hasSelf && typeof importScripts === 'function') systemJSPrototype.instantiate = function (url) { var loader = this; return Promise.resolve().then(function () { ...
/** * Created by Toni Väisänen on 6.6.2017. * * Todo: * - update styles when new graph is loaded * - Manage link categories? -> needs GW action to be functional! */ /* var selectAllOfTheSameType = function(ele) { cy.elements().unselect(); if(ele.isNode()) { cy.nodes().select(); } else if(ele.isEdg...
exports.AddToCartController = function($scope, $http, $user, $timeout) { $scope.addToCart = function(product) { var obj = { product: product._id, quantity: 1 }; $user.user.data.cart.push(obj); $http. put('/api/v1/me/cart', $user.user). success(function(data) { $user.loadUser(); ...
define([ 'client/views/graph/graph', 'extensions/collections/collection', 'extensions/models/model', 'extensions/views/view', 'd3' ], function (Graph, Collection, Model, View, d3) { var defaultData; beforeEach(function () { defaultData = [ { _start_at: Collection.prototype.getMoment('...
(function () { function pageSlideBody() { function link(scope, element, attrs) { window.console.log("THIS SHIT WORKED!!"); } return { link: link, templateUrl: 'components/pageslide/pageslide-body.html', restrict: 'E' }; }...
//////////////////////////////////////////////// /* test change Provided Code - Please Don't Edit */ //////////////////////////////////////////////// 'use strict'; function getInput() { console.log("Please choose either 'rock', 'paper', or 'scissors'.") return prompt(); } function randomPlay() { var ran...
express = require('express') var app = express() var http = require('http').Server(app) var io = require('socket.io')(http) var os = require('os') // var font = { ' ':[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], 'a':[0,1,0,1,0,1,1,1,1,1,0,1,1,0,1], 'b':[1,1,0,1,0,1,1,1,1,1,0,1,1,1,0], 'c':[1,1,1,1,0,1,1,0,0,1,0,1,1,...
'use strict'; 'server-only'; /** * @module * @ignore * @license * (c) 2014 Cluster Labs, Inc. https://cluster.co/ * License: MIT */ var urls = skit.platform.urls; var lastUrl = null; var redirected = false; var notFound = false; var userAgent = false; var referer = null; module.exports = { __reset__: funct...
/** * Test of Fac.js * (c) 2017 Owen Luke * https://github.com/tasjs/fac * Released under the MIT License. */ var tas = require('tas'); var log = tas.tree.log; var Animal, Mammal, tobe, lucy, max, molly; tas.enableTree(); tas({ init: function(){ Animal = require('../__models/Animal'); Mammal = require('../...
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './BackbonejsOriginalWordmark.svg' /** BackbonejsOriginalWordmark */ function BackbonejsOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline c...
import { combineReducers } from 'redux' import { routerReducer } from 'react-router-redux' import reports from './reports' import lineItems from './lineItems' const rootReducer = combineReducers({ reports, lineItems, routing: routerReducer }) export default rootReducer;
'use strict'; var d = require('../lib/request-debug'); var initialized = false; module.exports = function(req, res, next){ if(!initialized){ initialized = true; load(req.app, next); }else{ next(); } }; function load(app, fn){ var home = require('../routes/home'); app.get('/', d, home.index); ...
version https://git-lfs.github.com/spec/v1 oid sha256:6ae18b780119412a9f8323532fb6d8dbdaedfd07569489392860b8feb218062a size 5947
var ChildCustomerService = require("../service-js/ChildCustomerService"); var ccs = new ChildCustomerService(); module.exports = { addNew: function(req, res) { ccs.addNew(req.body, function(state, response) { if (!state) { res.send({ state: state, ...
var VERSION = require("../package")["version"]; function TerminalDecoder() { this.pending = null; } TerminalDecoder.prototype = { write: function(buffer, cb) { if (this.pending) { buffer = this.pending + buffer; this.pending = null; } while (buffer.length > 0) { // Find the first in...
function square(x) { return x*x; } function normalized_quadratics_curve(upper) { const k = square(upper); return x => -2*x*(x - upper)/k; } export default function Animation(frame_count, frame_callback) { const state_begin_count = Math.round(frame_count/3); const state_end_count = state_begin_count; const state...
var http = require('http'); var fs = require('fs'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('OK'); }).listen(process.env.PORT || 3000);
define([ 'service-communication/request', 'service-communication/user', 'interface/notifications', 'jquery' ], function(request, currentUser, notify, $) { function initForm(html, container, callback) { var wrapper = $('<div />') .addClass('register-form ui-widget-content ui-corner-all') .html(ht...
version https://git-lfs.github.com/spec/v1 oid sha256:e1c7594d5d4035897b45173530ebb6ccf218476ad98d0f04f853fe4294f1262f size 1700
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Holodeck = require('../../../../../holodeck'); /* jshint ignore:line */ var Request = require( '../../../../../../../lib/http/req...
var MXAbierto = { _cluster : null, _icons : {}, _map : null, _selected : null, _members : [ { coords : [ 27.365227, -102.015292 ], data : 'http://datos.gob.mx/busca/organization/estado-de-coahuila', icon : 'stat...
import {head} from './head' test('head', () => { expect(head(['fi', 'fo', 'fum'])).toEqual('fi') expect(head([])).toEqual(undefined) expect(head('foo')).toEqual('f') expect(head('')).toEqual('') })
/** @jsx React.DOM */ var React = require('react'); var Router = require('react-router'); var routes = require('./routes'); Router.run(routes, function (Handler) { React.render(<Handler/>, document.body); });
var $ = require('jquery'); var Hammer = require('hammerjs'); // Thanks to http://www.tods.com/en_us/ var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; var CarouselFull = (function() { function CarouselFull($ref, cfg) { //bind functions to "this" this.onSliderMove...
// jquery.pjax.js // copyright chris wanstrath // https://github.com/defunkt/jquery-pjax (function($){ // When called on a container with a selector, fetches the href with // ajax into the container or with the data-pjax attribute on the link // itself. // // Tries to make sure the back button and ctrl+click work the...
import axios from 'axios' import Qs from 'qs' export default { getProduct(id) { return axios.get(`/api/products/${id}`).then(res => res.data) }, getProductList(params) { return axios.get(`/api/products?${Qs.stringify(params)}`).then(res => res.data) }, getTopBanner() { return axios.get('/api/prod...
$(document).on('click', '#start', function() { console.log('clicked start'); var APIKey = $('#APIKey').val(); var Cap = $('#Cap').val(); window.location.href = './dashboard?APIKey='+APIKey+'&Cap='+Cap; });
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.VueNestedList = factory()); }(this, (function () { 'use strict'; let NestedUl = { name: 'nested-ul', props: { content:...
'use strict'; define(function(require) { var angular = require('angular'); require('actions/models'); var ActionTestController = function($scope, $http, $q, $timeout, Action, ActionTest, ActionType, language) { $scope.language = language.getText(); $scope.running = fals...
//var passportEtsy = require('../../passport-etsy'); import passportEtsy from '../dist'; describe('passport-etsy', function () { it('oughta export Strategy constructor directly from package', function (){ expect(passportEtsy).to.be.a('function'); expect(passportEtsy).to.equal(passportEtsy.Strategy); }); }...
import './pages/home.tag' import './pages/projects.tag' import route from 'riot-route'; riot.route = route; // we need this to easily check the current route from every component riot.routeState = { view : '' }; class Router{ constructor(){ this._currentView = null; this._views = ['home', 'projects']; ...
exports.viewProject = function(req, res) { var name = req.params.name; console.log("The project name is: " + name); res.render('project', { 'projectName': name }); };
'use strict'; const fs = require('fs'); const path = require('path'); const Sequelize = require('sequelize'); const config = require('config'); const mysqlConfig = config.mysql; console.log(config.description) const sequelize = new Sequelize(mysqlConfig.database, mysqlConfig.username, mysqlConfig.password, { h...
// @flow import logger from './logger' import { getRepoURL } from './page-detect' import { getApiToken } from './utils' type BitbucketAPIErrorResponse = {| type: string, error: { message: string, detail?: string, data?: any, }, |} // https://developer.atlassian.com/bitbucket/api/2...