text
stringlengths
3.22k
29.5k
import React, { useState, useEffect } from "react"; import "./style.css"; import { withRouter } from "react-router-dom"; import Modal from "react-modal"; import Icon from "@mdi/react"; import EmptyStateMessage from './emptyState'; import { mdiCloseCircle } from "@mdi/js"; import { mdiCurrencyUsdCircle } from "@mdi/js";...
/* eslint-disable jsx-a11y/accessible-emoji */ import DateFnsUtils from '@date-io/date-fns'; import { Button, Checkbox, CssBaseline, FormControl, FormControlLabel, FormGroup, FormLabel, Grid, Link, MenuItem, Paper, Radio, RadioGroup, Select, TextField, Typography } from '@material-ui/cor...
import * as Hero from './hero.js'; const INIT_OPTIONS = { disableAudioLevels: false, // The ID of the jidesha extension for Chrome. desktopSharingChromeExtId: 'mbocklcggfhnbahlnepmldehdhpjfcjp', // Whether desktop sharing should be disabled on Chrome. desktopSharingChromeDisabled: false, // The media so...
import React from 'react'; import { StyleSheet, Text, View, Image, TouchableOpacity, Dimensions, TextInput, ScrollView, KeyboardAvoidingView, Platform, } from 'react-native'; import CheckBox from 'react-native-check-box'; import NavBar from '../../../common/navBar'; import {fetchData} from '../../.....
var _ = require('lodash'); var sign = require('cookie-signature').sign; var cookie = require('cookie'); var parseUrl = require('parseurl'); var mockJSON = require('json-from-template'); var Layer = require('./layer'); function handle(req, res, options, next) { handleCookies(req, res, options); res.body = compi...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
import React, {Fragment, useEffect, useState} from "react"; import { BLOCK_HEIGHT, BLOCK_WIDTH, BLOCKS_START_STATE, checkAllBlocks, NewBlocks, PADDLE_START_STATE, PADDLE_WIDTH } from "../../game/Level" import {registerListener} from "../../game/Util"; import Ball from "./Ball"; import Block from "./Block"...
/** @format */ /** * External dependencies */ import getBoundingClientRect from 'bounding-client-rect'; import debugFactory from 'debug'; /** * Module variables */ const debug = debugFactory( 'papo:popover:util' ); // inspired by https://github.com/jkroso/viewport function updateViewport() { const viewport = {...
import Ember from 'ember'; import layout from './template'; import config from 'ember-get-config'; import { task } from 'ember-concurrency'; import Analytics from '../../mixins/analytics'; import hostAppName from '../../mixins/host-app-name'; /** * @module ember-osf * @submodule components */ /** * Discover-pa...
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { Pagination, Spinner, Toast } from 'react-bootstrap'; import axios from 'axios'; import api from '../../config/axios/api.js'; import { logout } from '../../storage/user/userSlice'; import './Perfil.scss...
"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...
const Generators = require("yeoman-generator"); const fs = require("fs"); const table = require("markdown-table"); const async = require("async"); // 工具函数 const generatePrompts = require("./generatePrompts"); // 默认要填写的内容 const path = require("path"); const mkdirp = require("mkdirp"); const chalk = require("chalk"); // ...
const _ = require('./util') const moment = require('moment') const async = require('async') const genericPool = require('generic-pool') const yamlsql = require('./yamlsql') const { v4: uuidv4 } = require('uuid'); const genpool = factory => { const opt = { name: 'oracle', log: false, max: 50...
const Bottleneck = require(`bottleneck`); const fetch = require('node-fetch'); const atob = require('atob'); const WebScoketClient = require('websocket').client; const yauzl = require("yauzl"); const fs = require("fs"); const options = { headers: { 'User-Agent': "FinnishBSDiscordBot/1.0.0" } } const BeatSaverLimi...
const modal = {song:null}; const homeIntentMeta = {id:null, type:null, title:null}; function ripple(event) { const button = event.currentTarget; const circle = document.createElement("span"); const diameter = Math.max(button.clientWidth, button.clientHeight); const radius = diameter / 2; circle.style.width =...
mui.init({ subpages:[{ url:"indexbody.html", id:"indexbody", styles:{ top:"0px", bottom:"50px" } } ] }); var subpages,subpages_id,activeTab; var logined=localStorage.getItem("TOKEN_UID"); var subpage_style = [{top: 0,bottom: '50px'}, {top: 0,bottom: '50px'}, {top: 0,bottom: '50px' }, {top: 0,bottom: '5...
export const OS_TYPE_ANDROID = 'android'; export const OS_TYPE_IOS = 'ios'; //flashCard export const SCREEN_LOGIN = 'lgn'; export const SCREEN_SIGNUP = 'su'; export const SCREEN_SPLASH = 'Splash'; export const SCREEN_FORGETPASS = 'fgp'; export const SCREEN_DASHBOARD = 'db'; export const SCREEN_SUBJECT_SCREEN = 'ss';...
/** * 用户选择列表 */ import React, {Component} from 'react'; import { View, Text, FlatList, Button, PixelRatio, Dimensions, TouchableOpacity, StyleSheet } from "react-native"; import {ListItem, SearchBar} from 'react-native-elements'; import {connect} from 'react-redux'; import {NavigationA...
import { __commonJS } from "./chunk.2VCUNPV2.js"; // ../../node_modules/vue-count-to/dist/vue-count-to.min.js var require_vue_count_to_min = __commonJS((exports, module) => { !function(t, e) { typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define...
'use strict'; 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]; } } } return target; }; var React = require('react'); var scrollIntoVi...
import { stringAt } from '../core/alphabet'; import { getFontSizePxByPt } from '../core/font'; import _cell from '../core/cell'; import { formulam } from '../core/formula'; import { formatm } from '../core/format'; import { Draw, DrawBox, thinLineWidth, npx, } from '../canvas/draw'; // gobal var const cellPaddingWid...
/** * @author MạnhG * @warn Do not edit code or edit credits */ "use strict" module.exports.config = { name: "sing", version: "1.0.1", hasPermssion: 0, credits: "MạnhG", description: "Phát nhạc thông qua link YouTube hoặc từ khoá tìm kiếm", commandCategory: "Phương tiện", usages: "[link ...
var scene = null, mX=0, mY=0, rY= null, rX=null, sTX = 0, sceneTX = 0; var INTERACT = { SELECT: 0, BACK: 1 }; /************ STACKS **************/ var STACKS = [ { 'title': 'Code', 'items': { 'project one': {}, 'project two': {}, 'project three': {} } }, { 'title': 'Design', 'items': { 'project one': ...
// # Quaternion factory // Scrawl-canvas uses quaternion objects for some of its calculations - in particular for calculating DOM element 3D rotation values. These objects are not stored in the library; rather, they are kept in a __quaternion pool__ and pulled from it when required. // // TODO: there's errors in the m...
/*************************函式庫****************************************/ //找出所有img.svg,修改成嵌入式SVG碼,以便著色 var file_list_refile_pointer = ""; var CWait_interrupt = 0; //debugX() function debugX(input){ $.ajax({ url: '/file/debugX', type: 'post', dataType: 'json...
import React, { Component } from 'react' import { connect } from 'react-redux' import { Image, Text, View, TouchableOpacity, ScrollView, RefreshControl } from 'react-native' import { ListItem, Container, Button, List } from 'native-base' import Icon from 'react-native-vector-icons/Ionicons' import MaterialIcon from 're...
// MODULES // import React, { Fragment, useCallback, useEffect, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import { i18n } from '@isle-project/locales/editor'; import { useDrag } from 'react-dnd'; import logger from 'debug'; import { findDOMNode } from 'react-dom'; import { getEmptyImage } fr...
import React, { Component } from 'react' import { StyleSheet, View, Text, TextInput, Alert, TouchableHighlight } from 'react-native' import { setFormaPago, updateFormaPago } from '../api-client' import Icon from 'react-native-vector-icons/FontAwesome' import moment from 'moment' import payform from 'payform...
function toDegs(rad) { return Math.abs(rad * (180 / Math.PI)); } function toRadians(angle) { return angle * (Math.PI / 180); } const numberFormated = (val, seperator = ".") => { return val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, seperator); }; function calcAngle(x, y, destX, destY) { let angle = ((Math.atan...
import { ObjectID } from 'mongodb'; import url from 'url'; import settings from '../../lib/settings'; import { db } from '../../lib/mongo'; import utils from '../../lib/utils'; import parse from '../../lib/parse'; import SettingsService from '../settings/settings'; import fetch from 'node-fetch'; import path from 'path...
import classNames from 'classnames'; import isEmpty from 'lodash/isEmpty'; import findIndex from 'lodash/findIndex'; import moment from 'moment'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Loader from 'react-loader'; import { connect } from 'react-redux'; import { bindActionCre...
const { SlashCommandBuilder } = require('@discordjs/builders'); const shell = require('shelljs'); module.exports = { data: new SlashCommandBuilder() .setName('analyse') .setDescription('Analyse the chat of a twitch VOD') .addStringOption(option => option.setName('url').setDescription('The URL of the twitch VOD'...
/** * Created by glenn on 26.02.17. */ const { readdirSync } = require('fs'); const path = require('path'); const _ = require('lodash'); const Generator = require('yeoman-generator'); module.exports = class extends Generator { constructor(args, opts) { super(args, opts); this.argument('type', { type: Str...
import CategoryIconSideBar from './category_icon_side_bars' import CategoryLeftSideBar from './category_left_side_bars' import HomeBanner from './home_banners' import ThongBao from './thong_baos' import LoiChua from './loi_chuas' import TinGiaoHoi from './tin_giao_hois' import TinGiaoHoiVietNam from './tin_giao_hoi_vie...
let app = new AppApi(); let product = {}; let DOM = {}; DOM.setEventCart = function () { let carts = document.querySelectorAll("button.add"); for (let i in carts) { carts[i].onclick = function () { app.Cart.POST({ productId: this.getAttribute("value") }) .then((ret) => { if (ret.error) ...
const Discord = require('discord.js'); const Enmap = require("enmap"); const Tag = new Discord.Client(); Tag.commands = new Discord.Collection(); Tag.aliases = new Enmap(); Tag.mutes = require('../Data/blocks.json'); Tag.collection = require('../Data/collection.json'); const music = require(`discord.js-music-v11...
/** Compares two version strings a and b. * @param {string} a A string representing a numerical version. * @param {string} b A string representing a numerical version. * @returns {-1|1|0} A number less than 0 if a is less than b; a number greater than zero if a is greater than b; and a number equal to zero if a i...
import { useState, useEffect } from 'react'; import { toast } from 'react-toastify'; import QRCode from 'qrcode.react'; import useTheme from '../../utils/useTheme'; import { listUrls, deleteUrl } from '../../services/api'; import useUser from '../../utils/useUser'; import { createUrl, detailsUrl } from '../../servi...
import { addCommas } from './sanitizers'; let UNDEFINED; const REDUCER_RETURN_ERROR = 'Reducer must return a state object'; const INVALID_ARG_ERROR = 'The "reducers" argument must be an object, where each value is a reducer function'; const INVALID_OBJECT_ERROR = 'The `entries` function must be passed an object as it...
var Trq={ timesA : "", upDate_num : 0, idAry:[], volume:0.5, //初始音量值 random:1,//播放模式 1->循环 2->随机 row:3 } //加载数据 function lodingdatas(){ var music_str=""; var Arrys=Array.from(data); Arrys.forEach((e,i)=>{ if(e.like==true){ music_str+='<li ids='+(e.id-1)+'><div class="circle"></div><span>'+e.song+'</span...
var master = $('.igraphic-graphic.witnesses'); var isLive = (location.host === 'www.bostonglobe.com' || location.host === 'bostonglobe.com'); // This file will convert the raw data into something usable. var prepareData = require('../../../common/js/prepareData.js'); var util = require('../../../common/js/uti...
/** * Questo modulo si occupa di gestire le voci dell'enciclopedia. * I dati sono persistenti e salvati nel file ~/Library/Application\ Support/egb/egbdata.db. * * Le voci sono rappresentate dall'oggetto "entry" così definito * - name: String, nome univoco, calcolato a partire dal titolo * - category: String, ca...
/** * @file src/server.js * @copyright 2019-present <NAME>. All rights reserved. */ import * as http from 'http' import * as url from 'url' import { v4 as uuid } from 'uuid' import cookie from 'node-cookie' import * as Config from './config' import * as Redis from './redis' import { logger } from './logger' impor...
"use strict"; const fs = require('fs'); const path = require('path'); const _ = require('lodash'); const findUp = require("find-up"); const BadgeManager = require("./src/badge-manager"); const detectNewline = require('detect-newline'); let BadgeTypes = [ new (require("./src/modules/types/RawTypeBadge"))(), ne...
/* eslint-disable no-restricted-globals */ import React from 'react' import Path from 'svg-path-generator' import Color from 'color' // This is a ponyfill for the HTML5 OffscreenCanvas API. export let createCanvas export let createImageBitmap export let ImageBitmapType // sniff environments const isElectron = typeof ...
import constantes from "./constantes.js"; import tipos from "./tipos.js"; import fecha from "./fecha.js"; //import axios from "axios" const axios = require("axios").default; class my_genericos { constructor() { this.constantes = constantes; this.tipos = tipos; this.fecha = fecha; } httpG...
import optsParser from './utilities/opts-parser/opts-parser.js'; import { Match, applyRegexList } from './utilities/syntaxhighlight-match/syntaxhighlight-match.js'; import Renderer from './utilities/syntaxhighlight-html-renderer/syntaxhighlight-html-renderer.js'; import { commonRegExp } from './utilities/syntaxhighligh...
const { validationResult } = require('express-validator/check'); const shortid = require('shortid'); const mongoose = require('mongoose'); const dayjs = require('dayjs'); const advancedFormat = require('dayjs/plugin/advancedFormat'); const Leave = require('../../../models/Leave'); const Timetable = require('../../../m...
import React from 'react' import PropTypes from 'prop-types' import intl from 'react-intl-universal' // import Grid from '@material-ui/core/Grid' import Typography from '@material-ui/core/Typography' import { makeStyles } from '@material-ui/core/styles' // import MainCard from './MainCard' import defaultThumbImage from...
import React from 'react'; import PropTypes from 'prop-types'; const KEY_CODES = { ENTER: 13, BACKSPACE: 8 }; function DefaultTagComponent(props) { const classesStr = props.classes ? (` ${props.classes}`) : ''; const className = `tag${classesStr}`; return ( <div className={className}> <div classN...
import Libp2p from 'libp2p'; import Bootstrap from 'libp2p-bootstrap'; import KadDHT from 'libp2p-kad-dht'; import Gossipsub from 'libp2p-gossipsub'; import MPLEX from 'libp2p-mplex'; import { NOISE } from '@chainsafe/libp2p-noise'; import WebRTCStar from 'libp2p-webrtc-star'; import wrtc from 'wrtc'; import IPFS from ...
'use strict' const assert = require('assert') const has = require('./has.js') const MissingEnvError = require('./missing-env-error.js') const typeOf = require('./type-of.js') const { TRUE_VALUES, FALSE_VALUES } = require('./boolean-values.js') const VALID_BOOLEANS = new Set([ ...Array.from(TRUE_VALUES) , ...Arr...
// type checking functions var toString = Object.prototype.toString; vg.isObject = function(obj) { return obj === Object(obj); }; vg.isFunction = function(obj) { return toString.call(obj) == '[object Function]'; }; vg.isString = function(obj) { return toString.call(obj) == '[object String]'; }; vg.isArray =...
"use strict"; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of c...
import React, {Component} from 'react' import {View, Text, ScrollView, TouchableOpacity, TextInput, StyleSheet} from 'react-native' import * as Colors from "../../utils/colors"; import commonStyles from "../../utils/commonStyles"; import {SafeAreaView, withNavigationFocus} from "react-navigation"; import InternetNotifi...
import React, { Component ,useState} from 'react' import { Text, StyleSheet, View,Modal,TouchableHighlight,ScrollView,TextInput,FlatList, Alert,Image,TouchableOpacity } from 'react-native' import { useSelector,useDispatch } from "react-redux"; import { createNewGroup} from '../../reducers/groupSlice'; import {fetchStre...
var async = require("async"); var redis = require("redis"); var inherit = require("../../inherit"); var defer = require("../../defer"); var CommonEventBusQueue = require("../common/queue"); var Event = require("../../event"); var BSON = ...
/*! * vue-charts v0.2.1 * (c) 2016 <NAME> * Released under the MIT License. */ 'use strict'; var _ = require('lodash'); _ = 'default' in _ ? _['default'] : _; /* This lets us resolve the promise outside the promise function itself. */ function makeDeferred() { var resolvePromise = null; var rejectPro...
/* eslint-disable */ // https://github.com/picturae/OpenSeadragonImageFilters/blob/master/src/imagefilters.js import { debounce } from "lodash" import { Classes } from "@blueprintjs/core"; var OpenSeadragon = require('openseadragon') require('./filtering') //should disable caman cache to prevent memory leak...
import { lerp } from "./math"; export const hrAlt = [0, 5, 11, 16.7, 25, 33.4, 50, 58.4, 66.7, 75, 83.3, 92, 98, 100]; const hrAltPressure = [null, 950, 925, 900, 850, 800, 700, 600, 500, 400, 300, 200, 150, null]; const lookup = new Uint8Array(256); for (let i = 0; i < 160; i++) { lookup[i] = clampIndex(24 * Math...
var gridDebitostable; var fornecedorNome; var valor_debito; var numero_cobranca; var id_debito; //id do debito var modalName; function format ( d ) { return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">'+ '<tr>'+ '<td>Obs:</td>'+ '<td>'+d.obs+'</td>'+ ...
/** * 负责用户交互逻辑 * * Created by erichua on 2019-04-23T03:47:50.328Z. */ import React from 'react' import { View, Text, StyleSheet, ScrollView, PixelRatio } from 'react-native' import { FinancialInput, List, Button, Row, Column, Icon, Dialog, Loading, Toast, Popup, ActionSheet, Table, Checkbo...
/** * 1. Read CLI arguments * 2. Select & Parse feature files as per CLI arguments [To handle performance issue of loading ] * 3. Save file parsed object to filesystem * 4. Update Cytorus to pick input file from this location * 5. Invoke cypress to run tests * 6. Check against the defined strategy if the test re...
const serverless = require("serverless-http"); const axios = require("axios"); const express = require("express"); const cors = require("cors"); const _ = require("lodash"); const conseilUtil = require("./conseilUtil"); require("dotenv").config(); const reducer = (accumulator, currentValue) => parseInt(accumulator) ...
var gfiAjax; // Criando uma instancia global do AJAX para controle de execução junto ao backend /* Expandindo a classe nativa do Leaflet L.TileLayer.WMS para adicionar e remover em uma variavel a lista de camadas ativas, o getFeatureInfo só estará habilitado para as camadas inicializadas por L.TileLayer.gfiWMS */ L....
/* * @Author: [JokerChen] * @Date: 2020-09-09 13:26:34 * @LastEditors: [JokerChen] * @LastEditTime: 2021-07-26 20:17:02 * @Description:二维码加密函数 */ // //二维码加密函数 /*_______________________________________________________*/ //获取二维码头 function long_byte4(value) { var result = new Array(4); result[0] = (value >> 2...
/* * Frozen trie interface for hotdoc's search extension. * * Copyright 2015,2016 <NAME> <<EMAIL>> * Copyright 2015,2016 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
import fetch from 'node-fetch'; import btoa from 'btoa'; import Snoowrap from 'snoowrap'; import Snoostorm from 'snoostorm'; import nimiqHelper from './nimiqHelper.js'; import * as dynamo from './utils/dynamo.js'; const { VERSION, TIPBOT_USER_NAME, CLIENT_ID, CLIENT_SECRET, CLIENT_CODE, DONATE_ADDRESS, ...
import React from 'react'; import { Card, Form, Select, Button, message, Row, Col, Input, Table } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; import './index.less'; import { getServiceList, getYxList, getAllNoticeList, modifyNotice, deleteNotice } from '../../api/service'; const buttonAddSty...
import ReactGA from "react-ga"; const ga = { name: "ga", // true if GA has been initialized at least once enabled: false, disabledWarning: "No Google analytics key provided. Google Analytics is disabled.", addTrackingKey(key) { // GA support multiple tracking keys ReactGA.initialize(key); this.enabled = ...
const svgWidth = 960; const svgHeight = 500; const margin = {top: 20, right: 40, bottom: 80, left: 100}; //dimensions of chart area const width = svgWidth - margin.left - margin.right; const height = svgHeight - margin.top - margin.bottom; //create an SVG wrapper, append an SVG group that will hold chart const sv...
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {};...
'use strict'; exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || fu...
var types = require('base/types') var painter = require('services/painter') module.exports = class Line extends require('base/shader'){ prototype(){ this.props = { visible: 1.0, space: 0., // start x sx: NaN, sy: NaN, // end x / y line x /y x: NaN, y: NaN, dx:0, dy:0, first: fals...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper"; import { scaleOrdinal } from "d3-scale"; import { interpolateBlues } from "d3-scale-chromatic"; import { pie, arc } from "d3-shape"; import { interpolateColors } from "../colorSchemeGenerator.j...
/* Copyright 2019-present OmiseGO Pte Ltd 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,...
// Partial function application. // Function -> Function or Any const curry = func => { const arity = func.length; const curried = (...a) => a.length >= arity ? func(...a) : (...b) => curried(...a, ...b); return curried; }; // Long form. // const curry = func => { //...
import React, { Component } from "react"; import { Button, Icon, DatePicker, Form, Radio, Select, Input, Row, Col, message, Affix, Tooltip } from "antd"; const FormItem = Form.Item; const Option = Select.Option; const RadioGroup = Radio.Group; import extend from "extend"; import style from "...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Route, Redirect, Switch, withRouter } from 'react-router'; import { library } from '@fortawesome/fontawesome-svg-core'; import { far as regularIcons } from '@fortawesome/free-regular-svg-icons';...
var gulp = require('gulp'), jade = require('gulp-jade'), uglify = require('gulp-uglify'), sass = require('gulp-sass'), prefix = require('gulp-autoprefixer'), csso = require('gulp-csso'), uncss = require('gulp-uncss'), minifyCSS = require('gulp-minify-css'), glob = require('glob'), im...
// URL: productdetailsdonate import Document from "../../../../document"; import Navbar from "../../../../components/Navbar"; import GeneralSidebar from "../../../../components/GeneralSidebar"; import ProductDetailsDonation from "../../../../components/ProductDetailsDonation"; import DeleteModalButtonD from "../../../...
"use strict"; const path = require('path'); const fs = require('fs'); const _ = require('lodash'); const gulp = require('gulp'); const $ = require('gulp-load-plugins')(); const browserify = require('browserify'); const watchify = require('watchify'); const babelify = require('babelify'); const mainBowerFiles = require...
var mongoose = require('mongoose'); var _ = require('lodash'); var async = require('async'); module.exports = (new function() { var self = this; self.CFG = { "prod": { query: {}, sort: { "NumProd": 1 }, fields: ["-_id", "CodeProd", "NumProd", "NameProd", "CodeParentProd", "CodeMeasure", ...
require('./bootstrap'); window.Vue = require('vue'); // Form import { Form, HasError, AlertError } from 'vform'; window.Form = Form; Vue.component(HasError.name, HasError); Vue.component(AlertError.name, AlertError); // Router import VueRouter from 'vue-router'; Vue.use(VueRouter); // Axios import axios from 'axio...
import React from "react"; import { Step, Stepper, StepLabel, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import {Row, Col, FormGroup, ControlLabel, FormControl, Radio, Form, Button} from "react-bootstra...
const { Message } = require("discord.js"); const fetch = require("node-fetch"); module.exports = class MessageHandler { getEvent() { return "raw"; } async onExecute(packet) { if (packet.t !== "INTERACTION_CREATE" || packet.d.type !== 2) return; if (packet.d.version !== 1) return console.log("Can't ...
var timer2=''; $(document).ready(function(){ var slider = document.getElementById('slider-step'); noUiSlider.create(slider, { start: 3, connect: 'lower', step:1, range: { 'min': 0, 'max': 5 } }); slider.noUiSlider.on('update', function( values, handle ) { ...
import { parse, join, faker, basename, runDeno, italic, bold, color, red, // analyzeDeps, globToRegExp } from '../deps-deno.js' import { printHelp } from './help.js' import { loadConfig } from './config.js' import buildSvelte from './build-svelte.js' import buildServiceWorker from './build-servic...
import { assign } from 'ass-compiler/src/utils.js'; import { color2rgba, uuid, vendor, strokeTags, transformTags } from '../utils.js'; import { getRealFontSize } from './font-size.js'; import { createCSSStroke } from './stroke.js'; import { createTransform } from './transform.js'; function getKeyframeString(name, list...
// Javascript library basic 3d rendering using text. // v0.1a // // Copyright (C) 2007 <NAME> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at y...
/* * This file is part of the JudoIntranet package. * * (c) <NAME> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ "use strict"; // import required modules import React, {Component} from 'react'; import {Link} from 'react-router-...
"use strict"; // SearchBar function mySearchFunction() { // Declare variables let input, filter, ul, listePoke, item, i, txtValue; // User Input input = document.getElementById("poke-filter"); // Filter, makes search not case sensitive filter = input.value.toUpperCase(); // Grabs the parent...
var nodeUtil = require("util"), nodeEvents = require("events"), _ = require('underscore'); var BSParserUtils = (function () { 'use strict'; var filterTextEntries = function (page, filterText) { return page.Texts.filter(function (textEntry) { return textEntry.R.filter(function (textRun) { ...
/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ /* Test applying an update by staging an update and launching an application */ /** * The MAR file used for this test should not contain a version 2 update * manifest file (e.g. updatev2.manifest). */ cons...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRe...
'use strict'; function Dialog() { this._cache = {}; this.dialogId = null; this.prevDialogId = null; this.sidebar = null; this.content = null; this.dialogTitle = null; this.dialogsListContainer = null; this.messagesContainer = null; this.attachmentsPreviewContainer = null; ...
const fs = require('fs') const moment = require('moment') const crypto = require('crypto') const config = require('../config/config') const AlipaySdk = require('alipay-sdk').default const AlipayFormData = require('alipay-sdk/lib/form').default const ALI_PAY_SETTINGS = { APP_ID: config.alipay.APP_ID, APP_GATEWAY_U...
/* * Linear-time computation of the Longest Common Substring. This implementation * computes the suffix array and the longest common prefix array, which is more * space efficient than constructing a generalized suffix tree. The substrings * are concatenated with unique markers and their positions recorded in a * s...
// Setup tab services. /*eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }]*/ window.addEventListener("load", function(_evt) { document.getElementById('ulDownloadFile').addEventListener('click', downloadFile); document.getElementById('ulDownloadUrl').addEventListener('click', downloadUrl); docu...
const COS = require("./cos-wx-sdk-v5"); const vodUtil = require("./vod_util"); const { UploaderEvent } = require("./constants"); const { EventEmitter } = require("events"); const COS_REGION_KEY = "COS_REGION_KEY"; const {VodReporter, reportEvent} = require('./reporter'); function raceRequest(options) { return new Pr...