code
stringlengths
2
1.05M
(function(){var t,n,i;n=window.evil,t=function(t){var n;return n=/^([-\w]+:)\s*\d\w+$/im,t.replace(n,function(t){return"("+t+")"})},i=function(n,i){var e,r,c,o;if(o=window.matchMedia(t(n)),"function"==typeof i&&o.matches)return void i();if("object"==typeof i){if(r=i.match,c=i.mismatch,!r)return;return e=function(t){ret...
/** * @author George Novik <grgnvk@gmail.com> */ angular.module('app').controller('CommentsController2_0', function ($scope, $injector, $http, $rootScope, commentModel2_0, configService, $location, $anchorScroll, AppConfig, $attrs) { var commentModel = commentModel2_0; /** * try to load at init method ...
'use strict'; // Thermostats controller angular.module('thermostats') .filter('weekday', function($filter) { return function(input) { if(input === null){ return ''; } var weekday = ''; switch(input) { case 1: weekday = 'Monday'; break; case 2: weekday = 'Tuesday'; break; case 3: wee...
import Component from '../component.js'; import Akili from '../akili.js'; import request from '../services/request.js'; /** * Component to work with router templates. * * {@link https://akilijs.com/docs/routing#docs_templates} * * @tag route */ export default class Route extends Component { static define() {...
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ goog.module('test_files.jsdoc_types.untyped.default');var module = module || {id: 'test_files/jsdoc_types.untyped/default.js'}; class DefaultClass { } exports.default = DefaultClass;
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { push as pushAction } from 'react-router-redux'; import { userLogout as userLogoutAction } from './actions'; import { withFirebase, firebaseAppType } from '../firebase'; const...
'use strict'; var angular = require('angular'); angular .module('mwl.calendar') .controller('MwlDateModifierCtrl', function($element, $attrs, $scope, moment) { var vm = this; function onClick() { if (angular.isDefined($attrs.setToToday)) { vm.date = new Date(); } else if (angular.isD...
'use strict'; const fs = require('fs'); const path = require('path'); const cwd = process.cwd(); const ES6BrowserPath = path.dirname(require.resolve('es6-browser')); const baseSystemConf = path.join(ES6BrowserPath, 'config/system.conf.js'); const baseKarmaConf = path.resolve(`${__dirname}/../config/karma.conf.js`); co...
'use strict'; module.exports = function( grunt ) { var config = JSON.parse( grunt.file.read( 'grunt/path.json' ) ); grunt.config.init( config ); require( 'load-grunt-config' )( grunt, { configPath: process.cwd() + '/grunt' } ); };
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
function solve(params) { 'use strict'; let nk = params[0].split(' ').map(Number), n = nk[0], k = nk[1], numbers = params[1].split(' ').map(Number), elements = [], result = 0; for (var i = 0; i < k; i++) { for (var index = 0; index < n; index++) { ...
/**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. * @private */ import {proxyEvents, transferEvents} from '@ciscospark/common'; import {detect} from '@ciscospark/http-core'; import {SparkPlugin} from '@ciscospark/spark-core'; import {filter, map} from 'lodash'; import {EventEmitter} from 'even...
/** * Created by feichongzheng on 17/1/5. */ import Config from '../config.json'; const parentHref = document.referrer; function isOrAllowed() { const host = parentHref.replace('http://', '').split('/')[0]; return (Config.allowedDomain.indexOf(host) > -1 || Config.allowedDomain.indexOf('*') > -1); } functio...
'use strict'; (function() { // Networkdetails Controller Spec describe('Networkdetails Controller Tests', function() { // Initialize global variables var NetworkdetailsController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updat...
'use strict'; //Formulas service used for formulas REST endpoint angular.module('mean.formulas').factory('Formulas', ['$resource', function($resource) { return $resource('api/formulas/:formulaId', { formulaId: '@_id' }, { update: { method: 'PUT' } }); } ]);
angular.module("productCategoryModule") .factory("productCategoryService", productCategoryService); productCategoryService.$inject = ['$http']; function productCategoryService($http) { return { createProductCategory: function (productCategory) { return $http.post('/createProductCategory', { ...
/** 此脚本用于构建主页引用文件数据包sourceMap **/ var fs = require('fs'), UglifyJS = require("uglify-js"), cssmin = require('ycssmin').cssmin, file = 'index.html', cmpJS = '../sourceMap.js', source = { 'footer' : 'footer.html', 'header' : 'header.html', 'blogHeader' : 'blog/blogHeader.html', 'blogFooter' : 'b...
var docsApp = { controller: {}, directive: {}, serviceFactory: {} }; docsApp.directive.ngHtmlWrapLoaded = function(reindentCode, templateMerge, loadedUrls) { function escape(text) { return text. replace(/\&/g, '&amp;'). replace(/\</g, '&lt;'). replace(/\>/g, '&gt;'). ...
function SigV4Utils() {} SigV4Utils.getSignatureKey = function (key, date, region, service) { var kDate = AWS.util.crypto.hmac('AWS4' + key, date, 'buffer'); var kRegion = AWS.util.crypto.hmac(kDate, region, 'buffer'); var kService = AWS.util.crypto.hmac(kRegion, service, 'buffer'); var kCredentials = ...
Package.describe({ name: 'atomic:users', version: '0.5.0', summary: 'Users models and utilities', git: 'https://github.com/robertpitt/meteorpress' }); Package.onUse(function(api) { api.versionsFrom('1.1.0.2'); api.use("aldeed:collection2@2.3.3"); api.use("aldeed:simple-schema"); api.use("underscore"); ...
import Component from '@ember/component'; import { computed } from '@ember/object'; import { reads } from '@ember/object/computed'; import { inject as service } from '@ember/service'; import { isEmpty, isPresent } from '@ember/utils'; import { task, timeout } from 'ember-concurrency'; export default Component.extend({...
var mongoose = require('mongoose'), Schema = mongoose.Schema; // clmbder signup schema var ClimbderSignupSchema = new Schema({ email: { type: String, required: true }, dateSignup: { type: Date, default: Date.now } }); module.exports = mongoose.model('ClmibderSignup', ClimbderSignupSchema);
import React from 'react' import {Footer , PanelWork } from '../components' import styles from '../css/work.module.css' import {prefixLink} from 'gatsby-helpers' export default class Portafolio extends React.Component { panelwork ={ background: "#081423", logo_image: prefixLink("/./assets/work__logo.jpg")...
var struct_wanzyee_studio_1_1_span = [ [ "Span", "struct_wanzyee_studio_1_1_span.html#a59efd713e04969acb7636aae814fae3c", null ], [ "TryParse", "struct_wanzyee_studio_1_1_span.html#ad9ffbe6eb25635b47f5d791d29829ff4", null ], [ "Parse", "struct_wanzyee_studio_1_1_span.html#a8f91566a27183583374c006287a898ac",...
/** * Scripts within the customizer controls window. * * Contextually shows the color hue control and informs the preview * when users open or close the front page sections section. */ (function () { wp.customize.bind('ready', function () { // Only show the color hue control when there's a custom col...
var CodingDojoApp = angular.module('CodingDojoApp', []); CodingDojoApp.controller('ExampleController', ['$scope', '$http', function($scope, $http) { $scope.test="Hello World"; $http.get('example/Foobar.json').success(function(data) { $scope.data = data; }); }]);
const fetch = require('node-fetch') const util = require('util') const parseXML = util.promisify(require('xml2js').parseString) const {NotAuthorised, InvalidPostcode, IncorrectPostcode} = require('./errors') const Posty = require('postcode') var HttpsProxyAgent = require('https-proxy-agent') let agent = null const {QU...
const hooks = require('hooks'); hooks.before('Articles > Publish an article', (transaction) => { transaction.request.headers.Authorization = 'Basic: YWxhZGRpbjpvcGVuc2VzYW1l'; });
'use strict'; module.exports = function(sequelize, DataTypes) { var Employee_regions = sequelize.define( 'Employee_regions', { staff_id: DataTypes.STRING, designation: DataTypes.STRING, step: { type: DataTypes.STRING, primaryKey: t...
import {connect} from 'react-redux'; import Sky from '../../components/Sky'; export default connect(state => ({weather: state.weather}))(Sky);
/*! * content cutter */ var validator = require('validator'); /** * 截短内容 * @param {String} content 需要被截断的内容 * @param {Number} length 需要截取的长度 */ exports.shorter = function (content, length) { content = validator.trim(content) || ''; var len = content.length; var cache = content.substring(0, len); var t =...
/*globals window,document*/ (function plainOldJs(window, document) { 'use strict'; var createChannelButtonElement = document.getElementById('create-channel') , joinChannelButtonElement = document.getElementById('join-channel') , leaveChannelButtonElement = document.getElementById('leave-channel') , plu...
var d = 0; var position = new Array(); var border = 100; var randomOrientation = true; function getImage(images, group){ var all_images = group;//document.getElementById("all_images"); var estremo_x = document.getElementById("mainElement").width.baseVal.value-(2*border); var estremo_y = document.getEl...
/** * Executes the processing tasks first (['scripts', 'styles', 'i18n', 'copy']) * Then injects the compiled files (js and css) into index.html */ (function () { 'use strict'; var gulp = require('gulp'); // var $ = require('gulp-load-plugins')(); // var vendor = require('./vendor')(); module.exports = funct...
var mottos = require('../lib/mottos.js'); var expect = require('chai').expect; suite('Test mottos', function() { expect(typeof mottos.getMotto() === 'string'); });
import './styles.css' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import configureStore from './configureStore' import AsyncApp from './components/AsyncApp' (() => { const store = configureStore() const app = document.createElement('div') document...
describe('applyFilters', function() { var i, ii, spec; var regexpFilters = ['subject']; function parseQuery(str) { var query = {}; var strs, i, ii, tuple; if (str && str.charAt(0) === '?') { str = str.slice(1); strs = str.split('&'); for (i=0, ii=strs.length; i < ii; ++i) { ...
angular .module('NashMatch') .controller('PlayerCtrl', function(People, FIRE_URL) { var main = this; People.allPlayers(function(people){ //gets all users and gives to ng-repeat main.people = people; }) })
// Regular expression that matches all symbols in the `Batak` script as per Unicode v6.3.0: /[\u1BC0-\u1BF3\u1BFC-\u1BFF]/;
const _ = require( 'wTesting' ); // function routine1( test ) { test.identical( 1, 1 ); } // function routine2( test ) { test.identical( 1, 1 ); } // var Self1 = { name : 'OptionSuiteA2', // beeping : 0, tests : { routine1, routine2, } } // Self1 = wTestSuite( Self1 ); if( typeof module !...
/*global module:true */ module.exports = function(grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { options: { reporter: 'checkstyle', reporterOutput: 'build/reports/checkstyle/jshint_checkstyle.xml', ...
/**--------------------------------------------------------------------------------------------------------------------- * tgi-core/gulpfile.js */ var gulp = require('gulp'); var jshint = require('gulp-jshint'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rena...
import _JSXStyle from "styled-jsx/style"; import React from "react"; export default (()=><> <p className={"jsx-6dd5f97e085c0297"}>Testing!!!</p> <p className={"jsx-6dd5f97e085c0297" + " " + "foo"}>Bar</p> <> <h3 id="head" className={"jsx-6dd5f97e085c0297"}>Title...</h3> <React.Fragment > ...
var path = require('path') var webpack = require('webpack') module.exports={ module:{ loaders:[{ test: /\.js$/, loader: 'babel', query: { presets: ['es2015'] } }] } }
$(document).ready(function () { loadChangeUserForm('createUser'); displayActiveEvent(); updateUploadInfos(); $(document).on('click', '#btn-create-event', function () { validateForm(); var createEventForm = $('#createEventForm'); if (createEventForm.valid()) { ...
var observable = require("data/observable"); var GameModel = (function (_super) { __extends(GameModel, _super); function GameModel() { _super.call(this); this.set("points", 0); } GameModel.prototype.setPoints = function(value) { this.set("points", value); }; return GameMo...
import { mount } from '@vue/test-utils' import BBadge from './badge' describe('badge', () => { it('should have base classes', async () => { const wrapper = mount(BBadge) expect(wrapper.is('span')).toBe(true) expect(wrapper.classes()).toContain('badge') expect(wrapper.classes()).toContain('badge-secon...
const mongo = require('../lib/mongo'); var th = require('../brain/thresholds'); mongo.then(db => { const collection = db.collection('states'); return collection.find({ createdAt: { $gt: Date.now() - 30 * 60 * 1000 } }).toArray().then(states => { states = th.getWinnerScore(states); console.log(...
/* | Copyright 2017 Esri | | 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 | | Unless required by applicable law or agreed to in writ...
var express = require('express'); var loadUrl = require('../lib/database').load var router = express.Router(); router.get('/:id', function(req, res) { loadUrl(req.params.id, function(data) { if (data) { res.writeHead(301, {Location: data.original}); res.end(); } else { ...
if(!K_Components) K_Components = {}; K_Components["todobutton"] = (function(){ /********************************* * todobutton * Created by keleko34 * a button for todo items ********************************/ function todobutton() { /* ATTRIBUTES */ this.isActive = false; this.title = ""; this.filters.a...
var cradle = require('cradle') var sort = function (data) { return data.sort(function (a, b) { return a.priority - b.priority; }) } var formatResult = function (data) { var docs = [] data.forEach(function (row) { if (row && row.type == 'ticket') docs.push(row) }) r...
export const ic_schedule_send = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M16.5 12.5H15v4l3 2 .75-1.23-2.25-1.52V12.5zM16 9L2 3v7l9 2-9 2v7l7.27-3.11C10.09 20.83 12.79 23 16 23c3.86 0 7-3.14 7-7s-3.14-7-7-7zm0 12c-2.75...
/* The MIT License Copyright (c) 2009 Sami Blommendahl, Mika Hannula, Ville Kivelä, Aapo Laitinen, Matias Muhonen, Anssi Männistö, Samu Ollila, Jukka Peltomäki, Matias Piipari, Lauri Renko, Aapo Tahkola, and Juhani Tamminen. Permission is hereby granted, free of charge, to any person obtaining a copy of this softwar...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
var expect = require('chai').expect; var should = require('chai').should(); var manifesto = require('../../dist-commonjs/'); var manifests = require('../fixtures/manifests'); var manifest; describe('audio manifest', function() { it('loads successfully', function (done) { manifesto.loadManifest(...
/* eslint-disable */ import API from 'src/util/api'; import Versioning from 'src/util/versioning'; import URI from 'uri/URI'; import OCL from 'openchemlib/openchemlib-core'; async function track() { var sample = JSON.parse( window.localStorage.getItem('external_cache') || '{}' ); API.createData('nmr', []); ...
var flatten= require('flat'); module.exports= function (schema) { var collectObj={}; var flattenedAttributes= flatten(schema.attributes); for ( var key in flattenedAttributes) { if(flattenedAttributes[key] === 'Date') { var keyList= key.split('.'); if(keyList[keyList.length -1] === 'instanceof') { ...
var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry : { 'jannes.mingram.net' : ["./src/main.js"] }, output : { path : path.resolve(__dirname, "build/js"), publicPath : "/", filename : "js/[name].js" }, pl...
var UpdatableBusinessEntity = require('./model/UpdatableBusinessEntity.js'); var readHelper = require('./crud/read.js'); module.exports = { doRead : function(req, res) { var bs = new UpdatableBusinessEntity(); var odataQuery = readHelper.getQuery(req); odataQuery.model = req.odataModel; bs.read(odat...
// This file is an entry point for angular tests // Avoids some weird issues when using webpack + angular. import 'angular'; import 'angular-mocks/angular-mocks'; import 'angular-ui-router'; var testsContext = require.context(".", true, /.spec$/); testsContext.keys().forEach(testsContext);
import React, { Component } from 'react' import CodeMirror from 'react-codemirror' import 'codemirror/mode/python/python' import Slider from 'rc-slider' import Tooltip from 'rc-tooltip' import _ from 'lodash' class BehaviorHint extends Component { constructor(props) { super(props) this.state = { tick: ...
/** * Gruntfile.js * * This file is used to deploy changes to this site. */ module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), exec: { composer_install: "composer install --optimize-autoloader -vv", logs_path_writable: "sudo ...
/** * This file is responsible for setting up mocha testing */ const inquirer = require('inquirer') const _ = require('lodash') const confirmQuestion = { type: 'confirm', name: 'confirm', message: 'Set up Mocha ?', default: false } const assertionQuestion = { type: 'list', name: 'assert', message: 'Ch...
import { expect } from 'chai'; import * as React from 'react'; import { createClientRender, describeConformanceV5 } from 'test/utils'; import Skeleton, { skeletonClasses as classes } from '@material-ui/core/Skeleton'; describe('<Skeleton />', () => { const render = createClientRender(); describeConformanceV5(<Ske...
require.config({ baseUrl: 'app', paths: { angular : 'components/angular/angular', angularRoute : 'components/angular/angular-route', jquery : 'components/jquery-1.11.1', lodash : 'components/lodash/lodash', bootstrap : 'compone...
class CherrySprite extends Phaser.Sprite { constructor(game, x, y) { super(game, x, y, 'cherry'); this.game.stage.addChild(this); this.alpha = 0; this.scale.setTo(0.7); this.anchor.setTo(0.5, 0); this.angle = -30; game.physics.arcade.enable(this); game.add.tween(this).to({angle: 30}, ...
/** * @class * @description A double ended queue * @augments kiso.data.AbstractList * @implements kiso.data.IDeque */ kiso.data.Deque = kiso.Class( { parent: kiso.data.AbstractList, interfaces: kiso.data.IDeque }, /** @lends kiso.data.Deque.prototype */ { /** * @description Push a new elem...
var express = require('express'); var router = express.Router(); /* BASE CONTROLLER */ router.use('/auth/', require('./auth')); router.use('/dashboard/', require('./dashboard')); router.use('/commission/', require('./commissions')); router.use('/deliverable/', require('./deliverables')); router.get('/', function...
Ext.define('Cetera.users.Groups', { extend:'Ext.grid.GridPanel', initComponent : function(){ this.tbar = [ { iconCls:'x-fa fa-sync', tooltip: _('Обновить'), handler: function () { this.reload(); }, scope: this ...
// From https://www.shadertoy.com/view/MlyBWK by v_coda export default /* glsl */` float smootherstep(float edge0, float edge1, float x) { x = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0); return x * x * x * (x * (x * 6.0 - 15.0) + 10.0); } `;
var WebSocket = require("ws"); function getLightnings(publish) { var ws = new WebSocket("ws://ws.blitzortung.org:8082/"); ws.on("open", () => { ws.send(JSON.stringify({ west: -180, east: 180, north: 90, south: -90 })); }); ws.on("message", (lightning) => { try { lightning = ...
module.exports = { connStr: process.env.DBCONN };
module.exports = { "parserOptions": { "ecmaVersion": 6, "ecmaFeatures": { "blockBindings": true }, }, "env": { "browser": true, "node": true }, "globals": { "Promise": true, "ActiveXObject": true, "AJAX": true, "DOM": true, "SOCKET": true, "io": true }, "p...
'use strict'; // include dependencies const unit = require('unit.js'); const express = require('express'); const virtual = require('../index'); const app = express(); app.use(virtual); app.get('/test', (req, res, next) => { res .status(200) .set('Content-Type', req.headers.accept) .set('X-Request-URL',...
/** * grunt-webfont: Node.js engine * * @requires ttfautohint 1.00+ (optional) * @author Artem Sapegin (http://sapegin.me) */ module.exports = function(Font) { 'use strict'; var Promise = require("bluebird"); var svgicons2svgfont = require("svgicons2svgfont"); var StringDecoder = require('string_decoder')....
(function () { var app = angular.module('tickTock', ['ngRoute','ui.bootstrap', 'vAccordion', 'vModal', 'ngAudio', 'firebase']); app.config(function ($routeProvider) { var LoginPromise $routeProvider .when('/clock', { templateUrl: 'app/pages/home/home.html', ...
const _ = require('underscore'); const uuid = require('uuid'); const { matchCardByNameAndPack } = require('./cardutil.js'); const { detectBinary } = require('../../server/util'); class PlayerInteractionWrapper { constructor(game, player) { this.game = game; this.player = player; player.no...
import React, {Component} from 'react'; import FontIcon from 'material-ui/FontIcon'; import { browserHistory } from 'react-router' import {Tabs, Tab} from 'material-ui/Tabs'; export default class Navigation extends Component { constructor(props) { super(props); this.state = { value: this.props.path ...
var Note = require('../models').Note; exports.getNotes = function (userId, callback) { Note.find({ user_id: userId }, callback); } exports.getNoteById = function (id, callback) { Note.findOne({ _id: id , function (err, note) { if (err) { return callback(err); } }); } exports.getNotesCount = function (userI...
const path = require("path"); module.exports = (env, argv) => { var isDev = argv.mode === "development"; // Return the configuration return { entry: [ "./node_modules/core-js/es/promise/index.js", "./build/index.js" ], output: { path: path.resolv...
/** * Module dependencies */ var xhr = require('xhr'); var utils = require('./utils'); var status = utils.status; module.exports = XHRPolling; /** * Make XHRPolling look like WebSocket * * @param {String} url */ function XHRPolling(url) { var self = this; self.url = utils.toHttp(url); self.poll(); } XH...
var baseIndexOf = require('./_baseIndexOf'), toInteger = require('./toInteger'); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * Gets the index at which the first occurrence of `value` is found in `array` * using [`SameValueZero`](http://e...
version https://git-lfs.github.com/spec/v1 oid sha256:ddfd1993bf5f760203cf8405e3b8bf4b398edf9f42693face9dc4a031416e685 size 1229
/** * UsuarioController * * @description :: Server-side logic for managing usuarios * @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers */ module.exports = { login: function (req, res) { var formEmail = req.param("email"); var formSenha = req.param("senha"); if (formEmail ...
module.exports = { module: { loaders: [ { test: /\\.jsx?$/, loader: 'babel', exclude: ['node_modules'] }, { test: /\\.css$/, loader: "style-loader!css-loader" }, { test: /\\.gif$/, loader: "url-loader" }, { test: /\\.svg$/, loader: "url-loader" }, { test: /\\.(ttf|eot|svg)$/, loader...
import { fromJS } from 'immutable'; import { USER_STORE } from 'containers/LoginContainer/constants'; // The initial state of the App const initialState = fromJS({ user: null, }); function global(state = initialState, action) { switch (action.type) { case USER_STORE: return state .set('user', a...
modules.define( 'input', ['inherit', 'block'], function (provide, inherit, YBlock) { var input = inherit(YBlock, { __constructor: function () { this.__base.apply(this, arguments); //console.log("привет мир"); this._control...
import 'babel-polyfill' import React from 'react' import { Provider } from 'react-redux' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import routes from './routes' import '../node_modules/bootstrap/dist/css/bootstrap.min.css' import configureStore from './store/configureStor...
/** @namespace lsn.hubb.command */ ECMAScript.Extend('lsn.hubb.command', function (ecma) { var CBase = ecma.lsn.hubb.command.Base; /** * @class Create */ this.Create = function () { CBase.call(this, 'create'); this.argspec = ['target', 'name', 'type', 'value']; }; var Create = this.Create.pr...
const { Canvas } = require('@antv/g/lib'); const Shape = require('../../../src/shape/shape'); require('../../../src/shape/edge'); const expect = require('chai').expect; const div = document.createElement('div'); div.id = 'edge-shape'; document.body.appendChild(div); const canvas = new Canvas({ containerId: 'edge-sha...
var Icon = require('../icon'); var element = require('magic-virtual-element'); var clone = require('../clone'); exports.render = function render(component) { var props = clone(component.props); delete props.children; return element( Icon, props, element('path', { d: 'M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Group = mongoose.model('Group'), _ = require('lodash'); /** * Find group by id */ exports.group = function(req, res, next, id) { Group.load(id, function(err, group) { if (err) return next(err); if (!group)...
(function () { var zeropad = function (n) { return n > 9 ? n : '0' + n; }; var shortDays = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']; var shortMonths = ['Jan','Feb','Mar','Apr','May','Jun', 'Jul','Aug','Sep','Oct','No...
module.exports = { prefix: 'fal', iconName: 'flag', icon: [512, 512, [], "f024", "M344.348 74.667C287.742 74.667 242.446 40 172.522 40c-28.487 0-53.675 5.322-76.965 14.449C99.553 24.713 75.808-1.127 46.071.038 21.532.999 1.433 20.75.076 45.271-1.146 67.34 12.553 86.382 32 93.258V500c0 6.627 5.373 12 12 12h8c6.627 0 12-...
'use strict' const path = require('path') const ProgressBarPlugin = require('progress-bar-webpack-plugin') const logger = require('./logger') /** * 装配配置文件 * @param {string} filename 文件名 * @return {object} 配置内容 */ module.exports = function (filename, program) { const configPath = path.join(process....
/*! AppSetting factory act as setting processor at app initialization */ define(['modules/common/config/initModule', 'appConfig'], function (Hairzzlers) { 'use strict'; Hairzzlers.factory('appSetting', ['$http','$window', function ($http,$window) { var settings = { } return settings...
/** The MIT License (MIT) Copyright (c) 2014 MyChannel-Apps.de 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, mod...
(function () { 'use strict'; var conf = {}; // Init functions, called on DOMContentLoaded event conf.init = function () { conf.map.init($('#map-canvas')); conf.menu.init(); }; /*** Google Maps implementation ***/ conf.map = { marker: 'themes/yellow-swan...