text
stringlengths
2
1.04M
let drawingBook = (n,p) =>{ let totalPage =[]; let seperatePage =[]; for(let i = 0;i<=n;i++){ if(seperatePage.length === 2){ totalPage.push(seperatePage); seperatePage =[]; seperatePage.push(i); }else{ seperatePage.push(i); } } totalPage.push(seperatePage); function findMinPa...
import React, { Component } from 'react'; import Symptom from './Symptom'; class Symptoms extends Component { render() { return( <ul> {this.props.symptoms.map(s => <Symptom key={s.id} symptom={s} deleteSymptom={this.props.deleteSymptom}/>)} </ul> ); } }; export default Symptoms;
import React from 'react' import createReactClass from 'create-react-class' import auth from '../utils/auth' const Logout = createReactClass({ componentDidMount() { auth.logout() }, render() { return <p>You are now logged out</p> } }) module.exports = Logout
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); var _classCallCheck2 = _i...
/** * VexFlow - PedalMarking Tests * Copyright Mohit Muthanna 2010 <mohit@muthanna.com> */ VF.Test.PedalMarking = (function() { var PedalMarking = { test: function(makePedal) { return function(options) { var vf = VF.Test.makeFactory(options, 550, 200); var score = vf.EasyScore(); ...
import { find, each, escape, invoke, size, without } from 'lodash'; import { uiModules } from 'ui/modules'; import { Notifier } from 'ui/notify/notifier'; import { FieldWildcardProvider } from 'ui/field_wildcard'; import controlsHtml from './controls.html'; import filterHtml from './filter.html'; import template from...
/** * Created by liuwenwen on 2017/6/7. */ export const PAGE_SIZE = 3;
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import Input from './Input'; const propTypes = { // Callback fired on form submit. addTodo: PropTypes.func.isRequired, }; function AddTodoForm(props) { const [value, setValue] = useState(''); function handleInputChange(event) { ...
// Backbone.js 1.1.2 // (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(root, factory) { // Set up Backbone appropriately for ...
(function() { function UserModalCtrl($scope, $cookies, $uibModalInstance){ $scope.setUser = function () { if(!$scope.newuser || $scope.newuser == " "){ alert("Need username"); } else { var newuser = $scope.newuser $cookies.put('blocChatCurrentUser'...
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux'; import styled, { css } from 'styled-components' import NavLink from 'react-router-dom/NavLink' const styles = css` ` const StyledNavLink = styled(({ theme, reverse, palette, active, sidebarOpen, ...props }) => <Nav...
'use strict'; var should = require('should'); var sinon = require('sinon'); var BlockController = require('../lib/blocks'); var bitcore = require('bitcore-lib'); var _ = require('lodash'); var blocks = require('./data/blocks.json'); var blockIndexes = { '0000000000000afa0c3c0afd450c793a1e300ec84cbe9555166e06132f19...
var margin = { top: 20, right: 180, bottom: 180, left: 15 }, width = 960 - margin.left - margin.right + 370, height = 500 - margin.top - margin.bottom + 100; var svg3 = d3.select("#chartFilter").append("svg") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) ....
const $ = selector => document.querySelector(selector); const defaultCode = `{ "width": 400, "height": 400, "layers": [ { text: { text: "HELLO!", fill: "#000", stroke: "#fff", strokeWidth: 8, position: { y: "15%" }, font: { size...
function validaNumericos(event){ if(event.charCode >= 48 && event.charCode <= 57) { return true; } return false; }
import Link from './Link' import { detectLanguage } from './detectLanguage' import { languages, localeData, defaultLanguage } from './locales' export { Link, languages, localeData, defaultLanguage, detectLanguage }
'use strict'; const url = require('url'); const fetch = require('node-fetch'); const Entries = require('../models/Entries'); const Route = require('../../system/helpers/Route'); const entries = new Entries(); const Learning = require('../../system/learning/Learning'); class EntriesApi { page(request, response) {...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExecuteTransactionCommand = void 0; const middleware_serde_1 = require("@aws-sdk/middleware-serde"); const smithy_client_1 = require("@aws-sdk/smithy-client"); const models_0_1 = require("../models/models_0"); const Aws_json1_0_1 = req...
'use strict'; const { Each } = require('./each'); const { setShorthand } = require('./internal/collection'); class OmitBy extends Each { constructor(collection, iterator) { super(collection, iterator, set); this._result = {}; } } module.exports = { omitBy, OmitBy }; function set(collection) { setShort...
/** @babel */ /** @jsx etch.dom */ import { pluralize } from 'underscore-plus' import dedent from 'dedent' import etch from 'etch' import CachePanelView from './cache-panel-view' import PackagePanelView from './package-panel-view' import WindowPanelView from './window-panel-view' export default class Timecop2View { ...
// @flow import * as React from "react"; import styled, { css } from "styled-components"; import Heading from "../Heading"; import Stack from "../Stack"; import ButtonLink from "../ButtonLink"; import ChevronDown from "../icons/ChevronDown"; import Slide from "../utils/Slide"; import defaultTheme from "../defaultTheme...
/* * 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, software * distributed u...
// Setup var a; a = 7; var b; // Only change code below this line b = a;
'use strict'; // Connect to db const DATABASE_URL = process.env.NODE_ENV === 'test' ? 'sqlite:memory' : process.env.NODE_ENV === 'production' ? process.env.HEROKU_POSTGRESQL_YELLOW_URL : process.env.DATABASE_URL === 'development'; // Configuration is ENV dependent - Test, Dev or Prod const { Sequelize, DataTypes...
const path = require('path'); const core = require('@actions/core'); const { context, getOctokit, } = require('@actions/github'); const utils = require('./utils'); const {ReviewStates} = require('./enums'); const PATH_PREFIX = process.env.GITHUB_WORKSPACE; (async () => { const token = core.getInput('toke...
/*! * jQuery JavaScript Library v2.0.1 -sizzle,-wrap,-effects * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-27T00:56Z */ (function( wind...
const { Pool } = require('pg'); const debugDB = require('debug')('app:db'); const chalk = require('chalk'); const pool = new Pool({ ssl: { rejectUnauthorized: false, }, }); // Test Database connection if (process.env.NODE_ENV === 'development') { (async function () { try { const db = await pool.co...
define([ "jquery" , "underscore" , "backbone" , "collections/snippets" , "collections/my-form-snippets" , "views/tab" , "views/my-form" , "text!data/input.json", "text!data/radio.json", "text!data/select.json", "text!data/buttons.json" , "text!templates/app/render.html", ], function( ...
var acorn = require('acorn'); var acornjsx = require('acorn-jsx/inject')(acorn); var estraverse = require('estraverse-fb'); var log = require('log4js').getLogger('translate-generator.jsParser'); var _ = require('lodash'); var api = require('__api'); var acornImpInject = require('acorn-dynamic-import/lib/inject').defaul...
const url = require("url"); module.exports = { ...url, URL, };
import React, { PropTypes, Component } from 'react'; import QuestionActions from '../actions/QuestionActions'; import '../styles/Question'; let checkedButton; export default class Question extends Component { static propTypes = { question: PropTypes.object }; constructor(props) { super(props); this...
/** * @license AngularJS v1.7.6 * (c) 2010-2018 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular) {'use strict'; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Any commits to this file should be reviewed with security in mind. * * Changes to thi...
import PostsUserPage from 'flarum/components/PostsUserPage'; /** * The `MentionsUserPage` component shows post which user Mentioned at */ export default class MentionsUserPage extends PostsUserPage { /** * Load a new page of the user's activity feed. * * @param {Integer} [offset] The position to start get...
/* Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.dtl.contrib.dijit"]){ dojo._hasResource["dojox.dtl.contrib.dijit"]=true; dojo.provide("dojox.d...
/** @preserve * The MIT License (MIT) https://github.com/dlepera88-jquery/jquery-mascara/blob/master/LICENSE * Copyright (c) 2017 Diego Lepera http://diegolepera.xyz/ */
export const GIPHY_API_KEY = 'ln0q9hBGZWNpEJxR6A0J74QgCJ28RKGE';
var should = require('chai').should(), cachemanMulti = require('..') ; describe('cacheman-multi', function() { it('should say hello', function(done) { var test = cachemanMulti() test.value.should.equal('Hello, world'); done(); }); });
/** * Element selector modal class */ Craft.BaseElementSelectorModal = Garnish.Modal.extend( { elementType: null, elementIndex: null, $body: null, $sidebar: null, $sources: null, $sourceToggles: null, $main: null, $search: null, $elements: null, $tbody: null, $primaryButtons: null, $secondaryButtons: nul...
// webpack.config.dev.js var path = require('path'); var webpack = require('webpack'); module.exports = { // Maps transpiled code to written code when errors happen in the browser for // easier debugging devtool: 'cheap-module-eval-source-map', // This is what goes INTO Webpack entry: [ 'eventsource-poly...
/* eslint-disable @typescript-eslint/naming-convention */ module.exports = { "env": { "browser": true }, "parser": "@typescript-eslint/parser", "parserOptions": { "project": "tsconfig.eslint.json", "sourceType": "module" }, "plugins": [ "eslint-plugin-import", "eslint-plugin-jsdoc", ...
var repoLib = require("../../lib/repo/repo"); var repoConfig = require("../../lib/config/repoConfig"); /** * Get get items from Repo */ exports.get = function(req) { log.info("GET") var result = getItems(); return { body: {nodes : result}, headers: { "Content-Type": "appl...
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("74295afcbe3851329365d06de2aa5a5e.js"); /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at h...
const path = require('path') const fs = require('fs') require('dotenv').config() const models = require('../../database/models') const domain = require('./../helper/getDomain') const getProfilDetail = async(req, res) => { try { const data = await models.Profil.findAll({ include : [ ...
import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.nonsense, 0);
const SchemaTable = props => ( <table> <SchemaTableHead columns={props.table.columns} /> <SchemaTableBody columns={props.table.columns} /> </table> ) const SchemaTableHead = props => ( <thead> <tr> {props.columns.map(column => ( <th>{column.title}</th> ...
function FormValidationComponent(formDOMObject, validationCallback, thisisspecial) { if (undefined === thisisspecial) thisisspecial = false; this.site_wide_turn_off = false; this.verify_connection_to_form = function (formDOMObject, requestedSpecialTreatment) { let canConnect = false; if (!this.site_wide_...
const morgan = require('morgan'); const mongoose = require('mongoose'); const express = require('express'); const http = require('http'); const io = require('socket.io')(); const config = require('./config'); const port = process.env.PORT || 3000; const app = express(); const server = http.createServer(app); // jwt ...
module.exports = { ACTIVE: { name: 'active', type: 'token', definition: 'http://hl7.org/fhir/SearchParameter/Patient-active', documentation: 'Whether the patient record is active.', }, ADDRESS: { name: 'address', type: 'string', definition: 'http://hl7.org/fhir/SearchParameter/Patient-address', docum...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidatorMessages = void 0; var ValidatorMessages; (function (ValidatorMessages) { ValidatorMessages["INVALID_EXTENSION_FOR_WEBHOOKS"] = "Whitelist allows only 'p' and 'g' extensions"; ValidatorMessages["INVALID_WEBHOOK_URL"] =...
macDetailCallback("2c37c5000000/24",[{"d":"2017-09-16","t":"add","a":"ingdao high-tech park haier road 1 Qingdao Shandong CN 266101","c":"CN","o":"Qingdao Haier Intelligent Home Appliance Technology Co.,Ltd"}]);
import React, {Component} from 'react' import cn from 'classnames' import st from './style.module.css' const rates = ['1', '1.2', '1.4', '1.6', '1.8', '2'] export class Speed extends Component { state = { focus: false, } handleChange = event => { const {player} = this.props const {target} = event ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _path = _interopRequireDefault(require("path")); var _zlib = _interopRequireDefault(require("zlib")); var _fsExtra = _interopRequireDefault(require("fs-extra")); var _tarFs = _interopRequireDefault(require(...
'use strict'; module.exports = require('./lib/ReactNoop');
import { risApi } from '../../utils/utils.js'; Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { risApi.usersCount().then(count => { console.log(count); }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生...
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ var QueryReport = function() { Report.call(this); //If sortable.js is included, uncomment t...
/*! rsapem-1.1.js (c) 2012 Kenji Urushima | kjur.github.com/jsrsasign/license */ // // rsa-pem.js - adding function for reading/writing PKCS#1 PEM private key // to RSAKey class. // // version: 1.1.1 (2013-Apr-12) // // Copyright (c) 2010-2013 Kenji Urushima (kenji.urushima@gmail.com) // // This software ...
const Discord = require('discord.js'); const {createCanvas} = require('canvas'); const canvas = createCanvas(75, 75); const c = canvas.getContext('2d'); c.imageSmoothingQuality = "high"; module.exports.run = (client, message, args) => { const color = args[0]; if (!(/^#[0-9A-F]{6}$/i.test(color))) return messag...
// @flow weak export { default as TabPanel } from './TabPanel/TabPanel'; export { default as TabPanelHeader } from './tabPanelHeader/TabPanelHeader'; export { default as TabPanelBody } from './tabPanelBody/TabPanelBody'; export { default as TabPanelBodyContent } from './tabPanelBodyContent/TabPa...
// 53. 最大子数组和 // https://leetcode-cn.com/problems/maximum-subarray/ /** * @param {number[]} nums * @return {number} */ // 动态规划 // O(n)/O(1) // 88ms/47.5MB // nums[i] 单独成为一段还是加入 f(i - 1) 对应的那一段:f(i) = max{f(i-1) + nums[i], nums[i]} var maxSubArray = function (nums) { // let i = 0; let sum = Number.MIN_SAFE_INTEG...
const SOURCES_BAN = "!(node_modules/**/**),!(dist/**/**)"; export default { port: 3000, plugins: [], root: "./", production: { logErrors: false }, //Glob patterns used as sources for the different files sources: { resolvers: `{resolvers/**/*.js,*.resolvers.js,resolvers.js,${SOURCES_BAN}}`, ...
'use strict'; module.exports = function (app) { // User Routes var passport = require('passport'); var users = require('../controllers/users.server.controller'); // Setting up the users profile api app.route('/api/users/me').get(passport.authenticate('jwt', { session: false }), users.me); app.route('/api/...
export default function UserTitle() { const userTitle = document.querySelector("#user-title"); this.render = (name) => { userTitle.setAttribute("data-username", name); userTitle.querySelector("strong").textContent = name; }; }
(function() {var implementors = {}; implementors["webservice"] = [{"text":"impl AsQuery for table","synthetic":false,"types":[]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
(window.webpackJsonp=window.webpackJsonp||[]).push([[201],{"3BVU":function(n,o){!function(n){n.ng=n.ng||{},n.ng.common=n.ng.common||{},n.ng.common.locales=n.ng.common.locales||{};const o=void 0;n.ng.common.locales.ga=["ga",[["r.n.","i.n."],o,o],o,[["D","L","M","C","D","A","S"],["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9...
OC.L10N.register( "files_sharing", { "Server to server sharing is not enabled on this server" : "Server to server sharing is not enabled on this server", "The mountpoint name contains invalid characters." : "The mountpoint name contains invalid characters.", "Invalid or untrusted SSL certificate" : ...
"use strict"; exports.__esModule = true; exports.Pane = Pane; var _core = require("@react-leaflet/core"); var _react = _interopRequireWildcard(require("react")); var _reactDom = require("react-dom"); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInte...
var core = require ("swarmcore"); thisAdapter = core.createAdapter("Node1"); thisAdapter.initFileBusNode("FB_Node1", "localhost", 3001);
/* Copyright 2016 Mozilla Foundation * * 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...
import React from 'react'; import { withStyles, makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import Table...
/** * @license * Copyright (c) 2014, 2019, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ "use strict"; define(['ojs/ojcore', 'jquery', 'ojs/ojcomponentcore', 'ojs/ojlogger', 'ojs/ojcontext', 'ojs/ojthemeutils', 'promise', 'ojs/ojdatasource-common', 'ojs/ojdatacollection-util...
'use strict'; /* eslint-env browser, serviceworker */ (function () { 'use strict'; var db = void 0; function getDB() { if (!db) { db = new Promise(function (resolve, reject) { var openreq = indexedDB.open('keyval-store', 1); openreq.onerror = function () { reject(openreq.er...
// @flow import { getLineInfo, type Position } from "../util/location"; import CommentsParser from "./comments"; // This function is used to raise exceptions on parse errors. It // takes an offset integer (into the current `input`) to indicate // the location of the error, attaches the position to the end // of the e...
//Node.js-compatible file system module. // //Provided methods: //- `fs.readFileSync(path)` //- `fs.existsSync(path)` //- `fs.writeFileSync(path, data)` //- `fs.statSync(path)` //- `fs.readdirSync(dir,{withFileTypes:true})` 'use strict' //DO NOT use ama features: this is a "chicken" file which gets called when formatti...
'use strict' // Template version: 1.2.5 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') const devEnv = require('./dev.env') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', // 代理列表, 是否开启代理通过[./dev.env.js]配置 p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OnInternal = void 0; const swindle_1 = require("swindle"); const domain_event_handler_priority_enum_1 = require("../subscriber/domain-event-handler-priority.enum"); const event_aggregate__type_1 = require("../event-emitter/event-aggreg...
import React from 'react'; import { Flex } from 'rebass/styled-components'; import theme from '../../../../../../../../util/theme'; import SingleReview from '../../../SingleReview'; import { ResponseType } from '../../../ReviewRatings.proptypes'; const Reply = ({ reply }) => { const businessUser = { displayNam...
const getters = { sidebar: state => state.app.sidebar, size: state => state.app.size, device: state => state.app.device, visitedViews: state => state.tagsView.visitedViews, cachedViews: state => state.tagsView.cachedViews, token: state => state.user.token, avatar: state => state.user.avatar, name: state...
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import VueLazyload from 'vue-lazyload' Vue.config.productionTip = false // 安装toast Vue.prototype.$bus=new Vue() new Vue({ render: h => h(App), router, store }).$mount('#app') Vue.use(VueLazyload,{ loa...
var cacheName = "editor-gui-pwa"; var filesToCache = [ "./", "./index.html", "./editor_gui.js", "./editor_gui_bg.wasm", ]; /* Start the service worker and cache all of the app's content */ self.addEventListener("install", function (e) { e.waitUntil( caches.open(cacheName).then(function (cache) { re...
/// <reference path="./index.d.ts" /> const { EventEmitter } = require('events') const __EE__ = Symbol('__EVENTS__') const __VA__ = Symbol('__VALIDATE__') class RollingArray extends Array { /** * @param {number} [maxLen] * @param {number} [bufLen] * @param {...any} [args] */ constructor (maxLen = Infi...
var CurrentOrderId; $(document).ready(function () { $(".order_number").click(function () { var OrderId = $(this).attr("value"); $.ajax({ url: "/UserProfile/GetOrderDetails", data: { "OrderId":OrderId }, type: 'GET', success: function (result) { ...
var spec = require('brofist')() var chai = require('chai') var expect = chai.expect var _ = require('../../') module.exports = spec('λ format', function(it) { it('Should not replace escaped template variables.', function() { expect(_('foo {\\:bar}')).to.equal('foo {:bar}') }) it('Should replace occurrence...
import React, { useCallback, useState } from 'react' import { map } from 'lodash' import './JsonViewer.scss' const JsonViewerRecursive = ({ contextName, nestingLevel, context, selectFilter, onSelect, path }) => { const isSelectable = selectFilter(context) const contextType = typeof context const [mou...
#!/usr/bin/env node /** * LSS fastscan example. * * This example shows how configure a network containing multiple LSS slaves * using LSS fastscan. */ const { Device, LssMode } = require('../index.js'); const can = require('socketcan'); /** Step 1: Create a new Device. */ const device = new Device({ id: 0xa });...
/** * Created by petersodborgchristensen on 09/05/2016. */ 'use strict'; //Articles service used for communicating with the operators REST endpoints angular.module('statistikadmin').factory('StatistikAdmin', ['$resource', function($resource) { return $resource('statistikadmin/:statadminId', { ...
// Copyright JS Foundation and other contributors, http://js.foundation // // 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 r...
/* exported createListBoxFromHtml */ function createListBoxFromHtml(html, options, container) { return $(html || "<select />").appendTo(container || QUnit.fixture[0]).kendoListBox(options).data("kendoListBox"); } /* exported createListBoxFromOptions */ function createListBoxFromOptions(widgetOptions, options) { ...
'use strict'; const express = require('express'); const superagent = require('superagent'); const cors = require('cors'); const pg = require('pg'); const methodOverride = require('method-override'); const cheerio = require('cheerio'); const Chart = require('chart.js'); // Environment variables require('dotenv').config(...
goog.require('os.MapContainer'); goog.require('os.data.LayerTreeSearch'); goog.require('os.layer.Tile'); goog.require('os.layer.Vector'); goog.require('os.mock'); describe('os.data.LayerTreeSearch', function() { beforeEach(function() { // add a tile layer var layer = new os.layer.Tile({ source: new ol...
define(function(require, exports, module) { 'use strict'; const _ = require('underscore'); const __ = require('orotranslation/js/translator'); const BasePlugin = require('oroui/js/app/plugins/base/plugin'); const ShowComponentAction = require('oro/datagrid/action/show-component-action'); const ...
import isArray from '../isArray'; import isFunction from '../isFunction'; export default (...args) => { const [value, ...items] = args; const getNextResult = (result, item) => { if (isArray(item)) { const [targetMethod, ...targetArgs] = item; return targetMethod(result, ...targetArgs); } if...
import React, { forwardRef, useEffect } from 'react'; import PropTypes from 'prop-types'; import { regex } from '../utils'; import { InputCss } from './inputCss'; const getFormattedValue = (value) => value.replace(regex.negative, ''); /** * Primary UI component for Input */ export const NegativeInput = forwardRef((...
var searchData= [ ['tcharge',['tcharge',['../df/d90/classstate.html#aba4b4f47fc3b9cba97b5f63518214f30',1,'state']]] ];
import constants from '../constants' import initialState from '../initialState.json' export default appReducer = (state = initialState.app, action) => { switch (action.type) { case constants.REPLACE_TODOS: return { ...state, todos: action.payload } case constants.ADD_TODO: r...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionManager = exports.TransactionalQuery = exports.TransactionalLink = exports.TransactionalStore = exports.WritableQueue = exports.ReadableQueue = void 0; const utils_1 = require("./utils"); class ReadableQueue { queue; ...
import { module, test } from 'qunit'; import validate from 'ember-validators/collection'; import processResult from '../../helpers/process-result'; import cloneOptions from '../../helpers/clone-options'; let options, result; module('Unit | Validator | collection'); test('value is collection', function(assert) { as...
/* Contains Redux action creators for actions related to exams, Many actions are asynchronous since many exam actions need to make http requests and wait for the response before completing. */ import { examConstants } from '../constants' import { examService } from '../services' import { alertActions } from '.' ...
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) // import Vuex Store Methods import getters from './store/getters.js' import actions from './store/actions.js' import mutations from './store/mutations.js' import state from './store/state.js' export default new Vuex.Store({ state, mutations, action...
function HTMLActuator() { this.tileContainer = document.querySelector(".tile-container"); this.scoreContainer = document.querySelector(".score-container"); this.bestContainer = document.querySelector(".best-container"); this.messageContainer = document.querySelector(".game-message"); this.score = 0; ...
function _extends() { _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; }; return _extends.apply(this, arguments); } f...