text
stringlengths
3.07k
16k
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector, useStore } from "react-redux"; import { userActions } from "../../redux/actions/user.actions"; import { useHistory } from "react-router-dom"; import { Container, Table, Row, Col, Card, Button, Form, } from "react-boots...
/** * actions for handling client equest */ const fs = require('fs'); const path = require('path'); const Config = require("./config.js"); const Protocol = require("./protocol.js"); const Context = require("./context.js"); const Datastore = require("./datastore.js"); const Sender = require("./sender.js"); const logg...
import React from "react"; /* eslint-disable no-unused-vars */ // nodejs library that concatenates classes import classNames from "classnames"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import Card from "components/Card/Card.js"; import CardBody from "components/Card/CardBo...
// START AND GET COOKIE CONSENT SCRIPT const cc = initCookieConsent(); // CONSTANTS const base64 = ""; const logo = `<img width="100" src="${base64}" />`; const cookie = '🍪'; const privacy_URL = ''; // RUN cc.run({ autoclear_cookies : true, // default: false cookie_name: 'cookie_log', ...
const fetch = require('node-fetch'); const {X_API_TOKEN,IOS_PUSH_URL,ANDROID_PUSH_URL,getEnvironment} = require("../../globalConfig"); const env = getEnvironment(process.env.NODE_ENV); const xApiToken = X_API_TOKEN[env]; const iosPushUrl = IOS_PUSH_URL[env]; const androidPushUrl = ANDROID_PUSH_URL[env]; module.exports...
/** * @module skills/Helpers/Schedule.js */ let path = require('path'); const sqlite3 = require('sqlite3').verbose(); let db = new sqlite3.Database(path.join(__dirname, '../../db/test.db')); const SALUTATIONS = [`Hey! Great to see you here.`, `Ola! Welcome back!`]; const BOOKING_TIME = [`So, what time are we looking ...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ import chai, { expect } from "chai"; import chaiAsPromised from "chai-as-promised"; import { v4 as uuidv4 } from "uuid"; import { getJSONTestData, loadFrameworks, testConfig } from "../common"; import { VerifierAdapt...
const gameOverSign = document.querySelector("#gameOver"); const title = document.querySelector("#titleScreen"); const win = document.querySelector("#winScreen"); const lifeBar = document.querySelector(".lives"); const heart1 = document.querySelector("#heart1"); const heart2 = document.querySelector("#heart2");...
"use strict"; const config = require('../../config'), AccessToken = require('./accessToken'), RefreshToken = require('./refreshToken'), TokenResponse = require('./tokenResponse'), IdToken = require('./idToken'), TokenError = require('./tokenError'), Q = require('q'), S = require('string'), ...
// https://kylemcdonald.github.io/cv-examples/ const FlowCalculator = require("./flow"); const Graph = require("./Graph"); const p5 = require("p5"); const Particles = require("./particle"); const Triangles = require("./triangles"); var capture; var previousPixels; var flow; var w = 640, h = 480; var step = 10; v...
//a list of the 'check all' datasets checkbox //and whether it is true or false var checkedSurveyMap = {}; var allSurveyToDatasetsMap = {}; //keep a list of all the datasets and whether an individual one //has been selected var allDatasetsMap ={}; //if a particular dataset checkbox is clicked and is set to //false the...
import { Matrix } from "./matrix"; import { Edge } from "./edge"; import { Vertex } from "./vertex"; import { Clipper } from "./clipper"; import { Gradients } from "./gradients"; const OPAQUE = 255 << 24; const clamp = x => x < 256 ? x : 255; export class Visualiser { constructor(surface) { const viewpo...
var api = { // Object to store common references bluetooth: null, genericAttributionProfile: null, enumeration: null, deviceWatcher: null, devices: new Array(), services: new Array() } // Setup the API references, check for undefined namespaces, and check for the bluetooth adapter document.addEv...
var input = document.querySelector("#userInput"); var searchBtn = $(".searchBtn"); var userHistory = [] var cityBtn= $(".city"); // shows history even if screen is refreshed by getting local storage var searchedCity = JSON.parse(localStorage.getItem("userHistory")) if (searchedCity !== null) { userHistory = userHisto...
const defaultTheme = require('tailwindcss/defaultTheme') const colors = require('tailwindcss/colors') module.exports = { purge: [], darkMode: false, // or 'media' or 'class' theme: { extend: { fontFamily: { sans: ['Inter var', ...defaultTheme.fontFamily.sans] }, colors: { p...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import styleSecciones from '../styleSecciones'; import DatosNoRegistrados from '../DatosNoRegistrados'; import DatosReservados from '../Da...
class MessageBoard { /* In your constructor method, you should assign two properties for each object created from the MessageBoard class. The first should be a property called messages which is an empty Map, and the second is a property called id which has a value of 1. var m = new Messag...
"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...
var packageJSON = require('./package.json'); var gulp = require('gulp'); var uglify = require('gulp-uglify'); var watch = require('gulp-watch'); var concat = require('gulp-concat'); var ngAnnotate = require('gulp-ng-annotate'); var rename = require('gulp-rename'); var watch = require('gulp-watch'); var clean = require(...
import 'phaser'; const config = { type: Phaser.AUTO, width: 960, height: 576, scene: { preload: preload, create: create }, title: 'Deckbuilder' }; let globals = {}; const game = new Phaser.Game(config); function preload () { this.load.image('cardback', 'assets/cardback.pn...
/* eslint-disable require-jsdoc */ import {HDate, Sedra, ParshaEvent, HebrewCalendar, flags} from '@hebcal/core'; import {gematriyaDate} from './gematriyaDate'; import {pad2, getHolidayDescription, makeTorahMemoText} from '@hebcal/rest-api'; import dayjs from 'dayjs'; import 'dayjs/locale/he'; import fs from 'fs/promis...
var PlayerModel = require('../common/models/player'), PlayerCollection = require('../common/collections/player'), uuid = require('node-uuid'), Physics = require('../common/physics'), _ = require('underscore'); var GameServer = function(io) { this.physicsFreq = 60; this.socketsFreq = 15; this.inac...
var Express = require('express'); var Tags = require('../Validator.js').Tags; var router = Express.Router({ caseSensitive: true }); var async = require('async'); var mysql = require('mysql'); router.baseURL = '/Prss'; router.get('/', function (req, res) { var email; if (req.session.isAdmin() && req.query.email...
/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * 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 applicab...
class Fireworks { constructor (option) { this.initOption(option) this.canvas = document.createElement('canvas') this.ctx = this.canvas.getContext('2d') this.containerWidth = this.container.clientWidth this.containerHeight = this.container.clientHeight this.particles = [] this.colors = ['#e...
import db from '../models'; import user from './users-controller'; import Helper from './helper'; /** * DocumentsController class to handle all documents * related actions */ class DocumentsController extends Helper { /** * method createDocument to create new document * @param {object} req request object w...
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a...
import React, { useState, useEffect, memo } from 'react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import Box from '@material-ui/core/Box'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import Grid from '@material-ui/core/Grid'; imp...
// Globals var request = new XMLHttpRequest(); var playlistName; var playlist; //to format key for localStorage function sanitizeKey(key){ return key.replace(/[^a-zA-Z0-9]/g, ''); } // Creates img element used in track row div function createTrackImg(currTrack) { var imgElement = document.createElement("img") i...
const fs = require('fs'); const url = require('url'); const axios = require('axios'); const cheerio = require('cheerio'); const sizeOf = require('image-size'); const CleanCss = require('clean-css'); const urlencode = require('urlencode'); const imageUrlRegex = /(.*\/)(.+\..+)/; const utf8Regex = /[^\u0000-\u007f]/; m...
'use strict'; var url_string = window.location.href; var url = new URL(url_string); var clientId = url.searchParams.get("clientId"); var clientName; function getCasesByClient(callback) { $.getJSON(`/cases/client/${clientId}/${localStorage.getItem('token')}`, callback) } function renderCasesByClient(CASES) { $.ajax...
/** * @author alteredq / http://alteredqualia.com/ */ import { ShaderMaterial, LinearFilter, RGBAFormat, Vector2, WebGLRenderTarget, UniformsUtils, } from "three"; import { Pass } from "../postprocessing/Pass.js"; import { BlurShader } from "../shaders/BlurShader.js"; import { CopyShader } fr...
/** * Conclusion: * - You cannot create / update populated object by set() from host object * - You new populated model will not be saved to DB automatically * - story.set({ author: { ... } }) should be same as story.author = new Person({ ... }) */ const { assert } = require('chai'); const { MongoMemoryServer }...
const config = require('../config.json'); const pomMembers = require('../databaseFiles/pomMembers'); const pomBans = require('../databaseFiles/pomBans'); const pomTeams = require('../databaseFiles/pomTeams'); const pomLeaves = require('../databaseFiles/pomLeaves'); const pomMembersBackup = require('../databaseFiles/pom...
/** * 原子类定义如下: * * margin:m、ml、mr、mt、mb、mx、my * padding:p、pl、pr、pt、pb、px、py * width:w、w-p * height:h、h-p * 四方向:l、r、t、b * 行高:lh * 字体:fs、fw * border-radius:br * */ const fs = require('fs'); let oClassNameMap = { // margin '.m': 'margin:$px', '.ml': 'margin-left:$px', '.mr': 'margin-right:$px', '.mt...
// const APISearchOrigin = 'http://www.solidata-preprod.co-demos.com'; // const APISearchOrigin = 'http://www.solidata.co-demos.com'; const APISearchOrigin = 'http://www.cis-openscraper.com'; // feature test for AbortController that works in Safari 12 let abortableFetchSupported = false; try{ const ac = new Abor...
// CREATED BY: <NAME> // DATE: 12/14/2017 /* DESCRIPTION: VERSION: 0.0.2 */ var date = { createDateObject: new Date(), today: function () { var MM = this.createDateObject.getMonth() + 1; var dd = this.createDateObject.getDate(); var yy = this.createDateObject.getFullYear(); ...
class DataRetriever { static _commentsURL = "https://api.pushshift.io/reddit/search/comment/?"; static _maxQsize = 100; // The most results pushshift will return static _queryDelay = 1000; static _queriesBeforeGiveUp = 10; /** * @summary fetches a query * @param query query url to fetch ...
const esTranslations = { common: { influences: { captain: 'Capitán', assassin: 'Asesino', duke: 'Duque', ambassador: 'Embajador', contessa: 'Condesa' }, actions: { income: 'Ingreso', coup: 'Coup', foreignAid: 'Ayuda Exterior', foreign_aid: 'Ayuda Exter...
//react import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; import IconButton from 'material-ui/IconButton'; imp...
const fs = require("fs"); const chalk = require("chalk"); const YAML = require("yaml"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const paths = require("../utils/paths"); const assertPartialName = (name) => { if (name[0] !== "_") { throw new Error( `Partial blocks or settings in schemas mus...
import React, { Component, Fragment } from 'react'; import { observer } from 'mobx-react'; import { withRouter } from 'react-router-dom'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Page, Header, Content, stores } from 'choerodon-front-boot'; import { Tag, Card, Select, Button, Tooltip, Spin } f...
import React from 'react'; import { useHistory } from 'react-router-dom'; import { useSelector, useDispatch } from 'react-redux'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableContainer from '@material...
const themeToggle = document.querySelector(".switch input") function switchTheme(e) { if (e.target.checked) { document.documentElement.setAttribute("data-theme", "dark"); localStorage.setItem("theme", "dark") } else { document.documentElement.setAttribute("data-theme", "light") localStorage.setItem...
import React, { Component } from 'react' import NavEditorChart from '../../components/nav-editor-chart/index' import Table from '../../components/table/index' import Chart from '../../components/chart/index' import CostamizationEmptyTable from '../../components/costamization_empty_table' import { FormSelect, FormInput,...
var express = require("express"); var winston = require("winston"); var md5 = require("md5"); var path = require("path"); var fs = require("fs"); var bodyParser = require("body-parser"); var objectAssign = require("object-assign"); var Immutable = require("immutable"); var Jimp = require("jimp"); function slugify(s) {...
import { FaTimes, FaInfoCircle, FaEdit, FaSave } from 'react-icons/fa' import { HiOutlineInformationCircle, HiMail } from 'react-icons/hi' import { RiLockPasswordFill } from 'react-icons/ri'; import { Link } from 'react-router-dom' import { useState } from 'react' import '../css/dragoes.scss'; const Dragoes = ({ dr...
import React from "react" import { navigate } from "gatsby" import * as Yup from "yup" import { useFormik } from "formik" import axios from "axios" import { BiNotification } from "react-icons/bi" import { Link, useTranslation } from "gatsby-plugin-react-i18next" const ContactForm = () => { const { t } = useTranslati...
// // Copyright (c) 2020 Shamil // // Source: https://github.com/titools/titools // // Licensed under the MIT License. // var File = require("qbs.File"); function commonArgs(input) { var args = []; var target = input.cpp.target; if (target.startsWith("28")) args.push("-v28"); else if (target....
import AbstractFigure from "./AbstractFigure.js"; const LINEAR = 'linear'; const EASE = "ease"; const EASE_IN = 'ease_in'; const EASE_IN_OUT = 'ease_in_out'; const EASE_OUT = 'ease_out'; const COMPLETE = 'complete'; const INTERRUPT = 'interrupt'; const PRE_FRAME_REFRESH_NUM = 60 / 1000; export default class FigureAnim...
const reactDocs = require('react-docgen'); import React from 'react'; /** * * Gets the only h1 element in dom * * @command getTitle (dom) * * @param dom */ function getTitle (dom) { return dom.querySelector('h1').innerHTML; } /** * * Gets the next sibling of the h1 element * * @command getDescription (d...
function caricaSezione(e){ var directory = 'home_pages/'+e+'.htm #main'; $( "#main" ).load(directory); } function caricaSezionePHP(e) { var directory = 'home_pages/'+e+'.php #main'; $( "#main" ).load(directory); } function effettuaLogout(){ $.ajax({ type:"get", url:"../dist/php/logout.php",...
import React, { useEffect } from "react"; import { useSelector } from "react-redux"; import { Link, Redirect } from "react-router-dom"; import { Container, Row, Col, ListGroup, Badge } from "react-bootstrap"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBell, faInbox, faTicketAlt, ...
// Width and height // - fit // - width // crop: top or buttom // - height // crop: left or right // - both // - none // import {isArray} from 'core-util-is' // const EE = require('events') // const isUnset = v => v === null || v === undefined const isNumeric = v => !Number.isNaN(parseInt(v, 10)) // ...
import React, { Component } from 'react'; import { Badge, Button, Card, CardBody, CardFooter, CardHeader, Col, Collapse, DropdownItem, DropdownMenu, DropdownToggle, Fade, Form, FormGroup, FormText, FormFeedback, Input, InputGroup, InputGroupAddon, InputGroupButtonDropdown, Inpu...
'use strict'; /** * Adwords Service Object * This object acts as many adwords objects */ var _defineProperty = require("babel-runtime/core-js/object/define-property"); var _defineProperty2 = _interopRequireDefault(_defineProperty); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defa...
// 全局变量 var Global_type, Global_show, Global_safe, Global_count = 0; (function ($) { $.fn.KeyBoard = function (options) { // 默认配置 var defaults = { random: true, // 随机键盘 type: "money", // 密码 password or 金额 money show: "", // 展示区域 safe: true // 加密显示 ...
import Vue from "vue"; import Vuex from "vuex"; import axios from "axios"; import createPersistedState from "vuex-persistedstate"; import SecureLS from "secure-ls"; const ls = new SecureLS({ isCompression: false, encodingType: 'aes', encryptionSecret: 's3cr3t$@1' }); Vue.use(Vuex); export default new Vuex.Store({ ...
import { Player, Board, GameFlow } from './ticSet'; // Animations const squares = document.querySelectorAll('.pos'); const playBtn = document.querySelector('#play'); const gameContainer = document.querySelector('.game-container'); const player1Input = document.querySelector('#player-1'); const player2Input = document...
const R = require('ramda'); const {addStepNamespace} = require('./functions'); const {valueNotObject, valueIsObject, valueIsArray, isNotNil, isNotEquals} = require('jlafer-fnal-util'); const mapFunctions = require('./mapFunctions'); const stdSummFlds = [ 'sid', 'appName', 'appVersion', 'startTime', 'endTime', 'durat...
import React,{ Component } from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import BarChart from './../graph/barchart'; import LineChart from './../graph/line_chart'; import './applicantprofile.css'; // const options = { // scaleShowGridLines: false, // // scaleGridLine...
const Discord = require("discord.js") const ayarlar = require("./src/config/bot.json") const passport = require("passport"); const resydb = require("resydb") const db = new resydb("./anticode.json") const session = require("express-session"); const url = require("url") const LevelStore = require("level-session-stor...
'use strict'; var Easing = require('./easing.js'), Interpolation = require('./interpolation.js'); /** settings = { from: false, to: null, duration: null, repeat: false, delay: 0, easing: false, yoyo: false, // requires repeat to be 1 or greater, reverses a...
'use strict'; const _ = require('lodash'); const async = require('async'); const colors = require('colors'); const cheerio = require('cheerio'); const fs = require('fs'); const JSONStream = require('JSONStream'); const path = require('path'); const request ...
/* * Copyright 2018 Adobe. All rights reserved. * This file is licensed to you 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 appli...
import React, { memo, useEffect, useState } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import { Input, Skeleton, Card, notification, message } from 'antd'; import get from 'lodash/get'; import { isEmpty } from 'lodash'; import deboun...
import React from 'react'; import PropTypes from 'prop-types'; const WizardContext = React.createContext(); export const WizardProvider = WizardContext.Provider; export const WizardConsumer = WizardContext.Consumer; /** * Context provider for the wizard form. * @prop {func} validate handles validation for the overa...
import React from 'react'; import './ListOfWords.css'; import { A } from '../../assets/wordlist.json'; import { B } from '../../assets/wordlist.json'; import { C } from '../../assets/wordlist.json'; import { D } from '../../assets/wordlist.json'; import { E } from '../../assets/wordlist.json'; import { F } from '../../...
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------------------...
import React, { Component } from 'react' import { Container, Grid, Segment, Input, Header, Button, Icon, Checkbox, Divider } from 'semantic-ui-react'; import SideNav from '../common/Sidebar' import * as actions from '../../actions/auth' import { connect } from 'react-redux' const styles = { segment: { maxW...
function setGlobals() { cameraPosition = new THREE.Vector3(0, 20, 70); cameraTarget = new THREE.Vector3(0, 0, 0); cameraFocalDistance = 58.4; bokehStrength = 0.01; } // use this function to create the lines that will be rendered function createScene(frame) { Utils.setRandomSeed("cauliflowe...
import { chooseDataFolder } from "./utils/choose-data-folder.js"; import "./utils/exit-properly.js"; import { readContacts } from "./utils/read-contacts.js"; import _ from "lodash"; import { cuDatabaseFetch, getBaseUrl } from "./utils/cu-database-fetch.js"; import { readStdin } from "./utils/read-stdin.js"; import fs f...
//Game.spawns['Spawn1'].room.memory.spawn_queue.push({ role: 'attacker'}); //Game.spawns['Spawn1'].room.memory.spawn_queue.push({ unit: 'A1' role: 'attacker'}); //Game.spawns['Spawn1'].room.memory.spawn_queue.push({ memory : { role: 'upgrader'} , max_energy : 350 }); //Game.spawns['Spawn1'].room.memory.spawn_queue.pus...
const Web3 = require("web3"); const path = require("path"); const Transaction = require("@ethereumjs/tx").Transaction; const contractJSON = require("../abis/A.json"); const Common = require("@ethereumjs/common").default; require("dotenv").config({ path: path.join(__dirname, "../../.env") }); let web3ETH = new Web3( ...
import React from "react"; import { withSearch } from "@elastic/react-search-ui"; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import TreeView from '@material-ui/lab/TreeView'; import TreeItem from '@material-ui/lab/TreeItem'; import Typography from '@material-ui/core/Typog...
import React, { Component } from "react"; import { connect } from "react-redux"; import { NavLink } from "react-router-dom"; import { signup, setDeveloper } from "../../../../redux/actions"; import styled from "styled-components"; import { headerFontDesktop, h1, electricViolet, veryLightBlue, textColor2, ...
/* global chrome */ import './tableau.css'; import utils from '../utils/utils'; import CONST from '../utils/constants'; import permissions from '../utils/permissions'; import Fetcher from '../utils/fetcher'; import stat from '../utils/stat'; import _ from 'lodash'; const REQUIRED_PERMISSIONS = { permissions: [ '...
import React from 'react'; import { ImageBackground, StatusBar, View, Image, Text, TouchableOpacity, Platform } from 'react-native'; import { GoogleSigninButton } from 'react-native-google-signin'; import LinearGradient from 'react-native-linear-gradient'; import { CustomTabs } from 'react-native-custom-tabs'; import S...
import React, { Component } from "react"; import { connect } from "react-redux"; // Material UI Imports import Avatar from "@material-ui/core/Avatar"; import Chip from "@material-ui/core/Chip"; import Divider from "@material-ui/core/Divider"; import Grid from "@material-ui/core/Grid"; import Paper from "@material-ui/c...
/* This new app file is largely based on some of the logic from Web Dev Simplified - https://www.youtube.com/watch?v=riDzcEQbX6k&ab_channel=WebDevSimplified */ /* Pull in HTML elements using element ID's */ const startButton = document.getElementById("start-btn"); const introContainerEl = document.getElementById("intr...
const links = [ ['Inicio', '/index.html'], ['Foro', 'https://foro.elhacker.net'], ['Noticias', '/noticias'], ['Warzone', '/warzone'], ]; /* eslint-disable quote-props */ const footerLinks = { main: [ ['Faq\'s', '/faqs'], ['Trucos PC', '/pctrucos'], ['Trucos XP', '/xptrucos'],...
var setLat = 65.04766359796392; var setLon = 27.406767392578118; var setZoom = 4; var map; var projGoogle; var projWGS84; var markersvector; function argItems (theArgName) { sArgs = location.search.slice(1).split('&'); r = ''; for (var i = 0; i < sArgs.length; i++) { if (sArgs[i].slice(0,sArgs[i].indexOf(...
/*global Vue */ /* Copyright (c) 2017 <NAME> (Totally Information) 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 applica...
const hamburger = document.querySelector('.hamburger'); const navList = document.querySelector('.nav-list'); const projectSection = document.querySelector('.project-flex'); const navLinks = document.querySelectorAll('.nav-list a'); const projectPopup = document.querySelector('#project-popup'); const email = document.qu...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; // import uploadFile from 'utility/uploadUtils'; import uploadImageFile from 'utility/uploadImageUtils'; import uploadVideoUtils from 'utility/uploadVideoUtils'; import { testFileNameImg, guid } from 'utility/verification'; import styled ...
import { useState, useEffect } from 'react'; import Router, { useRouter } from 'next/router'; import Head from 'next/head'; import Header from 'parts/Header'; import NotFound from 'parts/NotFound'; import PageWrapper from 'parts/PageWrapper'; import PaddingWrapper from 'parts/PaddingWrapper'; import List, { ListItem...
// page elements var timeElem = document.getElementById("time"); var dateElem = document.getElementById("date"); var container = document.getElementById("container"); // flags var showingOptions = false; // storage object for options var options = {}; var dateString = "ungenerated"; // setup everything once the page...
function dbPasswordCommand(password) { if (Cypress.platform === 'win32') { return `set PGPASSWORD=${password}&& `; } else { return `PGPASSWORD=${password} `; } } function dbCommand(command) { return cy.exec( dbPasswordCommand(Cypress.env('psql_db_password')) + `psql -d ${Cypress.env('psql_db_...
'use strict'; var Base = require('./Base'); var headerify = require('./util/headerify'); /** * @constructor * @param {object[]} data * @param {string[]} fields */ var DataSource = Base.extend('DataSource', { initialize: function(data, fields, calculators) { /** * @summary The array of data ro...
import React, { Component } from 'react'; import AuthContext from "../../context/AuthContext"; import ConfirmModel from "./confirmModel"; import 'react-bootstrap-range-slider/dist/react-bootstrap-range-slider.css'; //import RangeSlider from 'react-bootstrap-range-slider'; import './navbar.css'; import { withRouter } ...
'use strict'; /** * Copyright 2018 Universal Health Coin * * 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, modi...
import React, { Component } from "react"; import axios from "axios"; import "./MyGroup.css"; import { Link, NavLink } from "react-router-dom"; import config from '../../../config.json'; import cookie from "react-cookies"; import { connect } from "react-redux"; import {updateUserGrpList,pendingInviteList} from "../../....
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
/* eslint-disable max-len */ /* eslint-disable no-unused-vars */ /* eslint-disable react/jsx-no-undef */ import React, {useEffect, useState} from 'react'; import { MainContainer, ChatContainer, MessageList, Message, MessageInput, ConversationHeader, } from '@chatscope/chat-ui-kit-react'; import {useDispatch...
// CHANGE THESE const playerID = 0; const discordID = ""; // MAYBE CHANGE THIS const updateTime = 20; // in seconds // DON'T CHANGE BELOW HERE const request = require("request"); const url = `https://wiimmfi.de/mkw/room/p${playerID}?m=json`; const DiscordRPC = require("discord-rpc"); const rpc = new DiscordRPC.Client...
let project = null; let execution = null; $(document).ready(function() { project = projectName; execution = executionName; fillInBreadcrumb(project, execution); if(project == null) { $('#reportTable thead tr').prepend('<th>Project</th>') } loadTable(); }) function loadTable() { le...
var cryptoUrl = "https://api.coinlore.net/api/tickers/"; var stockModal = document.getElementById("myStockModal"); var cryptoModal = document.getElementById("myCryptoModal"); var stockModalContent = document.getElementsByClassName("stock-modal-content"); var cryptoModalContent = document.getElementsByClassName("crypto-...
import React from 'react'; import { Modal, Upload, Icon } from 'antd'; import { connect } from 'dva'; import { formatMessage } from 'umi/locale'; import styles from './PhotoManagement.less'; const mapStateToProps = (state) => { const { photoUpload: { fileList } } = state; return { fileList }; }; const mapDispat...
import React, { useState } from "react" import styled from "styled-components" import { Link } from "gatsby" import devices from "../utils/devices" import Portrait from "../images/Portrait.jpg" const HamburgerMenu = () => { const [showMenu, setShowMenu] = useState(true) const toggleMenu = () => { if (!showMen...
/* NETWORK INTERFACING - prebuilt functions, 1.0 available functions: - loadProfile get profile object - loadPosts get a list of a user's posts - loadPostContent get content of each post and append - loadUsersCentral get a list of users from an external source - usersProfiles use a list of users and ...