text
stringlengths
3.22k
29.5k
// var connection = new WebSocket('ws://localhost:9090'); // const connection = new WebSocket('ws://caito-demo.mybluemix.net:443'); var host = location.origin.replace(/^http/, 'ws') // console.log(host); var options = { headers: { "cid": "course1", "uuid": "course1", "configure": "en-US_BroadbandModel" ...
'use strict'; const util = require('util'); const fs = require('fs'); const hjson = require('hjson'); const StringifySortReplacer = require('../../server_utils/stringify_sort_replacer'); const Interpolate = require('../../server_utils/interpolate'); const schemas = {}; // schema cache const ConfigTypes = { base...
/* -*- 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 the Lic...
import React, { useState, useEffect, useCallback, useRef } from 'react'; import ReactGA from 'react-ga'; import Spotify from 'spotify-web-api-js'; import { useLocation, Link, Redirect } from 'react-router-dom'; import { Textfit } from 'react-textfit'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* * * * (c) 2009-2021 <NAME> * * Extend SVG and Chart classes with focus border capabilities. * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import H from '../Core/Globals.js'; import SVGElement from '../Core/Rende...
const perColorUI = document.getElementById('grade'); const perValidUI = document.getElementById('percentage-weightage'); function masterClac() { // let peratus = Number(document.getElementById('ukuran').value); // console.log(ukuran); // console.log('john'); let peratus = Number(document.getElementById('p...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
$(document).ready(function() { $("#id_authority_record_id_widget_id").val(window.id_field); $("#id_authority_record_name_widget_id").val(window.name_field); if (window.id_field) { $("#id_entity_id_widget_id").val(window.id_field); $("#id_entity_name_widget_id").val(window.name_field); } //set_entit...
var pathName = window.location.pathname; var regexp = /\/user\/(.*)\/live/; var username = pathName.match(regexp)[1]; var webSocketUrl = 'wss://' + location.host + '/one2many'; webSocketUrl = 'ws://' + 'localhost:8443' + '/one2many'; webSocketUrl = 'wss://' + 'localhost:8080' + '/stream/' + username; // webSocket...
import React from "react" import PropTypes from "prop-types" import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconButton'; import MainMenu from './MainMenu'; import MenuDrawer from './MenuDrawer'; import Menu from '@material-ui/cor...
import React, { useState, useEffect } from "react"; import { StyleSheet, View, ScrollView, Alert, Dimensions } from "react-native"; import { Icon, Avatar, Image, Input, Button } from "react-native-elements"; import * as Permissions from "expo-permissions"; import * as ImagePicker from "expo-image-picker"; import * as L...
// GLOBAL CONSTANTS const SECOND = 1000; const MINUTE = SECOND * 60; const HOUR = MINUTE * 60; const DAY = HOUR * 24; const WEEK = DAY * 7; const weekdays = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]; const weekdays_short = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]; const mo...
import React, { useRef, useReducer, useState } from 'react' import { AddressField, BackButton, Bar, Box, Button, Card, CardLayout, Checkbox, CircleGraph, ContextMenu, ContextMenuItem, DataView, DiscButton, Distribution, DropDown, EmptyStateCard, Field, GU, Header, Help, IconArr...
//https://github.com/EnCiv/undebate-ssp/issues/88 // example code thanks to https://react-table.tanstack.com/docs/examples/editable-data import React, { useRef } from 'react' import { createUseStyles } from 'react-jss' import { useTable, usePagination } from 'react-table' import ObjectID from 'isomorphic-mongo-objectid...
import React from 'react'; import { StyleSheet, Dimensions, ScrollView, Image, ImageBackground, Platform, TouchableOpacity, } from 'react-native'; import { Block, Text, theme, Button as GaButton } from 'galio-framework'; import { Images, nowTheme } from '../constants'; import LoadingView from 'react-nativ...
/* ---------------------------------------------------------------------------- Copyright 2015 SPEL Technologies, Inc. All Rights Reserved. Authors: <NAME> and <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
// okResp formats id and result as a JSON-RPC result object function okResp(id, result) { id = id || null; return { "jsonrpc": "2.0", "id": id, "result": result }; } // The Server class holds handlers that implement the interfaces on the given IDL. // This constructor creates a Contract for the given idl that ...
import '@babel/polyfill' import { promisify } from 'bluebird' import assistStyles from 'css/styles.css' import { state, updateState } from './helpers/state' import { handleEvent } from './helpers/events' import { legacyCall, legacySend, modernSend, modernCall } from './logic/contract-methods' import { openWebs...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
const createGame = (width=300, height=600, isChalange=false, nextShapes = [] ) => { const cols = 10; const rows = 20; const block_width = width / cols; const block_height = height / rows; let interval; let paused = false; let gameOver = false; let isChallenge = false; let players =...
import * as React from 'react'; import { styled } from '@mui/material/styles'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBody'; import TableCell, { tableCellClasses } from '@mui/material/TableCell'; import TableContainer from '@mui/material/TableContainer'; import TableHea...
var path = require('path') , fs = require('fs-extra'), prompt = require('prompt'), generator = require(path.join("..", "generator")), mongoose = require('mongoose'), validate = require('mongoose-validator').validate; var walk = function (dir) { var results = [] var list = fs.readdirSync(dir) list.forEa...
import React, { Component } from "react"; import Database from "variables/Database.js"; import { Route, Switch, Link } from 'react-router-dom'; import moment from 'moment'; // import { AddBox, ArrowUpward } from "@material-ui/icons"; // import ReactDOM from "react-dom"; import MaterialTable, { MTableBodyRow } from ...
/*jslint browser: true*/ /*continue: true*/ /*global self,postMessage*/ /* Dedicated websocket "fas" worker, send data to the server if enabled https://github.com/grz0zrg/fas */ /*********************************************************** Fields. ***********************************************************...
'use strict' const crypto = require('crypto') const request = require('requestretry') const StreamChunkify = require('stream-chunkify') const through2Concurrent = require('through2-concurrent') const Authorization = require('./Authorization') const Utils = require('./Utils') /** * Uploads a stream to Azure Blob Stor...
"use strict"; var _getIterator2 = require("babel-runtime/core-js/get-iterator"); var _getIterator3 = _interopRequireDefault(_getIterator2); var _slicedToArray2 = require("babel-runtime/helpers/slicedToArray"); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _bluebird = require("bluebird"); var ...
// zmienna do adresów ajax const URLROOT = 'http://ms.test/'; // na dzień dobry ukryj pola w zależności które radio jest zaznaczone if ($('#radioPismo').is(':checked')) { $('#fakturaRow1').hide(); } else { $('#pismoRow1').hide(); $('#pismoRow2').hide(); } // na dzień dobry ukryj pola grupy if ($('#radioPo...
import React, { useState } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import Card from "components/Card/Card.js"; import CardFoot...
var assert = require('assert'); var _ = require('underscore'); var bundler = require('../isobuild/bundler.js'); import Builder from '../isobuild/builder.js'; var compiler = require('../isobuild/compiler.js'); var isopackCacheModule = require('../isobuild/isopack-cache.js'); var buildmessage = require('../utils/buildm...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.constructBundleUrlAsync = constructBundleUrlAsync; exports.constructManifestUrlAsync = constructManifestUrlAsync; exports.constructHostUriAsync = constructHostUriAsync; exports.constructLogUrlAsync = constructLogUrlAsync; exports.co...
/** * DevExtreme (ui/file_manager/ui.file_manager.context_menu.js) * Version: 20.2.3 * Build date: Tue Oct 20 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; exports.default = void 0; var _...
var Miscellaneous = (function () { function Miscellaneous() { } Miscellaneous.getRandomInt = function (min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; } Miscellaneous.isValid_2D_grid_index = function (row, col, g...
const LinkedList = require('linkd'); const Events = require('events'); const logd = require('logd'); const log = logd.module('Node'); /** * a node represents one databse host. It creates connections and * checks if its up when queries start to fail. the outside cannot * request connections from it, it creates th...
const passport = require("passport"); const passport_openidconnect = require("passport-openidconnect"); const passport_bearer = require("passport-http-bearer"); const debugLog = require("./utils/debugLogger")("Auth"); const OAuth2 = require("oauth").OAuth2; const jwt = require("jsonwebtoken"); const config = require...
import macro from 'vtk.js/Sources/macro'; import vtkAbstractImageInterpolator from 'vtk.js/Sources/Imaging/Core/AbstractImageInterpolator'; import { vtkInterpolationWeights, vtkInterpolationMathFloor, vtkInterpolationMathRound, vtkInterpolationMathClamp, vtkInterpolationMathWrap, vtkInterpolationMathMirror,...
var hiscore = 0; var score = 0; var life = 3; var raccoon1; var raccoon2; var rabbit1; var rabbit2; var ship; var prabbitx = 0; var rabbitx = 0; var rabbitdx = 0; var rabbitY = 380; var result_score; var result_frame = 0; var WATER_Y = 425; var FIELD_X = 80; var FIELD_Y = 400; var f = 600; raccoons = []; var TITL...
'use strict'; const noop = function (){}; let LCS_DIFF_ARRAY_METHOD = undefined; // debugger if (typeof require !== 'undefined') { LCS_DIFF_ARRAY_METHOD = require('./pixel'); } else { try { LCS_DIFF_ARRAY_METHOD = diffPixelArray; } catch(err) { console.error(err); } } const rowSpread = ...
#!/usr/bin/env node const fs = require("fs"); const YAML = require('yaml'); const util = require("util"); const promiseExec = util.promisify(require("child_process").exec); const program = require("commander"); const pckg = require("./package.json"); const os = require('os'); const readline = require('readline'); cons...
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import MediaQuery from 'react-responsive'; import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Button } from 'reactstrap'; import moment from 'moment'; import { seafileAPI } from '../../utils/seafile-api'; import { gettex...
import React from 'react'; import DocMeta from 'react-doc-meta'; import RaisedButton from 'material-ui/RaisedButton'; import FontIcon from 'material-ui/FontIcon'; import DocTitle from 'components/docTitle'; import config from 'config'; import tr from 'i18next'; import Paper from 'material-ui/Paper'; import CardMedia f...
import React, { Component } from "react"; import { connect } from "react-redux"; import Cookies from "universal-cookie"; import axios from "axios"; import styled from "styled-components"; import { Container, Row, Col } from "react-grid"; const LoginPage = () => { React.useLayoutEffect(() => { document.title ...
"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 { logger } from "../../core/logging"; import { Signal0 } from "../../core/signaling"; import { div, remove } from "../../core/dom"; import { wgs84_mercator } from "../../core/util/projections"; import { color2css } from "../../core/util/color"; import { PlotView } from "./plot_canvas"; const gmaps_ready = new Si...
// MODULES // import React, { Component } from 'react'; import PropTypes from 'prop-types'; import uniq from 'uniq'; import Button from 'react-bootstrap/Button'; import Card from 'react-bootstrap/Card'; import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; import Table from 'react-bootstrap/Tab...
export function parseAsHtml(txt, classNames, getMediaUrl) { // simplified markdown parser // // external links can be marked as // [text](//foo.com/) or [text](https://foo.com) // internal links should be marked as // [text](/foo-page/) // only html allowed is <u>...</u> and <br> // // txt: str...
"use strict"; /** * ## Representation of a single chapter. * * See [[Chapter]] for the details. * * @packageDocumentation */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get:...
'use strict' const multipart = require('ipfs-multipart') const debug = require('debug') const tar = require('tar-stream') const log = debug('ipfs:http-api:files') log.error = debug('ipfs:http-api:files:error') const pull = require('pull-stream') const toPull = require('stream-to-pull-stream') const pushable = require(...
// # Place all the behaviors and hooks related to the matching controller here. // # All this logic will automatically be available in application.js. // # You can use CoffeeScript in this file: http://coffeescript.org/ function selectPlace(img, name, lat, lng){ var ctn = document.getElementById('map_container'); ...
// imports var RDFJSInterface = require(__dirname+"/./../../js-query-engine/src/rdf_js_interface.js").RDFJSInterface; var Store = require(__dirname+"/./../../js-store/src/store").Store; RDFStoreChild = {}; RDFStoreChild.observingCallbacks = {}; RDFStoreChild.workerCallbacksCounter = 0; RDFStoreChild.workerCallbacks =...
import React,{Component} from 'react'; import PropTypes from 'prop-types' import { Table,Tooltip,Button,Input,Skeleton,Form, Row, Col, Icon,Select,InputNumber,DatePicker,message } from 'antd'; import moment from 'moment'; const FormItem = Form.Item; const Option = Select.Option; const RangePicker = DatePicker.RangePick...
// ==UserScript== // @name MPV Shim Local Connection // @version 2.2 // @grant GM.xmlHttpRequest // @include https://app.plex.tv/* // @connect 127.0.0.1 // @description Allow Plex to connect to MPV Shim running on the same computer without a local Plex server. // @license MIT; https://spdx.org/licenses/MIT.html...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProp...
///check if key design and transition features are supported by the users browsers if (!Modernizr.csstransitions){ CSS3T=false; }; ////// any object from json or server data var imgData = { "loadImg": { "src":"http://www.jbee.io/demos/rImgLoad/graphics/jBeeLG1.png", "size":"10700000" ...
import React from 'react'; import { connect } from 'react-redux'; import { StickyContainer, Sticky } from 'react-sticky'; import { Link } from 'react-router'; import { createStructuredSelector } from 'reselect'; import * as _ from 'lodash'; import styled from 'styled-components'; import Recaptcha from 'react-recaptcha'...
var properties = ["current", "voltage", "cputemp", "hddtemp", "pmutemp", "cpu0freq", "cpu1freq","txbytes","rxbytes","Free_RAM","Uptime","Load"]; var hosts = []; var units = {"current": "[A]", "voltage": "[V]", "cputemp": "[°C]", "hddtemp" : "[°C]", "pmutemp": "[°C]", "cpu0freq": "[MHz]","cpu1freq": "[MHz]","txbytes":...
/** * Carbid for Contao Open Source CMS * * Copyright (C) 2014 <NAME> * * @package Carbid * @link https://github.com/alarstyle/contao-carbid * @license http://opensource.org/licenses/MIT */ (function(Backend, Theme, Stylect, $) { var html = document.documentElement, base = document.get...
import DbManager from '../../managers/DbManager'; import mysql from 'mysql2'; import MariadbClient from './client'; import { runV7migrationMariaDb } from '../../../migrations/v7fixGroups'; import { runV10migrationMariaDb } from '../../../migrations/v10fixGroups'; class MariadbManager extends DbManager { dbVersion = ...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), path = require('path'), mongoose = require('mongoose'), Product = mongoose.model('Product'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')); var fall = require('async-waterfall'); expo...
import React, { Component } from "react"; import { withRouter } from "react-router-dom"; import { connect } from "react-redux"; import { addScoreTime } from '../../store/actions/exercises'; import "../../css/MCQPlayer.css" import { SUBMIT_QUESTION, NEXT_QUESTION, FINISH_EXERCISE } from "../translation"; import { Format...
const GROW_VALUE = [ 0.00, 0.04,0.08,0.12,0.16,0.205, 0.25,0.29,0.33,0.37,0.415, 0.46,0.50,0.54,0.58,0.625, 0.67,0.71,0.75,0.79,0.835, 0.88,0.92,0.96,1.00,1.045, 1.09,1.13,1.17,1.21,1.255, 1.30,1.34,1.38,1.42,1.465, 1.51,1.55,1.59,1.63,1.675, 1.72,1.76,1.80,1.84,1.885, 1.93,1...
function loadingShow(formID, imgSrc){ var idOverlay = formID+'_overlay'; if ( document.getElementById(idOverlay ) == null ){ document.body.innerHTML += '<div id="'+idOverlay+'" class="pnlOverlay"></div>' } var dlgover = document.getElementById(idOverlay); //dlgover.setAttribute('style','visibility:visibl...
/** * Created by <NAME> (<EMAIL>) on 1/28/15. */ var global_avg = []; var num_local_days = 397; var find_global_avg = function(unique_data){ var avg = d3.range(0,16).map(function(){ return 0; }) var num_days = 0 unique_data.forEach(function(d) { d3.range(16).forEach(function (a){ ...
/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // // Dalliance Genome Explorer // (c) <NAME> 2006-2011 // // bin.js general binary data support // "use strict"; if (typeof(require) !== 'undefined') { var utils = require('./utils'); var shallowCopy = utils.shallowCopy; var sha1...
// this is a hard coded mess for now, to be cleaned up and expanded upon const { Bitwriter, Bytes, Hash, Biterator } = require('./common.js') const { Transaction } = require('./transaction.js') const { Block } = require('./block.js') // const magic = Bytes.toHex([0xfa, 0xbf, 0xb5, 0xda]) // regtest // const magic = B...
require('dotenv').config() const web3 = require('./web3').web3 const flop = require('./contracts/flop') const db = require('./db').getDB('flop') const moment = require('moment'); const conf = require('./config') const BigNumber = require('bignumber.js') let state let isInitialized = false let currentBlock = 0 let par...
'use strict' const stringify = require('safe-stable-stringify') const nullLogger = require('abstract-logging') const StorageInterface = require('./interface') const { findNotMatching, randomSubset } = require('../util') const GC_DEFAULT_CHUNK = 64 const GC_DEFAULT_LAZY_CHUNK = 64 const REFERENCES_DEFAULT_TTL = 60 /*...
/** * * @param inputContainer A div container element which includes an input field */ function createRemoveLink(inputContainer) { // The remove link with the icon var removeLink = $('<a href="javascript:void(0);" class="ytp-add-input"><span class="icon-minus-sign-alt icon-2x"></span></a>'); // Add an e...
const { app, BrowserWindow, shell, ipcMain, Menu, webFrame } = require('electron') const settings = require('electron-settings') const CssInjector = require('../js/css-injector') const path = require('path') const outlookUrl = 'https://outlook.office365.com' const deeplinkUrls = ['outlook-sdf.office.com/mail/deeplink'...
import React from "react" import { graphql, useStaticQuery } from "gatsby" import styled from "styled-components" import breakpoint from "styled-components-breakpoint" import AniLink from "gatsby-plugin-transition-link/AniLink" import Img from "gatsby-image" import { AiOutlineRise } from "react-icons/ai" import { MdDe...
'use strict'; /* model-un data proprocessing */ const munLanguages = require('model-un/data/languages'); const munLanguageRef = require('model-un/data/languageref'); const languageOnlyRef = {}; const nonLanguageRef = {}; Object.keys(munLanguageRef).forEach((k) => { if (munLanguages[munLanguageRef[k]].type === 'lang...
const {Schema} = require("mongoose"); const _orderBy = require("lodash/orderBy"); const mpathUtil = {}; mpathUtil.getLevelByPathAndSeparator = (path, separator) => (path ? path.split(separator).length : 1); mpathUtil.mongoSortToLodashSort = (mongoSortObj) => { const lodashSortObj = { keys: [], or...
import React from 'react'; import PropTypes from 'prop-types'; import ColorByWidget from 'paraviewweb/src/React/Widgets/ColorByWidget'; import PipelineWidget from 'paraviewweb/src/React/Widgets/GitTreeWidget'; import ProxyEditorWidget from 'paraviewweb/src/React/Widgets/ProxyEditorWidget'; import style from 'Visualiz...
import { ascending, max, sum } from "d3-array"; import { nest } from "d3-collection"; import { datumDate } from "../util/date"; /** * A callback function that operates on a nested data layer datum object. * * @callback module:data~NestedDataOperatorFunction * @param {object} datum the datum object being operated ...
var tdWidth = 0; var user = 0; function CheckHeaderSize(){ if($(window).width() < 1300) { $(".navbar-right").css({"padding-right": '0%'}); $(".navbar-default").css({"padding-left": '0%'}); }else{ $(".navbar-right").css({"padding-right": '10%'}); $(".navbar-default").css({"padding-left": '10%'}); } if(user...
const fs = require('fs'); const helpers = require('./global-setup'); const path = require('path'); const { expect } = require('chai'); const temp = require('temp').track(); const describe = global.describe; const it = global.it; const before = global.before; const after = global.after; describe('window commands', fun...
const appletUUID = "0dyseus@PopupTranslator"; const Util = imports.misc.util; const GLib = imports.gi.GLib; const Lang = imports.lang; const Pango = imports.gi.Pango; const St = imports.gi.St; const PopupMenu = imports.ui.popupMenu; const Tooltips = imports.ui.tooltips; const Cinnamon = imports.gi.Cinnamon; const Gette...
/** * Created by Aaron on 2018/7/22. */ import React, {Component} from 'react' import {connect} from 'react-redux' import {Link} from 'react-router'; import {Grid, Row, Col, Modal, Button, Panel} from 'react-bootstrap'; import {browserHistory} from 'react-router' import {getHistoryRecord, deleteSearchHistory} from ...
import React, { Fragment, useMemo, useEffect, useState } from 'react' import compose from 'lodash/flowRight' import { graphql } from '@apollo/client/react/hoc' import { gql } from '@apollo/client' import { css } from 'glamor' import { colors, Editorial, InlineSpinner, Interaction } from '@project-r/styleguide' ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * Portions copyright for react-native-windows: * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under th...
input_name = document.getElementById('input-name'); // ------------- RESET FUNCTION ----------------- // this function is used on startups or resets function start_up(){ //reset input name input_name = document.getElementById('input-name'); input_name.value = ""; //uncheck radio button for ...
import React from 'react'; import Web3Utils from 'web3-utils'; import Form from 'react-validation/build/form'; import Textarea from 'react-validation/build/textarea'; import Button from 'react-validation/build/button'; import { form, control, button } from 'react-validation'; import { inject, observer } from "mobx-reac...
//对jQuery得扩展 $.fn.extend({ /** * 获取或设置缓存数据。 */ dset: function (key, func) { var data = this.data(key); if (!data) { data = func(); this.data(key, data); } return data; }, /** * 回调不包含no-js得所有元素。 */ exec: function (callback) {...
const Node = require('../node') const {math} = require('../../config') function _printInternal(node, options) { let rv = null // Apply custom handler first. if (options.customRender) { rv = options.customRender(node, options) } // Use default render if custom function returns nothing. if (rv == nul...
'use strict'; exports.__esModule = true; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var SOCKET_DEBUG = false; var WebSocketClient = null; if (typeof WebSocket !== 'undefined') { WebSocketClient = WebSock...
var campaigns = [], is_admin = false, statuses = { "Email Sent": { color: "#1abc9c", label: "label-success", icon: "fa-envelope", point: "ct-point-sent", }, "Emails Sent": { color: "#1abc9c", label: "label-success", ...
var _ = require('lodash'), natural = require('natural'), tokenizer = new natural.WordPunctTokenizer(); var words = _([ // //readability: // //0.1 looks almost the same //0.75 looks inconvenient //0.5 lost rhythm //0.25 looks strange //0.0 looks extremely strange // //ty...
import { google as g } from 'googleapis' export const shortcut = 'google' export const isObservable = true export const initialState = { googleReady: false, googleError: false, } export const featureMethods = [ 'createAuthClient', 'listSpreadsheets', 'listDocuments', 'listFiles', 'listFolders', 'get...
import React, { Component, Fragment } from 'react'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import RptTable from '@/components/RptTable/RptTable' import AddForm from '@/components/VarListModal/AddForm' import { Button, Table, Pagination, Modal, Icon, Row, Col, Input, Select, ...
import React from 'react'; import slugid from 'slugid'; import CheckboxTree from 'react-checkbox-tree'; import { tileProxy } from './services'; import '../styles/TilesetFinder.css'; import withPubSub from './hocs/with-pub-sub'; // Configs import { TRACKS_INFO } from './configs'; class TilesetFinder extends React....
/* * Copyright 2011 Research In Motion Limited. * * 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 ...
import Vue from 'vue' import Vuex from 'vuex' import toastr from 'toastr' import {HASH_KEYS, TABS} from '@/constants' import qlist from '@/store/modules/qlist' import history from '@/store/modules/history' import bookmark from '@/store/modules/bookmark' import result from '@/store/modules/result' import treeview from '...
import React, { Component, createRef } from 'react'; import ResizeDetector from 'react-resize-detector/build/withPolyfill'; import cs from 'classnames'; import throttle from 'lodash.throttle'; import PropTypes from 'prop-types'; import ShowMore from './components/ShowMore'; import Tab from './components/Tab'; import Ta...
"use strict"; const util = require('util'); const policies = require('./policies'); const types = require('./types'); const utils = require('./utils'); const errors = require('./errors'); /** Core connections per host for protocol versions 1 and 2 */ const coreConnectionsPerHostV2 = { [types.distance.local]: 2, [...
import React, { useState, useEffect } from 'react' import { API, graphqlOperation } from 'aws-amplify' import { Pagination, Input, Button, Icon, Grid, Modal, Form } from 'semantic-ui-react' import { SemanticToastContainer, toast } from 'react-semantic-toasts'; import 'react-semantic-toasts/styles/react-semantic-alert.c...
'use strict'; const fs = require('fs'); const path = require('path'); let config_dir_candidates = [ // these work when this file is loaded as require('./config.js') path.join(__dirname, 'config'), // Haraka ./config dir __dirname, // npm packaged plugins ]; class cfreader { ...
import React, { Component } from 'react'; import { connect } from "react-redux"; import ChatField from './ChatField'; import StartChat from './StartChat'; import { withTranslation } from 'react-i18next'; import { initOfflineForm, submitOfflineForm } from "../actions/chatActions" import { helperFunctions } from "../lib/...
var canvas, stage, // The canvas and stage objects timeline, // Used for animations // [GRAPHICS] TitleView = new createjs.Container(), // The graphics container for the title screen background, //The background graphic startBtn = {}, //The Start button in the main menu creditsBtn = {}, //The cr...
var XMLFile; function fileUpload() { XMLFile = document.getElementById("odfxml").files[0]; ReadLibreOfficeXML(); } function ReadLibreOfficeXML() { var mySlides = new Array(); var fileReader = new FileReader(); fileReader.readAsText(XMLFile); fileReader.onloadend = function () { var xmlData...