code
stringlengths
2
1.05M
import { position, leftClick } from '../utils/event.js' function updateBinding (el, binding) { const ctx = el.__qtouchhold ctx.duration = parseInt(binding.arg, 10) || 600 if (binding.oldValue !== binding.value) { ctx.handler = binding.value } } export default { name: 'touch-hold', bind (el, binding)...
class GeocodedItem { constructor(item, geocode) { this.item = item; this.geocode = geocode; } static geoJSONFeatureCollection(geocodedItems) { return { type: "FeatureCollection", features: geocodedItems.map(geocodedItem => { const item = geoco...
/* jshint node: true */ 'use strict'; var Promise = require('ember-cli/lib/ext/promise'); var DeployPluginBase = require('ember-cli-deploy-plugin'); var cpr = require('cpr'); var SilentError = require('silent-error'); module.exports = { name: 'ember-cli-deploy-cp', createDeployPlugin: function(options...
/* eslint-disable import/no-mutable-exports, global-require */ import prism from 'prismjs'; import 'prismjs/components/prism-css'; import 'prismjs/components/prism-diff'; import 'prismjs/components/prism-javascript'; import 'prismjs/components/prism-json'; import 'prismjs/components/prism-jsx'; import 'prismjs/compone...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['655',"Tlece.Recruitment.Entities Namespace","topic_0000000000000265.html"],['914',"tlece_CompanyStaffVideos Class","topic_0000000000000356.html"],['915',"Properties","topic_0000000000000356_props--.html"],['922',"Or...
(function () { var root = this; define('jquery', [], function () { return root.jQuery; }); define('knockout', [], function () { return root.ko; }); })();
import React from 'react'; import AppRouter from './routes'; const App = () => <AppRouter />; export default App;
/* * Ext JS Library 2.2.1 * Copyright(c) 2006-2009, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.tree.TreePanel * <p>The TreePanel provides tree-structured UI representation of tree-structured data.</p> * <p>{@link Ext.tree.TreeNode TreeNode}s added to the TreePanel may...
import angular from 'angular'; class Path { constructor(x, y) { this.d = `M${x},${y}`; } lineTo(x, y) { this.d += `L${x},${y}`; return this; } arc(rx, ry, rotate, f1, f2, x, y) { this.d += `A${rx} ${ry},${rotate},${f1},${f2},${x} ${y}`; return this; } close() { this.d += 'Z'; ...
/* global sleep:false */ import assert from 'assert' import Timer from '../Timer' const fullTime = 10000 const timer = new Timer({ timeout: fullTime }) const st = {} timer.watch((state) => { st.running = state.running st.timeout = state.timeout }) timer.watch((state) => { if (state.timeout === 0) assert.equal(...
'use strict'; /* jasmine specs for controllers go here */ describe('controllers', function() { var scope; var rootScope; var ctrl; var busServiceMock; beforeEach(module('myApp.controllers')); describe('LightsController', function() { beforeEach(inject(function($rootScope, $contro...
/** * jscolor, JavaScript Color Picker * * @version 1.4.3 * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html * @author Jan Odvarko, http://odvarko.cz * @created 2008-06-15 * @updated 2014-07-16 * @link http://jscolor.com */ var jscolor = { dir : '', /...
// muri /** * MongoDB URI parser as described here: * http://www.mongodb.org/display/DOCS/Connections */ /** * Module dependencies */ var qs = require('querystring'); /** * Defaults */ const DEFAULT_PORT = 27017; const DEFAULT_DB = 'test'; const ADMIN_DB = 'admin'; /** * Muri */ module.exports = exports...
var state = { games: [], players: [], questions: [], roundTimer: 0 }; module.exports = { db: state, get: get, add: add }; function get(id) { return { from: function(type) { return state[type].filter(function(item){ return item.id == id; }).shift(); } }...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Users } from '../../components'; import * as usersActions from '../../actions/usersActions.js'; class UsersContainer extends Component { render() { const { onSearch, ...props } = this.props; return <Users {...this.prop...
(function ($) { 'use strict'; //<editor-fold desc="Shims"> if (!String.prototype.includes) { (function () { 'use strict'; // needed to support `apply`/`call` with `undefined`/`null` var toString = {}.toString; var defineProperty = (function () { // IE 8 only supports `Object.defineP...
var $overlay=$("<div id='overlay'></div>"),$image=$("<img>"),$cap=$("<p></p>");$overlay.append($image),$overlay.appned($cap),$("body").append($overlay),$("#imageGallery a").click(function(a){a.preventDefault();var e=$(this).attr("href");$image.arrt("src",e),$overlay.show();var r=$(this).children("img").attr("alt");$cap...
function DynamicBackground(canvasId) { this.canvas = document.querySelector(canvasId); this.particles = []; if(this.canvas) { this.observeWindowSize(); this.observeAccelerometer(); this.addParticules(); this.runLoop(); } } DynamicBackground.prototype.observeWindowSi...
/*! * jQuery Form Plugin * version: 2.92 (22-NOV-2011) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(function($...
const { expect } = require('chai'); const gradeDetect = require('.'); describe('Function: gradeDetect', () => { describe('Definition', () => { it('should be a function', () => { expect(typeof gradeDetect).to.equal('function'); }); it('should have 3 parameters', () => { expect(gradeDetect.len...
'use strict'; /* * This program is distributed under the terms of the MIT license: * <https://github.com/v0lkan/talks/blob/master/LICENSE.md> * Send your comments and suggestions to <me@volkan.io>. */ export default [ 'a', 'able', 'about', 'above', 'abst', 'accordance', 'according', 'accordingly', 'a...
/* Copyright © 2016 Annpoint, s.r.o. 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 in writing,...
; /*! * Tarsier JavaScript Library v1.0.1 * http://github.com/moky/Tarsier/ * * Copyright 2013 moKy at slanissue.com * Released under the MIT license * http://jquery.org/license * * Date: 2013-12-11 T10:43Z */ /** * * String: UTF convertor * * Author: moKy @ Jan. 20, 2014 * */ !function(tarsier) { ...
'use strict'; 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; }; var _createClass = function () { function defi...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; module('Integration | Component | Timeline Image', function(hooks) { setupRenderingTest(hooks); test('it renders using the inline synt...
import React, { Component } from 'react' import { connect } from 'react-redux' import Immutable from 'immutable' import * as actions from '../actions/report_details' import LocationSelector from '../components/location_selector.js' import UploadPhotoButton from '../components/upload_photo.js' import Submit from '../co...
#! /bin/bash # ./export.sh 20150823 echo $@ mkdir $@ {{#each collection_names}} nohup mongoexport -d {{../config.db}} -c {{this}} -o $@/{{this}}.json --host {{../config.host}} --port {{../config.port}} -u {{../config.username}} -p {{../config.password}} >> $@.log {{/each}}
var uuid = require('uuid'); const addBoundSubcription = ( l, x ) => ( e, h ) => l.subscribe( e, h.bind( x ) ); const attachCardEvents = (card) => { var addQueueSubscription = addBoundSubcription( card.queue, card ); addQueueSubscription( 'card.moved', Card.prototype.moved ); addQueueSubscription( 'card.updated...
'use strict'; /* Controllers */ var phonecatApp = angular.module('phonecatApp', []); phonecatApp.controller('PhoneListCtrl', ['$scope', '$http', function($scope, $http) { $http.get('profiles/profiles_20151201.json').success(function(data) { $scope.phones = data; $scope.phones.profiles = []; $scope.phon...
import 'raf/polyfill' import React from 'react' import { createSnapshot } from 'jest-react-fela' import { FelaTheme } from 'react-fela' describe('Using the FelaTheme component', () => { it('correctly pass the theme down', () => { expect( createSnapshot( <FelaTheme> {theme => <div>The col...
var rest = "KLMNOPQRSTUVWXYZ".split(""); function A() { console.log("A"); B(); }; function B() { console.log("B"); C(); }; function C() { console.log("C"); D(); } function D() { console.log("D"); E(); } function E(f) { console.log("E"); F(); } function F() { console.log("F"); G(); }; function G() { c...
import unitConverter from 'src/helpers/unitConverter'; export default { /** * Overwrite existing node's style with the given style */ overwriteStyle(target, source) { Object.keys(source).forEach((styleKey) => { target[styleKey] = source[styleKey]; }); }, /** * Complete the render height...
version https://git-lfs.github.com/spec/v1 oid sha256:baf12f91b33c9d79866979125b927533b06b52ce2377ac2c163b919250cbbbf3 size 1796
(function () { 'use strict'; var app = angular.module('makeathons'); app.component('challengeQuickViewComponent', { templateUrl: 'modules/challenges/client/views/quick-view-challenge.client.view.html', controller: challengeQuickViewComponent, controllerAs: 'vm' }); ...
var React = require('react'); var PutForm = require('./putform.js') // Modal class with four default props: // opacity = level of transparency of takeover // display = block or inline // visibility = hidden // show = true or false var Modal = React.createClass({ getDefaultProps: function() { return {opacity: 50...
"use strict"; var datastore = require('../datastore'); exports.description = "add new sshfs endpoints"; exports.aliases = ['+']; exports.options = { force: { type: 'bool', short: 'f', help: 'add endpoint even if name is already in use' }, name: { type: 'string', named: false, position: 0, require: ...
// As an air traffic controller // So I can get passengers to a destination // I want to instruct a plane to land at an airport and confirm that it has landed describe('Airport',function(){ var airport; var plane; beforeEach(function(){ airport = new Airport(); plane = 'plane'; Airport.prototype.isS...
/** * 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 * @flow * @emails oncall+relay */ // flowlint ambiguous-object-type:error 'use strict'; const RelayModernEnvironmen...
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: 'OK', clear: 'Leeren' }, datepicker: { now: 'Jetzt', today: 'Heute', cancel: 'Abbrechen', clear: 'Leeren', confirm: 'OK', selectDate: 'Datum wählen', selectTime...
const pth = require('path'); const _ = require('./utils'); const config = require('./config'); // 项目的根目录 // const rootPath = pth.resolve(__dirname, '../../'); // TODO 为了测试, 把根目录设为当前目录 const rootPath = pth.resolve(__dirname, '../'); // 查看配置中是否设置了changeFile const needChange = config.changeFiles && config.changeFiles.l...
var appConfig = require(require('path').join(__dirname, '..', '..', 'json', 'app_config.json')); var request = require('request'); module.exports = { send: function (options) { var payload = { text: options.message, username: appConfig.slack_from_username, channel: options.to }; request.post(appConfig.slack_web...
var bcrypt = require('bcrypt'); exports.cryptPassword = function (password, callback) { bcrypt.genSalt(10, function (err, salt) { if (err) return callback(err); bcrypt.hash(password, salt, function (err, hash) { return callback(err, hash); }); }); }; exports.co...
const path = require('path'); const assert = require('assert'); const sander = require('sander'); const rollup = require('../../dist/rollup'); const { extend, normaliseOutput, runTestSuiteWithSamples } = require('../utils.js'); const FORMATS = ['amd', 'cjs', 'system', 'es', 'iife', 'umd']; runTestSuiteWithSamples('fo...
/* * Express Router for serving the templates * Team pclubGU * The MIT License */ var http = require('http'), express = require('express'), session = require('express-session'), fs = require('fs'), mysql = require('mysql'), em = require('./emailserver'), bodyParser = require('body-parser'), ...
var Spreader : GameObject; var SpreaderCount : int = 3; function Awake() { for(var i : int = 0; i<SpreaderCount; i++) { Instantiate(Spreader, transform.position, Quaternion.identity); } } function Start() { Destroy(gameObject); }
"use strict"; const Promise = require( "bluebird" ); const DependencyTreeNode = require( "./treeNode" ); const errors = require( "../errors" ); const fs = Promise.promisifyAll( require( "fs" ) ); const log = require( "fm-log" ).module(); const path = require( "...
'use strict'; const { expect } = require('chai'), path = require('path'), uncss = require('./../src/uncss.js'); describe('jsdom', () => { it('Should process CSS', async () => { const { css } = await uncss(['tests/jsdom/basic.html']); expect(css).to.include('.evaluated'); }); it('...
'use strict'; // Wires controller angular.module('wires').controller('WiresController', ['$scope', '$stateParams', '$location', 'Authentication', 'Wires', 'Funds', 'Users', function($scope, $stateParams, $location, Authentication, Wires, Funds, Users) { $scope.authentication = Authentication; $sco...
const models = require('../models') const Category = models.Category const Item = models.Item const User = models.User module.exports = { getAllCategories: (req, res) => { Category.findAll({ order: [ ['name', 'ASC'], ] }).then((data) => { res.stat...
/* * @fileoverview Chang-Roberts algorithm, which will only work after directed graphs are in... */ //noinspection JSUnresolvedFunction randomizeTraversalTimes(); // optional //noinspection JSUnresolvedFunction addJitterToTraversalTimes(); // optional //noinspection JSUnresolvedFunction randomizeProcessTimes(); // o...
process.env.NODE_ENV = 'test'; process.env.PUBLIC_URL = ''; const jest = require('jest'); const argv = process.argv.slice(2); // Watch unless on CI if (!process.env.CI) { argv.push('--watch'); } jest.run(argv);
var Backbone = require('backbone'); var UserModel = Backbone.Model.extend({ defaults: { id: 0, name: '', email: '', image: '' } }); module.exports = UserModel;
var SeatManager = function(options) { var $ = options.$, pubsub = options.pubsub, OppositePlayer = options.OppositePlayer, seats = options.seats, defaultPlayerOptions = options.defaultPlayerOptions, currentSeatIndex = 0, getSeat = function() { var seat; if (currentSeatIn...
import angular from 'angular'; const storageKey = "HISTORY"; export default class SearchBarController { constructor($window, $mdToast, OmdbService) { this.$window = $window; this.$mdToast = $mdToast; this.OmdbService = OmdbService; this.selected = null; } search(query) { if (query && query ...
/** @module ember-flexberry */ import Ember from 'ember'; import RequiredActionsMixin from '../mixins/required-actions'; import DomActionsMixin from '../mixins/dom-actions'; import DynamicPropertiesMixin from '../mixins/dynamic-properties'; import DynamicActionsMixin from '../mixins/dynamic-actions'; /** Componen...
describe("The mainCtrl", function() { beforeEach(module('tictactoe')); var ColourService, GamePlayService, GameConst, $q; var controller, $scope; beforeEach(inject(function(_$controller_, _$q_, _GameConst_, _GamePlayService_, _ColourService_, _$rootScope_){ ColourService = _ColourService_; GamePlaySer...
var struct_s_a_i___type_def = [ [ "GCR", "struct_s_a_i___type_def.html#ada6999b49bbe697c1dd5fdabc9bad7f4", null ] ];
/* global describe, it */ ;(function(){ 'use strict'; beforeEach(function(){ previousResult = undefined; nextOperation = undefined; $('#displayoutput').val(''); }); function type(){ var args = Array.prototype.slice.call(arguments); args.forEach(function(arg){ press(arg); }); }...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc.5-master-42833aa */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.bottomSheet * @description * BottomSheet */ angular .module('material.components.bottomSh...
'use strict'; module.exports = { name: 'ember-scroll-preview' };
describe("BASIC CRUD SCENARIOS", function() { require("./basic"); }); describe("VALIDATE SCENARIOS", function() { require("./validate"); });
localStorage.debug = 'revolt:*'; import 'babel-polyfill'; require('../../src/index.styl'); import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from '../common/store'; import App from '../common/container'; const initialSta...
import {Helmet} from 'react-helmet'; import {assert} from 'chai'; import sinon from 'sinon'; import any from '@travi/any'; import respond from '../../../../src/server/view/html-renderer'; import * as assetManager from '../../../../src/server/view/asset-manager'; suite('html renderer', () => { let sandbox; const h ...
false 0 // The only falsy number "" // the empty string null undefined NaN
import Ember from 'ember'; var MyButtonComponent = Ember.Component.extend({ actions: { showConfirmation: function() { this.toggleProperty('isShowingConfirmation'); }, confirm: function() { this.toggleProperty('isShowingConfirmation'); this.sendAction('action', this.get('param')); ...
/** * Blueprint API Configuration * (sails.config.blueprints) * * These settings are for the global configuration of blueprint routes and * request options (which impact the behavior of blueprint actions). * * You may also override any of these settings on a per-controller basis * by defining a '_config' key in...
(function() { 'use strict'; var app = angular.module("angular-jaydata-table"); app.directive("jayTablePagination", jayTablePaginationDirective); function jayTablePaginationDirective($rootScope) { return { restrict: 'E', template: '<div class="bt...
// app/pods/prereg/route.js import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { fileManager: Ember.inject.service(), actions: { preregister(name, files) { let fileNa...
'use strict'; angular.module('mean.meetup', ['ngMap']).controller('MeetupsController',['$scope', '$stateParams', '$location', 'Global', 'Meetups', 'Lectures','MeanUser', 'Circles', function($scope, $stateParams, $location, Global, Meetups,Lectures, MeanUser, Circles){ $scope.global = Global; // $scope.map = {...
/* @flow */ /*:: declare class ByteBuffer { constructor( capacity?: number, littleEndian?: boolean, noAssert?: boolean ): this; static BIG_ENDIAN: boolean; static DEFAULT_CAPACITY: number; static DEFAULT_NOASSERT: boolean; static LITTLE_ENDIAN: boolean; static MAX_VARINT32_BYTES: number; ...
/* * json-sharp - v0.1.0 * Process operations on pure JSON objects * * Made by Globo.com * Under MIT License */ (function (root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports = factory(); } els...
/* account.js - checkpoint account test The MIT License (MIT) Copyright (c) 2013 Dale Schumacher, Tristan Slominski 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, includin...
ddescribe("TestSpec", function() { it("should be able to shabang", function() { }); });
/** * Theme: Adminox Dashboard * Author: Coderthemes * Chart c3 page */ !function($) { "use strict"; var ChartC3 = function() {}; ChartC3.prototype.init = function () { //generating chart c3.generate({ bindto: '#chart', data: { columns: [ ...
var error = require('./lib/error'); var createServer = require('./lib/server'); var produceConfig = require('./lib/config'); module.exports = { error: error, createServer: createServer, produceConfig: produceConfig };
// @flow module.exports = { ...require('./current'), ...require('./delete'), ...require('./get'), ...require('./list'), ...require('./set') };
import React from 'react'; import SkillBadge from 'components/SkillBadge'; class SkillOverview extends React.Component { constructor(props) { super(props); } render() { var skills = this.props.skills.map((skill) => ( this.props.update ? <SkillBadge key={skill.name} skill={skill} update={this.props.updat...
var assert = require('assert'); var expected, current; before(function(){ expected = ['a', 'b', 'c']; }) describe('String#split', function(){ beforeEach(function(){ current = 'a,b,c'.split(','); }) it('should return an array', function(){ assert(Array.isArray(current)); }); it('should return the sam...
var express = require( 'express' ), morgan = require( 'morgan' ), bodyParser = require( 'body-parser' ), session = require( 'express-session' ); // Initialize express var app = express(); app.isDev = function () { return app.get( 'env' ) === 'development'; }; app.isPr...
// Generated by CoffeeScript 1.7.1 var createStockSocket, onmessage, sockets; sockets = []; /* { action: '' (start, close) payload: '' (symbol, null) } */ onmessage = function(ev) { var socket, _i, _len; console.log('received message from spawner!'); if (ev.data.action === 'start') { sockets.push(cre...
// app/models/article.js // load the things we need var mongoose = require('mongoose'); // define the schema for our user model var recolteSchema = mongoose.Schema({ date : {type: Date, default: Date.now}, poids: Number, plant : {type: mongoose.Schema.Types.ObjectId, ref: 'Plant'} }); // create the model for ...
(function () { 'use strict'; angular .module('angularPoint') .constant('apInputConstants', { defaultNumberOfColumns: 3, defaultNumberOfRows: 6, defaultTextAreaColumns: 12, defaultViewportSize: 'sm' }); })();
$(function() { $('#profile-photo-preview').imagepreview({ input: '[id="profile-photo-input"]', preview: '#profile-photo-preview', }); $("#btn-delete-profile-photo").click(function(){ $("#profile-photo-preview").empty() $("#input-delete-photo").val("1") }) })
"use strict"; const expect = require('expect.js'), __ = require('../../lib/kansuu.js'), base = require('../../lib/kansuu-base.js'), med = require('../../examples/medical.js'); describe("'medical' example", () => { it('BMI', (next) => { expect( med.BMI(75, 175) ).to.be.within(24.0, 25.0) next...
/* */ "format cjs"; /*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.9.4 */ goog.provide('ng.material.core'); /** * Initialization function that validates environment * requirements. */ angular .module('material.core', [ 'material.core.gestures', 'material.core.themi...
var colors = colors || window.colors; var hueIP = '192.168.0.7'; var hueUser = 'M4dsHptOWsG4OrAEbVRWWZEYNCP6NhBId93AT5Vy'; var activatedLights = []; var getHueIP = function() { $.get( "https://www.meethue.com/api/nupnp", function( body ) { var ip = body[0] ? body[0].internalipaddress : '0.0.0.0'; h...
(function ($) { "use strict"; $(function () { $('a[href*=#]:not([href=#])').on('click', function () { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var target = $(this.hash); target = targ...
/** * @name CompanySegments * @description This module exposes functions * related to the `/company_segments` path. * * @module CompanySegments **/ import routes from '../routes' import request from '../request' /** * `GET /company_segments` * Makes a request to /company_segments * * @param {Ob...
// Will need to get login data in the future var data = require('../data.json'); exports.viewHelp = function(req, res){ res.render('help', data); };
const sceneDescription = { assets: [ { name: 'backTex', type: 'texture', path: 'assets/textures/background.png' }, { name: 'trackTex', type: 'texture', path: 'assets/textures/road.png' }, { na...
/*! * Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file. */ import {assert} from '@webex/test-helper-chai'; import lolex from 'lolex'; import Metrics, {config} from '@webex/internal-plugin-metrics'; import MockWebex from '@webex/test-helper-mock-webex'; import sinon from '@webex/test-helper-sinon'; import...
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { I18nHelper } from '/imports/helpers/i18n'; import {ReactiveVar} from 'meteor/reactive-var'; let supportedLocales = new ReactiveVar([]); Template.localeDialog.onCreated(function () { Meteor.call('getAvailableLocales', ...
function hasCustom (item) { return hasAttribute(item, 'booleans', Object.keys(state.booleans), 0) && hasEquals(item, 'numerics', Object.keys(state.numerics), 0) && hasEquals(item, 'types', Object.keys(state.types), 0) && hasRanges(item, 'sliders', Object.keys(state.sliders), 0) && hasRanges(item, 'ra...
/* * Copyright (c) 2012 Adobe Systems Incorporated. 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 without restriction, including without limitation * the ri...
/*! * Zen To Done * https://git.io/zentodone * * Copyright 2014 Stephan Boennemann * * Released under the MIT license. */ angular.module('zentodone', ['bp', 'angular-loading-bar', 'hoodie', 'monospaced.elastic']) .config(function($urlRouterProvider, $stateProvider, bpAppProvider, cfpLoadingBarProvider) { ...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow * @emails oncall+relay */ // flowlint ambiguous-object-type:error 'use strict'; import type {Normalizatio...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'dummy', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-contr...
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Button, Tooltip, Menu, Dropdown, Icon } from 'antd'; import './EditorToolbar.less'; const tooltip = (description, shortcut) => (<span> {description} <br /> <b> {shortcu...
/* Copyright (c) 2014 Jonathan Herman - MIT License */ /* https://github.com/jdh11235/JSchunks */ TriggerEvent = function(eventName, element) { var event = document.createEvent("HTMLEvents"); event.initEvent(eventName, true, true); event.eventName = eventName; element.dispatchEvent(event); };
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'wishlist'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSan...