text
stringlengths
3.07k
16k
/** * Copyright 2017 Google Inc. All rights reserved. * Modifications copyright (c) Microsoft Corporation. * * 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.or...
/* * Copyright © 2016-2017 PT VIO Intelligence 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 appli...
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0; const AdapterFactory = require('./factory'); const config = require('config'); const Redis = require('redis'); const logger = require('../log'); class MagentoImporter { constructor (options = {}) { this.options = Object.assign({ page: 1, ...
const yargs = require('yargs/yargs'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); const webpack = require('webpack'); const { merge } = require('webpack-merge'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const cssClassUnique = require('./util...
import music from '../../utils/music' const sources = [] const sourceList = {} const sourceMaxPage = {} for (const source of music.sources) { const musicSearch = music[source.id].musicSearch if (!musicSearch) continue sources.push(source) sourceList[source.id] = { page: 1, allPage: 0, limit: 30, ...
import React from "react"; import tw, { styled } from "twin.macro"; import { css } from "styled-components/macro"; //eslint-disable-line import { PrimaryButton as PrimaryButtonBase } from "components/misc/Buttons.js"; import LogoImage from "images/logo.svg"; import { ReactComponent as FacebookIcon } from "images/faceb...
import { useState, useRef } from "react"; import { createInput } from "./input"; import { runValidators, validateInputEvents } from "./validators"; export const defaultFormProps = { autoComplete: "on" }; const getSchemaField = (validationSchema, field) => validationSchema.fields ? validationSchema.fields[field] :...
const expect = require('chai').expect; const Enforcer = require('../index'); const path = require('path'); const resourcesPath = path.resolve(__dirname, '..', 'test-resources'); describe('documented issues fixes', () => { it('issues 39 - cyclic reference toObject', async () => { const openApiDocPath = pa...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. GEN('#include "content/public/test/browser_test.h"'); /** * TestFixture for SUID Sandbox testing. * @extends {testing.Test} * @constructor */ fun...
/* * Copyright 2017 <NAME> <<EMAIL>> * * 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 ...
"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...
var flagi = false; var v = gid("usersection"); var Buser = gid("Buser"); var Lang = gid("Lang"); var is_admin = function(){return (Buser.value == "true" ? true : false) } var is_rus = function(){return (Lang.value == "true" ? true : false)} function get_more_users(el){ if(flagi){ do_update_query(el); console.log('fla...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.querySelectorAll = querySelectorAll; exports.querySelector = querySelector; exports.isMatched = isMatched; exports.compile = compile; var _slice...
import mix from '../../utils/mix/index.js'; import triggerMethodOn from '../../utils/trigger-method-on/index.js'; import camelCase from '../../utils/camel-case/index.js'; import result from '../../utils/better-result/index.js'; import register from './register.js'; import { isPromisable, race, asArray, valueToPromise ...
'use strict' const http = require('http') const url = require('url') const lib = require('http-helper-functions') const pLib = require('permissions-helper-functions') const db = require('./customers-db') var initialized = false const CUST = '/cust-' function createAdminTeamFor(serverReq, serverRes, subject, initialMe...
/** * GraphQL NEO4J PRE PROCESSOR - v0.0.1 * FILE REVERSE ENGINEERS AND GENERATES GRAPHQL SCHEMAS AND RESOLVERS FROM NEO4J DATABASE */ import { neo4jgraphql } from '../../src/index'; import { v1 as neo4j } from 'neo4j-driver'; var fs = require('fs'); const driver = neo4j.driver(process.env.NEO4J_URI || "bolt://<NE...
import React, { Component, Fragment } from 'react'; import { Link } from 'dva/router'; import { connect } from 'dva'; import router from 'umi/router'; import styles from '../index.less' import { Card, Table, Divider, Tag, Button, Row, Col, Input, Form, Icon, Tree ,Spin} from 'antd'; function hasErrors(fieldsError) { ...
const { CaseExternalIncomplete, } = require('../entities/cases/CaseExternalIncomplete'); const { isAuthorized, ROLE_PERMISSIONS, } = require('../../authorization/authorizationClientService'); const { Case } = require('../entities/cases/Case'); const { DocketRecord } = require('../entities/DocketRecord'); const { ...
import _throttle from 'lodash-es/throttle'; import { select as d3_select } from 'd3-selection'; import { modeBrowse } from '../modes'; import { svgPointTransform } from './index'; import { services } from '../services'; var _keepRightEnabled = false; var _keepRightService; export function svgKeepRight(projection, c...
module.exports = physical var aabb = require('aabb-3d') , THREE = require('three') function physical(avatar, collidables, dimensions, terminal) { return new Physical(avatar, collidables, dimensions, terminal) } function Physical(avatar, collidables, dimensions, terminal) { this.avatar = avatar this.terminal ...
import React from 'react' import styled from 'styled-components' import { sectionSpace, bgColor, gutter, scrollOffset, baseTransition, } from '../vars' import Grid from './Grid' import get from 'lodash/get' import scrollMonitor from 'scrollmonitor' import Image from 'gatsby-image' import { renderBody } from '...
/* |------------------------------------------------------------------------------------------------------- | Global Formatting |------------------------------------------------------------------------------------------------------- */ // $('.money').mask('#.##0,00', {reverse: true}); // $('.cpf').mask('000.000.000-00...
const config = require('../config.json'); const request = require('request'); const Discord = require('discord.js'); module.exports = { name: 'topplay', description: 'Display your top osu! play. (WIP)', args: true, needsArgs: true, usage: '<osu username>', execute(message, args) { ...
import React, { forwardRef, useRef, useImperativeHandle, useEffect, useCallback } from 'react'; import PropTypes from 'prop-types'; import { useLayoutEffect, useResizeObserver } from '@react-aria/utils'; import { useColumnStyles, useField, useLabelHeight, usePropWarning } from '../../hooks'; import statuses from '../.....
import React, { Component } from 'react' import { Row,Col,Icon,Button } from 'antd'; import 'antd/dist/antd.css' import './index.scss' import { Link,withRouter } from 'react-router-dom' import { formatMonthDate, startPlaySong } from '../common/tools'; import SongList from './songList' import Comment from '../common/com...
// Intentionally using isNaN rather than Number.isNaN /* eslint-disable no-restricted-globals */ import Papa from 'papaparse'; import NewTableColumnTypes from './NewTableColumnTypes'; // Initially column types start al unknown const UNKNOWN = 'unknown'; const MAX_INT = 2147483647; const MIN_INT = -2147483648; const ...
//declaracao var idade; //==================== OPERADORES de ATRIBUICAO //atribuicao 1 idade = 18; console.info( idade ); //atribuicao 2 idade = 20; console.info( idade ); idade += 5; //idade = idade + 5; console.info( idade ); idade -= 5; //idade = idade - 5; console.info( idade ); idade *= 5; //idade = idade * 5...
import React, { PureComponent } from 'react' import { connect } from 'dva' import Result from '../../components/Result' import { Row, Col, Card, Form, Input, Select, Icon, Button, Dropdown, Menu, InputNumber, DatePicker, Modal, message, } from 'antd' import GlobalComponents from '../../cus...
import React, { Component } from "react"; import styled, { css } from "styled-components"; import { connect } from "react-redux"; import PropTypes from "prop-types"; import uuid from "uuid/v4"; import { Formik } from "formik"; import ContactsActions from "../redux/contacts/contactsActions"; import Notification from "./...
import { FX } from "./FX.js" import { CustomShaderMaterial } from "../../materials/CustomShaderMaterial.js"; import { _Math } from "../../math/Math.js"; import { Vector3 } from "../../math/Vector3.js"; import { RenderPass } from "./../RenderPass.js"; const predef_width = document.body.clientWidth; const predef_height...
/** *This method redirect the browser to edit role page. *The functionality was moved to here for URI ENCODING need to be done. */ var loadRoleBasedActionURL = function (action, rolename) { var href = $("#ast-container").data("app-context") + "roles/" + action + "?rolename=" + rolename; $(location).attr('hre...
/** * Implementation of server component. * Init and start server instance. */ var logger = require('pomelo-logger').getLogger(__filename); var pathUtil = require('../util/pathUtil'); var Loader = require('pomelo-loader'); var FilterService = require('../common/service/filterService'); var HandlerService = require('...
// // This is main file containing code implementing the Express server and functionality for the Express echo bot. // https://glitch.com/edit/#!/messenger-bot?path=bot.js:1:0 'use strict'; const express = require('express'); var helpers = require('express-helpers'); const bodyParser = require('body-parser'); const req...
var assert = require('assert'); var rimraf = require("rimraf"); // for file clean up var generator = require('../lib/generator'); var utils = require('../lib/utils'); const path = require('path'); const test_dirname = 'test_data_generator' const test_path = path.join(__dirname, test_dirname) const test_workspace_pat...
/** * * funplIDE.js * <P>Java Script defining the IDE of a FunPL (Functional/Logic Programming Language).</P> * <P> requires base64.js, kompari.js, lifya.js, and jxon.js (jxon_wrap.js). </P> * <P>A numtseng module <A HREF="https://numtseng.com/modules/funplIDE.js">https://numtseng.com/modules/funplIDE.js</A> * * Copyr...
'use strict'; // Archimedes' spiral equation is r = a * theta + b // logarithmic spiral equation is r = a * e^(b*theta) //generate Archimedes' spiral points function getArchimedesSpiralPoints(numberOfPoints, multiplier=1, offset=0){ let xCoords = []; let yCoords = []; let points = []; for( let i=0; i < number...
// Importações. import { useState } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types' // Utilidades. import { makeStyles } from '@material-ui/core/styles'; // Actions. import { clearPets } from '../redux/actions'; // Components. import { useTheme, useMediaQuery, Gri...
const colors = { bordeaux: '#8a0c36', reddark: '#900', red: '#bd1118', pink: '#b31e61', rose: '#dc7095', orangedark: '#e96c0d', orange: '#e5ad02', yellow: '#fae500', yellowlight: '#ff0', sand: '#cec4a6', greendark: '#2f7820', green: '#029e5d', greenlight: '#93b923', lime: '#cbfe33', purple...
'use strict'; const table = 'files'; const storageSubPath = 'storage'; const defaultPermissions = '0777'; const defaultMetadata = { cacheControl: 'public, max-age=31536000' }; const log = (content) => { return utilitas.modLog(content, __filename); }; const newId = () => { return uoid.create({ file: __filename }); }; ...
import delve from "dlv"; import { useState } from "react"; import { useQuery } from "react-query"; import Layout from "../../components/layout"; import NoResults from "../../components/no-results"; import RestaurantCard from "../../components/pages/restaurant/RestaurantCard"; import BlockManager from "../../components/...
function render(context, state){ // clear canvas context.clearRect( state.table.x, state.table.y, state.table.width, state.table.height ); // pong table context.fillStyle = "#000"; context.fillRect( state.table.x, state.table.y, state.table.width, state.table.height ); // scores context.fill...
'use strict'; const { app } = require('electron'); const EventEmitter = require('events'); const { spawn } = require('child_process'); const { resolve } = require('path'); const fs = require('fs'); const log = require('electron-log'); const springPlatform = require('./spring_platform'); const { config } = require('....
import React from "react"; import axios from "axios"; import WebSocketInstance from "../websocket"; import { Input, Row, Popover, Radio, Button, Divider } from "antd"; import { SendOutlined, FlagFilled } from "@ant-design/icons"; import "../assets/MessageList.css"; import { connect } from "react-redux"; class ChatUI e...
import React, { useRef, useState } from "react" import PropTypes from "prop-types" import { graphql, useStaticQuery, Link } from "gatsby" import Helmet from "react-helmet" import { useWnResize } from "../hooks" import Slide from "./Slide" import styles from "./slideshow.css" const Slideshow = ({ images, children }) =>...
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import queryString from 'query-string'; import RegistrationService from '../../services/registration.service'; import { dollar, BiPencil } from '../../utils/utilities'; import { Card, ...
/*! * Copyright 2017 Google Inc. 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 appli...
// Grafico para unique chart - <NAME> // Configurações basicas do grafico var outerWidth = 960; var outerHeight = 500; var margin = { left: 300, top: 40, right: 200, bottom: 90 }; var barPadding = 0.2; var barPaddingOuter = 0.1; var xColumn = "enemies"; var yColumn = "country"; var xAxisLabelText = "Unique enemies";...
import {Trans, Plural} from '@lingui/react' import {StatusLink, ActionLink} from 'components/ui/DbLink' import {getDataBy} from 'data' import ACTIONS from 'data/ACTIONS' import STATUSES from 'data/STATUSES' import Module from 'parser/core/Module' import {SimpleStatistic} from 'parser/core/modules/Statistics' import {Ti...
const t = require('@babel/types'); const traverse = require('@babel/traverse').default; const { getStorySubject, vueTemplateCompilerTypes } = require('../../metadata/utils/vue/story-subject'); const { INJECTED_SOURCE_PLACEHOLDER } = require('../../addons/constants'); const { getAvailableKnobsFunctions, isKnownKnobMetho...
import * as React from "react"; import * as Actions from "~/common/actions"; import * as Constants from "~/common/constants"; import * as System from "~/components/system"; import * as Strings from "~/common/strings"; import * as Validations from "~/common/validations"; import * as Events from "~/common/custom-events";...
import { Platform, NativeEventEmitter, DeviceEventEmitter, NativeModules } from 'react-native' import EventEmitter from 'event-emitter' import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource' const { RNAudio } = NativeModules const n = (v, def) => parseFloat(v === undefined || isNaN(v) ? def ...
requirejs.config({ baseUrl: 'js/lib', paths: { app: '../app' }, shim: { "jquery-ui": { exports: "$", deps: ['jquery'] } } }); // global constants, just too convenient to not use. // These are indexes to arrays of size 2, representing coordinate pairs....
let router, hnd, local; const CMD_SETID = 0, CMD_ADD = 1, CMD_REMOVE = 2; function log( ...args ){ console.log.apply(console, args); if( typeof core != "undefined" && core && core.history ) core.history.push(args.join(" ")); } class Client { buffer = []; constructor( id ){ this.id ...
/** * @requestMapping(/api) */ import { Router } from 'express'; import flayService from '../service/flayService.js'; import videoService from '../service/videoService.js'; import actressService from '../service/actressService.js'; import tagService from '../service/tagService.js'; import historyService from '../se...
import React, { useState, useEffect, getGlobal, useGlobal } from "reactn"; import styled from "styled-components"; import ImageGallery from "react-image-gallery"; import "react-image-gallery/styles/css/image-gallery.css"; import ReactTooltip from "react-tooltip"; //Relative Imports import { Spinner } from "Styles"; im...
import './all-dayjs-locales'; import dayjs from 'dayjs'; import i18next from 'i18next'; import { initReactI18next } from 'react-i18next'; import { useTranslation } from 'react-i18next'; import { NativeModules, Platform } from 'react-native'; import { LANG_OVERRIDE } from '../constants/storage'; import { GetStoreData,...
const cheerio = require('cheerio'); const needle = require('needle'); const moment = require('moment'); const decode = require('magnet-uri'); const Promises = require('../../lib/promises'); const defaultProxies = [ 'https://katcr.co' ]; const defaultTimeout = 10000; const Categories = { MOVIE: 'movies', TV: 'tv...
/** * 初期化 */ var opts = { zoom: 7, mapTypeId: google.maps.MapTypeId.ROADMAP, center: new google.maps.LatLng(35, 135), styles: [{ stylers: [ {gamma: 0}, {lightness: 0}, {saturation: -100}, {inverse_lightness: false} ] }] }; map = new google.maps.Map(doc...
//Setting up the canvas dimensions var svgWidth = 500; var svgHeight = 300; var margin = {top: 20, right: 20, bottom: 30, left: 40}, width = 960 - margin.left - margin.right, height = 500 - margin.top - margin.bottom; //Defining the scales of the plot var formatPercent = d3.format(".0%"); var x = d...
// External dependencies var webpack = require('webpack'), path = require('path'), argv = require('minimist')(process.argv.slice(2)), qs = require('qs'), autoprefixer = require('autoprefixer'), Clean = require("clean-webpack-plugin"), AssetsPlugin = require('assets-webpack-plugin'), ExtractT...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs_1 = require("fs"); const bson_1 = require("bson"); const ts_simple_ast_1 = require("ts-simple-ast"); const MikroORM_1 = require("./MikroORM"); const Collection_1 = require("./Collection"); const BaseEntity_1 = require("./BaseEntity");...
// Copyright (c) 2014 International Aid Transparency Initiative (IATI) // Licensed under the MIT license whose full text can be found at http://opensource.org/licenses/MIT var view_list_transactions = exports; exports.name = "view_list_transactions"; var csvw = require("./csvw.js") var ctrack = require("./ctrack.js...
/*! * speedt * Copyright(c) 2015 speedt <<EMAIL>> * BSD 3 Licensed */ 'use strict'; var path = require('path'), fs = require('fs'), utils = require('speedt-utils'), EventEmitter = require('events').EventEmitter; var appUtil = require('./util/appUtil'), events = require('./util/events'), Consta...
import React from 'react'; import { BrowserRouter as Router, Switch, Route, NavLink, Redirect } from 'react-router-dom'; import axios from 'axios'; import Home from './components/Home/Home'; import Dose from './components/Dose/Dose'; import Medicine from './components/Medicine/Medicine'; import AnimalProfil...
import React, { useEffect } from "react" import { useStaticQuery, graphql, Link } from "gatsby" import { GatsbyImage } from "gatsby-plugin-image"; import * as myAccountStyles from '../assets/scss/components/my-account.module.scss' import Slider from "react-slick" import Stars from './stars' import OrderNoHistory from "...
'use strict' const semver = require('semver') const pkg = require('../package.json') const constants = require('./constants') const object = require('./complexValues/object') const lineBuilder = require('./lineBuilder') const formatUtils = require('./formatUtils') const itemDescriptor = require('./metaDescriptors/ite...
import React, { Component } from 'react'; import cake_icon from './assets/piece-of-cake.svg' import ice_cream_icon from './assets/ice-cream-cone.svg' import yogurt_icon from './assets/frozen-yogurt.svg' import other_icon from './assets/big-pretzel.svg' class List extends Component { state = { query: '', display: ...
import React, {useState,useEffect} from "react"; // @material-ui/core components import {makeStyles} from "@material-ui/core/styles"; import InputLabel from "@material-ui/core/InputLabel"; // layout for this page import Admin from "layouts/Admin.js"; // core components import GridItem from "components/Grid/GridItem.js"...
function readFile() { $.ajax({ url: '../datasets/client_data.csv', dataType: 'text', }).done(showInitialFormat,showSweepFormat); } function showInitialFormat(data) { var allRows = data.split(/\r?\n|\r/); var table = '<table>'; for (var singleRow = 0; singleRow < 11; singleRow++) { ...
import React, { memo } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import _ from 'lodash'; import { Dialog, Slide } from '@material-ui/core'; import * as Selectors from '../../selectors'; i...
var links_keys = require('utils/links_keys'); var toast = require('utils/toast'); var delete_anniversary = require('anniversary/delete_anniversary'); var anniversary_win = Ti.UI.createWindow(); //Search bar for the table view var search = Titanium.UI.createSearchBar({ showCancel:true, hintText:'Search', ...
window.Cookies = require('js-cookie') const cachebust = require('./cachebust') const icon = require('./icon') const getNodeFromTimestamp = require('./getNodeFromTimestamp') const syncAblePlayer = function(transcript, id, supp){ $('body').removeClass('hasAblePlayer') $('video').each(function (index, element)...
import React, { Component, Fragment, Suspense } from 'react'; import { compose } from 'redux'; import { connect } from 'src/drivers'; import { bool, func, object, shape, string } from 'prop-types'; import { Price } from '@magento/peregrine'; import classify from 'src/classify'; import { getCartDetails, updateIt...
/*! * vue-flags v0.0.2 * (c) 2019-present <NAME> * Released under the MIT License. */ 'use strict'; // // // // // // // // // // // // // // // // // // var script = { props: { border: { type: Boolean, default: false }, circular: { type: Boolean, default: true }, clic...
// always creates a vector in R4: function Vector(x, y, z, w){ this.list = [0,0,0,1]; // w component = 1 let fromArray = false; if(x instanceof Array){ fromArray = true; this.list = x; while(this.list.length < 4){ this.list.push(0); if(this.list.length === 4){ this.list[3] = 1; } } } if...
#!/usr/bin/env node "use strict"; const fs = require('fs'); const fsp = fs.promises; const { testIt } = require('../util/util'); let loadInput = (filename) => { return fsp.readFile(filename, { encoding: 'utf-8' }) .then((input) => { return input .split('\n') .filter((i) => (i !== '')) ...
const moment = require('moment'); const botDetector = require('./bot-detector'); const Placement = require('../models/placement'); const Campaign = require('../models/campaign'); const AnalyticsAction = require('../models/analytics/action'); const AnalyticsBot = require('../models/analytics/bot'); const AnalyticsCampai...
import React, { Component } from 'react'; import './index.css'; import Cookies from 'js-cookie'; class PrescriptionForm extends Component { constructor(props){ super(props); this.state = { patient: this.props.patientID, brand_name:'', medication_name:'', directions: '', quantity:...
const { expandProperties, resolvePathValue, getClass, getDeclaration, getKeyframes, isNestedStyles, normalizePseudoElements, minifyProperty } = require('./utils.js'); const testASTShape = require('./test-ast-shape.js'); const t = require('@babel/types'); const generateExpression = require('./generate-ex...
import React, { useEffect, useReducer } from 'react' import { Formik, Form, ErrorMessage, Field } from "formik"; import * as Yup from 'yup'; import useRequest from '../../../../hooks/request'; import userReducer, { initState } from '../../Reducers/UserReducer'; import { useParams } from 'react-router-dom'; import _ fro...
import axios from 'axios'; import crypto from 'crypto'; import Big from 'big.js'; const URL = 'https://api.changelly.com'; const { CHANGELLY_API_SECRET, CHANGELLY_API_KEY, } = process.env; const PRIORITY_SYMBOLS = ['BTC', 'BCH', 'BSV', 'ETH', 'LTC', 'XRP', 'XLM', 'EOS', 'DOGE', 'DASH', 'XMR', 'USDT']; const DEPREC...
function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+ d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function unlockSecret(){ setCookie('secret_unlocked', true, 18250); docu...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
'use strict'; const Logger = require('./helper/logger.js'); const packageFile = require('../package.json'); const TuyAPI = require('tuyapi'); //Accessories const ProjectorAccessory = require('./accessories/ProjectorAccessory'); const SceneAccessory = require('./accessories/SceneAccessory'); const PLUGIN_NAME = 'hom...
// Constants const fs = require("fs"); const Manager = require("../lib/manager"); const Engineer = require("../lib/engineer"); const Intern = require("../lib/Intern"); // create html file, write it to dist folder function buildPage(myTeam) { let teamPage = ` <!DOCTYPE html> <html lang="en"> <head> <meta charset...
//缓存求值函数,以便多次利用 var evaluatorPool = require('./evaluatorPool') var rregexp = /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/g var rstring = /(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/g var rfill = /\?\?\d+/g var brackets = /\(([^)]*)\)/ var rshortCircuit = /\|\|/g var rpipeline = /...
import { getCommonCard, getCommonTitle, getLabelWithValue, getLabel, getCommonGrayCard, getCommonSubHeader, getCommonContainer } from "egov-ui-framework/ui-config/screens/specs/utils"; import { convertEpochToDate } from "../../utils"; import { changeStep } from "./footer"; import { changeStep as changeS...
import React, { useState } from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import Grid from '@material-ui/core/Grid'; import CircularProgress from '@material-ui/core/CircularProgress'; import PageWrapper from 'components/shared/PageWrapper'; import { Body, Body13, H2, Body11 }...
const { sauceReporter, prepareAssets } = require('./sauce-reporter'); const path = require('path'); const fs = require('fs'); const { shouldRecordVideo, getAbsolutePath, loadRunConfig, prepareNpmEnv, getArgs, getEnv } = require('sauce-testrunner-utils'); const cypress = require('cypress'); const util = require('util');...
import { put, takeEvery, select, call } from 'redux-saga/effects'; import moment from 'moment'; import Auth from '@react-native-firebase/auth'; import Messaging from '@react-native-firebase/messaging'; import Reactotron from 'reactotron-react-native'; import { AsyncStorage } from 'react-native'; import * as _ from 'lod...
/** * * SongBook * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Swipeable from 'react-swipeable'; import Song from 'components/Song'; import Slider from 'react-slick'; import TopBar from 'components/TopBar'; import BottomBar from 'c...
// The first key the Application ID, the second is the Search-Only Key // Both are safe to be in source control ;) const algolia = algoliasearch("3TZ23PBKWA", "066dd636f08bd2fb78fcb120b38f7ddd"); const algoliaIndex = algolia.initIndex("kaldi"); algoliaIndex.setSettings({ removeWordsIfNoResults: 'none', highlightP...
/* @license MIT */ // Points to be included in chart (ID or XID) var reading_points = [ point.id ]; // Color of fill in each series in the graph // (the position of each color corresponds // to a point in "reading_array" variable) var fill_colors = [ '#FF9421CC' ]; // Color of stroke in each series in th...
import React, {Component} from "react"; import "../../assets/stylesheets/components/css/colorPicker.css" import {connect} from "react-redux"; import {actions as appActions} from '../../reducers/lab1/AppReducer'; import {actions as mainActions} from '../../reducers/MainReducer'; import {bindActionCreators} from 'redux';...
import React from "react"; import { Grid, Form, Icon, Message, Modal, Button } from "semantic-ui-react"; import firestoreDB from "../../../../config/firestore"; import genUID from "../../../../helpers/idGenerator"; import { Link, Route, withRouter } from "react-router-dom"; import DatePicker from "react-datepicker"; im...
import FlightSuretyApp from '../../build/contracts/FlightSuretyApp.json'; import FlightSuretyData from '../../build/contracts/FlightSuretyData.json'; import Config from './config.json'; import Web3 from 'web3'; import express from 'express'; require('babel-polyfill'); const GAS = 4999999; const ORACLE_COUNT = 20; let...
var URL = require("url"); var QueryString = require("querystring"); var LayerMap = { M: 'mapnik', O: 'mapnik', // osma render is no longer supported C: 'cyclemap', T: 'transportmap', Q: 'mapquest' }; var ReverseLayerMap = { mapnik: 'M', cyclemap: 'C', transportmap: 'T', m...
import external from './../../externalModules.js'; import BaseBrushTool from './../base/BaseBrushTool.js'; import { getToolState, addToolState, } from './../../stateManagement/toolState.js'; import store from './../../store/index.js'; import brushUtils from './../../util/brush/index.js'; import triggerEvent from '....
const columnTypes = { rank: { key: "rank", label: "", thClass: "table-col-rank", tdClass: "table-col-rank", }, image: { key: "image", label: "", thClass: "table-col-image", tdClass: "table-col-image", }, name: { key: "name", ...
import { GluonElement } from '../gluonjs/gluon.js'; const assetPath = (window.modulesAssetPath && window.modulesAssetPath('overwebs-background-data') + '/assets') || '/assets'; const mapBackgrounds = map => { return { to_play: { transition: 'play', preload: ['play_to_main'], video: `${map}/sha...