text
stringlengths
3.07k
16k
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(ex...
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedHTMLMessage, FormattedMessage, FormattedDate } from 'react-intl'; import { Row, Col } from 'react-flexbox-grid/lib'; import AppButton from '../../common/AppButton'; import { TOPIC_SNAPSHOT_STATE_QUEUED, TOPIC_SNAPSHOT_STATE_RUN...
var quizzerApp = angular.module('quizzerApp', [ 'ngRoute', 'ngTouch', 'quizzerControllers' ]); //ROUTING /* quizzerApp.config(['$routeProvider', function($routeProvider) { $routeProvider. when('/phones', { templateUrl: 'partials/phone-list.html', controller: 'PhoneL...
import React from 'react'; import PropTypes from 'prop-types'; import Reference from '../lib/Reference'; import translateReferences from '../lib/TranslateReferences'; import Ajv from 'ajv'; import Form from './Form'; import CheckBox from './CheckBox'; import StringInput from './StringInput'; import FormTable from './Fo...
/* eslint-disable complexity */ import React, {Component} from 'react' import {connect} from 'react-redux' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import Form from 'react-bootstrap/Form' import {LinkContainer} from 'react-router-boots...
'use strict'; var Alexa = require("alexa-sdk"); // For detailed tutorial on how to making a Alexa skill, // please visit us at http://alexa.design/build exports.handler = function(event, context) { console.log("===================="); console.log("REQUEST: "+JSON.stringify(event)); console.log("=========...
#!/usr/bin/env node /* global require */ const o = require('ospec') const depPath = './dist/mergerino.es5.js' const merge = require(depPath) // create version that uses assign polyfill const save = Object.assign Object.assign = null delete require.cache[require.resolve(depPath)] const noAssignMerge = require(depPath)...
import React, { useState, useEffect } from "react"; import "./NewEpisode.css"; import axios from "axios"; import TextInputLabel from "../../components/TextInputLabel/TextInputLabel"; import Selected from "../../components/Selected/Selected"; import Checkbox from "../../components/Checkbox/Checkbox"; import { PODCAST_TY...
const coffeeDrinks = [ { name: 'americano', imageUrl: 'img/americano.png', description: 'Americanos are popular breakfast drinks and thought to have originated during World War II. Soldiers would add water to their coffee to extend their rations farther. The water dilutes the espresso while still maintain...
'use strict'; var _ = require('underscore'); var JID = require('xmpp-jid').JID; var hashes = require('iana-hashes'); function generateVerString(info, hash) { var S = ''; var features = info.features.sort(); var identities = []; var formTypes = {}; var formOrder = []; _.forEach(info.identitie...
import { navListActionTypes, navListSelectors, modalActionCreators, } from '../../' const { TOGGLE_EXPAND, ADD_NAV_ITEM, REMOVE_NAV_ITEM, SET_NAV_ITEM, SET_NAV_ITEM_PROP, SET_NAV_LIST_STATE, } = navListActionTypes const navItemEmptyFields = { componentName: null, props: null, open: null, ch...
"use strict"; // electron-builder // electron-builder --win portable const { app, BrowserWindow, ipcMain } = require("electron"); const windowStateKeeper = require("electron-window-state"); const http = require("http"); const fs = require("fs"); const WebSocketServer = require("ws").Server; const path = require("path")...
import {JetView} from "webix-jet"; var url = window.location.protocol +"//"+ window.location.hostname+":"+window.location.port+window.location.pathname; export default class PlanningView extends JetView{ config(){ return { type:"wide", rows:[ { "css": "webix_dark", "...
import {game} from "./game.js" import {GAME_STATE} from "./enums.js"; export {setCurrentPage, switchToGame, switchToMenu} window.addEventListener('load', pageLoaded) /** * Show game menu and setup keyboard control in menu.<br> * This function should be executed once the page has completely loaded. */ function pag...
import { CommonActions } from '@react-navigation/native'; import moment from 'moment'; import { Keyboard } from 'react-native'; import { connect } from 'react-redux'; import { v4 as uuidv4 } from 'uuid'; import withI18n from '../../../i18n'; import withColorScheme from '../../../utils/withColorScheme'; import withViewp...
'use strict'; var _get = require('babel-runtime/helpers/get')['default']; var _inherits = require('babel-runtime/helpers/inherits')['default']; var _createClass = require('babel-runtime/helpers/create-class')['default']; var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default']; var _inter...
const fs = require('fs') const fse = require('fs-extra') const pluginId = 'TP_ETS2_Plugin'; const downloadRelease = require('download-github-release'); const exec = require('child_process').execFile; const AdmZip = require("adm-zip"); const replace = require('replace-in-file'); const https = require('https'); var gith...
'use strict'; const PLAIN_VALUE_REGEXP = /^[a-zA-Z0-9:\-\\./\\_,]*$/; const ESCAPE_VALUE_REGEXP = /^.*(\/\*|\*\/|\/\/).*$/; /** * Format AST back into to a text form. This class is a good example of what * AST looks like. * * Note: Comments are lost in translation, which makes formatter less usable * for pr...
const headbandContent = { home: { title: "Le Bachelor Universitaire de Technologie, ou BUT", subtitle: "Le BUT est un diplôme national français qui s'obtient après 3 années de préparation dans un Institut Universitaire de Technologie (ou IUT). Il a la même valeur qu'une Licence tout ...
import React from "react"; import PropTypes from 'prop-types'; import {Link} from "react-router"; import {connect} from "react-redux"; import * as filmAction from "../filmAction"; import {bindActionCreators} from 'redux'; import {confirm} from "../../../helpers/helper"; import TooltipButton from '../../../components/co...
// i think my state checking practices are messy // should probably switch to using NaN instead of 0 // but, for now, everything works as expected. const memory = { first: 0, last: 0, operator: "", solution: "", }; const signs = { add: "+", subtract: "-", multiply: "×", divide: "÷", };...
const { split } = require('lodash') const authentication = require('./authentication') const amazon = require('../handlers/amazon') const github = require('../handlers/github') const toggl = require('../handlers/toggl') const stripe = require('../handlers/stripe') const db = require('../models') const invoicelyCodebas...
var tabla; var bandera; function init(){ mostrarform(false); calcularRet(); listar(); $("#formulario").validate({ rules:{ idcliente:{ required: true }, idchofer:{ required: true }, codigo:{ ...
const Discord = require("discord.js"); const { MessageEmbed, MessageCollector, Collection } = require("discord.js"); const { get } = require('request-promise-native'); const { capitalize } = require("../../functions.js"); const User = require('../../models/user.js'); const Guild = require('../../models/guild.js'); cons...
"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]; } } }...
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import bodyParser from 'body-parser'; import express from 'express'; import validator from 'express-validator'; import session from 'express-session'; import {get} from 'lodash'; import Spark from './spark'; import util from 'util'; import Mem...
var color = '#00d5ff' var selected_color = '#f05800' var close_color = '#8aff78' var main_color = '#f5f5f5' var close_circles = [] var scale = 20 var mustDrawGrid = false var mustDrawRc = false var mustColor = false var drawArrows = false var paused = false class Circle { constructor(id, x, y, r) { ...
function searchEmoji(query) { const els = document.getElementsByClassName('emoji_button'); if (query) { $('.emoji_cate_box').addClass('ep_search_box'); $('.emoji_button:not(.invisible)').addClass('invisible'); $('.ep_cate_title').addClass('invisible'); $('#ep_search_result_title').removeClass('invi...
// wrkDB.js: mySQL module for wewrk const mysql = require('mysql'); /* Gets yesterday's date, formatted as yyyy/mm/dd * Used when inserting jobs into the database */ function getDate(){ var date = new Date(); y = date.getFullYear(); m = date.getMonth() + 1; d = date.getDate() - 1; date = y + '-' + m + '-' + ...
import { TinyLine, TinyColumn, RingProgress } from '@antv/g2plot'; const CSS = ` .g2plot-table { width: 100%; border-collapse: collapse; text-align: left; border-radius: 4px 4px 0 0; table-layout: fixed; } .g2plot-thead { display: table-header-group; vertical-align: middle; border-bottom-color: #e8e8e8...
var javascriptserialize = require('javascript-serialize') var escapehtml = require('escape-html') var jsbeautify = require('js-beautify') var type = require('component-type') var bel = require('bel') var csjs = require('csjs-inject') var currentError window.addEventListener('error', function (event) { currentError ...
import React from 'react' import { AsyncStorage, Button, StyleSheet, Text, View, Alert, ImageBackground, ScrollView, SafeAreaView, TextInput, } from 'react-native' import Cart from './Cart' import Constants from "expo-constants"; import {NavigationActions, StackActions} from "react-n...
import React from "react" import Layout from "../components/Layout/Layout" import { graphql, navigate } from "gatsby" import GenericHero from "../components/GenericHero" import { ctaItems, ctaLink, ctaText } from "../constants/cta" import PrimaryCTA from "../components/PrimaryCTA" import BlogGrid from "../components/Bl...
/** * @module support/nonceManager * * @description A local cache that dispenses nonces, resolving any nonce gaps and * ensuring concurrent transactions do not result in nonce clashes. * */ const _ = require('lodash'); const logger = require('../logger/index'); const { mapError } = require('./errors'); const non...
// Scripts for adding and removing formset forms dynamically via js // and/or AJAX /** Clone a form element to a formset @constructor @param {string} selector - The selector used to get the element to clone. @param {string} form_name - The name of the forms. May be more complicated for modelforms, inline_formsets...
/** @typedef {import('.').GroupSheet} GroupSheet */ /** @typedef {import('.').GroupRules} GroupRules */ /** @typedef {import('.').GroupName} GroupName */ /** @typedef {import('.').Group} Group */ /** @type {GroupName[]} */ const names = ['themed', 'global', 'styled', 'varied', 'inline'] export const createSheet = (/*...
//网页的header样式复写 document.write('\ <header>\ <div id="topbar">\ <div id="top">\ <div id="poi">\ <div class="cityname"></div>\ <span id="change"><a href="pagers/changecity.jsp">[切换]</a></span>\ </div>\ <div id="link">\ <ul id="topmenu">\ </ul>\ </div>\ ...
'use strict'; const joi = require('joi'); const EventEmitter = require('events'); const _ = require('lodash'); const boom = require('boom'); _.mixin({ isAsyncFunction: function (value) { return _.isObject(value) && value[Symbol.toStringTag] === 'AsyncFunction'; }, isGeneratorFunction: function (va...
// Required external modules const fs = require('fs'); const inquirer = require('inquirer'); // Required internal modules const Manager = require('./lib/Manager'); const Engineer = require('./lib/Engineer'); const Intern = require('./lib/Intern'); // Start by displaying instructions to user console.log('Welcome to Tea...
var request = require("request"); var twitter = require("twitter"); //https://github.com/thelinmichael/spotify-web-api-node var spotifyApi = require("node-spotify-api"); var fs = require("fs"); var liri = { command: "", args: [], keys: require("./keys.js"), run: function(){ // console.log("START"); th...
import cloneDeep from 'lodash/cloneDeep' import { Message } from 'element-ui' import Home from '@/components/index' import Developing from '@/components/common/developing' const readyToAuthorizedRoutes = [ { path: '/app/task', component: Home, redirect: ...
/** * Helpers to avoid importing Lodash methods. * Some ideas here taken from Lodash. */ import isDate from 'date-fns/isDate' export { isDate } const UNDEFINED = void 0 const MAX_SAFE_INTEGER = 9007199254740991 const protoToString = Object.prototype.toString export const isUndefined = v => v === UNDEFINED export ...
const Command = require("../../structure/Command.js"), { version } = require("discord.js"), { MessageEmbed } = require("discord.js"), config = require("../../config.js"), { stripIndent } = require('common-tags'), fetch = require('node-fetch'); const formatter = new Intl.NumberFormat('de-DE', {}); class Stats ext...
$(function(){ if($('.week-table-head-box').length > 0){ $('.week-table-head-box').css({"height":$('.week-table-head-box').height()}); var offsetTop = $('.week-table-head-box')[0].offsetTop; var p = $('.week-table-head-box'); while(!p.is('body')){ p = p.parent(); if(p.css("position") == "relative"){ o...
import React, { useState, useEffect, useRef } from 'react'; import Select from 'react-select'; import { useParams, useHistory, Link } from 'react-router-dom'; import { useSelector, useDispatch } from 'react-redux'; import ImageLoader from 'components/ui/ImageLoader'; import ProductFeatured from 'components/product/Prod...
const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] }); const roblox = require('noblox.js'); const chalk = require('chalk'); require('dotenv').config(); exports.run = async (client, message, args) => { if (message.guild.id !==...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
import React from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router'; import styled from 'styled-components'; import { mapStateToVenue } from 'utilities/state-mapper'; import { fetchFoursquare } from 'utilities/actions'; import { media } from 'utilities/style-mixins'; import config ...
import React, { PureComponent } from 'react'; import { connect } from 'react-redux'; import { getZoomIntoWindow, deleteRequest } from '../api'; import { containerPropTypes } from '../utils/tableHelpers'; import { mapIncluded } from '../utils/documentListHelper'; import { getTableId, getTable } from '../reducers/table...
import * as THREE from 'three'; import { SpaceObject } from './SpaceObject'; import { rad } from './Units'; import { rescaleVector } from './Scale'; function getAxis(src, dst, color) { const geom = new THREE.Geometry(); const mat = new THREE.LineBasicMaterial({ linewidth: 3, color }); geom.vertices.push(rescal...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
import React from 'react' import {useDispatch, useSelector} from 'react-redux' import {eraseToken} from '../reducers/tokenReducer' import {Button, Card, ListGroup, ListGroupItem} from 'react-bootstrap' const TokenTile = ({token, timeline, id}) => { const dispatch = useDispatch() const toMoney = value => { retu...
"use strict"; // // UltraPickerIOS // // Created by <NAME> on 3/10/17. // Copyright © 2017 Sportsbet. All rights reserved. // var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }...
import { app, BrowserWindow, ipcMain } from "electron"; import { join } from "path"; import { URL } from "url"; import { PDFDocument } from "pdf-lib"; const Koa = require("koa"); const mime = require("mime-types"); const srv = new Koa(); function fixCss(html) { if (html.indexOf("<body") > 0) { const pathST = req...
/*global getWebGLContext,createProgramFromScripts,Float32Array*/ /*jslint plusplus: true */ var intervalId; (function () { 'use strict'; // this function is strict... var BALL_EDGES = 32, D_ANGLE = 2 * Math.PI / BALL_EDGES; function getGlContext() { var canvas = document.getElementBy...
import React from 'react'; import { useSelector } from 'react-redux'; import { useTable } from 'react-table'; import styled from 'styled-components'; import { Tooltip } from '@scality/core-ui'; import { fontSize, padding } from '@scality/core-ui/dist/style/theme'; import { NodeTab } from './style/CommonLayoutStyle'; i...
let carga = true; let carritoElemento = document.querySelector("#carrito"); carritoElemento.addEventListener('click', event => { //Obtiene el token en caso de que exista en el localStorage token = localStorage.getItem('token'); if(!token){//Si no hay token no le permite acceder a funcionalidades del carri...
// Copyright (c) 2015-present Xenia, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import { View, AppState, Platform, } from 'react-native'; import DeviceInfo from 'react-native-device-info'; import {s...
// Copyright (c) 2021 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 i18n from '../../../core/i18n/i18n.js'; import * as Common from '../../../core/common/common.js'; import * as NetworkForward from '../../.....
import PropTypes from 'prop-types' import React from 'react' import { Link } from 'gatsby' import clsx from 'clsx' import { makeStyles, useTheme } from '@material-ui/core/styles' import Drawer from '@material-ui/core/Drawer' import CssBaseline from '@material-ui/core/CssBaseline' import AppBar from '@material-ui/core/A...
/* eslint-disable class-methods-use-this */ const Types = require('./types'); function combineNameAndType(nameString, typeString) { const separator = (nameString && typeString) ? ':' : ''; return nameString + separator + typeString; } class Stringifier { constructor(options) { this._options = op...
import Node from './node'; import { defined, isTransparent } from '../util'; import { DASH_ARRAYS, SOLID, BUTT } from '../core/constants'; import { NONE } from './constants'; import renderAllAttr from './utils/render-all-attributes'; import renderAttr from './utils/render-attribute'; var ATTRIBUTE_MAP = { "fill.op...
#!/usr/bin/env node require('flow-remove-types/register'); const path = require('path'); const outputPath = 'src/mbgl/programs'; const zlib = require('zlib'); const crypto = require('crypto'); var shaders = require('../mapbox-gl-js/src/shaders'); require('./style-code'); let concatenated = ''; let offsets = {}; f...
// This is for testing the final build: import State, { createState } from '../esm/thunderState.min.mjs' // import State from '../lib/State.js' const wait = time => new Promise(resolve => { setTimeout(() => { resolve() }, time) }) window.appState = new State({ name: 'Demo', // set up the structure...
"use strict"; // custom property name var PROPERTY_NAME = "asVirtual"; /** * Check if array * @param {Mixed} obj * @returns {Boolean} */ function isArray(obj) { return Object.prototype.toString.call(obj) === '[object Array]' } /** * Check if function * @param {Mixed} obj * @returns ...
class Game { constructor(name, large) { this.gameElement = ce("div", {class: "card-game-element"}) let selector = document.querySelector('#'+name); selector.classList.add("card-game-selector") selector.append(this.gameElement); this.frontGame = ce("div", {class: "main"}); this.playButto...
// Copyright 2021 The casbin 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 required by a...
const db = require('../lib/database'); const logger = require('../lib/logging'); /** * Get the modal element in an array * * @param {*[]} arr - Array to find mode of * @return {*} Modal element */ function mode(arr) { return arr.sort((a, b) => arr.filter((v) => v===a).length - arr.filter((v) => v===b)....
import {extend, identity} from 'vega-util'; export function measureName(op, field, as) { return as || (op + (!field ? '' : '_' + field)); } const noop = () => {}; const base_op = { init: noop, add: noop, rem: noop, idx: 0 }; export const AggregateOps = { values: { init: m => m.cell.store = true,...
var sampleRate = 44100.0; // How many panner nodes to create for the test. var nodesToCreate = 100; // Time step when each panner node starts. var timeStep = 0.001; // Make sure we render long enough to get all of our nodes. var renderLengthSeconds = timeStep * (nodesToCreate + 1); // Length of an impulse signal. v...
/* * Main Index Page * * Sept. 2019 * Author: <NAME> */ import React from "react" import { graphql, Link } from "gatsby" import '../style/sections/sections.scss' import decodeHTML from "../functions/decode-html.js" import Layout from "../components/layout" import SEO from "../components/seo" import { FontAwes...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@...
/** * Created by Cyan on 2018/5/15. */ export function addClass (el, className) { if (hasClass(el, className)) { return; } let newClass = el.className.split(' '); newClass.push(className); el.className = newClass.join(' '); } export function hasClass (el, className) { let reg = new RegExp('(^|\\s)' +...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("va...
const GO_BUTTON_START = "Publish"; const GO_BUTTON_STOP = "Stop"; var localVideo = null; var remoteVideo = null; var peerConnection = null; var peerConnectionConfig = {'iceServers': []}; var localStream = null; var wsURL = "wss://localhost.streamlock.net/webrtc-session.json"; var wsConnection = null; var streamInfo = ...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. Object.defineProperty(exports, "__esModule", { value: true }); const os = require("os"); const jju = require("jju"); const Text_1 = require("./Text...
const store = { filtered: 'all', list : [] } // target element const userInputArea = document.getElementById('new-todo-title'); const toDoUlElement = document.getElementById('todo-list'); const toDoCount = document.querySelector('.todo-count').getElementsByTagName('strong')[0]; const filterUlElement = document...
function isArray (value) { return value && typeof value === 'object' && value.constructor === Array; } function load_scenario(scenario, inputjson, category ='input') { for (let tableId in inputjson) { let obj = inputjson[tableId]; if (tableId in scenario.tables) ...
import React, { useRef, useState, useEffect, useCallback } from 'react'; import { TouchableOpacity, View, Text, Animated, Easing } from 'react-native'; import Slider from '@react-native-community/slider'; import * as Haptics from 'expo-haptics'; import useInterval from 'react-use/lib/useInterval'; import { useAppState...
"use strict"; exports.__esModule = true; exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _d3Array = require("d3-array"); var _theme = require("@data-ui/theme"); var _group = require("@vx/group"); var _shape = req...
class SnakeGame { constructor() { this.xSize = pinthing.size.width this.ySize = pinthing.size.length this.timing = { defaultSpeed: 500, //Default animation speed for pinthing gameSpeed: 100, //Animation speed for changes in the pins snakeSpeed: 300, ...
/** * 角色权限管理 */ import React from "react"; import PropTypes from "prop-types"; import Base from "../../../components/main/Base"; import Page from "../../../components/main/Page"; import { Breadcrumb, Tabs, Icon, Button, Modal, Tree, message } from "antd"; import Role from "../../../model/Role/"; import EditRoleM...
import React from 'react'; import axios from 'axios'; import Moa from '../../components/home/Moa'; import Perturbations from '../../components/home/Perturbations'; import ModelSystems from '../../components/home/ModelSystems'; import GeneExpression from '../../components/home/GeneExpression'; import {Grid, Row, Col...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var xstream_1 = require("xstream"); var ScopeChecker_1 = require("./ScopeChecker"); var utils_1 = require("./utils"); var matchesSelector_1 = require("./matchesSelector"); var fromEvent_1 = require("./fromEvent"); /** * Finds (with binary sea...
function genrand(screennum,numofwords) { var myarrayjs = []; if(screennum == 1) { var learne = ["dry","early","empty","excellent","false","far","fast","few","full","generous","happy","high","hot","intelligent","late","light","long",]; myarrayjs.push("dirty"); } if(screennum == 2) { var lea...
function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); } f...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require("./bootstrap"); window.Vue = require("vue"); import { Form, HasError, AlertError } from ...
import React, { Component } from 'react'; class Home extends Component { render() { return ( <div className="posts"> <div className="post"> <h1 className="post-title">Introducing Redux Universal example</h1> <p>The theme has been based on <a href="http://lanyon.getpoole.com/">Lanyo...
/* * Copyright 2019 Google 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 applicable law or agreed to ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
const channelTracker = require('../util/channelTracker.js') const initializeRSS = require('../rss/initialize.js') const sqlConnect = require('../rss/sql/connect.js') const sqlCmds = require('../rss/sql/commands.js') const config = require('../config.json') const storage = require('../util/storage.js') const curre...
var applicationID = "6F1E40A5"; var LEARN_NAMESPACE = "urn:x-cast:com.kg.learn"; console.log("Create app module"); var learnTeacherApp = angular.module('LearnTeacherApp', ['ngMaterial', 'pascalprecht.translate', 'ngAnimate']); learnTeacherApp.config(['$translateProvider', function($translateProvider) { $transla...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. const widgets = require('@jupyter-widgets/base'); const L = require('../leaflet.js'); const control = require('./Control.js'); export class LeafletDrawControlModel extends control.LeafletControlModel { defaults() ...
'use strict'; import * as d3 from 'd3'; import dataFromGitHub from './data'; const milestones = async (container, width, height) => { const g = container.append('g').attr('transform', `translate(${0},${0})`); //signals const startYear = '2013'; const endYear = '2019'; const versionRectWidth = 60; const axeVe...
import React, { useContext, useState } from 'react' // import PropTypes from 'prop-types' import { useStaticQuery, graphql, Link, navigate } from 'gatsby' import PromoBannerPrimary from '~/components/PromoBanners/PromoBannerPrimary' import PromoBannerSecondary from '~/components/PromoBanners/PromoBannerSecondary' impor...
/** * 拖拽 * 加载所有拖动特效 */ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import styled from 'styled-components'; import { makeSelectEffectVideo, makeSelectVideoPlayer, makeSelectChooseEffect,...
import fs from "fs" import https from "https" import { bilibiliCookies, downloadPath, showBrowser } from "./config.js" import { parseCookieObject } from "./utils.js" import { firefox as browserCore } from "playwright" import { exec } from "child_process" /* 使用方法 * node uploadsubs.js <batchSize> <userId> * batchSize ...
"use strict"; const bodyParser = require( "body-parser" ); const express = require( "express" ); const layout = require( "express-layout" ); const logger = require( "morgan" ); const { readFileSync } = require( "fs" ); const { join } = require( "path" ); const ms = require( "pretty-ms" ); const rollup = require( "roll...
import { AppBar, Avatar, Fade, Grid, Hidden, InputBase, Typography, Zoom, Button } from "@material-ui/core"; import React from "react"; import { useNavbarStyles, WhiteTooltip, RedTooltip } from "../../styles"; import { Link, useHistory } from 'react-router-dom'; import logo from '../../images/customized-logo.png' impor...