code
stringlengths
2
1.05M
require('dotenv').load(); var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(require('./middleware/headers')); app.use(require('./middleware/add-user-to-request')); app.use('/api/v1/notes', require('./routes/notes-routes')); app.use('/a...
/* eslint no-console: 0 */ // Run this example by adding <%= javascript_pack_tag 'hello_vue' %> (and // <%= stylesheet_pack_tag 'hello_vue' %> if you have styles in your component) // to the head of your layout file, // like app/views/layouts/application.html.erb. // All it does is render <div>Hello Vue</div> at the bo...
Ext.provide('Phlexible.users.edit.Password'); Phlexible.users.edit.Password = Ext.extend(Ext.form.FormPanel, { strings: Phlexible.users.Strings, title: Phlexible.users.Strings.password, iconCls: 'p-user-user_password-icon', border: false, bodyStyle: 'padding:5px', hideMode: 'offsets', defau...
var GetHtmlService = require('./../Services/GetHtmlService'); var M3U8File = require('./M3u8File'); module.exports = function () { var self = this; this.sourceLink; this.id = ''; this.m3u8 = ''; this.m3u8Content; this._m3u8 = ''; this.lastM3u8; this.failGetDetailM3u8Coun...
/* * Copyright (c) 2015 airbug inc. http://airbug.com * * bugcli may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@TestFile //@R...
var fs = require('fs'), _ = require('underscore')._, sys = require('sys'), exec = require('child_process').exec; var commands = function(dbot) { var noChangeConfig = [ 'servers', 'name', 'moduleNames' ]; var getCurrentConfig = function(configKey) { var defaultConfigPath = dbot.config; ...
function carou2() { $('[data-ride="carou"]').each(function () { $(this).carousel(); }); } $(document).on('turbolinks:load', carou2);
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import MySpinner from '../../components/Spinner/Spinner' import { smallSpinnerRight } from '../../utils/SpinnerConfig' import LessonList from './LessonList' export class TeacherGroupInfo extends React.Component { constructor(props) { ...
module.exports = { "files": ["../wwwroot/**/*.{html,htm,css,js}"], "server": { "baseDir": "../wwwroot/" } };
var assert=require('assert'), teselecta=require('../'); require('colors'); describe('terminal mode', function() { it('should make numbers magenta', function() { assert.equal(teselecta(42), '42'.magenta); }); it('should make strings cyan', function() { assert.equal(teselecta('foo'), '"'.grey+'foo'.cyan+...
/* global describe, it, beforeEach, expect, spyOn, jasmine */ /* eslint camelcase: 0, no-invalid-this: 0 */ const Player = require('../../../server/game/player.js'); const DrawCard = require('../../../server/game/drawcard.js'); describe('Player', function() { beforeEach(function() { this.gameSpy = jasmine...
/** @exports helpers * Various helpers for non KoC specific stuff */ var helpers = {}; /** * Simple e-mail validation with RegEx * @param {String} email E-Mail address to validate * @return {Boolean} whether or not this is a valid e-mail address */ helpers.validateEmail = function(email) { var re = /^(([^<>()...
/** * Parse the body * * @param attributes * @param children */ const body = (attributes, children) => { return Object.assign({ 'backgroundColor': '#ffffff', 'class': '', 'padding': '0px', 'margin': '0px', }, attributes, { children, }); }; // xml tag body.tag = 'mmm-body'; // Not allowe...
define(['lodash','authentication'], function(_) { return ['$scope', '$http', '$timeout', '$location', '$q', function ($scope, $http, $timeout, $location, $q) { $scope.requests = []; $scope.refresh = refresh; $scope.sum = sum; $scope.distinct = distinct; $scope.getFromLast = getFromLast; $scope....
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Attendee = mongoose.model('Attendee'), agent = request.agent(app); /** * Globals */ var credentials, user, attendee; /** * Attendee rout...
export function isUndefined(obj){ return typeof obj === 'undefined' } export function isNull(obj){ return obj === null } export function isFunction(obj){ return typeof obj === 'function' } export function isString(obj){ return typeof obj === 'string' } export function isArray(obj){ ...
import ColorUtil from "../utils/ColorUtil"; import ArraySpan from "../math/ArraySpan"; import Behaviour from "./Behaviour"; export default class Color extends Behaviour { /** * @memberof! Proton# * @augments Proton.Behaviour * @constructor * @alias Proton.Color * * @param {Proton.ArraySpan | String...
import React, { Component } from 'react' import Immutable from 'immutable' import classNames from 'classnames' import SxCheckBox from './check-box' /* ================================================================================ * 复选框组组件 * qq group: 582452342 * email : 2091938785@qq.com * author : 美丽的地球啊 - ...
module.exports = { release: { options: { config: 'production', path: '<%= path %>', srcBasePath: 'release/', } } }
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
import Ember from 'ember-metal/core'; import run from 'ember-metal/run_loop'; import compile from 'ember-template-compiler/system/compile'; var Router, router, App, container; function bootApplication() { router = container.lookup('router:main'); run(App, 'advanceReadiness'); } function handleURL(path) { retur...
module.exports = { dist: { files: [{ expand: true, cwd: '<%= config.app %>/images', src: '{,*/}*.svg', dest: '<%= config.dist %>/images' }] } };
"use strict"; require('../model/user.js'); var mongoose = require('mongoose'), User = mongoose.model('Employee'), _ = require('lodash'); exports.create = function(req, res){ var user = new User(req.body); user.save(function(err){ if(err){ return res.status(400).send({message: err}); }else{ re...
'use strict'; // Render text and html to the page. (function(module) { const homeView = {}; // TODO: Add any homeView logic here. Filtering, templates, handlebars. // NOTE: homeView.doSomething = function() {}; // homeView.index = function() { // $('#home-content').show().siblings().hide(); // }; // ...
// @flow /* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles, createStyleSheet } from 'material-ui/styles'; import Paper from 'material-ui/Paper'; import Tabs, { Tab } from 'material-ui/Tabs'; import { browserHistory } from 'react-r...
Groups = Proto.clone().newSlots({ protoType: "Groups", groups: [], }).setSlots({ add: function(g) { this.groups().push(g) }, groupWithKey: function(k) { for (var i = 0; i < this.groups().length; i ++) { var g = this.groups()[i] if (g.key() == k) { return g } } return null } }) ...
import { test, moduleFor } from 'ember-qunit'; moduleFor('controller:lookup-refund', 'LookupRefundController', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function() { var controller = this.subject(); ok...
const expect = require('chai').expect const date = require('../../../lib/validator/custom-formats/date') describe('validator/custom-formats/date', () => { it('returns false when value is undefined', () => { expect(date(undefined)).to.be.equal(false) }) it('returns false when value is null', () => { exp...
const { pathOr, is } = require('ramda') // the default React Native version for this boilerplate const REACT_NATIVE_VERSION = '0.49.5' // where the version lives under gluegun const pathToVersion = ['parameters', 'options', 'react-native-version'] // accepts the context and returns back the version const getVersionF...
import CoInputNumber from './input-number'; export default CoInputNumber;
const { Client, Server } = require(`styletron-engine-atomic`) let memoizedValue module.exports = (() => options => { if (!memoizedValue) { let instance if (typeof window !== `undefined` && window.document.createElement) { const styleElements = document.getElementsByClassName( `_styletron_hydra...
ZUTOOLS.Button = function ( settings ) { var self = this; this.onclick = settings.onclick; this.domNode = document.createElement( 'div' ); this.domNode.setAttribute( 'class', 'button action corners small' ); this.domNode.innerHTML = settings.text; this.domNode.addEventListener( 'click', onClick, false ); fun...
export { default } from 'ember-flexberry-gis/utils/layer-to-jsts';
import { readFile, sanityCheck } from '../src/file'; import { lexFile } from '../src/lexer'; import { parseFile } from '../src/parser'; import { FILENAME_4, } from '../__mocks__/fs'; import { AMBIGUOUS, } from '../src/parser'; jest.mock('fs'); jest.unmock('../src/file'); jest.unmock('../src/lexer'); jest.unmock(...
'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...
import Vue from "vue"; const template = '<div class="confirm-modal modal-box" v-if="display">' + '<div class="modal-overlay"></div>' + '<div class="modal-container">' + '<div :class="contentClass">' + '<p class="title">提示</p>' + '<p class="text">{{text}}</p>' + '<div clas...
/** * Created by out_xu on 17/5/18. */ import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { createUserGroup } from 'actions' import GroupCreate from 'components/admin/Group/GroupCreate' export default connect( state => ({}), dispatch => bindActionCreators({createUserGroup}, d...
/** * @file PluginValidator * @author Jim Bulkowski <jim.b@paperelectron.com> * @project pom-plugin-builder * @license MIT {@link http://opensource.org/licenses/MIT} */ "use strict"; const tap = require('tap') const mocks = require('pom-test-stubs') const PluginFinder = require('../../lib/PluginFinder') const Plu...
import Ember from 'ember'; import EmberValidations from 'ember-validations'; export default Ember.Controller.extend(EmberValidations.Mixin, { validations: { "model.def": { generic: true, definitionlike: true, }, "model.example": { generic: true, nongendered: true, sentenceli...
/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Mathias Bynens <http://mathiasbynens.be/> */ jQuery(function($){ $.datepicker.regional.nl = { closeText: 'Sluiten', prevText: '←', nextText: '→', cur...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { createPost } from '../actions'; class PostsNew extends Component { renderField(field) { const className = `form-group ${field.meta.touch...
/** * srv.web.js – Load HTTP Handler and Socket Bridge * This file is part of noduino (c) 2012 Sebastian Müller <c@semu.mp> * * @package noduino * @author Sebastian Müller <c@semu.mp> * @license MIT License – http://www.opensource.org/licenses/mit-license.php * @url https://github.com/semu/...
var webpack = require('webpack') var WebpackDevServer = require('webpack-dev-server') var config = require('./webpack.config') var express = require('express') const PORT = 3009 var app = new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true, contentB...
export { default } from 'ember-cli-uniq/components/uni-mobile-number';
module.exports = { port: 8089, devServerPort: 8088 }
var Promise = require('bluebird') , _ = require('lodash') , passport = require('passport') , config = require('config-url') , strategy = require('./strategy') , handler = require('./handler') , User = require('../model/User') // , { URL, URLSearchParams } = require('u...
(function() { define([ 'angular', 'user/services/session', 'messenger/services/messenger', '$socket' ], function ( angular, SessionService, MessengerService, $socket ) { return angular.module("application.controllers") .controller("MessengerCtrl", [ "$rootScope", ...
import $ from "jquery"; import { getCLS, getFID, getLCP } from "web-vitals"; export class GoogleAnalytics { sendToGoogleAnalytics({ name, delta, id }) { window.gtag("event", name, { event_category: "web_vitals", event_label: id, value: Math.round(name === "CLS" ? delta * 1000 : delta), non...
$(document).ready(function() { $(".myChart").each(function( index ) { //console.log( index + ": " + $( this ).text() ); //Get context with jQuery - using jQuery's .get() method. var ctx = $(".myChart").get(index).getContext("2d"); //This will get the first returned node in the jQuery collection. var myNe...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
export function resizeImg(img, maxWidth = 1920, maxHeight = 1080) { const canvas = document.createElement('canvas'); let width = img.width; let height = img.height; // calculate the width and height, constraining the proportions if (width > height) { if (width > maxWidth) { height *= maxWidth / wi...
/** * Created by guangqiang on 2017/11/14. */ import {createAction} from 'redux-actions' import type from '../../constants/actionType' import ActionCreator from '../../actionCreators/me' const mockRegister = createAction(type.MOVIE_LIST, ActionCreator.register, ActionCreator.registerValidator) const actionCreators ...
'use strict';var application_common_1 = require('./application_common'); exports.bootstrap = application_common_1.commonBootstrap; var application_ref_1 = require('./application_ref'); exports.ApplicationRef = application_ref_1.ApplicationRef; //# sourceMappingURL=application.js.map
'use strict'; const Hapi = require('hapi'); const Inert = require('inert'); const Vision = require('vision'); const Handlebars = require('handlebars'); const Config = require('./config'); const Models = require('./models'); const Handlers = require('./handlers'); const Routes = require('./routes'); const server = ne...
'use strict'; /** * Module dependencies. */ var log4js = require('log4js'); var log = log4js.getLogger('controller/render.js'); var config = require('nconf'); // End of dependencies. /** * Wrapper over res.render(). */ module.exports = function(template, variables) { return function (req, res) { res.rende...
'use strict'; var gulp = require('gulp'), sass = require('gulp-sass'), zip = require('gulp-zip'), pack = require('./package.json'); gulp.task('sass', [], function() { gulp.src('./src/*.scss') .pipe(sass({ 'outputStyle': 'compressed' })) .pipe(gulp.dest('./css')); }...
/** * Created by Jasper on 17.07.2017. */ import React, { Component } from 'react' // eslint-disable-line no-unused-vars class MainModOptions extends Component { componentWillMount(){ this.data = {} fetch('/mods/mainModData/' + this.props.modId) .then(res => res.json())...
'use strict'; module.exports = function( $scope, $q, $log, OPCUA_Settings_Srvce ) { // Controller instance var vm = this; // ------------------------------------------------------------------------ // -- Data section // ------------------------------------------------------------------------ // DATA, get ...
'use strict'; const gulp = require('gulp'); const path = require('path'); const util = require('util'); const gutil = require('gulp-util'); const merge = require('merge-stream'); const rename = require('gulp-rename'); const pkg = require('./package.json'); const chalk = require('chalk'); const runSequence = require('r...
import expect from 'expect'; import { fromJS } from 'immutable'; import userContainerReducer from '../reducer'; describe('userContainerReducer', () => { it('returns the initial state', () => { expect(userContainerReducer(undefined, {})).toEqual(fromJS({})); }); });
'use strict'; module.exports = { app: { title: 'DoorStep', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, port: process.env.PORT || 3000, templateEngine: 'swig', sessionSecret: 'MEAN', sessionCollection: 'sessions', a...
'use strict' const joi = require('joi') module.exports = joi.string()
'use strict'; /** * pratice Node.js project * * @author Zongmin Lei <leizongmin@gmail.com> */ import path from 'path'; import express from 'express'; import serveStatic from 'serve-static'; import bodyParser from 'body-parser'; import multipart from 'connect-multiparty'; import session from 'express-session'; imp...
import { defineType } from '../../ast' import { defineLiteral } from '../../syntax' const type = defineType({ type: 'Bool', constructor: function (value) { this.value = Boolean(value) this.print = () => { return this.value.toString() } this.inspect = () => { return 'Bool#' + (this.value...
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"EncodeSans":{"black":"EncodeSans-Black.ttf","bold":"EncodeSans-Bold.ttf","extrabold":"EncodeSans-ExtraBold.ttf","extralight":"EncodeSans-ExtraLight.ttf","light":"EncodeSans-Light.ttf","medium":"EncodeSans-Medium.ttf","normal":"EncodeSans-Regular.ttf","semi...
'use strict'; var test = require('tape').test; var _ = require('lodash'); var listMixin = require('../lib/listInterface'); test('Abstract List', function (t) { t.test('duck typing', function (t) { var toExtend = { storage: [] }; listMixin(toExtend, 'storage'); t.ok(_....
import Inferno from 'inferno'; import { Link } from 'weave-router'; import { Head, Title } from 'weave-head'; export default () => <div> <Head> <Title>Index page</Title> </Head> <Link href="/hello">Go to hello</Link> </div>
// @flow import render from '../../common/render' import App from '../../../webapp/ttd2/containers/App' export default (state: any, location: string, title: string, style: string) => render(App, state, location, 'ttd2', title, style)
<div> <Badge overlap="circle" /> <Badge overlap="rectangle" /> <Badge classes={{ anchorOriginTopRightRectangle: 'className', anchorOriginBottomRightRectangle: 'className', anchorOriginTopLeftRectangle: 'className', anchorOriginBottomLeftRectangle: 'className', anchorOriginTopRigh...
// Configure accounts to require username instead of email. Accounts.ui.config({ passwordSignupFields: 'USERNAME_ONLY' }); Meteor.subscribe('userStatus'); Template.game.helpers({ spacebarState: function() { return Session.get('spacebarToggleState') ? 'true' : 'false'; }, mouseXState: function() { retu...
// Copyright (c) 2016 Intel Corporation. All rights reserved. // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. /* global before, describe, it */ 'use strict'; const emitter = require('events').EventEmitter; const assert = require('assert'); const pt = require('bin...
import Vue from 'vue' import DarkMixin from '../../mixins/dark.js' import ListenersMixin from '../../mixins/listeners.js' import { slot } from '../../utils/slot.js' export default Vue.extend({ name: 'QTimeline', mixins: [ DarkMixin, ListenersMixin ], provide () { return { __timeline: this } }...
var HistoryLogger; HistoryLogger = (function() { var _this = this; function HistoryLogger() {} HistoryLogger._storageOn = 'history-logger-is-running'; HistoryLogger._storageData = 'history-logger-data'; HistoryLogger._data = function() { return $.localStorage(HistoryLogger._storageData) || []; }; ...
var mongoose = require('mongoose') var bcrypt = require('bcrypt-nodejs') var SALT_WORK_FACTOR = 10 var UserSchema = new mongoose.Schema({ // 用户名 name:{ unique: true, type: String }, // 昵称 nickname:{ unique: true, type: String }, // 密码 哈希加盐处理 password: Str...
define(function(require) { var $ = require('jquery'), _ = require('underscore'), Backbone = require('backbone'); FeedT = require('text!templates/feed.html'), Post = require('views/post'); Feed = Backbone.View.extend({ tagName: 'div', ...
const express = require('express'); const authRoutes = express.Router(); const AuthenticationController = require('../controllers/authentication'), passportService = require('../config/passport'), passport = require('passport'); // Middleware to require login/auth const requireLogin = passport.authenticat...
import { CognitoUser, AuthenticationDetails } from 'amazon-cognito-identity-js'; import { getUserPool } from './config'; class LogInRequireNewPasswordError extends Error { constructor(message, userAttributes, requiredAttributes) { super(message); this.message = message; this.name = 'LogInRequireNewPassw...
'use strict'; angular.module('expensesApp') .factory('User', function ($resource) { return $resource('/api/users/:id/:controller', { id: '@_id' }, { changePassword: { method: 'PUT', params: { controller:'password' } }, get: { method: 'GET'...
import lang from './lang'; import xml from './xml'; import querystring from './querystring'; import models from './models'; import rest from './rest'; import sort from './sort'; export default { lang, xml, querystring, models, rest, sort };
$(function(){ try{ var flashMsg = localStorage.getItem("flashMsg"); //flash Msg store in localstorage.flashMsg if( flashMsg != undefined && flashMsg.length){ $.bootstrapGrowl( flashMsg,{type: 'error'}); localStorage.setItem("flashMsg",""); } if( ! $().POSsetting ){ $.bootstrapGrowl("Init jquery e...
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { Film } from '../Film'; describe('<Film />', () => { it('should have a class .film', () => { const props = { films: { detail: { title: 'A New Hope' } } }; expect(shall...
var _ = require('underscore'), debug = require('./debug')('pulldasher:db-manager'), utils = require('./utils'), Promise = require('bluebird'), db = require('../lib/db'), DBIssue = require('../models/db_issue'), DBStatus = require('../models/db_status'), DBSignature = require('../models/db_si...
module.exports = function RowCount (Model) { 'use strict'; // Model.afterRemote('findById', injectCounts); // Model.afterRemote('findOne', injectCounts); Model.afterRemote('find', injectCounts); function injectCounts (ctx, unused, next) { var resources = ctx.result; if (!Array.isArray(resources)) re...
import React, { PropTypes } from 'react' const ContextType = { // Enables critical path CSS rendering // https://github.com/kriasoft/isomorphic-style-loader insertCss: PropTypes.func.isRequired, } /** * The top-level React component setting context (global) variables * that can be accessed from all the child ...
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2017 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! * Generated using the Bootstrap Customizer (http://bootstrap-3.ru/customize.php?id=660d0f0e2fadb4bf904102495ac3f40a) * Config saved to config.js...
import e2e from '~shared/data/e2e'; import { playlistWaitForTracklist, playlistTracklistLengthEquals, playlistWaitForTrackByOrder, } from '~reusable/playlist'; import { discoverFeedAlbumClick, } from '~reusable/discoverPage'; import { playerWaitForActiveStatus, } from '~reusable/player'; describe('selected ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ var CONN={ init:function(){ // connection goes here console.log("SOCKET"); /* var socket = io.connect('http://192.168.10.223:...
// Implements console.log, console.error, console.time, et al and emits a // console event for each output. 'use strict'; var _createClass = require('babel-runtime/helpers/create-class')['default']; var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default']; var _Map = require('babel-runtime...
/*----------------------------------------------------------------------------*/ // Copyright (c) 2010 pidder <www.pidder.com> // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission...
//=require layout.js
'use strict'; /** * Filtro para mostar los símbolos de V o X en los checkbox * * Trataré de usar este filtro en algún sitio donde quede bien mostrar V/X */ angular .module('alterbooks.filters') // V/X check marks .filter('checkmark', function () { return function (input) { return i...
import isCharEnglishPunctuation from '../../src/utils/isCharEnglishPunctuation'; import { JA_PUNC, EN_PUNC } from '../helpers/conversionTables'; describe('isCharEnglishPunctuation', () => { it('sane defaults', () => { expect(isCharEnglishPunctuation()).toBe(false); expect(isCharEnglishPunctuation('')).toBe(f...
var tape = require('../'); var tap = require('tap'); tap.test('only twice error', function (assert) { var test = tape.createHarness({ exit: false }); test.only("first only", function (t) { t.end(); }); assert.throws(function () { test.only('second only', function (t) { t.e...
export { default } from 'ember-semantic-ui/components/ui-form-input';
function SlidesBox(boxNr, boxConf, parentGrid) { //Methods this.init = function () { this.jQueryElement = this.parentGrid.add_widget('<div class="displayBox ' + this.state + '" boxNr="' + this.boxNr + '">' + this.config.content + '</div>', this.positioning.sizeX, this.positioning.sizeY, this.positioning...
var sls = require('./sls'); var projectName = "project_name1"; var listLogStores = function(fn) { sls.listLogStores({ projectName: projectName }, function (err, data) { console.log('----listLogStores----'); if(err) console.error('error:',err); else{ console.log(da...
ld.service('TownApi', ['$resource', function($resource) { var TownApi = {}, api_home = "/api/town", artist_params, artist_url; artist_params = {artist_name: '@artist_name'}; artist_url = [api_home, 'artists/:artist_name/:fn'].join('/'); TownApi.Artist = $resource(artist_url, artist_params, {...
'use strict'; var mocha = require('mocha'); var chakram = require('chakram'); var request = chakram.request; var expect = chakram.expect; describe('tests for /v2.0/data/publications/{publicationid}', function () { describe('tests for get', function () { it('should respond 200 for "A list of publications."', func...
const EventEmitter = require('events').EventEmitter; const request = require('request'); const https = require('https'); const http = require('http'); const utils = require('./utils'); const url = require('url'); const oldRequestGet = request.get; const oldRequestPost = request.post; const oldHttpsRequest = https.requ...
export const barChart2 = {"viewBox":"0 0 24 24","children":[{"name":"line","attribs":{"x1":"18","y1":"20","x2":"18","y2":"10"},"children":[]},{"name":"line","attribs":{"x1":"12","y1":"20","x2":"12","y2":"4"},"children":[]},{"name":"line","attribs":{"x1":"6","y1":"20","x2":"6","y2":"14"},"children":[]}],"attribs":{"fill...