text stringlengths 3.07k 16k |
|---|
import React, { useEffect, useState } from "react";
import Axios from "axios";
import Swal from "sweetalert2";
import classes from "./style.module.css";
import { Link, withRouter } from "react-router-dom";
import moment from "moment";
import Home from "../HomeWrapper";
import { FontAwesomeIcon } from "@fortawesome/reac... |
import { getAttributes } from '@carbon/icon-helpers';
import PropTypes from 'prop-types';
import React from 'react';
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { retu... |
const EventEmitter = require('events').EventEmitter
const axios = require('axios').default
const pkg = require('./package.json')
/**
* Monitors the changes feed (after calling .start()/.get()) and emits events
* - 'change' - per change
* - 'batch' - per batch of changes
* - 'seq' - per change of sequence number... |
//
// menlohttprequest.js
//
// Openpux Internet Of Things (IOT) Framework.
//
// Copyright (C) 2014,2015 Menlo Park Innovation LLC
//
// men<EMAIL>
// <EMAIL>
//
// Snapshot License
//
// This license is for a specific snapshot of a base work of
// Menlo Park Innovation LLC on a non-exclusive basis wi... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/... |
// Fetch the time
var time = new Date().getHours();
// Define hours for timeEvent
var wakeUpTime = 6; // 6am
var meal1 = 7; // 7am
var yogaTime = 8; // 8am
var meal2 = 12; // 12pm
var gymTime = 13; // 1pm
var meal3 = 15; // 3pm
var meal4 = 18; // 6pm
var meal5 = 20; // 8pm
var bedTime = 22; // 10pm
var beachTime;
var... |
import React, { useState, useEffect } from 'react';
import SetCard from "./SetCard";
import { isSet, getCards, getNeededCard, colors, shape, shading, attrs, namedAttr } from './_set-util';
export const SetPractice = () => {
const [example, setExample] = useState([])
const [guess, setGuess] = useState(null)
... |
//JS API that implements Minehut's api.
const apiURL = "https://api.minehut.com"
let loginData = JSON.parse(sessionStorage.getItem('loginData'))
if (!loginData) {
window.location = '/'
}
class File {
constructor (file) {
this.blocked = file.blocked
this.directory = file.directory
thi... |
// ************************************************
// NEXUS Hub Node Server
// <NAME> (2017)
//
// To Launch:
// npm start
// - or -
// NODE_ENV=production sudo PORT=80 node nexusNode.js
// (sudo is required to launch on port 80.)
// ************************************************
var sio = req... |
import colorString from 'color-string'
import colorsCurated from '../data/curated.json'
import colorsWeb from '../data/web.json'
import colorsWerner from '../data/werner.json'
const WHITE = colorString.get('#fff')
const BLACK = colorString.get('#000')
/**
* Describes a matched color.
*
* @typedef {Object} ColorOu... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var margin = {top: 20, right: 20, bottom: 35, left: 80},
width = 800 - margin.left - margin.right,
height = 300 - margin.top ... |
var url = require('url');
var http = require('http');
var https = require('https');
var path = require('path');
var iconv = require('iconv'); //'iconv-jp'
var CHARSET_REG = /<meta[^<>]+charset\s*=\s*(?:"([^<>"]+)"|([^<>"\s]+))[^<>]*>/;
var TITLE_REG = /<title>([^<>]*)<\/title>/;
var BASE_REG = /<base[^<>]+href\s*=\s*"... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var dialog = require('./Dialog');
var actions = require(... |
require('dotenv').config();
const { Client } = require('discord.js');//.config();
const client = new Client()
var CMD_PREFIX = '~'
var BOT_PREFIX = '||ab'
var ERROR_LOG_CHANNEL_ID = '775936990419222539'
var AUREBESH_TRANSLATION_KEY = 'https://ootinicast.com/aurebesh/Aurebesh.png'
// On ready
client.on('ready', onBot... |
/////////////////////////////////////////////////////////////////////////////////
const asyncHooks = require('async_hooks')
const tasks = new Map()
const taskGroups = new Map()
let taskTracingActive = false
let rootExecutionId
let awsRequestId
function _hashCode(s) {
let h
for (let i = 0; i < s.length; i++) ... |
// Modules required
const routes = require('express').Router();
//const { response } = require('express');
//const { update } = require('lodash');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const { check, validationResult } = require('express-validator');
// Assigns Profile model ... |
import asyncComponent from "./lib/asyncComponent";
//start:基础页面
export const Index = asyncComponent("Index", () => import("./entry/Index"));
export const Login = asyncComponent("Login", () => import("./entry/Login"));
export const Forgot = asyncComponent("Forgot", () => import("./entry/Forgot"));
export const OncePass... |
'use strict'
const axios = require('axios')
const bodyParser = require('body-parser')
const express = require('express')
const QR = require('qrcode')
const uuid4 = require('uuid4')
const PORT = 4000
const verityUrl = '<< PUT VERITY APPLICATION SERVER URL HERE >>' // address of Verity Application Server
const domainDi... |
var self = this;
var Discord = require('discord.js'),
fs = require('fs');
var logChannelName = 'member-log';
var contestChannelName = 'contest-entry-log'
var welcomeTextPath = './plugins/members/welcome.md';
var rulesTextPath = './plugins/members/rules.md';
var welcomeText;
self.client = null;
self.config = null... |
import Hyperbee from 'hyperbee'
import c from 'compact-encoding'
import Hyperblobs from 'hyperblobs'
import b4a from 'b4a'
import Debug from 'debug'
import EventEmitter from 'events'
import safetyCatch from 'safety-catch'
import { ObjectMetadata } from './encoding.js'
import { collect, hash } from './utils.js'
const ... |
// A linked trade, one with signatures connecting the two confidential transfers to each other
'use strict'
const { Map, List } = require('immutable')
const { assert } = require('chai')
const { padLeft } = require('web3-utils')
const { departTransform } = require('demo-depart')
const { makeMapType, runTransforms,... |
import React, { Component } from 'react';
import './App.css';
import update from 'immutability-helper';
import NavbarItem from './components/navbarItem';
import ContentItem from './components/contentItem';
import UniqueId from 'react-html-id';
class App extends Component {
constructor(props) {
super(props);
... |
'use strict';
describe('inspectedApp', function() {
var inspectedApp, rootScope, port;
beforeEach(function() {
module('batarang.inspected-app')
window.chrome = createMockChrome();
inject(function(_inspectedApp_, _$rootScope_) {
inspectedApp = _inspectedApp_;
rootScope = _$rootScope_;
... |
/**
* totalOccurrencesOfK.js - A program to find total occurences of K in a sorted array.
* @author - <NAME>
* @version - 1.0.0
* @description -
*
* Example -
* INPUT:
* array = [1, 1, 1, 1, 1, 5, 9, 11, 13, 19, 21, 29] | target = 1
* OUTPUT:
*
* Al... |
const NEIGHBOR = [ [ 1,4,5 ] ,
[0,2,4,5,6],
[1,3,5,6,7],
[2,6,7],
[0,1,5,8,9],
[0,1,2,4,6,8,9,10],
[1,2,3,5,7,9,10,11],
[2,3,6,10,11],
[4,5,9,12,13],
... |
export const generateRandomQuestion = () => {
const question = {
personas: [],
questionType: '',
showScores: true,
colors: [
'text-teal-300',
'text-orange-300',
'text-yellow-300',
'text-purple-300',
],
groupNames: ['Frauen', 'Männer'],
}
const noOfPersonas = 10 // M... |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
var express = require('express');
var fs = require('fs');
var moment = require('moment');
var multiparty = require('multiparty');
var CosSdk = require('cos-nodejs-sdk-v5');
var _ = require('underscore')
var route = express.Router();
var loginCheckMiddleware = require('../util').loginCheckMiddleware;
var mysql = requir... |
/*
* Copyright (c) 2016 <NAME> <<EMAIL>>
* All rights reserved.
*
* 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,... |
import {createAction, handleActions} from 'redux-actions';
// import {logInfo, logError, logFail} from './messagePanel';
const cctvFromConfig = require('../lib/getCCTVList');
const {getCombinedConfig} = require('../lib/getConfig');
const sources = cctvFromConfig();
const config = getCombinedConfig({storeName:'optionSto... |
document.getElementById("input-loan").addEventListener("submit", calculate);
function calculate(e) {
// Input Fields
const cost = document.getElementById("purchasePrice").value;
const down = document.getElementById("downPayment").value;
const interest = document.getElementById("interestRate").val... |
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
import { useState, useRef, useEffect, useCallback } from 'react';
import { mergeRefs, callAllHandlers } from '../utils/index.esm.js';
import '../hooks/use-controllable.esm.js';
import '../hooks/use-previous.esm.js';
import { use... |
import React ,{useState, useEffect} from "react";
import { Text ,View , StyleSheet ,SafeAreaView, ScrollView, Dimensions ,Pressable , TouchableOpacity} from 'react-native'
import { Card , Avatar ,Button ,Title, FAB , ActivityIndicator} from 'react-native-paper';
import Icon from 'react-native-vector-icons/FontAwesome';... |
function kvHeaders(headers, parent) {
var kvpairs = "";
for (var h in headers) {
kvpairs += " " + parent + "." + h + "=";
if ( headers[h].indexOf(" ") == -1 ) {
kvpairs += headers[h];
} else {
kvpairs += "'" + headers[h] + "'";
}
}
return kvpairs;
}
f... |
import React, { Component } from 'react';
import { observer } from 'mobx-react';
// 用于追踪 Mobx 引起的渲染,非性能调优时可注释
// import { trace } from 'mobx';
import {
Page, Header, Content, stores, axios,
} from 'choerodon-front-boot';
import {
Button, Icon, Select, DatePicker, Modal, Input, Form, Tooltip,
} from 'choerodon-ui';
... |
import {registerBidder} from '../src/adapters/bidderFactory.js';
import * as utils from '../src/utils.js';
import {VIDEO} from '../src/mediaTypes.js';
import {config} from '../src/config.js';
const SUPPORTED_AD_TYPES = [VIDEO];
const BIDDER_CODE = 'ironsource';
const BIDDER_VERSION = '4.0.0';
const TTL = 360;
const SE... |
import React, {
Fragment,
useState,
useEffect,
useReducer,
useContext
} from 'react';
import { Link, withRouter } from 'react-router-dom';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.min.css';
import { store } from '../context/store';
import { isAuthenti... |
import Direction4D from "../linalng/4D/direction.js";
import Position4D from "../linalng/4D/position.js";
import Position3D from "../linalng/3D/position.js";
import Vertex from "./vertex.js";
import Color3D, { rgb } from "../linalng/3D/color.js";
const triangleLine1 = new Direction4D();
const triangleLine2 = new Direct... |
import * as tslib_1 from "tslib";
import * as React from 'react';
import { PureComponent } from 'react';
import * as ReactDOM from 'react-dom';
import { Popup } from '@findable/editor-common';
import EmojiIcon from '@findable/icon/glyph/editor/emoji';
import { EmojiPicker as AkEmojiPicker, } from '@findable/emoji';
imp... |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the Commercial License found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { useContext } from 'react';
import GridContext from '@inovua/reactdatagrid-community/context';
import join from '@inovua/reactdata... |
import React, { useState } from 'react';
import pt from 'prop-types';
// import styles from './Form.module.scss';
import Boundaries from '../../atoms/Boundaries';
import FormProvider from './context/FormProvider';
import ModuleError from '../../modules/ModuleError';
import { actionModules, dataModules } from '../../m... |
import React from 'react';
import { StyleSheet, Dimensions, ScrollView, ImageBackground, View, TouchableOpacity } from 'react-native';
import { Block, theme, Text } from 'galio-framework';
import Calendar from '../components/Calendar';
import Popup from '../components/Popup';
import Loader from '../components/Loader';
... |
const crypto = require(`crypto`);
const axios = require(`axios`);
const dict = arr => Object.assign(...arr.map(([k, v]) => ({ [`size_${k}`]: v })));
// Transform the sizes and dimensions properties (these have numeral keys returned by the Behance API)
const transformImage = imageObject => ({
...imageObject,
sizes... |
const { BU } = require('base-util-jh');
const _ = require('lodash');
const BaseModel = require('../BaseModel');
class Model extends BaseModel {
/**
*
* @param {BaseModel} baseModel
*/
constructor(baseModel) {
super();
this.dialing = this.protocolConverter.makeMsg2Buffer(
_.get(baseModel, 'p... |
const mkdir = require('fs.mkdirp');
class Node extends require('../base.js') {
constructor(node, yarn, python) {
super();
this.author = 'anzerr';
this.version = node.match(/^(\d+)\./)[1];
this.path = `docker/${this.version}`;
this.dockerName = 'Dockerfile';
this.env = {
NODE_VERSION: node,
YARN_VE... |
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const { Contract } = require('fabric-contract-api');
class BlomyFood extends Contract {
// 1. 부식 부대 initialization
// 부대명, 보유 음식
async initLedger(ctx) {
console.info('============= START : ... |
'use strict';
var expander = require('../lib/expander');
var data = {
key: 'value',
keyRef: '<%= key %>',
recursiveKeyRef: '<%= keyRef %>',
arrayRef: ['test', '<%= key %>'],
recursiveArrayRef: ['test', '<%= arrayRef %>'],
obj: {
keyRef: '<%= key %>',
recursiveKeyRef: '<%= keyRef %>',
arrayRef:... |
import React from 'react';
import cn from 'classnames';
import styles from './People.css';
import { Icon, Dropdown, Option } from 'coral-ui';
import EmptyCard from '../../../components/EmptyCard';
import t from 'coral-framework/services/i18n';
import LoadMore from '../../../components/LoadMore';
import PropTypes from '... |
/** Connect Four
*
* Player 1 and 2 alternate turns. On each turn, a piece is dropped down a
* column until a player gets four-in-a-row (horiz, vert, or diag) or until
* board fills (tie)
*/
let WIDTH = parseInt(document.querySelector('#width').value);
let HEIGHT = parseInt(document.querySelector('#height').value)... |
'use strict';
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import {
ViroARScene,
ViroText,
ViroConstants,
Viro3DObject,
ViroAmbientLight,
ViroNode,
ViroDirectionalLight,
ViroImage,
ViroQuad,
ViroBox,
} from '@viro-community/react-viro';
class SceneAR extends ... |
class Storage {
constructor(store) {
this.storageProxy = store
this.defaultLiftTime = 30 * 24 * 60 * 60 * 1000
this.keyCache = 'SE_OK_PORTAL_KEY_TIMEOUT_MAP'
}
init() {
if (!this.storageProxy) {
throw new Error('not override storageProxy property')
}
}
/*
新增localstorage
数据格... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import AceEditor from 'react-ace';
import ViewHeader from '../TableBrowseRows/ViewHeader';
import {
activateCommentEdit,
updateCommentInput,
saveTableCommentSql,
} from './ModifyActions';
import {
fetchViewDefinition,
deleteViewSql,... |
"use strict";
import { src, dest, watch, parallel, series } from "gulp";
import browsersync from "browser-sync";
import autoprefixer from "gulp-autoprefixer";
import babel from "gulp-babel";
import uglify from "gulp-uglify";
import concat from "gulp-concat";
import sass from "gulp-sass";
import mincss from "gulp-clean... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterab... |
import React, { createContext, useContext, useReducer, useMemo, useCallback, useState, useEffect } from 'react'
import { timeframeOptions, SUPPORTED_LIST_URLS__NO_ENS } from '../constants'
import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
import getTokenList from '../utils/tokenLists'
import { healthCli... |
const moment = require('moment')
const formatters = require('../../lib/formatters')
const helper = require('./helper')
exports.options = {
logoURL: 'data:image/jpg;base64,' + helper.encodeBase64('caixa.jpg'),
codigo: '104',
layout: 'layout-caixasigcb'
}
exports.dvBarra = function (barra) {
const dv = formatte... |
import React, { useState, useMemo, useEffect, useCallback } from 'react';
import { useNavigation } from 'react-navi';
import api from '../api';
import Layout from '../components/layout';
import Card from '../components/card';
import Table from '../components/table';
import { Row, Text, Input, Icon, Badge } from '../co... |
/** Class representing a point. */
import React from "react"
import { Layout, Button, Tabs, Spin } from 'antd';
import BusinessPicture from '../components/business_profile/businessPicture';
import Timeline from '../components/business_profile/Timeline';
import EditProfileForm from '../components/business_profile/EditPr... |
import React, { Component } from 'react';
import ArticleInfo from '@/pages/articleInfo';
class VideoInfo extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<div>
<ArticleInfo parentConfig={{atid: '14',types:'5' ,headerTitle:'技术视频'}} hasVideo /... |
// Form basic helper
exports.STYLE_HINT = 'hint';
exports.STYLE_LABEL = 'label';
exports.TYPE_DATE = 'date';
exports.TYPE_EMAIL = 'email';
exports.TYPE_NUMBER = 'number';
exports.TYPE_PASSWORD = 'password';
exports.TYPE_PHONE = 'phone';
exports.TYPE_PICKER = 'picker';
exports.TYPE_TEXT = 'text';
exports.TYPE_SUBMIT = ... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { getTracks, getAccessToken, getPlaylistInfo } from '../store/playlists'
import Playbar from './playbar'
const getTime = (ms) => {
const minutes = Math.floor(ms / 60000)
const seconds = ((ms % 6... |
/**
* @package hubzero-cms
* @copyright Copyright 2005-2019 HUBzero Foundation, LLC.
* @license http://opensource.org/licenses/MIT MIT
*/
$(function(){
$('#add-filter').on('click', function(e){
e.preventDefault();
var filterName = $('[name="add-filter"]').val();
var filterType = $('select[name="filte... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import { A, B, C, D, E, F, G, H, I, J, K, L } from "./forwardRefs";
import { action_8 } from "../actionCreators";
import "../style.css";
class Content extends Component {
constructor(props) {
... |
/*
Copyright 2019 The Tekton Authors
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, software... |
const { MessageEmbed } = require('discord.js')
var config = require('../config.json')
var ms = require('ms')
module.exports = {
execute: async (client, message, args) => {
var isRole = true
if(isNaN(parseInt(client.cache.guilds[message.guild.id].settings.canHostGiveaways))){
isRole = false
}
... |
'use strict';
var Backbone = require('backbone');
var ioClient = require('../ros-events');
/**
* View template.
*/
var qrAlertTemplate = require('../templates/alert.qr.hbs');
/**
* Alert Model
*/
var Alert = require('../models/alert');
var AlertView = Backbone.View.extend({
el: '#alert-feed',
qrTemplat... |
const URLCovid = "https://covid-api.mmediagroup.fr/v1";
const URLCountry = "https://raw.githubusercontent.com/M-Media-Group/country-json/master/src/countries-master.json";
const nodeShowCountries = document.getElementById("selectCountry");
//const nodeTransition = document.getElementById("transition");
const nodeButton... |
const path = require('path');
const fs = require('fs');
const moment = require('moment');
const mysql = require('promise-mysql');
const express = require('express');
const wrap = require('co-express');
const morgan = require('morgan');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-par... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions o... |
import React from 'react';
import validator from 'validator';
import { Form, FormGroup, FormControl, ControlLabel, Button, Alert } from 'react-bootstrap';
// generate uuid, reference: https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript#answer-2117523
function uuidv4() {
return 'xxxxxxxx-xxxx... |
var x = 3; y = 2;
var result = Math.abs(x / y);
console.log(result.toFixed(14));
//if else if else
var mid = 25;
var high = 50;
var low = 1;
var current = 25;
var found = -1;
if (current < mid) {
mid = (current - low) / 2;
} else if (current > mid) {
mid = (current + high) / 2;
} else {
found = current;
}
... |
/* Bm.js */
'use strict'
var TxMEx = require('./TxMEx')
var TMNet = require('./TMNet')
const TMutils = require('./TMutils');
const isValidAddr = TMutils.isValidAddr
const hexToAscii = TMutils.hexToAscii
/* Constructor */
function TM(tms, options){
if(!tms) throw "ERR: TM requires a Bitcore Node instance"
//TODO... |
'use strict';
/*
* Created with @iobroker/create-adapter v1.17.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require('@iobroker/adapter-core');
// Load your modules here, e.g.:
const Co2Monitor = require('./lib/co2-monitor');
const dg... |
"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(gen... |
import React from "react";
import "../EmployeeTable/style.css"
import API from "../API"
import Search from "../Search"
// const employees = [
// {
// id: 1,
// name: "dave",
// image: "",
// phone: "123-456-789",
// email: "<EMAIL>",
// dob: "01/01/1989"
// },
... |
/* eslint-disable no-unused-vars */
const moduleStatus = require('../../parameters/module-status');
const logger = require('winston');
class Service {
constructor(options) {
this.options = options || {};
}
find(id, params) {
return Promise.resolve([]);
}
get(id, params) {
return Promise.resolv... |
import './Settings.css'
import React, { useEffect, useState } from 'react';
import PageLoading from '../PageLoading/PageLoading';
import moment from 'moment';
import "moment/min/locales";
import Datetime from 'react-datetime';
import ImgDropAndCrop from '../ImgDropAndCrop/ImgDropAndCrop';
import MyGoogleMap from '../Go... |
import React, { Component, PropTypes } from "react";
import {
View,
TouchableOpacity,
Text,
StyleSheet,
FlatList,
ActivityIndicator
} from "react-native";
import { NavigationStyles } from "@expo/ex-navigation";
import colors from "kolors";
import ElevatedView from "fiber-react-native-elevated-view";
import ... |
/**Id de la feria que esta cargada en el sistema */
id_feria_activo = '';
//Cuando el documento esta listo
$(document).ready(function () {
/**Cargar el preloader y luego el inicio */
loading();
/**Cuando el usuario da click a a */
$(document).on('click', '.navbar-brand', function (e) {
e.preve... |
$(document).ready(function () {
var requestImage = document.getElementById("requestImage");
var requestForm = document.getElementById("requestForm");
requestImage.style.height=requestForm.style.height + "px";
//CODE DU MENU MODAL
$(".menuModalIcon").click(function() {
$(".couverture-du-men... |
var pwalogo = null;
var fontColor = '#3D3D3D';
var wColor = '#706CF5';
document.addEventListener('DOMContentLoaded', function() {
//generation button
var btnGen = document.getElementById('btnGenerate');
//W color selection
document.getElementById('colorPicker').addEventListener("change", watchColorPic... |
/*
* grunt-toggl
* https://github.com/davidosomething/grunt-toggl
*
* Copyright (c) 2014 <NAME>
* Licensed under the MIT license.
*/
'use strict';
var _ = require('lodash');
var print = require('node-print');
var request = require('request');
module.exports = function(grunt) {
var _this;
var done;
... |
const SCORE = {
undef_risk: 0,
no_risk: 1,
mid_risk: 2,
high_risk: 3,
};
const COLORS = {
0: 'neutral',
1: 'success',
2: 'warning',
3: 'danger',
};
const scores = {
use: {
use_1: {
use_1_1: SCORE.no_risk,
use_1_2: SCORE.high_risk,
use_1_3: SCORE.mid_risk,
use_1_4: SCORE.mid_risk,
use_1_5: SC... |
"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);
});
... |
// 图片等内容是动态加载的,所以监听 dom 的变化并随时重新生成复制按钮
function copyElObserver(){
let observer = new MutationObserver(addCopyBtn);
let target = document.getElementById('renderTargetContent').children[0];
if(!target){
window.setTimeout(copyElObserver,500);
return;
}
observer.observe(target, {... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import Paper from '@material-ui/core/Paper';
import FormControl from '@material-ui/core/FormControl';
import TextField from '@material-ui/core/TextField';
import ... |
import React from 'react';
import { useDispatch } from 'react-redux';
import fileConstants from '../../../constants/fileConstants';
const Toast = ({ item }) => {
//const [text, setText] = useState('');
const dispatch = useDispatch();
let message = '';
let type = 'INTIAL';
if (
item.type === fileConstants... |
var Ajax = {
// 基础选项
options : {
method : "get",
url : "",
params : {},
type : 'text', // 返回的内容的类型,text,xml,json
callback : function() {}
},
// 创建XMLHttpRequest对象
createRequest : function() {
var xmlhttp;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp ... |
import {getLanguageName} from "../../lib/data/languages";
import {getCachedGoogleTranslation} from "./../googleTranslationCache";
import {downloadLanguageFile} from "./../helpers";
import {triggerGoogleTranslationIfNeeded} from "../helpers";
import {session} from "../session"
import {storage} from "../storage"
import {... |
"use strict";
const clone = require("clone");
const child_process = require("child_process");
const stringifyToStream = require("../support/stringifyToStream");
const which = require("which");
const fs = require("fs-extra");
const path = require("path");
function cppm(cp) {
return new Promise(function(reso... |
// We expect alias[0] to be used for the ADF attribute, see ED-2813
export var DEFAULT_LANGUAGES = [
{ name: 'ABAP', alias: ['abap'] },
{ name: 'ActionScript', alias: ['actionscript', 'actionscript3', 'as'] },
{ name: 'Ada', alias: ['ada', 'ada95', 'ada2005'] },
{ name: 'AppleScript', alias: ['applescri... |
/**
* Return a key that can be used for UI control and the zipPolygons hash
*
* @param group the index into the group array
* @param zipcode the zipcode itself
*/
function mkKey(group, zipcode) {
return group + '_' + zipcode;
}
/**
* Split a UI control key into a group and zipcode pair
*/
function fromKey(... |
const axios = require("axios");
const fs = require("fs");
const path = require("path");
const commander = require("commander");
const packageJson = require("./package.json");
const TolgeeUtils = require("./lib/tolgee-utils.js");
require("./lib/object-extension.js");
var default_input_dir = "translations";
var default_... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.customMap = exports.createComponent = exports.SliderField = exports.NumberField = exports.SwitchField = exports.TextAreaField = exports.TextField = exports.RadioField = exports.CheckboxField = exports.SelectField = exports.LazyTextF... |
'use strict';
const { expect } = require('@hapi/code');
const {
experiment, test, beforeEach, afterEach
} = exports.lab = require('@hapi/lab').script();
const sandbox = require('sinon').createSandbox();
const uuid = require('uuid/v4');
const notifyConnector =
require('../../../../src/modules/batch-notifications/... |
/*
* engine/route
* @module Nasa.Engine
*
* Defines the methods for parsing and handle routes
* in houston's flight schedule.
*/
import dbug from './dbug';
import location from './location';
/*
* PRIVATE
******************************************************************/
var _routeBoom = []; // Holds a... |
import {parseNumber} from 'libphonenumber-js'
import _ from 'lodash'
import RCLOGOSVG from './rc-logo'
import {formatNumber} from 'libphonenumber-js'
import {callIconSvg, smsIconSvg, rcIconSvg} from './rc-icons'
export const RCBTNCLS = 'call-with-ringccentral-btn'
export const RCBTNCLS2 = 'call-with-rc-btn'
export con... |
/*
----------------------------------------------------------------------------
| ripple-admin: Ripple User Administration MicroService |
| |
| Copyright (c) 2018 Ripple Foundation Community Interest Company |
| A... |
const path = require('path')
const fs = require('fs')
const os = require('os')
const extend = require('extend')
const { readFileSync } = fs
const express = require('express')
const { HOST, PORT } = require('./src/constants')
const helmet = require('helmet')
const cors = require('cors')
const bodyParser = require('body... |
import log from './logger';
import getAtom from './atoms';
import _ from 'lodash';
import assert from 'assert';
import B from 'bluebird';
import { util } from 'appium-support';
const WEB_CONTENT_BUNDLE_ID = 'com.apple.WebKit.WebContent';
const MIN_PLATFORM_FOR_TARGET_BASED = '12.2';
/*
* Takes a dictionary from the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.