code stringlengths 2 1.05M |
|---|
/*!
* jQuery resize event - v1.1 - 3/14/2010
* http://benalman.com/projects/jquery-resize-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery resize event
//
// *Version: 1.1, Last updated: 3/14/2010*
//
//... |
import { tab as reducer, initialState } from './tab';
import { init_setup } from './../actions/ActionCreator';
describe('reducer: tab', () => {
it('initial state', () => {
const next = reducer(undefined, {});
expect(next).toBe(initialState);
});
it('action: init_setup', () => {
co... |
import dayjs from "dayjs";
export default function getDayjsFormatter(format) {
return {
formatDate: date => dayjs(date).format(format),
parseDate: str => dayjs(str, format).toDate(),
placeholder: format
};
}
|
/*! cornerstone-wado-image-loader - 2.0.0 - 2017-12-15 | (c) 2016 Chris Hafey | https://github.com/cornerstonejs/cornerstoneWADOImageLoader */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("dicom-parser"));
... |
// The MIT License (MIT)
// Typed.js | Copyright (c) 2014 Matt Boldt | www.mattboldt.com
// 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... |
'use strict';
const express = require('express');
const bot = require('../bot');
const github = require('../github');
const debug = require('debug')('reviewbot:managed');
const router = express.Router();
const config = require('../../config');
const loginRoute = '/login';
const Promise = require('promise');
const _ = r... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n... |
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable @typescript-eslint/no-var-requires */
const { defaults } = require('jest-config');
module.exports = {
testEnvironment: 'node',
setupFiles: [
// needed for UI to mock canvas load
// "jest-canvas-mock"
],
preset: 'ts... |
/*
*
* AsDesigned (0.09) <http://#################.com/>
* by Bernardo Antunes <http://bernardoantunes.com/>
* licensed under MIT <http://opensource.org/licenses/mit-license.php>
*
*/
|
'use strict';
module.exports = {
conditions: [''],
name: 'ThrowStatement',
rules: ['throw Expression_In ;', 'THROW_LF', 'throw Expression_In error'],
handlers: ['$$ = new (require(\'./ast/ThrowStatementNode\'))($2, { loc: this._$, yy })', '$$ = new (require(\'./ast/ThrowStatementNode\'))(null, { loc: this._$, ... |
(function(service) {
var urls = config.urls;
var email = config.email || '';
if (localConfig && localConfig.email) {
email = localConfig.email;
}
// TODO change
var KEYS = ['repo-name', 'star', 'description'];
service.sendEmail = function() {
var trendingValues = this._getTrendingValues(urls.d... |
/** File: event.js
* Candy - Chats are not dead yet.
*
* Authors:
* - Patrick Stadler <patrick.stadler@gmail.com>
* - Michael Weibel <michael.weibel@gmail.com>
*
* Copyright:
* (c) 2011 Amiado Group AG. All rights reserved.
*/
/*global
msos: false,
jQuery: false,
candy: false,
Strophe: f... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// Docusaurus v1 animation, reworked a bit for the Docusaurus v2 migration
// TODO maybe we can use React cod... |
import kue from 'kue';
import url from 'url';
import { take } from 'lodash';
const { REDISCLOUD_URL } = process.env;
let queue = kue.createQueue({
prefix: 'q',
redis: REDISCLOUD_URL
});
export default (hrefs) => {
take(hrefs, 10).map(href => {
queue.create('fetchLink', href).priority('high').removeOnComplet... |
import Ember from 'ember';
import AbstractDrawing from './abstract-drawing';
import Coordinates from './coordinates';
let Line = AbstractDrawing.extend({
type: "line",
ptEnd: null,
curve: 0,
markerStart: null,
markerEnd: "arrow-marker-end",
markerStartColor: null,
markerEndColor: null,
... |
function initSelfEvaluation() {
/*analysisObjects.uiConstants.removeContent();*/
this.createUI();
}
initSelfEvaluation.prototype.createUI = function () {
var teacherId = getTeacherId();
analysisObjects.uiConstants.removeContent();
if (!teacherId) {
//if not logged-in i prompt the logi... |
$(document).ready(function()
{
var $elt = $('.s-pipes');
var $canvas = $elt.find('canvas');
var ctx = $canvas[0].getContext('2d');
function getRandomColor()
{
return 'hsl(120,' + (40 + Math.random() * 20) + '%,' + (60 + Math.random() * 20) + '%)';
}
function drawBackground()
{
if (!ctx)
return;
var... |
'use strict';
/* jasmine specs for filters go here */
describe('filter', function() {
beforeEach(module('projectLatexApp.filters'));
describe('interpolate', function() {
beforeEach(module(function($provide) {
$provide.value('version', 'TEST_VER');
}));
it('should replace VERSION', inject(fun... |
'use strict';
/* jshint -W098 */
angular.module('mean.iso3166').controller('CreateSubdivisionCategoryController', function($scope, $state, countryCode, SubdivisionCategory) {
$scope.countryCode = countryCode;
$scope.subdivisionCategory = SubdivisionCategory.$build();
$scope.subdivisionCategory.alpha3Code... |
/**
* Nibelite V main Javascript
*
* Anatoly 'zmeuka' Matyakh <protopartorg@gmail.com> 2011-10-18
**/
var nlService = 'core';
var nlScreen = 'blank';
var nlNewService = false;
var nlNewScreen = false;
var nlMenuService = '';
var nlScreens = { core: { blank: true } };
var PREFIX = '/nibelite/admin/fcgi';
var nlUs... |
/*
* @file: <%= componentName %> container component of <%= moduleName %> modules; some description for this file
* @author: <%= author %>
* @date: <%= date %>
*/
import { connect } from 'react-redux'
import <%= componentName %> from './components/<%= componentName %>'
const mapStateToProps = (state, ownProps) =>... |
define([
'ext/jquery',
'backbone',
'hbs!templates/work_sessions/end_modal',
'toastr'
], function($, Backbone, Template, toastr) {
return Backbone.View.extend({
events: {
'click [data-action="endWorkSession"]': 'loadAndShow'
},
$modal: null,
getTask: function() {
return ENV.TASK;
... |
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 _objectWithoutProperties(obj, keys) { var target = {... |
const {Scene, Sprite, Group} = spritejs;
const container = document.getElementById('stage');
const scene = new Scene({
container,
width: 1200,
height: 600,
// contextType: '2d',
});
const layer = scene.layer();
(async function () {
const earthPNG = 'https://p3.ssl.qhimg.com/t01806718065fe97c65.png',
eart... |
/**
* System configuration for Angular 2 apps
* Adjust as necessary for your application needs.
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'@angular': 'node_modules/@angular',
'angular2... |
'use strict';
angular.module('users').controller('EditProfileController', ['$scope', '$http', '$location', 'Users', 'Authentication', 'Controlls',
function ($scope, $http, $location, Users, Authentication, Controlls) {
$scope.user = Authentication.user;
// Update a user profile
$scope.updateUserProfile ... |
/**
* Created by PC on 9/23/2016.
*/
angular.module('myApp')
.config(function ($stateProvider) {
$stateProvider.state('managerCategories', {
url: '/categories',
parent: 'admin',
views: {
'content@': {
templateUrl: 'src/scripts/admin/m... |
class ErrorHandler {
constructor(){}
internalServerError(err, req, res, next) {
//TODO: Add more error handling filtering
res.status(500);
res.send({
error: res.error,
explanation: err
});
}
}
module.exports = ErrorHandler;
|
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.layout.GridData.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/LayoutData', './library'],
f... |
var should = require('should');
var stepTwo = require('../lib/stepTwo');
function testGroup(word){
describe('Step 2 Tests for ' + word.word, function () {
var result = {};
before(function () {
result = stepTwo(word.word);
});
it(word.word + ' should be ' + word.expected,... |
import LaneActions from '../actions/LaneActions';
export default class LaneStore {
constructor() {
this.bindActions(LaneActions);
this.lanes = [];
}
create(lane) {
// If `notes` aren't provided for some reason,
// default to an empty array.
lane.notes = lane.notes || [];
this.setState({... |
'use strict';
const Promise = require('bluebird');
const Order = require('./../models').Order;
const Order_User = require('./../models').Order_User;
class Server {
constructor() {}
create (obj) {
console.log('create...');
return Order.create(obj, {
raw: true
}).get('data... |
class UserSettingsController{
constructor($scope, $state,$stateParams,$window,$http,SettingServiceService,CustomerService){
'ngInject';
this.SettingService = SettingServiceService
this.CustomerService = CustomerService
var self = this
self.fulltime_job_salary = ""
sel... |
'use strict';
var FunctionalError = require('@arpinum/backend').FunctionalError;
var AuthenticationValidator = require('../AuthenticationValidator');
module.exports = function (repositories, buses) {
return function (command) {
return new AuthenticationValidator(repositories).validate(command).then(function (va... |
// All symbols in the Limbu block as per Unicode v5.0.0:
[
'\u1900',
'\u1901',
'\u1902',
'\u1903',
'\u1904',
'\u1905',
'\u1906',
'\u1907',
'\u1908',
'\u1909',
'\u190A',
'\u190B',
'\u190C',
'\u190D',
'\u190E',
'\u190F',
'\u1910',
'\u1911',
'\u1912',
'\u1913',
'\u1914',
'\u1915',
'\u1916',
'\u1917... |
app.controller('certificationsCtrl', ['$scope', 'tmdb', function($scope, tmdb) {
$scope.dataLoaded = true;
$scope.loadMovieCertifications = function() {
$scope.dataLoaded = false;
tmdb.getMovieCertifications()
.then(function(res) {
$scope.dataLoaded = true;
if (res.data) {
... |
// Приводит число к строке и позволяет добавить в начало нули, чтобы получить
// желаемое количество регистров.
/* Пример использования
*
* console.log( (1).format(3) ); // 001
* console.log( (999).format(1) ); // 999
*
*/
Object.defineProperty( Number.prototype, 'format', {
value: function (length) {
... |
'use strict';
module.exports = {
db: 'mongodb://localhost/bier-cell-dev',
app: {
title: 'Bier Cell - Development Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || '338444789685538',
clientSecret: process.env.FACEBOOK_SECRET || '4ea280934693242705bbee648714e7e7',
callbackURL: '/auth/facebook/... |
/**
*
* AVIONIC
* Propelling World-class Cross-platform Hybrid Applications ✈
*
* Copyright 2015 Reedia Limited. All rights reserved.
*
* 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 w... |
"use strict";
var marqueObj = (function () {
function marqueObj() {
}
return marqueObj;
}());
exports.marqueObj = marqueObj;
//# sourceMappingURL=marque.js.map |
Template.message.helpers({
own: function() {
var ref;
if (((ref = this.u) != null ? ref._id : void 0) === Meteor.userId()) {
return true;
} else {
return false;
}
},
time: function() {
return moment(this.ts).format('LT');
},
date: funct... |
describe("SickJs", function() {
it("has works", function() {
expect(true).toBeTruthy();
});
});
|
describe('adding custom routes', function() {
describe('route with the :id param', function() {
it('should have the doc in the request', function() {
// create em router and add custom route with :id and intercept()
var router = em(Model, {});
router.get('/:id/test', r... |
var arr = ['Canada', 'San Francisco', 'Portland Oregon'];
arr.unshift();
arr.unshift();
arr.push('Japan');
arr.push('Sweden');
arr.push('Norway');
arr.pop(); |
var gulp = require('gulp');
var shell = require('gulp-shell');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var babel = require('gulp-babel');
/**
* Run jasmine tests.
*/
gulp.task('test', shell.task('karma start karma.conf.js'));
/**
* Run a single run jasmine test.
*/
gulp.t... |
{
lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;
lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;
lib$es6$promise$asap$$len += 2;
if (lib$es6$promise$asap$$len === 2) {
if (lib$es6$promise$asap$$customSchedulerFn) {
lib$es6$promise$asap$$customSchedulerFn(lib$es6$... |
var WebSocketServer = require('ws').Server;
function WebRtcServer() {
var wss,
registerSockets = {},
rooms = {},
getCurrentRoom = function (id) {
for (var room in rooms) {
var members = rooms[room];
for (var i = 0; i < members.length; i++) {
... |
var express = require('express');
var morgan = require('morgan');
var bodyParser = require('body-parser');
var methodOverride = require('method-override');
var app = express();
var routes = require('./routes');
app.use(express.static(__dirname + '/public'));
// morgan
app.use(mor... |
var casper = require('casper').create({
//verbose: true,
//logLevel: "debug",
userAgent: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
}).on("remote.message", function(msg) {
this.echo('console.log> ' + msg);
});
var data = {
usernam... |
/*
* Very basic view test.
*/
/*@include util-buffer.js@*/
/*===
basic view test
[object ArrayBuffer]
16
00000000000000000000000000000000
0000000000aa00005500000000000000
undefined -86 0 0 undefined
true true
true true
0000000000c1c2c35500000000000000
-4
0000000000c1c2c3fc00000000000000
===*/
// - The given byte... |
window.React = require('react');
window.createReactClass = require('create-react-class');
window.React.createClass = window.createReactClass;
var { PropTypes } = require('prop-types');
window.React.PropTypes = PropTypes;
window.__registerComponent = function(name,c) {
var { doRegister } = require('./register');
... |
/*!
* iScroll Lite base on iScroll v4.1.6 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
* Released under MIT license, http://cubiq.org/license
*/
(function(){
var m = Math,
mround = function (r) { return r >> 0; },
vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' :
(/firefox/i).test(navigator... |
$('.datepicker').pickadate({
selectMonths: true,
selectYears: 1,
min: new Date()
});
$('#from_date').change(() => {
$('#to_date').pickadate('picker').set('min', new Date(this.value));
});
$('.timepicker').pickatime({
autoclose: false,
twelvehour: true,
default: '12:00:00'
});
$('#eventDel... |
"use strict";
exports.YAHOO_API_URL = 'https://query.yahooapis.com/v1/public/yql';
exports.SUPPORT_CURRENCY = ['USD','EUR','JPY','AUD','GBP','NZD','CHF','ZAR','CNY','CAD','BTC'];
exports.OPT_TIMEOUT_SEC = 30;
|
import { combineReducers } from 'redux'
import topList from './top-list.reducer';
const reducers = combineReducers({
topList
});
export default reducers;
|
'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');
describe('generator-men-api:route', () => {
beforeAll(() => {
return helpers.run(path.join(__dirname, '../generators/route'))
.withPrompts({someAnswer: true});
});
it('creates files',... |
/*
MIT License
Copyright (c) 2016-2018 Pierre-Yves Lapersonne (Mail: dev@pylapersonne.info)
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 rig... |
const assert = require('chai').assert
const path = require('path')
module.exports = [
{
description: 'should properly load config',
expected: function (config) {
assert.equal(config.path, path.resolve(__dirname, '.makorc'))
}
},
{
description: 'should not set a root automatically',
exp... |
function ConvertToStandart(str){
str=str.replace("%2F","/");
str=str.replace("%2C",",");
str=str.replace("%3F","?");
str=str.replace("%60","`");
str=str.replace("%7E","~");
str=str.replace("%21","!");
str=str.replace("%23","#");
str=str.replace("%24","$");
str=str.replace("%25","%");
str=s... |
import Vue from 'vue'
import Base from './Base.vue'
/**
* Description InputText
*/
export default Vue.extend({
name: 'InputText',
extends: Base,
props: ['placeholder'],
template: `<div>
<!--How to include the question here???-->
<input :placeholder="placeholder" />
</div>`
})
|
export const fsa = type => () => ({ type });
export const fsaPayload = type => payload => ({
type,
payload
});
|
import React from 'react';
import MapViewRender from './MapViewRender';
import SamosaSearchAPI from '../../api/samosaSearchAPI';
class SimpleMap extends React.Component {
constructor(props){
super(props);
this.state={
lat: SamosaSearchAPI.defaultLocation.lat,
lon: SamosaSear... |
'use strict';
// Import required libraroes
var pg = require('pg');
var _ = require('lodash');
var async = require('async');
var elasticsearch = require('elasticsearch');
var conString = 'postgres://'+process.env.POSTGRES_USER+':'+process.env.POSTGRES_PASSWORD+'@'+process.env.POSTGRES_SERVER+'/catalogo';
var clientEl... |
(function( $ ) {
$.widget("smartclassroom.wizard", {
version: "1.0.0",
options: {
stepper: true,
stepperType: 'default',
locale: $.Metro.currentLocale,
finishStep: 'default',
buttons: {
cancel: true,
help: ... |
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import clsx from 'clsx';
import isValueSelected from './isValueSelected';
import { withStyles } from '@material-ui/core/styles';
export const styles = theme => ({
/* Styles applied to the root element. */
root: {
back... |
'use strict';
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils'
import Lightbox from '../lib';
import BodyPortal from '../lib/components/BodyPortal';
import { dummyData } from './utils/defaultImageData';
describe("Lightbox component", function() {
var lightbox;
beforeEach(function() {
... |
import uuid from '../../../src/uuid';
import {EXPECT_UUID_MATCHING, prepOneUserInOneRoomWithOneStory} from '../../unit/testUtils';
test('Should produce storyRestored event', async () => {
const {userId, processor, roomId, storyId, mockRoomsStore} =
await prepOneUserInOneRoomWithOneStory();
const commandId = uu... |
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
define(['./../../../../models/DocumentVersion'], function(BaseDocumentVersion) {
return BaseDocumentVersion.extend({
})
});
|
module.exports = require('./lib/iamport');
|
(function(ns, $) {
"use strict";
var has = Object.prototype.hasOwnProperty;
var CriteriaMatcher = function(matchType, sourceProperty, matchAgainst) {
this.sourceProperty = sourceProperty;
this.matcher = {
like: function(source) {
return source.toLowerCase().ind... |
// # Quintus Touch and Drag Example
//
// [Run the example](../examples/touch/index.html)
//
// This example creates a number of random convex shapes
// and then adds touch and drag support to them.
window.addEventListener('load',function(e) {
// Set up a standard Quintus instance with only the
// Sprites and S... |
'use strict';
const tryPackageJson = require('./util/tryPackageJson');
function detectStandardLint(dir, loadPackageJson) {
return tryPackageJson(loadPackageJson, ['devDependencies.standard', 'standard']);
}
module.exports = detectStandardLint;
|
var path = require('path');
module.exports = {
devtool: 'source-map',
entry: './workshops/04_directives_forms_components/index.js',
output: {
filename: 'bookstore.js',
path: path.join(__dirname, './workshops/04_directives_forms_components/')
},
module: {
loaders: [
{
test: /\.js$/,
... |
'use strict';
var app = require('../../../app');
var request = require('supertest');
var assert = require('assert');
var uuid = require('node-uuid');
var db = require('../../../components/database');
var bcrypt = require('bcrypt');
var settings = require('../../../config/environment');
db.initialize('couchdb');
var us... |
export {StatisticsContainer, VariantContainer} from './variants';
export {default as VCFCollapsedRenderer} from './vcfRenderer'; |
// @flow
import { FETCH_RUNSTATE_SUCCESS } from '../actions';
type actionType = {
+type: string,
data?: Object
};
const INITAIL_STATE = {
};
export default function runstate(state: Object = INITAIL_STATE, action: actionType) {
switch (action.type) {
case FETCH_RUNSTATE_SUCCESS:
return { ...state, ...... |
(function () {
var canvas = document.getElementById('canvas'),
ctx = canvas.getContext('2d'),
drawHouseButton = document.getElementById('drawHouse'),
drawBicycleButton = document.getElementById('drawBicycle'),
drawPersonButton = document.getElementById('drawPerson');
drawHouseBu... |
/**
* New Relic agent configuration.
*
* See lib/config.defaults.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
exports.config = {
/**
* Array of application names.
*/
app_name : ['Valet.io Site API'],
/**
* Your New Relic lic... |
import m from "mithril"
import { Icon } from '../elements/icon.js'
export const CardImage = {
view: (vnode) =>
m('card-image',
m('figure.image', {class: 'is-' + vnode.attrs.ratio},
m('img', {src: vnode.attrs.src})
)
)
}
export const CardHeader = ... |
'use strict';
var
// Pull in any args that may have been passed in.
args = require('./args'),
// Pull in our calculator lib.
calculator = require('./calculator'),
// Determine teh difference between the two dates.
result = calculator(args[0], args[1]);
// Expose to node.
module.exports = res... |
const MAX_RAND = 500;
const MIN_RAND = 0;
function generateNumber() {
return Math.floor(Math.random() * (MAX_RAND - MIN_RAND)) + MIN_RAND;
}
function computePublic(number1, power, number2) {
var number1 = new BigNumber(""+number1);
var power = new BigNumber(""+power);
var number2 = new BigNumber(""+number2);
... |
import jasmineEnzyme from 'jasmine-enzyme';
import { shallow } from 'enzyme';
import React from 'react';
import AddEditExerciseFormContainer from '../AddEditExerciseFormContainer';
describe('<AddEditExerciseFormContainer />', () => {
beforeEach(() => {
jasmineEnzyme();
});
it('exists', () => {
const wr... |
var ZeetoVal = require("validate.js");
ZeetoVal.validators.zipcodeUS = function(value, options, key, attributes) {
var regexp = new RegExp(/^\d{5}(?:[- ]?\d{4})?$/);
return (regexp.test(value)) ? null: 'is not a valid US Zipcode';
};
module.exports = ZeetoVal;
var IZ = {
zipcodeUS: function(options) {
v... |
(function () {
'use strict';
registerModule('users');
registerModule('users.directives');
registerModule('users.routes', ['ui.router']);
registerModule('users.services');
}()); |
(function(angular) {
angular.module('manageAdmin',[
'ui.bootstrap',
'bathwaterApp.services',
'addAdminModal',
'deleteAdminModal'
]);
})(window.angular); |
const { Application } = require('../');
const { autoDetectRenderer } = require('@pixi/canvas-renderer');
const { Container, DisplayObject } = require('@pixi/display');
const { skipHello } = require('@pixi/utils');
skipHello();
// Use fallback if no webgl
Application.prototype.createRenderer = autoDetectRenderer;
des... |
import path from 'path'
import Koa from 'koa'
import serve from 'koa-static'
import views from 'koa-views'
import mount from 'koa-mount'
import convert from 'koa-convert'
import parser from 'koa-better-body'
import onerror from 'koa-onerror'
import mongoose from 'mongoose'
import fileCfg from '../asset/file'
import... |
Package.describe({
name: 'thomasvanlankveld:simeon',
version: '0.1.1',
summary: 'Access control for isomorphic javascript applications',
git: 'https://github.com/thomasvanlankveld/simeon',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.1');
api.use([
'ecmascript',
... |
import topics from './topics';
import articles from './articles';
import users from './users';
export { topics, users, articles };
export default {
topics,
users,
articles
};
|
import React from 'react';
import _ from 'lodash';
import { Button, notification } from 'antd';
export default function cmdSuccessNotification(args, showCmdDialog) {
// const { args } = this.props.rekitCmds.execCmdResult;
const notificationKey = 'cmd_success';
const btnClick = () => {
notification.close(not... |
/* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法
import '../Common/css/Steps.css';
import '../Common/css/Step.css';
export default class Steps extends Component {
static defaultProps = {
direction: 'ho... |
#!/usr/bin/env node
const fs = require('fs');
const filterFiles = (fileList) => {
let allFiles = [];
for (let file of fileList) {
if ((file.includes('file') || file.includes('File') || file.includes('FILE')) && !file.includes('profile')) {
allFiles.push(file);
}
}
allFiles.sort();
return allFi... |
import Vue from 'vue';
import Camera from './camera';
import FaceAPI from './faceapi';
/*
* This needs to be done so that the styles get compiled.
* Normally I'd use more components, more layouts, etc. and with this you could
* very well separate concerns. It's somewhat useless here.
*/
import styles from '../scss... |
// Update with your config settings.
module.exports = {
development: {
client: 'sqlite3',
connection: {
filename: './dev.sqlite3'
}
},
staging: {
client: 'postgresql',
connection: {
database: 'my_db',
user: 'username',
password: 'password'
},
pool: {
... |
var AppDispatcher = require('../dispacher/app');
var events = require('../constants/events');
var actions = {
updateText: function(data) {
//console.log('action updateText', data);
AppDispatcher.dispatch({
code: events.UPDATE_TEXT,
data: data
});
}
};
module.exports = actions;
|
/* ===================================================
* bootstrap-transition.js v2.3.2
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... |
var createPattern = function(path) {
return {pattern: path, included: true, served: true, watched: false};
};
var initQUnit = function(files) {
files.unshift(createPattern(__dirname + '/adapter.js'));
files.unshift(createPattern(__dirname + '/qunit.js'));
};
initQUnit.$inject = ['config.files'];
module.exports... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./fileFormat"));
//# sourceMappingURL=index.js.map |
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import { belongsTo, hasMany } from 'ember-data/relationships';
export default Model.extend({
userId: attr('number'),
displayName: attr('string'),
name: attr('string'),
uri: attr('string'),
created: attr('isodate'),
updated: attr('iso... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.