code stringlengths 2 1.05M |
|---|
const crypto = require('crypto');
const assert = require('assert');
const fs = require('fs');
const path = require('path');
function _createDir(dir) {
try {
if(fs.statSync(dir).isDirectory()) return;
} catch(e) { }
const parentDir = path.dirname(dir);
_createDir(parentDir);
fs.mkdirSync(dir);
}
class C... |
'use strict';
laPoizWindApp.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('main', {
url: '/',
templateUrl: 'views/list.html',
controller: 'ListCtrl'
})
.state('detail', {
url: '/detail/:idSpot',
templ... |
var {CGroup, cUnlabelledMember, CSelect, ccase, CNameSpace, CNamed, CTime, CFixedTable, crow} = require("opencpq");
/*
* Scheduling of repetitive tasks during a week
*/
var days_of_week = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var weekdayIndex = {};
days_of_week.forEach((d, ... |
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Button from 'react-bootstrap/lib/Button';
import Col from 'react-bootstrap/lib/Col';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Form from 'react-bootstrap/lib/Form';
import FormControl from 'react... |
module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load plugins
require('load-grunt-tasks')(grunt);
grunt.initConfig({
// Project configuration.
pkg: grunt.file.readJSON('package.json'),
// Compiles our LESS
less: {
options: {
... |
import SevenHour from '../lib/Seven-Hour.js';
import { shallow, mount } from 'enzyme';
import React from 'react';
describe('SevenHour functionality', () => {
const obj = {
condition: 'rainy',
temp: { english: '82', metric: '28' },
FCTTIME: { civil: '6:00 PM' },
icon_url: 'http://icons.wxug.com/i/c/k/... |
/**
* This script is part of the GeoTag-X theme.
* It contains the implementation of the URL input component.
*
* Author: Jeremy Othieno (j.othieno@gmail.com)
*
* Copyright (c) 2016 UNITAR/UNOSAT
*
* The MIT License (MIT)
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this... |
/**
* Flow subclass responsible for proper display of general files. Basically
* loading file content into a pre tag. Most other flow classes inherit from
* this.
*/
define(["dojo/_base/declare", "lodash", "./BinaryView", "../simpleMatcher",
"dojo/text!./templates/PEView.html"],
function(declare, _,... |
(function () {
'use strict';
angular
.module('app')
.factory('querying', querying);
querying.$inject = ['$http'];
function querying($http) {
var api = {
getListaDeAnimales: getListaDeAnimales,
getListaDeSucursales: getListaDeSucursales,
get... |
Session.setDefault('emailId', false);
Session.setDefault('label', false);
function startupApp() {
svgLocalstorage('/images/sprite.svg', '0.1.1');
}
function formatDate(date) {
const sd = date.toDateString().split(' ');
return `${sd[2]} ${sd[1]}`;
}
function lowerCase(s) {
return s.toLowerCase();
}
function getI... |
import FilteredSearchContainer from './container';
class FilteredSearchVisualTokens {
static getLastVisualTokenBeforeInput() {
const inputLi = FilteredSearchContainer.container.querySelector('.input-token');
const lastVisualToken = inputLi && inputLi.previousElementSibling;
return {
lastVisualToke... |
//--- Datatables
//= require datatables/media/js/jquery.dataTables.min
//= require datatables-colvis/js/dataTables.colVis
//= require datatables/media/js/dataTables.bootstrap
|
var extend = require('node.extend'),
sub = require('./utils/sub'),
makeMethod = require('./utils/make-method'),
makeClient = require('./utils/make-client');
function Client(cfg) {
extend(this, cfg);
this.defaultRequestOptions = this.defaultRequestOptions || {};
}
extend(Client, {
method: makeM... |
// flow-typed signature: e4bd325f6a1cfd67100181d3993359ae
// flow-typed version: <<STUB>>/rollup-plugin-commonjs_v^8.2.0/flow_v0.54.0
/**
* This is an autogenerated libdef stub for:
*
* 'rollup-plugin-commonjs'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to s... |
'use strict';
var path = require('path');
var rootPath = path.normalize(__dirname + '/../../..');
module.exports = {
root: rootPath,
port: process.env.PORT || 3000,
hostname: process.env.HOST || process.env.HOSTNAME,
db: process.env.MONGOHQ_URL,
templateEngine: 'swig',
// The secret should be set to a non-g... |
"use strict";
tfb.directive('defaultImage', function () {
return {
link: function (scope, element, attrs) {
if (!attrs.ngSrc) {
element.attr('src', '//placehold.it/' + attrs.defaultImage + '/1a8bcd/ffffff');
// log.warn("Image: a placeholder image has been applied"... |
import { ifNumElse } from './util/index'
import Rect from './rect'
/**
* Posture is the model of the information about how the Body is placed and arranged to its position.
*
* @class
*/
export default class Posture {
/**
* @param {Number} [width=100] The width
* @param {Number} [height=100] The height
*... |
(function() {
if (typeof(sexy) === 'undefined') {
sexy = {};
}
if (typeof(exports) !== 'undefined') {
sexy.parser = new (require('./parser').Parser);
} else {
sexy.parser = new sexy.Parser();
exports = sexy;
}
exports.args = function(argumentDescriptions, defaults, callback) {
if (!argumentDescript... |
// import React from 'react';
// import { shallow } from 'enzyme';
// import NewHintForm from '../index';
describe('<NewHintForm />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
|
"use strict";
/**
* @license
* Copyright 2018 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... |
'use strict';
var gulp = require('gulp');
var async = require('async');
var template = require('gulp-template');
var scaffolds = require('./scaffolds');
/**
* Generate a single "target"
*/
gulp.task('one', function(cb) {
async.each(scaffolds.one.files, function(file, next) {
gulp.src(file.src)
.pipe(te... |
const mongoose = require('mongoose');
const ObjectId = mongoose.Schema.Types.ObjectId;
const GroupSchema = mongoose.Schema({
name : String,
creator : {type: ObjectId, ref: 'Admin'},
create_time: {type: Date, default: Date.now}
});
module.exports = mongoose.model('Group', GroupSchema);
|
angular.module('jumplink.cms.content', [
'mgcrea.ngStrap',
'angular-medium-editor',
'ui.ace',
'sails.io',
'jumplink.cms.sortable',
'ngFocus',
'jumplink.cms.utilities',
])
.service('ContentService', function ($rootScope, $log, $sailsSocket, $filter, $modal, $download, JLSailsService, SortableService, Utili... |
module.exports = {
run: function(creep) {
if (creep.memory.working == true && creep.carry.energy == 0) {
creep.memory.working = false;
}
else if (creep.memory.working == false && creep.carry.energy == creep.carryCapacity) {
creep.memory.working = true;
}
... |
define({
"name": "seguir",
"version": "0.1.7",
"description": "Social network backend",
"sampleUrl": false,
"apidoc": "0.2.0",
"generator": {
"name": "apidoc",
"time": "2015-02-05T05:57:00.415Z",
"url": "http://apidocjs.com",
"version": "0.12.1"
}
}); |
/*
* grunt-js-modularize
* https://github.com/owilliams/grunt-js-modularize
*
* Copyright (c) 2013 Owain Williams
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'ta... |
// Generated by CoffeeScript 1.7.1
(function() {
(function($) {
return $.fn.extend({
survey: function() {
var display_question, down, form, i, next, questionContainer, questions, submit, survey, up;
survey = $('<div>', {
"class": 'survey-wrapper'
});
questionContain... |
export default class BeanService {
constructor($resource) {
return $resource('http://localhost:8000/api/beans/:id', {
id: '@id'
}, {
update: {
method: 'PUT'
}
});
}
static activate($resource){
BeanService.instance = new BeanService($resource);
return BeanService.ins... |
var express = require('express');
var app=express();
app.get('/',function (req,res,next){
res.send('hello world');
})
app.listen(3000,function(){
console.log('started')
})
|
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var extend = require('node.extend');
/**
* Based on:
* http://www.regnumelectronic.com/Docs/PID.pdf (Standard Independent Type C)
*/
function PIDController(options)
{
// Options configuration
... |
export function splitObject (obj,list){
const left = {};
const right = {};
Object.keys(obj).forEach((m)=>{
if(list.indexOf(m) !== -1){
left[m] = obj[m];
}else{
right[m] =obj[m];
}
});
return [left,right];
} |
/* */
"format global";
"use strict";
module.exports = require("./_strict")(require("./common")); |
/*jslint node: true */
'use strict';
var lintlovin = require('lintlovin');
// A live-reloaded node-sass compiling live-reloading development server on top of Lintlovin
// Folders:
// js/ – the frontend js
// css/ – the compiled frontend css
// example/ – the example HTML to use with the built in de... |
define([
'expect',
'views/base/view',
'views/base/collection'
], function(expect, View, CollectionView) {
'use strict';
describe('CollectionView', function() {
describe('#getTemplateFunction()', function() {
it('should be the same as in View', function() {
expect(CollectionView.prototype... |
/**
* Created by BHOU on 6/20/14.
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = mongoose.Schema.Types.ObjectId;
var passport = require('passport');
var bcrypt = require('bcrypt');
var Application = new Schema({
token: {type: ObjectId, required: true},
samlId: {type: String... |
/**
* Individual assemble tasks
* @see https://github.com/assemble/grunt-assemble
*/
module.exports = function(config) {
return {
options: {
layout: 'base.hbs',
layoutdir: config.project.source[1].templates + 'layouts/',
partials: config.project.source[1].templates + '... |
const jsonDB = require('node-json-db');
const db = new jsonDB("MyDatabase", true, false);
function isUserKnown(senderId) {
try {
db.getData('/users/' + senderId);
return true;
} catch(error) {
return false;
}
}
function addUser(senderId, userData) {
db.push('/users/' + senderId, userData)
}
funct... |
/*
* JavaScript to inject Table for RFID items
* connects to rfid hub with Websocket
* creates <div> with <table>
* inserts table to #patronlists and adds highlighted items as they arrive from websocket
*/
$(document).ready(function() {
var ws=new WebSocket('ws://localhost:8899/ws');
ws.onopen = function() {
... |
(function(){
angular
.module('users')
.controller('UserController', [
'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q', '$rootScope',
UserController
]);
/**
* Main Controller for the Angular Material Starter App
* @param $scope
* @param $mdSidenav
* ... |
/** Render-stage used for generating a buffer of normals for use in the SSAO post-process */
var PositionBufferRenderStage = RenderStage.extend({
init: function(size) {
this._super();
this.size = 2048;
if (size)
this.size = size
this.target = false;
},
onStart: function(context, engine) {
this.target... |
const { execSync } = require('child_process');
const DOCKER_HOST = '172.17.0.1';
const CONTAINER = {
REDIS: 'openpaas-redis',
MONGODB: 'openpaas-mongodb',
ELASTICSEARCH: 'openpaas-elasticsearch',
RABBITMQ: 'openpaas-rabbitmq',
SABRE: 'openpaas-sabre'
};
function start() {
const creators = {
[CONTAINER... |
var clinicaMed = angular.module('clinicaMed');
clinicaMed.controller('ativarUsuarioController',
['$rootScope', '$scope', '$state', '$timeout', 'jQuery', 'ativarUsuarioService',
function ($rootScope, $scope, $state, $timeout, $, ativarUsuarioService) {
$scope.$on('USUARIO_ATIVADO', function () ... |
'use strict'
var mongoose = require('mongoose');
var Badges = new mongoose.Schema({
Class: {type: Number, required: true},
Date: {type: String, required: true},
Name: {type: String, required: true},
TagBased: {type: String, required: true},
UserId: {type: Number, ref: "Users", required: true},
_id: {type:... |
import '../../../test/unit-test-support/setup-test-dom';
import { expect } from 'chai';
import React from 'react';
import ReactDOM from 'react-dom';
import Loading from './Loading';
let element;
describe('Component:Loading', function() {
beforeEach(() => {
document.body.innerHTML = '<div id="app"></div>';
... |
'use strict';
import ArticleList from './ArticleList';
import React from 'react';
import { Link } from 'react-router';
import agent from '../agent';
import { connect } from 'react-redux';
const EditProfileSettings = props => {
if (props.isUser) {
return (
<Link
to="settings"
className="btn... |
import Backbone from 'backbone';
import CONST from '../const';
export default Backbone.Model.extend({
idAttribute: '_id',
urlRoot: `${CONST.apiPath}/nonOsmData`,
defaults() {
return {
creationDate: new Date().toISOString(),
modificationDate: new Date().toISOString(),
osmId: undefined,
... |
define([
"../core",
"../var/rnotwhite",
"./accepts"
], function (jQuery, rnotwhite) {
function Data() {
// Support: Android<4,
// Old WebKit does not have Object.preventExtensions/freeze method,
// return new empty object instead with no [[set]] accessor
Object.defineProperty(this.cache = {}, ... |
define(["./CylinderGeometry-8130901e","./when-54c2dc71","./GeometryOffsetAttribute-d889f085","./Check-6c0211bc","./Transforms-e9dbfb40","./Cartesian2-49b1de22","./Math-44e92d6b","./RuntimeError-2109023a","./ComponentDatatype-6d99a1ee","./WebGLConstants-76bb35d1","./CylinderGeometryLibrary-1588303c","./GeometryAttribute... |
"use strict";
/**
* controller methods for the /users endpoints
*/
const
log = require('../lib/logger')(),
schema = require('../../config/swagger-api-v2.1.6.json'),
config = require('../../config/config'),
users = require('../models/users.model'),
validator = require('../lib/validator');
/**
... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;
var groupSchema = new Schema({
name: { type: String },
uniqueName: { type: String, required: true, index: { unique: true } },
pubs: [ { type: ObjectId, ref: 'Pub' } ],
image: { type: String },
users:... |
/*! Buefy v0.9.6 | MIT License | github.com/buefy/buefy */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.Loading = {}));
}(this, fu... |
/*!
* Author : Matteo Bruni - https://www.matteobruni.it
* MIT license: https://opensource.org/licenses/MIT
* Demo / Generator : https://particles.matteobruni.it/
* GitHub : https://www.github.com/matteobruni/tsparticles
* How to use? : Check the GitHub README
* v1.18.0-alpha.2
*/
(function webpackUniversalModul... |
/**
* Created by yabana on 2015/04/06.
*/
'use strict';
var UNIVERSALVIEWER = UNIVERSALVIEWER || {};
UNIVERSALVIEWER.Directive = UNIVERSALVIEWER.Directive || {};
UNIVERSALVIEWER.Directive.Common = UNIVERSALVIEWER.Directive.Common || {};
UNIVERSALVIEWER.Directive.Common.app.directive('uvDisableAnimate', ['$... |
'use strict';
angular.module('core').controller('HeaderController', ['$scope', 'Authentication', 'Menus',
function($scope, Authentication, Menus) {
$scope.authentication = Authentication;
console.log($scope.authentication.user);
$scope.isCollapsed = false;
$scope.menu = Menus.getMenu('topbar');
$scope.tog... |
export const allContinents = [
"Africa",
"Asia",
"Europe",
"Oceania",
"Americas"
];
export const allGameModes = [
"Flags",
"Capitals",
"Maps",
"Trivia",
"Borders",
"Populations"
];
export const allDifficulties = ["Basic", "Medium", "Tough", "Master Level"];
export const BASE_URL =
process.env.NO... |
'use strict';
const Node = require('../Node');
class StrictIn extends Node
{
constructor(needle, haystack)
{
super();
this.needle = needle;
this.haystack = haystack;
}
childNodes()
{
return [this.needle].concat(this.haystack);
}
}
module.exports = StrictIn;
|
/**
* Selfbits API V2
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 2.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the cl... |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
import '@ciscospark/plugin-phone';
import {assert} from '@ciscospark/test-helper-chai';
import CiscoSpark from '@ciscospark/spark-core';
import testUsers from '@ciscospark/test-helper-test-users';
import sinon from '@ciscospark/test-helper-sinon... |
/**
* @_name b
*/
/**
* @_name a
*/ |
function ApplicationWindow() {
//declare module dependencies
var MasterView = require('ui/common/MasterView'),
DetailView = require('ui/common/DetailView');
//create object instance
var self = Ti.UI.createWindow({
backgroundColor:'#ffffff'
});
//construct UI
var masterView = new MasterView(),
detailV... |
import * as React from 'react';
import {px2rem} from '@bizfe/biz-mobile-ui/build/util/util';
import {
Button,
CircleProgress,
colors,
} from '@bizfe/biz-mobile-ui';
const styles = {
progress: {
width: '90%',
margin: '20px auto 0',
},
circle: {
display: 'inline-block'
... |
import React from 'react'
export default class StatusBar extends React.Component {
constructor(...args) {
super(...args);
this.appStore = this.props.context.appStore;
this.state = {
sortState: this.appStore.getSortState()
};
}
_onChange(){
this.setState({
files: this.fileStore.ge... |
import { Observable } from "rxjs/Observable";
import { browserHistory } from 'react-router'
import _ from "lodash";
import Login from './Login';
import * as UserService from "../../service/user-service";
import * as Utils from "../../service/utils";
const funcs = {
goToHome: () => browserHistory.push("/")
}
export... |
//! moment.js locale configuration
//! locale : Montenegrin [me]
//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
... |
const Router = require('express').Router;
const Trail = require(__dirname + '/../models/trail');
const bodyParser = require('body-parser').json();
const trailRouter = module.exports = new Router();
const jwtAuth = require(__dirname + '/../lib/jwt_auth');
const errorHandler = require(__dirname + '/../lib/db_error_handle... |
import {
isArray,
} from 'lodash';
function fkRound(number, fraction = 4) {
let result = number;
for (let i = 0; i < fraction; i++) {
result *= 10;
}
result = Math.round(result);
for (let i = 0; i < fraction; i++) {
result /= 10;
}
return result;
}
function fkRoundArray(array, fraction = 4... |
'use strict';
module.exports = {
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.PORT || 'localhost') + '/fun-congress',
assets: {
lib: {
css: [
'public/lib/angular-material/angular-material.min.css',
],
js: [
'public/lib/angular/angular.min.js',
... |
"use strict";
// ---------------------------------------------------------------------------
const liqui = require ('./liqui.js')
const { ExchangeError, InsufficientFunds, OrderNotFound, DDoSProtection } = require ('./base/errors')
// ---------------------------------------------------------------------------
modul... |
var searchData=
[
['uom',['UOM',['../class_point85_1_1_caliper_1_1_unit_of_measure_1_1_quantity.html#aaab6dff19bb9ba1078a4bae37ce4f350',1,'Point85::Caliper::UnitOfMeasure::Quantity']]],
['uomtype',['UOMType',['../class_point85_1_1_caliper_1_1_unit_of_measure_1_1_unit_of_measure.html#a01e025fc0ecbc625d796439b7d38efb... |
/// <reference path="typings/index.d.ts" />
exports.ENV = process.env.NODE_ENV || 'development';
exports.DEBUG = process.env.NODE_ENV !== 'production';
|
export const api = {
url: 'http://localhost:3000'
};
|
/* *
*
* Copyright (c) 2019-2021 Highsoft AS
*
* Boost module: stripped-down renderer for higher performance
*
* License: highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import Chart from '../../Core/Chart/Chart.js';
import H from '.... |
'use strict';
let through = require('through2'),
gutil = require('gulp-util'),
path = require('path'),
crypto = require('crypto'),
PluginError = gutil.PluginError,
PLUGIN_NAME = 'gulp-build-css',
IMG_URL_REG = /url\s*\(\s*("(?:[^\\"\r\n\f]|\\[\s\S])*"|'(?:[^\\'\n\r\f]|\\[\s\S])*'|[^)}]+)\s*\)/g... |
'use strict'
myapp.service('ShareService',function(){
return {
start:'zz:zz',
break:'zz:zz',
end:'zz:zz'
};
});
myapp.controller('KintaiController', function($scope, $http,ShareService) {
/* 初期化 */
// バーを止めるのに使うflag
let stop_flag = {'work':[true],'break':[true]};
// ボタ... |
'use strict';
module.exports = function(grunt) {
var stylesheets = __dirname + '/static/css/';
var javascripts = __dirname + '/static/js/';
var vendors = __dirname + '/static/vendors/';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {... |
Entities = new Mongo.Collection('biolog_entities');
Entities.attachSchema(
new SimpleSchema({
name: { type: String, label: "Name" }, //the canonical name
nickname: { type: String, label: "Nickname", optional: true }, //an abbreviation of nickname
nameLC: { type: String, optional: true }, //... |
/**
* @license Highcharts JS v9.1.1 (2021-06-04)
* @module highcharts/modules/networkgraph
* @requires highcharts
*
* Force directed graph module
*
* (c) 2010-2021 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Series/Networkgraph/Networkgraph.js';
|
/** @license React vundefined
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function(){'use strict';(function(c,y){"object"===typeof exports&&"undefin... |
/*
Highstock JS v9.0.1 (2021-02-15)
Indicator series type for Highstock
(c) 2010-2021 Daniel Studencki
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/acceleration-b... |
/*! @name mux.js @version 5.12.1 @license Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var utils = require('primereact/utils');
var csstransition = require('primereact/csstransition');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e };... |
import{W as WidgetBehavior,N as NUMBER_TYPE}from"./index-0902736c.js";class ProgressBarBehavior extends WidgetBehavior{init(){this.props.min=NUMBER_TYPE(0),this.props.max=NUMBER_TYPE(100),this.props.value=NUMBER_TYPE(100),super.init()}connected(){super.connected(),this.apply()}changed(e,s){super.changed(e,s),this.isCon... |
/*
* Global javascript utilities
*/
var static_url = "";
/*
* A simple function to initialize the value of the global variable
* 'media_url' (corresponding to django's MEDIA_URL variable).
*/
function set_static_url(url) {
static_url = url;
}
/*
* Shortcut function that construct an url from the media_url ... |
module.exports = {
entry: {
'acceptedlanguages': './src/acceptedlanguages.js'
},
resolve:{
modulesDirectories: [
'src'
]
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel-loader',
}],
},
output: {
path: './dist',
filename: '[name].js',
library: '[name... |
version https://git-lfs.github.com/spec/v1
oid sha256:dbb4dd11e00dc1ea8b35040eb6be3deef483ad71d6d6cd5cff6c40e9220be3f9
size 600
|
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('service:google-contact', 'GoogleContactService', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
// Replace this with your real tests.
test('it exists', function() {
var service = this.subject();
ok(servi... |
"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")... |
//________________________________________________________________________________________________
// layout.js
// This file contains:
// cOverLayout: an object that places overlay objects on a viewport.
// cViewLayout: an object that provides arrangements of viewprot panes for multi-image viewing.
//
// histor... |
'use strict'
const elasticsearch = require('elasticsearch')
const esClient = new elasticsearch.Client({
host: 'localhost:9200',
deadTimeout: 0,
keepAlive: false
})
const async = require('async')
const INDEXING_TIMEOUT = process.env.INDEXING_TIMEOUT || 2000
const BULK_ACTION_TIMEOUT = process.env.BULK_ACTION_TIM... |
'use strict';
describe('Sprint manager', function() {
var sprintService, wordManagerService, url,
question = {
word: 'confirm',
translation: ['підтверджувати'],
guess: 'підтверджувати'
};
beforeEach(function() {
module('words');
module(['$provide', function($provide) {
$provide.fac... |
/* eslint camelcase: 0 */
const proxyquire = require('proxyquire')
const investmentData = require('../../../../../test/unit/data/investment/investment-data.json')
describe('Investment archive controller', () => {
beforeEach(() => {
this.next = sinon.stub()
this.token = '1234'
this.archiveInvestmentProje... |
import React, { useCallback, useEffect, useMemo, useRef, useReducer } from 'react';
import { cloneDeep, get, isEmpty, isEqual, set } from 'lodash';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { Prompt, Redirect } from 'react-router-dom';
import { Main } from '@strapi/design-system/M... |
/* eslint-env node, mocha */
'use strict'
const assert = require('assert')
const mock = require('mock-require')
const sinon = require('sinon')
const { createFakeLogger } = require('../testDoubles/loggerFake')
const { removeLibModuleCache, makeMockSocket } = require('./utils')
const realtimeJobStub = require('../testD... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
module.exports = {
'/':{
fields: ['issuing-authority', 'issue-year', 'issue-month'],
backLink: '/../prototype_170123/filter-common/dob-overseas',
next: '/passport-damaged'
},
'/passport-damaged': {
fields: ['passport-damaged'],
backLink: './',
next: '/uncancelled' /* ... |
// @flow
import {getLocalLibDefs as getLocalDefs} from "../lib/libDefs.js";
function validationError(errKey, errMsg, validationErrs) {
const errors = validationErrs.get(errKey) || [];
errors.push(errMsg);
validationErrs.set(errKey, errors);
}
export const name = "validate-defs";
export const description =
"V... |
/**
* @fileoverview Tests for no-shadow rule.
* @author Ilya Volodin
* @copyright 2013 Ilya Volodin. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//----------------------------------------------------------------------------... |
'use strict';
var merge = require('lodash/object/merge');
var indexBy = require('lodash/collection/indexBy');
var camelCase = require('lodash/string/camelCase');
var capitalize = require('lodash/string/capitalize');
var generics = ['type'], undef;
function columnToObject(col, opts) {
var column = merge({
... |
var ReadPreference = require('./read_preference').ReadPreference
, Base = require('./base').Base
, Server = require('./server').Server
, format = require('util').format
, timers = require('timers')
, utils = require('../utils')
, inherits = require('util').inherits;
// Set processor, setImmediate i... |
/**
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.