text stringlengths 3.07k 16k |
|---|
import { round } from "./math.js?module";
export const hexToHsva = hex => rgbaToHsva(hexToRgba(hex));
export const hexToRgba = hex => {
if (hex[0] === '#')
hex = hex.substr(1);
if (hex.length < 6) {
return {
r: parseInt(hex[0] + hex[0], 16),
g: parseInt(hex[1] + hex[1], 16),
b: parseInt(hex[... |
import React, {Component, Fragment} from 'react';
import {withStyles} from '@material-ui/core/styles';
import AppBar from "@material-ui/core/AppBar/AppBar";
import Toolbar from "@material-ui/core/Toolbar/Toolbar";
import Typography from "@material-ui/core/Typography/Typography";
import TextField from '@material-ui/core... |
import React, { useEffect } from 'react';
import { Line, Chart, Interaction } from 'react-chartjs-2';
import { color, boxShadow } from 'shared/utils/styles';
import { CrosshairPlugin, Interpolate } from 'chartjs-plugin-crosshair';
let width, height, gradient;
function getGradient(ctx, chartArea) {
const chartWidth =... |
var errorPageCSS = `
* {
box-sizing: border-box;
}
a {
text-decoration: none;
color: inherit;
cursor: pointer;
}
body {
background: #fff;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, "Oxygen Sans", "Helvetica Neue", sans-serif;
}
.btn {
display: inline-block;... |
import CARRERAS from "./carreras";
import { COLORS } from "./theme";
export const USER_FORM =
"https://docs.google.com/forms/d/e/1FAIpQLSdJJNbo0937o6Lb68d9mv6ODu6AGgLBNaiX1Soxc_78-UXndg/formResponse";
export const USER_FORM_ENTRIES = {
padron: "entry.657244342",
carrera: "entry.979688332",
orientacion: "entry... |
var latte_lib = require("latte_lib");
var Builder = require("./builder");
var JQuery = require("./jquery");
var Events = 'blur change click dblclick error focus input keydown\
keypress keyup load mousedown mousemove mouseout mouseover\
mouseup resize scroll select submit unload'.split(/\s+/);
var docEl = document.do... |
/**
* Functions for generating internationalized payment method labels.
*
* The fact that we use these labels inside `<select/>` options prevent us
* from implementing this as a React component as for now React does not
* support having components inside `<option/>` tags, even if the component
* returns only stri... |
// my_tools.js
// ========
const fs = require('fs');
const path = require('path');
const database = require('./utils/database');
class Token {
constructor(uid, id4nlp, id4identifier, line, text, classname, charStart=0) {
// https://stackoverflow.com/questions/192048/can-an-html-element-have-multiple-ids
... |
import React, { Component } from "react";
import CircularProgress from "@material-ui/core/CircularProgress";
import Grid from "@material-ui/core/Grid";
import IncompatibleIcon from "@material-ui/icons/Error";
import Popover from "@material-ui/core/Popover";
import Typography from "@material-ui/core/Typography";
import ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _paginationCss = _interopRequireDefault(require("../../@patternfly/patternfly/components... |
"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 Repo = require("../models/repo.model");
const Task = require("../models/task.model");
const ObjectID = require("mongodb").ObjectID;
//A call will be in the controller
//These functions will be storing the data
//that is returned from the call
//Get the creator/admin of the repo
/*
Repo :{
name:gitDemo,
admin... |
$(function () {
$('.am-nav li').removeClass('am-active');
$('.invite-area').hide();
var dotline = new Dotline({
dom:'J_dotLine',//画布id
cw: $(window).width(),//画布宽
ch: $(window).height() - 40,//画布高
ds: 300,//点的个数
r: 0.5,//圆点半径
// cl:'#12FC41',//粒子线颜色
c... |
'use strict';
const Axios = require('axios');
const Constants = require('../utils/Constants');
const Uuid = require('uuid');
class OAuth {
#scope = Constants.OAUTH.SCOPE;
#model_name = Constants.OAUTH.MODEL_NAME;
#grant_type = Constants.OAUTH.GRANT_TYPE;
#oauth_code_url = `${Constants.URLS.YT_BASE}/o/oauth... |
const gulp = require('gulp');
const {series, parallel} = gulp;
const path = require('path');
const fs = require('fs');
const clean = require('gulp-clean');
const webpackStream = require('webpack-stream');
const TerserPlugin = require('terser-webpack-plugin');
const header = require('gulp-header');
const pkg = require('... |
const currentPage = location.pathname
const menuItems = document.querySelectorAll('.container-admin .menu a')
const menuItems2 = document.querySelectorAll('.container .menu a')
for (item of menuItems) {
if (currentPage.includes(item.getAttribute("href"))) {
item.classList.add('active')
}
}
for (item o... |
'use strict'
const P = require('effd')
const get = require('get-then')
const debug = require('debug')('manage-members')
const github = require('../github.js')
// we need this RegExp to have the global flag
const mentionsRegex = new RegExp(require('mentions-regex')().source, 'g')
const exclude = (a, b) => a.filter((x... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnP... |
import React, { Fragment } from 'react';
import { Button } from 'reactstrap';
import { Link, Redirect } from 'react-router-dom';
import { years } from '../../data';
import LoginRegisterModal from '../Modals/loginregistermodal';
import axios from 'axios';
import './hamburgermenu.css';
import './searchbar.css';
import '.... |
var GENOME_LENGTH = 9719;
var GENE_MAP = {
"rf1": {
"5 LTR": {
"start": 1,
"end": 634
},
"p17": {
"start": 790,
"end": 1185
},
"p24": {
"start": 1186,
"end": 1879
},
"p7... |
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _RESTController = _interopRequireDefault(require("... |
import React, { Fragment } from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { previousMonth, nextMonth } from 'couples-diary-core';
import Header from '../Header';
import { months } from '../../constants';
import Loader from '../Loader';
import './styles.css';
const ... |
function roundedCornersBackground (params) {
if (params.xOffset === undefined) { params.xOffset = 0 }
borderPoint1 = {
x: params.cornerRadius + params.xOffset,
y: params.cornerRadius
}
borderPoint2 = {
x: params.container.frame.width - params.cornerRadius,
y: params.cornerRadius
}
borderPo... |
import React from 'react'
import {connect} from 'react-redux'
import {getSingleCandyThunk} from '../store/singleCandy'
import {addCandyToCart, getCartThunk, getCart} from '../store/cart'
import {withRouter} from 'react-router-dom'
import {EditCandyForm, SingleCandyCart} from './'
import {me} from '../store/user'
expor... |
import React, {Component} from "react";
import {Button, Progress, Row, Space, Switch, Tooltip} from "antd";
import Col from "antd/es/grid/col";
import DeleteOutlined from "@ant-design/icons/es/icons/DeleteOutlined";
import sberLogo from "./../../assets/images/sber-logo.svg";
import Icon from "@ant-design/icons/lib";
im... |
var express = require("express");
var router = express.Router();
var Campground = require("../models/campground");
var middleware = require("../middleware");
var geocoder = require('geocoder');
var multer = require("multer");
var storage = multer.diskStorage({
filename: function(req, file, callback){
callb... |
import { getUTCTime } from '../../common/utils/tools';
import { translate } from '../../common/i18n';
import { roundBalance } from '../common/tools';
import { notify } from './broadcast';
export const noop = () => {};
export const tradeOptionToProposal = (tradeOption, purchaseReference) =>
tradeOption.contractTyp... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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... |
'use strict';
const AWS = require('aws-sdk');
const codebuild = new AWS.CodeBuild();
const codecommit = new AWS.CodeCommit();
const cloudwatchlogs = new AWS.CloudWatchLogs();
function startBuild(params, callback) {
codebuild.startBuild(params, (error, data) => {
if (error) {
console.log(error, error.stack... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inh... |
/**
* Slider
*
* Similar to formSlider.js but with one value instead of two.
* Name was prefixed because it collided with slider.js which is a slideshow.
* In afterthough, slider.js should've been named slideshow.js
* or maybe all form related scripts should've been prefixed.
* I'm not good with naming th... |
import React from "react"
import { Stagger, RouteContainer } from "../../UI/appspecific/Containers"
import { connect } from "react-redux"
import yes from "../../../images/profilelogo.svg"
import { navigate } from "gatsby"
//UI IMPORTS
import Paper from "../../UI/appspecific/Paper"
import InformationContainer from "../.... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.InstagramDimensions = exports.Instagram = void 0;
var _extends2 = _interopRequireDefaul... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _carbonComponents = re... |
'use strict';
const Cheerio = require('cheerio');
const { DOMAIN } = require('./constants');
const Common = require('./common');
const Upstream = require('./upstream');
const findStatRowYear = (id, $) => { // find 2018 MLB statline
const statRows = $(`#${id} tr`);
let currentYear;
statRows.each((i, row... |
/* eslint-env mocha */
/* eslint-disable no-console */
/* global artifacts, assert, contract, describe, it */
const DIDRegistry = artifacts.require('DIDRegistry.sol')
const Web3 = require('web3')
const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'))
const utils = require('./utils.js')
cont... |
/**
* @author Vanyi
* @description kline
* @date 2019年10月26日15:38:04
*/
import './style'
import KlineCanvas from './KlineCanvas'
import KlineMaskCanvas from './KlineMaskCanvas'
import YAxis from './YAxis'
import XAxis from './XAxis'
import VolumeCanvas from './VolumeCanvas'
import Dashboard from './Dashboard'
impor... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var bodyParser = require('body-parser');
const session = require('cookie-session');
var cookieParser = require('cookie-parser')
var csrf = require('csurf');
var morgan = require('morgan');
var passport = requir... |
goog.require('Matrix.Cells')
goog.require('Matrix.Model')
goog.require('Matrix.mxWeb')
goog.provide('Hiring.usernote')
//--- User Job Listing Annotations -------------
//
//
// ---- model / persistence --------------------
const UNOTE = "whoishiring.unote.";
// MXStorable.removeAllItems(UNOTE);
class UserNotes exte... |
const lodo = require("express").Router();
const Businesses = require("../../models/Business");
const axios = require('axios');
const jwt = require("jsonwebtoken");
const jwtVerify = require("../../config/jwt");
const User = require("../../models/User");
const upload = require("../services/fileUpload.js")
require('d... |
const { Transform } = require('stream');
const Errors = require('./errors');
const types = require('./types');
let maxMimeChunkOffset = 0;
types.forEach(t => {
maxMimeChunkOffset = Math.max(t.bytesToGetMime, maxMimeChunkOffset);
});
const defaultOpts = {
requireMime: true,
requireDimensions: true,
exif: fal... |
import React from 'react';
import PropTypes from 'prop-types';
import Dragula from 'react-dragula';
import CardList from "../tasks/card/CardList";
import Loading from "../../components/common/Loading";
class BoardList extends React.Component {
constructor(props, context) {
super(props, context);
thi... |
/*********** disabled back button of brower *************
$(document).ready(function () {
function disableBack() {window.history.forward()}
window.onload = disableBack();
window.onpageshow = function (evt) {if (evt.persisted) disableBack()}
});
/*********** disabled back button of brower *************/
... |
try
{
var IE = (navigator.userAgent.toLowerCase().indexOf("msie") != -1 ? true : false);
}
catch(e)
{
var IE = false;
}
// Resizes the content div to the appropriate size.
// Should only be needed for IE
function ResizeContentDiv()
{
var winHeight = window.innerHeight;
if(winHeight == und... |
// React
import React from 'react';
import { Events, animateScroll as scroll } from 'react-scroll';
// Components
import './App.css';
import content from './content.js';
import Header from './components/header.js';
import Footer from './components/footer.js';
import FilterBar from './components/filterBar.js';
import C... |
// Test all user management functions using only a browser (and something to receive emails).
//
// There is some overlap between this and the server-tests.js, a test that fails in both is likely broken on the server side, a test that only fails here is likely broken in the client-facing code.
"use strict";
var fluid ... |
const debug = require('debug')('service')
const mysql = require('mysql2');
class Service {
constructor (name) {
debug('new service', name)
this[`${name ? 'table' : 'db'}`] = require('../db').useTable(name);
name && (this.table = new this.table());
}
// FIXME: refactor this one. Thi... |
// Copyright 2017 The Nomulus 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... |
var MaxCubeLowLevel = require('./maxcube-lowlevel');
var MaxCubeCommandParser = require('./maxcube-commandparser');
var MaxCubeCommandFactory = require('./maxcube-commandfactory');
var Promise = require('bluebird');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
// Constructor
function ... |
'use strict';
/**
* Module dependencies
*/
var _ = require('lodash'),
path = require('path'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
Fuse = require('fuse.js');
// decalre dependant functions
var moduleDependencies = require(path.resolve('./modules/c... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import FormControl from '@material-ui/core/FormControl';
import NativeSelect from '@material-ui/core/NativeSelect';
import InputLabel from '@material-ui/core/InputLabel';
import firebase from '../../firebase';
import { addGalleryImage, ... |
function inventreeDocReady() {
/* Run this function when the HTML document is loaded.
* This will be called for every page that extends "base.html"
*/
window.addEventListener("dragover",function(e){
e = e || event;
e.preventDefault();
},false);
window.addEventListener("drop... |
var serverDate = new Date();
function enableAbsenMasuk(enable) {
if (enable) {
document.getElementById('btn-in').removeAttribute('disabled');
} else {
document.getElementById('btn-in').disabled = true;
}
}
function enableAbsenPulang(enable) {
if (enable) {
document.getElementBy... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import SanitizedContent from "../SanitizedContent";
import { CloseXIcon, BellOutline } from "../../lib/SvgComponents.jsx";
import { withGetConfig } from "../hooks/useGetConfig";
class NotificationBanner extends Component {
constructor(p... |
"use strict";
require("core-js/modules/es.symbol");
require("core-js/modules/es.array.index-of");
require("core-js/modules/es.array.map");
require("core-js/modules/es.object.assign");
require("core-js/modules/es.object.define-property");
require("core-js/modules/es.object.keys");
require("core-js/modules/es.stri... |
"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)... |
function make_slides(f) {
preload(assetPaths, { after: function() {console.log(`all ${assetPaths.length} assets preloaded`)}})
var slides = {};
slides.i0 = slide({
name : "i0",
start: function() {
exp.startT = Date.now();
}
});
slides.instructions = slide({
name : "instructions",
butto... |
const respositoryContent = document.getElementById('repositoryContent');
const GITHUB_TOKEN = "cdca1b167d3815307d804eab2ea9adc7a735a5d9";
fetch('https://api.github.com/graphql', {
method: 'POST',
body: JSON.stringify({
query: `query { viewer{ repositories(last:20) { totalCount, nodes{nameWithOwner, name, descr... |
import React, { useState, useContext, useEffect } from 'react';
import Tour from 'reactour';
import styled from 'styled-components';
import Next from './../../assets/icons/next.svg';
import Prev from './../../assets/icons/prev.svg';
import CloseSvg from './../../assets/icons/close-purple.svg';
import { Button } from '.... |
import React from 'react'
import {
View,
Text,
Animated,
Image,
findNodeHandle,
TouchableOpacity,
StyleSheet
} from 'react-native'
import {
DEFAULT_NAVBAR_HEIGHT, DEFAULT_WINDOW_MULTIPLIER, SCREEN_HEIGHT,
SCREEN_WIDTH
} from "./constants";
import {BlurView} from 'react-native-blur';
import PropTypes from 'p... |
#! /usr/bin/env node
Object.defineProperty(exports, "__esModule", { value: true });
exports.readDataJson = exports.printHelpText = exports.printVersion = void 0;
const cross_spawn_1 = require("cross-spawn");
const init_1 = require("./init");
const devserver_1 = require("./devserver");
const staticc_1 = require("staticc... |
/*
The MIT License (MIT)
Copyright (c) 2014 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... |
class Luchador {
constructor(nombre, vida, fuerza, defensa, suerte) {
this.nombre = nombre;
this.vida = vida;
this.fuerza = fuerza;
this.defensa = defensa;
this.suerte = suerte;
this.handicap = suerte - Math.floor(Math.random() * 5);
}
ataque(enemigo) {
enemigo.vida -=
(this.fue... |
import { getGraphData } from '../../../actions/getGraph';
import React, { Component } from "react";
// reactstrap components
import {
Row,
Card,
CardHeader,
CardBody,
} from "reactstrap";
import * as d3 from 'd3';
let width = 400;
let height = 400;
class FastGraph extends Component {
constructor(props) {
su... |
/**
* Copyright (c) 2002-2016 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* 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... |
import React, { useCallback, useEffect, useState, useRef } from 'react';
import ReactPlayer from 'react-player/lazy';
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import useMedia from '../../hooks/use-media';
import { getTimeLabel } from '../../utils/get-time-label';
import AudioPauseIcon ... |
const request = require("node-superfetch");
const slurs = require("../../../assets/json/blacklistphrases");
const timer = (ms) => new Promise((res) => setTimeout(res, ms));
module.exports = {
name: "reddit",
aliases: ["reddit", "comment", "post", "check"],
description: "Get filtered r/all links",
cooldown: 50,
a... |
var popupWin
Stamp = new Date();
var Hours;
var Mins;
var Seconds;
var uniqueWindow;
Hours = Stamp.getHours();
Minutes = Stamp.getMinutes();
Seconds = Stamp.getSeconds();
uniqueWindow = "popupWin_" + Hours + Minutes + Seconds;
var win;
//Function for opening a new window of given width or height
function openWindow(p... |
import * as utils from './utils'
/**
* Most of this was copied directly from the pen at http://codepen.io/Gthibaud/pen/BoaBZK
* and halfheartedly converted to es6.
*/
function confetti(canvas) {
let numberOfPieces = 200
let confettiSource = {
x: 0,
y: 0,
w: canvas.width,
h: 0,
}
let friction... |
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) {
ext... |
import React, { useState } from 'react';
import{ useRouter } from 'next/router';
import Layout from '../components/Layout';
import { useFormik } from 'formik';
import * as Yup from 'yup';
import { useMutation ,gql } from '@apollo/client';
const NUEVA_CUENTA = gql`
mutation nuevoUsuario($input: UsuarioInput) {
... |
function Graph() {
this.vertices = [];
this.edges = [];
this.numberOfEdges = 0;
}
Graph.prototype.addVertex = function ( vertex ) {
this.vertices.push( vertex );
this.edges[ vertex ] = [];
};
Graph.prototype.removeVertex = function ( vertex ) {
var index = this.vertices.indexOf( vertex );
if ( ~index ) {... |
var socket = io();
const messages_container = document.getElementById('chat_box');
$(document).ready(function(){
// if user fails to connect, users will still be seeing please refresh the page message.
socket.on('connect', function() {
let output =
'<div class="text-center mt-2">'+
... |
import React from 'react';
import PropTypes from 'prop-types';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
import Chip from '... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu... |
import {
generateUniqueId,
isNiceDiceEnabled,
i18n,
i18n_f,
diceToFormula as diceToFormula,
} from '../../lib/utilities.js'
const effects = {
unaffected: {
i18n: 'GURPS.notAffected',
createButton(label) {
return label
},
},
fallsDown: {
i18n: 'GURPS.fallsDownApplyProne',
creat... |
function isAOlderThanB(scopeA, scopeB) {
if(angular.equals(scopeA.length, scopeB.length)) {
return scopeA > scopeB;
} else {
return scopeA.length > scopeB.length;
}
}
function $Breadcrumb() {
var $$options = {
prefixStateName: null,
template: 'bootstrap3',
templ... |
/**
* @file 组件 rate
* @author panming <<EMAIL>>
*/
import './style/index.less';
import san, {DataTypes} from 'san';
import KeyCode from '../core/util/keyCode';
import {classCreator} from '../core/util';
import {getOffset} from '../core/util/dom';
import icon from '../icon';
import tooltip from '../tooltip';
import ... |
// Copyright 2014 The Oppia 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 ap... |
import * as squirrelly from 'squirrelly';
import Parser from 'html-tokenizer/parser';
// helper method to parse the CSV data (in JSON format) and return an array of rows to be output
export const getBuilderLines = (data, rowConfig, generationFormat) => {
const lastSeenColValues = [];
const lines = [];
con... |
"use strict";
var every_js_1 = require('lodash/every.js');
var some_js_1 = require('lodash/some.js');
var startsWith_js_1 = require('lodash/startsWith.js');
var endsWith_js_1 = require('lodash/endsWith.js');
var lt_js_1 = require('lodash/lt.js');
var lte_js_1 = require('lodash/lte.js');
var gt_js_1 = require('lodash/gt... |
// If we are dev env, load dotenv
if (process.env.NODE_ENV != "production"){
require('dotenv').config();
}
var MongoClient = require('mongodb').MongoClient;
var async = require('async');
var moment = require('moment');
var GCM = require('../lib/gcm');
var Chance = require('chance');
var chance = new Chance();
const... |
'use strict';
/* jshint ignore:start */
var noop = angular.noop;
var extend = angular.extend;
var jqLite = angular.element;
var forEach = angular.forEach;
var isArray = angular.isArray;
var isString = angular.isString;
var isObject = angular.isObject;
var isUndefined = angular.isUndefine... |
/*
Copyright (c) 2020 by Lilee Technology, Ltd.
All rights reserved.
Reference script to --
1. retrieve / renew T-Cloud customer API access token using HMAC.
2. inquire for device status information.
*/
// import
const crypto = require('crypto');
const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequ... |
import React from 'react';
import axios from "axios";
import Select from 'react-select';
import Checkbox from '@material-ui/core/Checkbox';
import "./StudentsRegistration.css";
import './Animation.css';
//import Select from '@material-ui/core/Select';
const {level1: locateList} = require('./koatuu.json');
const {p... |
"use strict"
const utils = require("../utils")
/**
* Check whether the given node is a multiline
* @param {object} contentFirstLoc The comment content first location.
* @param {object} contentLastLoc The comment content last location.
* @returns {boolean} `true` if the node is a multiline.
*/
function isMultilin... |
import { VideoPlayerBar } from "./video-player-bar.js";
import { VideoAnnotator } from "../annotator/annotator.js";
//import * as screenfull from "screenfull";
//import 'jquery-ui/dist/jquery-ui.js';
let screenfull = require('screenfull');
class AnnotatorVideoPlayer {
constructor($video, annotatorArgs){
c... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MapView from 'react-native-maps';
import isEqual from 'lodash.isequal';
class MapViewDirections extends Component {
constructor(props) {
super(props);
this.state = {
coordinates: null,
distance: null,
duration: null,
... |
const settings = {
dir: {
dist: 'docs/',
dist_css: 'docs/common/css/',
dist_js: 'docs/common/js/',
dist_ejs: 'docs/',
dist_img: 'docs/common/img/',
src: 'src/',
src_css: 'src/common/css/',
src_js: 'src/common/js/',
src_ejs: 'src/',
src_img: 'src/common/img/'
},
... |
require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
import ReactDOM from 'react-dom';
var yeoImagesJson = require('../data/imgJson.json');
yeoImagesJson = (function imagesUrl(dataArr){
for (var i = 0,j= dataArr.length;i<j; i++) {
var ImagesData = dataArr[i];
ImagesData.... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.deleteCategoryCoverImageFromGCloud = exports.getAllProductsWithAverageReviewAttached = exports.preFillManufacturerId = exports.preFillProductBoards = exports.preFillProductdetailedDescription = exports.preFillCartIdasParams = void 0... |
var Card = React.createClass({
adjustFontSizes: function() {
var thai = this.refs.thai.getDOMNode();
var english = this.refs.english.getDOMNode();
//ratio to account for script size differences betwen english and thai
thai.style.fontSize = util.fitWordToWidth(thai, 1) + "px";
... |
"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, { Component } from 'react';
import { UserContext } from '../../../contexts/UserContext';
import GadgetControlExpandedSwitch from '../../gadget/gadget-control-expanded-switch/GadgetControlExpandedSwitch';
import GadgetControlExpandedSetValue from '../../gadget/gadget-control-expanded-setValue/GadgetControl... |
import omit from 'lomit'
import {
DefinitionKind,
SelectionKind,
VariableKind,
} from './constants'
/**
* Return root query object to work against based on if an operationName key
* is set in operation.
*
* @param {Operation} operation
* @return {Object}
*/
const getRootQuery = (operation) => {
const { q... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButto... |
/**
* Copyright 2017 The AMP HTML 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 require... |
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
function _construct(Parent, args, Class) {
return (_construct = !function() {
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.