code stringlengths 2 1.05M |
|---|
'use strict';
// modulos =================================================
var express = require('express');
var app = express();
var logger = require('morgan');
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
// configuracion =========================================
// conexion a la ba... |
/**
* Not type-checking this file because it's mostly vendor code.
*/
/*!
* HTML Parser By John Resig (ejohn.org)
* Modified by Juriy "kangax" Zaytsev
* Original code by Erik Arvidsson, Mozilla Public License
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
*/
import { makeMap, no } from '... |
// Mithril sugar tags.
// Copyright (C) 2015 jsguy (Mikkel Bergmann)
// MIT licensed
(function(){
// initialise sugar tags - set window.localSugarTags to true
// if you want to not have global sugar tags on the client.
var mithrilSugartags = function(m, scope, debugFunc){
m.sugarTags = m.sugarTags || {};
scope = sco... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const _ = require("underscore")
const { resolve } = require("path")
const benv = require("benv")
const Backbone = require("... |
import React from 'react';
import { useFocusWhenNavigate, NoPermissions as NoPermissionsCompo } from '@strapi/helper-plugin';
import { Main } from '@strapi/design-system/Main';
import { ContentLayout, HeaderLayout } from '@strapi/design-system/Layout';
import { useIntl } from 'react-intl';
import { getTrad } from '../.... |
define(function() {
/*
* initialize the custom marker dialog
*/
function initCustomMarkers(chart) {
var customMarkers = $('#customMarkers'),
sel = chart.get('metadata.visualize.custom-markers', {});
labels = dw.backend.currentVis.keys();
if (_.isEmpty(labels)... |
/* @flow */
export default function isObject(value: any): boolean {
return typeof value === 'object' && !Array.isArray(value)
}
|
var componentsContext = require.context('../src', true, /.*\.js$/);
componentsContext.keys().forEach((key) => {
if ("./request/server.js" === key || './index.js' === key) {
return;
}
componentsContext(key);
});
var componentsContext = require.context('.', true, /Test\.js$/);
componentsContext.keys().forEach(... |
exports.config = require('./config')
exports.db = require('./db')
exports.pageable = require('./pageable')
|
export default {
name: 'v-carousel-item',
data () {
return {
active: false,
reverse: false
}
},
props: {
src: {
type: String,
required: true
},
transition: {
type: String,
default: 'tab-transition'
},
reverseTransition: {
type: String,
... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
const header = require('../Components/Header/Header.html')
const footer = require('../Components/Footer/Footer.html')
const dashboard = require('../Components/Dashboard/Dashboard.html')
const modal = require('../Components/Modal/index.html')
function html() {
return (
`
${header}
<div id='body'></div>
... |
var express = require("express");
var router = express.Router();
router.get("/", function(request, response, next) {
return response.render("chat");
});
router.post("/notice/", function(request, response, next) {
});
module.exports = router;
|
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM21.41 6.34l-3.75-3.75-2.53 2.54 3.75 3.75 2.53-2.54z"
}), 'ModeEditOutlineSharp'); |
// Load modules
var Http = require('http');
var Lab = require('lab');
var Hawk = require('../lib');
// Declare internals
var internals = {};
// Test shortcuts
var expect = Lab.expect;
var before = Lab.before;
var after = Lab.after;
var describe = Lab.experiment;
var it = Lab.test;
describe('Hawk', function () ... |
$A.bind(window, "load", function() {
// Popup AccDC Object
var popupId = $A.setPopup({
// Set a unique ID for the popup AccDC Object, which can be referenced through $A.reg['uniqueId']
id: "uniquePopupId",
// To override the default event trigger bindings, you can add a custom event binding like so if ... |
import { fromJS } from 'immutable';
import languageProviderReducer from '../reducer';
import { CHANGE_LOCALE } from '../constants';
describe('languageProviderReducer', () => {
it('returns the initial state', () => {
expect(languageProviderReducer(undefined, {})).toEqual(
fromJS({
locale: 'en',
... |
// Unit tests. Run with mocha.
/*global describe:true it:true */
var should = require('should')
, SchemaRegistry = require('../lib/schemaRegistry.js')
, core = require('../lib/suites/draft-04/core.js')
, uri = require('../lib/uri.js')
;
describe('SchemaRegistry:', function() {
describe('register basic sc... |
/**
* Room games
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Room games are an abstract representation of an activity that a room
* can be focused on, such as a battle, tournament, or chat game like
* Hangman. Rooms are limited to one roomgame at a time.
*
* Room games can keep track of designated play... |
var drinkCtrl = require('./drinkController'),
helpers = require('../config/helpers');
module.exports = function (app) {
// app is the drinkRouter is injected from middleware.js
// grab the user from the request
app.use('/give', helpers.decode);
app.post('/give', drinkCtrl.give);
}; |
module.exports = {
useYarn: true,
command: 'tsc --noEmit',
scenarios: [
{
name: 'typescript-4.2',
npm: {
typescript: '~4.2',
},
},
{
name: 'typescript-4.3',
npm: {
typescript: '~4.3',
},
},
{
name: 'typescript-4.4',
npm: {
... |
(function() {
var watchId = null;
$('#accelerometer').bind('pageshow', function() {
var onSuccess = function(acceleration) {
// Scale the accelerometer values from [0, 1] to [0, 100]
// in order to display in the HTML range element
$('#acceleration-x').val(accelerat... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
errorHandler = require('../errors.server.controller'),
mongoose = require('mongoose'),
passport = require('passport'),
config = require('../../../config/config'),
nodemailer = require('nodemailer'),
smtpTransport = require('nodemailer-smtp-... |
"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")... |
/* eslint-env node, es6 */
module.exports = {
suites: ['test'],
plugins: {
local: {
disabled: true,
browsers: ['chrome', 'firefox']
},
sauce: {
disabled: true,
name: 'paper-autocomplete',
browsers: [
{
browserName: 'chrome',
platform: 'Windows 7'... |
'use strict';
var utils = require('../utils');
var features = require('../features');
var validator = require('validator');
var custom = require('../custom');
var Observable = utils.Observable;
var userModel;
module.exports = Observable.extend({
constructor: function UserHandler(sandbox) {
Observable.apply(this,... |
import React from 'react';
/**
* Simple text label.
*/
export default function Label() {
return <span>I am a duplicate Label component!</span>;
}
|
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('G-Max Wildfire', function () {
afterEach(function () {
battle.destroy();
});
it('should not damage Fire-types', function () {
battle = common.createBattle({gameType: 'doubles'});
battle.s... |
/**
* 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 ... |
/**
* # Connect
*
* Connect is a middleware framework for node,
* shipping with over 11 bundled middleware and a rich choice of
* [3rd-party middleware](https://github.com/senchalabs/connect/wiki).
*
* Installation:
*
* $ npm install connect
*
* API:
*
* - [connect](connect.html) general
* - [http]... |
var Writable = require('stream').Writable,
util = require('util');
var WriteStreamDelay = function() {
Writable.call(this, {objectMode: true});
};
util.inherits(WriteStreamDelay, Writable);
WriteStreamDelay.prototype._write = function(chunk, encoding, callback) {
console.log('write : ' +... |
$.fn.formObject = function() {
var form = {};
$.each($(this).serializeArray(), function (i, field) {
form[field.name] = field.value || "";
});
return form;
};
|
define(['knockout', 'jquery', 'bootstrap'], function(ko, $, bs) {
ko.bindingHandlers.modal = {
init: function (element, valueAccessor) {
$(element).modal({
show: false
});
var value = valueAccessor();
if (ko.isObservable(value)) {
... |
/*!
* Translated default messages for the jQuery validation plugin.
* Locale: NL (Dutch; Nederlands, Vlaams)
*/
(function(a){a.extend(a.validator.messages,{required:"Dit is een verplicht veld.",remote:"Controleer dit veld.",email:"Vul hier een geldig e-mailadres in.",url:"Vul hier een geldige URL in.",date:"Vul hier... |
import React from 'react';
import cx from 'classnames';
import Medallion from '../../../../components/Medallion/Medallion';
import Specimen from '../../../components/Specimen/Specimen';
import { H, T, C } from '../../../components/Scaffold/Scaffold';
import css from './Medallion.css';
import m from '../../../../globa... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M17 10h-3.61l2.28 2.28zm0-8H7v1.61l6.13 6.13zm-13.59.86L2 4.27l5 5V13h3v9l3.58-6.15L17.73 20l1.41-1.41z"
}), 'FlashOffOutlined'); |
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... |
const DrawCard = require('../../drawcard.js');
const { CardTypes, AbilityTypes } = require('../../Constants');
class HirumaOutpost extends DrawCard {
setupCardAbilities(ability) {
this.grantedAbilityLimits = {};
this.persistentEffect({
condition: context => !context.player.getProvinceCa... |
"use strict";
const sourcemaps = require("gulp-sourcemaps");
const postcss = require("gulp-postcss");
module.exports = () => {
return [
sourcemaps.init(),
postcss([
require("stylefmt"),
require("stylelint"),
// css未来标准提前使用
require("postcss-cssnext")({
features: {
"autoprefixer": {
brows... |
var ActionState = function(entity) {
this._entity = entity;
this._waiting = false;
this._last_action = null;
this._timeout_set = false;
};
ActionState.prototype.enter = function() {
console.log(this._entity.name + " enters Action state");
};
ActionState.prototype.leave = function() {
console.l... |
import React from 'react';
const Oppgave3Text = () =>
<div>
<p>a) Til nå har vi lastet inn characters fra en .json fil direkte til komponenten *View.js. Denne gangen skal vi få den ifra en action istedet. Funksjonen med filnavn fetchCharacters returnerer nå listen av karakterer gjennom en action med type "FETCH_... |
'use strict';
module.exports = {
CONTENT_TYPE_SECTION: 'contentTypes',
SUPER_ADMIN_CODE: 'strapi-super-admin',
EDITOR_CODE: 'strapi-editor',
AUTHOR_CODE: 'strapi-author',
READ_ACTION: 'plugin::content-manager.explorer.read',
CREATE_ACTION: 'plugin::content-manager.explorer.create',
UPDATE_ACTION: 'plugin... |
angular.module('orderCloud')
.config(function(angularBusyDefaults) {
angular.extend(angularBusyDefaults, {
templateUrl:'common/templates/view.loading.tpl.html',
message:null,
wrapperClass: 'indicator-container'
})
})
; |
var searchData=
[
['loadfile',['LoadFile',['../class_config_loader.html#a50d8923a7f0cc583bba71f4e61668f1c',1,'ConfigLoader']]]
];
|
import getProp from 'get-prop';
import {inject} from 'aurelia-dependency-injection';
import {bindingMode, BindingEngine} from 'aurelia-binding';
import {bindable, customElement} from 'aurelia-templating';
import {logger, EntityManager, Entity, OrmMetadata} from '../aurelia-orm';
@customElement('association-select')
@i... |
if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d... |
import { module, test } from "qunit";
import sinon from "sinon";
import { twitch as twitchConfig } from "config";
import chatProviderInjector from "inject-loader!services/chat/providers/-provider";
import chatProviderBrowserInjector from "inject-loader!services/chat/providers/browser";
module( "services/chat/provide... |
import _curry1 from './internal/_curry1';
import keys from './keys';
/**
* Returns a list of all the enumerable own properties of the supplied object.
* Note that the order of the output array is not guaranteed across different
* JS platforms.
*
* @func
* @memberOf R
* @since v0.1.0
* @category Object
* @sig... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'eo',
{
euro: 'Eŭrosigno',
lsquo: 'Supra 6-citilo',
rsquo: 'Supra 9-citilo',
ldquo: 'Supra 66-citilo',
rdquo: 'Supra... |
/*
* Stretchy: Form element autosizing, the way it should be.
* by Lea Verou http://lea.verou.me
* MIT license
*/
(function() {
if (!self.Element) {
return; // super old browser
}
if (!Element.prototype.matches) {
Element.prototype.matches = Element.prototype.webkitMatchesSelector || Element.prototype.mozMatche... |
#!/usr/bin/env node
var fs = require('fs');
var filename = process.argv[2];
if (!filename) {
console.log("Please specify a file to process");
process.exit(1);
}
if (!fs.existsSync(filename)) {
console.log("#{filename} not found.");
process.exit(2);
}
var data = fs.readFileSync(filename, 'utf8');
var json = ... |
/**
* Created by ryo on 14年9月10日.
*/
var CheckPointChartAdmin = {};
jQuery(function ($) {
CheckPointChartAdmin = function (component_name, action_id, occurrence, cycle) {
this.$container = $("#" + component_name);
this.action_id = action_id;
this.occurrence = occurrence;
this.cycl... |
import Object from 'osg/Object';
import StateAttribute from 'osg/StateAttribute';
import utils from 'osg/utils';
/** Stores a set of modes and attributes which represent a set of OpenGL state.
* Notice that a \c StateSet contains just a subset of the whole OpenGL state.
* <p>In OSG, each \c Drawable and each \c Nod... |
import important from '../index'
describe('Important plugin', () => {
it('should add !important to every number and string', () => {
const style = {
color: 'blue',
fontSize: 15
}
expect(important()(style)).toEqual({
color: 'blue!important',
fontSize: '15!important'
})
})
... |
import axios from 'axios'
import urls from '../../../../lib/urls'
import {
getHeadquarterTypeOptions,
getMetadataOptions,
} from '../../../metadata'
import { getPageOffset } from '../../../../lib/pagination'
import { transformResponseToCompanyCollection } from './transformers'
const usa = '81756b9a-5d95-e211-a93... |
describe("A suite", function() {
beforeEach(module('hostApp'));
it("contains spec with an expectation", function() {
expect(true).toBe(true);
});
}); |
'use strict';
exports.blocks = [
{
"name": "baz"
}
];
|
import React, { Component } from 'react';
import { Row, Col, Grid, Image } from 'react-bootstrap';
export default class Footer extends Component {
render() {
const styles = require('./Footer.scss');
return (
<footer id="footer" className={styles.footer + ' col-sm-12 col-xs-12'}>
<Grid fluid cla... |
var _ = require('../../util')
var Watcher = require('../../watcher')
module.exports = {
bind: function () {
var self = this
var el = this.el
// check options param
var optionsParam = this._checkParam('options')
if (optionsParam) {
initOptions.call(this, optionsParam)
}
this.multipl... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M21 13H2v8h19v-8zm0-10H2v8h19V3z" /></g></React.Fragment>
, 'ViewAgendaSharp');
|
/**
* 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.
*
* @format
*/
'use strict';
module.exports = jest.fn(jest.requireActual('../splitDeferredRelayQueries'));
|
export default {
debug: false,
canvasWidth: null,
canvasHeight: null,
nbCrates: 2,
recordsPerCrate: 24,
lightIntensity: 1,
cameraMouseMove: true,
backgroundColor: 0x111111,
sleeveColor: 0x0d0702,
sleeveMaskTexture: 'images/sleeve.png',
crateTexture: 'images/wood.jpg',
closeInfoPanelOnClick: true... |
console.log('im the client js!')
|
'use strict';
var microtime = require('microtime-x');
module.exports = function () {
return { 'time-sync': function () { return microtime(); } };
};
|
// var express = require('express'),
// router = express.Router();
// router.use('/api/users', require('./users'));
// router.use('/api/events', require('./events'));
// var passport = require("passport");
// // TEMPORARY PAGES
// router.get('/event', function (req,res) {
// res.render('show_event')
// })
// router.g... |
const chalk = require('chalk');
const color = 'black';
let omaha = `\n${chalk[color].bgYellow(
' \n',
' ██████╗ ███╗ ███╗ █████╗ ██╗ ██╗ █████╗ ██╗███████╗ \n',
' ██╔═══██╗████╗ ████║██╔══██╗██║ ██║██╔══██╗ ██║██╔════╝ ... |
var expect = require('chai').expect,
should = require('chai').should(),
ranges = require('../lib/ranges.js');
describe('ranges', function() {
it ('should throw an error if ranges is not a string.', function() {
expect(function() {
ranges.testIndex([123], 1);
}).to.throw(Error);
});
it ('should throw no err... |
export { default as chainPropTypes } from './chainPropTypes';
export { default as deepmerge } from './deepmerge';
export { default as elementAcceptingRef } from './elementAcceptingRef';
export { default as elementTypeAcceptingRef } from './elementTypeAcceptingRef';
export { default as exactProp } from './exactProp';
ex... |
export default function appConfig($logProvider,$routeProvider){
// todo ... env variable
$logProvider.debugEnabled(!true);
// initial redirection
$routeProvider
.otherwise({
redirectTo: '/sentence'
});
}
appConfig.$inject = ['$logProvider','$routeProvider']; |
exports.view = function(req, res){
res.render('addCategories');
}; |
define({
"addLayer": "Adicionar Camada",
"layerName": "Camada",
"layerRefresh": "Atualizar",
"layerLabel": "Rótulo",
"actions": "Ações",
"mainPanelTextPlaceholder": "ex: Última Atualização:",
"invalidInterval": "Somente inteiros positivos são permitidos",
"uploadImage": "Transferir Imagem",
"iconColum... |
Number('0o1') && Number('0b1') || function(_Number, NumberProto){
function toNumber(it){
if(isObject(it))it = toPrimitive(it);
if(typeof it == 'string' && it.length > 2 && it.charCodeAt(0) == 48){
var binary = false;
switch(it.charCodeAt(1)){
case 66 : case 98 : binary = true;
... |
/**
* @flow
*/
import React, { Component } from 'react';
class Settings extends Component {
render() {
return (
<div>
Settings Page
</div>
);
}
}
export default Settings;
|
/*global define*/
define([
'./Cartesian3',
'./defaultValue',
'./EllipsoidGeometry'
], function(
Cartesian3,
defaultValue,
EllipsoidGeometry) {
"use strict";
/**
* A description of a sphere centered at the origin.
*
* @alias SphereGeometry
... |
define(["controllers/module", 'bytepushers'], function(controllers, BytePushers) {
controllers.controller('view2Controller', function ($scope) {
$scope.isArray = Object.isDate(new Date());
$scope.isNotArray = Object.isDate("str");
var array = [1, 2, 3, 4];
$scope.isArrayLike = BytePushers.isAr... |
"use strict";
var appolo = require('appolo-express'),
Class = appolo.Class,
moment = require('moment'),
jwt = require('jsonwebtoken'),
Q = require('q');
module.exports = Class.define({
$config: {
id: 'sessionsManager',
initMethod: 'initialize',
... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Point = require('./Point');
/**
* [description]
*
* @function Phaser.Geom.Point.Interpolate
* @since 3.0.0
*
* @generic {Phaser.Geom.... |
// https://docs.djangoproject.com/en/1.9/ref/csrf/#ajax
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== "") {
var cookies = document.cookie.split(";");
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
... |
/**
** Parts of this code is written by joomlaprofessionals.com Copyright (c) 2012, 2015 All Right Reserved.
** Many part of this code is from VirtueMart Team Copyright (c) 2004 - 2015. All rights reserved.
** Some parts might even be Joomla and is Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved... |
'use strict';
exports.up = function (knex, Promise) {
return knex.schema.table('captures', (table) => {
table.dropColumn('user_id');
});
};
exports.down = function (knex, Promise) {
return knex.schema.table('captures', (table) => {
table.integer('user_id').references('id').inTable('users').onDelete('CAS... |
var express = require('express');
var telegram = require('../helpers/telegram.js');
var yahoo = require('../helpers/yahoo.js');
var _ = require('underscore');
var router = express.Router();
router.post('/', function(req, res, next) {
var telegramUpdate = req.body;
// Message must start with '/weather'
va... |
/**
*
* SubNavigation
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import Tab from '../Tab';
const Div = styled.div`
background-color: #eeeeee;
height: 45px;
display: flex;
justify-content: center;
... |
"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")... |
/**
* 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 ... |
var assert = require("assert");
var path = require("path");
var promisify = require("promisify-node");
var fse = promisify(require("fs-extra"));
var exec = promisify(function(command, opts, callback) {
return require("child_process").exec(command, opts, callback);
});
describe("Stage", function() {
var RepoUtils ... |
export class ForbiddenError extends Error {
constructor(...params) {
super(...params);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, ForbiddenError);
}
}
}
export default null;
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _applyEach = require('./internal/applyEach');
var _applyEach2 = _interopRequireDefault(_applyEach);
var _eachOfSeries = require('./eachOfSeries');
var _eachOfSeries2 = _interopRequireDefault(_eachOfSeries);
function _interopRequire... |
'use strict';
angular.module('copayApp.services').factory('confirmDialog', function($log, $timeout, gettextCatalog, isCordova) {
var root = {};
var acceptMsg = gettextCatalog.getString('Accept');
var cancelMsg = gettextCatalog.getString('Cancel');
var confirmMsg = gettextCatalog.getString('Confirm');
roo... |
import Ember from 'ember';
import DS from 'ember-data';
import { Projection } from 'ember-flexberry-data';
export let Model = Ember.Mixin.create({
name: DS.attr('string'),
login: DS.attr('string'),
pwd: DS.attr('string'),
isUser: DS.attr('boolean'),
isGroup: DS.attr('boolean'),
isRole: DS.attr('boolean'),
... |
// Job: Information about a unit's job.
// DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member variables.
// Instead, you should only be reading its variables and calling its functions.
const client = require(`${__basedir}/joueur/client`);
const GameObject = require... |
const AbstractEndpoint = require('../endpoint')
module.exports = class MinisEndpoint extends AbstractEndpoint {
constructor (client) {
super(client)
this.url = '/v2/minis'
this.isPaginated = true
this.isBulk = true
this.isLocalized = true
this.cacheTime = 24 * 60 * 60
}
}
|
import 'leaflet';
import 'leaflet.vectorgrid';
import _ from 'lodash';
import angular from 'angular';
class mapService {
constructor($rootScope, $compile, ajaxService, sidebarService) {
'ngInject';
this.$rootScope = $rootScope;
this.$compile = $compile;
this.ajaxService = ajaxService;
this.side... |
System.register(['aurelia-dependency-injection', '../designs/material-design', './web', 'aurelia-pal'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = argume... |
/*
* Although there are no dependancies we're still able to pass through 'require' as an argument.
* Explanation: https://gist.github.com/1663422#gistcomment-78062
* Reference: https://github.com/jrburke/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define
*/
define(function(re... |
import _curry2 from './_curry2';
import _reduced from './_reduced';
import _xfBase from './_xfBase';
function XFind(f, xf) {
this.xf = xf;
this.f = f;
this.found = false;
}
XFind.prototype['@@transducer/init'] = _xfBase.init;
XFind.prototype['@@transducer/result'] = function(result) {
if (!this.found) {
r... |
define([
'pubsub', './state', './animation'
], function(pubsub, state, animation) {
var frameIndex = 0,
tickCount = 0,
ticksPerFrame = 4,
numberOfFrames = 2,
currentEvent = 'idle';
var animationLoop = function() {
window.requestAnimationFrame(animationLoop);
... |
module.exports={A:{A:{"1":"F A B","2":"M D H mB"},B:{"1":"C E q L O I J","2":"K"},C:{"2":"0 1 2 3 4 5 6 8 9 jB AB G M D H F A B C E q L O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB HB IB JB eB cB"},D:{"2":"0 1 2 3 4 5 6 8 9 G M D H F A B C E q L O I J P Q R S T U V W X... |
window.onload = function () {
'use strict';
var i,
element;
//Criar cabeçalhos para a visualização móvel
(function () {
var headers = document.querySelectorAll("th"),
index = 1,
columns = document.querySelectorAll("td"),
headerName,
responsiveHeader;
if (columns.length > 0... |
var gulp = require('gulp'),
concat = require('gulp-concat'),
coveralls = require('gulp-coveralls');
// Lint CSS and JavaScript files.
gulp.task('coveralls', function (done) {
if (!process.env.CI) return done();
return gulp.src('.coverdata/**/lcov.info')
.pipe(concat('lcov.info'))
.pipe(coveralls());
})... |
const User = require('../users/userModel').User;
const jwt = require('jsonwebtoken');
module.exports = {
signin(req, res) {
const password = req.body.password;
const email = req.body.email;
User.where({ email })
.fetch()
.then((user) => {
if (!user) {
return res.status(500).end('In... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.