code
stringlengths
2
1.05M
( function() { CKEDITOR.plugins.add( 'imgur', { lang: ['zh', 'en'], init: function( editor ) { ClientId = editor.config.imgurClientId; if(!ClientId) alert(editor.lang.imgur.clientIdMissing); var count = ...
// api/models/User.js var _ = require('lodash'); var _super = require('sails-auth/api/models/User'); _.merge(exports, _super); _.merge(exports, { // Extend with custom logic here by adding additional fields, methods, etc. /** * For example: * * foo: function (bar) { * bar.x = 1; * bar.y = 2; ...
var checkIgnore = require('./checkignore.js'); var _ = fis.util; var chokidar = require('chokidar'); var util = require('util'); var path = require('path'); var patterns, root; function isMaster() { var argv = process.argv; return !~argv.indexOf('--child-flag'); } // 判断新加的文件是否满足用户指定。 function match(path) { if...
import React from 'react'; class AddNote extends React.Component { handleSubmit() { var newNote = this.refs.note.getDOMNode().value; this.refs.note.getDOMNode().value = ''; this.props.addNote(newNote); } /* * one tricky thing that we need to do is when you're using react.create...
/** * @fileoverview Describes a collection of notes */ define([ 'backbone', 'models/note' ], function(Backbone, NoteModel) { return Backbone.Collection.extend({ url: '/api/notes/list', model: NoteModel }); });
import * as Tags from "../tags"; import * as THREE from "three"; import * as MathUtil from "../util/math"; import ObjectPool from "../util/ObjectPool"; import Random from "../util/Random"; import Line3D from "./writing/Line3D"; import getPathFromSVG from "../util/getPathFromSVG"; export default function WindAt...
import React, { Component } from 'react'; import { BarChart, XAxis, YAxis, CartesianGrid, Bar, Brush, Tooltip, Legend, ResponsiveContainer } from 'recharts'; class BarChartWidget extends Component { constructor(props) { super(props); } render() { return ...
// Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html var sourcePreprocessors = ['coverage']; function isDebug() { return process.argv.indexOf('--debug') >= 0; } if (isDebug()) { // Disable JS minification if Karma is run with debug option. sourcePreprocessors = []; ...
import { Mockgoose } from 'mockgoose'; import mongoose from 'mongoose'; import BookInfo from '../book-info.model'; import findBookInfo from '../find-book-info'; import { testBookInfo } from '../../test-util'; describe('Create book info controller', () => { beforeAll(done => { mongoose.Promise = Promise; re...
import Generator from '../src/core/generator'; test('resolves the bound model', () => { // watchable model. let vnode = { context: { email: '' }, data: { model: { expression: 'email' } } }; expect(Generator.resolveModel({ arg: null, value: null }, vnode)).toBe('email'); // watchable directive arg vn...
/* jshint node: true, esversion: 6 */ /* globals describe: false, expect: false, it: false */ import { Crc32 } from "../src/crc32"; describe("CRC32 tests", function () { it("should produce a correct value for a string", () => { const str = "The quick brown fox jumps over the lazy dog"; const res = ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; let object = new Schema({ status_item: { type: Number, require: true }, create_date: { type: Number, required: true }, modification_date: { type: Number, required: true }, m...
/* * moleculer * Copyright (c) 2020 MoleculerJS (https://github.com/moleculerjs/moleculer) * MIT Licensed */ "use strict"; const { BrokerOptionsError } = require("../../errors"); const { isObject, isString } = require("../../utils"); const Discoverers = { Base: require("./base"), Local: require("./local"), Et...
import React, { Component } from 'react'; import * as Animatable from 'react-native-animatable'; import {StyleSheet, Image} from 'react-native' import { Container, Title, Content, View, Button, Footer, FooterTab, Left, Right, Body, Icon, Text } from 'native-base'; import Bubbles from './Bubbles' import Foam from './Foa...
'use strict'; angular.module('scrumbo').directive('column', function(Sprint, Story) { return { templateUrl: 'components/column/column.html', scope: { column: '=set', }, controller: function($rootScope, $scope) { var removeStoryFromColumn = function(story) { ...
var express = require('express'); var app = express(); app.get('/some/path', function(req, res) { // BAD: a request parameter is incorporated without validation into a URL redirect res.redirect(req.param("target")); }); app.all(function(req, res) { // BAD: a request parameter is incorporated without validation...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z" /> , 'Cloud');
/* * Chilly Framework v0.2.1: JavaScript Library * http://chillyframework.com/ * * Chilly back end * * Copyright 2012, Taj Pelc * Dual licensed under the MIT or GPL Version 2 licenses. * http://chillyframework.org/license */ var Chilly = module.exports = (function() { 'use strict'; // var...
// ---------------------------------------- // Color /** * Sets the color used to fill shapes. * @cat Color * @method fill * @param {Color|Swatch|Numbers} fillColor Accepts a Color/swatch or a string with the name of a color. Or values: C,M,Y,K / R,G,B / Grey */ pub.fill = function (fillColor) { checkNull(fi...
/** @babel */ import createDOMPurify from "dompurify"; import fs from "fs-plus"; import {marked} from "marked/lib/marked.cjs"; import {shell} from "electron"; import {Emitter} from "atom"; import NotificationIssue from "./notification-issue"; import TemplateHelper from "./template-helper"; import UserUtilities from "...
'use strict' /** * adonis-commands * * (c) Harminder Virk <virk@adonisjs.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ const path = require('path') const hogan = require('hogan.js') const i = require('inflect') const Ioc = ...
/* @flow */ import { invariant } from '../Global'; import type { TableProvisionedAndConsumedThroughput, AdjustmentContext } from '../flow/FlowTypes'; export default class RateLimitedDecrement { static isDecrementAllowed( data: TableProvisionedAndConsumedThroughput, adjustmentContext: AdjustmentContext, ...
class wiavideo_wiavideo { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService() GetLife...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), Wishlist = mongoose.model('Wishlist'), _ = require('lodash'); /** * Create a Wishlist */ exports.create = function(req, res) { var wishlist = new Wishlist(req.body); wishlist....
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = PropertyToggle; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _export = require('../../c...
module.exports = { redirects : false, PORT : 1337, emails: false }
define( [ 'libraries/angularMocks', 'app' ], function (angularMocks, app) { 'use strict'; describe('EventControllerTest', function () { var eventsController, myScope, httpBackend; beforeEach(function () { angularMocks.module('eventMa...
{ "name": "nikud.js", "url": "https://github.com/zvizvi/nikud.js.git" }
'use strict'; const Bookshelf = require('./bookshelf'); module.exports = Bookshelf.Model.extend({ tableName: 'books', filter: function (filter) { return this.query((qb) => { if (filter.year) { qb.where('year', filter.year); } }); } });
'use strict'; /* eslint-disable angular/angularelement */ require('./../src/angular-bootstrap-confirm.js'); var $ = require('jquery'); var angular = require('angular'); require('angular-mocks'); describe('Confirm popover', function() { beforeEach(angular.mock.module('mwl.confirm')); beforeEach(angular.mock.modu...
var path = require('path'); var webpack = require('webpack'); var src_dir = path.resolve(__dirname, 'src'); var dist_dir = path.resolve(__dirname, 'dist'); module.exports = { entry: path.resolve(src_dir, 'index.js'), output: { path: dist_dir, filename: 'websql.js', libraryTarget: 'umd', }, module: {...
db.devices.aggregate([ { $group: { _id: { device_token: "$device_token" }, uniqueIds: { $addToSet: "$_id" }, count: { $sum: 1 } }}, { $match: { count: { $gt: 1 } }} ])
'use strict'; var dirname = require('path').dirname; var clone = require('clone'); var Transformer = require('./shared'); /** * minifiers must be first in order to be incorporated inside instances of * respective output formats */ var uglifyJS = require('uglify-js'); exports.uglify = exports.uglifyJS = exports['u...
import { WIN_PARAMS } from '../config'; import encodeParams from '../utils/encodeParams'; export default function reddit(options = {}) { const { url, title } = options; const params = encodeParams({ url, title }); return window.open(`https://www.reddit.com/submit?${params}`, '_blank', WIN_PARAMS); }
function kill(port) { if (port in domain) { try { process.kill(domain[port]); console.log( "killed " + folder + " on port " + port ); } catch(o_O) {} delete domain[port]; } }
/* IMPORTANT: Don't use ES6 here, as some people are still on Node 4. */ var b = require('substance-bundler') var path = require('path') // Constants // --------- var DIST = 'dist/' var TEST ='.test/' var NPM = '.npm/' var NPMDIST = NPM+'dist/' var STUFF = [ 'package.json', 'LICENSE.md', 'README.md', 'CHAN...
import * as CES from 'ces'; import * as BABYLON from '../lib/babylon'; import { utils } from '../utils/utils'; import { c_mesh } from '../components/c_mesh'; import { c_material } from '../components/c_material'; /** * ... * @author Brendon Smith * http://seacloud9.org * LightWeight 3D System Design engine */ exp...
/* * Copyright (c) 2017. MIT-license for Jari Van Melckebeke * Note that there was a lot of educational work in this project, * this project was (or is) used for an assignment from Realdolmen in Belgium. * Please just don't abuse my work */ define(function (require) { /** * @payload * @property {st...
'use strict'; describe('TemplateCtrl Unit Test', function() { beforeEach(module('foundryApp')); var TemplateCtrl, scope, rootScope, location; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope, $location) { scope = {}; rootScope = $rootScope; locati...
var assert = require('assert'), Server = require('../lib/server.js'), server = null; require('sugar'); describe('Server', function () { describe('Server(srv, opts)', function () { afterEach(function () { server.close(); }); it('should create server', function (done) { server = new Server...
import Complex from 'complex.js' import { format } from '../../utils/number' import { isNumber, isUnit } from '../../utils/is' import { factory } from '../../utils/factory' const name = 'Complex' const dependencies = [] export const createComplexClass = /* #__PURE__ */ factory(name, dependencies, () => { /** * A...
/** * Created by bll on 2017/9/11. */ import React from 'react'; import { NativeModules, LayoutAnimation, Text, TouchableOpacity, StyleSheet, View, } from 'react-native'; const { UIManager } = NativeModules; UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(tr...
/* * Yennoo : Web Interface for XBMC/Kodi * Copyright 2015, Ronny Eisenkolb (@eisenkolb) * Free to use under the MIT license. * http://www.opensource.org/licenses/MIT */ angular.module("Kodi.Playback", []).service("PlaybackService", function($http, MovieFactory){ /** * Enum for playback types * ...
define({ root: //begin v1.x content { "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], "months-format-narrow": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], "field-second-relative+0": "now", ...
function format(time) { return time.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, '$1'); } export default (fn) => async () => { const start = new Date(); console.log(`[${format(start)}] Starting '${fn.name}'...`); await fn(); const end = new Date(); const time = end.getTime() - start.getTime(); cons...
/** * PepipostLib * * This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). */ 'use strict'; const BaseModel = require('./BaseModel'); /** * Creates an instance of Send */ class Send extends BaseModel { /** * @constructor * @param {Object} obj The object passed to ...
module.exports.list = [ "", " ", " ", "\n", ".", "。", ",", "、", "!", "?", ":", ";", "`", "﹑", "•", "”", "^", "…", "‘", "’", "“", "”", "〝", "〞", "~", "\\", "∕", "|", "¦", "∥", "— ", "(", ...
/** * Developer: Stepan Burguchev * Date: 7/17/2014 * Copyright: 2009-2016 Comindware® * All Rights Reserved * Published under the MIT license */ "use strict"; import { Handlebars } from '../../libApi'; import template from '../templates/emptyGrid.hbs'; import LocalizationService from '../../s...
var port = process.env.PORT || 1337; var baseHost = process.env.WEBSITE_HOSTNAME || 'localhost'; var http = require('http'); var express = require('express'); var bodyParser = require('body-parser'); var vm = require('vm'); var app = express(); var server = http.createServer(app); var jsonParser = bodyParser.json()...
import Link from 'next/link' import { hello } from '~/@my-feature/core' import { add } from '~/@my-feature/utils' export default () => <div> <h1>Hello World!</h1> <p>{ hello }</p> <p>1 + 2 = { add(1, 2) }</p> <Link href="/"><a>Home</a></Link> </div>
import __ from "./__"; /** * Builds a partially applied function.<br/> * The {@link module:lamb.__|__} object can be used as a placeholder for arguments.<br/> * @example * const __ = _.__; * const users = [ * {id: 1, name: "John", active: true, confirmedMail: true}, * {id: 2, name: "Jane", active: true,...
/*global module:false*/ module.exports = function(grunt) { // Add our custom tasks. grunt.loadTasks('tasks'); // Project configuration. grunt.initConfig({ lint: { files: ['grunt.js', 'tasks/**/*.js', 'test/**/*.js'] }, mochaTest: { files: ['test/**/*.test.js'] }, ...
$(document).ready(function() { $("#changeFile").hide(); $('#document').fileupload({ dataType: 'json', done: function (e, data) { console.log(data.result) $("#markdownText").html(data.result.response); $("#changeFile").show(); $('#document').hide()...
// @flow import React from 'react' import autoBind from 'react-autobind' import { FormattedMessage, injectIntl } from 'react-intl' import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table' import { blue500, pinkA200 } from 'material-ui/styles/colors' ...
var Queue = function() { var node = function(data) { var data = data; var next=null; return { data : data, next : next }; }; var head=null,capacity=100000,length=0,next=null; var isEmpty = function() { var that = this; if(that.length==0) return true; return false; }; var isF...
import { mapStateToProps } from '..' describe('<NavbarLink /> container', () => { it('returns isActive:true when on correct path', () => { const props = { history: { location: { pathname: '/foundation' } }, to: '/foundation' } expect(mapStateToProps(null, prop...
'use strict'; var newControllers = angular.module('newControllers', []); newControllers.controller('newController', ['$scope', 'newService', function($scope, newService) { $scope.getPlayers = function() { newService.yearPlayers($scope.year, function(data) { $scope.player...
module.exports = function(config) { 'use strict'; config.set({ basePath: './', frameworks: ["jasmine"], files: [ '../bower_components/angular/angular.js', '../bower_components/angular-route/angular-route.js', '../bower_components/angular-ui-router/...
/* eslint-disable max-len */ import request from 'supertest'; import expect from 'expect'; import server from '../../server'; import { getValidId, getValidUser, getValidDoc, invalidDocs, getWord } from '../../../scripts/data-generator'; import { checkDocumentList } from '../helpers/response-helper'; describe('Document...
import React from 'react' import styled from 'styled-components' import Box from 'v2/components/UI/Box' import Text from 'v2/components/UI/Text' const Container = styled(Box)` display: flex; align-items: center; ` export default props => ( <Container {...props}> <Text f={3}> <strong> <a href=...
module.exports = "is-js";
/** * The MIT License (MIT) * * Copyright (c) 2015 Mickael Jeanroy * * 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 ...
/** * Created by peter on 24/11/2016. */ import React , {Component} from 'react'; import {StyleSheet, View, Platform, ListView, ScrollView, RefreshControl, InteractionManager, SegmentedControlIOS } from 'react-native'; import AttendedClass from './AttendedClass'; import {TextNotice} from '../common'; import * a...
fs = require("fs"); StringUtil = require("./util/StringUtil"); var parseVersions = function(data) { data = data.replace("\"", ""); versions = []; while (versions.length != 3) { data = data.substr(1, data.length); var version = parseInt(data); if (!isNaN(version)) { ve...
//ship-list id //wrecks id // name spacing var app = app || {}; var active = active || {}; //instaniated objects live here //blueprints app.model = Backbone.Model.extend(); app.collection = Backbone.Collection.extend({ //speficy model. Hey collection whenever you created a brand new model use this blueprint! u...
const zmq = require("zmq"); const uuid = require('uuid/v4'); const log = require('../common/utils').log; const chalk = require('chalk'); const semver = require('semver'); const conf = require('../common/config'); const commander = require('commander'); const NAME_SEPARATOR = '__'; class ...
/* eslint no-func-assign: 1 */ /*! * Module dependencies. */ var Document = require('../document_provider')(); var inspect = require('util').inspect; var PromiseProvider = require('../promise_provider'); /** * EmbeddedDocument constructor. * * @param {Object} obj js object returned from the db * ...
const {app, BrowserWindow} = require('electron') let mainWindow = null const createWindow = () => { mainWindow = new BrowserWindow({ width: 800, height: 600 }) mainWindow.loadURL(`file://${__dirname}/../build/index.html`) mainWindow.on('closed', () => { mainWindow = null }) } app.on('ready', ...
'use strict'; /* command management - allow for non-ops to execute approved javascript code. */ var _commands = {}, _cmdInterceptors = []; /* execute a JSP command. */ var executeCmd = function(args, player) { var name, cmd, intercepted, result = null; if(args.length === 0) { ...
define("libs/md5", [], function(require, exports, module){ /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostine...
/** * * 处理联通4G订单服务 * > node cbssService */ //** common packages var path = require('path'); var fs = require('fs'); var async = require('async'); var config = { db: require('../config/db'), cbss: require('../config/cbss'), }; //** logger packages var log4js = require('log4js'); log4js.configure(path.join(__dir...
var MODULE_NAME = 'signal_api_client'; module.exports = { js : { JS_BASE_FILE : './js/main.js', BASE_MODULE_FILE : './js/' + MODULE_NAME + '/' + MODULE_NAME + '.js', JS_SOURCE_FILES : './js/' + MODULE_NAME + '/*.js', JS_DEST_FULL_FILE : './' + MODULE_NAME...
// script include const Logger = require('dw/system/Logger'); const StringUtils = require('dw/util/StringUtils'); const Transaction = require('dw/system/Transaction'); const Order = require('dw/order/Order'); const AdyenHelper = require('*/cartridge/scripts/util/adyenHelper'); function getTerminals() { try { con...
import _ from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; const plugin = {}; const functions = {}; const configurable = (key, defaultFn, argGetter = () => []) => { const apply = fn => (...args) => fn.apply(null, [...args, ...argGetter()]); plugin[key] = (fn) => { functions[key] = ...
RocketChat.saveUser = function(userId, userData) { const user = RocketChat.models.Users.findOneById(userId); if (userData._id && userId !== userData._id && !RocketChat.authz.hasPermission(userId, 'edit-other-user-info')) { throw new Meteor.Error('error-action-not-allowed', 'Editing user is not allowed', { method: ...
import Ember from 'ember'; import Widget from 'ember-eureka/widget'; export default Widget.extend({ classNames: ['widget-container'], classNameBindings: ['bsColumns', 'dasherizedFqvn'], /** required attributes */ config: null, routeModel: null, currentController: null, /** set it to `tru...
angular.module('gb.services') .service('TagService', ['$q','ProfileService', function($q, ProfileService) { var tagService = {}; tagService.getDefaultUserTags = function() { return ProfileService.getDefaultUserTags(); }; tagService.attemptAutoComplete = function(term) { return [ ...
require('colors'); var wd = require('wd'); var asserters = wd.asserters; var testData = require("../../../test_data/data.json"); var session = require("../support/setup/browser-session"); var dataUtil = require("../util/date-utility"); var loginPage = require("../support/pages/loginpo"); var studyBoardPage = require("....
(function (){ 'use strict'; angular .module('locations') .controller('RecommendationsOptionsController', RecommendationsOptionsController); RecommendationsOptionsController.$inject = ['$state']; function RecommendationsOptionsController($state) { var vm = this; vm.jar = jar; //vm.location...
(function () { 'use strict'; angular .module('polls') .controller('PollsListController', PollsListController); PollsListController.$inject = [ '$location', '$state', '$scope', '$window', 'Socket', 'Action', 'TagsApi', 'ProfileApi', 'ngDialog', 'Constants', 'Sto...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u10d3\u10d8\u10da\u10d8\u10e1", "\u10e1\u10d0\u10...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../../../core/tsSupport/assignHelper ../../../core/tsSupport/generatorHelper ../../../core/tsSupport/awaiterHelper ../../../Camera ../../.....
/* (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP 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, modi...
export default function todos (state = [], action) { switch (action.type) { case 'ADD_TODO': return state.concat([action.text]); default: return state; } }
for (;a();) { if (b()) c(); else break; d(); e(); }
var modalMessage = {}; (function(){ dependenciesLoader(["$"], function(){ $('body').append('<div id="modalMessageBackgroundMask" style="position: fixed; width: 100%; height: 100%; background-color: rgba(0,0,0, 0.8); z-index: 999; top: 0; left:0; display: none"></div>'); $('#modalMessageBackgroundMask').append('<di...
'use strict'; angular.module('myApp.version', [ 'dailyTasksApp.version.interpolate-filter', 'dailyTasksApp.version.version-directive' ]) .value('version', '0.1');
// flow-typed signature: a1803ec3bb2d57f95fe21b49aade3a34 // flow-typed version: <<STUB>>/flow-copy-source_v1.3.0/flow_v0.68.0 /** * This is an autogenerated libdef stub for: * * 'flow-copy-source' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your wor...
var Marionette = require('backbone.marionette'); module.exports = Marionette.ItemView.extend({ template: require('templates/commons/error.tpl'), events: { 'click .btn-close': 'destroy' } });
import {dispatch, matcher} from 'common/functional'; import KeyboardController from 'game/keyboard-controller'; import {BallCollection} from 'game/entities/ball'; import {BrickCollection} from 'game/entities/brick'; import {BulletCollection} from 'game/entities/bullet'; import {default as Pill, PillCollection} from 'g...
angular.module('app').value('mvToastr', toastr); angular.module('app').factory('mvNotifier', function (mvToastr) { mvToastr.options.timeOut = 10000; return { notify: function (msg) { mvToastr.success(msg); console.log(msg); }, error: function (msg) { ...
/** * @author: @AngularClass */ var webpack = require('webpack'); var helpers = require('./helpers'); /** * Webpack Plugins */ var CopyWebpackPlugin = require('copy-webpack-plugin'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlu...
// function related to the main menu pg.menu = function() { var setup = function() { setupNavigationLogic(); setupFileSection(); }; var setupNavigationLogic = function() { // click on $topMenuButton sets active state on button and shows/hides // submenu. also shows/hides inputblocker in...
var data = {wrapper: {}};
require('lazy-ass'); var gitAndNpm = require('git-and-npm'); var _ = require('lodash'); var q = require('q'); q.longStackSupport = true; var updateSummary = require('./update-summary'); var check = require('check-more-types'); check.mixin(function (url) { return check.unemptyString(url) && /^git@/.test(url); }...
var student = { fullName: 'Tony Stark', class: 'VII', city: 'Caracas' } console.log(`Hi there, I'm ` + Object.values(student.fullName).join(''))
//v0.1t $('#helloContainer').after('<div class="modal fade in" id="replayModal" aria-hidden="false" style="display: block;">' + '<div class="modal-backdrop fade in"></div>' + '<div class="modal-dialog" style="top: calc(50vh - 241.5px); width: 500px;">' + '<div class="modal-content">' + '<div id="CloseRe...
(function () { // _____________________________________________________________________________ // // --------------------------- jsMessage ----------------------------------- // // jsMessage provides mixins for publish/subscribe, and event binding patterns. // // Author : Brian Detering | BDeterin@gmail.com | Bri...
/** * store create test */ var storeCreate = require('../src/storeCreator') var expect = require('chai').expect describe('storeCreator tests', function () { it('storeCreator no storeId should throw error', function () { expect(function () { storeCreate() }).to.throw(/id is reauired as create a store...
import Card from "react-bootstrap/Card"; import Color from "./Color"; function Component(props) { const palette = props.palette; const colors = palette.colors.map((color, i) => <Color key={i} color={color}/> ); return ( <Card className="palette mb-4"> <Card.Header> ...