text
stringlengths
2
1.04M
let data = { "body": "<path d=\"M21 6.58v12.09A3.33 3.33 0 0 1 17.67 22h-6.09c-.9 0-1.75-.36-2.37-1l-6.54-6.64s1.05-1.03 1.08-1.04a.985.985 0 0 1 1.16-.11c.03.01 3.59 2.05 3.59 2.05V5.33a1.25 1.25 0 0 1 1.25-1.25A1.25 1.25 0 0 1 11 5.33v5.84h.83V3.25A1.25 1.25 0 0 1 13.08 2c.7 0 1.25.56 1.25 1.25v7.92h.84V4.08c0-.69.5...
/* Leaflet.draw 0.4.12, a plugin that adds drawing and editing tools to Leaflet powered maps. (c) 2012-2017, Jacob Toye, Jon West, Smartrak, Leaflet https://github.com/Leaflet/Leaflet.draw http://leafletjs.com */ (function (window, document, undefined) {/** * Leaflet.draw assumes that you have already included t...
import nuxtBuildOptimisations from '../../../src' export default { // Global page headers: https://go.nuxtjs.dev/config-head head: { title: 'preset', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'descriptio...
const makeImage = (elFile, file) => { const elImage = document.createElement('img'); elFile.appendChild(elImage); const reader = new FileReader(); reader.addEventListener('load', (e) => { elImage.src = e.target.result; }); reader.readAsDataURL(file); }; const removeSelf = (origin) => {...
const services = require('./note.service.wrapper.js'); const noteService = services.noteService(); const expectedNotes = [ { title: 'Third Note', content: 'Me, a name I call myself' }, { title: 'Fourth Note', content: 'Far, a long long way to run' } ]; const notes = [];...
"use strict"; const Collection = require("../util/Collection"); const Shard = require("./Shard"); class ShardManager extends Collection { constructor(client) { super(Shard); this._client = client; this.connectQueue = []; this.lastConnect = 0; this.connectTimeout = null; ...
import { options } from './rest'; export default async function validateReCAPTCHA(response) { var res = await fetch( "https://www.google.com/recaptcha/api/siteverify", options.general.POST( `secret=${process.env.reCAPTCHA_SECRET}&response=${response}`, { 'Content-type': 'ap...
/* * Copyright 2018 InfAI (CC SES) * * 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 applica...
/* AngularJS v1.3.0-beta.12 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(p,h,q){'use strict';function E(a){var d=[];s(d,h.noop).chars(a);return d.join("")}function k(a){var d={};a=a.split(",");var b;for(b=0;b<a.length;b++)d[a[b]]=!0;return d}function F(a,d){function b(a,c,b,g){c=h.lowerc...
var express = require('express'); var bodyParser = require('body-parser'); var request = require('request'); var axios = require('axios'); var db = require('./database.js'); var config = require('./config'); var cors = require('cors'); var app = express(); var apiHelpers = require('./apiHelpers.js'); app.use(bodyPars...
import a from 'exports-star/foo/a'; import b from 'exports-star/foo/b'; import c from 'exports-star/foo/bar/c'; export default { a, b, c };
var name = {}; module['exports'] = name; name.name = require("./name"); name.male_first_name = require("./male_first_name"); name.female_first_name = require("./female_first_name"); name.first_name = require("./first_name"); name.last_name = require("./last_name");
let sox = require('bindings')('bindings') console.log(sox.soxbind_get_version())
var Monitor = require('../').Monitor; // Instantiate a new Monitor component. var randomMonitor = new Monitor({ name: 'monitor' });
// Copyright 2011 Google Inc. All Rights Reserved. (function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var l,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba="function"==typeof Object.defineProperties?Object.defineProperty:funct...
'use strict'; /* jshint -W098 */ // The Package is past automatically as first parameter module.exports = function(Welcome, app, auth, database) { app.get('/api/welcome/example/anyone', function(req, res, next) { res.send('Anyone can access this'); }); app.get('/api/welcome/example/auth', auth.requiresLogi...
var COMPODOC_SEARCH_INDEX = { }
import React, { Component } from 'react'; import { Card, CardBody, CardHeader, Col, Row, Table } from 'reactstrap'; import { AppSwitch } from '../../../core/index' class Switches extends Component { render() { return ( <div className="animated fadeIn"> <Row> <Col xs="12" md="6"> ...
const { GenericHelpMessage } = require("./../Constants/embeds"); const { CreateClone } = require("./../Utils/objectExtensions"); const { Settings } = require("./../Settings/bot"); export function CreateHelpCommandEmbed(command) { var embed = CreateClone(GenericHelpMessage); embed.description = `Help for '${command....
(window.webpackJsonp=window.webpackJsonp||[]).push([[170],{3043:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icon=void 0,n(10);var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=argum...
module.exports={A:{A:{"1":"G E A B","8":"K D iB"},B:{"1":"2 C d J M H I"},C:{"1":"0 1 3 4 6 7 8 9 Y Z a b c e f g h i j k l m n o L q r s t u v w x y z HB GB BB CB FB","33":"2 fB DB F N K D G E A B C d J M H I O P Q R S T U V W X ZB YB"},D:{"1":"0 1 2 3 4 6 7 8 9 A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i ...
//// [objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts] // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters wit...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
const server = { PORT: 4000, host: 'http://localhost', } const database = { host: 'localhost', user: 'root', pass: '', db: 'vigo' } module.exports = { server, database }
import classic from 'ember-classic-decorator'; import { action } from '@ember/object'; import Controller from '@ember/controller'; @classic export default class NewController extends Controller { isLoading = false; @action async save(data) { try { this.set('isLoading', true); const order = data;...
import React, { useMemo } from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { onLoginNavItemClick } from './../navigation/components/LoginNavItem'; import { productsAddToCart, productsCheckout, event, eventObjectFromCtx } from '@hms-dbmi-bgm/shared-portal-components/es/components/uti...
import { createTestClient } from 'apollo-server-testing'; import gql from 'graphql-tag'; import { makeNullGameRepository } from '../../repos/game-repository'; import { makeGetDataSources } from '../../infra/graphql/get-data-sources'; import { makeTestServer } from '../../__tests__/test-server'; import { buildTestGame }...
(function ($) { var clickoutSelector = '[data-fn-clickout]'; $(function(){ $(document) .on('click', function (e) { $(clickoutSelector).each(function () { if (!this.contains(e.target)) { $(this).clickout(); } }); }); }); function handleEventBinding (arrStr) { if (!Array.isArray(...
export { default } from './CommentContent';
const Debug = require('debug'); const debug = Debug('iexec-server-js-client:utils'); const getAppBinaryFieldName = (_os, _cpu) => { if (_os === undefined || _cpu === undefined) { throw new Error('OS or CPU undefined'); } const os = _os.toUpperCase(); const cpu = _cpu.toUpperCase(); if (os === 'JAVA') ...
import Vue from 'vue' import 'normalize.css/normalize.css' // A modern alternative to CSS resets import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import locale from 'element-ui/lib/locale/lang/en' // lang i18n import '@/styles/index.scss' // global css import 'font-awesome/scss/font-...
(function(){ 'use strict'; angular.module('readings') .component('questionEssay', { templateUrl: 'readings/questionEssay/questionEssay.template.html', controller: 'questionEssayController', bindings:{ edit: '<', question: '<' } }); })();
// @flow import React from 'react'; import { Scene, Router } from 'react-native-router-flux'; import { ConnectedAccountScreen, ConnectedRankingScreen, ConnectedMyRankingScreen, ConnectedChannelDetailScreen, } from '../Containers'; import { TabIcon } from '../Components'; import { TabBarStyle } from './Styles'...
const request = require('request'); const xml2js = require('xml2js'); const cheerio = require('cheerio'); const qs = require('querystring'); const USER_AGENT = 'DragonBot (DragonOfMath @ github)'; async function fetch(url, options = {}) { options.url = options.url || url; options.json = options.json ||...
/* * Contains functions for moving sprites. */ var updateSprite = { screenWidth: 0, screenHeight: 0 }; updateSprite.setCanvasDimensions = function (width, height) { updateSprite.screenWidth = width; updateSprite.screenHeight = height; }; /* Determine the directional movement of a sprite by examining its *...
function generateVerificationCode() { return Math.floor(Math.random() * 65743 + 10000 * (1000 / 500)); } export default generateVerificationCode;
/** * @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 */ import { Injectable, NgModule, NgZone } from '@angular/core'; import { Platform, PlatformModule } from '@angular/cdk/p...
import { FETCH_EVENTS, ERROR_RESPONSE } from '../actions/types'; const INITIAL_STATE = { events: [], message: '', error: '' }; export default function (state = INITIAL_STATE, action) { switch (action.type) { case FETCH_EVENTS: return { ...state, events: action.payload }; case ERROR_RESPONSE: ret...
var searchData= [ ['eptrtype',['EPtrType',['../_sensor_models_8h.html#ad851613478a98a0140ed7ee63c488275',1,'SensorModels.h']]] ];
import {setEntries, next, vote, INITIAL_STATE} from './core'; export default function reducer(state = INITIAL_STATE, action) { switch(action.type) { case 'SET_ENTRIES': return setEntries(state, action.entries); case 'NEXT': return next(state); case 'VOTE': return state.update('vote', vo...
/** * Auto-generated action file for "Mailchimp Marketing API" API. * * Generated at: 2021-05-20T15:00:33.658Z * Mass generator version: 1.0.0 * * : Mailchimp-Component * Copyright © 2020, AG * * All files of this connector are licensed under the Apache 2.0 License. For details * see the file LICENSE on the ...
const assert = require("assert"); describe("Timeline general interaction", () => { browser.url("http://localhost:8080/test-resources/sap/ui/webcomponents/main/pages/Timeline.html"); it("should fire itemNamePress event on a normal item name", () => { const timelineItemName = browser.findElementDeep("#test-item >>>...
/** * Shortcut fuctions to make calls to API endpoints related to Rate_Types object */ import session from './_session' import { paramsSerializer } from './_utils' import { camelToSnake } from '@/_utils' import { RATE_TYPES } from './_endpoints' export default { /** * Performs options request to get rate_types'...
// Separating Axis Theorem: Vector class ig.module( 'plugins.sat.vector' ) .defines(function (){ ig.global.Vector = ig.Class.extend({ x: 0, y: 0, init: function( x, y ){ this.x = x || 0; this.y = y || 0; return this; ...
/** * Square Connect API * Client library for accessing the Square Connect APIs * * OpenAPI spec version: 2.0 * Contact: developers@squareup.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.3.0...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _Transition = require("react-transition-group/Transition"); var _Fade = _interopRequireDefault(require(...
import { format } from 'date-fns'; export default { name: 'project', title: 'Project', type: 'document', fields: [ { name: 'title', title: 'Project name', type: 'string', }, { name: 'slug', title: 'Slug', type: 'slug', options: { source: 'title', ...
export const postGuess = (history) => { return { type: "POST_GUESS", history: history } }; export const completed = () => { return { type: "COMPLETED", completed: true } }
(function (factory) { typeof define === 'function' && define.amd ? define(factory) : factory(); }(function () { 'use strict'; const retained1a = { get effect () { console.log( 'effect' ); }, get noEffect () { const x = 1; return x; } }; const retained1b = retained1a.effect; const retained1c = re...
'use strict'; module.exports = '_sugar_';
const assert = require('@barchart/common-js/lang/assert'), Disposable = require('@barchart/common-js/lang/Disposable'), Enum = require('@barchart/common-js/lang/Enum'); const EndpointBuilder = require('@barchart/common-js/api/http/builders/EndpointBuilder'), Gateway = require('@barchart/common-js/api/http/Gateway')...
var webpack = require('webpack'); var cssnext = require('postcss-cssnext'); var postcssFocus = require('postcss-focus'); var postcssReporter = require('postcss-reporter'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: { app: [ 'eventsource-polyfill', 'webpack-hot-middleware/cl...
(function(angular) { 'use strict'; //// JavaScript Code //// //// Angular Code //// angular.module('ngJsTreeDemo',['ngJsTree','toaster','cgBusy']); })(angular);
import React from 'react' let ContentDivPre = React.createClass({ render:function(){ return ( <div style={{top:this.props.top+"px",left:this.props.left+"px",height:this.props.height+"px",width:this.props.width+"px",position: "absolute",border: "1px solid"}}> <div style={{width: ...
import React, { Component } from 'react'; import ColorBox from './ColorBox'; import Navbar from './Navbar'; import PaletteFooter from './PaletteFooter'; import { withStyles } from '@material-ui/styles'; import styles from './styles/PaletteStyles'; class Palette extends Component { constructor(props) { super(prop...
function normalizeClassification (options) { if (options.classification) return options.classification // TODO: ? normalize standard classification else if (options.classificationDef) return normalizeGeoservicesClassBreaks(options) else return undefined } function normalizeGeoservicesClassBreaks (options) { co...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'far'; var iconName = 'store-alt-slash'; var width = 640; var height = 512; var ligatures = []; var unicode = 'e070'; var svgPathData = 'M507.21,48l73.1,128H334.57L396,224H528V327.23l48,37.53V224h32c24.6,0,39.91-26.5,27.71-47.9l-9...
import { TD } from "../../api/td.js"; import { checkPropertyExists, noop } from "../../api/utils.js"; function isSupported() { return checkPropertyExists(TD, "controller", "clients", "getPreferredClient") && checkPropertyExists(TD, "services", "TwitterClient", "prototype", "API_BASE_URL") && checkProp...
const TheHigerLowerGame = require('../../game/TheHigherLower'); const game = new TheHigerLowerGame(); const sendBugReport = require('../../scripts/sendBugReport'); const User = require('../../models/User'); module.exports = () => (ctx) => { try { // Game Data. Shorted in order to take less characters for ...
module.exports={A:{A:{"2":"H D G E A B EB"},B:{"1":"C p x J L N I"},C:{"1":"0 1 2 3 4 5 6 8 9 J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y","2":"YB BB F K H D G E A B C p x WB QB"},D:{"1":"1 2 3 4 5 6 8 9 q r s t u v w y KB aB FB a GB HB IB","2":"0 F K H D G E A B C p x J L N I O P Q R ...
import { updateOrCreate } from './init-user-menu.js' let userKeywords = [] let preloadedKeywords = [] let editor = null const SESSION_KEY = 'LQ_editorContent' const updateSuggestions = (monaco, builtInKeywords) => { const { languages } = monaco languages.registerCompletionItemProvider('scheme', { provideCom...
require("dotenv").config({ path: `.env.${process.env.NODE_ENV}`, }) const fetch = require(`node-fetch`) const { createHttpLink } = require(`apollo-link-http`) module.exports = { siteMetadata: { title: `Portfolio Max Werpers`, description: `Wilkommen auf meinem persönlichen Portfolio. Hier stelle ich meine a...
"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 (b.hasOwnPrope...
/* * 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...
// This file was procedurally generated from the following sources: // - src/dstr-assignment/obj-prop-name-evaluation.case // - src/dstr-assignment/default/assignment-expr.template /*--- description: PropertyName of an AssignmentProperty may be a ComputedPropertyName. (AssignmentExpression) esid: sec-variable-statement...
module.exports = { env: { browser: true, es2021: true }, extends: [ 'standard' ], parserOptions: { ecmaVersion: 'latest' }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === ...
import React from 'react' export default (Component, predicate) => props => predicate() && (<Component {...props} />);
import React from 'react'; import styled from 'styled-components'; import Label from 'components/Basic/Label'; import Description from 'components/Basic/Description'; import HighLighter from 'components/Basic/HighLighter'; import Parameter from 'components/Basic/Parameter'; import { SubSection, ParameterSection } from ...
/** * This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module. * * Note that this file should only contain controllers and nothing else. */ (function () { 'use strict'; angular.module('frontend.plugins') .controller('AddPluginsController', [ '_', '$sc...
(function () { 'use strict'; var gulp = require('gulp'); var jsdoc = require('gulp-jsdoc3'); var path = require('path'); var baseDir = '../../../'; var currentPath = path.join(__dirname, baseDir); var getPath = function (_path) { return currentPath + _path; }; var docClient = function () { ...
// import { // selectCompleteHomePage, // } from '../selectors'; // import { fromJS } from 'immutable'; // import expect from 'expect'; // const selector = selectCompleteHomePage(); // describe('selectCompleteHomePage', () => { // });
/** * 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 strict-local * @format */ 'use strict'; import type { Props as TouchableWithoutFeedbackProps } from '../TouchableWithou...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.Shrink = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentCol...
const entry = require('./entry') function entries (items) { const expanded = !!items.find(item => item.state.expanded) const separator = (expanded ? `\n\n` : `\n`) if (items.length) { const sections = items.map(item => entry(item)) return sections.filter(item => item).join(separator) } else { retur...
/** * 测试环境 */ ;(function () { window.SITE_CONFIG = {}; // api接口请求地址 window.SITE_CONFIG['baseUrl'] = 'http://120.78.161.231:8085/rdplat'; // cdn地址 = 域名 + 版本号 window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分) window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFI...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
import { SAVE_USER_DATA_GENERAL } from 'containers/SignIn/signin.constants'; export const saveUserData = payload => ({ type: SAVE_USER_DATA_GENERAL, payload }); export const CLEARSTORE = () => ({ type: 'CLEARSTORE' });
/* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. */ /****************************************************************************** * * You may not use the identified files except in compliance with the Apache * License, Version 2.0 (the "License.") * * You may obtain a copy of the ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const FavoriteSchema = new mongoose.Schema({ title: String, poster: String, imdbID: String }); module.exports = mongoose.model('Favorite', FavoriteSchema)
module.exports = { presets: [ ['@babel/preset-env', { targets: { node: 'current', firefox: '60', chrome: '67', safari: '11.1', }, }], ], };
"use strict" // < Theme Names const themeMenuName = "nebulaOni" const themeTextName = "Nebula Oni" const themeFileName = "nebula-oni-theme" // < deprecated, variable and punctuation colors are the same const colorScheme_1 = "Hourglass" const colorScheme_3 = "Spirograph" // ? property: magenta, string: blue, number: p...
/* Highcharts JS v4.1.3 (2015-02-27) Plugin for displaying a message when there is no data visible in chart. (c) 2010-2014 Highsoft AS Author: Oystein Moseng License: www.highcharts.com/license */ (function(c){function i(){return!!this.points.length}function e(){this.hasData()?this.hideNoData():this.showNoData(...
module.exports = function (grunt) { require('time-grunt')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), githash: { dist: { } }, clean: { build: ['build/temp'], dist: ['dist/*'] }, jshint: { ...
import React from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import Color from 'color'; import { Icon } from 'react-icons-kit'; import { zoomIn as zoomInIcon } from 'react-icons-kit/feather/zoomIn'; import { zoomOut as zoomOutIcon } from 'react-icons-kit/feather/zoomOut'; im...
Package.describe({ name: 'telescope:lib', summary: 'Telescope libraries.', version: '0.25.6', git: "https://github.com/TelescopeJS/Telescope.git" }); Package.onUse(function (api) { api.versionsFrom(['METEOR@1.0']); var packages = [ 'meteor-base@1.0.1', 'mongo', 'blaze-html-templates@1.0.1',...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, { children: [/*#__PURE__*/_jsx("path", { d: "M12 14c1.66 0 3-1.34 ...
/* @flow */ import React, { Component } from 'react'; import { CompositeDecorator, Editor, EditorState, Modifier, RichUtils, Entity } from 'draft-js'; import getDefaultKeyBinding from 'draft-js/lib/getDefaultKeyBinding'; import changeBlockDepth from './utils/changeBlockDepth'; import changeBlockType from './utils/chang...
import React from 'react'; import { render, cleanup as cleanupReact } from '@testing-library/react'; import { renderHook, cleanup as cleanupHooks } from '@testing-library/react-hooks'; import useGeolocationEvents from '../dist/useGeolocationEvents'; import GeoLocationApiMock, { watchPositionSpy } from './mocks/GeoLocat...
import {createStore, applyMiddleware, compose} from "redux"; //thunk is middleware that allows for async operations in actions import thunk from "redux-thunk"; import rootReducer from "./reducers/rootReducer"; const initialState = {}; const middleware = [thunk]; const store = createStore(rootReducer, initialState, c...
(function() { const $divMenuMob = document.querySelector('.menu-mobile_container'); const $btn = document.querySelector('.btn-menu-mob'); const $closeBtn = document.querySelector('.menu-mobile_wrapper-close'); $btn.addEventListener('click', function() { $divMenuMob.style.display = 'block'; ...
const region = document.querySelector('.demo'); const toggle = document.querySelector('.demo-toggle'); const loader = document.querySelector('.o-loading'); toggle && loader && toggle.addEventListener('click', function () { toggle.disabled = true; toggle.classList.add('demo-on'); region.setAttribute('aria-busy', 't...
const { MessageEmbed, Message } = require("discord.js"); const config = require("../../botconfig/config.json"); const ee = require("../../botconfig/embed.json"); const settings = require("../../botconfig/settings.json"); const { check_if_dj } = require("../../handlers/functions"); module.exports = { name: "seek", //t...
import React, { Component } from 'react' import {withRouter} from 'react-router-dom' import Login from '../login/Login' import ForumDetail from './ForumDetail' class Forum extends Component{ constructor(props){ super(props); this.state={ data:'', } } handle=()=>{ v...
import { URL_CURRENT_PLAYING } from '@app/redux/constant/urlCurrentPlaying'; export function urlCurrentPlaying(payload) { return { type: URL_CURRENT_PLAYING, payload, }; }
import AppStorage from './AppStorage' class User { login(data) { return axios.post('/api/auth/login', data, { headers: { 'Accept': 'application/json', 'Content-type': 'application/json', } }) } storeSession(data) { return new ...
import { useState, useEffect } from 'react' import { supabase } from '../utils/supabaseClient' import { supabaseSignOut } from '../utils/supabaseSignOut' export default function Profile({ session }) { const [loading, setLoading] = useState(true) const [username, setUsername] = useState(null) const [website, set...
import { ElMessage } from 'element-plus' import Clipboard from 'clipboard' const copy = (app, options) => { app.directive('copy', { mounted(el, binding) { el.addEventListener('click', () => { let clipboard = new Clipboard(`.${binding?.value}`) clipboard.on('success', (e) => { conso...
import EmberRouter from '@ember/routing/router'; import config from 'dummy/config/environment'; export default class Router extends EmberRouter { location = config.locationType; rootURL = config.rootURL; } Router.map(function() { });
//插件 (function () { /* * logEl 输出的容器element * isInitialized 是否初始化 * _console */ var logEl, isInitialized = false, _console = {}, _error = {}; /* * 创建元素 * tag 标签名称 * css 样式 */ function createElement( tag, css ) { var element = ...
"use strict"; const findMatchFactory = require('../src/findMatchFactory'); const { Readable, Writable, Transform } = require('stream'); /** * This is a somewhat contrived example to demonstrate how the findMatchFactory * can be used in a Node.js process with streams to detect that a particular * sequence passes ...