text
stringlengths
2
1.04M
exports.bookRoundedImpl = require('@material-ui/icons/BookRounded').default;
/*! * ${copyright} */ sap.ui.define([ "sap/m/TreeItemBase", "./DemokitTreeItemRenderer" ], function (TreeItemBase) { "use strict"; /** * @private * @ui5-restricted sdk */ return TreeItemBase.extend("sap.ui.documentation.sdk.controls.DemokitTreeItem", { metadata : { library: "sap.ui.documentation", ...
$(document).on('turbolinks:load', function() { if ($('body').hasClass('users-new') || $('body').hasClass('passwords-edit')) { ShowPassword.initialize() $('#registration_password, #reset_password').on("focus", function(e) { $('.passwordRules').removeClass('hidden') }) $('#registration_password,...
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information. var common = require('./common.js'); exports.transform = function (model) { var namespaceItems = { "class": { inClass: true, typePropertyName: "inClas...
var createError = require('http-errors'); var express = require('express'); var path = require('path'); var cookieParser = require('cookie-parser'); var logger = require('morgan'); var stylus = require('stylus'); var indexRouter = require('./routes/index'); var aboutRouter = require('./routes/about'); var contactRoute...
/** * flowground :- Telekom iPaaS / googleapis-com-appengine-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed under the Apache 2.0 License. For details * see the file LICENSE on the toplevel directory. */ const processWrapper = requi...
export const JSONcopy = (o) => JSON.parse(JSON.stringify(o)) export const Omap = (o, cb) => Object.keys(o).map((k,i) => cb(o[k],k))
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
var knex = require("knex")({ client: "mysql", connection: { host: "127.0.0.1", user: "root", password: "", database: "checkout" } }); const insert = async () => { let result = await knex("purchases").insert({}); let purchase_id = result[0]; return purchase_id; }; const update = async data ...
import React from 'react' import LazyImage from './LazyImage' import './SectionPartners.css' export default ({ partners = [] }) => ( <section className='section--partners'> <div className='container skinny'> {partners.map((partner, index) => { return ( <div key={`partner-${index}`} class...
'use strict'; require('@code-fellows/supergoose'); const Notes = require('../lib/notes.js'); // Spies! // we will get to know if something was called or not. jest.spyOn(global.console, 'log'); // describe the module I am testing describe('Notes Module', () => { // test add it('add() should save the note to datab...
var searchData= [ ['gaus',['gaus',['../classActivation.html#a793912761e5ad16e5175b4fa5113133d',1,'Activation']]], ['gausder',['gausder',['../classActivation.html#abc436fdeb1ff801223c7ebf67a748ebe',1,'Activation']]], ['getactivation',['getActivation',['../classLayer.html#a586ea1cdda469415557b195dafa65afa',1,'Layer...
const menu = document.querySelector('#mobile-menu'); const menuLinks = document.querySelector('.navbar__menu'); const navLogo = document.querySelector('#navbar__logo'); // Display Mobile Menu const mobileMenu = () => { menu.classList.toggle('is-active'); menuLinks.classList.toggle('active'); }; menu.addEventListe...
/*! Select2 4.0.3 | 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/zh-TW",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="請刪掉"+t+"個字元";ret...
$.extend($.fn.tabs.methods,{ allTabs:function(jq){ var tabs = $(jq).tabs('tabs'); var all = []; all = $.map(tabs,function(n,i){ return $(n).panel('options') }); return all; }, closeCurrent: function(jq){ // 关闭当前 var currentTab = $(jq).tabs('getSele...
// @flow import { Creatable } from 'lattice-ui-kit'; import { TAG_OPTIONS } from './constants'; type Props = { index :?number | string; onTagChange :(index :?number | string, value :string) => void; value :string; }; const SelectTags = ({ index, onTagChange, value } :Props) => { const onChange = (newValue :s...
var http = require('http'); var net = require('net'); var path = require('path'); var open = require('open'); const boxen = require('boxen'); const handler = require('serve-handler'); var _ = require('lodash'); var fs = require('fs'); var proxy = require('proxy-middleware'); const gutil = require('gulp-util'); const ut...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _extends() { _extends = Object.assign || function (...
import React from 'react' import { PieChart,Pie, ResponsiveContainer ,Cell} from 'recharts'; const pdata = [ { name: "Group A", value: 400 }, { name: "Group B", value: 300 }, { name: "Group C", value: 300 }, { name: "Group D", value: 200 } ]; const COLORS = ["#0088FE", "#00C49F", "#FFBB28", "#FF8042...
'use strict'; module.exports = { plugins: ['regexp'], rules: { 'regexp/no-legacy-features': 'error', }, };
import { gql } from '../../../helpers/jest' import Factory from '../../../factories' import { getNeode, getDriver } from '../../../db/neo4j' import { createTestClient } from 'apollo-server-testing' import createServer from '../../../server' const factory = Factory() const neode = getNeode() const driver = getDriver() ...
var os = require('os-utils'), EventEmitter = require('events').EventEmitter; var CPUUsage = 10; var StatusReader = function () { var reader = new EventEmitter(); var currTemp = 20; var currDepth = 0; var currCpuUsage = 0; setInterval(function () { os.cpuUsage(function (v) { currCpuUsage = v; });...
const _ = require('lodash'); const express = require('express'); const asyncHandler = require('express-async-handler'); const request = require('request'); const router = express.Router(); const { BU } = require('base-util-jh'); const users = require('./users'); const upsas = require('./upsas'); const SITE_HEADER ...
require('dotenv').config({silent : true}); var http = require('http'); var request = require('request'); var urlRegex = /^https?/; var sizeLimit = process.env.SIZE_LIMIT || 1024 * 1024; var requestsLimit = process.env.REQ_LIMIT || 15000; var copyHeaders = ['user-agent', 'content-type']; var reqIPs = []; function cre...
//Дан диаметр окружности d. Найти её длину L = 3.14 * d. В качестве значения пи использовать 3.14. const getLength = d => console.log('Length is: ' + (3.14 * d));
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); module.exports = function(inOptions) { return new CleanWebpackPlugin(inOptions); };
import * as THREE from '../lib/three/build/three.module.js' import { World } from './engine.js' import Stats from '../lib/three/examples/jsm/libs/stats.module.js' export class Simulation { _animationFrameRequestID; // request ID returned by requestAnimationFrame, can be used to cancel the request _isPlayi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("@styled-icons/boxicons-regular/UpArrowAlt"), exports);
import React from "react"; import ReactDOM from "react-dom"; import App from "./App"; import reportWebVitals from "./reportWebVitals"; import store from "./redux/store"; import { Provider } from "react-redux"; import "./styles/reset.css"; import { BrowserRouter as Router } from "react-router-dom"; ReactDOM.render( ...
/** * @param {number[]} prices * @return {number} */ var maxProfit = function(prices) {    const numberOfDays = prices.length;    // we wouldn't make any profit if it's only 1 day    if (numberOfDays === 1) {        return 0;   }    // we wouldn't make any profit if it's only 2 days and minimum price was high...
import React from 'react'; import Header from './Header'; import CreateForm from './CreateForm'; import {View, Text, StyleSheet} from 'react-native'; const EditProject = ({selectedProject, editProject}) => { return ( <View style={styles.container}> <Header title={`Edit Project `} /> <CreateForm selec...
/** * Api - BCE-JDK-BOS Region Client * * @file client.js * @author mudio(job.mudio@gmail.com) */ import url from 'url'; import path from 'path'; import {isString} from 'util'; import {BosClient} from '@baiducloud/sdk'; import {REGION_BJ, kRegions} from '../../utils/region'; import GlobalConfig from '../../main/...
const path = require('path'); module.exports = { entry: path.resolve(__dirname, 'src', 'index.js'), output: { path: path.resolve(__dirname, 'public'), filename: 'bundle.js' }, devServer: { contentBase: path.resolve(__dirname, 'public'), }, module: { rules: [ { test: /\.js$/, ...
webpackJsonp([0],{ /***/ 26: /***/ (function(module, exports, __webpack_require__) { var disposed = false var normalizeComponent = __webpack_require__(0) /* script */ var __vue_script__ = __webpack_require__(29) /* template */ var __vue_template__ = __webpack_require__(30) /* template functional */ var __vue_template...
/** * 节流函数 * @param {Function} func 被调用的函数 * @param {Number} wait 时间间隔 * @param {Object} options {leading:true,trailing:true} */ export default function (func, wait, options) { /* options的默认值 * 表示首次调用返回值方法时,会马上调用func;否则仅会记录当前时刻,当第二次调用的时间间隔超过wait时,才调用func。 * options.leading = true; * 表示当调用方法时,未到达wait指定的时...
const QueryExecutor = require("../database/MySQLQueryExecutor"); const { FLAG_TYPES } = require("../constants/Flags"); const insertUpdateFlag = async (userId, type, flagId, value) => { const flag = await getFlag(userId, type, flagId); if (flag) { await QueryExecutor.query( "UPDATE `flags` ...
const { Telegraf } = require('telegraf') // Create the bot using the token from the environment variable const bot = new Telegraf(process.env.TELEGRAM_TOKEN) // On /start command bot.start((ctx) => ctx.reply('Welcome! :)')) // On /help, remember to set on bot config as quick command bot.help((ctx) => ctx.reply('Send...
/* * Grunt Script for Bootstrap Stylus * http://gruntjs.com/ */ 'use strict'; module.exports = function(grunt) { grunt.initConfig({ stylus: { options: { compress: false, paths: ['stylus', __dirname], urlfunc: 'embedurl', // use embedurl('test.png') in our code to trigger Data URI embeddi...
const Hotspots = artifacts.require('./Hotspots.sol') contract('Hotspots', (accounts) => { before(async () => { this.Hotspots = await Hotspots.deployed() }) it('deploys successfully', async () => { const address = await this.Hotspots.address assert.notEqual(address, 0x0) assert.notEqual(address, ...
//全局变量 const button = document.getElementById('button'); const select = document.getElementById('select'); const audio = document.getElementById("audio0"); const status = document.getElementById('status'); //测试自动循环 function loopPlay(){ //const audio = document.getElementById("audio0"); document.getElementById...
'use strict'; var extend = require('extend-shallow'); /** * Render templates */ module.exports = function(app) { return function (file, next) { var template = app.getFile(file); template.content = file.contents.toString(); var ctx = extend({}, template.data, template.locals); template.render(ctx...
const express = require("express"); const router = express.Router(); const controllerGeneralInfo = require("../controllers/generalInfo"); const { isAuth } = require("../middlewares/is-auth"); router.get("/get", controllerGeneralInfo.get); // router.post("/update", isAuth, controllerGeneralInfo.update); module.exports...
// ag-grid-enterprise v20.0.0 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ag_grid_community_1 = require("ag-grid-community"); var relationship_1 = require("./relationship"); var relationshipsFactory = { getTemplate: function (c) { var children = ag_grid_community_1._.map...
// 用于继承其它对象的属性和属性描述符。 const mixin = require('merge-descriptors'); const application = require('./application.js'); function createApplication() { // 该方法其实就是createServer的回调,服务器的入口 const app = (req, res) => { // handle方法来自proto app.handle(req, res); } // 将proto上的方法赋值给app,成为app的静态方法 mixin(app, applicat...
module.exports = { root: true, extends: 'airbnb-base', parser: 'babel-eslint', env: { 'browser': false, }, plugins: [ 'html', ], parserOptions: { sourceType: 'module', allowImportExportEverywhere: true, }, rules: { 'no-console': 0, 'prefer-rest-params': 0, 'class-methods-...
'use strict'; /** * Module dependencies. */ const { Violation } = require('validator.js'); /** * Export `NullOrBooleanAssert`. */ module.exports = function nullOrBooleanAssert() { /** * Class name. */ this.__class__ = 'NullOrBoolean'; /** * Validation algorithm. */ this.validate = value =...
/** * -------------------------------------------------------------------------- * Propeller v1.3.2 (http://propeller.in): textfield.js * Copyright 2016-2019 Digicorp, Inc. * Licensed under MIT (http://propeller.in/LICENSE) * -------------------------------------------------------------------------- */ var pmdTe...
import React, { Component } from 'react'; import ClientNavbar from '../ClientNavbar'; import VendorNavbar from '../VendorNavbar' import NormalJumbotron from '../Jumbotron'; import Container from '../Container'; import Footer from '../Footer'; const axios = require('axios'); class Cart extends Component { state = {...
// myModuleとしてデフォルトインポートし、 // fooを名前つきインポートする import myModule, { foo } from "./my-module.js"; console.log(foo); // => "foo" console.log(myModule); // => { baz: "baz" }
//Credit to Shesek for "github:shesek/lightning-client-js". //This is the main library, which enables connection with the c-lightning node 'use strict'; const path = require('path'); const net = require('net'); const debug = require('debug')('lightning-client'); const {EventEmitter} = require('events'); const JSONPars...
function users(state = [], action) { const { type, email, firstName, lastName, gender, index, id } = action; switch (type) { case 'ADD_NEW_USER': return [ ...state, { email, first_name: firstName, last_name: lastNa...
Ext.define('KitchenSink.view.chart.financial.OHLCController', { extend: 'Ext.app.ViewController', alias: 'controller.financial-ohlc', init: function (view) { if (!Ext.supports.Touch) { /** * Touch devices do not need the toggle buttons * as the panzoom interact...
import React from "react"; import { NavLink } from "react-router-dom"; class Home extends React.Component { render() { return ( <React.Fragment> <div id="carouselExampleIndicators" className="carousel slide carouselSize" data-ride="carousel" data-interval="50...
import React, { Component } from 'react'; class ProfileReport extends Component{ constructor(props){ super(props) this.state = { category: "", details: "", user_id: this.props.user_id, restaurant_id: this.props.restaurant_id } this.handleAddReport = this.handleAddReport.bind(this) this.handleCa...
// get stuff to full height var fullHeight = window.innerHeight; console.log(fullHeight); window.onload = function(){ function changeElementHeight() { var el = document.getElementsByClassName('fullHeight'); el.style.height = fullHeight; }; }
function verificar() { var data = new Date() var ano = data.getFullYear() var fano = document.getElementById('txtano') var res = document.querySelector('div#res') if (fano.value.length == 0 || fano.value > ano) { window.alert('Verifique o ano inserido e tente novamente!') } else { ...
/*eslint no-unused-vars: 0*/ import { Map, fromJS } from 'immutable'; import { onSetPosition, onSetAnimation } from 'shared/handlers/entity'; import { findEntityIndexById } from 'shared/helpers/game'; import { EntityActions } from 'shared/constants'; export function onUpdateState(state, action) { const { newState, ...
// @flow import type { Plane, Vector3 } from "three"; import type { Equatable } from "./Equatable"; export interface QuakeBrushHalfSpace extends Equatable<QuakeBrushHalfSpace> { containsPoint(Vector3): boolean; getPlane(): Plane; getPlaneDefiningPoint1(): Vector3; getPlaneDefiningPoint2(): Vector3; get...
var struct_compact_tally_item = [ [ "CompactTallyItem", "struct_compact_tally_item.html#a5f71ede77d73110059a3d0215ee8af4d", null ], [ "nAmount", "struct_compact_tally_item.html#a0efb39fdaacf62d56f5cb90261b71402", null ], [ "txdest", "struct_compact_tally_item.html#a68a09f444683900e80c7e08b23f8fc56", null ],...
"use strict"; /** * Implement "this.storeChanged" for this mixin. */ var StoreSubscribeMixin = (stores) => { return { componentDidMount() { stores.forEach(store => store.subscribe(this._handleStoresChanged) ); }, componentWillUnmount() { stores.forEach(store => store....
const { Transform } = require('stream'); /** * The ReadlineTransform is reading String or Buffer content from a Readable stream * and writing each line which ends without line break as object * * @param {RegExp} opts.breakMatcher - line break matcher for str.split() (default: /\r?\n/) * @param {Boolean} opts.igno...
define([ '../../createStandardEditorFactory', 'gform/model/ArrayModel', 'gform/model/TreeGroup', "doh/runner", "gform/model/SingleObject", "gform/model/PrimitiveModel"], function (createStandardEditorFactory, ArrayModel, TreeGroup, doh, SingleObject, PrimitiveModel) { var type = { edito...
import {dedupingMixin} from '@polymer/polymer/lib/utils/mixin.js'; import '@polymer/iron-ajax/iron-ajax.js'; const AjaxMixin = dedupingMixin((superClass) => { /** * @polymer * @mixinClass */ class Mixin extends superClass { /** * @param {string} url * @param {string} me...
/** * @param {string[]} words * @return {number} */ var minimumLengthEncoding = function(words) { function TreeNode(val) { this.isEnd = false this.children = {} this.val = val } class Trie { constructor() { this.tree = new TreeNode(null) } // 单词倒序插入进去,因为小的单词如果被包含在其他长的单词中,那么后缀一定相同 ...
/* * @Author: your name * @Date: 2019-12-30 16:29:32 * @LastEditTime: 2020-06-10 20:14:05 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /CoperationGroupNodeServer/APIProgress/apiTSSCprogress.js */ /// 唐诗宋词数据接收处理 /// tssc function syncTSSCInfos(app, TSSCDBIns, dbinsta...
import { StyleSheet } from 'react-native'; export default LoaderStyle = StyleSheet.create({ fullPage: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#1c242c', }, });
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 var AWS = require('aws-sdk'); const chime = new AWS.Chime({ region: 'us-east-1' }); const utils = require('utils'); chime.endpoint = new AWS.Endpoint('https://service.chime.aws.amazon.com/console'); const meeti...
import express from 'express'; import {indexAction, getProductByID, modifyProduct, deleteProduct} from '../controllers/ProductController'; const router = express.Router(); router.get('/', indexAction); router.get('/:productID', getProductByID); router.post('/', modifyProduct); router.put('/:productID', modifyProduct...
'use strict' module.exports = { name: 'APP_NAME', port: 'PORT', trustProxy: 'TRUST_PROXY', client: 'CLIENT', connection: 'CONNECTION', migrations: { directory: 'MIGRATIONS_DIRECTORY' }, seeds: { directory: 'SEEDS_DIRECTORY' }, log: { name: 'APP_NAME', level: 'LOG_LEVEL', format:...
import {logger} from '#preact/logger'; import {platformUtils} from '#preact/utils/platform'; import {getIOSAppInfo} from '../component/ios'; describes.sandboxed('BentoAppBanner preact component v1.0', {}, (env) => { describe('getIOSAppInfo', () => { describe('when no meta header is present', () => { it('s...
import BaseHooks from './base'; import closest from '../lib/closest'; // ie 11 does not support native closest if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; } if (!Element.prototype.closest) { Element.prototype.clo...
import { Component } from '../src/index'; import { componnetReady } from '../src/utils'; describe('component', () => { let component; let hooks = {}; let BaseComponent; beforeAll(() => { hooks = { nameObserver: jasmine.createSpy('nameObserver'), activeObserver: jasmine.createSpy('activeObserve...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'uk'; var iconName = 'reply'; var width = 512; var height = 512; var ligatures = []; var unicode = null; var svgPathData = 'M 230.40039 51.199219 L 25.599609 230.40039 L 230.40039 409.59961 L 230.40039 310.52734 C 275.96839 319.23...
require('dotenv').config(); const bodyParser = require('body-parser') const cors = require('cors') const express = require('express') const http = require('http') const app = express() const PORT = process.env.PORT || 5000 // support parsing of application/json type post data app.use(express.json()) // support pa...
module.exports = { docs: [ { type: "doc", id: "intro", }, { type: "category", label: "Free Online Learning", items: [ { type: "doc", id: "online-learning-opportunities/overview", }, { type: "doc", i...
module.exports = [ { country: 'Afghanistan', previously: 'Northern Persia', date: new Date('1919-08-19'), reading: 'https://en.wikipedia.org/wiki/Anglo-Afghan_Treaty_of_1919', }, { country: 'Antigua and Barbuda', date: new Date('1981-11-01') }, { country: 'The Bahamas', date: n...
var searchData= [ ['maparea_2eh_356',['MapArea.h',['../_map_area_8h.html',1,'']]], ['mediautil_2ecpp_357',['MediaUtil.cpp',['../_media_util_8cpp.html',1,'']]], ['mediautil_2eh_358',['MediaUtil.h',['../_media_util_8h.html',1,'']]], ['mixer_2ecpp_359',['Mixer.cpp',['../_mixer_8cpp.html',1,'']]], ['mixer_2eh_360...
import React from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import * as BooksAPI from '../utils/BooksAPI'; import Promise from 'bluebird'; import PageSearchBooks from './PageSearchBooks'; import PageListBooks from './PageListBooks'; import PageDetailBook from './PageDetailBook'; class BooksA...
import React from 'react' import { Button } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' import { AlertIcon } from '@primer/octicons-react' import PropTypes from 'prop-types' import styles from './index.styl' export default function NotFound({ pathname }) { return ( <div classNam...
deepmacDetailCallback("000ac1000000/24",[{"d":"2002-08-03","t":"add","a":"21580 Stevens Creek Blvd, Suite 208\nCupertino CA 95014\n\n","c":"UNITED STATES","o":"Futuretel","s":"wireshark.org"},{"d":"2015-08-27","t":"change","a":"21580 Stevens Creek Blvd, Suite 208 Cupertino CA US 95014","c":"US","o":"Futuretel"}]);
/** * @fileOverview Generate bar chart for markvis * @name index.js<src> * @author GeekPlux * @license MIT */ const { addStyle } = require('./utils') /** * Bar chart generator * @param {array} data * @param {object} d3 d3 will get in browser environment * @param {function} D3Node D3Node will get in node envir...
import Component from "../../render"; export default class UikitRenderComponent extends Component { class = "uk-margin"; }
import React from 'react'; import { navigate } from "gatsby" // material-ui import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; // components import Layout from '../component...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[7],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/auth/OrganRegister/Index.vue?vue&type=script&lang=js&": /*!*************************************************************************...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var isServer = typeof window === 'undefined'; function scrollIntoView(container, selected) { if (isServer) return; if (!selected) { container.scrollTop = 0; return; } const offsetParents = []; let...
/* Copyright 2020-Present Couchbase, Inc. Use of this software is governed by the Business Source License included in the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, Version ...
//>>built define( //begin v1.x content ({ "pasteFromWord": "Incolla da Word", "paste": "Incolla", "cancel": "Annulla", "instructions": "Incolla il contenuto da Word nella casella di testo sottostante. Al termine dell'inserimento del contenuto, premere il pulsante Incolla. Per annullare l'inserimento del testo, prem...
import React, {Component} from 'react' import {fetchTransactions} from '../store/transactions' import {connect} from 'react-redux' class Transactions extends Component { constructor() { super() this.convertDate = this.convertDate.bind(this) } async componentDidMount() { await this.props.fetchTransac...
/*! jQuery UI - v1.11.0-beta.1 - 2014-04-24 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
import { useEffect } from 'react'; import ReactDOM from 'react-dom'; function AppendBody({ children }) { const el = document.createElement('div'); useEffect(() => { document.body.appendChild(el); return () => { document.body.removeChild(el); }; }, [el]); return ReactDOM.createPortal(childre...
$(function(){ //首页焦点图滚动插件 var glume = function(banners_id, focus_id){ this.$ctn = $('#' + banners_id); this.$focus = $('#' + focus_id); this.$adLis = null; this.$btns = null; this.switchSpeed = 5;//自动播放间隔(s) this.defOpacity = 1; this.crtIndex = 0; this.adLength = 0; this.timerSwitch = null; this.init(); }; g...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
import React from "react"; import { BrowserRouter as Router } from "react-router-dom"; import Header from "../components/Header"; export default { title: "Header", component: Header, }; const Template = () => ( <Router> <Header /> </Router> ); export const MainHeader = Template.bind({});
/** * impress.js * * impress.js is a presentation tool based on the power of CSS3 transforms and transitions * in modern browsers and inspired by the idea behind prezi.com. * * * Copyright 2011-2012 Bartek Szopka (@bartaz) * * Released under the MIT and GPL Licenses. * * -------------------------------------...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (Prism) { Prism.languages.erlang = { 'comment': /%.+/, 'string': { pattern: /"(?:\\.|[^\\"\r\n])*"/, greedy: true }, 'quoted-function': { pattern: /'(?:\\.|[^\\'\r\n])+'(?=\()/, alias: 'functi...
'use strict'; let fs = require('fs'); let path = require('path'); let crypto = require('crypto'); // NOTE: this a patch until official support is out const prepareIoredis = require('../lib/ioredis-stream.js'); prepareIoredis(); let Redis = require('ioredis'); function split(str) { let results = []; let word = ''...
// @flow import * as Shared from "../../../../shared/index.js"; import {CloseableVirtualConsole} from "../closeable-virtual-console.js"; jest.mock("../../../../shared/index.js"); describe("CloseableVirtualConsole", () => { describe("before close() is called", () => { it("should ignore jsdomError events fo...
var exports = module.exports = {}; var database = require("../database/database"); exports.get = function(actionCallBackFunction) { var menuDbModel = {}; menuDbModel.collectionName = "menu"; menuDbModel.dbData = {}; menuDbModel.dbData.criteria = {}; menuDbModel.dbData.projection = {"_id": 0}; me...
const { User } = require('./../models/user'); function getUser(id) { return User.findById(id); } function signUp(req, res) { if (req.body.email && req.body.username && req.body.password) { const userData = { email: req.body.email, username: req.body.username, password: req.body.passw...
import * as React from "react"; import ClipboardJS from "clipboard"; export const Button = React.forwardRef((props, ref) => ( <button type="button" className="btn" ref={ref} {...props} /> )); export class ClipboardButton extends React.Component { constructor() { super(); this.state = { showTooltip: false,...