text
stringlengths
3.07k
16k
/*! ========================================================= * Now UI Dashboard React - v1.5.0 ========================================================= * Product Page: https://www.creative-tim.com/product/now-ui-dashboard-react * Copyright 2021 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https...
'use strict'; const log4js = require('log4js'); log4js.configure({ appenders: { console: {type: 'console'} }, categories: { default: {appenders: ['console'], level: 'info'}, } }); const logger = log4js.getLogger('index.js'); const {DmhyTgBot, LeveldbAdapter} = require('./adapters'); con...
const git = require('simple-git/promise'); const Git = require('simple-git'); const {URL} = require('url'); const promisify = require('util').promisify; const exec = promisify(require('child_process').exec); const fse = require('fs-extra'); const logger = require('./logger'); class GitExtended { /** * Init the Git ...
'use strict' var allImagesContainer = document.getElementById('product-images'); var productImageOne = document.getElementById('image-one'); var productImageTwo = document.getElementById('image-two'); var productImageThree = document.getElementById('image-three'); var listElement = document.getElementById('List'); v...
import { createHash, randomBytes } from "crypto" /** @type {import("..").Adapter} */ export function PrismaLegacyAdapter(config) { const { prisma, modelMapping = { User: "user", Account: "account", Session: "session", VerificationRequest: "verificationRequest", }, } = config ...
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { InputGroup, Input, Button, Breadcrumb, BreadcrumbItem, } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faFilter, faArrowLeft } from '@fortawesome/free-...
import React, { useState, useEffect, useReducer } from 'react'; import PropTypes from 'prop-types'; import { mapValues, flatMap } from 'lodash'; import { getLink as getProjectLink } from 'Models/project'; import { getLink as getUserLink } from 'Models/user'; import { getLink as getTeamLink } from 'Models/team'; import ...
import React from 'react'; import { exec } from 'child_process'; import shell from 'shelljs'; import fs from 'fs'; import { HOME, logoColors } from './constants'; import qrcode from "qrcode"; import styles from '../components/Main.css'; import * as CryptoIcon from 'react-cryptocoins'; import { Icon, Tooltip } from 'm...
/** * @overview UI component, a log panel (used as "Sent Bits" and "Received Bits") * that is used in the single-bit-sending configurations of the simulator. * * @see INetSimLogPanel for the interface implemented here. * @see NetSimLogPanel for the component used in packet-sending mode. */ require('../u...
import {stringify} from './../helpers/mixed'; import {WalkontableCellCoords} from './../3rdparty/walkontable/src/cell/coords'; export {BaseEditor}; Handsontable.editors = Handsontable.editors || {}; Handsontable.editors.BaseEditor = BaseEditor; Handsontable.EditorState = { VIRGIN: 'STATE_VIRGIN', //before editing...
/** * Module dependencies. */ var settings //if settings.js doesn't exist, let the user know and exit try { settings = require('./settings/settings.js'); } catch (e) { console.log("No settings.js file detected in settings folder. Try copying the settings/settings.js.example to settings/settings.js and add in se...
import { Middle, PaddingFourCenter, PaddingFourCenterBold, PaddingFourCenterLargeBold } from "../../../modules/styles"; import { compose, graphql, withApollo } from "react-apollo"; import ApolloClient from "apollo-client"; import { Bert } from "meteor/themeteorchef:bert"; import DatePicker from "react-datepicker"; imp...
import { Line } from './../2DObjects/Line.js'; import Text from './../2DObjects/Text.js'; import Button from './../2DObjects/Button.js'; import Picture from './../2DObjects/Picture.js'; import Iframe from './../2DObjects/Iframe.js'; import Slider from './../2DObjects/Slider.js'; import CircleSlider from './../2DObjects...
var BigInteger = require('bigi'); var ecurve = require('ecurve'); var secp256k1 = ecurve.getCurveByName('secp256k1'); BigInteger = require('bigi'); var base58 = require('bs58'); var hash = require('./hash'); var config = require('../../../config'); var assert = require('assert'); var G = secp256k1.G var n = secp256k1....
import React from 'react'; import Table from '..'; import TableCell from './Cell'; import TableHead from '../../TableHead'; import TableRow from '../../TableRow'; import HeadCell from './HeadCell'; import DragHeadCell from './DragHeadCell'; import withDragAndDrop from '../../DragAndDrop/withDragAndDrop'; import TableSo...
//Adds ID,URL,Title and Keywords into SOLR. If already exists,keywords get appended var express = require('express'); var cors = require('cors'); var app = express(); var url = require('url'); var quer = require('querystring'); var solr = require('solr-client'); var _mysql = require('mysql'); var unique = require('uni...
import styled from 'styled-components'; import { connect } from 'react-redux'; import { signOutAPI } from '../actions'; const Header = (props) => { return ( <Container> <Content> <Logo> <a href="/home"> <img src="/images/home...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var styles = require('@mantine/styles'); var Input_styles = require('../Input/Input.styles.js'); var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var ...
/* Script activates support for Universal Links in the application by setting proper preferences in the xcode project file. Which is: - deployment target set to iOS 9.0 - .entitlements file added to project PBXGroup and PBXFileReferences section - path to .entitlements file added to Code Sign Entitlements preference */...
window.onload=mostrarTareas(); /*FUNCION PARA INGRESAR LOS TAREA*/ function ingresarTareas(){ //Datos que se envian a la ruta $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var FrmData = { descr...
'use strict'; // Provides access to rating plans. const _ = require('underscore'); const xeval = require('abacus-eval'); const request = require('abacus-request'); const breaker = require('abacus-breaker'); const retry = require('abacus-retry'); const batch = require('abacus-batch'); const urienv = require('abacus-ur...
import $ from 'jquery'; import _ from 'underscore'; import View from '@girder/core/views/View'; import { formatSize } from '@girder/core/misc'; import { getCurrentUser } from '@girder/core/auth'; import { handleOpen, handleClose } from '@girder/core/dialog'; import '@girder/core/utilities/jquery/girderEnable'; import ...
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
import 'babel-polyfill'; const moment = require('moment') import { tsToDate } from './common'; const startOfFYGen = () => { const now = new Date(); const month = now.getMonth(); if (month >= 6) { // js months [0,11]; 6 => July; days are [1,31] // facepalm return new Date(now.getFullYear(), 6, 1); } ret...
/* * Copyright 2020 Inspire-Software.com * * 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 appl...
import Discord from 'discord.js'; import axios from 'axios'; import out from './util/out'; import contains from './util/contains'; import templates from './templates'; class DiscordBotGithub { constructor(config) { this.config = config; this.email = config.email; this.password = config.password; this...
/* * Copyright 2020 <NAME> * * 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 wr...
/** * Copyright 2019 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. */ import { css, LitElement } from "lit"; import { HAXCMSTheme } from "./HAXCMSThemeWiring.js"; import { ResponsiveUtilityBehaviors } from "@lrnwebcomponents/responsive-utility/lib/responsive-utility-behaviors...
// Copyright 2022 The Tari Project // SPDX-License-Identifier: BSD-3-Clause import {createStore} from 'vuex' import {invoke} from '@tauri-apps/api/tauri' import {listen} from "@tauri-apps/api/event"; import CBuffer from 'CBuffer'; import {cacheDir, sep} from "@tauri-apps/api/path"; async function createDefaultSetting...
/*global require */ /*! * @see {@link https://github.com/mildrenben/surface/blob/master/gulpfile.js} * @see {@link https://www.webstoemp.com/blog/gulp-setup/} * @see {@link https://gulpjs.com/plugins/blackList.json} * @see {@link https://hackernoon.com/how-to-automate-all-the-things-with-gulp-b21a3fc96885} * @see...
import EnactPropTypes from '@enact/core/internal/prop-types'; import {forProp, forwardCustom, handle, stop} from '@enact/core/handle'; import kind from '@enact/core/kind'; import PropTypes from 'prop-types'; import {Children, Fragment} from 'react'; import componentCss from './Marquee.module.less'; const isEventSourc...
import DOM from "./dom" let JS = { exec(eventType, phxEvent, view, el, defaults){ let [defaultKind, defaultArgs] = defaults || [null, {}] let commands = phxEvent.charAt(0) === "[" ? JSON.parse(phxEvent) : [[defaultKind, defaultArgs]] commands.forEach(([kind, args]) => { if(kind === defaultKi...
import utils from "../../../utils.js"; const SAVE_ALL = 0; const SAVE_NEW = 1; const SAVE_NONE = 2; const CLEAN_NONE = 0; const CLEAN_MONSTERS = 1; const CLEAN_SPELLS = 2; const CLEAN_ALL = 3; /** * Sends a event request to Iconizer to add the correct icons * @param {*} names */ let queryIcons = (names) => { re...
// create client const client = AgoraRTC.createClient({mode: 'live', codec: 'vp8'}); // vp8 to work across mobile devices const agoraAppId = '<KEY>'; // insert Agora AppID here const channelName = 'WXT'; var streamCount = 0; var rotateModel = false; var modelRotation = 0; // set log level: // -- .DEBUG for dev //...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _objectSpread2 = _interopRequireDefa...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/* Default list, single, and total resolvers */ import { debug, debugGroup, debugGroupEnd } from '../modules/debug.js'; import { Connectors } from './connectors.js'; import { getCollectionByTypeName } from '../modules/collections.js'; import { throwError } from './errors.js'; import get from 'lodash/get'; const def...
const Discord = require('discord.js'); const client = new Discord.Client(); const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; var regexp = /[^\s"]+|"([^"]*)"/gi; var xmlHttp = new XMLHttpRequest(); function RequestGet(url) { xmlHttp.open( "GET", url, false ); xmlHttp.send( null ); return xml...
function createSourceLinks() { $('.method_details_list .source_code'). before("<span class='showSource'>[<a href='#' onclick='return false;' class='toggleSource'>Show/hide source</a>]</span>"); $('.toggleSource').click(function(){$(this).parent().nextAll(".source_code").slideToggle(100)}); } function c...
'use strict'; const request = require('request'); const inquirer = require('inquirer') const { promisify: p } = require('util'); const { apiCall } = require('./apiCall'); const { checkConfigFileState, readConfig, writeConfig } = require('./config'); const initHandler = async (argv) => { await checkConfigF...
/* global document, fetch */ import React, {Component} from 'react'; import {render} from 'react-dom'; import {StaticMap} from 'react-map-gl'; import DeckGL, { COORDINATE_SYSTEM, PolygonLayer, PointCloudLayer, MapView, FirstPersonView, ThirdPersonView, MapController, _FirstPersonController } from 'deck...
import {useCallback, useMemo, useState} from 'react'; import {nanoid} from 'nanoid'; import { Diff, Hunk, useSourceExpansion, useMinCollapsedLines, useChangeSelect, useTokenizeWorker, } from 'react-diff-view'; import 'react-diff-view/styles/index.css'; import {useConfiguration} from '../../conte...
/* LICENSE _This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._ BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this software except in com...
/** * Return the settings object for a particular table * @param {node} table table we are using as a dataTable * @returns {object} Settings object - or null if not found * @memberof DataTable#oApi */ function _fnSettingsFromNode ( table ) { var settings = DataTable.settings; var idx = $.inArray( table, _plu...
/* * Copyright 2016 resin.io * * 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 w...
import { kea } from 'kea' import api from 'lib/api' import { ViewType, insightLogic } from 'scenes/insights/insightLogic' import { autocorrectInterval, objectsEqual, toParams } from 'lib/utils' import { insightHistoryLogic } from 'scenes/insights/InsightHistoryPanel/insightHistoryLogic' import { funnelsModel } from '.....
import { useCallback } from "react"; import { Block, Elem } from "../../utils/bem"; import { clamp } from "../../utils/utilities"; import { useValueTracker } from "../Utils/useValueTracker"; import "./Range.styl"; const arrayReverse = (array, reverse=false) => { return reverse ? [...array].reverse() : array; }; exp...
'use strict'; var test = require('tape'); var GeoJSONSource = require('../../../js/source/geojson_source'); var Transform = require('../../../js/geo/transform'); var LatLng = require('../../../js/geo/lat_lng'); var hawkHill = { "type": "FeatureCollection", "features": [{ "type": "Feature", "pr...
var GitHubApi = require('github'); var Issue = require('../models/Issue'); var User = require('../models/User'); var Vote = require('../models/Vote'); var async = require('async'); var _ = require('underscore'); var votesController = require('./votes'); var addVotesToIssues = votesController.addVotesFor('issue'); var u...
const path = require('path') const fs = require('fs') const puppeteer = require('puppeteer') const JSZip = require("jszip"); const express = require('express') const app = express() const zip = new JSZip(); let count = 0; ;(async () => { async function browserGo(bookSeqList){ let result = [] const...
/** * Copyright 2017 aixigo AG * Released under the MIT license. * https://opensource.org/licenses/MIT */ import * as d3 from 'd3'; /** * Renders a basic table of contents for the given `headingSelector`. By default only `h1` and `h2` tags are * included in the table of contents. Each entry results in a `li` ele...
var gulp = require("gulp"); var gutil = require("gulp-util"); var foreach = require("gulp-foreach"); var rimrafDir = require("rimraf"); var rimraf = require("gulp-rimraf"); var runSequence = require("run-sequence"); var fs = require("fs"); var path = require("path"); var xmlpoke = require("xmlpoke"); var config = requi...
/** * Example use of this module: * var gir = require('./path/to/gir.js') * , gtk = gir.load('Gtk', '3.0'); **/ // import gir library and EventEmitter var gir = module.exports = require('./build/Release/girepository'), EventEmitter = require('events').EventEmitter; /***********************************...
'use strict'; const Axios = require('axios'); const Utils = require('./Utils'); const Constants = require('./Constants'); const EventEmitter = require('events'); const Uuid = require("uuid"); class OAuth extends EventEmitter { constructor(creds) { super(); // Default interval between requests when waiting f...
import moment from 'moment'; import _ from 'lodash'; import MMonitor from '~/src/model/parse/monitor'; import DATE_FORMAT from '~/src/constants/date_format'; import API_RES from '~/src/constants/api_res'; import RouterConfigBuilder from '~/src/library/utils/modules/router_config_builder'; import MErrorSummary from '~/s...
function to_degrees(rad) { return rad * 180 / Math.PI; } function to_rad(degrees) { return degrees * Math.PI / 180; } function direction_of_vector(y, x) { var dir = 0; // Q1, Q4 if(y >= 0) { dir = (Math.PI / 2) - Math.atan2(y, x); } // Q2, Q3 else { dir = (Math.PI / 2) + Math.abs(Math.atan2(y,...
/* global XMLHttpRequest, ActiveXObject, window, global */ function XHR() { if (window.XMLHttpRequest) return new XMLHttpRequest(); try { return new ActiveXObject('msxml2.xmlhttp.6.0'); } catch (e) {} try { return new ActiveXObject('msxml2.xmlhttp.3.0'); } catch (e) {} try { return new ActiveXObject('msxml2.xm...
import React, { useEffect } from "react" import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import ListItemText from '@material-ui/core/ListItemText'; import ListItem from '@material-ui/core/ListItem'; import List from '@m...
/** * @fileoverview Limit to one expression per line in JSX * @author <NAME> <Vydia.com> */ 'use strict'; const docsUrl = require('../util/docsUrl'); const jsxUtil = require('../util/jsx'); // ------------------------------------------------------------------------------ // Rule Definition // --------------------...
import React, { Component, PropTypes } from 'react'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import Button from 'react-bootstrap/lib/Button'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import { Table } from 'react-bootstrap'; import dateFormat from 'dateformat'; impo...
/** * @author: <NAME>. 최석균 (Syaku) * @site: http://syaku.tistory.com * @since: 2018. 2. 1. */ import Flatpickr from 'flatpickr'; import { arrayEmpty, arrayEquals } from './utils'; export const setLocale = (Locale) => { Flatpickr.localize(Locale); }; export const parseDate = (dateStr, dateFormat) => Flatpickr.pa...
import { CONFIG_MAP, PVC, SECRET, V3IO } from '../elements/VolumesTable/volumesTable.util' import { isEmpty } from 'lodash' export const REQUESTS = 'requests' export const LIMITS = 'limits' export const selectMemoryOptions = { unitCpu: [ { id: 'cpu', label: 'cpu', unit: '', step: 0.001, ...
/** * @license * Copyright 2016 Palantir Technologies, Inc. * * 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...
const ATJAUNOT = 500 const VERSIJA = '0.5' let vards = getCookie('vards') || 'Viesis' let pupinu = false let komandas = [] let ieraksts = 0 let skanjaIeslegta = false krasasMaina = (krasa) => document.body.className = krasa class Chats { constructor() { this.zinjas = [] this.garastavokli = [] } noti...
import React from "react"; import { Link } from "react-router-dom"; import { Button, Icon, Label, Table } from "semantic-ui-react"; import ReactJson from "react-json-view"; import ReactMarkdown from "react-markdown"; const DEFAULT_ROWS_PER_PAGE = 50; const DataTableRowsComponent = ({ expandedRow, filteredData, ...
$(document).ready(function(){ var contextPath = $('#app-context-path').val(); var msgid=$("#id-msgid").val(); var id=$("#id-createdby").val(); var createdby; mail(msgid); // replymail(id); //attachments(msgid); $("#MAILBOX").show(); $("#MAILBOXS").hide(); }); function mail(msgid){ va...
import echo, { validators, OPERATIONS_IDS } from 'echojs-lib'; import Inmmutable, { List, fromJS } from 'immutable'; import BN from 'bignumber.js'; import { TITLE_TEMPLATES, TOKEN_TYPE } from '../constants/GlobalConstants'; import { MODAL_ERROR } from '../constants/ModalConstants'; import AccountReducer from '../redu...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../../../../core/common/common.js'; import * as Root from '../../../../core/root/root.js'; import * as UI from '../../legacy.js'; ...
const database = { banner: { backgroundColor: "#AB6545", filename: "banner.png", id: "14", width: 700, height: 1000, slug: "banner", sources: [ { filename: "banner.png", width: null, }, { filename: "banner-wide.png", width: 7...
import { init, Sprite, GameLoop, initKeys, keyPressed, Text, } from "./kontra.mjs"; let { canvas } = init(); initKeys(); const tileWidth = 50; function makeSnakeSquare(x, y) { return Sprite({ x: x, y: y, prevX: x, prevY: y, color: "green", width: tileWidth, height: tileWidth,...
/** * light-server * * Serve, watch, exucute commands and live-reload, all in one. * * Copyright (c) 2018 by <NAME> * * modified by <NAME> <<EMAIL>> * - added support for pug files */ 'use strict' var morgan = require('morgan') //var connect = require('connect') var connect = require('express') var serveStat...
const core = require('@actions/core') const yaml = require('js-yaml') const fs = require('fs-extra') const path = require('path') require('dotenv').config() const REPLACE_DEFAULT = true const getVar = ({ key, default: dft, required = false, type = 'string' }) => { const coreVar = core.getInput(key) const envVar = ...
'use strict'; /*global require,ga*/ var addUserCatalogMember = require('../Models/addUserCatalogMember'); var createCatalogItemFromFileOrUrl = require('../Models/createCatalogItemFromFileOrUrl'); var loadView = require('../Core/loadView'); var ModelError = require('../Models/ModelError'); var WebFeatureServiceCatalogG...
#! /usr/bin/env node "use strict"; // this is expected to run in nodejs /* jshint esnext:true */ const { ReportsClient } = require('../util/ReportsClient') , { Report } = require('protocolbuffers/messages_pb') , { Timestamp } = require('google-protobuf/google/protobuf/timestamp_pb.js') ; function _Source(loggin...
// @ts-check 'use strict'; const fs = require('fs'); const path = require('path'); const util = require('util'); const mkdirp = require('mkdirp'); const rimraf = require('rimraf'); const Hogan = require('hogan.js'); const clone = require('reftools/lib/clone.js').circularClone; // must preserve functions const adapto...
/** * Adhan Main class * * @author <NAME> * @date 2018/04/03 * @type {{csv}|*} */ const csvService = require('./csv'); var fs = require('fs'); var XLSX = require('xlsx'); /** * * @type {{asr: number, isha: number, imsak: number, maghreb: number, dohr: number, fajr: number, churuq: number}} */ const salat = { ...
"use strict"; /** * @module botbuilder-dialogs */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(fun...
const { app, BrowserWindow, shell, Menu, protocol, webFrame, ipcMain } = require('electron'); const autoUpdater = require('electron-updater').autoUpdater; const url = require('url'); const path = require('path'); // const TransportNodeHid = require('@ledgerhq/hw-transport-node-hid'); app.setAsDefaultProtocolClient('n...
import React from 'react' import cn from 'classnames' export const Menu = ({ children, width = null, marginTop = null, minWidth = null, noPadding = false, tipDirection = 'up', tipOffset = null, tip = true, scrollable, innerRef }) => { const classes = ['popover', tipDirection] if (scrollable) {...
/*This Page is going to: 1. Collect the values which the user has entered into the contact form. 2. Checks to see if all the information has been entered. (If not they can't proccedd and we will throw back an error message) 3. Pass the values to the database through an AJAX request and store it in the database. 4. Thr...
/* eslint-disable no-undef */ import * as React from 'react'; import PropTypes from 'prop-types'; import * as _ from 'lodash-es'; import JSZip from 'jszip'; import { connect } from 'react-redux'; import { safeDump } from 'js-yaml'; import { Icon } from 'patternfly-react'; import { helpers } from '../../common/helpers'...
"use strict"; /* should be recompiled (yarn workspace moleculer-iam-app build-server) on updates yarn build-server */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function...
"use strict"; const _ = require("lodash"); const kleur = require("kleur"); const fs = require("fs"); const { MoleculerError, MoleculerRetryableError } = require("../src/errors"); const Middlewares = require("..").Middlewares; const ServiceBroker = require("../src/service-broker"); // Create broker const broker = new...
import React, {useState, useContext} from 'react'; import {Link} from 'react-router-dom'; import Axios from 'axios'; import { AppContext } from '../components/App'; const RegistForm = ({location, history}) => { const { setIsLoggedIn, setUserName } = useContext(AppContext); const [email, setEmail] = useState(...
import PropTypes from 'prop-types'; import { axisBottom, axisLeft } from 'd3-axis'; import { scaleLinear, scalePoint } from 'd3-scale'; import { select } from 'd3-selection'; import { formatSI } from 'utils/format'; import { renderTooltip } from 'utils/chart-rendering'; import BaseChart from './BaseChart'; class BoxA...
// Variables used by Scriptable. // These must be at the very top of the file. Do not edit. // always-run-in-app: true; icon-color: yellow; // icon-glyph: tv; share-sheet-inputs: plain-text, url, file-url; // Yellowscreen Computers var yellowscreen; yellowscreen; var yellowscreenFileExtension; yellowscreenFileExtension...
import addToMailchimp from "gatsby-plugin-mailchimp"; import React, { useState } from "react"; import Section from "@components/Section"; import Headings from "@components/Headings"; import styled from "@emotion/styled"; import mediaqueries from "@styles/media"; const Subscription = () => { const [email, setEmail]...
import React, { Fragment, Component } from 'react'; import { Text, View, WebView, ScrollView, TouchableOpacity } from 'react-native'; import ActionSheet from 'react-native-actionsheet'; import { injectIntl } from 'react-intl'; import { steemConnectOptions } from '../../../constants/steemConnectOptions'; import AUTH_TY...
//@ts-check /* Copyright: (c) 2019, <NAME> <<EMAIL>> GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) */ const constants = require('./constants.js'); const OPCItemManager = require('./opcItemManager.js'); const OPCSyncIO = require('./opcSyncIO.js'); const OPCAsyncIO = requ...
$(window).scroll(function(){ if ($(this).scrollTop() > 10) { $('#navbar').addClass('nav-scrolled'); } else { $('#navbar').removeClass('nav-scrolled'); } }); //NAV COLOR CHANGE var navOffset = $("#navbar").offset(); var sectionDivs = $(".ha-section"); $(document).scroll(function() { sectionDivs.each(...
const sinon = require('sinon') const HookEmitter = require('../../lib/hooks/HookEmitter') describe('HookEmitter', () => { let hooksEmitter let target = {} before(() => { hooksEmitter = new HookEmitter({}) }) describe('emitBeforeCall', () => { it('Should emit "beforeCall" and "beforeCall:[method_name...
/* http://revolutionnaire.github.io/ v0.1.1 | 20190112 License: none (public domain) */ var visualizer; document.addEventListener('DOMContentLoaded', function(e) { visualizer = new Visualizer(); visualizer.initialize(); visualizer.createBall(); visualizer.setupAudioProcessing(); visualizer.handleDrop...
'use strict' const _ = require('lodash') const http = require('http') const textureData = require('../data/texture') const fontPath = require('../data/font') const audioPath = require('../data/audio') const spineData = require('../data/spine') const live2dData = require('../data/live2d') function GetPowerOfTwo(value...
if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); // Variabler var max_of_glitter = 2500; var glitter = []; var time = 0; var radius = 10; var camera, controls, scene, renderer; var sky, sunSphere, sphere; var distance = 400000; var update = 0; var floor_pos = -200; var gravity =...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normaliseErrorMessages = normaliseErrorMessages; function normaliseErrorMessages(errors, schemeData) { const printer = new SchemeErrorPrinter(schemeData); return "Configuration is invalid.\n" + filterErrors(errors).map(it => " ...
import React, { useEffect, useState, useContext, Suspense } from 'react'; import GeneralTable from '../../components/general-table/GeneralTable'; import PropTypes from 'prop-types'; import { useDispatch } from 'react-redux'; import { routes as paths } from '../../../package.json'; import { Link } from 'react-router-dom...
var head = new Vue({ el: "#heads", data:{ posion: '北京市朝阳公园北京市朝阳区', newsnumber: 3, } }) var centerbox = new Vue({ el: '#search', data:{ news_new: '小馋嘴麻辣香锅 30减14', }, }) var tag = new Vue({ el: '#tag', data:{ tagname:[ { tagtext: '炸全鸡' , url: '#' , id: '1' }, { tagtext: '水果' , ...
/** * @fileoverview ResizeHandle for the Header * @author NHN. FE Development Lab <<EMAIL>> */ 'use strict'; var $ = require('jquery'); var _ = require('underscore'); var snippet = require('tui-code-snippet'); var View = require('../../base/view'); var constMap = require('../../common/constMap'); var classNameCon...
var marked = require('marked'); marked.setOptions({ breaks: true, smartyPants: true }); var J2M = function() {}; J2M.prototype.md_to_html = function(str) { return marked(str); }; J2M.prototype.jira_to_html = function(str) { return marked(this.to_markdown(str)); }; J2M.prototype.to_markdown = fun...