text
stringlengths
3.07k
16k
/** * Copyright (c) 2017-present, Jembi Health Systems NPC. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ 'use strict' const mongodb = require('mongodb') const logger = require('winston') const Fhir...
// .vuepress/config.js // missing markdownItAds boostnote admonitions const fs = require('fs') const path = require('path') const util = require('util') module.exports = { base: '/solidity-smart-contracts/', //theme: 'cool', //dest: 'dist', // could add script to insert chart js in here. head: [ ], them...
/** * The base class for all sns client * @author <NAME> */ // Module Dependence var crypto= require('crypto'), http= require('http'), https= require('https'), URL= require('url'), zlib= require('zlib'), querystring = require('querystring'), commonAPIs = require('./apiconfig').commonAPIs; /...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.RadioGroupItem = exports.radioGroupItemSlotClassNames = exports.radioGroupItemClassName = void...
'use strict' const lp = require('pull-length-prefixed') const pull = require('pull-stream') const waterfall = require('async/waterfall') const each = require('async/each') const setImmediate = require('async/setImmediate') const Message = require('./types/message') const CONSTANTS = require('./constants') const logge...
import React, { Component } from 'react'; import { View } from 'react-native'; import { injectIntl } from 'react-intl'; import get from 'lodash/get'; // Utils import { getWordsCount } from '../../../utils/editor'; // Components import { BasicHeader, TitleArea, TagArea, TextArea, SummaryArea, PostForm, } f...
/** * Module dependencies */ var util = require('util'); var _ = require('@sailshq/lodash'); var flaverr = require('flaverr'); var isSafeNaturalNumber = require('./is-safe-natural-number'); /** * normalizePkValue() * * Validate and normalize the provided pk value. * * > This ensures the provided pk value is a...
var pgVersion = "1.2.0" /* Commands include: commands() //This shows all of the commands startPG() //This starts the playground. Commands only work if active. stopPG() //This stops the playground. This literally just reloads the page. restorePage() //This restores the page to normal (Most of the time) p...
import { Link } from "gatsby" import React, { useState } from "react" import styled from "styled-components" import { motion } from "framer-motion" import LogoImage from "./atoms/LogoImage" const Header = styled.header` padding: 1rem; display: flex; align-items: center; justify-content: space-between; a.acti...
/* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ /*global ja...
"use strict"; exports.__esModule = true; 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]; } } } return target; }; var _class, _temp;...
var seriesOptions = [], seriesCounter = 0, names = ['total', 'style', 'content', 'total variation']; //['MSFT', 'AAPL', 'GOOG']; var outputs = [] var title = { text: 'neural-style board' }; var compare = undefined; var options = { title: title, subtitle: { }, chart: { zoomType:...
var Log = require('../logger'); var inherits = require('inherits'); var difference = require('lodash/difference'); var EventEmitter = require('eventemitter3'); var log = new Log('Vote'); /** * The vote module */ function Vote(_app, opts) { // Initiate event emitter EventEmitter.call(this); this.app = _app; ...
const UsStates = require('us-state-codes'); const CSVParse = require('csv-parse/lib/sync'); const fs = require('fs'); const XLSX = require('xlsx'); const IncidentReport = require('../../common/incident_report.js'); const {downloadFile, sleepFor} = require('../../common/utils'); const ReportApi = require('./api'); cons...
import {GameObject} from './GameObject.es6'; import {AudioBase} from '../Core/AudioBase.es6'; import {img} from './../Sprites/aim.png'; class AimSprite extends GameObject { constructor(player, ball) { let sprite = document.createElement('img'); sprite.src = './build/images/aim.png'; super()...
var os = require('os') var fs = require('fs') var path = require('path') var async = require('async') var crypto = require('crypto') var fdSlicer = require('fd-slicer') var assign = require('lodash.assign') var DEFAULT_BLOCK_SIZE = 204800 // 200kb /** * Checks if `value` is classified as an `Array` object. * * @par...
"use strict"; const fs = require('fs'); //const Discord = require('discord.js'); const { Collection, Client, Intents, MessageEmbed } = require('discord.js'); const client = new Client({ intents: [ Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_PRESENCES, Intents.FLAGS.GUILDS, Int...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor...
import * as WebBrowser from 'expo-web-browser'; import React from 'react'; import { Image, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View, Dimensions } from 'react-native'; import GalleryImage from '../components/GalleryImage'; import { MonoText } from '../components/StyledText'; e...
import { getMetadata } from "page-metadata-parser"; /* global chrome */ /** * Utility functions providing access to Chromium browsers such as Brave, Chrome and Edge. */ class Browser { static async getAllTabs(currentWindow) { if (Browser.isContextExtension()) { const query = {}; ...
import { reduceDecisionRules } from './reducer'; import { tzFromOffset } from './time'; import * as _ from './lodash'; import { CraftAiDecisionError, CraftAiNullDecisionError, CraftAiUnknownError } from './errors'; import { formatDecisionRules, formatProperty } from './formatter'; import isTimezone, { getTimezoneKey } ...
var Defaults = require('./defaults'); var Schema = require('./schema'); var Hoek = require('hoek'); var internals = {}; internals.arrayValues = [ 'defaultSrc', 'scriptSrc', 'styleSrc', 'imgSrc', 'connectSrc', 'fontSrc', 'objectSrc', 'mediaSrc', 'frameSrc', 'xhrSrc', 'sandbo...
import _typeof from "@babel/runtime/helpers/typeof"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _get from "@babel/runtime/helpers/get"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { browserHistory } from 'react-router'; import { Grid, Row, Col, ControlLabel, FormControl } from 'react-bootstrap'; import io from 'socket.io-client'; import ErrorModal from '../Errors/ErrorModal'; import OtherPlayers from './OtherPla...
const express = require('express'); const jwt = require('jsonwebtoken'); const passport = require('passport'); const router = express.Router(); require('../config/passport')(passport); const msg = require('../config/msg'); const User = require('../models').User; const Buyer_Profile = require('../models').Buyer_Profile...
// MODEL - Here the beer position records are kept (where they are, hit and discovered) const model = { boardSize: 7, numBeers: 3, beerLength: 3, beersDrink: 0, beers: [ { locations: [0, 0, 0], hits: ["", "", ""] }, { locations: [0, 0, 0], hits: ["", "", ""] }, { locations: [0, 0, 0], hits: ["",...
// jsonj JSON serializer // by <NAME> <<EMAIL>>, https://github.com/epiclabs-io/jsonj // initially inspired on the parser by <NAME> <<EMAIL>>, https://github.com/jaycetde/jsoni var registered = {}; require('./builtins')(register); var arrayRegexp = /(?:(.*))\[\]/g; /*function createObject(typeName) { var r...
import React, { Component } from "react"; import { StyleSheet, ImageBackground , KeyboardAvoidingView, View, Dimensions, Image, Modal, TouchableOpacity, Linking, NetInfo, AsyncStorage, ToastAndroid, BackHandler, Alert } from "react-native"; import { Container, Sp...
'use strict' const router = require('electron-router')('WEB_SEARCH') const { flatten } = require('lodash') const { exists, writeFile } = require('fs') const preCwd = global.upath.resolve(__dirname, '..') const tpl = require(global.upath.joinSafe(__dirname, 'tpl')) const AppBase = require(global.upath....
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("va...
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
gsap.registerPlugin(ScrollTrigger) const initSlider = () => { rgbKineticSlider = new rgbKineticSlider({ slideImages: images, // array of images > must be 1920 x 1080 itemsTitles: texts, // array of titles / subtitles backgroundDisplacementSprite: 'img/map-3.jpg', // slide displacement ima...
import * as React from 'react'; import * as ReactRedux from 'react-redux'; import { bindActionCreators, } from 'redux'; import { injectIntl, } from 'react-intl'; import { Col, CardBody, Row, } from 'reactstrap'; import { Roles, UPDATE_INTERVAL_SECONDS, } from '../../model'; import { Card, Dashboa...
import { Vector } from '../util/vec'; export class PlayerRole { constructor(){ //Player base position, normalized to 0-1 this._basePos = new Vector(0.0, 0.0); } static generateRoleFromConfig(type, typeConfigs){ let playerRole = new PlayerRole(); let positionModifier = new Vector(0,0); let i...
import PropTypes from 'prop-types'; import i18next from 'i18next'; import { COURIER, DEFAULT_CURRENCY, deliveryTypes, MATERIAL_UI_COLOR, SESSION_STORAGE } from '../configs'; import { getFromSessionStorage, setToSessionStorage } from '../services/session-storage.service'; import { checkoutPayMethod } from '../...
import { clearForm, logEvent, updateForm, removeProxy, updateProxies, removeNetwork, updateNetworks, removeService, updateServices, updateUI, } from "../../app/store"; export class PlaygroundAPIResources { constructor (api) { const {playground} = api; const {store} = playground; ...
import { Input, Title, SubTitleLevelThree, BlurDiv, OverrideBlurDiv } from './punch-clock-style' import { useEffect, useState } from 'react' import { useDispatch, useSelector } from 'react-redux' import { toast } from 'react-toastify' import Button from 'components/button/button' import * as PunchClockActions from '@...
/* Utils */ var Enum = require('./enum.js'); // assumption: higher values mean higher frequencies // which, by definition, mean shorter periods. e.g: 1 second occurs // more frequently then 1 minute since 1 second is smaller then 1 minute // thus, for extra frequencies, assign values accordingly const FREQUENCY_T...
/** * There is a single GlobalTooltip that is mounted once on the page in the body * The purpose is to avoid hairy CSS situations where the tooltip is inside a * container that is stomping over it. * * What doesn't work: * 1) Position relative the tooltip doesn't work when inside a container that is * using ...
var zmq = require('zmq') , log4js = require('log4js') , path = require('path') , cbuffer = require('../../../vendor/cbuffer.js') , Tuple = require('../tuple.js') , partitioners = require('../partitioners') ; /** * @class BaseOperator * @classdesc Base class for building...
const {Contract} = require("../index.js"); const {Cell} = require("../../boc"); const {nacl, stringToBytes, Address, BN} = require("../../utils"); /** * Abstract standard wallet class */ class WalletContract extends Contract { /** * @param provider {HttpProvider} * @param options? {{code: Uint8Ar...
'use strict'; const expect = require('./../../chai.js').expect; const tbd = require('tbd'); const proxyquire = require('proxyquire').noCallThru(); const knexFactory = require('./../knexFactory.js')(); describe('[Web] Expect CardHistory', () => { beforeEach('setup proxyquire', () => this.proxyquireStubs = {}); be...
var BoxOpened = ""; var ImgOpened = ""; var Counter = 0; var ImgFound = 0; var Source = "#boxcard"; var ImgSource = [ "http://img5.uploadhouse.com/fileuploads/17699/176992640c06707c66a5c0b08a2549c69745dc2c.png", "http://img6.uploadhouse.com/fileuploads/17699/17699263b01721074bf094aa3bc695aa19c8d573.png", "http:...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateGitignore = updateGitignore; exports.addCordova = addCordova; exports.updatePackageJson = updatePackageJson; var _process = _interopRequireDefault(require("process")); var _child_process = _interopRequireDefault(require("chi...
import { put, select, takeLatest } from 'redux-saga/effects'; import update from 'immutability-helper'; import api from 'utils/api'; import { createPermlink } from 'utils/helpers/steemitHelpers'; import { selectMyAccount } from 'features/User/selectors'; import { selectDraft } from '../selectors'; import { notification...
const gulp = require('gulp'); const less = require('gulp-less'); const browserSync = require('browser-sync'); const concat = require('gulp-concat'); const cssnano = require('gulp-cssnano'); const rename = require('gulp-rename'); const del = require('del'); const ...
import styled from 'styled-components'; import {useState} from 'react'; const burgers = [ 'https://uploads-ssl.webflow.com/604fb106ebbc6653db4900ef/604fb106ebbc6610d0490216_TTTONLINE_Clipped.png', 'https://uploads-ssl.webflow.com/604fb106ebbc6653db4900ef/604fb106ebbc660f4449021a_StyleBowlGrain_Clipped-p-500.p...
import React, { useEffect } from 'react'; import clsx from 'clsx'; // import * as Yup from 'yup'; import { useFormik } from 'formik'; // import PropTypes from 'prop-types'; import { Box, Button, Card, CardContent, CardHeader, Divider, Grid, TextField, makeStyles, Container, FormHelperText, capit...
import React, {Component} from 'react'; import './formStyle.css'; /* Class for gathering extra information from individuals logging into the system */ class Form extends Component { //Constructor for holding immediate state in the system constructor(props) { super(props); this.state = { nickname: ''...
import React from 'react'; import PropTypes from 'prop-types'; import {omit, isEmpty} from 'ramda'; import classNames from 'classnames'; class Input extends React.Component { constructor(props) { super(props); if (!props.setProps || props.debounce) { this.state = {value: props.value}; } } comp...
//! This one is where the menu link has been set to black and white at the appropriate time. //! utilizes useRouter from Next to get the current pathname import PropTypes from 'prop-types' import { Icon } from '@iconify/react' import { motion } from 'framer-motion' import React, { useState, useEffect } from 'react' imp...
function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "reProp/rePropDetailTmpl1"; var __parentSymbol = arguments[0] ? arguments[0]["__parentSymbol"] : null; var $model = arguments[0] ? arguments[0]["$model"] : null...
import { singular, plural as pluralur } from 'pluralize' import { seededRandom } from './vendor/rng' import { cloneDeep, isEmpty, isEqual } from 'lodash' // Compile these regexes for performance const RE_MATCH_LETTER_DASH = /[^\p{L}-]/gu // dash, or letter in any language const RE_MATCH_WHITESPACE = /\s/g const RE_MAT...
var base_url = $('#base').val(); var WishItem = Backbone.Model.extend({ url: base_url + "api/WishItem/wishItems", idAttribute: 'id', defaults: {"id": null, "title": "", "listId": null, "priorityId": null, "itemUrl": "", "price": null, "quantity": null, "priorityLvl": null, "priority": ""} }); var ...
let THREE = require('./libs/three.js'); let $ = require('./libs/jquery-3.1.1.js'); class Visualization { constructor(source,container) { this.audio = new Audio(); this.audio.loop = true; audioSetup(this.audio,container,THREE,$); this.audio.src= source; //this.play(); ...
var fs = require('fs'), dox = require('dox'), parseJS = require('uglify-js').parser, ejs = require('ejs'), exec = require('child_process').exec, format = require('util').format, format = require('util').format, docs = require('./docs'); // -----------------------------------------------------------------...
import Ember from 'ember'; import Project from 'khartis/models/project'; import Hookable from 'khartis/mixins/hookable'; /* global Em */ const NS = "khartis-project", SIZE = 10, MAX = 30, FREEZE_EVT = "freeze", UNDO_EVT = "undo", REDO_EVT = "redo"; export const HOOK_BEFORE_SAVE_PROJE...
const mongoose = require('mongoose'); const geojson = require('mongoose-geojson-schema'); const paginate = require('mongoose-paginate-v2'); mongoose.Promise = global.Promise; const Feature = mongoose.model('Feature'); const Tag = mongoose.model('Tag'); const Device = mongoose.model('Device'); const Thing = mongoose.mo...
import { html } from "htm/react"; import { gql, useMutation } from "urql"; import { BellSlashIcon, CheckIcon, CodeIcon, EyeIcon, GitPullRequestIcon, IssueOpenedIcon, LockIcon, ProjectIcon, RepoForkedIcon, RepoIcon, StarFillIcon, StarIcon, } from "@primer/octicons-react"; import { humanReadableN...
import * as attribute from "./attribute.js" import * as domHelper from "./dom-helper.js" import * as jsonHelper from "./json-helper.js" // *value* can be boolean, string, color or array of numbers /** * @typedef { (target: object, prop: string, value: any) => void } SetPropertyFn * @type { SetPropertyFn } * */ ex...
import React, { useEffect, useState, useCallback } from 'react'; import TextField from '@material-ui/core/TextField'; import Typography from '@material-ui/core/Typography'; import Input from '@material-ui/core/Input'; import InputAdornment from '@material-ui/core/InputAdornment'; import { makeStyles } from '@material-u...
//Switch -> functie die een int maakt van de maand let geefMaandNummer = (maand) =>{ let nummer; switch (maand) { case "januari": nummer=1; break; case "februari": nummer=2; break; case "maart": nummer=3; break; case "april": nummer=4; break; case "mei": nummer=5; br...
"use strict"; const utilities = {}; const Boom = require('boom'); const joi = require('joi'); const async = require('async'); const _ = require('underscore'); const moment = require('moment'); utilities.cloneObject = function (object) { return JSON.parse(JSON.stringify(object)); }; utilities.encrypt...
function AbstractEntityTransactionBuilder (date, decimalCount, creditTransTypes) { this.decimalCount = decimalCount, this.date = date, this.entityBalances = {}, //private final Map<Integer, BigDecimal> entityBalances; this.transactions = [], //protected...
const Device = require('../device-miio'); const CODES = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '*', ']', '^', '_', '+', 'a', ...
'use strict'; const chai = require('chai'); const assert = chai.assert; const jsdom = require('jsdom'); const {JSDOM} = jsdom; const sample = require('../public/puzzle-strings'); let Solver; suite('Unit Tests', () => { suiteSetup(() => { // Mock the DOM for testing and load Solver return JSDOM.fromFile('./...
import React from 'react'; import PropTypes from 'prop-types'; import D from 'js/i18n'; import { stringToDate } from 'js/utils/moment'; import { rangeType } from 'js/utils/msd/'; import CheckSecondLang from 'js/components/shared/second-lang-checkbox'; import Button from 'js/components/shared/button'; import { markdownT...
import React from "react"; import PropTypes from "prop-types"; import cx from "classnames"; import { Label } from "../Label"; import CSSModules from "react-css-modules"; import styleSheet from "./Switch.css"; import blacklist from "blacklist"; export class Switch extends React.PureComponent { constructor(props) { ...
var TransactionTypes = require("../helpers/transaction-types.js"); var constants = require("../helpers/constants.js"); var private = {}, self = null, library = null, modules = null; var MAX_ODDS = 3; // 最高赔率 var uBetsNumber = {}; function Bet(cb, _library) { self = this; library = _library; cb(null, self); } Be...
import { set } from "idb-keyval"; import { faStickyNote, faDatabase, faListAlt, faFileCode, faBolt, faDirections } from "@fortawesome/free-solid-svg-icons"; import { faJs, faCss3Alt, faLess, faSass } from "@fortawesome/free-brands-svg-icons"; import { resolvePathPart } from "./files"; export func...
import axios from "axios"; import "bootstrap/dist/css/bootstrap.min.css"; import qs from "query-string"; import React, { Fragment, useEffect, useRef, useState } from "react"; import Alert from "react-bootstrap/Alert"; import Button from "react-bootstrap/Button"; import Col from "react-bootstrap/Col"; import Container f...
export const maps = { race: [ {label: 'Argon', value: 'arg'}, {label: 'ATF', value: 'atf'}, {label: 'Kha\'ak', value: 'kha'}, {label: 'Paranid', value: 'par'}, {label: 'Split', value: 'spl'}, {label: 'Teladi', value: 'tel'}, {label: 'Terran', value: 'ter'}, {label: 'Yaki', value: 'yak'...
'use strict'; var log4js = require('log4js'); var unpack = require('./unpack'); var saver = require('./saver'); log4js.configure("./log4js.json"); var log = log4js.getLogger('main'); module.exports = { cat: (err, res, $) => { if (err) { return console.log(err); } if (res && re...
import React, { useState, useEffect, useRef } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Image, OverlayTrigger, Tooltip } from 'react-bootstrap'; import Message from './Message'; import { listMedia, listMediaDetails } from '../actions/mediaActions'; import { listFeedbacks } from '....
/** * Created by Vitaliy on 23.12.2016. */ if(typeof(mapType)==='undefined') mapType = 'world_mill'; if(typeof(myMarker)==='undefined') myMarker = []; var prison = [ {name: 'Albion', coords: [41.890611, -80.366454], status: 'active', offsets: [0, 2]} ]; var myMarker2 = [ {latLng: [41.90, 12.45], na...
var keystone = require('keystone'), async = require('async'); var Thread = keystone.list('Thread'); var User = keystone.list('User'); var log4js = require('log4js'); var logger = log4js.getLogger(); exports = module.exports = function(req, res) { var view = new keystone.View(req, res), locals = res.locals; ...
import styled from "styled-components" export const SectionDevelopment = styled.section` min-height: 800px; margin-top: 130px; background: #f9f9f9; @media (max-width: 1140px) { margin-top: 80px; } .bg { grid-column: 1/3; background: url(${props => props.background}); background-position: ce...
//DBresponder var KakaoDecrypter = require("KDBDecrypter.js") function readInputStream(is) { var br = new java.io.BufferedReader(new java.io.InputStreamReader(is)); var readStr = ""; var str = null; while (((str = br.readLine()) != null)) { readStr += str + "\n"; } br.close();...
var fs = require('fs'); var child_process = require('child_process'); var Buff = require('buffer').Buffer; var fd, config = {}, check_e = 0, stop = false; var constant = { dbits: [5, 6, 7, 8], sbits: [1, 1.5, 2], parity: ['NONE', 'EVEN', 'MARK', 'ODD', 'SPACE'], on_off: ['on', 'off'], read_end: ['\n...
/* Copyright (C) 2008-2009 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even th...
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity,PermissionsAndroid, Image,AppState } from 'react-native'; import { connect } from 'react-redux'; import Heartbeat from './Heartbeat'; import heart from './heart.png'; import SmsListener from 'react-native-android-sms-listener'...
/** * * GlobalSetting * */ import React, { memo, useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { Helmet } from...
import { Point, LineString, Polygon, LinearRing, Circle } from 'ol/geom'; const transformGeometry = (geometry, fromProjection, toProjection) => { if (fromProjection && toProjection) { return geometry.clone().transform(fromProjection, toProjection); } return geometry; }; /** * Contains informations for transfor...
import React from 'react'; import { API_ROOT } from '../api-config'; import { withRouter } from 'react-router-dom'; import { PaneTop, PaneBottom } from './Pane' import Button from './Button' import ModelIntro from './ModelIntro' import { Tree } from 'hierplane'; /*******************************************************...
import React, {useCallback, useEffect, useState} from 'react'; import Web3 from 'web3'; import {useDispatch, useSelector} from 'react-redux'; import {toast} from 'react-toastify'; import { Heading, Text, Flex, Modal, Box, Loader, Card, Image, Icon, Blockie, } from 'rimble-ui'; import { _isMetaMask...
import React from "react" import { graphql, Link } from "gatsby" import Layout from "../../components/layout" import { Breadcrumbs, Typography } from "@material-ui/core" import { DateTime } from "luxon" import { makeStyles } from "@material-ui/core/styles" import Frise from "../../components/Frise" import { budgetF...
import React, {Component} from 'react'; import moment from 'moment'; import { Button, PullToRefresh } from 'antd-mobile'; import classNames from 'classnames'; import router from 'umi/router'; import Tabs from '@components/Tabs'; import Expired from '@assets/expired.png'; import showCoupon from '@components/Coupon'; im...
#!/usr/bin/env node 'use strict'; var fs = require('fs'), async = require('async'), Promise = require('bluebird'), Parsers = require('./parsers.js'), Matchmaker = require('./matchmaker.js'), args = process.argv.slice(2), inputCompanies = args[0], inputProfessionals = args[1], inputMatc...
import { useState } from "react"; import { Image, StyleSheet, Text, TouchableOpacity, View, ScrollView, SafeAreaView } from "react-native"; import { BigNumber, utils } from "ethers"; import { truncateAddress } from "../helpers/utils"; import { PERSONAL_SIGN, SEND_TRANSACTION, SIGN_TRANSACTION } from "../constants"; co...
let {Transform} = require('stream') let os = require('os') let crypto = require('crypto') let readline = require('readline') let util = require('util') let fs = require('fs') let MailComposer = require('nodemailer/lib/mail-composer') let lockfile = require('lockfile') let feed = require('grepfeed/lib/feed') let gfu =...
import React from 'react'; import { Form, Button, Card, Table, Row, Col, Radio, Input, DatePicker, Divider } from 'antd'; import BreadcrumbCustom from '../../BreadcrumbCustom'; import { getFormItem, getRadioList } from '../../baseFormItem'; import "./index.less"; import moment from 'moment'; //调拨类型 export const alloca...
import React from "react"; import DescriptionIcon from "@material-ui/icons/Description"; import DeleteIcon from "@material-ui/icons/Delete"; import PostAddIcon from "@material-ui/icons/PostAdd"; import defaultPostTypeConfig from "../post"; import capitalize from "../../utils/capitalize"; import Content from "./Content...
var WaveformCreator = { init: function(options){ this.buffers = options.buffers; this.wrapper = options.container; var thisElm = this; this.appendElements(options); var postFilter = function(buffer, fill, i){ var peaks = thisElm.getPeaks(buffer); thisElm.drawWave(...
const Category = require('../models/category'); const Product = require('../models/product'); const Order = require('../models/order'); const Customer = require('../models/customer'); const ShippingMethod = require('../models/shippingMethod'); const cors = require('@koa/cors'); const fs = require('fs-extra') const pa...
/* eslint-disable import/no-extraneous-dependencies, @wordpress/dependency-group */ /** * External dependencies */ const { sync: globSync } = require('fast-glob'); const MiniCSSExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); const BrowserSyncPlugin = require('browser-sync-webpack-pl...
'use strict'; require('http-xak'); var config = require('./load-config.js'); var cmd_langs = require('./cmd-script_langs.js'); var cmd_scripts = require('./cmd-script_pack.js'); var cmd_styles = require('./cmd-styles_pack.js'); var cmd_modules = require('./cmd-modules.js'); var cmd_css = require('./cmd-css.js'); var m...
var shipOptions = {}; function handleUpdates(data) { if ("updates" in data && data["updates"]) { console.log("Got update"); if ("Player" in data) { loadPlayers(); } } } function loadUniverses() { var universes = window.client.$_ALL_Universe; for (var k in universes) { var unive...
import React from "react"; import MaterialTable from 'material-table'; import GridContainer from "components/Grid/GridContainer.js"; import GridItem from "components/Grid/GridItem.js"; import { Delete, Edit } from "@material-ui/icons"; import Card from "components/Card/Card.js"; import CardHeader from "components/Card/...
import React, { useEffect, useState, useContext } from 'react'; import GridItem from "../components/Grid/GridItem.js"; import Button from "../components/CustomButtons/Button.js"; import Card from "../components/Card/Card.js"; import CardBody from "../components/Card/CardBody.js"; import CardHeader from "../components/...
import axios from 'axios'; import PropTypes from 'prop-types'; // react import { useEffect, useState } from 'react'; import { Link as RouterLink, useNavigate } from 'react-router-dom'; // material import Box from '@mui/material/Box'; import InputLabel from '@mui/material/InputLabel'; import OutlinedInput from '@mui/mat...