code stringlengths 2 1.05M |
|---|
var SuccessActions = require('../actions/SuccessActionCreators');
var ErrorHandler = {
success: function (status, message) {
SuccessActions.success(status, message);
}
};
module.exports = ErrorHandler;
|
/*global describe, beforeEach, it*/
'use strict';
var assert = require('assert');
describe('zf5 generator', function () {
it('can be imported without blowing up', function () {
var app = require('../app');
assert(app !== undefined);
});
});
|
/**
* Create a droppable overlay on top of the ckeditor interface
* @param {Object} editor
* @param {String} link the link for the ajax action
*/
function dmCkEditorCreateOverlay(editor, link) {
var overlayid = 'drag_box_' + editor.name;
$editor = $('#cke_' + editor.name);
var offset = $editor.offset();
$... |
'use strict';
module.exports = function(app) {
var _ = require('lodash'),
url = require('url'),
express = require('express'),
mirrorRouter = express.Router(),
path = require('path'),
fs = require('fs'),
Handlebars = require('handlebars'),
request = require('request'),
... |
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'),
minifyCss = require('gulp-minify-css'),
reload = require('browser... |
'use strict';
// Constants:
import constants from '../constants';
// Utilities:
import os from 'os';
// Dependencies:
import FeatureLexerFormatter from './utils/FeatureLexerFormatter';
import File from './File';
import gherkin from 'gherkin';
import StepDefinitionGenerator from './utils/StepDefinitionGenerator';
//... |
/*globals require module exports process console*/
/*jslint undef: true, strict: true, white: true, newcap: true, indent: 4 */
"use strict";
var sys = require('sys');
exports.description = 'Run the Cloud9 IDE';
exports.run = function (opts) {
sys.puts('Not implemented yet');
process.exit(1);
};
|
/*
Created By : Chandrabhan Singh
Date : 2016-08-19
Description : A jquery plugin to add tags from pre defined data.
*/
var delcarationAutoSuggest = function ($) {
//Control initilization
$.fn.simplyTag = function (options,itemToAdd) {
//if the first input is Object initilize the control
if (... |
/* poll UI component */
(function($){
var voteMessage = 'You voted for \'{AnswerName}\' {Date}.',
deleteMessage = 'Delete your vote.',
votingEndsMessage = 'Voting ends on {Date}.',
votingEndsResultsHiddenMessage = 'Voting ends {Date}. Results will be shown at that time.',
votingEndedMessage = 'Voting... |
var remjson = require(__dirname + '/../..');
var connect = require('connect');
var app = connect();
var server = remjson.server({
add: function(a, b, callback) {
callback(null, a + b);
}
});
// parse request body before the remjson middleware
app.use(connect.bodyParser());
app.use(server.middleware());
app.l... |
var logger = require('pomelo-logger').getLogger('pomelo', __filename);
var taskManager = require('../common/manager/taskManager');
var pomelo = require('../pomelo');
var rsa = require("node-bignumber");
var events = require('../util/events');
var utils = require('../util/utils');
module.exports = function(app, opts) {... |
var Router, App, AppView, templates, router, container, originalTemplates;
var get = Ember.get, set = Ember.set;
function bootApplication() {
router = container.lookup('router:main');
Ember.run(App, 'advanceReadiness');
}
function compile(string) {
return Ember.Handlebars.compile(string);
}
module("Basic Routi... |
import './Validator'
import './ValidationError'
import './ValidationErrorHandler'
export function ValidationProvider(app, validatorClass, validationErrorHandler) {
validatorClass = validatorClass || Validator
app.validator = new validatorClass(app, app.config.get('validation', {}))
if (app.http.isNil) {
return
... |
if(!employees) {
employees = [];
}
employees.push({
id:1, name: 'Lilly Holloway'
});
|
let { a, b } = obj;
let {
a,
b
} = obj;
|
/**
* Developer: Grigory Kuznetsov
* Date: 17.07.2015
* Copyright: 2009-2016 Comindware®
* All Rights Reserved
* Published under the MIT license
*/
"use strict";
import { Handlebars, moment } from 'lib';
import template from './templates/timeEditor.hbs';
import BaseLayoutEditorView from './bas... |
import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);
|
Clazz.declarePackage ("J.shape");
Clazz.load (["J.shape.Shape"], "J.shape.MeshCollection", ["java.util.Hashtable", "JU.AU", "$.Lst", "$.P3", "$.PT", "$.SB", "JS.T", "J.shape.Mesh", "JU.C", "$.Escape", "$.Logger", "JV.StateManager"], function () {
c$ = Clazz.decorateAsClass (function () {
this.meshCount = 0;
this.me... |
/**
* @fileoverview Options configuration for optionator.
* @author idok
*/
'use strict';
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var optionator = require('optionator');
var pkg... |
var express = require('express'),
router = express.Router();
// 第一个路由起代表和 js 路由相对应同名页面跳转配置
router.get("/", function(req, res, next) {
res.write("welcome login page");
res.end();
});
module.exports = router;
|
/*
* jScroller2 1.61 - Scroller Script
*
* Copyright (c) 2008 Markus Bordihn (markusbordihn.de)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2009-07-16 18:00:00 +0100 (Thu, 16 July 2009) $
* $Rev: 1.61 $
*/
/*global window*/
/*jslint bitwise: true, browser: ... |
var numbers = '1111121111';
console.log('numbersEquals = ' + (numbers.replace(new RegExp(numbers.substr(0, 1), 'g'), "").length == 0));
numbers = '1111111111';
console.log('numbersEquals = ' + (numbers.replace(new RegExp(numbers.substr(0, 1), 'g'), "").length == 0));
//https://pt.stackoverflow.com/q/172410/101
|
import Joi from 'joi'
import './ValidationError'
export class Validator {
app
options
extensions = []
_joi = null
constructor(app, options = {}) {
if (options.isNil) {
options = {}
}
this.app = app
this.options = {
abortEarly: false,
...options,
}
}
get joi() {
if (this._joi === null) {
... |
/**
* {{i18n}} <http://github.com/helpers/handlebars-helper-i18n>
*
* Copyright (c) 2014 Laurent Goderre <https://github.com/LaurentGoderre>
* Licensed under the MIT License (MIT)
*/
'use strict';
/**
* @param {String} `key` The name of the property to use as context.
* @param {Object} `options`
* @return ... |
/*!
* Start Bootstrap - SB Admin 2 v3.3.7+1 (http://startbootstrap.com/template-overviews/sb-admin-2)
* Copyright 2013-2017 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
*/
$(function() {
$('#side-menu').metisMenu();
});
Number.prototype.... |
var allSettings ={};
//Note the file functions here are synchronous as require is synchronous anyway.
function settings(customSettings, settingsFiles, ignoreEnvVars, fs) {
var _ = require('lodash');
if (!fs) {
fs = require('fs');
}
settingsFiles = _.isArray(settingsFiles) ? settingsFiles : ['./config.json',... |
'use strict';
var should = require('should'),
request = require('supertest'),
app = require('../../server'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
PostAssociation = mongoose.model('PostAssociation'),
agent = request.agent(app);
/**
* Globals
*/
var credentials, user, postAssociation;
... |
App.draft = App.cable.subscriptions.create('DraftChannel', {
connected: function() {
return console.log('me conecte');
},
received: function(data) {
switch (data.action) {
case "update_draft":
return $('#team-'+data.team_id).append($('#waiting-' + data.user_id));
case "create_attendee"... |
import { createVue, destroyVM } from '../util';
describe('Radio', () => {
let vm;
afterEach(() => {
destroyVM(vm);
});
it('create', done => {
vm = createVue({
template: `
<el-radio v-model="radio" label="a">
</el-radio>
`,
data() {
return {
radio: ''... |
import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
classNames: ['form-group'],
attributeBindings: ['start', 'end', 'serverFormat'],
start: undefined,
end: undefined,
minDate: undefined,
maxDate: undefined,
timePicker: false,
timePicker24Hour: false,
timePi... |
import Ember from 'ember';
import ChildMixin from 'ember-leaflet/mixins/child';
import { InvokeActionMixin } from 'ember-invoke-action';
const { assert, computed, Component, run } = Ember;
/* global L */
export default Component.extend(ChildMixin, InvokeActionMixin, {
tagName: '',
L,
concatenatedProperties: ['l... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Einar Ingebrigtsen. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------------... |
const Phase = require('./phase.js');
const SimpleStep = require('./simplestep.js');
const Challenge = require('../challenge.js');
const ChallengeFlow = require('./challenge/challengeflow.js');
const ChallengeTypes = require('../ChallengeTypes');
const ActionWindow = require('./actionwindow.js');
const {ChallengeTracker... |
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["ember"],
extends: ["eslint:recommended"],
env: {
browser: true
},
rules: {
camelcase: 0,
"object-curly-spacing": 0,
quotes: 0,
"array-bracket-spacing": 0,
"no-var": 0,
... |
// * ———————————————————————————————————————————————————————— * //
// * page search controller
// * enables quickly searching for pages
// * uses fuse(https://github.com/krisk/fuse/) for fuzzy search
// * ———————————————————————————————————————————————————————— * //
enduro_admin_app.controller('page_search_controller'... |
var passport = require('passport'),
LocalPassport = require('passport-local'),
User = require('mongoose').model('User');
module.exports = function() {
passport.use(new LocalPassport(function(username, password, done) {
User.findOne({ username: username }).exec(function(err, user) {
if (... |
import warning from 'warning';
import useQueries from 'history/lib/useQueries';
import computeChangedRoutes from './computeChangedRoutes';
import { runEnterHooks, runLeaveHooks } from './TransitionUtils';
import { default as _isActive } from './isActive';
import getComponents from './getComponents';
import matchRoutes ... |
'use strict';
// MIDDLEWARE //
var parse = require( 'body-parser' ).json(),
validate = require( './validate.js' ),
level = require( './level.js' ),
okay = require( './okay.js' );
// EXPORTS //
module.exports = [
parse,
validate,
level,
okay
];
|
#!/usr/bin/env node
var carbon = require('carbon-io')
var __ = carbon.fibers.__(module)
var _o = carbon.bond._o(module)
var o = carbon.atom.o(module)
__(function() {
o.main({
_type: _o('../lib/HelloService')
})
})
|
import ProgressBar from './progress-bar.rgl';
export default ProgressBar;
|
const modifiers = require('./index');
const interact = require('../interact');
const utils = require('../utils');
const defaultOptions = require('../defaultOptions');
const snap = {
defaults: {
enabled: false,
endOnly: false,
range : Infinity,
targets: null,
offsets: null,
... |
version https://git-lfs.github.com/spec/v1
oid sha256:d90d87c28006cab5a4888c1aa471ecd003059f1ee188dfaef76ed5c95d26cb1a
size 2505
|
(function(){
'use strict';
/**
* This is a sample service spec
* Generated by ng-appgen Yeomen/Angular generator.
*
* @author: Tapas Jena
* @copyright: Anitech Consulting Services Pvt Ltd.
*/
describe('homeService', function() {
var service;
beforeEach(functi... |
const DrawCard = require('../../drawcard.js');
class Viserion extends DrawCard {
setupCardAbilities(ability) {
this.reaction({
when: {
afterChallenge: event => event.challenge.winner === this.controller && this.isAttacking()
},
cost: [
abi... |
export default function integerCounter() {
let i = 0;
function incrementAndGet() {
i = i + 1;
return i;
}
function decrementAndGet() {
i = i - 1;
return i;
}
function getAndIncrement() {
const tmp = i;
i = i + 1;
return tmp;
}
function getAndDecrement() {
const tmp = ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _MenuMixin = require('./MenuMixin');
var _Me... |
// Brequire - CommonJS support for the browser
function require(path) {
var module = require.modules[path];
if(!module) {
throw("couldn't find module for: " + path);
}
if(!module.exports) {
module.exports = {};
module.call(module.exports, module, module.exports, require.bind(path));
}
return mod... |
'use strict';
module.exports.handler = (event, context, callback) => {
console.log({
context: context,
event: event,
});
const response = {
statusCode: 200,
headers: {
"Content-Type": "text/plain"
},
body: "User-agent: *\r\nDisallow: /\r\n"
};
callback(null, response);
};
|
function define(name, value) {
Object.defineProperty(exports, name, {
value: value,
enumerable: true
});
}
define("KEYWORD_LEVEL1_WHERE", "where");
define("KEYWORD_LEVEL1_FIELDS", "fields");
define("KEYWORD_LEVEL1_INCLUDE", "include");
define("KEYWORD_LEVEL1_LIMIT", "limit");
define("KEYWO... |
var async = require("async");
var tmp = require('tmp');
var fs = require("fs");
var mqtt = require("mqtt");
var os = require("os");
var SECURE_KEY = __dirname + '/secure/tls-key.pem';
var SECURE_CERT = __dirname + '/secure/tls-cert.pem';
describe("mosca.cli", function() {
var servers = null,
oldDebug = null,
... |
const PlotCard = require('../../plotcard.js');
class LionsOfTheRock extends PlotCard {
setupCardAbilities() {
this.reaction({
when: {
onPhaseStarted: event => event.phase === 'challenge' && !this.controller.cannotGainGold
},
handler: () => {
... |
'use strict';
exports.__esModule = true;
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)) { target[key] = source[key]; } } } return target; };
function _interopR... |
var APIKEY;
APIKEY = "KEY"; |
import {useInlineEditingPageObjects, renderEntry} from 'support/pageObjects';
import {fakeParentWindow} from 'support';
import '@testing-library/jest-dom/extend-expect'
describe('INSERT_CONTENT_ELEMENT message', () => {
useInlineEditingPageObjects();
beforeEach(() => {
fakeParentWindow()
window.parent.pos... |
/**
* Copyright 2015 Telerik AD
*
* 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 ... |
/*
@license
dhtmlxGantt v.4.1.0 Stardard
This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
/*
Translation by Peter Eriksson
*/
gan... |
+function($){"use strict";function t(t){return this.each(function(){var e=$(this),r=e.data("bs.alert");r||e.data("bs.alert",r=new a(this)),"string"==typeof t&&r[t].call(e)})}var e='[data-dismiss="alert"]',a=function(t){$(t).on("click",e,this.close)};a.VERSION="3.2.0",a.prototype.close=function(t){function e(){n.detach(... |
const bar = 1;
console.log(bar);
|
import reqwest from "reqwest";
import Net from "../../../Shared/Net";
module.exports = {
getAgents: function (id) {
return Net.get("/api/Agents/AgentsByEnviroment/" + id);
},
getTemplatedTask: function (id) {
return Net.get("/api/TemplatedTask/" + id);
},
loadTemplatedTasks: func... |
(function() {
this.Project = (function() {
function Project() {
$('ul.clone-options-dropdown a').click(function() {
var url;
if ($(this).hasClass('active')) {
return;
}
$('.active').not($(this)).removeClass('active');
$(this).toggleClass('active');
u... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M22 4H2.01v6c1.1 0 1.99.9 1.99 2s-.89 2-2 2v6h20V4zm-4.27 9.3-8.86 2.36-1.66-2.88.93-.25 1.26.99 2.39-.64-2.4-4.16 1.4-.38 4.01 3.74 2.44-.65c.51-.14 1.04.1... |
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { dropTask } from 'ember-concurrency';
export default class SequenceBlockListComponent extends Component {
@service store;
@tr... |
// load UJS.
require('../UJS-NODE.js');
/*
* build UJS.
*/
RUN(function() {
'use strict';
var
// BASE_CONTENT
BASE_CONTENT = '/*\n\nWelcome to UJS! (http://uppercase.io)\n\n*/\n\n',
//IMPORT: path
path = require('path'),
//IMPORT: uglifyJS
uglifyJS = require('uglify-js'),
// log.
log = function(msg) {... |
/*
Jaw v1.2.3
Bruno Herfst, 2017 - 2018
https://github.com/GitBruno/Jaw
*/
/*
JSON Schema Instantiator
https://github.com/tomarad/JSON-Schema-Instantiator
The MIT License (MIT)
Copyright (c) 2015 Tom Arad
Permission is hereby granted, free of charge, to any person obtaining a copy of th... |
// import validations
var validate = require('./validators');
// export validations for use in other applications
module.exports = validate;
|
@@@@FUNCTION@@@@(0, @@@@VALUE@@@@);
|
/**
* SwfStore - a JavaScript library for cross-domain flash cookies
*
* http://github.com/nfriedly/Javascript-Flash-Cookies
*
* Copyright (c) 2010 by Nathan Friedly - http://nfriedly.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documenta... |
define(function() {
return function(msg) {
document.body.innerHTML += '<p>' + (msg || '') + '</p>';
};
});
|
class Page {
get body() { return browser.element('body'); }
open(path) {
browser.windowHandleSize({
width: 1280,
height: 800
});
browser.url('http://localhost:3000/' + path);
this.body.waitForExist();
}
}
module.exports = Page;
|
// @flow
import API, { APIResponse } from 'util/API';
/**
* API to handle the health status.
*/
export default class HealthAPI extends API {
/**
* Gets the health status.
*
* @returns An object indicating if the process was successful or not.
*/
async get(): Promise<APIResponse> {
const response ... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m19.21 12.04-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.65 0 3-1.35 3-... |
/**
* Verifier process
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This is just an asynchronous implementation of a verifier for a
* signed key, because Node.js's crypto functions are synchronous,
* strangely, considering how everything else is asynchronous.
*
* I wrote this one day hoping it would hel... |
(function( $ ) {
$.fn.jqIf = function(options) {
var Tree = function (elem, options) {
this.options = options || {};
if (elem.length === 1) {
//initialise
this.elem = elem;
this.init();
} else i... |
import Ember from 'ember';
import { moduleForComponent } from 'ember-qunit';
import { test } from 'qunit';
import hbs from 'htmlbars-inline-precompile';
import wait from 'ember-test-helpers/wait';
const { RSVP, Object:EmberObject } = Ember;
const { resolve } = RSVP;
moduleForComponent('curriculum-inventory-sequence-b... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var userSchema = mongoose.Schema({
local: {
email :String,
password :String
},
facebook: {
id :String,
token :String,
email :String,
name :String
},
twitter: {
id :String,
token :String,
displayName :String,
us... |
class List {
constructor(val){
this.val = val;
this.next = null;
this.prev = null;
}
add(val){
if(this.next == null){
let temp = new List(val);
this.next = temp;
temp.prev = this;
} else {
this.next.add(val);
... |
/* eslint camelcase: 0 */
const { assign, get } = require('lodash')
const { buildFormWithStateAndErrors } = require('../../builders')
const { abandonForm } = require('../macros')
function renderAbandon(req, res) {
const proposition = get(res.locals, 'proposition')
const propositionId = get(res.locals, 'propositio... |
if (process.argv.length != 4) {
console.log('server.js [your-module-name] [your-client-id]');
process.exit(1);
}
var express = require('express'),
serveStatic = require('serve-static'),
path = require('path'),
passport = require('passport'),
SsqSignonStrategy = require('passport-ssqsignon').St... |
'use strict';
/**
* Bundle plugin Python config reader module.
* @module readBundlePlugin
*/
var fs = require("fs");
var path = require("path");
var logging = require('./logging');
var execSync = require('child_process').execSync;
var temp = require('temp').track();
var _ = require("lodash");
var parseBundlePlugin... |
'use strict'
function up (knex) {
return knex.schema.createTable('hello_templates', function (t) {
t.uuid('id').primary().defaultsTo(knex.raw('gen_random_uuid()'))
t.timestamps()
})
}
function down (knex) {
return knex.schema.dropTableIfExists('hello_templates')
}
module.exports = {
up,
down
}
|
(function (app) {
var Logger = {
enabled: true
};
Logger.moduleErrorPrinter = (moduleName) => {
if (this.Reading !== undefined) {
return () => { };
}
return (missingService) => {
console.error( 'Missing "${missingService}" service for "${moduleName}... |
'use strict';
module.exports = function() {
this.onResize('removeListeners');
this.onScroll('removeListeners');
this.clear();
};
|
/* @flow */
import React, { PropTypes, Element } from 'react';
import { FormattedMessage } from 'react-intl';
import FormMessages from 'redux-form-validation';
import { messages } from '../../shared/forms';
const FormErrorMessages = (props: Object): Element<any> => (
<FormMessages
tagName="span"
errorCount={... |
/* eslint-env node, mocha */
'use strict';
var verifier = require('../src/index.js');
var assert = require('assert');
describe('verifier', function() {
describe('runSolution', function() {
it('should populate ctx', function() {
var ctx = {};
verifier.runSolution('foo = 1;', ctx);
assert.equ... |
version https://git-lfs.github.com/spec/v1
oid sha256:1a1a37da989b4abc67f5a8d2672b84d7c0927e6dff56886fbde32d1f508f6160
size 49939
|
import { Meteor } from 'meteor/meteor';
import { RocketChat } from 'meteor/rocketchat:lib';
Meteor.startup(() => {
RocketChat.settings.add('Markdown_Parser', 'original', {
type: 'select',
values: [{
key: 'disabled',
i18nLabel: 'Disabled',
}, {
key: 'original',
i18nLabel: 'Original',
}, {
key: '... |
import React from 'react'
import Icon from 'react-icon-base'
const TiPrinter = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.3 8.3v-3.3c0-0.9-0.7-1.7-1.6-1.7h-15c-1 0-1.7 0.8-1.7 1.7v3.3c-2.8 0-5 2.3-5 5v16.7c0 2.8 2.2 5 5 5h18.3c2.8 0 5-2.2 5-5v-16.7c0-2.7-2.2-5-5-5z m-15-1.6h11.7v8.3h... |
/**
* Created by sourabh on 11/8/17.
*/
import React from "react"
import {expect} from "chai"
import {mount,shallow} from "enzyme"
import CardHeader from "../../../../app/Core/Card/CardHeader"
describe('Component : CardHeader',()=>{
const Wrapper = mount(<CardHeader style={{color:'red'}}>hello world</CardHeader... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
Controller.$inject = ['$http', 'qgrid'];
export default function Controller($http, qgrid) {
const src = 'data/people/100.json';
this.model = qgrid.model();
this.selection = [];
this.masterRows = [];
this.detailsRows = [];
this.likes = [];
this.selectionChanged = (e) => {
this.selection = e.state.items;
if... |
import React, { Component } from "react"
import Modal from "react-modal"
import { inject, observer } from "mobx-react"
import AppStyles from "../Theme/AppStyles"
const ESCAPE_KEYSTROKE = "Esc"
const ESCAPE_HINT = "Cancel"
const ENTER_KEYSTROKE = "Enter"
const ENTER_HINT = "Subscribe"
const DIALOG_TITLE = "Add Subscrip... |
import { Meteor } from 'meteor/meteor';
import { _ } from 'meteor/underscore';
import { check, Match } from 'meteor/check';
import { dbCompanies } from '/db/dbCompanies';
import { dbProducts } from '/db/dbProducts';
import { limitSubscription } from '/server/imports/utils/rateLimit';
import { publishTotalCount } from ... |
//#region Copyright, Version, and Description
/*
* Copyright 2015 IdeaBlade, Inc. All Rights Reserved.
* Use, reproduction, distribution, and modification of this code is subject to the terms and
* conditions of the IdeaBlade Breeze license, available at http://www.breezejs.com/license
*
* Author: Ward Bell
* Ve... |
(function(a){a.fn.filterClasses=function(b){"function"===typeof b&&this.each(function(){var c=[].slice.call(this.classList);a(this).attr("class",c.filter(b).join(" "))})}})(jQuery); |
module.exports = function () {
return this.properties({
'a': 'a'
});
}
|
{
"name": "refresher.js",
"url": "https://github.com/evitolins/refresher.js.git"
}
|
module.exports = {
sass: {
includePaths: ['node_modules', 'src']
}
}
|
export default {
items_left: 'Осталась %{smart_count} задача |||| Остались %{smart_count} задачи |||| Осталось %{smart_count} задач',
clear_completed: 'Убрать оконченные'
};
|
/**
* LRU( Least recently used )
*/
import DoubleLinkedList from './DoubleLinkedList';
const LIMIT = 20;
export default class LRUCache {
constructor(sqList, limit = LIMIT){
this.limit = limit;
sqList = (sqList && sqList.length) ? sqList && sqList.slice(0, this.limit) : [];
this.__cache ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.