code
stringlengths
2
1.05M
import Component from '@ember/component'; import layout from '../../templates/components/nypr-story/share-buttons'; import { shareUrl } from 'nypr-ui/helpers/share-url'; export default Component.extend({ layout, classNames: ['btn-group'], actions: { popupShareWindow(destination) { let shareText = this....
define(['angular'], function(angular) { angular.module('kap-hal', []) .factory('HalClient', function($http, $q) { function HalClient(baseUrl) { function encodeQuery(obj, prefix) { var str = []; for(var p in obj) { var k = prefix ? pre...
import React from 'react'; import classNames from 'classnames'; export default class Base extends React.Component { _bind(...methods) { methods.forEach( (method) => this[method] = this[method].bind(this) ); } getDom() { return React.findDOMNode(this.refs.DOM); } componentWillUnmoun...
var express = require('express'); var router = express.Router(); var passport = require('passport'); var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; var knex = require('../db/knex'); var jwt = require('jsonwebtoken'); var env = { clientID: process.env.CLIENT_ID, clientSecret: process.env.CLIE...
define(['../core'],function(Fsy){ var class2type = {}; var serialize = class2type.toString; var rword = /[^, ]+/g; 'String Number Boolean RegExp Function Array Object Date Error'.replace(rword,function(name){ class2type['[object ' + name + ']'] = name.toLowerCase(); }); function type(obj){ if(obj...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Organization Schema */ var OrganizationSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Organization name', trim: true }, numOfPeople:{ type: Number, requi...
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /*! * Next JS * Copyright (c)2011 Xenophy.CO.,LTD All rights Reserved. * http://www.xenophy.com */ // {{{ NX.app.action.Abstract.$execute module.exports = function() { }; // }}} /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * c-hang...
version https://git-lfs.github.com/spec/v1 oid sha256:c00a0d6f26909d8d0d7fd09e51000bf2b68f1c8c721aef82416f6bd1100ed7ef size 3645
/* Original version taken form https://github.com/tadruj/s3upload-coffee-javascript * License * Copyright 2013 tadruj * * 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.ap...
module.exports = function(config){ config.set({ basePath : './', files : [ 'app/bower_components/angular/angular.js', 'app/bower_components/angular-route/angular-route.js', 'app/bower_components/angular-mocks/angular-mocks.js', 'app/bower_components/lodash/dist/lodash.js', 'app/co...
var slaying = true; var youHit = Math.floor(Math.random() * 2); var damageThisRound = Math.floor(Math.random()*5 + 1); var totalDamage = 0; while(slaying) { if (youHit) { console.log("You hit the dragon!"); totalDamage += damageThisRound; if (totalDamage >=4) { console....
/** * A convenient table-based frontend for displaying Heartbeat data to the user * * Copyright (c) 2017 Harry Burt <http://www.harryburt.co.uk>. * @module heartbeat/table * @license MIT */ (function($) { var tableData = {}, id = false, $parent = false, monthShown = '', monthsLoaded = []; /** * Sets a series...
"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")...
(function(){ 'use strict'; angular .module('social.layout.controllers') .controller('NavbarController', NavbarController); NavbarController.$inject = ['$scope', 'Authentication']; function NavbarController($scope, Authentication){ $scope.logout = function(){ Authentication.logout(); }; ...
var Server = require('..').Server var config = require('../config') var multilevel = require('multilevel') var fancy = new Server() var server = fancy.start(config) var client = multilevel.client(require(config.manifest)) server.pipe(client.createRpcStream()).pipe(server) server.on('error',console.log) client.put('t...
var essb_subscribe_opened = {}; var essb_subscribe_popup_close = function(key) { jQuery('.essb-subscribe-form-' + key).fadeOut(400); jQuery('.essb-subscribe-form-overlay-' + key).fadeOut(400); } var essb_toggle_subscribe = function(key) { // subsribe container do not exist if (!jQuery('.essb-subscribe-form-' + ke...
/*eslint-env node, jasmine*//*global module, inject*/ /*eslint-disable max-statements, max-params*/ import angular from 'angular'; import 'angular-mocks'; import 'luxyflux/ng-luxyflux'; import { Store, PaginationState, PaginatableStore, PaginatableStoreBehavior, TransformableCollection, Transformer, Anno...
// var express = require('express'); // var router = express.Router(); // // /* GET home page. */ // router.get('/', function(req, res, next) { // res.render('index', { title: 'Express' }); // }); // router.post('/index',function(req,res){ // console.log(req.body.username); // }); // module.exports = router; var r =...
import React, { Component, PropTypes } from 'react'; import { View, Dimensions } from 'react-native'; export default class Stage extends Component { static propTypes = { children: PropTypes.any, height: PropTypes.number, style: PropTypes.object, width: PropTypes.number, }; static defaultProps ...
'use strict'; describe('Utilities', function () { beforeEach(module('septWebRadioFactories')); var utilities, scope; beforeEach(inject(function ($rootScope, _utilities_) { scope = $rootScope.$new(); utilities = _utilities_; })); describe('removeObjectById', function () { it('should return the...
/** * @file 配置文件 * @author yanhaijing.com * @date 2015年12月26日 17:26:48 */ var dist = 'dist' var gulp = require('gulp') var browserSync = require('browser-sync') var del = require('del') var babel = require('gulp-babel') var sass = require('gulp-ruby-sass') var concat = require('gulp-concat') var cache = require(...
$(document).on('feedPushed', function () { showNumberOfFeeds(); }); function showNumberOfFeeds(){ feedManager.queue.then(function (snapshot) { if (snapshot.val()) { console.log('render snapshot') feedManager.inbox.then(function (result) { $("#divCounter").show().text(resul...
'use strict'; var crmService = '/XRMServices/2011/Organization.svc'; exports.authUrl = 'https://login.microsoftonline.com/RST2.srf'; exports.getOrganizationEndpoint = function(organizationUrl) { return organizationUrl + crmService; };
{ return doc.readyState === "complete" || doc.readyState === requiredReadyState; }
/* Return an object with the following members: * - n: the number of vertices * - hasEdge(i, j): function which returns true iff. ij is an edge * - canvas: an HTML 5 canvas element * - position(i): determine the position of vertex i on the canvas * - timeInterval: the amount of time it takes to draw a vertex or ed...
var bcrypt = require('bcrypt'); var redisHelper = require('./redis'); var db = redisHelper.getConnection(); function findByUsername(username, next) { db.hget('users', username, function(err, hashedpw) { if (hashedpw != null) { var user = { username: username, hashedpw: hashedpw, ad...
'use strict'; module.exports = function (grunt) { // Load grunt tasks automatically, when needed require('jit-grunt')(grunt, { express: 'grunt-express-server', useminPrepare: 'grunt-usemin', ngtemplates: 'grunt-angular-templates', cdnify: 'grunt-google-cdn', protractor:...
const initialState = { user: null, showLoginForm: false, loginError: '' }; const login = (state = initialState, action) => { switch (action.type) { case 'SHOW_LOGIN_FORM': return {...state, showLoginForm: true}; case 'CLOSE_LOGIN_FORM': return {...state, showLoginForm: false, loginError: ''...
import React, { Component } from 'react'; import { Text, View, TouchableOpacity, } from 'react-native'; import SearchBar from 'react-native-searchbar'; export default class SearchContainer extends Component { constructor(props) { super(props); this.state = { items, results: [] }; t...
'use strict'; var app = angular.module('notifications', []); angular.module('notifications').filter('displayFilter', function() { return function(dateString) { if(dateString === null){ dateString = '(no due date)'; return dateString; } else{ return moment(dateString).calendar(); } }; }); angular...
$(document).ready(function() { $('#submit_profile_post').click(function(){ $.ajax({ type: "POST", url: "includes/handlers/ajax_submit_profile_post.php", data: $('form.profile_post').serialize(), success: function(msg){ $('#post_form').modal('hide'); location.reload(); }, error: fu...
import { h, Component } from 'preact'; import osmAuth from 'osm-auth'; import OsmEditHelper from 'helper/osmEdit'; export default class TagForm extends Component { constructor(props) { super(props); const state = {}; Object.keys(props.diffObject.tags).forEach( key => (state[key] = props.diffObjec...
( function() { 'use strict'; app.controller('SupCategoriasIncidentesCtrl', SupCategoriasIncidentesCtrl); /** @ngInject */ function SupCategoriasIncidentesCtrl($scope, $rootScope, SuporteCategoriasService) { var TIPO_INCIDENTES = 32; var mes = moment($rootScope.mes); $scope.ch...
const fs = require('fs') , Log = require('log') , logFile = new Log('file', fs.createWriteStream('log/production.log')) , logPrint = new Log('print'); function info(string) { logPrint.info(string); logFile.info(string); } function debug(string) { logPrint.debug(string); logFile.debug(strin...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import router from './router' import store from './store' import ElementUI from 'element-ui' import axios from 'axios' import 'elemen...
'use strict'; const assert = require('assert'); const poll = require('io/poll'); var res = poll.poll([], 0); assert.equal(res.nevents, 0); assert.equal(res.fds.length, 0);
// Copyright (c) 2014, 2015 Adobe Systems Incorporated. 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 ...
import hypothenuse from './util/hypothenuse'; // [0, 2*PI] -> [-PI/2, PI/2] const signedAngle = angle => angle > Math.PI ? 1.5 * Math.PI - angle : 0.5 * Math.PI - angle; /** * angles are stored in radians from in [0, 2*PI], where 0 in 12 o'clock. * However, one can only select lines from 0 to PI, so we compute th...
/** * Main JS file for Casper behaviours */ /*globals jQuery, document */ (function ($) { "use strict"; $(document).ready(function(){ $('.ui.post.fadedown') .transition({ animation : 'fade down', duration : '1s' }) ; $('.ui....
version https://git-lfs.github.com/spec/v1 oid sha256:e9a114f09610412c8fac54fda708b90c6d17ea5bd01ab7dad7947f02a1806c8b size 24073
import Entity from 'entity'; import Seller from 'seller'; import InvoiceRow from 'invoiceRow'; export default class Invoice { constructor(number, dateOfIssue, dateTaxEvent, sellerIdNumber, buyer, invoiceRows, transactionLocation, //payment, //explanat...
/* * This file is part of the Spludo Framework. * Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/ * * Licensed under the terms of MIT License. For the full copyright and license * information, please see the LICENSE file in the root folder. */ /** * @class A toolkit for convenient functions to work on ...
angular.module('auth', []).factory( 'auth', function($rootScope, $http, $location) { enter = function() { if ($location.path() != auth.loginPath) { auth.path = $location.path(); if (!auth.authenticated) { $location.path(auth.loginPath); } } } var auth = { authentic...
'use strict'; exports.up = (db) => { return db.addColumn('tip', 'isApproved', { type: 'boolean', notNull: true, defaultValue: false }) .then(() => db.runSql('UPDATE tip SET "isApproved" = true')); }; exports.down = (db) => { return db.removeColumn('tip', 'isApproved'); };
const i_common = require('./common'); const common_left_bracket = ['(', '{', '[']; const common_right_bracket = [')', '}', ']']; const common_left_right_bracket_map = { '(': ')', '{': '}', '[': ']', '<': '>' }; /* env = { tokens, cursor, ...} */ function decorate_skip_current_line(env) { let st = env.cursor; ...
// Given a linked list, determine if it has a cycle in it. // // Follow up: // Can you solve it without using extra space? /** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} head * @return {boolean} */ var hasCycle ...
import * as Q from 'q' import { BaseModelRDMS } from './BaseModel.RDMS' // // Main // export class Main extends BaseModelRDMS { /** * Constructor */ constructor() { super('EMPTY') } /** * Run a system healthcheck * * @return {promise} */ doHealthcheck() { let deferred = Q.defer()...
import Ember from 'ember'; const { Controller } = Ember; export default Controller.extend({ tabs: [ { name: 'Pictures', route: 'media.pictures', icon: 'fa fa-image' }, { name: 'Music', route: 'media.music', icon: 'fa fa-music' } ] });
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.68 14.98H6V9h1.71c1.28 0 1.71 1.03 1.71 1.71v2.56c0 .68-.42 1.71-1.74 1.71zm4...
import { Meteor } from 'meteor/meteor'; import { createContainer } from 'meteor/react-meteor-data'; import { ReactiveVar } from 'meteor/reactive-var'; import FilesPage from '../pages/FilesPage'; import filesCollection from '../../api/files/collection'; const selectedUid = new ReactiveVar(null); const FilesContainer ...
/* */ define(['exports', 'i18next', './utils'], function (exports, _i18next, _utils) { 'use strict'; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constr...
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'id', { title: 'Instruksi Accessibility', contents: 'Bantuan. Tekan ESC untuk menutup dialo...
import Ember from 'ember'; export default Ember.Component.extend({ tagName: 'nav', classNames: ['navbar', 'navbar-default', 'navbar-static-top'] });
/* global console*/ var async = require('async'); var fs = require('fs'); var getModule = require('module-details'); var pack = require('./package.json'); var moduleList = pack.modules; // sort module list and re-write it to package.json moduleList.sort(); pack.modules = moduleList; fs.writeFileSync('package.json', J...
import angular from 'angular'; import {Annotation} from './annotation'; import {Annotations} from './annotations'; import {addStaticGetterObjectMember, addStaticGetter} from './utils'; export class ActionsAnnotation extends Annotation { get serviceName() { const name = this.name; return `${name[0].toUpper...
/* * examples/streaming.js: outline streaming interface */ var util = require('util'); var skinner = require('../lib/skinner'); var datapoints, bucketizers, stream; /* * See the "basic" example first. */ bucketizers = {}; datapoints = [ { 'fields': { 'city': 'Springfield', 'state': 'MA' }, 'value': 153000 }, ...
'use strict'; var nodemailer = require('nodemailer'); // Create a SMTP transporter object var transporter = nodemailer.createTransport( { host: 'smtpout.secureserver.net', port: 465, auth: { user: 'mail@pcaso.io', pass: 'lego2020.Gulch' }, secure: true } ); ...
(function () { 'use strict'; angular.module('yoga24') .factory('BeginnerLessons', ['DataSource', '$firebaseArray', function(DataSource, $firebaseArray) { return $firebaseArray(DataSource.child('/beginners')); }]) .controller('BeginnerCtrl', ['$scope','BeginnerLessons', 'Auth', 'Route', 'No...
/*! * DevExtreme (dx.messages.vi.js) * Version: 20.1.10 (build 21027-0322) * Build date: Wed Jan 27 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function"...
/** * This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module. * * Note that this file should only contain controllers and nothing else. */ (function() { 'use strict'; angular.module('frontend.snapshots') .controller('SnapshotsController', [ ...
/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("codesnippet","tt",{button:"Код өзеген өстәү",codeContents:"Код эчтәлеге",emptySnippetError:"Код өзеге буш булмаска тиеш.",language...
let MetricsCard = { bindings: { title: '@', test: '@', maintainability: '@', security: '@', workmanship: '@' }, controllerAs: 'MetricsCardCtrl', templateUrl: 'templates/dashboard/components/metrics-card.html' }; export default MetricsCard;
module.exports = function (grunt) { grunt.initConfig({ slingImport: { options: { replace: true }, all: { src: "src/*", dest: "/" } } }); grunt.loadTasks("../../tasks"); grunt.registerTask("d...
// https://leetcode.com/problems/permutations/description/ /** * @param {number[]} nums * @return {number[][]} */ var permute = function (nums) { let dfs = (nums, pos) => { let tempRes = []; if (pos === nums.length - 1) { tempRes.push([].concat(nums)); } else { for (let i = pos; i < nums....
'use strict'; var constant = function(_) { return function(){return _;}; }; var _config = {}; var config = { get: function(key) { var args = (arguments.length === 1? [arguments[0]]: Array.apply(null, arguments)); if (_config[key] !== void 0) { return _...
({ afterLeafletLoaded : function(component, event, helper) { setTimeout(function(){ var sanFranciscoCoordinates = [37.784173, -122.401557]; var map = L.map('map', {zoomControl: false}) .setView(sanFranciscoCoordinates, 14); var argisUrl = 'https://server.arc...
/* * GET users page. */ exports.index = function(req, res){ res.render('users/users', { title: 'Users' }); }; /* */
var t = require('tcomb'); module.exports = t.refinement(t.Number, function(n) { return n % 1 === 0; }, 'code');
'use strict'; var reload = require('mod-reload'); (function () { var root = this; // ES6 polyfills Number.isInteger = Number.isInteger || function(value) { return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; }; Number.isNaN = Number.isNaN || function(value) ...
var config = require('../config'); var pathLib = require('path') var env = process.env.NODE_ENV || "development" var log4js = require('log4js'); log4js.configure({ appenders: [ { type: 'console' }, { type: 'file', filename: pathLib.join(config.log_dir, 'cheese.log'), category: 'cheese' } ] }); var logge...
var fs = require('fs'); var cache = require('./cache'); var nunjucks = require('nunjucks'); nunjucks.configure('views', { autoescape: true }); module.exports = function (user, repositories) { var stats = { hasEmptyRepos: false, count: repositories.length, withLicense: 0, licenses: {}, files: { 'package.j...
function normalizeValue(value, options) { if (value == null) return value; if (!options) return value; if (options.trimmed) value = value.trim(); return value; } function normalizeValueFromString(value) { if (value == null) return value; ...
// MAIN.JS - Angular's app bootstrap module module.exports = (function(angular){ var somemodule = require('./ng-some-module'); var app = angular.module('app', [somemodule.name]) .config(['$compileProvider', function ($compileProvider) { $compileProvider.debugInfoEnabled(false); }]) .fac...
// 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 winston = require('winston'); var express = require('express'); var router = express.Router(); var Contact = require('mongoose').model('Contact'); var ObjectId = require('mongoose').Types.ObjectId; router.get('/', function(req, res, next){ }); router.get('/:id', function (req, res, next) { }); router.post('/',...
Package.describe({ summary:'client side authentication using Firebase', version:'0.0.1', name:'mstn:firebase-accounts' }); Package.onUse(function(api){ api.versionsFrom('1.2'); api.use('ecmascript', 'client'); api.use([ 'mstn:firebase-core', 'mongo', 'templating' ], 'client'); api.addFile...
var AppModule = global.autodafe.AppModule; var Model = global.autodafe.Model; var ModelConstructorProxyHandler = require('./model_constructor_proxy_handler'); var path = require('path'); var fs = require('fs'); module.exports = ModelsManager.inherits( AppModule )...
var controllerDir; // Get js-controller directory to load libs function getControllerDir() { var fs = require('fs'); // Find the js-controller location var controllerDir = __dirname.replace(/\\/g, '/'); controllerDir = controllerDir.split('/'); if (controllerDir[controllerDir.length - 3] == 'adapt...
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users.server.controller'); var accessoriesPurchaseOrders = require('../../app/controllers/accessories-purchase-orders.server.controller'); // Accessories purchase orders Routes app.route('/accessories-purchase-orders') .ge...
var http = require('http'); var fs = require('fs'); function listener(request, response) { function send(err, contents) { if (err) { console.error(err); // DON'T DO THIS IN PRODUCTION } else { } } fs.readFile(require.main.filename, send); } var server = http.createServer(listener); server.lis...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.17/esri/copyright.txt for details. //>>built define("esri/dijit/editing/nls/Editor_az",{"dijit/_editor/nls/commands":{bold:"Qal\u0131n",copy:"K\u00f6\u00e7\u00fcr",cut:"K\u0259s","delete":"Sil",indent:"Girinti...
Package.describe({ name: 'colinligertwood:backbone-events', version: '1.2.3', summary: 'A module that can be mixed in to *any object* in order to provide it with a custom event channel.', git: 'https://github.com/colinligertwood/meteor-backbone-events.git', documentation: 'README.md' }); Package.onUse(functi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _stylePropable = require('../mixins/style-propable'); var _stylePropable2 = _interopRequireDefault(_stylePropable); var _windowListenable = require('../mi...
define(['backbone', 'd3', 'js/utils'], function(Backbone, d3, utils) { "use strict"; var Views = {}; Views.TimerView = Backbone.View.extend({ initialize: function() { this.model = null; this._interval = null; this._renderTitle = false; this.render();...
angular.module('option', [ 'filter.i18n', 'service.storage', 'service.setting' ]) .config(function() { }) .controller('optionController', function($rootScope, $scope, appSetting) { appSetting.bind('ready', function() { $scope.setting = $.extend(true, {}, appSetting.data); switch(w...
import Component from '../timeseries-legend-line-icon'; import TestFunctions from './__test-functions__'; describe('TimeseriesLegendLineIcon', () => { TestFunctions.isOfExpectedType(Component, 'g', 'timeseries-legend-line-icon'); TestFunctions.hasExpectedDefaultProps(Component, { height: 0, style: {}, ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.window = global.window || {})); }(this, (function (exports) { 'use strict'; /*! * Sc...
// It works. const assert = require('assert'); const fs = require('../'); fs.readFile(__filename, 'utf8').then( function (data) { var text = data.slice(3, 12); assert(text === 'It works.'); console.info(colorGreenPass(), `promise resolved: '${text}'`); } ); fs.readFile(__filename + 'n/...
"use strict"; var Generator = require("yeoman-generator"); var common = require("../app/base.js"); var deployment = require("./base.js"); module.exports = class extends Generator { constructor(args, opts) { super(args, opts); } initializing() { common.initializing(this); } prom...
define(['react','underscore'], function(React,_) { var Image = React.createClass({displayName: "Image", getInitialState: function() { return { loaded: false }; }, onImageLoad: function(e) { if (this.isMounted()) { this.setState({loaded: true}); } }, componentDidMount: function() { v...
import React from 'react' import ReactDOM from 'react-dom' import Menu from './components/Menu' import data from '!json!./data/recipes.json' window.React = React; ReactDOM.render(<Menu recipes={data} />, document.getElementById("react-container"));
(function() { /*! * @overview Ember - JavaScript Application Framework * @copyright Copyright 2011-2019 Tilde Inc. and contributors * Portions Copyright 2006-2011 Strobe Inc. * Portions Copyright 2008-2011 Apple Inc. All rights reserved. * @license Licensed under MIT license * ...
#!/usr/bin/env node const fs = require('fs'); const path = require('path'); const spawn = require('cross-spawn'); const which = require('which'); const args = process.argv.slice(2); // copied from https://github.com/kentcdodds/kcd-scripts/blob/master/src/utils.js function resolveBin(modName, { executable = modName, c...
/*! Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. Build: 4.4.2.winjs.2017.3.14 Version: WinJS.4.4 */ (function () { var globalObject = typeof window !== 'undefined' ? window : typeof sel...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.association = association; var _ormMetadata = require('../orm-metadata'); function association(associationData) { return function (target, propertyName) { if (!associationData) { associationData = { entity: propertyNam...
/** * 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'; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < argument...
import { W as WidgetBehavior, i as isEqual } from './index-f49b3280.js'; class OptionBehavior extends WidgetBehavior { static get params() { return { // contextValue: true, provideValue: false, }; } init() { this.props.disabled = (val) => { const bool = val != null; if (bool...
import * as PIXI from 'pixi.js'; import BaseWidget from './BaseWidget'; /** * A simple text label * @memberof ST.Widgets * @extends ST.Widgets.BaseWidget * * @example * let widget = new ST.Widgets.Label(myApp.root, {text: 'My Text'}); */ export default class Label extends BaseWidget { /** * @param {ST....
import _ from 'lodash'; import { t } from '../util/locale'; import { presetCollection } from './collection'; export function presetCategory(id, category, all) { category = _.clone(category); category.id = id; category.members = presetCollection(category.members.map(function(id) { return all.ite...
/*! * ws: a node.js websocket client * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com> * MIT Licensed */ var util = require('util'); /** * State constants */ var EMPTY = 0 , BODY = 1; var BINARYLENGTH = 2 , BINARYBODY = 3; /** * Hixie Receiver implementation */ function Receiver () { if...