text
stringlengths
2
1.04M
import React from 'react' import GetComponentStyle from './GetComponentStyle' import Step from './Step' import createStep from './Step/createStep' /** * Wizard React component * generic component for creating Multi dimensional step navigation * @type {[type]} */ export default class Wizard extends React.Component ...
angular.module('Scout.services', []) .factory('BlankFactory', [function(){ }]) .service('BlankService', [function(){ }]);
function testCase(load, done) { load("two", 2, function() { var sync = true; load("one", 1, function() { sync.should.be.eql(false); load("three", 3, function() { var sync = true; load("two", 2, function() { sync.should.be.eql(true); done(); }); Promise.resolve().then(function() {})....
import Edit from './L.PM.Edit'; // LayerGroup doesn't inherit from L.PM.Edit because it's just calling L.PM.Edit.Poly // (which inherits from L.PM.Edit) for each layer, // so it's not really a parent class Edit.LayerGroup = L.Class.extend({ initialize(layerGroup) { this._layerGroup = layerGroup; th...
import babel from 'rollup-plugin-babel'; import uglify from 'rollup-plugin-uglify'; const babelOptions = { runtimeHelpers: true, presets: ['es2015-rollup', 'stage-2'], }; const config = { moduleName: 'MDM', entry: 'src/index.js', dest: 'dist/MDM.js', sourceMap: true, format: 'umd', plu...
const path = require('path'), ifd = require(path.join(process.cwd(), 'dist/ifd.js')); const customIfd = ifd({ create: true, identity: function (val) { return val % 2 === 0; } }); const test = customIfd( [undefined, 1], [NaN, 3], [4, 'four'], [true, 5] ); module.exports = { exp: function (...
/** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.org/docs/node-apis/ */ /** * create pages out of markdown files * */ const path = require(`path`) const { createFilePath } = require(`gatsby-source-filesystem`) const request = require(`request`) const fs = require(`fs`) exports.onC...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, AuthenticationError, InsufficientFunds, OrderNotFound, ExchangeNotAvailable, DDoSProtection, InvalidOrder } = require ('./base/errors'); // -------------...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{ /***/ "./src/$$_lazy_route_resource lazy recursive": /*!**********************************************************!*\ !*** ./src/$$_lazy_route_resource lazy namespace object ***! \**********************************************************/ /*...
/** * Kendo UI v2016.2.909 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
import React from 'react' import MuiAppBar from '@material-ui/core/AppBar' function AppBar(props) { return ( <MuiAppBar {...props} /> ) } export default AppBar
'use strict'; const Generator = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); module.exports = class extends Generator { prompting() { // Have Yeoman greet the user. this.log(yosay( 'Welcome to the ' + chalk.magenta('microgram') + '...
// @ts-check import { Far } from '@endo/marshal'; import { AmountMath } from '@agoric/ertp'; import '../../exported.js'; /** * This is a very simple contract that creates a new issuer and mints payments * from it, in order to give an example of how that can be done. This contract * sends new tokens to anyone who...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _SovosPaginationFooter = require('./SovosPaginationFooter'); Object.defineProperty(exports, 'default', { enumerable: true, get: function get() { return _interopRequireDefault(_SovosPaginationFooter).default; } }); function ...
$(document).ready(function(){ $(".teare_editor").css({'width':'100%'}); $(".menu_admin li ul.menu_child li:first-child").css({'border-left-width':'0'}); $(".menu_admin li ul.menu_child li:last-child a").css({'border-bottom-width':'0'}); }); $(document).ready(function() { $(".info_user").click(function(){ var...
/// global constants const cluePauseTime = 333; const nextClueWaitTime = 1000; //Global Variables var pattern = []; var progress = 0; var gamePlaying = false; var tonePlaying = false; var volume = 0.75; var guessCounter = 0; var clueHoldTime = 1000; var decreaseHoldTime = 25; var strikes = 0; function randomNu...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["dashboard-dashboard-module"],{ /***/ "./src/app/layout/dashboard/components/chat/chat.component.html": /*!**********************************************************************!*\ !*** ./src/app/layout/dashboard/components/chat/chat.component.html ***! ...
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
module.exports = require('./acl.js'); module.exports.__defineGetter__('memoryBackend', () => require('./memory-backend.js')); module.exports.__defineGetter__('mongodbBackend', () => require('./mongodb-backend.js'));
Template.documents.helpers({ documents: function(){ var getDocuments = Documents.find( {}, { fields: { "title": 1 } } ); if ( getDocuments ) { return getDocuments; } } });
/* templates/alert_dialog/index.hbs templates/progress_dialog/index.hbs */ App.DialogIndexController = Ember.ObjectController.extend(App.Saveable, App.Deletable, { actions: { delete: function () { var viewController = this.get('viewController'); this._super(); viewCont...
module.exports = angular.module('stf.device-list.empty', [ ]) .directive('deviceListEmpty', require('./device-list-empty-directive'))
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示***************...
import React,{Component} from 'react' import { List,Badge } from 'antd-mobile' import {connect} from 'react-redux' import { recevieMsg,_getMsgList } from 'store/reducers' const Item = List.Item; const Brief = Item.Brief; @connect( state=>state.setCount, { recevieMsg, _getMsgList} ) class Msg extends Component...
$(function(){ $("#publishBtn").click(publish); }); function publish() { $("#publishModal").modal("hide"); // 发送AJAX请求之前,将CSRF令牌设置到请求的消息头中. // var token = $("meta[name='_csrf']").attr("content"); // var header = $("meta[name='_csrf_header']").attr("content"); // $(document).ajaxSend(function(e, xh...
const http = require('http'); const hostname = '0.0.0.0'; const port = 80; const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello, World!\n'); }); server.listen(port, hostname, () => { console.log(`Server running at http://${hostname...
#!/usr/bin/env node import inquirer from 'inquirer' import { promisify } from 'util' import { exec } from 'child_process' const pExec = promisify(exec) pExec('git fetch -p') .then(() => pExec("git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}'")) .then(async ({ stdout }) => { const clearable = stdout...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import App from './components/app'; import rootReducer from './reducers'; const store = createStore(rootReducer, applyMiddleware(th...
/* ---------------------------------------------------------------------------- | | | Copyright (c) 2019 Ripple Foundation Community Interest Company | | All rights reserved. | | ...
/* -*- js-indent-level: 8 -*- */ /* * L.Control.JSDialogBuilder used for building the native HTML components * from the JSON description provided by the server. */ /* global app $ w2ui _ _UNO L */ L.Control.JSDialogBuilder = L.Control.extend({ options: { // window id windowId: null, // reference to map m...
/** * # Widget * Copyright(c) 2020 Stefano Balietti <ste@nodegame.org> * MIT Licensed * * Prototype of a widget class * * Prototype methods will be injected in every new widget, if missing. * * Additional properties can be automatically, depending on configuration. * * @see Widgets.get * @see Widgets.append...
/* # # BVSelect - VanillaJS Fully Customizable Selectboxes # polyfill Version # Build: v1.3 # # Developed by Bruno Vieira # */
const test = require('tape'); const hasClass = require('./hasClass.js'); test('Testing hasClass', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof hasClass === 'function', 'hasClass is a Function'); //t.deepEqual(hasClass(args..), 'E...
/* global getMessage */ //"options_ui": { // "_page": "options.html", // "chrome_style": true //}, var _reminderModulePort = null; var PageReminders = function() { var _reminderPrefix = 'alarm_'; var saveMode = { save: 1, saveNew: 2, test: 3, saveFast: 4 } var _r...
// This file was automatically generated. Do not modify. 'use strict'; Blockly.Msg["ADD_COMMENT"] = "Add Comment"; Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Can't delete the variable '%1' because it's part of the definition of the function '%2'"; Blockly.Msg["CHANGE_VALUE_TITLE"] = "Change value:"; Blockly....
// Reference to a variable import parseRule from 'Engine/parseRule' import React from 'react' import { typeWarning } from './error' import { evaluateApplicability } from './evaluateRule' import { evaluateNode, mergeMissing } from './evaluation' import { getSituationValue } from './getSituationValue' import { Leaf } fro...
#!/usr/bin/env node const fs = require('fs'); const { program } = require('commander'); var chalk = require('chalk'); var error = chalk.bold.red; var success = chalk.bold.green; var verbose = chalk.bold.yellow; let filename; program .arguments('<filename>') .action((results) => { filename = results; }); prog...
import blackoutAnimation from './blackout' import slideAnimation from './slide' import barAnimation from './bar' import mosaicAnimation from './mosaic' import stripeAnimation from './stripe' import circleAnimation from './circle' import accordionAnimation from './accordion' import squareAnimation from './square' import...
/** * Hilo 1.4.0 for cmd * Copyright 2016 alibaba.com * Licensed under the MIT License */ define(function(require, exports, module){ var arrayProto = Array.prototype, slice = arrayProto.slice; //polyfiil for Array.prototype.indexOf if (!arrayProto.indexOf) { arrayProto.indexOf = function(elem, fromIndex...
import React from 'react'; import { BaseControl, Button } from '@wordpress/components'; /** * A simple and elegant vertical option picker, best used for up to 5 options. * * @param {object} props - ComponentUseToggle options. * @param {string} props.label - Usually comp...
// @flow import * as I from 'immutable' import { compose, connect, lifecycle, type TypedState, setDisplayName, } from '../../util/container' import * as Constants from '../../constants/fs' import * as FsGen from '../../actions/fs-gen' import * as React from 'react' import * as Types from '../../constants/type...
/* * The MIT License (MIT) * * Copyright (c) 2016 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modif...
/* NOTICE: Modified version of Castle.Components.Validator.CreditCardValidator * Redistributed under the the Apache License 2.0 at http://www.apache.org/licenses/LICENSE-2.0 * Valid Types: mastercard, visa, amex, dinersclub, enroute, discover, jcb, unknown, all (overrides all other settings) */ $.validator.addMethod...
$(function () { $(".search-xiami-btn").click(function () { var $searchItem = $(this).parent(".search-item"); var name = $searchItem.find('.search-field').val(); if (name) { window.location.href = host + '/index.php/sites/xiami/search/' + name; } }); $(document).o...
(function() { 'use strict'; angular .module('app.pages') .controller('MessagesController', MessagesController) .controller('MessageViewModalController', MessageViewModalController) .controller('MessageNewModalController', MessageNewModalController); MessagesController.$inje...
class Deck { constructor(extraCardDisabled) { this.deck = []; // colored cards for (let color = Color.RED; color <= Color.BLUE; ++color) { for (let value = Value.ZERO; value <= Value.DRAW_TWO; ++value) { let coloredCard = new Card(color, value); for (let i = 0; i < coloredCard.numCar...
{ "metadata" : { "formatVersion" : 3.1, "sourceFile" : "gallardo_wheel.obj", "generatedBy" : "OBJConverter", "vertices" : 4434, "faces" : 4394, "normals" : 2654, "uvs" : 0, "materials" : 2 }, "materia...
// @flow const TransientError = require("./transient-error"); /** * This error means that 3rd party API resources is out of sync comparing to Hull organization state. * For example customer by accident removed a resource which we use to express segment information (for example user tags, user sub lists etc.) * So t...
function Game() { this.status = "waiting"; this.start = function () { console.log("starting game...."); this.status = "in-progress"; this.generatePieces(); }; this.finish = function () { console.log("ending game...."); this.status = "game-over"; this.pieces = []; }; this.pieces = ...
module.exports = { purge: ["./src/**/*.{js,jsx,ts,tsx}", "./public/index.html"], darkMode: false, // or 'media' or 'class' theme: { extend: { colors: { primary: "#000000", secondary: "#20852D", footer: "#1A1A1A", btn: "#F49E0B", }, fontFamily: { Opens...
import * as React from 'react'; import wrapIcon from '../utils/wrapIcon'; const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 28, height: 28, viewBox: "0 0 28 28", xmlns: "http://www.w3.org/2000/svg", className: className }, React.crea...
import React, { Component, PropTypes } from 'react' import { I18n, Translate } from 'react-redux-i18n' import cx from 'classnames' import { getFileUrl } from 'utils' import { Button, Input, Upload, toast } from 'uis' import { Avatar } from 'views' import './account-settings.view.styl' export class AccountSettings ex...
/*! vue-ydui v1.2.5 by YDCSS (c) 2018 Licensed MIT */
mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "500.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Retired", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "PO Box 2929", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE...
steal.config({ map: { "*": { "can/": "", "jquery/jquery.js" : "jquery", "can/util/util.js": "can/util/jquery/jquery.js" } }, paths: { "jquery": "lib/jquery.1.9.1.js", "mootools/mootools.js" : "lib/mootools-core-1.4.5.js", "dojo/dojo.js" : "util/dojo/dojo-1.8.1.js", "yui/yui.js" : "lib/yui-3.7.3....
$(document).ready(function () { if (document.querySelectorAll('.ecc-tools') !== null) { var toolsArea = document.querySelectorAll('.ecc-tools') toolsArea.forEach(function (b) { var toggleButton = b.querySelector('.ecc-tools__toggle'); toggleButton.addEventListener('click', functio...
const sqlite = require("sqlite3").verbose() const db = new sqlite.Database("./src/database/database.db") module.exports = db // db.serialize(() => { // db.run(` // CREATE TABLE IF NOT EXISTS places ( // id INTEGER PRIMARY KEY AUTOINCREMENT, // image TEXT, // name TEXT, // address TEXT, /...
//START OF GLOBAL VAR'S //STORAGE ARRAY FOR SETTING and GETTING. var cityHistory = [] //SET VAR SET CITYHISTORY STORAGE UNIVERSAL VARIBLE var memorySet = function () { localStorage.setItem("cityHistory", JSON.stringify(cityHistory)) } //SET VAR MY CITY RETRIEVE var memoryLoad = function () { cityHistory =...
export * from './actions'; import './reducer';
"use strict"; angular.module('trikatuka2').factory('Playlist', function(Spotify ,$q, PlaylistService, $timeout){ this.playlistId = null; this.tracksCount = null; this.name = null; this.collaborative = null; function Playlist(playlist, user){ var self = this; self.id = playlist.id; ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcar...
define(["sprd/data/SprdModel","sprd/entity/DepartmentCategory", "underscore"], function (Model, DepartmentCategory, _) { return Model.inherit('sprd.model.ProductTypeDepartment', { schema: { categories: [DepartmentCategory] }, getProductTypeCategoryById: function(id){ ...
function solve(firstArray, secondArray) { let output; for (let i = 0; i <= firstArray.length-1; i++){ for(let j = 0; j <= secondArray.length-1; j++){ if(firstArray[i]===secondArray[j]){ output = firstArray[i]; console.log(output); } } }...
/* artifact generator: C:\My\wizzi\wizzi\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: C:\My\wizzi\wizzi\packages\wizzi-repo\.wizzi\ittf\examples\jsonFsJson.js.ittf */ 'use strict'; /** EXAMPLE: wizzi-repo.examples.jsonFsJson */ var myname = 'wizzi-repo.examples.j...
/* * * UnitPage actions * */ import { CHANGE_DATA, CHANGE_SEARCH, GET_DATA, GET_DATA_SUCCESS, CHANGE_ROW, DELETE_ROW } from './constants'; /** * Changes the entity data * * @param {object} payload The object from api * * @return {object} An action object with a type of CHANGE_DATA */ export function change...
require('./_log')()
import React from "react"; import { shallow } from "enzyme"; import Button from "./Button"; const wrapper = shallow(<Button />); describe("<Button />", () => { test("Renders as a <button> element", () => { expect(wrapper.type()).toEqual("button"); }); });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = pDebounce; // Source: https://github.com/sindresorhus/p-debounce/blob/master/index.js // @ts-ignore function pDebounce(fn, wait) { var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};...
$(function () { console.log('%c⚛ Map Effects 100: Hello geohacker! ⚛', 'font-family:monospace;font-size:16px;color:darkblue;'); // Leaflet Map Init function initMap() { var map = L.map('map').setView([35, 138.5], 9); L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, ...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
var callNextTick = require('call-next-tick'); var betterKnowATweet = require('better-know-a-tweet'); var async = require('async'); var behavior = require('./behavior'); var createIsCool = require('iscool'); var canIChimeIn = require('can-i-chime-in')(); var okToRespondIsCool = createIsCool({ falsePositives: [] }); v...
import chai from 'chai'; import { parseXCTestStdout } from '../../../lib/commands/xctest'; chai.should(); describe('session commands', function () { const xctestLogsSuccess = `XCTesterAppUITests - XCTesterAppUITests.XCTesterAppUITests/testExample | Passed: True | Crashed: False | Duration: 1.485 | Failure message: ...
/** * Copyright 2018 The AMP HTML Authors. 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 require...
document.addEventListener("DOMContentLoaded", function(){ const sidebar = document.querySelectorAll(".sidebar"); //var zindex = 100; sidebar.forEach(el => { /* let width = "264px"; // 초기값 //el.style.zIndex = zindex--; if(el.dataset.width) { // 데이터 값으로 width 변경 ...
'use strict'; var Message = require('../message'); var inherits = require('util').inherits; var bchLib = require('@wedontknowjs/bch-lib'); var $ = bchLib.util.preconditions; var _ = bchLib.deps._; /** * @param {Transaction=} arg - An instance of Transaction * @param {Object} options * @extends Message * @construc...
import $ from "jquery"; import "ui/html_editor"; const { test } = QUnit; const TOOLBAR_FORMAT_WIDGET_CLASS = "dx-htmleditor-toolbar-format"; const moduleConfig = { beforeEach: function() { this.clock = sinon.useFakeTimers(); this.options = { value: "<p>Test 1</p><p>Test 2</p><p>Test...
const Subscription = require('egg').Subscription; class RepeatNotifyEvents extends Subscription { // 通过 schedule 属性来设置定时任务的执行间隔等配置 static get schedule() { return { interval: '10s', // 10s 间隔 // // 每三小时准点执行一次 // cron: '0 0 */3 * * *', type: 'worker', // 配置为all时,指定所有的 worker 都需要执行 i...
// Copyright 2019 NEC Corporation // // 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 ...
import "@fontsource/montserrat/900.css" import "@fontsource/montserrat" import React from "react" import styled from "styled-components" import { pageFullHeight } from "./src/services/mixin" const Root = styled.div` ${pageFullHeight} ` export const wrapRootElement = ({ element }) => <Root>{element}</Root>
import React from "react" class Todo extends React.Component { render() { return ( <li> <label> <input type="checkbox" onChange={this.props.onClick} checked={this.props.completed} id={"checkbox"+this.props.key} /> {thi...
// Uses unit test 2 modules var should = require('chai').should(); var Mesh = require('../'); describe('does some benchmarks on api calls, data events and events', function (done) { ///events/testComponent2Component/component1/maximum-pings-reached ///events/testComponent2Component/component1/maximum-pings-reached ...
// import logo from './logo.svg'; import React from 'react'; import './App.css'; function App() { return ( <div> <h1>life is good for the tenants</h1> </div> ); } export default App;
import { attributeValues } from './attributes' import { extractReflexName } from './utils' // Returns StimulusReflex controllers local to the passed element based on the data-controller attribute. // const localReflexControllers = (app, element) => { return attributeValues( element.getAttribute(app.schema.contro...
'use strict'; /** * @apiDefine ExposureFilterParam * @apiParam {String="indoor","outdoor","mobile","unknown"} [exposure] only include boxes with this exposure. Allows to specify multiple exposures separated by comma (Example: `indoor,mobile`) */ /** * MQTT broker integration data * @apiDefine MqttOption Settings...
import {model} from './renderer.js'; import {flagNotSaved} from './domEvents.js'; export function exportFile(fileName) { if (fileName !== '') { flagNotSaved(false); let exporter = new THREE.GLTFExporter(); let fileContent; exporter.parse(model, function(arg) { fileContent = JSON.stringify(arg);...
'use strict'; module.exports = function stringToParts(str) { const result = []; let curPropertyName = ''; let state = 'DEFAULT'; for (let i = 0; i < str.length; ++i) { // Fall back to treating as property name rather than bracket notation if // square brackets contains something other than a number. ...
import _get from 'lodash/get' import { REDUCER_PATHS } from '../../config' const path = REDUCER_PATHS.WS const EMPTY_OBJ = {} export default (state) => _get(state, `${path}.auth.apiKeys.paper`, EMPTY_OBJ)
define( ["./utils","./exception","./base","exports"], function(__dependency1__, __dependency2__, __dependency3__, __exports__) { "use strict"; var Utils = __dependency1__; var Exception = __dependency2__["default"]; var COMPILER_REVISION = __dependency3__.COMPILER_REVISION; var REVISION_CHANGES ...
// Dummy test sink for APN Push proxy testing var net = require('net'); tls = require('tls'), fs = require('fs'), util = require('util'), binary = require('binary'), hexy = require('./hexy'), hex = require('./hex'); // Sends push feedback service messages function feedBackDummyServer(stream) {...
$(function(){ // scripts for "menu-right" module ///////////////////////////////////////////////////////////////////////////////////////// // toggle right menu $('.cat__menu-right__action--menu-toggle').on('click', function(){ $('body').toggleClass('cat__menu-right--visible'); }); //...
import { Selector as $, t } from 'testcafe' import basePage from './basePage' const loginPage = { url: 'login/', usernameInput: $('#username'), passwordInput: $('#password'), loginBtn: $('#login'), errorMsg: $('#errorMessage'), async login (username, password) { await t .typeText(this.usernameIn...
export { useElapsedTime } from './useElapsedTime' export { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect'
import Vue from 'vue' //script src="vue 路径" import App from './App.vue' //引入我们的组件 new Vue({ el: '#app', components:{ App }, template:"<App />" })
export function rvec(arr) { return { output: [arr], size: [1, arr.length] } }
anaChartFakeService.addResponse({ uri: "", //empty string is a query against the base uri, meaning the service document header: anaChartFakeService.headers.JSON, content: "{ \"d\": { \"EntitySets\": [\"nhl\"] } }" });
/** * 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. * * @flow */ import {createEventTarget} from 'dom-event-testing-library'; import {emulateBrowserTab} from '../shared/emulateBrowser...
module.exports = { parser: 'babel-eslint', env: { browser: true, commonjs: true, es6: true, node: true, jest: true, }, plugins: ['react-hooks', 'react'], extends: ['eslint:recommended', 'plugin:react/recommended'], settings: { react: { ...
/* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy ...
import {greatest, group, least} from "d3"; import {maybeZ, valueof} from "../mark.js"; import {basic} from "./basic.js"; export function selectFirst(options) { return select(first, undefined, options); } export function selectLast(options) { return select(last, undefined, options); } export function selectMinX(o...
/* ******************************************************************************************** * * * Plese read the following tutorial before implementing tasks: * * https://developer.mozilla.org...