text
stringlengths
3.22k
29.5k
/** * Created by Aus on 2017/6/16. */ import React from 'react' import Hammer from 'hammerjs' import classNames from 'classnames' import {animationFunc} from '../util/' import '../style/carousel.scss' class Carousel extends React.Component { constructor (props) { super(props); this.state = { ...
if (typeof jQuery === "undefined") { throw new Error("jQuery plugins need to be before this file"); } $.AdminTZNE = {}; $.AdminTZNE.options = { leftSideBar: { scrollColor: 'rgba(0,0,0,0.5)', scrollWidth: '4px', scrollAlwaysVisible: false, scrollBorderRadius: '0', scrollR...
//MIT License //Copyright (c) 2018-2021 <NAME> //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to use, copy, modify, merge, pu...
/** * DataPermissionTab - 数据权限tab页 * @date: 2019-11-1 * @author: hulingfangzi <<EMAIL>> * @version: 0.0.1 * @copyright Copyright (c) 2018, Hand */ import React, { Component } from 'react'; import { Tabs, Form, Card } from 'hzero-ui'; import { Bind } from 'lodash-decorators'; import { isEmpty, sortBy } from 'loda...
import { advanceBlock } from '.././tools/advanceToBlock'; import { increaseTimeTo, duration } from '.././tools/increaseTime'; import latestTime from '.././tools/latestTime'; const AkropolisToken = artifacts.require('./AkropolisToken.sol'); const AkropolisCrowdsale = artifacts.require('./AkropolisCrowdsale.sol'); const...
/* * Copyright © 2017 <NAME>, 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 or agreed to i...
import React, { useState, useEffect, useRef } from "react"; import { Sidebar } from "./components/Sidebar"; import icon from "./assets/icon.png"; import "./App.css"; //core Mapbox import mapboxgl from "mapbox-gl"; import "mapbox-gl/dist/mapbox-gl.css"; //import MapboxDirections //https://www.npmjs.com/package/@mapbox...
import util from 'util'; import test from 'ava'; import m from '.'; const isNode8orHigher = Number(process.versions.node.split('.')[0]) >= 8; const PromiseSubclassFixture = class extends Promise {}; const ErrorSubclassFixture = class extends Error {}; const types = new Map([ ['undefined', undefined], ['null', null...
// vi: et sw=2 fileencoding=utf8 // var logged = false; var showMap = true; var gMap = null; var gMark = null; var autoUpdateLukema = true; var updateLocation = null; var errorLocation = null; var watchPosition = null; var tarkoitukset = []; var selitteet = []; var matkat = []; var matka = storage.get("matka"); if (s...
'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.defineProp...
// As of now, the data is just being stringified. // Maybe it .optimize should be called on all strokes? // JS string compression has to be added, otherwise file size is very big // Further, function has to check offline data date and online data date, and see which one is newer. // If online data is newer, load that....
const fs = require ('fs'); const path = require('path'); const xml2js = require('xml2js'); const camelCase = require('camelcase'); // Outputs a JSON or JSX string module.exports = ( dir = '.', recursive = 'true', format ='jsx', extensions = ['.svg'], options = {}) => { // console.log( "many-vg-to-json", dir, recur...
import React, { Component } from 'react' import { Button, Card, CardBody, CardHeader, Col, Row, Modal, ModalBody, ModalFooter, ModalHeader, Spinner, FormGroup, } from 'reactstrap' import ReactTable from 'react-table' import 'react-table/react-table.css' import PropTypes from 'prop-types' import ...
"use strict"; /** * @module opcua.address_space.AlarmsAndConditions */ var util = require("util"); var assert = require("node-opcua-assert"); var _ = require("underscore"); var StatusCodes = require("node-opcua-status-code").StatusCodes; var DataType = require("node-opcua-variant").DataType; var UAAlarmConditionB...
import React from "react"; import ReactDOM from "react-dom"; import { useState, useEffect, useCallback } from "react"; import { WaveFile } from "wavefile"; import { create, ConverterType } from "../../dist/libsamplerate"; import { Resampler } from "./control-resampler"; function maxValueForTypedArray(array) { switch...
import fs from 'fs'; import http from 'http'; import https from 'https'; import events from 'events'; import {parse} from 'url'; import Client from './client'; import config from '../package.json'; import anybody from 'body/any'; import qs from 'qs'; const debug = require('debug')('tinylr:server'); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const request = require("request"); let Accessory; let Service; let Characteristic; let uuid; class ShellySwitch { constructor(log, config) { this.loginparams = ""; log(uuid + Accessory); this.log = log; thi...
import React, { Component } from "react"; import { Platform, StyleSheet, View, Text, ScrollView, ActivityIndicator, Alert, Modal, TouchableHighlight, NativeEvent } from "react-native"; import Draggable from 'react-draggable'; import MapView from "react-native-map-clustering"; import { Marker } fro...
var express = require('express'); var router = express.Router(); var console = require('console'); var logger = require('../lib/utils/logger'); var ZooKeeper = require('node-zookeeper-client'); var config = require('../config'); var PropertiesReader = require('properties-reader'); var service = require('../lib/service/...
/* Variables para ambas tablas del dataTable, Modal y vista principal */ var tabla; var tabla2; //Funcion init de toda la vista function init(){ mostrarForm(false); mostrarFormEdit(false); showAll(); // listar todos los items /* * * Configuraciones necesarias a cargar al incio del arichivo vistar, ajax, para que...
const { MongoClient } = require('mongodb') let mdbclient const logger = new (require('./terminal'))(__filename) async function connectClient () { mdbclient = new MongoClient(process.env.MONGO_URI) await mdbclient.connect() } function getClient () { return mdbclient } function pos (number) { return number < ...
function unpack(args, options) { var value = args[options.index]; if (options.ifAtLeast && args.length < options.ifAtLeast) { value = (typeof (options.otherwise) === 'undefined' ? void 0 : args[options.otherwise]); } return value; }; function DocumentQuery(case_, message, query) { this._case = case_; ...
/* ------------------------------------------------------------------------------------------------------ THIS FILE: 1. MANAGES THE CLIENT STATE 2. ALL DATA SENT BETWEEN CLIENT <--> SERVER THIS IS THE FIRST COMPONENT THAT GETS RENDERED INTO INDEX.HTML BY APP-CLIENT.JS --------------------------------------------------...
// Items used for the examples displayed on the navbar class Examples { static dataInfoExample = ` @prefix : <http://example.org/> . @prefix schema: <http://schema.org/> . @prefix item: <http://data.europeana.eu/item/04802/> . @prefix dbr: <http://dbpedia.org/resource/> . @prefix xsd: <http://www.w3.org/200...
// Copyright (C) 2016 <NAME> // This project is licensed under the terms of the MIT license. // https://github.com/akserg/ng2-dnd "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwn...
/** * Created by msg on 11/3/15. */ var param_vm = null; function handler_success(data) { var btn_id = "pp_" + data.data["param"]; var btn = $("#" + btn_id); var inner_value = btn.text(); if (inner_value.indexOf("不需要") == 0) { var class_name = "btn btn-info"; var inner_value = inner...
import React, { useEffect, useState } from "react"; import { useParams } from "react-router"; import axios from "axios"; import { FormControl, TextField, InputLabel, Select, MenuItem, OutlinedInput, InputAdornment, FormLabel, RadioGroup, Radio, FormControlLabel, } from "@material-ui/core"; import ...
layui.cache.page = 'market'; layui.cache.user = { username: '游客' , uid: -1 , avatar: '../../../image/avatar/00.jpg' , experience: 83 , sex: '男' }; layui.config({ version: "3.0.0" , base: '/script/mods/' //这里实际使用时,建议改成绝对路径 }).extend({ fly: 'index' }).use('fly'); // 初始化数据 ...
const _ = require('lodash') const redirects = require('./src/urlsMigrations/deriveursServices.js') var fs = require('fs'); // import redirects from './src/urlsMigrations/deriveursServices' // graphql function doesn't throw an error so we have to check to check for the result.errors to throw manually const wrapper =...
import Vec3 from 'vec3' import ChunkGen from 'prismarine-chunk' import NoiseGen from 'noisejs' // Return true with a given chance const withChance = chance => { return Math.random() < chance } /** * Generate a cluster of ore at a given coordinate * * @param {*} x X coordinate to start from * @param {*} y Y coor...
import { updateCountText } from "./common.js"; import { API as UserAPI } from "./users.js"; import { getSelectedFilter, applySelectedFilter } from "./filterview.js"; export async function initTodos() { initTodoInputForm(); initRemoveAllTodoButton(); initUsers(); } function initTodoInputForm() { document.query...
const path = require("path"); const fs = require("fs-extra"); module.exports = class { constructor(production) { fs.removeSync(path.resolve(__dirname, "dist/public/heretic")); fs.removeSync(path.resolve(__dirname, "dist/server.js")); fs.removeSync(path.resolve(__dirname, "src", "build")); ...
import React, { Component, Fragment } from 'react'; import update from 'immutability-helper'; import CheckMaps from './CheckForMap.js'; import Cart from './Cart.js'; import Maps from './Map.js'; import './App.css'; class App extends Component { constructor(props) { super(props); //state is the reacts way of ...
/** * BSD 3-Clause License * * Copyright (c) 2020, <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, thi...
$(function(){ now(); show(); $('.admin_left_main_dl dt').click(function(){ var time; if($(this).parent().find('dd').length=='1') time = 150; else if($(this).parent().find('dd').length>'1' && $(this).parent().find('dd').length<'3') time = 100; else if($(this).parent().find('dd').length>='3' && $(this).p...
import * as wavesAudio from 'waves-audio'; import WebAudio from '../node_modules/wavesurfer.js/src/webaudio'; const PLAYING = 'playing'; const PAUSED = 'paused'; const FINISHED = 'finished'; export default class MyWebAudio extends WebAudio { constructor(params) { super(params); } getAudioContext(...
/* This is a bot running in Heroku to test interactive buttons on Concur Report Approvals pulled from this example - https://github.com/howdyai/botkit/blob/master/examples/slackbutton_bot_interactivemsg.js Ran in Heroku to start with generic code that can easily be run in other hosting services e.g. Amazon Environment...
import './factotum-shared-styles.js'; import {PolymerElement, html} from '../node_modules/@polymer/polymer/polymer-element.js'; import '../node_modules/@polymer/iron-icons/iron-icons.js'; import '../node_modules/@polymer/paper-item/paper-icon-item.js'; import '../node_modules/@polymer/paper-icon-button/paper-icon-butt...
'use strict'; const path = require('path'); //handle setupevents as quickly as possible const setupEvents = require("./setupEvents") if (setupEvents.handleSquirrelEvent()) { // squirrel event handled and app will exit in 1000ms, so don't do anything else return; } const {app, BrowserWindow, ipcMain, gl...
const randomstring = require("randomstring") const moment = require('moment') const pm = require('../../model/users/peermotivators/peermotivator') const pmAppointment = require('../../model/appointments/peermotivator/appointments') const clientAppointment = require('../../model/appointments/client/appointments') cons...
/*-------*\ TOOLBAR \*-------*/ // handle clicks document.addEventListener("click", (event) => { if (event.target.id === "button-settings") { // update pages active status document.querySelectorAll(".slider-page").forEach((el) => { el.classList.remove("active"); }); d...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var getClass = require('@actualwave/get-class'); var closureValue = require('@actualwave/closure-value'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var getClass__defa...
import React, { useState, useEffect, useRef } from 'react'; import { Link, withRouter } from 'react-router-dom'; import Highlighter from 'react-highlight-words'; import { Layout, Table, Input, message, Button, Icon, Row, Col } from 'antd'; import withSidebar from '../common/base'; import { request, open } from '../help...
// some warnings can be quite irritating during tests, so we can suppress them here window.nimblePic.suppressWarnings = true; var createEl = window.testUtils.createEl , createImgEl = window.testUtils.createImgEl , createStyleEl = window.testUtils.createStyleEl , cleanupElement = window.testUtils.cleanupElement ...
const courseInfo = require('../db').db().collection('courseInfo') const pdfMake = require('pdfmake/build/pdfmake'); const pdfFonts = require('pdfmake/build/vfs_fonts'); var fs = require('fs'); const Teacher = require('../model/Teacher') pdfMake.vfs = pdfFonts.pdfMake.vfs; exports.register = function(req, res){ le...
// react import React, { Component } from 'react'; import { Link } from 'react-router-dom'; // redux import { connect } from 'react-redux'; // firebase import firebase from '../../../../firebase'; // app import md5 from 'md5'; import Button from '@material-ui/core/Button'; import Input from '@material-ui/core/Input'...
/** * Created by same on 2016/7/13. * File description:用户中心 */ 'use strict'; import React, { Component, PropTypes } from 'react'; import Helmet from 'react-helmet'; import {connect} from 'react-redux'; import {Header, Warning, Alert, UploadFile,ImageCut} from 'components'; import { Link } from 'react-router'; impor...
import React from 'react'; import {List, ListItem} from 'material-ui/List'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Chip from 'material-ui/Chip'; import Dialog from 'material-ui/Dialog'; import TextField from 'material-ui/TextFiel...
var THREE = require('three'); var MONITORS = require('../shared/monitors'); var jsonfile = require('jsonfile'); var SAVED_MONITOR_FILE = './calibration/monitors.json'; //must be in same directory as CALIBRATION_DIR in vwserver var P2M = 0.000265625 //pixels to meters for default monitor sizes function MonitorManag...
function init(){ new SmoothScroll(document,120,12) } function SmoothScroll(target, speed, smooth) { if (target === document) target = (document.scrollingElement || document.documentElement || document.body.parentNode || document.body) // cross browser support for docum...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
// Copyright 2013 Google Inc. All rights reserved. // Copyright 2018 <NAME> All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/L...
"use strict"; const chai = require("chai"); const peg = require("../../lib/peg"); const pkg = require("../../package.json"); const { SourceMapConsumer } = require("source-map"); const { spy } = require("../utils.js"); exports.peggyVersion = function peggyVersion() { return peg.VERSION; }; chai.use(require("chai-li...
const MessagingResponse = require("twilio").twiml.MessagingResponse; const Message = require("../models/message"); const TextlineService = require("../services/textlineService"); const { bitlyRequest } = require("../tools/bitly"); const { mutableURLTemplate } = require("../models/const"); const recordService = require...
import React, { useState, useRef, useEffect } from 'react'; import { Dropdown } from '../../components/lib/dropdown/Dropdown'; import DropdownDoc from '../../components/doc/dropdown'; import { Skeleton } from '../../components/lib/skeleton/Skeleton'; import { DocActions } from '../../components/doc/common/docactions'; ...
"use strict"; var CryptoJS = require("crypto-js"); var express = require("express"); var bodyParser = require("body-parser"); var WebSocket = require("ws"); var moment = require("moment"); const { topicsRouter } = require("./src/topics/topicsRoutes"); const { authRouter } = require("./auth-openid"); const { Topics } =...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (controller) { /** * DEFAULT FALLBACK */ controller.hears([_constants.constants.ANY_CHARACTER.reg_exp], 'direct_message', function (bot, message) { var botToken = bot.config.token; bot = _index.bots[bo...
import React, { useState, useCallback, useEffect } from 'react'; import { typedSignatureHash, concatSig, signTypedDataLegacy } from 'eth-sig-util'; import { toBuffer, ecsign, bufferToHex } from 'ethereumjs-util'; // eslint-disable-next-line no-unused-vars import { Web3Context } from '@openzeppelin/network'; import { u...
var base_url = $("#txt_base_url").val(); var datatable_enabled = true; function des_habilitar(a, b) { $("#btn_nuevo").prop("disabled", b); $("#btn_modificar").prop("disabled", a); $("#btn_eliminar").prop("disabled", a); $("#btn_aceptar").prop("disabled", a); $("#btn_cancelar").prop("disabled", a); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _clone = _interopRequireDefault(require("clone")); var _mongoObject = _interopRequireDefault(require("mongo-object")); var _utility = require("./utility"); var _SimpleSchema = require("./SimpleSchema"); va...
const core = require( '@actions/core' ) const JiraClient = require( 'jira-connector' ) const translateToADF = require( 'md-to-adf' ) async function handleJIRAUpdate( subtaskOrIssuetoChange, issueEventTriggered, DEBUG ) { try { const jiraSession = new JiraClient( { host: core.getInput...
import React, { Component } from 'react' import { Text, StyleSheet, View, Dimensions, ScrollView, TouchableWithoutFeedback, Alert, AsyncStorage, ActivityIndicator, TextInput, ToastAndroid, KeyboardAvoidingView, Platform, Modal, RefreshControl, Image, Linking } from 'react-native' import { BaseButton } from 'react-nativ...
/* eslint-disable */ import React, { Component } from "react"; import NavBar from "./navbar"; import Axios from "axios"; import "../css/global.css"; import Styles from "../css/blog.module.css"; import { Button, Navbar, Row, Container, Nav, Form, Modal, Alert, Col, NavDropdown, Card, Tab, List...
// this file includes functions to transform dot file data to dynamically display gene-hpo result. // please check uclex_browser/draw_hpo_graph.py for details function remove_duplicates(data){ // remove duplicates in an array var seen = {}; var result = []; $.each(data, function(i,v){ if (!seen...
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "[(timeoutId)|(step)|(duration)]", "vars": "local", }] */ /* global figure getShapes getPosition pow figureWidth figureHeight */ /* eslint-disable block-scoped-var, object-property-newline */ if (typeof process === 'object') { /* eslint-disable global-...
/** * @license * Copyright 2019 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
// Innotrade Enapso SPARQL Tools // (C) Copyright 2019-2020 Innotrade GmbH, Herzogenrath, NRW, Germany // Authors: <NAME> and <NAME> require('@innotrade/enapso-config'); // requires the Enapso GraphDB Client package const { EnapsoGraphDBClient } = requireEx('@innotrade/enapso-graphdb-client'), { EnapsoLogger } = ...
import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import { fetchSingleOrder, setItemQuantity, removeFromCart } from '../store/orders' import styled from 'styled-components' import LoadingPage from './LoadingPage' export class ShoppingCart extends React.Component...
import { Button } from "./button.js" import { Canvases } from "./canvases.js" function RadioButtonSelector(cfg, opts, x, y) { this.cfg = cfg; this.opts = opts; this.x = x; this.y = y; let buttons = []; for (const [i, opt] of opts.entries()) { let x = 20 + this.x + i*(30 + 20) let y = 20 + this.y;...
const childProcess = require('child_process'); const fs = require('fs'); const path = require('path'); const mustache = require('mustache'); const { Log } = require('@libertyio/log-node'); let log = new Log({ tag: 'mybc' }); /** Input: path to file or directory Output: true if a directory, false otherwise */ // const...
/* eslint-disable no-use-before-define */ /* eslint-disable no-const-assign */ /* eslint-disable no-return-assign */ /* eslint-disable react/no-array-index-key */ /* eslint-disable no-shadow */ import { memo, useState, useEffect, useMemo, useRef } from 'react' // import PropTypes from 'prop-types' import StackGrid from...
import routerMap from '@/router/router.map' import {mergeI18nFromRoutes} from '@/utils/i18n' import Router from 'vue-router' import {loginIgnore} from '@/router' import {checkAuthorization} from '@/utils/request' import {checkSsoAsync} from '@/services' import {logout} from '@/services' /** * 根据 路由配置 和 路由组件注册 解析路由 ...
const { Sequelize, sequelize } = require('../lib/sequelize'); const MembersList = require('./MembersList'); const VotesPerDelegate = require('./VotesPerDelegate'); const Application = require('./Application'); const VotesPerAntenna = sequelize.define('VotesPerAntenna', { event_id: { allowNull: false, ...
const request = require('request'); const uuid = require('uuid'); const status = { running: 'running', success: 'successful', failed: 'failed' }; /** * @typedef DwCReporterConfig * @type {Object} * @extends {Config} */ /** * @typedef DwCReporterInstanceConfig * @type {Object} */ /** * Report test exe...
import { html } from '../node_modules/lit-html/lit-html.js'; // Navigation, Home, Catalog and Footer Templates >>>>>>>>>> const navGuestTemplate = () => html` <header> <nav> <img src="./images/headphones.png"> <a href="/home">Home</a> <ul> <li><a href="/...
'use strict'; //GLOBALS var numClients = 0; var ope = ''; var temp = {}; var dataG = []; var labelsG = []; var label = ''; var color = undefined; //////////////// var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; /*var config = { ...
import {set, push, onValue, onChildAdded} from "./firebase2.js" import {words} from "./words.js" //creates a gamePath memory storage that multiple computers access via firebase const gamePath = "hangman/1" //creates a subset of gamePath that stores letter guesses const guessesPath = gamePath + "/guesses" //creates a...
"use strict"; /** * Format of a todo: * * file: String - Relative path * * sha: String - Commit's sha * * line: Number - File line number * * title: String - Issue's title * * label: String - Issue's label * * issue: Number - (optional) Issue's number **/ var path = require("path"); var _ = require("lodas...
import React, { Component } from "react"; //import Message from "./components/message"; import ConversationPiece from "./components/conversationPiece"; import ModalsComponent from "./components/ModalsComponent"; import { mainAxios } from "./utils/setAuthToken"; import { ChromePicker } from "react-color"; import UIfx fr...
import { useState, useMemo, default as React } from "react"; import { useLocation } from "react-router-dom"; import { makeStyles, withStyles } from "@material-ui/core/styles"; import Box from "@material-ui/core/Box"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import Li...
/* Clave de sol G4 posição do G4 no vetor: \/ 0000000000000000000000000000000000100000000000000000000000000000000000000000000000000000 pos 35, index 34 C C# D D# E F F# G G# A A# B C4 - index 27 B4 - index 38 C5 - index 39 B5 - index 50 Para multiplas instancias do p5,...
import Figure from "../figure.js"; const ALIGN_CENTER = 'center'; const ALIGN_LEFT = 'left'; const ALIGN_RIGHT = 'right'; const BASELINE_MIDDLE = "middle"; const BASELINE_TOP = "top"; const BASELINE_BOTTOM = "bottom"; export default class Text extends Figure { constructor(params) { params = params || {};...
// Present Teachers export const REQUEST_PRESENT_TEACHER = "REQUEST_PRESENT_TEACHER"; export const RECEIVE_PRESENT_TEACHER = "RECEIVE_PRESENT_TEACHER"; export const FAILURE_PRESENT_TEACHER = "FAILURE_PRESENT_TEACHER"; // footer export const REQUEST_FOOTER = "REQUEST_FOOTER"; export const RECEIVE_FOOTER = "RECEIVE_FOOTE...
/* SwitchChat Chatbox Module for SwitchCraft Copyright (c) 2020 Alessandro "Ale32bit" https://github.com/Ale32bit/SwitchChat */ /** * @module {Class} SwitchChat Client */ const {EventEmitter} = require("events"); const WebSocket = require("ws"); const CONSTANTS = require("./constants"); const Player ...
/** * @copyright Copyright (c) 2019 <NAME> <<EMAIL>> */ 'use strict'; const Base = require('./Component'); module.exports = class Model extends Base { static getExtendedClassProperties () { return [ 'BEHAVIORS', 'SCENARIOS', 'ATTR_HINTS', 'ATTR_LABELS', ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.v...
import React from "react"; // react plugin for creating charts //import ChartistGraph from "react-chartist"; import AreaChartSmall from "../../components/Chart/AreaChartSmall"; // @material-ui/core import { withStyles } from "@material-ui/core/styles"; // @material-ui/icons //import ArrowUpward from "@material-ui/icons...
/* MIT License Copyright (c) 2020 ThePool.io Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
import { assign, toArray, toggleCFNotification } from '../util'; import { checkDom, setInitFlag } from '../../../../js/modules/util/atomic-helpers'; import { getPlanItem } from '../data/todo-items'; import money from '../money'; import transportationMap from '../data/transportation-map'; import validate from '../valida...
const Sentry = require("@sentry/node"); const Tracing = require("@sentry/tracing"); Sentry.init({ dsn: process.env.SENTRY_TOKEN, tracesSampleRate: 1.0, beforeSend(event) { // Modify the event here if (config.environment !== "production") { // Don't send the event return null; } return ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const Sanitizing = require('../modules/sanitizing'); const PathRepresentable = require('../modules/path-representable'); const Access = require('../modules/access'); const SQLQuery = require('./sql-query.model'); const Template = require('./template....
var HTTP_UNINITIALIZED = 0; var HTTP_LOADING = 1; var HTTP_LOADED = 2; var HTTP_INTERACTIVE = 3; var HTTP_COMPLETE = 4; var IE = document.all?true:false; if (!IE) document.captureEvents(Event.MOUSEMOVE) var mouseX = 0; var mouseY = 0; function autoSelect(textbox) { if (textbox.createTextRange) { var ...
var geomFN = {}; geomFN.area = require('@turf/area').default geomFN.length = require('@turf/length').default /** * Custom Mapbox measure control * @param {object} map mapbox map object */ function mapMeasureControl() { this.onAdd = function (map) { var measurement = document.createElement('div'); measur...
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; let imageDatas = require('../data/image-datas.js'); // let ImgFigure = require('./img-figure.js') //commonjs方式引入 import ImgFigure from './img-figure.js'; // let ControllerUnit = require('...
let {DATASET, DATASETSERVICE} = require("./const"); let Passable = require("../passable"); let env = require("./../env"); const QUREYREG = /(^|&).*=([^&]*)(&|$)/; const TEMPLATEREG = /class=(["'])(?:(?=(\\?))\2.)*?\1/g; const STYLEREG = /\{|\}/; const STYLEREG_B = /\.[0-9a-zA-Z-]+/g; const ISHTMLREG = /^\s*<(\w+|!)[^>...
var bDebug = false; var g_map = null; var g_overlay = null; var g_curGu = { name : "", polygon : null } var g_hashmap = null; window.addEventListener("load", function(){ makeHashMap(); loadMap(); g_hashmap.keys().forEach(function(d){ var bCurrent = $("#guname").val() == d ? true : false; gupolygon( g_ha...
'use strict'; const price = require("./price"); const { WAIT_TIME, TRADE_HASH_PREFIX } = require("./_constants")["market"]; var DB; //container for database const updateBalance = {}; updateBalance.consume = (floID, token, amount) => ["UPDATE UserBalance SET quantity=quantity-? WHERE floID=? AND token=?", [a...
#!/usr/bin/env node /* * Usage: node manage-theme.js <option> * Where <option> is either one of: * list: * Lists the currently registered themes * register: * Upload/register the theme for this app. * Note: For this to work the theme may not exist. Verify this by using "node manage-theme.js list". *...
const AWS = require("aws-sdk"); /** * AWS JavaScript SDK caches the *environment variables* credentials at load time. These are the * AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY * * This presents difficulties when we are 'sharing' the same Lambda function for multiple accounts. * * By setting this value to null ...
import _ from 'lodash'; import { ROW_HEIGHT, TABLE_GUTTER_SIZE, ROW_WIDTH, TABLE_BORDER_WIDTH, TABLE_BORDER_RADIUS, } from './constants'; /** * Given a set of table configs, determine initial position coords for each table. * * Initial positions will be laid out in a columnar fashion, with each...