text
stringlengths
2
1.04M
import { StyleSheet } from 'react-native'; var Style = StyleSheet.create({ rootContainer: { flex: 1 }, namePlate: { flex: 1, backgroundColor: '#3E606F', justifyContent: 'center', alignItems: 'center', }, displayContainer: { flex: 2, backg...
export function selectBook(book) { // selectBook is an ActionCreator, it needs to return an action, // an object with a type property. console.log('Hey From SelectBook ActionCreator'); return { type: "BOOK_SELECTED", payload: book }; }
const gasUrl = chrome.runtime.onMessage.addListener( function (request, sender, callback) { console.log(`バックグラウンドで受け取ったもの: ${request.message}`); const req = new XMLHttpRequest(); req.open("POST", gasUrl, true); req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); ...
// Initializes body-parser, express, and path Node.js packages var bodyParser = require("body-parser"); var express = require("express"); var path = require("path"); // Initializes the Server var app = express(); var PORT = process.env.PORT || 8080; // Sets up data parsing app.use(bodyParser.urlencoded({ extended: fa...
deepmacDetailCallback("0050c2242000/36",[{"a":"71 Four Valley Drive Concord Ontario CA L4K 4V8","o":"MDS SCIEX","d":"2008-07-30","t":"add","s":"ieee","c":"CA"}]);
module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], extends: [ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'pr...
import Ember from 'ember'; import ValidationEngine from 'ghost-admin/mixins/validation-engine'; const { computed, isBlank } = Ember; export default Ember.Object.extend(ValidationEngine, { // values entered here will act as defaults url: '', validationType: 'slackIntegration', isActive: compu...
/** * This file uses the Page Object pattern to define the main page for tests * https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ */ 'use strict'; var MainPage = function() { this.postcode = element(by.css('#postcode')); this.url = browser.getCurrentUrl(); }; module.exports ...
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "89fabb74c5a48422628772b36461c12b", "url": "/index.html" }, { "revision": "62184baea796bce4fa13", "url": "/static/css/main.30a520e0.chunk.css" }, { "revision": "1d85f8fdafe664f3ffc9", "url": "/static/js/2....
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fact...
define([ 'Backbone', 'jQuery', 'Underscore', 'views/listViewBase', 'text!templates/priceLists/list/ListHeader.html', 'views/priceLists/CreateView', 'views/priceLists/list/ListItemView', 'views/priceLists/EditView', 'models/PriceListsModel', 'collections/priceLists/filterCollectio...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Constants_1 = require("./util/Constants"); const Animals_1 = __importDefault(require("./Animals"))...
// @flow import React, {Fragment} from 'react'; import {observer} from 'mobx-react'; import type {IObservableValue} from 'mobx'; import {action, computed, observable, toJS} from 'mobx'; import classNames from 'classnames'; import type {Value as ImageValue} from '../SingleMediaSelection/types'; import SingleMediaSelecti...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import clsx from 'clsx'; import Paper from '@material-ui/core/Paper'; import TextField from '@material-ui/core/TextField'; import FormControlLab...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ root: { height: 24, marginRight: theme.spacing.unit * 2, width: 24, color: theme.palette.action.active, flexShrink: ...
import { Meteor } from 'meteor/meteor' import { ThingsInbox, Things, Modules } from '../dbs' import { check } from 'meteor/check' Meteor.methods({ setLed (thingId, moduleId, value) { check(value, Boolean) if(!Things.findOne({ _id: thingId }).isAlive) throw new Meteor.Error('thing-not-alive', 'Thing is...
let nock = require('nock'); module.exports.hash = "3bcfe708e8c46d9a8bf966b12a6028f0"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&cl...
const _db = require('../../index'), expect = require('chai').expect; const TABLE_TEST_PERSON = 'test_person'; it('Should return all records with empty filters', function(done){ const TestPerson = _db.tbl(TABLE_TEST_PERSON); TestPerson.insert({ name: 'Alice Wonder', attitude: 'strange', height: 155, ...
/** * MyInterface class, creating a GUI interface. */ class MyInterface extends CGFinterface { /** * @constructor */ constructor() { super(); } /** * Initializes the interface. * @param {CGFapplication} application */ init(application) { super.init(applicati...
$( "#artists" ).on( "click", function( event ) { $("#list").empty() artists.load() }) $( "#albums" ).on( "click", function( event ) { $("#list").empty() albums.load() }) $("#tracks").on("click", function(event) { $("#list").empty() tracks.load() })
import React, { Component, PropTypes } from 'react' import { Panel } from 'react-bootstrap' import classNames from 'classnames' import _ from 'lodash' import Help from './Help' export default class MonsterFinder extends Component { constructor(props) { super(props) this.handleCategoryClick = this.handleCate...
import { takeLatest, call, put } from 'redux-saga/effects'; import axios from 'axios'; import { DEFAULT_LOCALE_REQUEST, DEFAULT_LOCALE_RECEIVE, DEFAULT_LOCALE_ERROR, } from '../actiontypes'; // watcher saga export default function* defaultLocaleSaga() { yield takeLatest(DEFAULT_LOCALE_REQUEST, receiveD...
export default [ { id: 1, name: "Shreya Ghosh", age: 29, image: "https://res.cloudinary.com/diqqf3eq2/image/upload/v1595959131/person-2_ipcjws.jpg", }, { id: 2, name: "Shubhrima Jana", age: 32, image: "https://res.cloudinary.com/diqqf3eq2/image/upload/v1595959131/person...
var MySlider = draw2d.shape.widget.Slider.extend({ NAME : "MySlider", init : function(attr) { this._super(extend({width:150, height:15},attr)); this.createPort("output"); this.on("change:value", (element, event)=>{ var connections = this.getOutputPort(0).getConnection...
/*! * OpenUI5 * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["./StandardListItemRenderer","sap/ui/core/Renderer"],function(e,r){"use strict";var t=r.extend(e);t.apiVersion=2;t.renderTitle=function(r,t){if(t.getActiv...
const webpack = require('webpack'); const merge = require('webpack-merge'); const HtmlWebpackPlugin = require('html-webpack-plugin') const path = require('path'); const common = require('./webpack.common'); module.exports = merge(common, { mode: 'development', entry: './example/main.jsx', output: { publicPa...
var CARBON_EMISSION_FACTOR = 0.527; var INDIA_AVERAGE = 3.073; var INDIA_AVERAGE_CARBON = INDIA_AVERAGE*CARBON_EMISSION_FACTOR; class Item { constructor(name, wattage, hours, number, people) { this.name = name; this.wattage = wattage; this.hours = hours; this.number = number; this.people = people;...
const express = require('express'); const router = express.Router(); router.get('/', (req, res, next) => { // 清空用户信息 req.session.user = null; res.redirect('/home'); }); exports = module.exports = router;
/* eslint max-lines: off */ "use strict"; var last = require("es5-ext/array/#/last") , defineLength = require("es5-ext/function/_define-length") , callable = require("es5-ext/object/valid-callable") , d = require("d") , memoize = require("memoizee") , fs = require("fs")...
/* Title: Line Graph Example Author: Ian Borg (Capsicum Corporation) <ianb@capsicumcorp.com> Description: Copyright: Capsicum Corporation 2015, 2016 This file is part of iOmy. iOmy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Sof...
const runtimeEnv = require('@mars/heroku-js-runtime-env'); const env = process.env.NODE_ENV !== 'production' ? runtimeEnv() : process.env.NODE_ENV; const agentKey = !process.env.NODE_ENV ? env.REACT_APP_AGENT_KEY : process.env.REACT_APP_AGENT_KEY; const appUrl = !process.env.NODE_ENV ? env.REACT_APP_URL : process.en...
import React from 'react'; import styled from 'styled-components'; const NavIcon = styled.div` display: none; @media screen and (max-width: 600px) { width: 25px; height: 25px; position: fixed; top: 25px; right: 25px; display: flex; z-index: 2; justify-content: space-around; alig...
'use strict' const assert = require('assert') describe('Job Model', () => { it('should exist', () => { assert(global.app.models.Job) }) })
"use strict"; console.log('-----------------------------------------'); console.log('ES2018 - new features || JavaScript Test CLI Application || Test-1'); console.log('-----------------------------------------\n'); console.log('Task:\nWrite js cli-app for creating a 16-rows of Pascal\'s Triangle'); console.log('-------...
const Home = () => { return ( <div id="home"> <h1>Home</h1> </div> ); }; export default Home;
function encodeHTMLSource() { var encodeHTMLRules = { "&": "&#38;", "<": "&#60;", ">": "&#62;", '"': '&#34;', "'": '&#39;', "/": '&#47;' }, matchHTML = /&(?!#?w+;)|<|>|"|'|\//g; return function() { return this ? this.replace(matchHTML, function(m) {return encodeHTMLRules[m] || m;}) : this; };}; String.prototype....
const electron = require('electron') const path = require('path') const remote = electron.remote const closeBtn = document.getElementById('closeBtn') const addBtn = document.getElementById('addBtn') closeBtn.addEventListener('click', function (event) { var window = remote.getCurrentWindow(); window.close(); }...
import HttpRequests from '../core/utils/HttpRequest'; import { getApiPath } from '../core/utils/RoutesUtils'; import { API } from '../core/common/app.routes'; export const searchLocations = function (data, callback) { let path = getApiPath(API.LOCATIONS_SEARCH); return HttpRequests.post(path, data, callback); ...
const { parseArray } = require('../src/utils'); describe('Parse a comma-delimited strings', () => { test('Parse string with spaces and return an array', () => { const input = 'tag1, tag2, tag3'; const value = parseArray(input); expect(value).toEqual(['tag1', 'tag2', 'tag3']); }); test('Parse string ...
/** * Module dependencies. */ var Emitter = require('events').EventEmitter; var parser = require('socket.io-parser'); var url = require('url'); var debug = require('debug')('socket.io:socket'); var hasBin = require('has-binary-data'); /** * Module exports. */ module.exports = exports = Socket; /** * Blackliste...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; //HOC (Higher-Order Components) import { Redirect } from "react-router-dom"; export default function (ComposedComponent) { class AuthenticationAdmin extends Component { static contextType...
const { Router } = require('express'); const GitHubCalendar = require('../plugins/github-calendar'); const UptimeRobot = require('../plugins/uptime-robot'); const router = Router(); const GITHUB_USERNAME = 'tibi02'; router.use(async (req, res, next) => { try { res.locals = { monitors: await UptimeRobot.g...
'use strict'; module.exports = function changelogMdCli() { const changelog = require('changelog-md'); return changelog(); };
import { Plugin, PluginKey } from 'prosemirror-state'; export var pluginKey = new PluginKey('sharedContextPlugin'); var sharedContextPlugin = function () { return ({ name: 'sharedContext', pmPlugins: function () { return [ { name: 'sharedContextPlugin', plugin...
export default function printMe() { console.log('print updated!'); }
const getters = { name: state => state.user.name, cookie: state => state.user.cookie, keywords: state => state.app.keywords, theme: state => state.app.theme, mode: state => state.app.mode, fixedHeader: state => state.app.fixedHeader, } export default getters
const authentication = require('./authentication'); const stream_message = require('./creates/stream_message'); const private_message = require('./creates/private_message'); const App = { // This is just shorthand to reference the installed dependencies // for the app. Zapier will need to know these before we ...
module.exports = { description: 'Treeshaking with dynamic import', options: { input: ['main.js'] } };
// @flow import * as React from 'react' import { Formik } from 'formik' import get from 'lodash/get' import find from 'lodash/find' import set from 'lodash/set' import { NO_SECURITY, WPA_PSK_SECURITY, WPA_EAP_SECURITY, SSID_FIELD, PSK_FIELD, SECURITY_TYPE_FIELD, EAP_CONFIG_FIELD, EAP_TYPE_FIELD, } from...
/*! * devextreme-angular * Version: 16.2.5 * Build date: Tue Feb 28 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://git...
/** * States DB in memory - Server with Redis protocol * * Copyright 2013-2021 bluefox <dogafox@gmail.com> * * MIT License * */ /** @module statesInMemory */ /* jshint -W097 */ /* jshint strict:false */ /* jslint node: true */ 'use strict'; const net = require('net'); const { inspect } = require...
export default { methods: { getInvalidDataKeys () { return Object.keys(this.formData) .filter(v => !this.formData[v].value) }, updateErrors (bads) { Object.keys(this.formData).forEach(key => { if (bads.indexOf(key) !== -1) { this.formData[key].error = '정보를 채워주세요.' ...
var class_c_p_u_info = [ [ "CPUInfo", "class_c_p_u_info.html#a75e5f4ca62b54b687cd0d78dcfa2e020", null ], [ "~CPUInfo", "class_c_p_u_info.html#a80e5dbdf1d286dff3b0fdce77b7c2b40", null ], [ "ENIGMA_NON_COPYABLE", "class_c_p_u_info.html#ad61423e53fc9a3c90efc8a0dc0e9cf5e", null ], [ "ENIGMA_NON_MOVEABLE", "...
var searchData= [ ['setallenabled',['setAllEnabled',['../class_user_msg_stg.html#a9b2f34f39e927021503b2499bfbdd171',1,'UserMsgStg']]], ['setallvisible',['setAllVisible',['../class_user_msg_man.html#a74c199564c020c25a83958c3b20ba3fd',1,'UserMsgMan']]], ['setcallbackshow',['setCallbackShow',['../class_user_msg_man....
import RenameDialogView from '../components/renamedialog.js' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { hideRenameDialog, renameFile } from '../actions/files.js' const mapStateToProps = (state) => ({ file: state.renamedialog.get('file'), }) const mapDispatchToProps = (di...
import React from 'react'; import { connect } from 'react-redux'; import { translate as $t } from '../../../helpers'; import { actions } from '../../../store'; import Modal from '../../ui/modal'; import AccountSelector from './account-select'; class ReportCreationModal extends React.Component { accountSelector ...
'use strict'; const repositories = require('../../infrastructure/repository'); /** * @function controller * @param {callback} fn - service * @return {function} - controller */ const controller = (fn) => async (req, reply) => { try { const args = []; if (req.params.id) { const id = Number(req.param...
import kubernetes from '@kubernetes/client-node' import { createLogger } from '@generates/logger' const logger = createLogger({ level: 'info', namespace: 'kdot.k8s' }) export * from '@kubernetes/client-node' // Load the Kubernetes config. export const kc = new kubernetes.KubeConfig() if (process.env.KUBECONFIG) { ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
const modalStyle = { modal: { borderRadius: '6px' }, modalHeader: { borderBottom: 'none', paddingTop: '24px', paddingRight: '24px', paddingBottom: '0', paddingLeft: '24px', minHeight: '16.43px' }, modalTitle: { margin: '0', lineHeight: '1.42857143' }, modalCloseButton: ...
$(document).ready(function() { var space = new Space(); $('#bookSpace').click(function() { var space = Space.id; $.post('hire_space.html', space); }) })
const { expect } = require('chai'); const errors = require('@feathersjs/errors'); const Sequelize = require('sequelize'); const utils = require('../lib/utils'); describe('Feathers Sequelize Utils', () => { describe('errorHandler', () => { it('throws a feathers error', () => { let e = new errors.GeneralEr...
import fs from "fs"; import { forEach, inc, map, pipe } from "ramda"; import "../style/index.less"; import ichUrl from "../assets/ich3.jpg"; import elmLogoUrl from "../assets/elm-logo.svg"; import data from "../assets/data.json"; import("./pages/hobbies").then(page => page.render()); const textContent = fs.readFil...
const express = require('express'); require('dotenv').config(); const router = require('./routes'); const connectDatabase = require('./helpers/database/connectDatabase') const customErrorHandler = require('./middleware/errors/customErrorHandler') const path = require('path') const app = express(); const PORT = process...
setCssToHead(["@charset \x22UTF-8\x22;\n.",[1],"change-phone-wrap.",[1],"data-v-13809c72 { height: 100%; }\n.",[1],"change-phone-wrap .",[1],"change-phone.",[1],"data-v-13809c72 { height: 100%; }\n.",[1],"change-phone-wrap .",[1],"change-phone .",[1],"nickName.",[1],"data-v-13809c72 { padding: ",[0,20]," 0; border-bott...
import { useDrop } from 'react-dnd'; import PropTypes from 'prop-types'; import Tooltip from '@material-ui/core/Tooltip'; import IconButton from '@material-ui/core/IconButton'; import EditIcon from '@material-ui/icons/Edit'; import DeleteIcon from '@material-ui/icons/Delete'; import Utils from "@iobroker/adapter-reac...
'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; process.stdin.on('data', (inputStdin) => { inputString += inputStdin; }); process.stdin.on('end', (_) => { inputString = inputString .replace(/\s*$/, '') .split('\n') .map((str) => st...
exports.info = { FormatID: '1355', FormatName: 'WebP', FormatVersion: 'Lossless', FormatAliases: '', FormatFamilies: '', FormatTypes: 'Image (Raster)', FormatDisclosure: '', FormatDescription: 'WebP is a raster image format developed by Google that uses the Resource Interchange File Format as a container....
import { Injectable } from '@angular/core'; import { Cmyk, Rgba, Hsla, Hsva } from './formats'; export class ColorPickerService { constructor() { this.active = null; } setActive(active) { if (this.active && this.active !== active && this.active.cpDialogDisplay !== 'inline') { thi...
/* @flow */ import { ZalgoPromise } from 'zalgo-promise/src'; import type { MenuChoices, MenuFlowType, MenuComponentInstance } from '../types'; import type { Payment } from '../payment-flows'; import type { ButtonProps, Components } from './props'; import { enableLoadingSpinner, disableLoadingSpinner } from './dom';...
require('dotenv').config(); const cloudinary = require('cloudinary').v2; //Getting started DOCS: https://cloudinary.com/documentation/how_to_integrate_cloudinary //Node.js SDK: https://cloudinary.com/documentation/node_integration console.log(cloudinary.config().cloud_name); console.log(cloudinary.config().api_key); ...
function randomString(length) { var result = ""; var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; var charactersLength = characters.length; for (var i = 0; i < length; i++) { result += characters.charAt(Math.floor(Math.random() * charactersLength...
(function() {var implementors = {}; implementors["arrayvec"] = [{"text":"impl&lt;A&gt; AsRef&lt;str&gt; for ArrayString&lt;A&gt; <span class=\"where fmt-newline\">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: Array&lt;Item = u8&gt; + Copy,&nbsp;</span>","synthetic":false,"types":[]},{"text":"impl&lt;A:&nbsp;Array&gt; AsRef&lt;[&...
var searchData= [ ['key_5fevent',['KEY_EVENT',['../namespacesgl.html#a6ff6e8ee75a08092e30167b2b7c5d6f7a0e6d8d51cdea5a4ed106568ba7637ad2',1,'sgl']]], ['key_5fpressed',['KEY_PRESSED',['../namespacesgl.html#a2628ea8d12e8b2563c32f05dc7fff6faac2439afec39a5b43a1fd36a4316379a7',1,'sgl']]], ['key_5freleased',['KEY_RELEAS...
var callbackArguments = []; var argument1 = function() { callbackArguments.push(arguments) return undefined; }; var argument2 = true; var argument3 = true; var argument4 = function() { callbackArguments.push(arguments) return -63.810917629810085; }; var argument5 = function() { callbackArguments.push(arguments) ...
/** * 关于对CPU密集型的应用的思考 * nodejs单线程的劣势 以及处理办法 * 关于线程(thread)和进程(process)的区别 参考:http://www.ruanyifeng.com/blog/2013/04/processes_and_threads.html * 简单归纳 * process 运行时独占CPU资源,占用一部分的ram(不和其他process共享) * process(包含一个或多个thread) thread各项 process占用的ram */ var http = require('http'); var urllib = require('url'); var CONF...
/** * aui-list-swipe.js 列表页滑动菜单 * verson 0.0.3 * @author 流浪男 && Beck * http://www.auicss.com * @todo more things to abstract, e.g. Loading css etc. * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function (window) { "use strict"; var translateVal, frict...
import React, { Component } from 'react' import styles from './About.less'; const LinksPage = () => { return ( <ul className={styles.aboutusSectionlist}> <li className={styles.aboutusSection}> <p><span className={styles.aboutusBigtitle}>交换链接要求:</span></p> <p>1、您的网站交换友链的页面PR值&gt;=6</p> ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S7.6_A1.1_T1; * @section: 7.6; * @assertion: IdentifierStart :: UnicodeLetter (any character in the Unicode categories "Lu", "Ll", "Lt", "Lm", "Lo", "Nl"); * @description...
/** * Role Management (ACL) for NodeJS * * User -> Profile -> Roles <- Application **/ // CONSTANTS var APP_ROLE_SEPARATOR = "."; // INCLUDES var util = require("util"), events = require("events"); // VARIABLES var applications = {}, profiles = {}, users = {}, monitor; function Monitor() { even...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
var strtod_i_8c = [ [ "strtodI", "dd/d21/strtod_i_8c.html#a06dd76d6d062810b687c51d0f53d85ba", null ], [ "ulpdown", "dd/d21/strtod_i_8c.html#a9210b783ac27bc7b3b09c432e3189c01", null ] ];
google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart1); function drawChart1() { jvals = $('#piechart1').text(); if (jvals.length > 2) { var obj = $.parseJSON(jvals); var arr = [['Domain', 'Link', 'Visits']]; for (var key in obj) { if (obj.hasOwnProperty(key)) { ...
import { combineReducers } from 'redux'; import dragonsReducer from '../features/dragons/dragonsSlice'; import rocketsReducer from '../features/rockets/rocketsSlice'; import missionsReducer from '../features/missions/missionsSlice'; export default combineReducers({ dragons: dragonsReducer, rockets: rocketsReducer,...
import { select } from 'd3'; import clearSelected from './clearSelected'; import highlightSelected from './highlightSelected'; import smallMultiples from './smallMultiples'; import clearHovered from './clearHovered'; import highlightHovered from './highlightHovered'; import checkPointOverlap from './checkPointOverlap';...
function fakePromise(fn) { let value = null; let callBacks = []; this.then = (onFulfilled) => { callBacks.push(onFulfilled); }; const resolve = (value) => { callBacks.map((callBack) => { callBack(value); }); } fn(resolve); } ///////////////////////////...
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FontAwesomeIcon, } from '@fortawesome/react-fontawesome'; import { Button, } from 'react-bootstrap'; import Tooltip from './Tooltip'; /** * Component that renders a button with a Fo...
import Hidden from "../src/Hidden.js"; export default class ElixHidden extends Hidden {} customElements.define("elix-hidden", ElixHidden);
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Domain = void 0; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Domain = function Domain() { _classCallCheck(this, Do...
define( ['Mansard', 'backbone', 'marionette', 'jquery', 'models/Model', 'hbs!templates/savePolicy'], function(Mansard, Backbone, Marionette, $, Model, template) { //ItemView provides some default rendering logic return Backbone.Marionette.ItemView.extend( { template: template, ...
const{configTestWithKovan} = require('../../steps/configuration-steps') const {skipState} = require('../../steps/common') const {deposit, withdraw, claimReward} = require('../../steps/steps') const constants = require('../../fixtures/consts.json') const StakePage = require('../../pageobjects/stake.page') const Confirma...
const path = require('path'); const fs = require('fs'); const hbs = require('hbs'); const resource = require('./resource'); const { alphaNumOnly, capitalizeFirstLetter } = require('./utils'); function generate({ service }) { const { resources } = service; const clients = []; resources.forEach((rSource) => { ...
/** * @file * Provides dependent visibility for form items in CTools' ajax forms. * * To your $form item definition add: * - '#process' => array('ctools_process_dependency'), * - '#dependency' => array('id-of-form-item' => array(list, of, values, that, * make, this, item, show), * * Special considerations: ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var chai_1 = require("chai"); var ethereumjs_util_1 = require("ethereumjs-util"); var src_1 = require("../src"); var testTypedData = { types: { EIP712Domain: [ { name: "name", type: "string" }, { name: "vers...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TabStripComponent } from './tabstrip/tabstrip.component'; import { TabStripTabComponent } from './tabstrip/tabstrip-tab.component'; import { TabContentDirective } from './tabstrip/tab-content.directive'; import { TabTitle...
// 获取菜单名称 export function generateTitle(title) { const hasKey = this.$te('route.' + title) if (hasKey) { // $t :this method from vue-i18n, inject in @/lang/index.js const translatedTitle = this.$t('route.' + title) return translatedTitle } return title } // 获取提示语 export function generatePoint(tit...
jest.mock('mongoose'); const mongoose = require('mongoose'); mongoose.Schema.mockImplementation(() => ({ index: jest.fn(), })); mongoose.model.mockImplementation(() => { const mongooseModelInstance = { save: jest.fn().mockResolvedValue(null), }; // constructor function const modelRef = jest.fn().mockI...
({"theMap":"{\"version\":3,\"sources\":[\"builtin://either\"],\"names\":[\"builtin://either\",\",8,0,60,11,3,116\",\",9,2,80,9,16,94\",\",10,2,97,10,17,112\"],\"mappings\":\"AAACA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AA...
/*! Select2 1.0.9 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},input...
import actionTypes from './utils/actionTypes'; const actionCancel = ({ type: actionTypes.CANCEL }) const cancel = () => actionCancel; export default cancel;