text
stringlengths
3.07k
16k
'use strict'; import BOX_CONSTANTS from '../config/box-constants'; import InvestigateModes from '../util/investigate-modes'; import MapValues from '../util/map-values'; import FlattenDotProps from '../util/flatten-dotted-property-names'; import NormalizeObjectKeys from '../util/normalize-object-keys'; import VerifyRequ...
const GameModes = require('../../enums/GameModes'); /** * Custom string splitter to add rest of the string back * if the limit is shorter than full split * @param {string} str The string to split * @param {string} separator The seperator to split the string with * @param {number} limit Number of splits with the s...
require("dotenv").config(); const fs = require("fs"); const Twilio = require("twilio"); const args = require('yargs')(process.argv.slice(2)) .array('userSid') .number('cleanupOlderThan') .usage('Usage: $0 --userSid=[USxxx] --cleanupOlderThan') .describe('userSid', '(Optional) Specific SID of user to loo...
var Bootstrap = require('bootstrap'); var _ = require('underscore'); var TimeAgo = require('../../../../vendor/jquery.timeago'); var Backbone = require('backbone'); var utils = require('../../../mixins/utilities'); var async = require('async'); var AITemplate = require('../templates/attachment_item_template.html'); va...
// Load Youtube IFrame Player API code asynchronously. This boat is going nowhere without it. var tag = document.createElement('script'); //Add a script tag tag.src = "https://www.youtube.com/iframe_api"; //Set the SRC to get the API var firstScriptTag = document.getElementsByTagName('script')[0]; //Find the first scri...
const express = require('express'); const router = express.Router(); const { Reviews, Characteristics, Meta_join, Photos } = require('./db/index'); router.get('/', async (req, res) => { // console.log(req.originalUrl); var { product_id, page = 1, count = 2, sort = 'newest' } = req.query; page = Number(page); c...
const opentracing = require('opentracing') const EventEmitter = require('eventemitter3') const parseEvent = require('../utils/parseEvent') const waterfall = require('../utils/asyncWaterfall') const handlerWrapper = require('../utils/handlerWrapper') const throwAsException = require('../utils/throwAsException') class L...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _SvgContainer = require('./SvgContainer'); var _SvgContaine...
// <![CDATA[ var colours=new Array("#AA66FF", "#AA66FF", "#AA66FF", "#AA66FF", "#ccc"); // colours for top, right, bottom and left borders and background of bubbles var bubbles=66; // maximum number of bubbles on screen var over_or_under="over"; // set to "over" for bubbles to always be on top, or "under" to allow the...
var HtmlReporter = require('nightwatch-html-reporter'); var reporter = new HtmlReporter({ openBrowser: true, reportsDirectory: __dirname + '/reports', hideSuccess: false }); const testPatientPath = "/api/patients/9999999000/"; function printStatus(response) { console.log("Got response for deleting stu...
import _ from 'lodash'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import classnames from 'classnames'; import { getDiscussion, toggleFavorite, updateOpinionContent, postOpinion, delete...
import {unchecked as S} from 'sanctuary'; import $ from 'sanctuary-def'; import Z from 'sanctuary-type-classes'; import {assert} from 'chai'; import {create} from '../src/index'; const hasProp = p => x => x[p] !== undefined; const $Map = $.BinaryType ('Map') ('someurl') (S.is ($.Object)) (S.keys) (S.values)...
'use strict'; var React = require('react'); var div = React.DOM.div; var levels = [{ boxShadow: "none" }, { boxShadow: "0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.24)" }, { boxShadow: "0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)" }, { boxShadow: "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0...
import _ from 'lodash' import { ERRORS, showError } from '../app/errors' import { trackEvent } from '../app/event_tracking' import { checkIfEverythingIsLoaded } from '../app/initialization' import { MODES, getMode } from '../app/mode' import { hideAllMenus } from '../menus/menu' import { app } from '../preinit/app_set...
// ==== GLOBAL VARIABLES ==== const projectContainer = document.querySelector('.projects-container'); const searchIcon = document.querySelector('#searchIcon'); const searchBarInput = document.querySelector('.search-bar__input'); const searchBar = document.querySelector('.search-bar'); const searchDropdown = document.qu...
import React from "react"; import PropTypes from "prop-types"; import { Spin, message, Table, Icon, Card, Form, Button, Input, Row, Col } from "antd"; import moment from "moment"; import { Link } from "react-router-dom"; import bytes from "bytes"; import "./file_list.sass"; import * as fileService ...
// ** React Imports import { useState, useEffect } from 'react' import { useLocation } from 'react-router-dom' // ** Store & Actions import { useSelector, useDispatch } from 'react-redux' import { handleMenuCollapsed, handleContentWidth, handleMenuHidden } from '@store/actions/layout' // ** Third Party Compon...
// USE `gen.ts` instead! // This is not longer maintained and worked on var fs = require('fs') const proc = (str, macros) => { if(str.indexOf('$') == -1) { return str } const NONE = 0 const AFTER_DOLLAR = 1 const ESCAPE = 2 const IN_MACRO_NAME = 3 let state = NONE let buf = '' let macro_name = '' for...
//jqGrid的配置信息 $.jgrid.defaults.width = 1000; $.jgrid.defaults.responsive = true; $.jgrid.defaults.styleUI = 'Bootstrap'; //工具集合Tools window.T = {}; // 获取请求参数 // 使用示例 // location.href = http://localhost/index.html?id=123 // T.p('id') --> 123; var url = function (name) { var reg = new RegExp("(^|&)" + name + "=([^&...
/** * @file 57. Insert Interval * @solution * 1. iteratively from left to right, find the start and end range of continuous intervals needed merge, and the start index, end index of them, then merge them and insert the merged interval * 2. insert the new interval into place in intervals where is ordered by start ra...
import React, { Component } from 'react'; import { connect } from 'react-redux'; //Importing static assets (i.e. stylesheets, images) import './Room.css'; //Importing React Components import Navbar from '../Navbar/Navbar'; import QuestionList from './QuestionList/QuestionList'; import { addQuestion, getQuestions } f...
// Copyright 2013 <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 agreed to...
import React from "react" import { withRouter } from "react-router-dom" import {Dropdown, Loading, Tabs, Tab} from 'carbon-components-react' import axios from 'axios' import {Container, Row} from 'react-bootstrap' import { BrowserView, MobileView, } from "react-device-detect"; import back from './../../as...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
'use strict'; const CoreObject = require('core-object'); const fs = require('fs-extra'); const RSVP = require('rsvp'); const path = require('path'); const extend = require('extend'); const debug = require('debug')('ember-try:dependency-manager-adapter:bower'); const rimraf = RSVP.denodeify(require('rimraf')); const re...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * 'License'); y...
import React, { useEffect, useState, useRef } from 'react'; import { workflowServices } from './services' import { LayoutContext } from '../../containers/DefaultLayout/LayoutContext'; import { Progress } from 'semantic-ui-react'; import { Timeline, Button as B, Collapse, List as L, Tag } from 'antd'; import Icon, {Ques...
import React, { useState, useCallback, useEffect } from 'react'; import ReactDOM from 'react-dom'; import { csv, arc, pie, scaleBand, scaleLinear, scaleOrdinal, max, format } from 'd3'; import { useData } from './useData'; import { AxisBottom } from './AxisBottom'; import { AxisLeft } from './AxisLeft'; import { Marks ...
import React from 'react'; import {makeAutoObservable} from 'mobx'; import { raiseErrorIfNotParentNode, generateUUID, isParentNode, } from '../utils/tree'; import {eventTypes} from '../datasets/tree'; import Tree from './Tree'; import EventEmitter from './EventEmitter'; class Store { someprop = ''; tree; ...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var tsconfig = require('tsconfig'); var path_1 = require('path...
const LEN = 800 const fftSize = 4096 /** @type {AudioContext} */ let audioContext = null /** @type {number} */ let frStep = null /** * @typedef {{ ctx: CanvasRenderingContext2D, canvas: HTMLCanvasElement }} CanvasWrapper */ /** * @type {HTMLButtonElement} */ let btn = null /** * @type {CanvasWrapper} */ let ...
import { memoize } from "lodash"; import moment from "moment"; /** * Utility class for validating inputs using redux forms */ class Validator { ASCII_REGEX = /^[\x0-\x7F\s]*$/; CAN_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/; EMAIL_REGEX = /^[a-zA-Z0-9`'’._%+-]+@[a-zA-Z0-9.-]+$/; PHONE_REG...
const fs = require('fs-extra') const os = require('os') const chalk = require('chalk') const { start } = require('live-server') const { createProxyMiddleware } = require('http-proxy-middleware') const { watch } = require('chokidar') const { build } = require('esbuild') const postCssPlugin = require('@baurine/esbuild-pl...
var adminApp = angular .module('app', ['ng-admin']) .run(run); //const sendash = 'https://sendash.com/'; const sendash = 'http://localhost:8191/sendash/api/admin/'; adminApp.config(['NgAdminConfigurationProvider', 'RestangularProvider', function (nga, RestangularProvider) { // create an admin ap...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var jsheap_1 = require("./jsheap"); var viterbinode_1 = require("./viterbinode"); var Morpheme = /** @class */ (function () { function Morpheme(surface, feature, start) { this.surface = surface; this.feature = feature; ...
const discord = require('discord.js') const delay = require('delay') const update = require('../../db/update') const getData = require('../../db/getData') const embeds = require('../../embeds') module.exports = { name: 'warn', description: 'Warnt den ausgewählten Nutzer', permission: 'KICK_MEMBERS', op...
import _ from 'lodash'; export const flattenBikesData = (bikes) => { const filteredArr = []; _.map(bikes, item => filteredArr.push(item)); return _.flatMap(filteredArr); }; export const transformHoursStringToNumber = (hours, selectedHours) => { if (selectedHours === 1) return hours['1 hour']; if (selectedH...
import $ from '../core'; import { each } from '../../common/helpers'; const eventsCache = {}; each(['blur', 'change', 'click', 'dblclick', 'enter', 'error', 'focus', 'focusin', 'focusout', 'hashchange', 'keydown', 'keypress', 'keyup', 'leave', 'load', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseenter', ...
const path = require('path') const fs = require('fs') const j2119SubObjectValidator = require('./j2119_schema_loader') const jsonSchemaValidator = require('./json_schema_loader') const kebabCase = require('lodash.kebabcase') const cloneDeep = require('lodash.clonedeep') const isPath = require('@wmfs/j2119/lib/j2119/jso...
/* * Copyright (C) 2017-2019 Dremio 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 l...
/** * Squid Core * * Github API services provider * * note: Github API expect body parameters * to be a JSON string * * https://github.com/bitinn/node-fetch * * Usages * * github('/users/michael-lefebvre/repos') * .get() * .then(function( response ) * { * console.log( response.length ) *...
const uint8ToBuffer = array => array.buffer.slice(array.byteOffset, array.byteLength + array.byteOffset) const bufferToUint8 = array => Array.from(new Uint8Array(array)) const generateUint8 = length => new Uint8Array(length).map(() => Math.floor(Math.random() * 256)) const logElement = document.querySelector("pre#log"...
import './slicedToArray-4e274c67.js'; import './unsupportedIterableToArray-137e449b.js'; import React from 'react'; import './_commonjsHelpers-97e6d7b1.js'; import { P as PropTypes } from './index-097535f1.js'; import { _ as _defineProperty } from './defineProperty-a0480c32.js'; import './toConsumableArray-127424c2.js'...
// Common options export const options = { name: '<NAME>', shortDescription: 'My portfolio', description: 'Description here', loading: { color: 'var(--ac-color)', background: 'var(--bg-color)', }, app: { background: '#202124', }, social: { twitter: '', }, }; export default { // Disa...
require("dotenv").config(); const regex = /^.+?\s+(\d+(?=\s))?\s*(.+?)(?=\s+(--.+)|\s*$)/g; const argregex = /--(\S)\s+(.+?)(?=\s+--|\s*$)/g; const fetch = require("node-fetch"); const api = require('../service/api') const state = require('../service/state'); const getToken = require('../service/authtoken'); const a...
import React from 'react'; import PropTypes from 'prop-types'; import Ul from './style/UlStyled'; import PaginationStyled from './style/PaginationStyled'; /** * ## Constants */ const BASE_SHIFT = 0; const TITLE_SHIFT = 1; class Pagination extends React.Component { constructor(props) { super(props); thi...
class LoadObserver { constructor(object) { this.finishTime = null; this.load = new Promise((resolve, reject) => { object.onload = ev => { this.finishTime = ev.timeStamp; resolve(ev); }; object.onerror = reject; }); } get finished() { return this.finishTime !== nu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.baseFormulas = exports.formulas = exports.formulam = exports["default"] = void 0; var _locale = require("../locale/locale"); var _helper = require("./helper"); function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _ite...
'use strict'; const test = require('ava'); const ohm = require('..'); const displayString = traceNode => traceNode.displayString; // Tests // ----- test('case-insensitive matching', t => { const g = ohm.grammar(` G { start = caseInsensitive<"blerg"> WithSpaces = "bl" caseInsensitive<"erg"> ...
import { isVNode, isDef, isFunction, isArray, warning } from '@cloud-sn/v-utils'; export const ICON_OPEN = 'open'; export const ICON_CLOSE = 'close'; export function getNodeKey(node, rowKey, treeStore) { let { key } = node; if (rowKey) { key = isFunction(rowKey) ? rowKey(node) : node[rowKey]; } if (!i...
import React, { Suspense, useMemo } from "react"; import PropTypes from "prop-types"; import styled, { css } from "styled-components"; import useDebounce from "hooks/use-debounce"; import { Accordion, AccordionSection } from "components/accordion"; import { Tabs, Tab } from "components/tabs"; import WidgetInfo from "...
var _ = require('lodash') var uuid = require('node-uuid') var Promise = require("bluebird") var Ivy = require('ivy-client') var B64Worker = require('./b64async') var ServerTimeSync = require('./timesync').ServerTimeSync function stripPrivate(obj) { return _.omit(obj, function(val, key) { return key[0] == '_' ...
import React, { Component } from "react"; import { Container, Row, Col, Button, Badge, Card, CardDeck, Alert, } from "react-bootstrap"; import ReactStars from "react-rating-stars-component"; import { faStar, faStarHalf } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawe...
import debug from 'debug'; import isEmpty from 'lodash/isEmpty'; import { getFeedbackForCorrectness } from '@pie-lib/feedback'; import { ResponseTypes } from './utils'; import defaults from './defaults'; import * as mv from '@pie-framework/math-validation'; const log = debug('@pie-element:math-inline:controller'); ...
import { Vector3, Matrix4, } from "https://unpkg.com/three@0.125.1/build/three.module.js"; // import { Geoptic } from "./geoptic.js/src/geoptic.js"; import { Geoptic } from "./geoptic.js/build/geoptic.module.min.js"; let geo = undefined; let walkerSurfacePoint = undefined; let walkerDirection = [1, 0]; let trajec...
'use strict' var linkObj = require('./linkObj') var tags = require('./tags') var condenseWhitespace = require('condense-whitespace') var parseMetaRefresh = require('http-equiv-refresh') var RobotDirectives = require('robot-directives') var maxFilterLevel = tags[tags.length - 1] /* Scrape a parsed HTML document/tree...
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './ChangePassword.css'; import { Button, BareButton } from 'plugin-api/beta/client/components/ui'; import validate from 'coral-framework/helpers/validate'; import errorMsj from 'coral-framework/helpers/error';...
const resolve = require('path').resolve const styleguide = `<!doctype html> <html class='styleguide-root'> <head> <meta charset='utf-8'> {{> styleguideHead}} </head> <body> <div class='styleguide-layout'> {{> styleguideBody}} </div> {{> styleguideFooter}} </body> </html>` const metaGene...
//Egg Timer var Egg = { name:"EggTimer", defaultText:"", expiredMessage:"", title:"", label:"", progress:0, startTime:0, endTime:0, totalTime:0, parseError:"", progressBar:null, progressText:null, staticArea:null, beep:null, currDate:null, endDate:null, ...
const Joi = require('joi'); const merge = require('lodash.merge'); const selectn = require('selectn'); const dateFns = require('date-fns'); const low = require('lowdb'); const FileAsync = require('lowdb/adapters/FileAsync'); const utils = { selectn, merge, Joi, reach: (path, obj) => selectn(path, obj)...
const fs = require('fs'); const path = require('path'); const http = require('http'); const url = require('url'); const opn = require('opn'); const request = require('request'); const destroyer = require('server-destroy'); const { google } = require('googleapis'); const TOKEN_PATH = path.join(__dirname, 'token.json')...
import React, { useState, useRef, useEffect } from 'react' import { makeStyles } from '@material-ui/core/styles' import { ExpandMore } from '@material-ui/icons' import { Card, CardHeader, Button, CircularProgress, Typography, TextField, MenuItem, Menu, IconButton, Tooltip } from '@material-ui/core' import ReactDOM ...
window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function( callback ){ window.setTimeout(callback, 1000 / 60); }; })(); var TWO_PI = Math...
// Require libraries const {remote} = require('electron'); const {readFileSync, writeFileSync, existsSync, mkdirSync, createReadStream, createWriteStream} = require('fs-extra'); const chokidar = require('chokidar'); const {join} = require('path'); const {homedir} = require('os'); const cproc = require('child_process');...
"use strict"; /* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ Object.defineProperty(exports, "__esModule", { value: true }); const kit_1 = r...
/* global require console process Promise module */ 'use strict'; var $ = require("jquery"); const express = require('express'), app = express(); function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); } var fs = require('fs'); var usersJSON = JSON.parse(fs.readFileSync('name.json', 'ut...
const embed_srcs = { "About" : "html/about.html", "Resume" : "doc/Christopher_Maxwell_Resume_Fall_2020.pdf", "Projects" : "html/projects.html", "Contact" : "html/contact.html" }; const nav_colors = { "About" : "#022F40", /*"#386641",*/ "Resume" : "#38AECC", /*"#6A994E",*/ "Projects" : "#0090C1", /*"#8AA29...
var //dependencies request = require("request"), async = require("async"), temp = require("temp"), fs = require("fs"); var //Pattern definition Pattern = function (regex, groupIndex, substitute) { if (!(regex instanceof RegExp)) { throw new Error("Pattern awaits a regular Expression as first Parameter"); } ...
var fs = require('fs'); var striptags = require('striptags'); var { parse } = require('node-html-parser'); const tabletojson = require('tabletojson').Tabletojson; const jsonfile = require('jsonfile') var _ = require('lodash'); const NodeGeocoder = require('node-geocoder'); const BATCH_SIZE = 90; function fetchDat...
const latestDiv = document.querySelector('#latest'); const roundDiv = document.querySelector('#round'); const nodesListDiv = document.querySelector('#nodes'); var locationMap = new Map(); window.verified = false; //interval id for bar progress var idBar = -1; async function newRandomness(identity,round) { let re...
import React, { Component } from 'react'; import {render} from 'react-dom'; import Board from './Board'; import NoteEditor from './NoteEditor'; import Lists from './Lists'; import NotesStore from './stores/NotesStore'; import NotesActions from './actions/NotesActions'; import ListsActions from './actions/ListsActions'...
import 'webrtc-adapter'; import { useContext, useEffect, useState } from 'react'; import './App.css'; import GlobalProvider, { GlobalContext, STATE_ANSWERING, STATE_CALLING, STATE_CALL_FAILED, STATE_CONNECTED, STATE_IN_CALL, STATE_REGISTERED, STATE_REGISTER_FAILED, STATE_RINGING, } from './global-stat...
import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { CDI_KUBEVIRT_IO, STORAGE_IMPORT_PVC_NAME } from '../../constants'; import { getSubPagePath } from '../../utils'; import { PodModel, VirtualMachineModel } from '../../models'; import { VM_ST...
// Object utilities // =============== // Setup. No dependencies, and keep it that way. var {keys, assign, observe, unobserve} = Object; function isObject(o) { return o && typeof o === 'object'; } // Generic version of `valueOf` which works for anything. function valueize(v) { return isObject(v) ? v.valueOf() : v;...
const fs = require("fs"); const http = require("http"); const scraper = require("table-scraper"); /** * Class defining a leaderboard (table). */ class Leaderboard { /** * Constructor for a leaderboard, given its host url, identifier and server. */ constructor(url, name, server, save=true) { this.server = se...
export class FoltMeter { container; width; height; colors; svg; arcs; arcState; groups; value; constructor(selector, innerRadius, outerRadius, data) { FoltMeter.checkD3(); this.container = d3.select(selector); this.width = outerRadius * 2; this.height = outerRadius * 2; this.col...
import {common, handleNoAnswer} from './main' import {addSettingToPanel} from './panel' import {saveSettings, settings} from './settings' import {regexIndexOf} from './utility-functions' const polishLetters = /[ąćęłńóśźż@]/gi // @ is strange, can't really test it let oldSendMsg function deconstructSendArrPart(part) {...
import React, { Component } from 'react' import axios from 'axios'; import DatePicker from 'react-datepicker'; import "react-datepicker/dist/react-datepicker.css"; import '../Styles/AddClient.css' class AddClient extends Component { constructor(props) { super(props) this.state = { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = exports.defaultConfig = void 0; var _utils = require("./utils"); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbol...
import DomElement from '../DomElement/DomElement'; import css from './task.module.css'; import cssList from '../List/list.module.css'; import cssBoard from '../Board/board.module.css'; import { getCounterTasks } from '../Board/Board'; import { switchListMenu } from '../List/menu'; const KEY_ENTER = 13; let draggedTas...
import { useState, useEffect } from "react"; import PropTypes from "prop-types"; import moment from "moment"; import { makeStyles, useTheme } from "@material-ui/core/styles"; import { Snackbar, TextField, Typography, Divider, Button, Portal, } from "@material-ui/core"; import { SimpleModal } from "./SimpleM...
'use strict'; // ----- Requires ----- // let fs = require('fs'); let path = require('path'); let express = require('express'); let bodyParser = require('body-parser'); let pug = require('pug'); let Db = require('./db'); let scan = require('./scan'); let views = require('./views'); // ----- Setup ----- // // Sqlit...
/* * Handle webhooks called by SizzlingStats plugin */ var crypto = require('crypto'); var util = require('util'); var async = require('async'); var cfg = require('config').cfg; var secrets = require('config').secrets; var Stats = require('../models/stats'); var Counter = require('../models/counter'); var Session = r...
"use strict"; /** This is the BotClass, pretty similar to the LogicClass (i might merge them or something later) This handles discord.js library, basically the connection to the Discord Server as a bot, getting messages and such. Nothing much to see here, every message is sent to the LogicClass **/ const Discord = r...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import {Province} from '../../json/province.js'; import Site_Logo from'../../assets/register_template/css/autocompleted.scss'; class AutocompleteContainer extends React.Component { constructor ( props, context ) { super( props, context );...
'use strict'; /* Example script for the passport-uicshib module This should be run on a server that will be or already has been registered with the UIC Shibboleth Identity Provider (IdP). */ const preAuthUrl = ''; // appended to beginning of authentication routes, optional, ex: '/shibboleth' const lo...
var scheduler = require('../util/schedule/lib/schedule'); module.exports = { init: function() { console.log("IdleVehicles background job initialized::::: " + new Date()); scheduler.scheduleJob("2 * * * * *", findIdleVehclesAndUpdate, {}); //getNonRespondingVehicles(); //findIdleVehc...
#!/bin/sh /*jshint -W015*/ 'use strict'; var coap = require('../lib'); var args = [].concat(process.argv); args.shift(); args.shift(); if (args.length === 0) { console.log('Usage: node coap-client.js [options] uri [< payload-file]'); console.log(); console.log('Request options:'); console.log(' --type: ...
/* eslint-disable no-case-declarations */ import { isArray, isBoolean, isEmpthyObj, isFunction, isObj, isString, isNumber, isRegExp, isUndefined, } from './is' import { defaultMsg } from './messages' // Utils const getPath = (path, obj) => path.split('.').reduce((acc, val) => acc[val], obj) /** * ...
/*! * Copyright (c) 2018-Present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required ...
import {Client as DiscordClient} from 'discord.io'; import Starbound from 'starbound.js'; import winston from 'winston'; import SAIL from './sail'; import argv from './argv'; const hiSail = /^(?:hi|hello|aloha) s\.?a\.?i\.?l\.?/i; const whosPlaying = /^(?:who(?:'?s|se| is)|(?:is )?any\s?one) (?:on(?:line)?|playing)\??...
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { graphql } from 'react-apollo'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Grid from '@material-ui/core/Grid'; import Ex...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import css from "./style.css"; const { Simulation } = await import ("../pkg").catch(e => console.error("Failed loading WASM module:", e)); import { JsSimulation } from "./lib"; export const HEALTHY = 0; export const INFECTED_DAY_0 = 1; export const INFECTED_DAY_MAX = 64; export const IMMUNE = 100; export const DEAD = ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { Form, Input, Button, Select, message } from 'antd'; //import axios from 'axios'; import ReactQuill from 're...
import qs from 'qs' import superagent from 'superagent' import { camelizeKeys } from 'humps' import { getToken } from 'src/util/services' import { get, mapKeys, mapValues, snakeCase } from 'lodash' const debug = require('debug')('CLIENT:api:comm') export function _buildQuery (params = {}) { let query = {} const w...
"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...
const assert = require('assert') const getByDot = require('lodash/get') const setByDot = require('lodash/set') const defaults = { include: undefined } module.exports = function (options) { options = Object.assign({}, defaults, options) // Make an array of includes const includes = [].concat(options.include ||...
var randomScalingFactor = function(){ return Math.round(Math.random()*1000)}; function ambilData() { var base_url = window.location.origin; var url = base_url+"/siput-server/index.php/transaksis?param=getMonth&month="+arguments[0]+"&tipe="+arguments[1]; var result = null; $.ajax( { ...
const menu = [ { id: 1, title: "Tteokbokki", category: "Korea", price: 10.99, img: "https://twoplaidaprons.com/wp-content/uploads/2020/09/tteokbokki-top-down-view-of-tteokbokki-in-a-bowl-500x500.jpg", desc: "Spicy rice cakes, serving with fish cake.", }, { id: 2, title: "<NAME>", ...