code
stringlengths
2
1.05M
/********************** tine translations of Projects**********************/ Locale.Gettext.prototype._msgs['./LC_MESSAGES/Projects'] = new Locale.Gettext.PO(({ "" : "Project-Id-Version: Tine 2.0\nPOT-Creation-Date: 2008-05-17 22:12+0100\nPO-Revision-Date: 2012-10-24 15:13+0000\nLast-Translator: brankablag <brankablag...
import Alt from 'altFlux'; import { createStore } from 'alt-utils/lib/decorators'; import ProjectsActions from 'actions/projects'; @createStore(Alt) export default class ProjectsStore { static displayName = 'ProjectsStore' constructor() { this.projects = []; this.isLoading = true; this.bindListeners(...
'use strict'; var _ = require('lodash'); var compiler = require('./compiler'); var handlers = require('./handlers'); var placeholders = require('./placeholders'); compiler.injectHandlers(handlers); handlers.injectCompiler(compiler); function registerPlaceholder(name, fn, overwrite) { if (!_.isFunction(fn)) { t...
'use strict'; /** * Attachments helper */ module.exports = { /** * add - Adds attachments to its respective direction array. * * @param {object} req * @param {object} attachmentObject object containing url, and contentType * @param {string} direction = 'inbound' direction array where to store th...
var generators = require('yeoman-generator'); var yosay = require('yosay'); var chalk = require('chalk'); var _ = require('lodash'); module.exports = generators.Base.extend({ settings: {}, defaultSiteUrl: "https://[tenant].sharepoint.com", constructor: function () { generators.Base.apply(this, a...
#!/usr/bin/env node require("proof")(3, prove) function prove (equal) { var tz = require('timezone') equal(tz(7), 7, "integer") equal(tz(new Date(7)), 7, "Date") equal(tz({ valueOf: function () { return 7 } }), 7, "valueOf") }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = undefined; var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _stringify = require('babel-runtime/core-js/json/stringify'); var _stringify2 = _interopRequ...
// Generated by CoffeeScript 1.6.3 /* @author Your Name <email@example.com> @license LICENSE */ var define, __slice = [].slice; define = (function(root) { if (typeof root.define === 'function' && root.define.amd) { return root.define; } else { if (typeof module === 'object' && module.exports) { re...
var assert = require('assert'); var common = require('../../../common.js'); var Api = common.require('core/api.js'); module.exports = { 'assert.urlEquals' : { 'urlEquals assertion passed' : function(done) { var assertionFn = common.require('api/assertions/urlEquals.js'); var client = { ...
var selectedTestButton = undefined; function onPageLoad() { testButtons.filter(el => el.category === 'B').forEach(el => { document.getElementById('testHolder1').innerHTML += '<button class= "button">' + el.name + '</button>' }); testButtons.filter(el => el.category === 'C').forEach(el => { ...
//requests.js Twoshoes.init( { requests : { bootstrap : { //Interface initialisation request. init : { method : 'ajax', type : 'GET', action : domainUrl+'api/', data : {}, format : 'json', error : function() { alert('Request failed'); }, ...
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2016 Manapaho. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /** * This will parse a query language query and turn it into a JSON query tree....
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's // vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisa...
'use strict'; /** * Module dependencies. */ var path = require('path'), textProcessor = require(path.resolve('./modules/core/server/controllers/text-processor.server.controller')), emailService = require(path.resolve('./modules/core/server/services/email.server.service')), config = require(path.resolve('...
/** * Test the notify functionality. * * @author Joseph Fehrman * @since 25/02/2017 */ QUnit.module("Notify"); QUnit.test("Notify shall alert all subscribers of a gamestate change.", function(assert){ var subscriber = {"name" : "subscriber", "notify" : function(data){this.name = data}}; var game = TurnBas...
(function(){ "use strict"; var app = angular.module("app", ["ngRoute"]); app.config(["$routeProvider", configRoutes]); function configRoutes($routeProvider){ $routeProvider.when("/", { templateUrl: "app/Expense/expense.html" }); $routeProvider.when("/admin", { ...
var recursive = require('recursive-readdir'); var ExifImage = require('exif').ExifImage; var prompt = require('prompt'); var fs = require('fs'); var path = require('path'); var mkdirp = require('mkdirp'); var photographer = ''; var oldFiles = []; recursive('./process', function (err, files) { // Files is an array of...
/** * Copyright (c) 2017 Chris Baker <mail.chris.baker@gmail.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 the rights * to use...
var dtar = require('deterministic-tar') var zlib = require('zlib') var path = require('path') var concat = require('concat-stream') //unpack and repack a stream so that it always hashes the same, //by it's content, not it's timestamps. module.exports = function (stream, cb) { var offset = new Date().getTimezone...
'use strict'; function filterParams(pattern) { return function(details) { let url = new URL(details.url); let changed = false; for (let param of url.searchParams) { if (param[0].match(pattern)) { changed = true; url.searchParams.delete(param[0]); } } if (changed) { return {redirectUrl: u...
// The game object, assigned in initializeGame(); var game; // Screen resolution variables var screenWidth = 1024; var screenHeight = 720; // Game state variables var STATE_NONE = 0, STATE_DROP = 1, STATE_DROPPING = 2, STATE_DONE = 3; var currentState = STATE_NONE; // Game result types var RESULT_MIS...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
import app from './app'; app.controller("ContactController", ContactController); /*@ngInject*/ function ContactController(contactFormFields, contactService, toastr) { var vm = this; vm.contactFormModel = {}; vm.contactFormFields = contactFormFields; vm.send = send; function send(){ contac...
"use strict"; (function () { var _view, _editor, _currFile; $(function () { $('#files').on('click', 'a', fileNameClick); $('#file-save-button').click(saveFile); $(window).resize(onResize); }); _view = views.files = { openPath: selectPath, closePath: closeFile }; function projectChanged (project) { $('#files'...
function asm(stdlib, foreign, buffer){ 'use asm'; var exp = stdlib.Math.exp; var log = stdlib.Math.log; var sqrt = stdlib.Math.sqrt; var pow = stdlib.Math.pow; var abs = stdlib.Math.abs; var acos = stdlib.Math.acos; var cos = stdlib.Math.cos; var PI = stdlib.Math.PI; var heap = new stdlib.Float64Array(buffe...
// // Depcheck // // Script to ensure we're not building the client site with any packages that aren't in use. // Building with unused packages could negatively affect site performance by increasing the overall // page size. // /* eslint no-console: 0 */ import depcheck from 'depcheck'; import _ from 'lodash'; import c...
function init_date_range_pickers(start_date, end_date, page_name) { // Date time picker configuration $('#dtp_start').datetimepicker({ defaultDate: start_date, maxDate: end_date, format: 'LL', // http://momentjs.com/docs/#/displaying/format/ calendarWeeks: true, ...
/*global global, globalDocument, html*/ /* Degrades: IE3 */ var getViewportSize; (function() { var getRoot; if (typeof global.innerWidth == 'number') { getViewportSize = function(win /* window */) { if (!win) { win = window; } return [win.innerWidth, win.innerHeight]; // Array }; } else { i...
import map from 'lodash/map'; import includes from 'lodash/includes'; import { Meteor } from 'meteor/meteor'; import { ValidatedMethod } from 'meteor/mdg:validated-method'; import { SimpleSchema } from 'meteor/aldeed:simple-schema'; import { DDPRateLimiter } from 'meteor/ddp-rate-limiter'; import { CallPromiseMixin } f...
'use strict'; describe('Module: angular-geo-maplocation', function () { var $scope, $sandbox, $compile, $timeout; // load the controller's module beforeEach(module('angular-geo-maplocation')); beforeEach(inject(function ($injector, $rootScope, _$compile_, _$timeout_) { $scope = $rootScope.$new(); $co...
module.exports = writeShim writeShim.ifExists = shimIfExists var fs = require("./graceful-fs") , path = require("path") , relativize = require("./relativize") , mkdir = require("./mkdir-p") , log = require("./log") function shimIfExists (from, to, dep, cb) { if (!cb) cb = dep, dep = false fs.stat(from, f...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
var gulp = require('gulp'); var mocha = require('gulp-mocha'); gulp.task('test', ['lint'], function() { return gulp.src([ 'tests/test.js' ]) .pipe(mocha({ reporter: 'spec' })); });
var util = require('util'), events = require('events'), _ = require("../node_modules/underscore"); //is this needed? var prohibitedMethods = [ 'emit', 'addListener', 'setMaxListeners', 'on', 'once', 'removeListener', 'removeAllListeners', 'listeners', 'prepare' ]; var lockMethods = { 'exec': true, 'run...
ig.module( 'game.entities.hiddenMovingPlatform' ) .requires( 'impact.entity', 'game.entities.movingPlatform' ) .defines(function() { EntityHiddenMovingPlatform = EntityMovingPlatform.extend({ animSheet: new ig.AnimationSheet('media/img/hidden_platform_256_32.png',256,32), update: funct...
const chai = require('chai'); const expect = chai.expect; const chaiHttp = require('chai-http'); chai.use(chaiHttp); const request = chai.request; const port = process.env.PORT = 5000; const setup = require(__dirname + '/test_setup'); const teardown = require(__dirname + '/test_teardown'); describe('default server rou...
import React from 'react'; export class Loader extends React.Component { render () { let style = { display: (this.props.visible ? 'block' : 'none') }; return ( <div className='loading-container' style={style}> <div className='loader'></div> <div className='loader-label'>{this.props.tex...
'use strict'; // eslint-disable-next-line const fontManager = require('font-manager'); module.exports = function getInstalledRegularFonts() { const fonts = fontManager.getAvailableFontsSync(); const regular = fonts.filter((a) => a.style === 'Regular'); let names = regular.map((a) => a.postscriptName); // thi...
import { SET_MUTE_ENABLED, SET_THRU_ENABLED, SET_MUTE_GROUPS_ENABLED, RECEIVED_MUTE_ENABLED, RECEIVED_THRU_ENABLED, RECEIVED_MUTE_GROUPS_ENABLED, CHANGE_PRIMARY_NAV_TAB, RECEIVED_MIDI_SETTINGS, SET_CHANNEL_A, SET_CHANNEL_B, SET_VELOCITY_VARIANCE, SET_ROUND_ROBIN_ENABLED, SET_VOLUME_CURVE, RE...
/** * TODO: Implement * 1. Connect to socket.io * 2. Listen for new posts event * 3. Use jQuery to add new posts to UI by cloning #template element */ let $ = require('jquery') let io = require('socket.io-client') let socket = io('http://socialauthenticator.com:8000') let $template = $('#template') socket.on('co...
import _typeof from "../../helpers/esm/typeof"; import toArray from "./toArray"; import toPropertyKey from "./toPropertyKey"; export default function _decorate(decorators, factory, superClass) { var r = factory(function initialize(O) { _initializeInstanceElements(O, decorated.elements); }, superClass); var d...
/** global: Craft */ /** global: Garnish */ /** * Element selector modal class */ Craft.BaseElementSelectorModal = Garnish.Modal.extend( { elementType: null, elementIndex: null, $body: null, $selectBtn: null, $sidebar: null, $sources: null, $sourceToggles: ...
import React, { PropTypes } from 'react'; import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import Menu from 'material-ui/Menu'; import CustomMenuItem from '../CustomMenuItem'; import './SidebarMenu.scss'; var menuStyle = { 'overflow': 'hidden' }; export default class SidebarMenu ext...
jQuery.noConflict(); jQuery(document).ready(function ($) { $(".select-month").on("click",function(){ form_data= { ajax: "1" }; $.ajax({ type:"get", url: base_url + "index.php/expense/select", data: form_data, success: function(data){ showPopup("Select Month", data, "auto"); } }); }); ...
'use strict' /*global describe, it */ var should = require('should') var redis = require('../index') module.exports = function () { describe('createClient2', function () { var time = '' + Date.now() it('redis.createClient()', function (done) { var connect = false var client = redis.createClient...
import React, { Component } from 'react'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { Button, Container, Row, Col } from 'reactstrap'; import { Link } from 'react-router-dom'; import {...
import{a as n}from"./chunk-ONCZ3D52.js";import{a as e}from"./chunk-K2U7JEMX.js";function f(r){return n(r)?{capture:r}:r}function i(r,t,o,u){e(r,t,o,{once:!0,...f(u)})}export{i as a}; //# sourceMappingURL=chunk-SA3MY6H2.js.map
import { moduleForComponent, test } from 'ember-qunit'; import wait from 'ember-test-helpers/wait'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('filter-select', 'Integration | Component | filter select', { integration: true }); test('add filter', function(assert) { this.set('filters', []); ...
$(document).ready(function () { $('#get-data').click(function () { var showData = $('#show-data'); $.getJSON('example.json', function (data) { console.log(data); var items = data.items.map(function (item) { return item.key + ': ' + item.value; }); showData.empty(); if...
import JsonBarChart from './JsonBarChart.jsx'; export default { JsonBarChart };
(function(){ window.ag = window.ag || {}; // this method will be used at the top of each namespaced file to create the namespace on the fly ag.ns = function(namespace) { var parts = namespace.split("."), i = 0, ref = window; for (i; i < parts.length; i++) { ref[parts[i]] =...
'use strict'; describe('doubleMap control behaviour', function() { var mapDiv, map, mapCloned, comparisonTools, layer1, layer2; before(function() { mapDiv = document.createElement('div'); mapDiv.id = 'map' document.body.appendChild(mapDiv); layer1 = new ol.layer.Tile({ source: new ol.sourc...
'use strict'; var utils = require('../utils'); var lazy = require('lazy-cache')(require); /** * Lazily required module dependencies */ lazy('matched', 'glob'); lazy('extend-shallow', 'extend'); lazy('load-templates', 'loader'); lazy('for-own'); /** * Fallback loader to use when no other loaders are defined. */ ...
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt frappe.provide("frappe.tools"); frappe.tools.downloadify = function(data, roles, me) { if(roles && roles.length && !has_common(roles, user_roles)) { msgprint(__("Export not allowed. You need {0} role to export....
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0635", "\u0645" ], "DAY": [ "\u...
/* -*- Mode: jasmine; tab-width: 4; indent-tabs-mode: nil; */ //--------MODULE HEADER---------- (function(GLOBAL, undefined) { "use strict"; //=============================== steal.resources("//jmvc_machinery/framework/resources/dataStructures.js").then(function() { var n = JmvcMachinery.Framework.ModelDe...
import BaseController from "../base_controller"; /** * MetaDataController */ class MetaDataController extends BaseController { /** * MetaDataController Constructor */ constructor() { super(); } /** * Get States * @returns {Promise} */ getStates() { return this.get("/metadata/states...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import {unregister} from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); unregister();
import React, { PropTypes, Component } from 'react' import I18n from 'react-native-i18n' import { View, Text } from 'react-native' import { FILTER_BIKES, FILTER_SPACES } from '../actions/stations' import TouchableAuto from './touchableAuto' // eslint-disable-line import/no-unresolved const filters = [ { ...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import c3 from 'c3'; import merge from 'deepmerge'; import loadHistoryData from './loadHistoricalData'; import filterReactDomProps from 'filter-react-dom-props'; import PropTypes from 'prop-types'; const isDate = (key) => key === "date"; const...
(function(a){function d(b){b="undefined"===typeof b||"object"===typeof b?window.location.hash:b;b=b.replace(/:/g,"\\:");a(b).length&&(a("body").addClass("scrolling"),a("html, body").animate({scrollTop:a(b).offset().top-e},600,function(){a("body").removeClass("scrolling")}))}function h(){var b=a("body"),c=b.data("bs.scr...
var account_app = account_app || {}; (function(){ var LoginWindow = account_app.LoginWindow; var RegisterWindow = account_app.RegisterWindow; var AccountPage = React.createClass({displayName: "AccountPage", getInitialState:function(){ return {isRegister:false}; }, render...
import React,{Component} from 'react'; // export default class TodoItem extends Component{ export default class TodoItem extends Component{ filterCompleted(){ const {todo, completeTodo} = this.props; if(todo.completed){ return <del onClick={()=>completeTodo(todo.id)}>{todo.text}</del> ...
var expect = require("expect.js"); const options = { // user: "username", // pass: "password", url: "ws://127.0.0.1:8090", apis: ["database_api", "market_history_api"], debug: true }; var {Client} = require("../src/index"); // Client.close(); var Api = Client.get(options, true); describe("Market ...
import { default as dataManipulation } from './dataManipulation'; import { default as effects } from './effects'; import { default as environment } from './environment'; import { default as general } from './general'; import { default as mouse } from './mouse'; import { default as polyfills } from './polyfills'; import...
'use strict'; module.exports = (ngModule) => { require('./projects.controller')(ngModule); };
/// <reference path="Xrm.js" /> var EntityLogicalName = "mailbox"; var Form_d08328e6_d988_44df_8d76_d4e83674f85c_Properties = { actdeliverymethod: "actdeliverymethod", actstatus: "actstatus", allowemailconnectortousecredentials: "allowemailconnectortousecredentials", emailaddress: "emailaddress", e...
'use strict'; var util = require('util'); var child = require('child_process'); var globalAgent = require('http').globalAgent; var exists = require('101/exists'); var IntervalMonitor = require('./interval-monitor'); /** * @module monitor-dog:sockets-monitor * @author Anand Kumar Patel, Anton Podviaznikov, Ryan Sand...
'use strict'; var _ = require('lodash'); var chalk = require('chalk'); var fs = require('fs'); var jwt = require('jsonwebtoken'); var http = require('http'); var open = require('open'); var path = require('path'); var portfinder = require('portfinder'); var RSVP = require('rsvp'); var url = require('url'); var api = ...
/*! * devextreme-angular * Version: 16.2.5 * Build date: Tue Feb 28 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://git...
/** * Created by Cai Kang Jie on 2017/7/11. */ import * as types from '../mutation-types' const state = { sidebar: { opened: false, selected: '/' } } const mutations = { [types.TOGGLE_SIDEBAR] (state, config) { if (config.hasOwnProperty('opened')) { state.sidebar.opened = config.opened }...
import { Perceptron } from './Perceptron.js'; import { VisualizableTrainer } from './VisualizableTrainer.js'; window.Vue = require( 'vue' ); window.Network = new Perceptron(2,3,1); window.Trainer = new VisualizableTrainer( Network, 50 ); Trainer.XOR({ error: 0.00001 }); Vue.component('visualizer', require('./com...
import React, { Component } from 'react' import './NewStarter.css' class Product extends Component { render() { return ( <div className="container-fluid"> <div className="row tableStyle "> <div className="col-md-4"><img src="../Gradient_Survey-Hub.jpg" alt="Survey Hub" /></div> ...
define("scribe-plugin-intelligent-unlink-command",[],function(){return function(){return function(e){var n=new e.api.Command("unlink");n.execute=function(){var n=new e.api.Selection;n.selection.isCollapsed?e.transactionManager.run(function(){var t=n.getContaining(function(e){return"A"===e.nodeName});t&&new e.api.Elemen...
/* * jQuery File Upload Image Preview & Resize Plugin 1.6.0 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint nomen: true, unparam: true, regexp: true */ /*global d...
/* * grunt-contrib-nodeunit * http://gruntjs.com/ * * Copyright (c) 2014 "Cowboy" Ben Alman, contributors * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Nodejs libs. var path = require('path'); var util = require('util'); var fs = require('fs'); // External ...
EvenementsTXT = [ { _id: "4ZvNZ8tAFur38mZfT", eventId: "EV1", intitule : {fr:"Crowdfunding.", en:"Bank Error in your favor"}, description : {fr:"Vous avez levé des fonds supplémentaires grâce à un financement participatif.", en:""}, tip: {fr:"", en:""}, illustration: "§Y3.png", isLancement ...
D.import_type('maybe-list', function(value) { if(value === false || !D.is_nice(value)) return false else return D.Types['list'](value) })
/** * State - Constructor */ function State() { } State.RUN = 'run'; State.PAUSE = 'pause';
'use strict'; describe('Service: AuthService', function () { // load the service's module beforeEach(module('eventifyApp')); // instantiate service var AuthService; beforeEach(inject(function (_AuthService_) { AuthService = _AuthService_; })); it('should do something', function () { expect(!!A...
var keystone = require('keystone'); var async = require('async'); exports = module.exports = function (req, res) { var view = new keystone.View(req, res); var locals = res.locals; // Init locals locals.section = 'writer_index'; locals.filters = { writer: req.params.writer, }; locals.data = { writers: [], ...
// Copyright (c) 2013 David Gallardo Moreno. All rights reserved. /** * @fileoverview ShaderSource resource. Requires an initialized view * @author David Gallardo Moreno (portalg@gmail.com) */ goog.provide('ss2d.ShaderSource'); /** * @constructor * @param {string} shaderFile The resource name * @param {functio...
'use strict'; /** * */ angular.module('angularAddToHomeScreen') .factory('$homeScreenDetector', [function(){ var parser = new UAParser(); function getMajorVersion (version) { return (typeof(version) === 'undefined') ? undefined : version.split('.')[0]; } var Detector = function(options) { ...
module.exports = { audiotheme: { options: { swapLtrRtlInUrl: false }, files: [ { src: 'assets/css/editor-style.css', dest: 'assets/css/editor-style-rtl.css' }, { src: 'style.css', dest: 'style-rtl.css' } ] } }
var FPS = 15; var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); window.addEventListener("mousedown", checkMouseDown, true); window.addEventListener("mousemove", checkMouseDown, true); var myGrid = new Grid(5, 5); setInterval(function() { update(); draw(); }, 1000/FPS); funct...
/** * Manages JSON files * * @public * @singleton module:JSON * @extends JSON * @author Riko Ophorst */ _.extend(JSON, { override: false, overwrite: false }, { /** * The cache the JSON manager uses to save its jsons * * @private * @property module:JSON#property */ _cache: {} }); _.extend(JSON, { ...
const path = require('path'); const yarnOrNpm = require('../lib'); const mock = path.resolve(__dirname, './mocks/yarn-lockfile'); describe('detecting Yarn lockfile', () => { const cwd = process.cwd(); beforeEach(() => { process.chdir(mock); }); afterEach(() => { process.chdir(cwd); }); it('prop...
// @ts-check /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-var-requires */ /** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.org/docs/node-apis/ */ // Allow import of ts files: require("ts-node").register({ files: true }); const ...
import { all } from 'redux-saga/effects'; import { fetchDataWatches } from 'app/redux/FetchDataSaga'; import { sharedWatches } from 'app/redux/SagaShared'; import { userWatches } from 'app/redux/UserSaga'; import { authWatches } from 'app/redux/AuthSaga'; import { transactionWatches } from 'app/redux/TransactionSaga'; ...
class CheckoutCtrl { constructor($state) { this.$state = $state; this.message = 'Angular with Webpack and Babel!1'; } } export { CheckoutCtrl }
var gulp = require('gulp'); var cleanCSS = require('gulp-clean-css'); var concat = require('gulp-concat'); var rename = require("gulp-rename"); var uglify = require('gulp-uglify'); var autoprefixer = require('autoprefixer') var sourcemaps = require('gulp-sourcemaps') var postcss = require('gulp-postcss') var browserSyn...
/** * Not yet implemented. */ var InputImageAltIdentifiesPurpose = { run: function () { return; }, meta: { testability: 0, title: { en: 'All \"input\" elements with a type of \"image\" must have an \"alt\" attribute that describes the function of the input', nl: 'Elk \"invoer\"-element ...
/** * @author Mugen87 / https://github.com/Mugen87 */ import { State } from '../../../build/yuka.module.js'; const IDLE = 'IDLE'; const WALK = 'WALK'; class IdleState extends State { enter( girl ) { const idle = girl.animations.get( IDLE ); idle.reset().fadeIn( girl.crossFadeDuration ); // girl.ui.cur...
/** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'placeholder', 'ug', { title: 'ئورۇن بەلگە خاسلىقى', toolbar: 'ئورۇن بەلگە قۇر', text: 'ئورۇن بەلگە تېكىستى', edit: 'ئورۇن بەل...
/** * End2End tests for browse module */ describe('browse', function() { beforeEach(function() { browser.get('/browse'); }); it('should render contribute', function() { expect(element(by.css('.jumbotron p')).getText()).toContain("Search and query data"); }); it('should render br...
/*jslint browser:true */ /*global alert, myapp*/ myapp.controller = function () { 'use strict'; var model = null, view = null; this.init = function () { view = new myapp.view(this); console.log(view); model = new myapp.model(view, this); }; this.displayNextQuestio...
var A = require('../Attributes'); var util = require('../util.js'), CmdSeq = require('../Sequence.js'), override2 = util.override2, cannedOptions = {}; var defOptions = { SPNumber: '106550224004', ChargeNumber: '000000000000000000000', CorpId: '91287', // 0-99999 no particular CorpId assigned ServiceType: 'QHT1...
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'hipstr-shop'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSaniti...
var request = require('request'), error = require('./error'); exports.locateIp = function(app, ip, callback) { //Use first IP when multiple are specified ip = ip.split(',')[0]; request({ uri: 'http://api.geoio.com/q.php', qs: { key: app.set('geoio-key'), qt: 'geoip', d: 'pipe', q: ip } }, funct...
// @flow import React, { Component } from 'react'; import uniqueId from 'lodash/fp/uniqueId'; import css from './SplitWordEntrance.css'; type Props = { children: string, duration: number, } export default class SplitWordEntrance extends Component<Props> { id: string; static defaultProps = { duration: 3...