text
stringlengths
3.07k
16k
'use strict'; var path = require('path'); var fs = require('fs'); var chokidar = require('chokidar'); var RuleSet = require('webpack/lib/RuleSet'); var chalk = require('chalk'); var semver = require('semver'); require('globby'); require('lodash'); var scan = require('./scan-ac69cc50.js'); function _interopDefaultLega...
var normativeTypesRootYml = "tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03"+ "template_name: tosca-normative-types-root"+ "template_author: TOSCA TC"+ "template_version: 1.0.0.wd03-SNAPSHOT"+ "description: Contains the normative types definition."+ "node_types:"+ " tosca.nodes.Root:"+ " abstract: true"+ ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { Main, PageHeader, PageHeaderTitle } from '@redhat-cloud-services/frontend-components'; import { Card, CardBody, Toolbar, ToolbarGroup, ToolbarItem...
const CapabilityMqttHandle = require("./CapabilityMqttHandle"); const Commands = require("../common/Commands"); const ComponentType = require("../homeassistant/ComponentType"); const DataType = require("../homie/DataType"); const EntityCategory = require("../homeassistant/EntityCategory"); const HassAnchor = require("...
"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 k in m...
/* * Copyright 2016 IBM Corp. * * 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 i...
import React from "react" import axios from "axios"; import constants from "../../config.js" import {Alert} from "antd" import {getQueryStringValue} from "../helper" class AddMealsPage extends React.Component{ constructor(props){ super(props); this.state = { name: "", descrip...
// node_modules/.pnpm/@polymer/polymer@3.2.0/node_modules/@polymer/polymer/lib/utils/array-splice.js function newSplice(index, removed, addedCount) { return { index, removed, addedCount }; } var EDIT_LEAVE = 0; var EDIT_UPDATE = 1; var EDIT_ADD = 2; var EDIT_DELETE = 3; function calcEditDistances(curren...
const esutils = require('esutils'); const t = require('@babel/types'); const KEY_FOR_HTML = '__html'; const KEY_FOR_ATTRS = '__attrs'; module.exports = function() { return { visitor: { JSXElement: { exit(path, file) { const openingPath = path.get('openingElement'); const tag = ...
/* ╔══════════════════════╗ ╫ ┬─── ┬──┬ ┬─┬─┬ ┬──┬ ╫ ╫ │ ─┬ ├──┤ │ ┴ │ │ │ ╫ ╫ ┴──┴ ┴ ┴ ┴ ┴ ┴──┴ ╫ ╚══════════════════════╝ Hover effect transform with mouse position. */ /** * Check selector type * @param {Oject or Array} selector */ function GHover(selector) { if (Array.isArray(selector)) { for (let i =...
const express = require('express'), app = express(), bodyParser = require("body-parser"), mongoose = require("mongoose"), flash = require("connect-flash"), passport = require("passport"), LocalStrategy = require("passport-local"), methodOverride = require("method-override"), Comment = require("...
// Define SVG area dimensions var svgWidth = 960; var svgHeight = 575; // Define the chart's margins as an object var chartMargin = { top: 30, right: 30, bottom: 60, left: 60 }; // Define dimensions of the chart area var chartWidth = svgWidth - chartMargin.left - chartMargin.right; var chartHeight = s...
const host = 'https://localhost/index.php?pbid=72&s=/' var Fly = require("flyio/dist/npm/wx") var fly = new Fly() // ------------------------------- /** ** 请求封装 */ function request(url, method, data, header = {}) { wx.showLoading({ title: '加载中', //数据请求前loading mask: true }) return new Promise((reso...
import socket from "./socket"; import Sprites from './sprites'; import Player from './users/player' import Players from './users/players'; import Enemies from './enemies'; import HUD from './hud'; import Item from './items'; // Load a map from a 2D array of tile indices // W16 X H13 let game = null; let background; le...
//------------------------------------------------------------ // live_test.js - run rapid backup against a real db and check output //------------------------------------------------------------ const fs = require('fs'); const cl = require('@cloudant/couchbackup'); const misc = require('../libs/misc.js')(); const rapi...
const fs = require('fs') const path = require('path') const readline = require('readline') const csvParse = require('csv-parse/lib/sync') const { google } = require('googleapis') var os = require('os'); const SCOPES = ['https://www.googleapis.com/auth/spreadsheets'] const TOKEN_PATH = 'token.json' const STARTING_RO...
'use strict'; // Enemies our player must avoid let Enemy = function(x, y, speed) { // Variables applied to each of our instances go here, // we've provided one for you to get started this.x = x; this.y = y; this.speed = speed; // The image/sprite for our enemies, this uses // a helper we've ...
const _ = require('lodash'); const fs = require('fs'); const path = require('path'); const jsonld = require('jsonld'); const readline = require('readline'); const JsonLdParser = require('../lib/util/JsonLdParser'); const NpmCouchDb = require('../lib/npm/NpmCouchDb'); const NpmBundle = require('../lib/npm/NpmBundle'); ...
const middlewareRepository = require("./middlewareRepository"); /** * * * @memberof module:@ui5/server.middleware */ class MiddlewareManager { constructor({tree, resources, options = { sendSAPTargetCSP: false }}) { if (!tree || !resources || !resources.all || !resources.rootProject || !resources.dependencies...
/* TAREA: Empezar preguntando cuánta gente hay en el grupo familiar. Crear tantos inputs+labels como gente haya para completar la edad de cada integrante. Al hacer click en "calcular", mostrar en un elemento pre-existente la mayor edad, la menor edad y el promedio del grupo familiar. Punto bonus: Crear un botón para "...
#!/usr/bin/env node --max_old_space_size=4096 const fs = require('fs'); const findInFiles = require('find-in-files'); const replace = require('replace-in-file'); const readline = require('readline'); const stream = require('stream'); const path = require("path"); const classesFile = 'classes.txt'; const artifactsFile ...
import React from "react"; import { renderToStaticMarkup } from "react-dom/server"; import prettier from "prettier/standalone"; import htmlParser from "prettier/parser-html"; import "../../../planningcenter/components/css/components.css"; import { Avatar, AVATAR_SIZES as SIZES } from "../../../planningcenter/compo...
const readText = require("./readText"); const { ipcRenderer } = require("electron"); var path = require("path"); const windowTopBar = require("./windowTopBar"); const absolutePath = path.resolve("./", "presenters.json"); let showName = document.getElementById("presenterName"); let progress = document.getElementBy...
/** * Created by jun on 15/12/11. */ $(function () { selectAddress(); $.getJsonp(apiBaseUrl + '/info/address-list', {}, function (json) { createAddresslistHtml(json); }); $('#btnUpdateAddr').on('click',function() { var...
const { BN, time, expectRevert } = require('@openzeppelin/test-helpers'); const { expect } = require('chai'); const ERC721Mock = artifacts.require('ERC721Mock'); const ERC721SwapRentalAgreement = artifacts.require('ERC721SwapRentalAgreement'); const RENTAL_STATUS = { PENDING: 0, ACTIVE: 1, }; contract('ERC721Swa...
import __native from 'coffeekraken-sugar/js/core/sNativeWebComponent' import __debounce from 'coffeekraken-sugar/js/utils/functions/debounce' // store the properties by name const __responsiveProperties = {} /** * Provide a nice way to make images responsive without using srcset and sizes attributes. * Register a p...
console.log('-----------------Entered Lambda -------------------') var http = require('http') var https = require('https') var querystring = require('querystring') ;('use strict') // Route the incoming request based on type (LaunchRequest, IntentRequest, // etc.) The JSON body of the request is provided in the event ...
/** * @author mrdoob / http://mrdoob.com/ * @author marklundin / http://mark-lundin.com/ * @author alteredq / http://alteredqualia.com/ * @author gaspard / http://lucidogen.io (adaptation for lucy-three) */ 'use strict' const THREE = require ( 'three' ) const WebGLRenderer = require ( './WebGLRen...
import React, { Component } from "react"; import { Table, UncontrolledTooltip, Badge, Input } from "reactstrap"; import Loader from "../../containers/Loader/Loader"; import { toast, ConfirmBox } from "../../helpers"; import { AppConfig, TokenKey } from "./../../config/AppConfig"; import { deleteMaterial } from "./../.....
import React, { useContext, useEffect, useState } from "react"; import DashboardLayout from "../../components/DashboardLayout"; import { AuthContextProvider } from "../../context/authContext/AuthContext"; import { AuthContext } from "../../context/authContext/AuthContext"; import axios from "../../components/axios"; im...
/* eslint-disable jsx-a11y/no-autofocus */ import React, {Fragment} from 'react'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/...
// (C) Copyright IBM Deutschland GmbH 2021. All rights reserved. /*********************************************************************************************** imports ***********************************************************************************************/ import React, { Component } from 'react' import ...
import 'antd/es/typography/style'; import _Typography from 'antd/es/typography'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } ...
import React, { Component } from "react"; import styled from "@emotion/styled" import brunerLogo from "../images/bruner-logo-white.svg" import brunerLogoDark from "../images/bruner-logo-dark.png" import hamburger from "../images/hamburger.svg" import rocket from "../images/pluto-success.png" import cat from "../images/...
#!/usr/bin/env node // // FastCGI web server var fs = require('fs') var util = require('util') var path = require('path') var optimist = require('optimist') var child_process = require('child_process') var fastcgi = require('./fastcgi') var LOG = console var ARGV = null, OPTS = null if(require.main === module) ma...
import React from 'react'; import PropTypes from 'prop-types'; import Meteor, { withTracker } from 'react-native-meteor'; import { NetInfo } from 'react-native'; import firebase from 'react-native-firebase'; import { AuthStack, PrivateStack } from 'WeTime/src/config/routes'; import Loading from 'WeTime/src/components/...
'use strict' // TODO: remove sanitization when implemented by the agent // Reference https://docs.mongodb.com/v3.6/reference/command/ const DATABASE_COMMANDS = [ // Aggregation Commands 'aggregate', 'count', 'distinct', 'group', 'mapReduce', // Geospatial Commands 'geoNear', 'geoSearch', // Quer...
var os = require('os'); var PLATFORM = os.platform() === 'darwin' ? 'osx' : os.platform(); var ARCH = os.arch() === 'x64' ? 'x86_64' : os.arch(); var versions = require('mongodb-version-list'); var semver = require('semver'); var request = require('request'); var async = require('async'); var defaults = require('lodash...
import { useState } from 'react' import Head from 'next/head' import Link from 'next/link' import styled from 'styled-components' import dynamic from 'next/dynamic' import ProductInfo from '../../components/productPage/ProductInfo' import AddToCart from '../../components/productPage/AddToCart' import ToggleBut...
import React from 'react'; import { connect } from 'react-redux'; import { Form, FormGroup, ControlLabel, FormControl, Button,Row, Col } from 'react-bootstrap'; import { generateTokenTransaction, estimateTokenGas, createToken } from '../../store/tokenActions'; import { sendTransaction } from '../../store/transactionAct...
let app = require('express')(); let http = require('http').Server(app); const https = require('https'); let logger = require('morgan'); let io = require('socket.io')(http); const querystring = require('querystring'); const read = require('read'); const fs = require('fs'); const path = require('path'); app.use(logger('...
/* eslint-disable */ import { Component } from 'react'; import PropTypes from 'prop-types'; import { Button } from 'reactstrap'; import withRedux from 'next-redux-wrapper'; import Head from 'next/head'; import Router from 'next/router'; import axios from 'axios'; import MuiThemeProvider from 'material-ui/styles/MuiThe...
import _pt from "prop-types"; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _exten...
const MODIFYTIME = 10 * 60 // 10 minutes const DISCOUNTVALUE = 20 / 100 // 20% const DISCOUNTTIME = 15 * 60 // 15 minutes cancelModifyOrderButton = document.getElementById('cancelModifyOrderButton') timeElapsedText = document.getElementById('timeElapsed') orderTotalText = document.getElementById('orderTotal') orderico...
import React, { useEffect, useState, createRef } from 'react'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import './ViewportDownloadForm.styl'; import { TextInput, Select } from '@ohif/ui'; const FILE_TYPE_OPTIONS = [ { key: 'jpg', value: 'jpg', }, { key: 'pn...
// External Requirements var React = require('react'); var MortarJS = require('../../../../app-container').MortarJS; // Bricks var Br = MortarJS.require('components', 'Row', 'Column', 'Form', 'Table', 'Button', 'Modal', 'Tooltip'); // Stores var FormStore ...
/** * Turn any javascript object into a serializable object * @param {any} obj Any Javascript variable * @param {object} [options] Options used * @param {(number|null)} [options.maxDepth=null] Max depth the function should traverse * @param {boolean} [options.skipPrototype=false] Set to true to not enumerate prope...
'use strict'; // Packages require('dotenv').config(); const express = require('express'); const cors = require('cors'); const superagent = require('superagent'); const pg = require('pg'); // Global vars const PORT = process.env.PORT; const app = express(); const methodOverride = require('method-override'); function ...
import React from 'react'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@mat...
const fs = require('fs'); const path = require('path'); const tus = require('tus-js-client'); const uuid = require('uuid'); const emitter = require('./WebsocketEmitter'); const request = require('request'); class Uploader { /** * @typedef {object} Options * @property {string} endpoint * @property {st...
$(function() { tagFun(); tagType();//分类选中 }) // 标签选择交互 var tagFun = function() { var tLi = $("#js-tags>a"), tCon = $("#tags-content"), tSp = $("#label-default"), tCol = '<em title="关闭" class="icon14 ml5 icon-close"></em>'; tLi.each(function() { var _this = $(this); _this.bind("click",function() { v...
"use strict"; // https://www.w3schools.com/js/js_strict.asp var socket; var cols = 7; var rows = 6; var counter = 0; var playtrigger = 0; var playername = ""; var active = ""; var firstplayer = false; $(function() { // add a click handler to the button $("#getMessageButton").click(function(event) { ...
import PropTypes from 'prop-types' import React, { Component } from 'react' import styled from 'styled-components' import { connect } from 'react-redux' import moment from 'moment' import shortid from 'shortid' import { socketDataRequest } from 'store/actions' import { UserCircle, CalendarRow } from 'components' import...
const get = require('lodash.get'); const uniq = require('lodash.uniq'); // Utils const isKomputeObject = prop => prop.dependsOn && prop.compute; const findItemById = ({ getId, arr }, id) => arr.find(item => getId(item) === id); const findNodeByProp = ({ tree }, path, exact = true) => tree.find(node => exact ...
import React from "react"; import { Route, Switch } from "react-router-dom"; import PropTypes from "prop-types"; import classNames from "classnames"; import { withStyles } from "@material-ui/core/styles"; import Header from "../components/Dashboard/Header"; import LeftDrawer from "../components/Dashboard/LeftDrawer"; i...
var StringView = require('../vendor/stringview.js'); function isObjLiteral(_obj) { var _test = _obj; return ( typeof _obj !== 'object' || _obj === null ? false : ( (function () { while (!false) { if ( Object.getPrototypeOf( _tes...
import { useState, useEffect } from 'react'; import { fetchLiveQueries } from '../../actions/universe'; import { dropdownColKeys } from './LiveQueries'; export const useApiQueriesFetch = ({ universeUUID }) => { const [ycqlQueries, setYCQLQueryRowData] = useState([]); const [ysqlQueries, setYSQLQueryRowData] = useS...
'use strict' require('@babel/register') const webpack = require('webpack') const path = require('path') const { default: settings } = require('./src/settings.js') const { name } = settings function resolve(dir) { return path.join(__dirname, dir) } const port = 9527 // dev port const cdn = { // 开发环境 dev: { ...
function main(){ var content=document.getElementById("content"); //創建內容 var divrow1=document.createElement("div"); divrow1.setAttribute('class','row'); var divrow2=document.createElement("div"); divrow2.setAttribute('class','row'); var divrow3=document.createElement("div");//new divrow3.setAttribute('class','row'); ...
import React from "react"; import "./TilesMap.css"; import Claim from ".././components/SwitchCity/Display/Claim"; import { withRouter } from "react-router-dom"; import { ClubImg, EventImg, HousingImg, JobImg, PageImg, RestaurantImg, ServiceImg, ShopImg, VenueImg } from "../widgets/aphoto"; import Even...
// Copyright (c) 2013 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. import * as animate from './animation.js'; import {assertInstanceof} from './chrome_util.js'; import * as dom from './dom.js'; import * as Comlink fro...
import {Button, Form, Input, Layout, PageHeader, Tooltip, Typography, Spin, Radio} from "antd"; import React from "react"; import { useDispatch } from "react-redux"; import { Redirect } from "react-router-dom"; import { createAlert } from "../../../store/actions/generalActions"; import { useKeycloak } from "@react-keyc...
// import React from "react"; // import { View, Text , ScrollView, Image} from 'react-native'; // import { Camera } from 'expo'; // import { StyleSheet, Dimensions } from 'react-native'; // import * as ImagePicker from 'expo-image-picker' // import { Block } from "galio-framework"; // const { width, height } = Dimensio...
import * as THREE from "../../thirdParty/build/three.module.js"; import * as EXTRA from "../../thirdParty/build/extra.module.js"; function LutComposer(parameters) { const rtParameters = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBFormat, }; this....
var $ = require('jquery'); var importedCards = require('./deck'); var Session = require('./session'); "use strict"; // Sudo // Retireve and store all cards from DB : Shuffle // Deal player and dealer hand // Get player and dealer hand value // Check dealer and Player hand value for blackjack // Check hand for split a...
import React from "react" import * as d3 from "d3" import { legendColor } from "d3-svg-legend" import hk18DistrictGeoJson from "./hk18districts.json" const colorList = [ "#f7f0f0", "#edd4cc", "#ffad91", "#ec7d58", "#b53232", // "#b53232", // "#ec7d58", // "#9e2527", // "#5c0608", ] // eslint-disable...
"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...
/* eslint-disable eqeqeq */ /* eslint-disable react-native/no-inline-styles */ import React, {Component} from 'react'; import { ActivityIndicator, Keyboard, Modal, Text, TextInput, TouchableOpacity, View, } from 'react-native'; import Toast from 'react-native-simple-toast'; import AsyncStorage from '@re...
'use strict'; //refrence https://www.youtube.com/watch?v=o1yMqPyYeAo const date= new Date(); //built-in date object let firstDayIndex; let prevLastDay; //lets convert the index number of date.getMonth() to month name let months = ['January','February','March','April','May','June','July','August','September','October'...
var getAuthString = require('./auth'); var xutil = require('./xutil'); function readVisuals(bl, visuals, n_visuals, cb) { if (n_visuals == 0) { cb(); return; } var visual = {}; bl.unpackTo( visual, [ 'L vid', 'C class', 'C bits_per_rgb', 'S map_e...
import store from '@/store' import axios from 'axios' import { Message } from 'element-ui' import util from '@/libs/util' import router from '@/router' import qs from 'qs' import merge from 'lodash/merge' import isPlainObject from 'lodash/isPlainObject' // 创建一个错误 function errorCreat (msg) { const err = new Error(msg)...
/*! * relation.js - v0.1 * 2019.3.30 * Author 桔子桑 * * github:https://github.com/ecojust/Relation.js * relation.js is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ let Application = PIXI.Application, Loader = PIXI.loader, Resources = PIXI.loader.resources, Sprit...
/***************** * On Load Events * ******************/ var all_layers = (localStorage.all_layers != undefined ? JSON.parse(localStorage.all_layers) : []); var optimizer = (localStorage.optimizer != undefined ? JSON.parse(localStorage.optimizer) : newOptimizer('grad') ); $(document).ready(LoadNetwork); var layers =...
// Select timer element by ID let timer = document.getElementById("timer"); // Declare global variable for interval so it can be called outside the function let timeId = 0; // Select start button by ID let startButton = document.getElementById("start-button"); // Define variables for the game area and the list to hol...
/*! * Fast Query Bench Marking... * Fast Query is a lightweight and super fast query string parser for node javascript. * Copyright(c) 2018 <NAME> | <EMAIL> * MIT Licensed */ 'use strict' // Include our required modules. const decode = require('fast-decode-uri-component'); // First lets do a few simple tests and ...
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.defineProperty(target, des...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import get from 'lodash/get'; import moment from 'moment'; import { Row, Col, Icon, Popconfirm, Calendar } from 'antd'; import * as workspaceSelectors from '../...
/** * * SettingsPage */ import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import cn from 'classnames'; import { get, sortBy } from 'lodash'; import PropTypes from 'prop-types'; import { onChange...
const path = require(`path`); const fs = require('fs-extra'); //eslint-disable-line const packageDirs = ['react-core', 'react-charts', 'react-styled-system', 'react-table']; // Escape single quotes and backslashes in a file path const escapeFilePath = filePath => filePath.replace(/[\\']/g, '\\$&'); exports.onCreateWe...
import React, { useEffect, useState, useRef } from 'react' import PropTypes from 'prop-types' import HeatMap from './gradient' import Tooltip from './tooltip' import debounce from './debounce' import { Table, Td, NulledTd, Axis, XAxis, AxisLabel, CellLabel, XAxisLabel } from './styles' const HeatMap...
import {devAssert} from '#core/assert'; /** @typedef {Array<{query: ?MediaQueryList, value: string}>} ExprDef */ const TRUE_VALUE = '1'; export class MediaQueryProps { /** * @param {Window} win * @param {function():void} callback */ constructor(win, callback) { /** @private @const */ this.win_ =...
import React, { useState } from "react"; import styled from 'styled-components'; import { Head, NavMenu, PopMenu } from '../components'; import '../styles/index.css'; const OPTIONS = [ { bg: '#0062be', img: "http://qiniuargus.weready.online/storybooks/pepsi/pepsi001.png"}, { bg: '#e60c2c', img: "http://qiniuargus....
let getNumber = (min, max) => Math.round(Math.random() * (max - min) + min); let arrFruits = ['fruit-1', 'fruit-2', 'fruit-3', 'fruit-4', 'fruit-5', 'fruit-6', 'fruit-7', 'fruit-8', 'fruit-9', 'fruit-10', 'fruit-11', 'fruit-12', 'fruit-13', 'fruit-14', 'fruit-15', 'fruit-16', 'fruit-17', 'fruit-18', 'fruit-19', 'f...
import React, {Component} from 'react'; import {Menu, Button, Form, Input, Row, Col, Icon, Drawer, Dropdown} from 'antd'; import styles from './NavBar.module.less'; import {NavLink} from 'react-router-dom'; import logo from '@/logo.svg'; import connect from "@/store/connect"; @Form.create() @connect(({user}) => ({ ...
import React, { Component } from 'react'; import { Alert, RefreshControl, SafeAreaView, View, FlatList, StyleSheet, Text, Button } from 'react-native'; import { Icon, ButtonGroup } from 'react-native-elements'; import Amplify from 'aws-amplify'; import Post from './Post.js'; import { Auth } from 'aws-amplify'; const si...
// Adding UI Element const viewBtnHover = document.querySelectorAll( 'tbody td.input-group button:first-child' ) const parentImgDisplay = document.querySelector('#img-display') const imgDisplay = document.querySelector('#img-display img') const modifyBtn = document.querySelectorAll('a.modify-row') // Adding Event Li...
'use strict'; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function (obj) { return typeof obj; }; } else { _typeof = function (obj) { return obj && typeof Symbol === "function" && obj.constructor =...
import * as React from "react"; import * as d3 from "d3"; import { connect } from "react-redux"; const mapStateToProps = state => { return { input: state.input, output: state.output, clusterList: state.ui.clusterList, attributeList: state.ui.attributeList, clusterSliderUI: s...
var Future = Npm.require('fibers/future'); var urlModule = Npm.require('url'); var nodemailer = Npm.require('nodemailer'); Email = {}; EmailTest = {}; EmailInternals = { NpmModules: { mailcomposer: { version: Npm.require('nodemailer/package.json').version, module: Npm.require('nodemailer/lib/mail-co...
let queryData = { status: $('#status').val() ? $('#status').val() : '', sortBy: $('#sort-by').val() ? $('#sort-by').val() : 'date', orderBy: $('#order-by').val() ? $('#order-by').val() : 'DESC', page: 1, size: $('#page-size').val() ? $('#page-size').val() : 5, }; const createPagination = (totalPage...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import DataTable from 'd2-ui/lib/data-table/DataTable.component'; import SharingDialog from '@dhis2/d2-ui-sharing-dialog'; import TranslationDialog from 'd2-u...
/** * Market operations * @module app/controllers/market * @requires local:web3-helper */ const web3Helper = require('web3-helper'); const contracts = require('../../contracts/instance'); const appConfig = require('../../config/contracts/deploy/app'); const tknConfig = require('../../config/contracts/deploy/tok...
const Party = require('./party'); class PartyCtf extends Party { getPartyParams(map) { const pp = super.getPartyParams(map); //pp.music = this.$.music.jinglebells; return pp; } defResources() { const res = { ...super.defResources(), [32 + 255]: `models/weapons2/grenade/grenade.md3`, ...
import React from 'react'; import { render, screen, waitFor } from '@testing-library/react'; import CompanyForm from './companyForm'; import { buildCompany } from '../../../tests/mocks/companies.mock'; import { getErrorWithMessage } from '../../../tests/errors'; import { MessageNotification, MessageProvider } from ...
import Head from "next/head"; import { HeroBg, Error404, HeroImg, DetailsHeroWrap, HeroBgContainer, HeroDetailsContainer, HeroInfo, HeroImgWrapper, HeroTrailer, MovieEaster, LightsInOut, EasterText, } from "../../styles/GlobalComponents"; import DominantColor from "../../components/DominantColor...
/* * Copyright (c) 2016-2017 <NAME> http://shakiba.me/planck.js * Copyright (c) 2006-2011 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permissi...
'use strict'; var dbm; var type; var seed; /** * We receive the dbmigrate dependency from dbmigrate initially. * This enables us to not have to rely on NODE_PATH. */ exports.setup = function(options, seedLink) { dbm = options.dbmigrate; type = dbm.dataType; seed = seedLink; }; exports.up = function(db, _...
import React, { Component } from 'react'; import withStyles from '@material-ui/core/styles/withStyles'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import Paper from '@material-ui/core/Paper'; import Button from '@materia...
import React, {Component} from 'react' import {Link} from 'react-router'; import {findDOMNode} from "react-dom"; import $ from 'jquery'; import ScrollMagic from 'scrollmagic/scrollmagic/uncompressed/ScrollMagic'; import pluging from 'scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap'; import {TweenMax, Power...
"use strict"; /** @typedef {import("./model").Model} Model */ /** @typedef {import('./event').Event} Event */ /** @typedef {string} eventName */ /** @typedef {string} service - name of the service object to inject in adapter */ /** @typedef {number} timeout - call to adapter will timeout after `timeout` milliseconds *...