text
stringlengths
3.22k
29.5k
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.__RewireAPI__ = exports.__ResetDependency__ = exports.__set__ = exports.__Rewire__ = exports.__GetDependency__ = exports.__get__ = undefined; var _isExtensible = require('babel-runtime/core-js/object/is-extensible'); var _isExte...
/** * RPC handler for WAELLET side * * @module @aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/wallet-rpc * @export WalletRpc * @example import WalletRpc from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/wallet-rpc' */ import Ae from '../../../ae' import Accounts from '../../../accounts'...
import { memoize, curry } from 'ramda'; export const $ = (selector, context) => { return (context || document).querySelector(selector); }; export const $$ = (selector, context) => { return (context || document).querySelectorAll(selector); }; export const getElStyle = el => window.getComputedStyle(el); export co...
/** * Copyright 2011 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import Path from 'path'; import Url from 'url'; import { createContext } from 'vm'; import AsyncModule from './async-module'; import ModuleTransport from './module-transport'; import Request from './request'; import Registry from './registry'; import calculatePID from '../lib/helpers/pid'; import defineProperties from...
$(document).ready(function() { window.modaction_legend_innerhtml = $("#modaction_legend").text(); window.action_submit_value = $("#action_submit").val(); $('#select_template').find("input:submit").hide(); $('#select_template').change(function() { $('#select_template').submit(); }); $("s...
var searchFormEl = document.querySelector('#search-form'); var searchInputVal = document.querySelector('#input-city'); var currentWeather = document.querySelector('#currentWeather'); var fiveDayForecast = document.querySelector('#fiveDayForecast'); var SH = document.querySelector('#searchHistory'); const APIKey = "<KE...
import { getItems } from '@keystonejs/server-side-graphql-client'; import slugify from '@sindresorhus/slugify'; import cuid from 'cuid'; import { Text, MongoTextInterface as MongoSlugInterface, KnexTextInterface as KnexSlugInterface, PrismaTextInterface as PrismaSlugInterface, } from '../Text/Implementation'; ...
import React, { Component } from "react"; import { Link } from "react-router-dom"; import { Icon } from "antd"; import { connect } from "react-redux"; // import GoogleLogin from "../../components/GoogleLogin"; /* import DropMenu from '../../components/DropMenu'; */ import Category from "../../components/Category"; imp...
import React from 'react'; import PropTypes from 'prop-types'; import * as R from 'ramda'; import { withRouter } from 'react-router-dom'; import ReactSelector from 'react-select'; import { connect } from 'react-redux'; import styled from 'styled-components/macro'; import { getBoard, getBoardVersions } from '../../stat...
import {config} from './config.js'; import {generatePlots} from './browseDBGraphs.js'; import { parCoords } from './overviewDBTab.js'; // This script contains all the items that appear on the Browse DB Tab. // 1. Tab // 2. Sliders // 3. Filter Events // 4. Clear contents of divs fct. // 5. Tooltip icon information // ...
import React from 'react'; import {Row, Col, Card, Form, Button, InputGroup, FormControl, DropdownButton, Dropdown,Table} from 'react-bootstrap'; import { ValidationForm, TextInput, BaseFormControl, SelectGroup, FileInput, Checkbox, Radio } from 'react-bootstrap4-form-validation'; import MaskedInput from 'react-text-ma...
import React, { useState, useEffect } from "react"; import { Grid, TextField, Button, Switch } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import styles from "./demandFormStyle"; import classNames from "classnames"; import { useTranslation } from "react-i18next"; import { connect } ...
import * as React from 'react'; import { AppContext } from '../AppContext'; import { ReadFile } from '../Files'; import { styled, useTheme, alpha } from '@mui/material/styles'; import Box from '@mui/material/Box'; import Drawer from '@mui/material/Drawer'; import CssBaseline from '@mui/material/CssBaseline'; import Mui...
const { makeNoise2D, makeNoise3D } = require('open-simplex-noise') const tree = require('./parts/tree') var hash = require('murmur-numbers') function getHighestBlock(chunk, x, z) { for (var y = 120 - 1; y >= 0; y = y - 1) { var val = chunk.get(x, y, z) if (val != 0) return {level: y, block: val} } return null ...
// Copyright 2019 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. 'use strict'; importScripts('./auth-consts.js'); importScripts('./shared.js'); importScripts('./caspian_web.js'); const LoadWasm = new Promise(function(...
//output effects to chat at the start of a token's turn (with timeout to guard against hilarity when deleting a token) //TODO: Add more logging. Bug reporter integration. //Dev mode integration const MODULE_ID = "ae-to-chat"; Hooks.once('devModeReady', ({ registerPackageDebugFlag }) => { registerPackageDebugFlag...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { Link } from "react-router-dom"; import { Message, Divider, Container, Segment, Form, Button, Header, Label, Grid, Image, } from "semantic-ui-react"; import { useWindowSize } from "re...
const enums = require('./enums'); const util = require('util'); const winston = require('winston'); const msgPack = require('msgpack-lite'); const fs = require('fs-extra'); const interface = require('./judger_interfaces'); const judgeResult = require('./judgeResult'); const judgeStateCache = new Map(); const progressP...
import React, { PureComponent, Fragment } from 'react'; import { Card, Button, Icon, Pagination, Table, Menu, Dropdown, message } from 'antd'; import { connect } from 'dva'; import Swal from 'sweetalert2'; import moment from 'moment'; import { routerRedux } from 'dva/router'; import PageHeaderWrapper from '@/component...
$(document).ready(function () { init_data() }) // var base_url = 'http://192.168.3.11:8084'; // 初始化页面数据 function init_data() { // 获取所有模版并渲染 // console.log('init') updateTemplateSelector() } var templates = [] function updateTemplateSelector() { // console.log('updateTemplateSelector') a...
const { determineActionSequence, executeWorkflow, findProfile, IG_REGISTRY, initializeContext } = require('../reporting_workflow'); const EXAMPLE_ACTION_IMPL = { 'init-counter': context => (context.counter = 0), 'increment-counter': context => context.counter++, 'check-validity': context => (context.ex...
import React, { Component } from "react"; import { Col, Row, Form, FormGroup, Input, Label, Button, Card, CardHeader, CardBody, ListGroup, ListGroupItem, Table, Badge, Container } from "reactstrap"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import RequestAside from ...
import React, { Component } from 'react'; import './Movie.scss'; var axios = require('axios'); import MovieItem from './MovieItem'; import SimilarMovieItem from './SimilarMovieItem'; import Rating from './Rating'; import moment from 'moment'; import { Remote } from './Remote'; class Movie extends Component { con...
/* * Copyright 2021 MeshDynamics. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writ...
/** * Returns a boolean to indicate if the participant is connected to the conference or not. * @param participant Participant object to get the connection status. * @returns `true` if the participant is connected, `false` otherwise. */ const isConnected = (participant) => { return [ 'Decline', 'Error', 'Kicked...
import { getThreeEnvironment } from './copypastes/ThreeEnvironment.js'; import { vShader, fShader, uniforms, LINE_JOIN_TYPES } from './copypastes/LineOutputShaders.js'; class LineMesh{ constructor(options = {}){ /* Crisp lines using the technique in https://mattdesl.svbtle.com/drawing-lines-is-har...
import AnnotationDiscussion from './AnnotationDiscussion/AnnotationDiscussion.vue' import AnnotationEditorHeader from './AnnotationEditorHeader/AnnotationEditorHeader.vue' import AnnotationModuleMainIdea from './../../AnnotationTypeModules/MainIdea/MainIdea.vue' import AnnotationModuleConfusedClarified from './../../A...
//init method below contains the code to read the data from the csv file //'Global' variables w2 = 1000; h2 = 600; padding2 = 50; svgHeight2 = h2 + padding2; svgWidth2 = w2 + padding2; defaultColour = "RGB(101, 143, 111)"; renewablesColour = "RGB(73, 181, 67)"; oilColour = "blue"; gasColour = "RGB(67, 147, 181)"; coa...
var L = require('leaflet'); var CanvasContext = require('../canvas/CanvasContext'); var GeometryRenderer = require('../canvas/GeometryRenderer'); var GeoJsonUtils = require('../data/GeoJsonUtils'); var GeometryUtils = require('../data/GeometryUtils'); var GridLayer = require('./compatibility/GridLayer'); /** * This l...
import * as d3 from 'd3'; export function renderChart (wrapper, curData) { if (!wrapper) { return } const { select: d3Select, scaleBand: d3ScaleBand, scaleLinear: d3ScaleLinear, quantile: d3Quantile, ascending: d3Ascending, min: d3Min, max: d3Max, map: d3Map, axisBottom:...
var game = new Phaser.Game(448, 496, Phaser.AUTO, "game"); var PacmanGame = function (game) { this.map = null; this.layer = null; this.numDots = 0; this.TOTAL_DOTS = 0; this.score = 0; this.scoreText = null; this.pacman = null; this.clyde = null; this.pinky = null; ...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import AceEditor from 'react-ace'; import { ModalLayout, ModalBody, ModalHeader, ModalFooter, } from '@strapi/design-system/ModalLayout'; import { Typography } from '@strapi/design-system/Typography'; import { Button } from ...
"use strict"; //let Logger = require('logger-clockmaker')('SlotFiller') let Helper = require("helper-clockmaker").Helper; let ss = require("sentence-similarity"); let similarity = ss.sentenceSimilarity; let similarityScore = ss.similarityScore; let deepcopy = require("clone"); let debug = require("debug")("SlotFiller"...
// // Copyright (c) 2014 <NAME>. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions a...
let pageUrl, pageUrlParams = {}, socket, user, sceneElement, cameraElement, assetsElement; const DEFAULT_CAMERA_POSITION = { x: 0, y: 1.6, z: 0 }, currentHost = 'http://' + new URL(window.location).host; //================\\ // Init Functions \\ //================\\ function init() { // Need t...
var inherits = require('inherits'); var TwisterResource = require('./TwisterResource.js'); //var TwisterTorrent = require('./TwisterTorrent.js'); /** * Describes the stream of posts of a {@link TwisterUser}. * @class */ var TwisterStream = function (name,scope) { TwisterResource.call(this,name,scope); ...
/* eslint-disable dot-notation */ /* eslint-disable max-len */ /* eslint-disable no-param-reassign */ /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ const path = require('path'); const fs = require('fs'); // https://www.electronjs.org/ const { app, BrowserWindow, net,...
'use strict' const { versions } = require('process') const test = require('ava') const { runFixture } = require('../helpers/main') const { startServer } = require('../helpers/server') const TELEMETRY_PATH = '/track' const BUGSNAG_TEST_KEY = '00000000000000000000000000000000' // Normalize telemetry request so it ca...
import { loadGameUI, playerRotation, seats, seatSelected } from './gameUI.js'; import { isDragging, MENU_DEPTH, CARD_HEIGHT } from './cards.js'; import { hands, addHand, updateHand } from './hands.js'; export var config = { type: Phaser.AUTO, parent: 'game-area', dom: { createCon...
import React, { PureComponent } from 'react'; import { Trans, withTranslation } from 'react-i18next'; import Loading from './common/Loading'; import ReactSwipe from 'react-swipe'; import smoothscroll from 'smoothscroll-polyfill'; import Footer from './common/Footer'; import i18n from 'i18next'; import { HelperTranslate...
import React from 'react' import SRP from '~/SRP' import Spinner from 'react-loading-animation' import urlEncodeParams from '%/factory/urlEncodeParams' import Factory from '%/factory/fetchingData' import srpData from './srpdata' import defaultSearch from './defaultsearch' const searchFactory = new Factory() class Srp...
//// option to show tool-tips for high-level folders function showTooltips(ev) { var folderName = ev.parentElement.innerText; bootbox.alert({ message: highLevelFolderToolTip[folderName], button: { ok: { className: 'btn-primary' } }, centerVertical: true }) } ///////// Option t...
/** * @file demos/xui-layer.js * @author chenbo09 */ import {defineComponent} from 'san'; import {Row, Tip, Layer, Button, Select, TextBox, MultiPicker, Toast, BoxGroup} from 'san-xui'; /* eslint-disable */ const template = ` <template> <x-row label="center-to-view=true width=700 auto-hide-except-parent=false"> <x...
import React, {PropTypes} from 'react'; import {HOC} from 'formsy-react'; import SemiInputComponent from './SemiInputComponent'; import TextField from 'material-ui/TextField'; import DropDownMenu from 'material-ui/DropDownMenu'; import Checkbox from 'material-ui/Checkbox'; import {List, ListItem} from 'material-ui/List...
var config = require('../config.json'); var _ = require('lodash'); var jwt = require('jsonwebtoken'); var bcrypt = require('bcryptjs'); var Q = require('q'); var mongo = require('mongoskin'); var db = mongo.db(config.connectionString, { native_parser: true }); var util = require("util"); db.bind('users'); var sqldb =...
import { validation } from "../validation/validation"; import { loggerService } from "../logger/logger.service"; import { CustomProperty } from "./custom-property.class"; import { preloaded } from "./preloaded-properties.service"; import { get, define } from "../common/getterSetter"; // const singleExceptions = [Da...
import React from "react"; import SerialPort from "serialport"; import { fromEvent, never, periodic, of } from "most"; import { evolve, always, clamp, equals, adjust, T } from "ramda"; import { getRGBArrayFromPalette, getPaletteFromRGBArray, getLayoutsFromArray, getLayouts } from "../common/utils"; import Loade...
/* * Copyright (C) 2017 <NAME> * * 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 agr...
'user strict'; /** * @author <NAME> - <<EMAIL>> */ const assertRevert = require('../helpers/assertRevert'); const TokenProxy = artifacts.require('TokenProxy.sol'); const TokenCore = artifacts.require('TokenCore.sol'); const ElasticSupplyTokenDelegate = artifacts.require('ElasticSupplyTokenDelegate.sol'); const AMO...
const AbstractMessage = require('./AbstractMessage.js'); class AudioPlayer extends AbstractMessage { constructor(params) { super(params); this._events = [ ['mouseup', 'at_'+this.domId, 'onMouseUp'], ['mousedown', 'at_'+this.domId, 'onMouseDown'], ['mousemove', 'at_'+this.domId, 'onMouseMove'], ['clic...
import React, { PropTypes } from 'react'; import Dialog from '../../elements/Dialog'; import RaisedButton from '../../../components/elements/RaisedButton'; import RS, { Option } from '../../../resources/resourceManager'; import CommonTextField from '../../elements/TextField/CommonTextField.component'; import moment fro...
const fs = require('fs'); const cheerio = require('cheerio') //for html testing const inlineCss = require('inline-css'); //for css testing const cssParser = require('css'); const md5 = require('md5'); const _ = require('lodash'); //for some sanity //include custom matchers const styleMatchers = require('jest-style-mat...
#!/usr/bin/env node /** * ISC License * * Copyright (c) 2020, <NAME>, @WebReflection * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE...
var path = require("path"); var fs = require("fs"); var Q = require("q"); var Bacon = require("baconjs"); module.exports = function(grunt) { "use strict"; var util = require("./util.js")(grunt); var shell = require("./shell.js")(grunt); var profiler = require("./profiling.js")(grunt); var _ = grunt.util._;...
import usfmJS from 'usfm-js' import rewritePattern from 'regexpu-core' // const usfmMarkersWithContentToDiscard = [ // // see http://ubsicap.github.io/usfm/index.html // // Identification // "id", // "usfm", // "ide", // "sts", // "rem", // "h", // "toc#", // "toca#", // // Introductions // ...
const fs = require('fs').promises; const path = require('path'); const { HEADER_END, splitHeader } = require('./Common'); const { STATE, SOCKET_TIMEOUT, STATE_INTERVAL } = require('../defs'); class Receiver { /** * @param {number} ind * @param {import('net').Socket} socket * @param {string!} senderId *...
/** @module fractionCalc */ const inquirer = require("inquirer"); /** @namespace */ const fractionCalc = { /** * Type definition * @typedef {Object} FractionObj * @property {number} numerator * @property {number} [denominator] * @property {boolean} [negative] - True if fraction is negative, falsy othe...
'use strict'; 'require view'; 'require ui'; 'require form'; 'require tools.widgets as widgets'; 'require fs'; 'require uci'; function setParams(o, params) { if (!params) return; for (var key in params) { var val = params[key]; if (key === 'values') { for (var j = 0; j < val.length; j++) { var args = val[j...
/*jshint loopfunc: true */ var Qs = require('querystring'); var Fs = require('fs'); var Hoek = require('hoek'); var LFiber = require('./fiber'); var Request = require('request'); var internals = {}; internals.Service = function(servJson, host, options) { options = options || {}; if (!host) { throw new Error...
/* ================================================================================ CommentPress AJAX Comment Submission (in page) ================================================================================ AUTHOR: <NAME> <<EMAIL>> -------------------------------------------------------------------------------- NO...
/* eslint no-console:0 */ 'use strict'; import panzoom from 'panzoom'; import { uniqueID } from './lib/helpers'; import * as cardinal from './lib/cardinal'; import * as node from './lib/node'; import DesignToken from './design-token'; import tokens from './tokens.json'; // console.log(tokens); const DTF = function...
const Discord = require('discord.js'); const emoji = require('../../constants/Simulator/Json/emojis.json'); const mobs = require('../../constants/Simulator/Json/mobstats.json'); const getLevel = require('../../constants/Simulator/Functions/skilllvl.js'); const playerStats = require('../../constants/Simulator/Functions/...
var R = require('../web_modules/recurrentjs/recurrent'); // model parameters var generator = 'lstm'; // can be 'rnn' or 'lstm' var hidden_sizes = [100, 100]; var letter_size = 5; // size of letter embeddings // optimization var regc = 0.000001; // L2 regularization strength exports.learning_rate = 0.01; // learning rat...
import React, { Component } from 'react' import sample from 'lodash/sample' import difference from 'lodash/difference' import pickBy from 'lodash/pickBy' import startsWith from 'lodash/startsWith' import IronmanDisplay from '../components/IronmanDisplay' import IronmanSettings from '../components/IronmanSettings.js' im...
const Discord = require('discord.js') const Role = require('./Role') const Player = require('./Player') // Channel permissions // 265280 -> See and can write (during the day) // 263168 -> See but can't write (during the night) module.exports = class Game { /** * Game constructor. Represent a Werewolfs game * ...
import React, { Component } from 'react'; import { connect } from 'dva'; import { Table, Badge, Button, Divider, Modal, Form, message, Popconfirm, } from 'antd'; import StoreModal from '@/components/StoreModal'; import ColumnConfig from '@/components/ColumnConfig'; import PageHeaderWrapper from '@/compo...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Row, Col, Form, FormGroup, Input } from 'reactstrap'; import Store from '../../../store/userInfoStore/index'; import DisplayIdenticons from '../../../general/identicons/index'; import * as CreateAccountAction from ...
"use strict"; const RoomRepository = require("./repository.Room"); const IntelLib = require("./lib.intel"); const TravelLib = require("./lib.travel"); const REPORT_CPU_THRESHOLD = 50; const DEFAULT_MAXOPS = 20000; const DEFAULT_STUCK_VALUE = 3; class Traveler { constructor() { if (!Memory.empire) { ...
import React, { Component } from "react"; import PropTypes from "prop-types"; import CustomPropTypes from "custom-prop-types"; import gql from "graphql-tag"; import { Query, Subscription } from "react-apollo"; import { Switch, Route, Redirect } from "react-router-dom"; import { Titled } from "react-titled"; import { ge...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
import DOM from './dom'; import Contract from './contract'; import './flightsurety.css'; (async() => { let result = null; let contract = new Contract('localhost', () => { // Read transaction contract.isOperational((error, result) => { console.log(error,result); disp...
const fs = require('fs'); const { promisify } = require('util'); const readdir = promisify(fs.readdir); const { RichEmbed } = require('discord.js'); module.exports.run = async (bot, message, args, funcs, con) => { try { function decideWhereToSend(helpDestination, commandList, message, funcs) { let comman...
// // This files just contains a bunch of mappings of suits/ranks to various unicode characters // that can be used to render them in varying levels of "graphical" ways. There are a number // of these that don't really have good unicode representations, but this is mostly a "best match" // /** * @module unicode *...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require('react')); var _Scrollbar = _interopRequireDefault(require('./Scrollbar')); var _propTypes = _interopRequireDefault(require("prop-types")); var _joinClasses = _int...
var gulp = require('gulp'); var gutil = require('gulp-util'); var path = require('path'); var del = require('del'); var fs = require('fs'); var runSequence = require('run-sequence'); var through = require('through2'); var chmod = require('gulp-chmod'); var less = require('gulp-less'); var merge = require('merge-stream'...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // // Original code forked from https://github.com/Quramy/ts-graphql-plugin Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode-languageserver-types"); const embeddedSu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const events_1 = require("events"); const fs_1 = tslib_1.__importDefault(require("fs")); const net_1 = tslib_1.__importDefault(require("net")); const os_1 = tslib_1.__importDefault(require("os")); const vscode...
import {configure, observable, action, flow, runInAction} from "mobx"; import {FrameClient} from "@eluvio/elv-client-js/src/FrameClient"; import SiteStore from "./Site"; // Force strict mode so mutations are only allowed within actions. configure({ enforceActions: "always" }); const Hash = (code) => { const chars...
import React from "react"; import { View, Text, TouchableOpacity, Image } from "react-native"; import PropTypes from "prop-types"; import * as Constants from "../../contants"; import { listItemStyles } from "../style"; import WeekBar from "./WeekBar"; import ListItemHeader from "./ListItemHeader"; const CENTER_STYLES ...
/** * * CreateView * */ import React from "react"; // import PropTypes from 'prop-types'; // import styled from 'styled-components'; import ProfileView from 'components/ProfileView'; import Dialog from '@material-ui/core/Dialog'; import TextField from '@material-ui/core/TextField'; import Grid from...
'use strict'; var net = require('net'), util = require('util'); var _ = require('lodash'), async = require('async'), eventEmitter2 = require('eventemitter2'), jsonStream = require('json-stream'); var ricochetServerError = require('./ricochet.error.js'); var ipv6Mask = /^\:\:ffff\:((?:[0-9]{1,3}\.){3}[0-9]{1,3})$...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _omit2 = require('lodash/omit'); var _omit3 = _interopRequireDefault(_omit2); var _isUndefined2 = require('lodash/isUndefined'); var _isUndefined3 = _interopRequireDefault(_isUndefined2); var _createClass = function () { function d...
// Add the module as a dependency to your application by adding a `<module>` // item to the `<modules>` element of your `tiapp.xml` file: // <ti:app> // ... // <modules> // <module platform="android">ru.netris.mobile.exoplayer</module> // </modules> // ... // </ti:app> const ExoPlaye...
/* * Copyright 2017 Uncharted Software Inc. * * 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 o...
/* 18.8.21 fills CT_Fills */ function parse_fills(t, opts) { styles.Fills = []; var fill = {}; t[0].match(/<[^>]*>/g).forEach(function(x) { var y = parsexmltag(x); switch(y[0]) { case '<fills': case '<fills>': case '</fills>': break; /* 18.8.20 fill CT_Fill */ case '<fill>': break; case '</fill>': s...
import React, { Component } from 'react'; import { Image, Linking, RefreshControl, ScrollView, ToastAndroid, StatusBar, FlatList, TouchableOpacity } from 'react-native'; import { Container, Header, Content, Button, Icon, Text, Title, Left, Right, Body, Input, Item, Footer, View, FooterTab, Badge } from 'native-...
/* eslint no-param-reassign: 1 */ import { mean as d3Mean } from 'd3-array'; import { binEventsByEntityId, getEventUuid, getEventCountLookup } from './data-utils'; import { TS, TS0, TS_PREV, TS_NEXT, EVENT_NAME, EVENT_UUID, EVENT_COUNT, ELAPSED_MS, ELAPSED_MS_ROOT, FILTERED_EVENTS, } from '../cons...
import constants from 'constants/AppConstants'; import { DEFAULT_SLOT_SIZE } from 'constants/SlotConstants'; import forEach from 'lodash/forEach'; import map from 'lodash/map'; import Moment from 'moment'; import { extendMoment } from 'moment-range'; const moment = extendMoment(Moment); function addToDate(date, day...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
import { QinoqMorph } from '../qinoq-morph.js'; import { VerticalLayout, HorizontalLayout, Label } from 'lively.morphic'; import { QinoqButton } from '../components/qinoq-button.js'; import { pt, rect } from 'lively.graphics'; import { string } from 'lively.lang'; import { CONSTANTS } from './constants.js'; import { C...
/*TimeInput Component*/ import React, { Component } from 'react'; import { IconContext } from "react-icons"; import { IoIosSend } from "react-icons/io"; import { AiOutlineCloseCircle } from "react-icons/ai"; import $ from 'jquery'; class Time extends Component { constructor(props){ super(props); ...
var socket = io.connect({ secure: true }) var sysdata; var firstload = true var IFACES_STATE = []; /* var options = { autoResize: true, height: '100%', width: '100%', clickToUse: true, configure: { enabled: false }, interaction: { hover: tr...
// import { Layout } from '../components' import NewLayout from "../components/NewLayout/NewLayout" function OtherLegislativeEndorsments() { return ( <NewLayout pageTitle="Other Endorsements"> <p> <h4> <b> In addition to our priorities, the GGP identified the following ...
/** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ String.prototype.tmpl = function (tmpl) { if (typeof(tmpl) == 'undefined' || !tmpl) { tmpl = 'component'; } return this + (this.indexOf('?') == -1 ? '?' : '&') + 'tm...
import { getSlotElement } from '../utils'; import getIlcConfig from '../ilcConfig'; import TransactionBlocker from './TransactionBlocker'; import singleSpaEvents from '../constants/singleSpaEvents'; import ilcEvents from '../constants/ilcEvents'; import scrollRestorer from '@mapbox/scroll-restorer'; export const slot...
import React, {Component} from 'react'; import './App.less'; import './components/Components.css'; import {VaspRestService} from "./services/VaspRestService"; import VaspSelector from "./components/VaspSelector"; import {Button, Card, Col, Row, Space} from "antd"; import VaspUI from "./components/VaspUI"; import {v4 as...
console.clear(); const toMatrix = function(str) { return str.split("\n").map(function(element){ return element.split(/\s+/).map(function(el){ return parseInt(el); }); }); }; const input = toMatrix(String( `798 1976 1866 1862 559 1797 1129 747 85 1108 104 2000 248 131 87 95 201 419 336 65 208 57 74 433 ...
"use strict"; const TreeView = require("../lib/consumers/tree-view.js"); const Options = require("../lib/options.js"); const UI = require("../lib/ui.js"); describe("Tree-view", () => { let projectRoot; let entriesList; let entries; const ls = () => (entries = TreeView.ls()); before(() => { resetOptions(); ...
const say = console.log; const fs = require('fs'); const path = require('path'); const numstr = require('utils-numstr'); const et = require('../index'); /* Print script usage to screen. ** */ function printUsage() { say('\nUsage:', path.basename(process.argv[1], '.js'), process.argv[2], '<accountFile> [options]');...