code
stringlengths
2
1.05M
import React, { PropTypes, Component } from 'react'; import PaymentAgentsList from './PaymentAgentsList'; import WithdrawalForm from './WithdrawalForm'; import M from '../_common/M'; import Tabs from '../_common/Tabs'; export default class DepositCard extends Component { static propTypes = { paymentAgent: ...
let optionNames = [ 'Default', 'Lazy', ]; let isOptionName = (key, names = optionNames) => names.find(n => key.endsWith(n)); let AsyncDataMixin = { created () { }, mounted () { this.asyncReload(undefined, true); }, methods: { // name args optional asyncReload (propertyName, skipLazy = false...
console.log('loading module ngUser') angular.module('ngUser', []).directive('ngUser',function(){ return{ templateUrl: 'ngapp/user/template.html' } }); console.log('loaded module ngUser')
import { deprecate } from 'ember-debug'; import calculateLocationDisplay from '../system/calculate-location-display'; /* * Remove after 3.4 once _ENABLE_RENDER_SUPPORT flag is no * longer needed. */ export default function deprecateRender(env) { let { moduleName } = env.meta; return { name: 'deprecate-rend...
'use strict'; var mean = require('meanio'); module.exports = function (System, app, auth, database) { app.route('/admin/menu/:name') .get(function (req, res) { var roles = req.user ? req.user.roles : ['anonymous']; var menu = req.params.name || 'main'; var defaultMenu ...
/* eslint react/prefer-es6-class: "off", max-len: "off" */ import React from 'react'; import PropTypes from 'prop-types'; import * as d3 from 'd3'; // import d3Drag from 'd3-drag'; import Faux from 'react-faux-dom'; // Can't use ES6 because Faux needs mixins too work. const Histogram = React.createClass({ propTypes:...
import React from 'react'; import firebase from 'firebase'; export default class CommentsForm extends React.Component { constructor(props) { super(props); this.state = { author: '', text: '', answer: { name: '', aText: '' } }; } setData = (...
#!/usr/bin/env node 'use strict'; var test = require('tape'); var path = require('path'); var fs = require('fs'); var existsSync = path.existsSync || fs.existsSync; var spawn = require('child_process').spawn; var args = process.argv.slice(2); // remove node, and script name var argEquals = function (argName) { ret...
;(function(win, doc){ "use strict"; win.PngSprite = PngSprite; Implements(PngSprite, { getOriginalDimension: function(){ var img = this.image; if(img && img.nodeType == 1 && img.src){ var newImg = new Image(); newImg.src = img.src; this.image = newImg; this.width = newImg.width; this.heig...
import { vec3 } from 'gl-matrix'; let tmpVec = vec3.create(); let tmpVec2 = vec3.create(); function sign(x) { if (x > 0) return 1; else return -1; } export default function collisionPush(engine) { this.looped = []; this.hooks = { 'external.update!': () => { this.looped = []; }, 'collision.c...
var isLocal = document.location.hostname === 'localhost' || document.location.hostname === '127.0.0.1'; var pageName = isLocal ? getURLParameter('page') : decodeURI(location.pathname.substring(1, location.pathname.length)) var vue = new Vue({ el: '#app', data: { pageContent: '', isEditing: fal...
export const EDIT_PAPER_FETCH = 'EDIT_PAPER_FETCH'; export const EDIT_PAPER_RECEIVE = 'EDIT_PAPER_RECEIVE'; export const EDIT_PAPER_RESET = 'EDIT_PAPER_RESET'; export const EDIT_PAPER_UPDATE = 'EDIT_PAPER_UPDATE'; export const EDIT_PAPER_SAVE = 'EDIT_PAPER_SAVE'; export const EDIT_PAPER_REQUIRE_DRIVE = 'EDIT_PAPER_RE...
import { intersectOf2Arr } from "./349.intersectOf2Arr"; describe("# Problem 349 - Given two arrays, write a function to compute their intersection.", () => { describe("Solution 1: use hash.", () => { it("return [] if nums is not array", () => { const foo = 42; const bar = "baz"; const wow = ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
'use strict' const express = require('express') const router = express.Router() const path = require('path') const core = require('../core') const log = require('../libs/log') router.get('/', (req, res) => { res.json({ hello: 'world' }) }) router.get('/signup', (req, res) => { res.sendFile(path.join(__dirn...
'use strict'; var path = require('path'), policy = require('../policies/mago.server.policy'), vodSubtitles = require(path.resolve('./modules/mago/server/controllers/vod_subtitles.server.controller')); module.exports = function(app) { /* ===== vod subtitles===== */ app.route('/api/vodsubtitles') ...
export const clock = {"viewBox":"0 0 24 24","children":[{"name":"circle","attribs":{"cx":"12","cy":"12","r":"10"},"children":[]},{"name":"polyline","attribs":{"points":"12 6 12 12 16 14"},"children":[]}],"attribs":{"fill":"none","stroke":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"roun...
var data = {main: {}};
var Q = require('q'); // Q.Promise // 用于新建一个 Promise 对象 // 比如,我们新写一个模块,想让这个模块支持 Promise,则可以用 Q.Promise 方法实现 function promiseModule(status) { return Q.Promise(function (resolve, reject) { if (status) { resolve('success'); } else { reject(new Error('error')); } })...
if (!global.hasOwnProperty('db')) { var Sequelize = require('sequelize'); var sq = null; var fs = require('fs'); var path = require('path'); var PGPASS_FILE = path.join(__dirname, '../.pgpass'); if (process.env.DATABASE_URL) { /* Remote database Do `heroku config` for details....
import httpMocks from 'node-mocks-http' import HomeController from '../../src/controllers/home' describe('HomeController', () => { describe('#HomeController()', () => { it('should create a HomeController', () => { const homeController = HomeController() expect(homeController).toBeInstanceOf(Object) ...
/** * Session Configuration * (sails.config.session) * * Sails session integration leans heavily on the great work already done by * Express, but also unifies Socket.io with the Connect session store. It uses * Connect's cookie parser to normalize configuration differences between Express * and Socket.io and hoo...
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidStarOutline extends React.Component { render() { if(this.props.bare) { return <g> <path d="M458,210.409l-145.267-12.476L256,64l-56.743,133.934L54,210.409l110.192,95.524L131.161,448L256,372.686L380.83,4...
const authMiddleware = require('./authenticat'); module.exports = { authMiddleware };
import {Meteor} from 'meteor/meteor'; import {SimpleSchema} from 'meteor/aldeed:simple-schema'; // Helper for denying client code export const denyAll = { insert() { return true; }, update() { return true; }, remove() { return true; } }; // Field common to all collectio...
/* * Searchbar Messages * * This contains all the text for the Searchbar component. */ import { defineMessages } from 'react-intl'; export default defineMessages({ header: { id: 'app.components.Searchbar.header', defaultMessage: 'This is the Searchbar component !', }, });
MediaPlayer.dependencies.Notifier = function () { "use strict"; var system, id = 0, getId = function() { if (!this.id) { id += 1; this.id = "_id_" + id; } return this.id; }, isEventSupported = function(eventN...
function Thermostat() { this.temperature = 20; this.powerSavingMode = true; } Thermostat.prototype.increaseTemperature = function() { if(this.temperature < this.maximumTemperature()) this.temperature += 1; } Thermostat.prototype.decreaseTemperature = function() { if(this.temperature > 10) this.temperature -= 1; }...
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var createClass = require('create-react-class'); var DeviceBluetoothConnected = createClass({ displayName: 'DeviceBluetoothConnected', render: function render() { return React.createElement( SvgIco...
define('summernote/module/Dialog', function () { /** * Dialog * * @class */ var Dialog = function () { /** * toggle button status * * @param {jQuery} $btn * @param {Boolean} bEnable */ var toggleBtn = function ($btn, bEnable) { $btn.toggleClass('disabled', !bEnab...
// 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 any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
Ext.define('Ext.ux.DataView.DragSelector', { requires: ['Ext.dd.DragTracker', 'Ext.util.Region'], /** * Initializes the plugin by setting up the drag tracker */ init: function(dataview) { /** * @property dataview * @type Ext.view.View * The DataView bound to thi...
var fire = require('./ship_methods.js').fire; function checkGameStatus (players) { return false; } function takeTurn (opposingPlayer, guessFunction) { var coordinates = guessFunction(); fire(opposingPlayer, coordinates); var gameOver = checkGameStatus(); return gameOver; } module.exports.checkGameStatus = che...
var util = require('util'); var Route = require('../routing/Route'); var errors = require('../errors'); var Result = require('../result/Result'); var List = require('../result/List'); var MountPoint = require('../routing/MountPoint'); function TransactionList (persistence) { Route.call(this); this._persisten...
/************************************************************************************************ * * HTTP - Handle IO requests * * Description: This is used to handle all I/O requests from the client to our API * layer. Promises are used. * * (c) Sony Computer Entertainment Europe, 2017 * *...
'use babel'; // Java script preparation functions import os from 'os'; import path from 'path'; export default { // Public: Get atom temp file directory // // Returns {String} containing atom temp file directory tempFilesDir: path.join(os.tmpdir()), // Public: Get class name of file in context // // * ...
class ModuleA { foo() { return 'foo'; } bar(x, y) { return 'x + y = ' + (x + y); } } export default ModuleA;
import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { load_search_results, prev_page, next_page, set_order_by } from './module.js'; import component from './component.js'; import './style.scss'; const map_dispatch_to_props = { load_search_results, prev_page, next_page, set...
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
import React, {PropTypes} from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import Round from './Round'; const Rounds = ({rounds, phase, player, actions}) => { var roundSet = []; for (var i = 0; i < rounds.total; i++) { roundSet.push(<Round number={i} current={rounds.curren...
import React from 'react'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; import { LoginContainer } from 'containers'; // Pages map directly to Routes, i.e. one page equals on Route const LoginPage = () => ( <div className={styles.container}> <LoginContainer /> </div> );...
/** * Created by ramy on 10/29/2015. */ var Promise = require("js-promise"); var fse = require("fs-extra"); var homeDir = require("os").homedir(); var colors = require("colors"); var fs = require("fs"); var request = require("request"); var _ = require("lodash"); module.exports = { svnRoot: "https://s...
import { GraphQLObjectType } from 'graphql'; import { types as collectiveTypes } from '../../../constants/collectives'; import { Account, AccountFields } from '../interface/Account'; import { AccountWithContributions, AccountWithContributionsFields } from '../interface/AccountWithContributions'; import { AccountWithHo...
/** * Created by mosa on 2016/3/11. */ var requireDir = require('require-dir'); // Require all tasks in gulp/tasks, including subfolders requireDir('./gulp/tasks', {recurse: true});
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var FS = require("fs"); var Path = require("path"); var Request = require("request"); var ThenFail = require("../libs/thenfail"); var moment = require("moment"); var AdmZip = require("adm-zip"); var sizeOf = require("image-size"); var imagecol...
import has from './utils/has'; import cAbout from '../../views/components/about'; import cConsultationServices from '../../views/components/consultation-services'; import cCdnInAsiaAndChina from '../../views/components/features/cdn-in-asia-and-china'; import cJsdelivrCdnFeatures from '../../views/components/features/j...
var zther = zther || {}; zther.util = zther.util || {}; zther.util.NumberUtil = { /** Determines if the number is even. @param value: A number to determine if it is divisible by <code>2</code>. @return Returns <code>true</code> if the number is even; otherwise <code>false</code>. @example <code> ...
export default class ColDefFactory { createColDefs() { const leftAlignStyle = { 'text-align': 'left' }; const centerAlignStyle = { 'text-align': 'center' } const makeAlignStyle = { 'border-left': '1px solid #808080', 'text-alig...
T.registerModel(function (pane) { });
module.exports = function(){ var options=arguments; return function*(next){ yield less(this.req, this.res, options); yield next; }; }; function less(req, res, options){ return function(callback){ require('less-middleware').apply(this, options)(req, res, callback); }; }
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
//////////////////////////////////////////////////////////////////////////////////// ////// Users //////////////////////////////////////////////////////////////////////////////////// 'use strict'; // DI var db, responseHandler; /** * * @param req the HTTP requests, contains header and body parameters * @param res...
version https://git-lfs.github.com/spec/v1 oid sha256:c928791b0cde3d52edf0fffe39079fa656ef9c4ce1f16b7d4109a589e3e63740 size 6309
const path = require('path'); const webpack = require('webpack'); const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin'); const WebpackChunkHash = require('webpack-chunk-hash'); con...
module.exports = obj => new Promise((resolve, reject) => { if (typeof obj.email === "undefined") { const err = new Error("missingProperty"); err.details = { properties: { property: "email" } }; return reject(err); } else if (obj.email.ind...
version https://git-lfs.github.com/spec/v1 oid sha256:37d8a664534623015724da95816467e08fd4b8c2a24ff286d5705cf08d1e0b47 size 8106
const {app, BrowserWindow} = require("electron"); const path = require("path"); const url = require("url"); let win; function createWindow() { win = new BrowserWindow({ width: 800, height: 600 }); win.loadURL(url.format({ pathname: path.join(__dirname, "index.html"), protocol: "file:", slashes: true })...
const testEndpoint = require('./testEndpoint') const endpoints = require('./endpoints') async function runTests () { console.log('='.repeat(50)) console.log(`> Testing ${endpoints.length} API endpoints (${new Date().toISOString()})`) let results = [] for (let i = 0; i !== endpoints.length; i++) { results...
(function(global) { // map tells the System loader where to look for things var map = { 'app': 'dist', // 'dist', 'rxjs': 'node_modules/rxjs', 'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', '@angular': 'node_mod...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M8 10.25c0 .41-.34.75-.75.75-.33 0-.6-.21-.71-.5H4.5v3h2.04c.1-.29.38-.5.71-.5.41 0 .75.34.75.75V14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c....
/* eslint-disable no-unused-vars */ import coreJs from 'core-js'; import fetch from 'whatwg-fetch';
// this class creates our EnemyBaseEntity, which is our enemys tower, on the playscreen; game.EnemyBaseEntity = me.Entity.extend({ init : function(x, y, settings){ this._super(me.Entity, 'init', [x, y, { image: "tower", width: 100, height: 100, spritewidth: "100", spriteheight: "100", getShape: fu...
const AuthorizationService = require('../../oauth/authorization-service').AuthorizationService; const BaseController = require('./base-controller'); const Promise = require('bluebird'); const code = "code"; const guid = require('../../tools/guid').guid; const errors = require('../../tools/errors'); const messages = req...
invoker.print("Hello, invoker!");
'use strict'; /** * Offline Search Result contains the result of performing a scan of all the project layer files. */ var CsServerComp; (function (CsServerComp) { var Greeter = (function () { function Greeter() { } Greeter.prototype.sayHello = function () { return "Hello"; ...
module.exports = { INIT: 'init', STEP: 'step', // Bodies. ADD_BODY: 'add-body', REMOVE_BODY: 'remove-body', APPLY_BODY_METHOD: 'apply-body-method', UPDATE_BODY_PROPERTIES: 'update-body-properties', // Materials. ADD_MATERIAL: 'add-material', ADD_CONTACT_MATERIAL: 'add-contact-material', // Cons...
import 'todomvc-app-css/index.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import configureStore from './store/configureStore'; import Root from './containers/Root'; const store = configureStore(); const rootEl = document.getElementById('root'); c...
/// <reference path="E:\Dropbox\Telerik Academy\5.JavaScript\2.JavaScript UI & DOM\2.Homework\10.jQuery-Plugins\10.jQuery-Plugins\libs/jquery-2.1.1.min.js" /> (function ($) { 'use strict' // I'm not sure I understood the task $.fn.makeDropdownList = function () { var $this = $(this); $thi...
var Type = require("@kaoscript/runtime").Type; module.exports = function() { function foobar(__ks_class_1, __ks_default_1) { if(arguments.length < 1) { throw new SyntaxError("Wrong number of arguments (" + arguments.length + " for 1)"); } if(__ks_class_1 === void 0) { __ks_class_1 = null; } if(__ks_def...
const path = require('path'); const rrequire = /require\(\s*?(['"])(.+?)\1\s*?\)/g; const rexportsmodule = /\b(exports|module)\b/g; const rdefine = /^(define\(\s*)((?:\[.+\]\s*,\s*)?function\b)/m; const rdefineWithId = /^define\(\s*(['"]).+?\1\s*,\s*(?:\[.+\]\s*,\s*)?function\b/m; const rclosurewrapper = /^\(\s*functi...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
// Devices module.exports.mouse = require('./devices/mouse.js'); module.exports.keyboard = require('./devices/keyboard.js'); module.exports.tactile = require('./devices/tactile.js'); module.exports.pointers = require('./devices/pointers.js'); // UI module.exports.focus = require('./ui/focus.js'); // DSL module.export...
'use strict'; /** * @ngdoc function * @name jkefWebApp.controller:AcceptorListCtrl * @description * # AcceptorListCtrl * Controller of the jkefWebApp */ angular.module('jkefWebApp') .controller('AcceptorListCtrl', function (auth, $scope, $rootScope, acceptor) { $rootScope.manage = true; // 自动登录 var au...
// Write a script that compares two char arrays lexicographically (letter by letter). var firstString = "adaneokdarazdakhiq"; var secondString = "adanefxajixakdadka"; var firstArray = firstString.split(''); var secondArray = secondString.split(''); var areEqual = false; if (firstArray.length === secondArray.length) {...
import forSelect from "../utils/for-select"; import h from "../utils/html"; export default function (node = document.body) { forSelect(node, ".box-header-groups", node => { if (node.textContent.replace(/^\s+|\s+$/g, '') === "Groups") { node.appendChild(h("a.box-header-right", { ...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), copy: { main: { files: [{ src: 'bower_components/jquery/jquery.js', dest: 'public/js/jquery.js' }, { src: 'bower_components/lodash/dist/lodash.compat.js', dest: 'public/js/lodash.compat.j...
'use strict'; /** * Module dependencies. */ var should = require('chai').should(); /** * Test helpers */ var rewire = require('rewire'); var httpMocks = require('node-mocks-http'); var fs = require('fs'); var request = require('supertest'); /* jshint ignore:start */ var sinon = require('sinon'); /* jshint ignore...
$('.info dd').each(function() { $(this).css({width: $(this).text()+'%'}); });
var qsocks = require('qsocks'); var Promise = require('bluebird'); /** * Manages object removal in a blueprint. * Sheets & stories are refreshed on sync so no need to manage individual item removal. * * @param {Object} app qsocks app connection * @param {Object} blueprint Blueprint definition * @returns {Object...
version https://git-lfs.github.com/spec/v1 oid sha256:dfc1fe00375ed86590b0f77f34f01f190460075e5672257913ac053d88e67568 size 32578
/* eslint-disable no-console */ import React, { Component, PropTypes as T } from 'react'; class CarouselNode { next; prev; el; constructor() { this.next = null; this.prev = null; this.el = null; } } /** * Carousel Container Component: Provide initial carousel components as * children, with th...
module.exports.BaseCronJob = require('./lib/baseCronJob.js'); module.exports.CronJobManagerJob = require('./lib/cronJobManagerJob.js'); module.exports.CronJobExecutionModel = require('./lib/cronJobExecutionModel.js'); module.exports.CronJobHeartbeatModel = require('./lib/cronServerHeartbeatModel.js');
Clazz.declarePackage ("JS"); Clazz.load (null, "JS.MathExt", ["java.lang.Float", "$.Number", "java.util.Date", "$.Hashtable", "$.Random", "JU.AU", "$.BS", "$.CU", "$.Lst", "$.M4", "$.Measure", "$.P3", "$.P4", "$.PT", "$.Quat", "$.SB", "$.V3", "J.api.Interface", "J.atomdata.RadiusData", "J.bspt.Bspt", "J.c.VDW", "J.i18...
let { cd, exec, echo, touch } = require('shelljs') let { readFileSync } = require('fs') let url = require('url') let repoUrl let pkg = JSON.parse(readFileSync('package.json')) if (typeof pkg.repository === 'object') { if (!pkg.repository.hasOwnProperty('url')) { throw new Error("URL does not exist in repos...
/** * @copyright Copyright 2021 Kevin Locke <kevin@kevinlocke.name> * @license MIT * * Package-private symbols. * This file is intentionally excluded from package.json#exports. */ /** Symbol of mock function used in place of modulename for testing. * * @private */ // eslint-disable-next-line import/prefer-def...
var w = $.ergo({ etype: 'box', // за счет иерархического связывания оба дочерних виджета будут // иметь один и тот же источник данных data: new Ergo.core.DataSource(''), // задаем отступы для дочерних элементов defaultItem: { style: {'margin-right': 20} }, items: [{ etype: 'html:input', events: { ...
var searchData= [ ['secure_5fboot_5fconfig_5fdisable',['SECURE_BOOT_CONFIG_DISABLE',['../a00026.html#abda1d3106b26d6e32fddd71223ecb491',1,'secure_boot.h']]], ['secure_5fboot_5fconfig_5ffull_5fboth',['SECURE_BOOT_CONFIG_FULL_BOTH',['../a00026.html#a5aae2464eb2bb84cec34bfd422697a27',1,'secure_boot.h']]], ['secure_5...
import mongoose from 'mongoose'; import Role from '../models/Role'; import Resource from '../models/Resource'; import { roles, resources, permissions } from '../constants' const PermissionSchema = new mongoose.Schema({ role: { type: String, required: true }, resource: { type: String, required: true }, create: { ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M20 15.51c-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-....
import React from 'react' import PropTypes from 'prop-types' import { Form, Button, Row, Col, Icon } from 'antd' import SearchGroup from 'components/Search' const Search = ({ field, keyword, addPower, onSearch, onAdd, }) => { const searchGroupProps = { field, keyword, size: 'large', select:...
function connectToNotifServer(){ var conn = new WebSocket('ws://localhost:8080'); conn.onopen = function(e) { console.log("Connection established!"); conn.send(JSON.stringify({user_hash: sessionStorage.getItem("user_hash"),message:"INIT_MESSAGE"})); }; conn.onclose = function(e) { console.log("Connection cl...
function lensesRoutes($stateProvider) { 'use strict'; var lenses = { name: 'lenses', abstract: 'true', url: '/lenses', template: '<div ui-view></div>', data: { moduleClasses: 'lens', pageClasses: 'lenses', pageTitle: 'Lenses', pageDescription: 'Some description.' } }; var search = { name...
import React from 'react'; import { useForm, usePage } from '@inertiajs/inertia-react'; import Layout from '../../components/Layout'; import { route } from '../../../helpers/url'; import NoteCard from '../../../components/Card/NoteCard'; import FileUploadField from '../../components/Form/FileUploadField'; import Flash...
/* globals define */ define(function () { 'use strict'; return function arrayOf(itemCount, itemCallback) { var result = []; for (var i = 0; i < itemCount; i += 1) { result[i] = itemCallback(i); } return result; }; });
define([ "lib/Class" ],function( Class ){ var TextureObject = Class( Object, function( cls, parent ){ cls.constructor = function( width, height ){ parent.constructor.apply(this,arguments); this._id; this._width = width; this._height = height; ...
define({ "hello": "world" }); // this should take presedence than anonymous definitions define("tests/js/multipleDefine", { "another": "world" });
/* ** Enable array 'style' allocation ** Slightly less messy than spreading inline in the render */ export const assignStyles = styles => { let mergeStyles = {}; styles.forEach(styleObject => { mergeStyles = { ...mergeStyles, ...styleObject }; }); return mergeStyles; };
version https://git-lfs.github.com/spec/v1 oid sha256:b23958a3f77dc54d0e7728bf720e1df33e16550176d5b87effd5a35a102a58fa size 102522
'use strict'; // core var path = require('path'); // npm var async = require('async'); var cheerio = require('cheerio'); var mongoose = require('mongoose'); var request = require('request'); // wuw var utils = require('./wuw_utils'); // how many days should we parse? var daysToParse = process.env.WUWDAYS || 21; // ...
var Ext = window.Ext4 || window.Ext; var __map = function (mapField, records) { var map = {}; Ext.Array.each(records, function (record) { if (record.raw) { map[record.raw[mapField]] = record.raw; } else { map[record[mapField]] = record; } }); return map; }; var __sortByDate = functio...