text stringlengths 3.07k 16k |
|---|
"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,{useState,useEffect,useRef} from 'react'
import './style.scss'
import { useParams } from 'react-router-dom';
import {Card4 as Card} from 'components/Cards/index'
import { Editor } from '@tinymce/tinymce-react';
import {APP_ROUTES,EMAIL_EDITOR_API_KEY,NO_IMAGE} from 'utils/constants'
import {redirectToUrl... |
const electron = require("electron")
const {dialog} = require('electron')
const fs = require('fs')
const interpretationClass = require("./intervention/app")
const EventEmitter = require('events').EventEmitter
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const electapp = electron.app
const crea... |
const R = require('ramdajs');
import moment from 'moment';
import toastr from 'toastr';
toastr.options = {
'closeButton': false,
'debug': false,
'newestOnTop': false,
'progressBar': false,
'positionClass': 'toast-top-center',
'preventDuplicates': false,
'onclick': null,
'showDuration': '300',
'hideD... |
const QueryData = require('./QueryData');
const QueryRole = require('./QueryRole');
const chalk = require('chalk');
const cTable = require('console.table');
const queryRole = new QueryRole();
/**
* holds methods which are relevant for querying employee table.
*/
class QueryEmployee extends QueryData {
/**
... |
// Players routes
const {getAll, catMap} = require('./utils');
const axios = require('axios');
const _ = require('lodash');
module.exports.registerPlayerRoutes = function (app, db) {
app.get('/player/count', (req, res) => count(req, res, db));
app.get('/player/import/all', (req, res) => importAll(req, res, db)... |
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import {
FormControl,
InputLabel,
Select,
MenuItem,
TextField,
Typography,
Button,
Box,
} from '@material-ui/core'
import useStyles from './styles'
import { Formik, Form } from 'formik'
import { createOrganization } from '../../.... |
import React from 'react';
import PropTypes from 'prop-types';
import vtkGridMap from '../utils/GridMap';
import style from './GridMapWidget.mcss';
const LEFT_BORDER = { borderRadius: '5px 0 0 5px' };
const MIDDLE_BORDER = { borderLeft: 'none' };
const RIGHT_BORDER = { borderRadius: '0 5px 5px 0', borderLeft: 'none'... |
function showData2 (nodes, links) {
var colorMap = new Map();
colorMap.set("\"System\"",'aqua');
colorMap.set("\"Service\"",'lightskyblue');
colorMap.set("\"Component\"",'deepskyblue');
colorMap.set("\"Container\"",'royalblue');
colorMap.set("\"Container Resource\"",'blue');
colorMap.set("\"... |
//IPFS_VersionControl
const readline = require('readline');
const exec = require('child_process').exec;
const PouchDB = require('pouchdb');
const chalk = require('chalk');
const clear = require('clear');
var db = new PouchDB('programs');
const figlet = require('figlet');
const inquirer = require('inquirer')
const int... |
function random (start, end) {
var range = end - start;
return start + Math.floor(Math.random() * range);
}
function randomPick (array) {
var length = array.length;
var index = random(0, array.length);
return array[index];
}
function ascending (a, b) {
return typeof a === 'string' ?
a.localeCompare(b... |
import React from "react";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faCircle, faEye, faEyeSlash, faVectorSquare} from "@fortawesome/free-solid-svg-icons";
import "./sidebar-list.scss";
import {STUDIO_SETTINGS} from "../../../settings";
import PropTypes from "prop-types";
import ListGroup ... |
// import React from 'react';
// import Paper from 'material-ui/Paper';
// import Divider from 'material-ui/Divider';
// import TextField from 'material-ui/TextField';
// const stylePaper = {
// height: '200px',
// width: '375px',
// background: '#f8f8f9',
// position: 'fixed',
// marginLeft:'12px',
// };
/... |
/** @babel */
const _ = require('underscore-plus');
export default class ProcessConfig {
constructor(object) {
if (!object) {
object = {}
}
this.namespace = 'process-palette';
this.action = '';
this.command = '';
this.arguments = [];
this.cwd = null;
this.inputDialogs = [];
... |
/**
* Treehouse FSJS Techdegree - Project Warm Up
* Form Input Validation - JS
* Developed by: <NAME> - Student Success Specialist
* Milwaukie, OR - 2020
*/
"use strict";
/* Variable to store form elements - You'll use these in the functions below' */
const form = document.querySelector... |
import React from 'react';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withNamespaces } from 'react-i18next';
import { Link } from 'react-router-dom';
import cx from 'classnames';
import ObservedImage from '../../components/ObservedImage';
import Records from '../../components/Reco... |
import React from 'react'
import { Table, Form, Row, Col, Input, Button, Select, Modal, Popconfirm, notification } from 'antd'
import PropTypes from 'prop-types'
import { request, config } from 'utils'
import ModalFrom from './form'
const FormItem = Form.Item;
const Option = Select.Option;
// 定义form项目
const... |
'use strict';
/**
* Generate eml files out of all Trustroots email templates,
* so that you can open them for inspection with email clients.
*
* Usage:
* NODE_ENV=test node ./scripts/exportEmailsAsEml.js
*
* To set temp directory:
* NODE_ENV=test node ./scripts/exportEmailsAsEml.js /path/to/files
*
* By defa... |
//alert('loaded facebook.js');
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current ... |
/*
# Allergies
Write a program that, given a person's allergy score,
can tell them whether or not they're allergic to a given item, and their full list of allergies.
An allergy test produces a single numeric score which contains the
information about all the allergies the person has (that they were
tested for).
The... |
/**
* @file Accordion Demo Module
* @author <EMAIL>
*
* @module modules/accordion
*
*/
import observer from '@unic/composite-observer';
const instance = {};
const defaults = {
container: '#l-content',
accordionMode: true,
accordion: 'm-accordion',
accordionTrigger: 'trigger',
accordi... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
const logger = require('../shared/log');
const ConfigService = require('../../shared/ConfigService');
const configService = new ConfigService();
const REDIS_CONNECTION_STRING = configService.getValue('redisUrl');
const Queue = require('bull');
const parseEvents = require('../../event-parser');
const scripts = requir... |
/*
Copyright (c) 2019 <NAME>,
released under the CeCILL-B license (French BSD license)
(http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt).
*/
import ol_control_Control from 'ol/control/Control'
import ol_ext_inherits from '../util/ext'
import ol_ext_element from '../util/element'
import ol_control_Print... |
const Widget = require('./Widget');
const objc = require('../definitions');
module.exports = class Box extends Widget {
constructor(app, options = {}) {
// const BoxView = objc.NSView.extend('BoxView');
// BoxView.addMethod('init', 'v@:@', (self, _cmd, ...others) => {
// console.log('i... |
/**
* Created by Angela on 2018/6/18.
*/
'use strict';
import fs from 'fs';
import gulp from 'gulp';
import del from 'del'; // 删除文件
// Load all gulp plugins automatically
// and attach them to the `plugins` object
import plugins from 'gulp-load-plugins';
import modernizr from 'modernizr';
imp... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
/**
* Created by Administrator on 2016/5/27.
*/
var curIndex = 10
var stopCur = 0
var seeExp1 = myLayer.extend({
sprite: null,
changeDelete: true,
layerName: "seeExp1",
preLayer: "seeLayer",
ctor: function () {
this._super();
this.expCtor();
this.initPeople();
this... |
// Copyright 2017 Quip
import ListenerRecord from "./lib/listenerRecord";
import { PropTypes } from "react";
export const COLUMN_TYPE = {
PERSON: "person",
STATUS: "status",
DATE: "date",
FILE: "file",
TEXT: "text",
CUSTOM: "custom",
};
export const toJSONPropTypeShape = arrayOrObj => {
r... |
/*###########################################################################
##
# Copyright 2017-2018 VMware Inc.
# This file is part of VNF-ONboarding
# 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 o... |
// Copyright 2016 <NAME>. 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 applicable la... |
// try to block page before loading
var toBlock=[
"google-analytics.com",
"doubleclick.net",
"googlesyndication.com/",
"/adtv/",
"baidu.com/cpro",
"pos.baidu.com/",
"baidu.com/adrc.php",
"tb.himg.baidu.com/sys/portrait/item",
"drmcmm.baidu.com",
"exoclick.com",
"livejasmin.com",
"ads.traffich... |
'use strict';
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var... |
"use strict";
/* eslint-disable @typescript-eslint/member-delimiter-style */
/* eslint-disable indent */
/* eslint-disable @typescript-eslint/no-use-before-define */
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importSta... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const array_prototype_flatmap_1 = __importDefault(require("array.prototype.flatmap"));
const date_fns_1 ... |
import React from 'react';
import { isContainer } from '../registry/ComponentRegistry';
import { typeOf } from './typeOf';
import { getProp, getProps } from './propUtils';
// TODO isn't this equivalent to containerOf ?
export function followPathToParent(source, path) {
const { 'data-path': dataPath, path: sourcePath... |
/**
* This module adds SharedId to the User ID module
* The {@link module:modules/userId} module is required
* @module modules/sharedIdSystem
* @requires module:modules/userId
*/
import { parseUrl, buildUrl, triggerPixel, logInfo, hasDeviceAccess, generateUUID } from '../src/utils.js';
import {submodule} from '..... |
const auth = require('../middleware/auth');
const Activity = require('../models/activity');
const multer = require('multer');
const logger = require('../config/logger');
const {
ensurePicAndWriteToDisk,
removeExistingPicFile
} = require('../services');
const upload = multer();
const {RESOURCES_DIR} = process.env;
... |
import React from 'react';
import {
compose,
withPropsOnChange,
withProps,
withState,
} from 'recompose';
import md5 from 'blueimp-md5';
import urlJoin from 'url-join';
import {
isEqual,
isNull,
reduce,
} from 'lodash';
import consoleDebug from '@ncigdc/utils/consoleDebug';
import { redirectToLogin } fro... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
/*! *****************************************************************************
Copyright (c) Microsoft Corpor... |
import * as types from '../actions/action-types';
import getCategoryName from '../utils/category-name';
import {produce} from 'immer';
// This reducer manages data necessary to load the views for and manage authenticators.
const initialState = {
categories: null,
chains: {},
indexedData: {
availabl... |
var _ = require('underscore'),
when = require('when'),
series = require('when/sequence'),
errors = require('../../errorHandling'),
knex = require('../../models/base').knex,
defaultSettings = require('../default-settings'),
Settings = ... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
/*
* DescribePage
*
*/
import React from 'react'
import { connect } from 'react-redux'
import { createStructuredSelector } from 'reselect'
import { injectIntl } from 'react-intl'
import PropTypes from 'prop-types'
import { Form, Collapse } from 'antd'
import copy from 'copy-to-clipboard'
import {
makeSelectNetwo... |
//************
// Script to get expected timing for node-sharp methods
//
function time(method)
{
var start = new Date().getTime();
method();
var end = new Date().getTime();
return end - start;
}
function time_async(method, cb)
{
var start = new Date().getTime();
method(function(){
... |
require('z/log')
var ArrayExpression = require('ast/ArrayExpression')
var AssignmentExpression = require('ast/AssignmentExpression');
var CallExpression = require('ast/CallExpression');
var ExpressionStatement = require('ast/ExpressionStatement');
var FunctionExpression = require('ast/FunctionExpression');
var Identif... |
_IMPORTED_DATASETS = {};
_IMPORTED_COMPLETE_DATASETS = {};
/**
* Module that connects to the CORGIS datasets and manages interactions
* with them. This includes loading in datasets at launch and on-the-fly.
* Note that this has no presence on screen, so it does not have a tag.
*
* @constructor
* @this {BlockPyCo... |
import React from "react";
import Script from "react-load-script";
import { graphql } from 'gatsby';
import AnchorLink from 'react-anchor-link-smooth-scroll'
import CookieConsent from "react-cookie-consent";
import { Link } from 'gatsby';
import Layout from '../layouts/index';
export default class IndexPage extends R... |
const crypto = require('crypto');
const EncryptionKeys = require('./encryptionKeys');
const algorithm = EncryptionKeys.algorithm;
const key = EncryptionKeys.key;
const { v1: uuidv1 } = require('uuid');
const fs = require('fs');
const Path = require('path');
const { promisify } = require('util');
const unlink = promisif... |
import { CBOR } from './cbor.js';
import fetch from 'node-fetch';
const API_SERVER_HOST = "https://tsu.gg:3000";
const NEWS_API_SERVER_HOST = "https://news.tsu.gg";
const BLACKLIST = [
462658994, //포칸지우티비
484584043, //폭스홀짝
474785904, //폭스족보단까얏발리
466083252, //발리폭스원투족보
468998632, //발리폭스홀짝족보
468998632, //발리폭스버... |
const path = require('path')
const { body, query, validationResult, } = require('express-validator/check')
const { sanitizeBody, } = require('express-validator/filter')
const User = require('./userModel')
const root = path.resolve(__dirname, ".")
const publicPath = path.join(root, "public")
module.exports = function(... |
"use strict"
const util = require('util')
//CLASSES
const Logger = require('../../../helper/Logger')
const DiscordLog = require('../../../helper/DiscordLog')
const Sql = require('../../../sql/modules/SqlUserNotice.js')
//ENUMS
const UserNoticeTypes = require('../../../../ENUMS/UserNoticeTypes.js')
const timeunits = [... |
'use strict';
var expect = require('chai').expect;
var dataForge = require('../index');
var fs = require('fs');
var path = require('path');
//
// Examples implemented from this blog:
//
// http://pythonhow.com/accessing-dataframe-columns-rows-and-cells
//
describe('accessing columns, rows and cells'... |
// AutoFill fields in the options page
chrome.storage.sync.get(
["user", "class", "meeting", "alias", "gmcu", "preferences", "fillAllForms"],
(result) => {
// Starts with user info
if (result.user !== undefined) {
let userOptions = result.user;
for (fieldName of Object.keys(userOptions)) {
... |
/**
* An error that is thrown when the value in a cell does
* not match the type of value that is expected.
*/
import {doTypeCheck, isOfType} from "./types";
export class RichTextParseError extends Error {
constructor(message) {
super("Unable to convert formatted text to HTML: " + message);
}
}
con... |
#!/usr/bin/env node
/* eslint no-console: off */
const aws = require('aws-sdk');
const needle = require('needle');
const path = require('path');
const { ensureDirSync } = require('fs-extra');
const { writeFileSync } = require('fs');
const debug = require('debug')('svcenv');
const CWD = process.cwd();
function setCrede... |
var Nation = Nation || {};
Nation.Country = {};
Nation.Country.init = function(stats) {
this.year = stats.year;
this.population = stats.population;
this.territory = stats.territory;
this.gold = stats.gold;
this.food = stats.food;
this.military = stats.military;
this.happiness = stats.happiness;
}
Nation.Count... |
import React, {useContext, useEffect, useState} from 'react';
import { Avatar, Paragraph, ActivityIndicator, Subheading ,Headline, Caption, IconButton, Button } from "react-native-paper"
import Swiper from "react-native-deck-swiper"
import {Image, StyleSheet, View} from 'react-native';
import { showMessage } from "reac... |
/***************************VALIDACIONES****************************/
// oninput="checkRutOficial(this)"
function checkRutOficial(rut) {
// Despejar Puntos
var valor = rut.value.replace('.','');
// Despejar Guión
valor = valor.replace('-','');
// Aislar Cuerpo y Dígito Verificador
cuerpo = val... |
'use strict';
var DOM = require('domutils');
var unique = require('array-unique');
var urlUtil = require('url');
var isAbsoluteUrl = require('is-absolute-url');
var constants = require('./constants');
var XSD__DOUBLE = constants.XSD__DOUBLE;
var XSD__INTEGER = constants.XSD__INTEGER;
var XSD__DATE = constants.XSD__DA... |
var animatingScroll = false;
$(document).ready( function() {
$(window).scroll( function() {
update_nav_pos();
updateNav();
});
update_nav_pos();
buildAnimation();
updateLines();
$(window).on('resize', function() {
setTimeout( buildAnimation, 1 );
});
//smoot... |
import "core-js/modules/es.array.reduce.js";
/* eslint no-underscore-dangle: ["error", { "allow": ["_vnode"] }] */
import { addons } from '@storybook/addons';
import { logger } from '@storybook/client-logger';
import { SourceType, SNIPPET_RENDERED } from '../../shared';
export const skipSourceRender = context => {
v... |
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import Paper from '@material-ui/core/Paper';
import TableContainer from '@material-ui/core/TableContainer';
import React, { useEffect } from 'react';
import { useDispatc... |
/**
* Module for retriving and storing app cache related stuff
* NOTE - ONLY WORKS IN RENDERER!
*
* References:
* https://github.com/typicode/lowdb
* https://github.com/mariocasciaro/object-path
*
* Possible alternative to lowdb:
* https://github.com/typicode/jsop
*/
'use strict';
import path from 'path';
im... |
var nextNumber = document.getElementById("next-number");
var display = document.getElementById("display-pattern");
var result = document.getElementById("result");
var nextButton = document.getElementById("next-button");
var difficulty = document.getElementById("difficulty");
/** The hint value shows up after the user ... |
import React from "react";
import CreateCourse from "./views/pages/CreateCourse";
import CreateQuestion from "./views/pages/CreateQuestion";
import CreateQuiz from "./views/pages/CreateQuiz";
import CreateSubject from "./views/pages/CreateSubject";
import ViewCourse from "./views/pages/ViewCourse";
import ViewCourses f... |
var Vec2 = require("../structures/Vec2");
var Triangle = require("../structures/Triangle");
var Polygon = require("../structures/Polygon");
var AABB = require("../structures/AABB")
function AreaConstraint(points, stiffness) {
if(Array.isArray(points)){
//nothing
}else{
points = Array.prototype.slice.call(... |
import React, { useState } from 'react'
import Cookies from 'js-cookie'
import Router from 'next/router'
import PropTypes from 'prop-types'
import styles from './styles'
const Header = ({ name, avatar, token }) => {
const [isActive, setIsActive] = useState('')
const logout = () => {
Cookies.remove('ctech_cr... |
// TIP:
// A predicate function is a function that returns boolean true or false
// They are useful for improving the semantics of checking for conditions.
// Examples:
// - isUserLoggedIn(user)
// - isString(s)
// - isValidZipCode(code)
// etc
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
import * as Caml_option from "../../../../../node_modules/bs-platform/lib/es6/caml_option.js";
import * as ArrayService$Wonderjs from "../../service/atom/ArrayService.js";
import * as ArrayService$WonderCommonlib from "../../../../../node_modules/wonder-commonlib/lib/es6_global/src/ArrayService.js";
import * as Mutab... |
/**
* 地图位置计算工具(将GPS坐标转换成百度地图坐标)
* 参考文档:http://bbs.lbsyun.baidu.com/forum.php?mod=viewthread&tid=10923&qq-pf-to=pcqq.group
*
* 使用示例:批量转换坐标位置
*
* var transferedData = GpsToBaiduPoints(prePoints);
* $.each(transferedData,function(index,point){
* console.log(point);
* });
*
*-------------------以下... |
// Customisable gears
var angle = 0
class Gear{
constructor(x, y, colR, colG, colB, alpha, speed, direction, angleoffset, teethshape, toothheight, toothwidth, toothoffset, teethamount, diameter){
// this.angle = angle;
this.x = x || 0;
this.y = y || 0;
this.colR = colR || 0;
this.colG... |
import { setCommaForPrice, setIncrementButton, priceToNumber, } from "./ItemDetail.js";
function changeAmountOnCart(itemsDiv) {
// Update data to obj
// let bill = JSON.parse(sessionStorage.getItem("currentBill")) as Bill;
// let billItems: BillItem[] = bill.billItems;
for (let i = 0; i < itemsDiv.lengt... |
var margin = {top: 40, right: 200, bottom: 20, left: 30},
height = 1200 - margin.top - margin.bottom,
width = 600 - margin.right - margin.left;
var svg = d3.select("#chart").append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("t... |
/* jshint camelcase: false */
/* jshint newcap: false */
var _ = require('underscore');
var async = require('async');
var HttpStatus = require('http-status-codes');
var Config = require('./service');
var common = require('../../common');
var log = common.getLogger(Config.name);
var util = require('util');
var sqldbfg... |
import { USER_ROLES } from 'dao/DBConstans';
import { DB_UNIQUE_CONSTRAINT_ERROR } from 'dao/Errors';
import { isValidId, isValidClientName, isValidEmail, isValidUserName, isValidPassword, isValidDateInput, isValidPositiveInteger, utcDate } from 'dao/utils';
import sql from 'db/postgres';
import { isValidString } from ... |
var Backbone, extractParamNamesRe, methodMap, modelUtils, qs, _, syncer;
if (global.isServer) {
qs = require('qs');
}
_ = require('underscore');
Backbone = require('backbone');
// These are lazy-required.
modelUtils = null;
server = null;
// Pull out params in path, like '/users/:id'.
extractParamNamesRe = /:([a-... |
"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a... |
import React, {Component} from 'react';
import { SafeAreaView } from 'react-navigation';
import { connect } from 'react-redux';
import { StyleSheet, Alert, View, Dimensions } from 'react-native';
import { Input, Button, Text } from 'native-base';
import { MaterialDialog } from 'react-native-material-dialog';
import { m... |
import { HTML } from 'lib/HTML';
import { Component } from 'component';
import { urlParams } from 'urlParams';
import './index.css';
class Settings extends Component {
constructor() {
super();
if (!window?.localStorage) return;
let storageTest;
try {
storageTest = window.localStorage;
const testValue ... |
import React, { useState, useEffect } from 'react';
import { Toast } from 'react-bootstrap';
import { Link } from 'react-router-dom/cjs/react-router-dom.min';
import api from '../../services/Api';
function ComiteCreate() {
const [toastShow, setToastShow] = useState(false);
const [toastMsg, setToastMsg] = useState(... |
var gulp=require('gulp'),
sass=require('gulp-sass'),
uglify=require('gulp-uglify'),
concat=require('gulp-concat'),
include=require('gulp-include'),
replace=require('gulp-replace'),
exec=require('child_process').exec,
eventStream = require('event-stream');
var data=require('./scripts/task')({
json:{
package:'packa... |
import {
AppBar,
Toolbar,
Typography,
Button,
IconButton,
Drawer,
MenuItem,
Menu
} from "@mui/material";
import makeStyles from "@mui/styles/makeStyles";
import MenuIcon from "@mui/icons-material/Menu";
import React, { useState, useEffect } from "react";
import Link from "next/link";
import Image from "next/ima... |
import PropTypes from 'prop-types'
import React from 'react'
import { MDXProvider } from '@mdx-js/tag'
import SectionContext from '~/components/api/section-context'
import Heading from '../heading'
import HR from '~/components/text/hr'
import { UL, LI } from '../text/list'
import { H1, H2, H3, H4, P } from '../text'
im... |
import React from 'react'
import {
List,
ListItem,
TextField,
Button,
Card,
Box,
Grid
} from '@material-ui/core'
import { connect } from 'react-redux'
import { push } from 'connected-react-router'
import { update, remove } from 'ramda'
import Field from './field'
import { bindActionCreators } from 'redux'... |
// --------------- Helpers that build all of the responses -----------------------
function buildSpeechletResponse(title, output, repromptText, shouldEndSession) {
return {
outputSpeech: {
type: 'SSML',
ssml: output,
},
card: {
type: 'Simple',
title: `SessionSpeechlet - ${title}`... |
// this file has all rendering templates
// in the future if it grows to be too large, we can consider splitting it into multiple files
/**
* this function wraps a @text svg element into a box with @width pixels wide
* useful for displaying long text, used in both NBA and Flare
* modified from https://bl.ocks.org/m... |
/**
* Hungarian translation
* https://github.com/gazben
* @type Object
*/
const hu = {
btn: {
about: 'Rólunk',
back: 'Vissza',
cancel: 'Mégse',
clear: 'Törlés',
copy: 'Másolás',
cut: 'Kivágás',
delete: 'Törlés',
edit: 'Szerkesztés',
forward... |
// External
const { getGeneration, getTier, GENERATIONS, TIERS } = require('@abcnews/env-utils');
const { url2cmid } = require('@abcnews/url2cmid');
// Ours
const { INFO_SOURCE_LOGOS_HTML_FRAGMENT_ID, MOCK_ELEMENT, SELECTORS } = require('../../constants');
const { $, $$, detach } = require('../utils/dom');
const { tri... |
/**
* Created by Homkai on 16/12/12.
*/
import React from 'react';
import {connect as rrConnect, Provider} from 'react-redux';
import shallowEqual from 'react-redux/lib/utils/shallowEqual';
const PATH_SEP = '//';
const DEP_STATE_DEPTH = 2;
const DEP_OWN_PROPS_DEPTH = 1;
const __depCache__ = {};
const __trueState__ ... |
'use strict'
import React from 'react'
//Polyfill for Number.isNaN on Safari
//see https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
Number.isNaN = Number.isNaN || function(value) {
return typeof value === "number" && isNaN(value);
}
function isPresent (datum) {
retu... |
$(document).ready(function() {
cargaSolicitudesDataTable();
setInterval(reloadDatatble,5000);
cargaListasCursos();
consultaProcedencias();
});
function reloadDatatble() {
var table = $('#tblSolicitudes').DataTable( {
ajax: "data.json"
} );
table.ajax.reload( null, false );
}
functi... |
import React, { Component } from 'react';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter, ListGroupItem, ListGroup} from 'reactstrap';
import { connect } from 'react-redux';
import { storeNotifications, storeNotificationsCount } from '../../actions';
import { getNotificationsCount, getNotifications } from ... |
"use strict";
var path = require("path");
var fs = require("fs");
var sizeOf = require("image-size");
var Canvas = require("canvas");
var template = require("lodash.template");
var solver = require("tight-sprite/palletizing");
// template helpers
function makeClassName(shortName, options){
if(!options.i... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Switch, Route } from 'react-router-dom';
// Import components
import Header from './components/header';
import Sidebar from './components/sidebar';
import AuthUserPopup from './components/popup-... |
var AnimationTimer = require('/assets/js/animationTimer.js');
var animationTimer = new AnimationTimer(800, AnimationTimer.makeElastic(1));
var player = new Image();
player.src = __uri('pea.png');
var sounder = require('/assets/js/module/sounder.js');
var sHited = new Howl({
urls: [__uri('/assets/sounds/coin.mp3'), ... |
module.exports = {
create: function (configuration) {
return new ItachRemote().initialize(configuration);
}
};
var net = require('net');
var ERRORCODES = {
'001': 'Invalid command. Command not found.',
'002': 'Invalid module address (does not exist).',
'003': 'Invalid connector address (do... |
/*!
* Copyright 2013 Apereo Foundation (AF) Licensed under the
* Educational Community License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... |
import React from 'react';
import PropTypes from 'prop-types';
import RowSorterWrapper from './RowSorterWrapper';
import TableBodyRow from './TableBodyRow';
import { SortDirection } from './constants';
import {
debounce,
getElementScrollInfo,
pickProps,
} from './utils';
class TableBody extends React.Component... |
/**
* PICA data processing module.
*/
// parsing and serializing PICA+ <-> PICA/JSON
export const picaFieldIdentifier = field => {
if (typeof field !== "object") return
const [tag, occ] = Array.isArray(field) ? field : [ field.tag, field.occurrence ]
const counter = Array.isArray(field) ? null : field.counte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.