text stringlengths 3.07k 16k |
|---|
/// <reference path='../ui/controls/formbase.ts'/>
/// <reference path='../scripts/search.ts'/>
/// <reference path='../scripts/typings/jquery/jquery.d.ts'/>
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.... |
/**
* 租户切换
*/
import React, { PureComponent } from 'react';
import { Icon, Modal, Spin, Table } from 'hzero-ui';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import { Bind } from 'lodash-decorators';
import { isUndefined } from 'lodash';
import { getCurrentOrganizationId, getCurrentTenant... |
import React, { Component } from 'react';
import { View, Image, Text, StyleSheet, ScrollView, List, TouchableOpacity, Picker } from 'react-native';
import { Button, ListItem } from 'native-base'
import { Actions } from 'react-native-router-flux';
//import { createAppContainer } from "react-navigation";
import Icon from... |
import React, { useState, useEffect, useCallback } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { Card, Paper } from '@material-ui/core';
import PoliticianContributions from './PoliticianContributions';
import PoliticianFinances from './PoliticianFinanc... |
var isThemeDark = false;
function timerSettingsUIUpdate() {
updateTimeSettings = setInterval (timerSettingsUpdate, 10);
}
function timerSettingsUpdate(){
var d1 = document.getElementById("defaultOne").checked;
var d2 = document.getElementById("defaultTwo").checked;
var d3 = document.getElementById("... |
import React from 'react';
import { compose } from 'redux';
import { connect } from 'react-redux';
import styles from './Modals.module.scss';
import { getUploadKeySelector } from 'public-modules/FileUpload/selectors';
import { actions as fileUploadActions } from 'public-modules/FileUpload';
import { Button, FileUpload,... |
function validacija(ime,prezime,mesto_stanovanja,
jmbg,ime_staratelja,prezime_staratelja,
kontakt_telefon,korisnicko_ime){
var rezultat = true;
if(ime === '' || ime === null){
alert('Unesite ime');
rezultat = false;
}
else if(prezime === '' || prezime === null){
alert('Unesite prezime');
rezultat = false... |
#!/usr/bin/env node
const program = require('commander');
const fs = require('fs');
program
.version('0.0.1')
.description('pretranslate given file')
.arguments('<file>')
.option('-d, --dictionary [file]', 'Path to markdown file includes dictionary (default: "./book/about_translation.md")')
.action(main)
... |
var pathlib = require('path');
var util = require('util');
var fs = require('graceful-fs');
var async = require('async');
var stripJsonComments = require('strip-json-comments');
var SPECIAL_KEYS = ['baseDir','include','saveOutput'];
var HANDLER_KEYS = ['js','css','hbs','view'];
var VIEW_TYPES = ['hbs'];
// Read a con... |
// The MIT License (MIT)
// Copyright (c) 1994-2019 Sage Software, Inc. All rights reserved.
//
// 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... |
var PuertoRico = {
x: 498,
y: 26,
sizeX: 12,
sizeY: 12,
threshhold: 100
};
var Colombia = {
x: 280,
y: 210,
sizeX: 20,
sizeY: 20,
threshhold: 100
}
var Cuba = {
x: 360,
y: 35,
sizeX: 20,
sizeY: 20,
threshhold: 100
}
var Panama = {
x: 267,
y: 165,
sizeX: 20,
sizeY: 20,
threshhold:... |
/**
* @module module/leasing-selections-sk
* @description <h2><code>leasing-selections-sk</code></h2>
*
* <p>
* Contains the selections the user needs to make to schedule a leasing
* swarming task.
* </p>
*
*/
import { define } from 'elements-sk/define';
import { html } from 'lit-html';
import { $$ } from... |
// Monkey-patching element removal
Element.prototype.remove = function() {
if(this.parentElement !== null) {
this.parentElement.removeChild(this);
}
}
class SelectionBox {
constructor(selection, id) {
this.selection = selection;
var domElem = document.getElementById(id);
if(domElem !== null) domE... |
"use strict";
var a = require("array-tools");
var o = require("object-tools");
var s = require("string-tools");
var t = require("typical");
var util = require("util");
var Design = require("nature").Design;
var handlebars = require("handlebars");
var fs = require("fs");
var path = require("path");
var helpers = require... |
//var modernizr = require("modernizr");
import $ from "jquery";
window.jQuery = window.$ = $;
import * as alumno from "./alumnos";
var $listadoAlumnos =$("#listadoAlumnos");
if($listadoAlumnos.length) {//estamos en la página de alumnos
var as = new alumno.AlumnoService();
as.getAll()
.then(functi... |
const vec3 = require('gl-vec3')
const mat4 = require('gl-mat4')
/*
* Convert the given solid into one or more geometries for rendering.
* @param {Object} options - options for conversion
* @param {Array} options.color - RGBA of solid
* @param {Float} options.normalThreshold - threshold beyond which to split normal... |
import Bird from './actors/Bird.js'
import Cactus from './actors/Cactus.js'
import Cloud from './actors/Cloud.js'
import config from '../common/config.js'
import Dino from './actors/Dino.js'
import evolution from '../common/evolution.js'
import { randBoolean } from '../common/utils.js'
// for resetting settings that c... |
const express = require("express");
const app = express();
const server = require("http").Server(app);
const path = require("path");
const io = require("socket.io")(server);
const port = process.env.PORT || 3000;
const pino = require("pino")();
const _ = require("lodash");
const players = {};
const waitingList = [];
... |
import stringSimilarity from "string-similarity"
import {error} from "../../util/logger.js"
import * as Label from "./label.js"
import Guild from "./models/Guild.js"
// import {google, detect} from "../../util/translate.js"
export default async function hook(err, message) {
const {config, api, pluginManager} = this
... |
/*
* @Author: LainCarl
* @Date: 2019-01-25 14:53:51
* @Last Modified by: LainCarl
* @Last Modified time: 2019-01-25 15:04:00
* @Feature: 测试摘要
*/
import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import moment from 'moment';
import _ from 'lodash';
import {
getCaseNotPla... |
import * as d3 from 'd3';
export function initChart() {
var dataArr = constructData();
var dataField = 'var3';
var chartRange = cleanUpChartRange(dataArr, dataField);
var totalWidth = 450,
totalHeight = 120,
margin = {
top: 30,
right: 30,
bottom: ... |
import React, { Component } from 'react';
import paper from 'paper';
import { Glyph } from './';
import { BODY_600, BODY_480 } from '../constants/defaults';
import { connect } from 'react-redux';
import { convertBgMode } from '../utils';
import { scaleLinear } from 'd3';
const Fragment = React.Fragment;
class FontOutl... |
// v2: from c9.io on 21 mar 2017
// v1: from c9.io before 21 mar 2017
var q = {}; // an object that can be access in making question
var random = {
alpha: function(){
return questionGenTools.randomPict(
["a","b","c"]
);
},
prime: function(){
return questionGenTools.randomPict(
["a","b","c"]
);
}
};
... |
function numberWithCommas(x) {
return x.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",");
}
function get_all_regional_list() {
var table = $(".all_regional_heads_list").DataTable();
var nodes = table.rows().nodes();
$.ajax({
type: "GET",
url: "get-all-regional-heads-list",
... |
import {CE_uni, page_var ,generate_id,raw_post} from './general.js';
class top_navbar {
constructor(parent) {
this.parent = parent;
let herohead = CE_uni("div","hero-head",parent);
let navbar = CE_uni("nav","navbar",herohead);
let container = CE_uni("div","container",navbar);
... |
const { Game, GameInstance } = require('./game');
class Blackjack extends Game {
constructor() {
super();
}
newInstance(channel, players) {
const gameInstance = new BlackjackInstance(players);
players.forEach((player) => {
this._games[channel] = this._games[channel] || {};
this._games[ch... |
// ==UserScript==
// @name Training Helper
// @namespace Marascripts
// @match https://www.marapets.com/school.php
// @match https://www.marapets.com/gym.php
// @match https://www.marapets.com/elitegym.php
// @match https://www.marapets.com/shops.php*
// @match https://www.marapet... |
const {test} = require('tap');
const {nodeInfoAsNode} = require('./../../lnd_responses');
const makeNodeDetails = ({overrides}) => {
const details = {
addresses: [{addr: 'addr', network: 'network'}],
alias: 'alias',
color: '#000000',
features: {
'1': {
is_known: true,
is_requir... |
import React, { Component } from 'react';
import { Link , Redirect , withRouter } from 'react-router-dom';
import { Button, Card, CardBody,CardHeader,ListGroup ,ListGroupItem, CardGroup, Col, Container, Form, Input, InputGroup, InputGroupAddon, InputGroupText, Row } from 'reactstrap';
import axios from 'axios';
clas... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import ReactRouterPropTypes from 'react-router-prop-types'
import { withRouter } from 'react-router'
import { properCaseName, renderDate } from '../../stringUtils'
import { getOffenderLink, getStaffLink, getKeyWorkerHistoryLink } from '../../li... |
/*! (c) <NAME>, ISC License */
const DIR_SEPARATOR = '/';
const cache = Object.create(null);
const modules = Object.create(null);
const isPath = /^[./\\]/;
const cjs = base => {
require.cache = cache;
require.resolve = resolve.bind(null, (base || '.').replace(/\/+$/, ''));
function require(module) {
const p... |
'use strict';
/**
* Copies kilnSettings into the resources folder if it has not already been copied.
* @param {*} silent
*/
function initKilnSettings(silent = false) {
const path = require('path');
const packageResourcesPath = path.join(Editor.Project.path, "/packages/kiln/resources");
if (!Editor.ass... |
import React, { useEffect } from 'react';
import { Bar } from 'react-chartjs-2';
import {
Box,
Button,
Card,
CardContent,
CardHeader,
Divider,
useTheme,
colors
} from '@material-ui/core';
import * as API from '../../api';
import { CollectionsBookmarkRounded } from '@material-ui/icons';
import AutorenewI... |
import {defaults} from '../config';
class TemplateBuilder {
static buildTemplate(layout, page, schema, root = 'root', onlyElement = false) {
const contents = layout[root]
.sort((a, b) => a.y > b.y ? 1 : -1)
.map(component => this.getElementHtml(component, page, layout, schema))
.join('');
... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// 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... |
let users = [];
let ball;
let user;
let x;
let windowOffset = 30;
let goal = {x: 30, y: 150};
let score = '0 - 0';
let tealScore = 0;
let pinkScore = 0;
function setup(){
createCanvas(800, 500);
users.push(new User('teal', windowOffset));
users.push(new User('pink', windowOffset));
ball = n... |
import Phaser from 'phaser'
import { ENEMY_KEYS, DEATH_ANIM_KEY, ENEMY_HP } from '../utils/constants'
const BANDIT_ANIM_KEYS = {
IDLE: 'bandit-idle',
RUN: 'bandit-run',
HURT: 'bandit-hurt',
ATTACK: 'bandit-attack',
COMBAT_IDLE: 'bandit-combat-idle',
}
const BANDIT_STATES = Object.assign({}, BANDIT_ANIM_KEYS,... |
import React, { useEffect } from "react"
import { makeStyles } from "@material-ui/core/styles"
import { Typography, Button, Hidden, CssBaseline } from "@material-ui/core"
import ShapeDivider from "../Custom/ShapeDivider/ShapeDivider"
import Icon from "@mdi/react"
import { mdiArrowDown } from "@mdi/js"
import Img from "... |
import { useEffect, useState, useCallback } from "react";
import { Connection, PublicKey, clusterApiUrl } from "@solana/web3.js";
import { Program, Provider, web3 } from "@project-serum/anchor";
import idl from "./idl.json";
import twitterLogo from "./assets/twitter-logo.svg";
import "./App.css";
import kp from "./keyp... |
import defaultOptions from './defaults';
class CircularProgressBar {
constructor(pieName) {
this.pieName = pieName;
this.svg = 'http://www.w3.org/2000/svg';
const pieElements = document.querySelectorAll(`.${pieName}`);
const elements = [].slice.call(pieElements);
// add index to all progressbar
... |
var Counter = require('./utils/probes/Counter.js')
var Histogram = require('./utils/probes/Histogram.js')
var Meter = require('./utils/probes/Meter.js')
function getValue(value) {
if (typeof(value) == 'function')
return value()
return value
}
const DEFAULT_AGGREGATION = 'avg'
const AVAILABLE_AGG_TYPES ... |
import React, { useContext, useEffect, useRef, useState } from 'react';
import {
View,
StyleSheet,
FlatList,
TextInput,
Dimensions,
TouchableOpacity,
Keyboard,
} from 'react-native';
import * as Animatable from 'react-native-animatable';
import { Rtext } from '../common/Rtext';
import { ANIM_DURATION, CAR... |
import React, { Component } from 'react';
import './App.css';
import deutsch from '../public/deutsch/json/deutsch.json';
const iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
let webvoices = null;
if (
'SpeechSynthesisUtterance' in window &&
'speechSynthesis' in window
) {
if ('onvoic... |
'use strict';
var NebulaGenerator = function (w, h, bgcolor) {
this.particles = [];
this.color = 'rgb(4, 1, 1)';
this.composite = 'lighter';
this.width = w;
this.height = h;
this.bgcolor = bgcolor;
this.defaultOptions = {
maxAge : 70,
exposure: 1.0,
damping: 0.8,
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/hel... |
"use strict"
const db_functions = require("./db_functions")
const sqlite3 = require('sqlite3').verbose();
const request = require('request');
const jsonfile = require('jsonfile')
const fs = require('fs')
const game_script_dir = './public/javascripts/game_scripts/'
var game_script_list = []
/**
* Read Json file
*/
va... |
/*
* This file is part of YoHours.
*
* YoHours is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* YoHours is distributed in the hope t... |
//Made by <NAME> in 2021!
//A stateful interface to use ELIZA - a chatbot / therapist from the 1960s. Considering its going to live in discord, situations with the chatbot will probably be very entertaining XD
var loadEliza = require('./loadEliza');
loadEliza.load();
var userJoin = [
'Just asserted themselves into... |
import { options, waterfallConfig } from '../../base-options'
import { getDataset, getStackMap, formatMeasure } from '../../utils'
// build tooltip
function getBarTooltip(settings) {
const { tooltipFormatter } = settings
return {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'sha... |
'use strict';
/**
* Created by Adrian on 20-Mar-16.
* These are attached utilities on the thorin root app.
*/
const async = require('async'),
path = require('path');
const ThorinError = require('./errors'),
FetchInit = require('./fetch');
module.exports = function AttachUtilities(app) {
/*
* This is an er... |
/**
* External dependencies
*/
import { __, _x } from '@wordpress/i18n';
import { createBlock } from '@wordpress/blocks';
import { filter } from 'lodash';
import { Path, SVG } from '@wordpress/components';
/**
* Internal dependencies
*/
import edit from './edit';
import save from './save';
import {
LAYOUT_CIRCLE,... |
import { Icon } from "../../icons";
import { useAudio } from "react-use";
import { secondsToTime } from "../../utils";
import CustomRange from "../CustomRange";
import { useEffect, useMemo } from "react";
import { useDispatch, useSelector } from "react-redux";
import { setControls, setPlaying, setSidebar } from "../../... |
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) { try { step(gene... |
const { ipcRenderer } = require('electron');
const fs = require('fs-extra');
const path = require('path');
module.exports = async function Customize_Reply() {
let Path_appDate = await ipcRenderer.invoke('Path_appDate');
if (document.getElementById('html_Customize_Reply')) {
document.getElementById('... |
/**
* @author Kayla
* @since 11/17/2015
*/
var RoomTypes = {
DEFAULT : {
level : 1,
tile : api.getCoords(1864, 5056, 0),
},
GARDEN : {
level : 1,
tile : api.getCoords(1859, 5066, 0),
},
PARLOUR : {
level : 1,
tile : api.getCoords(1856, 5112, 0),
... |
import { createDiv, omit } from './utils.js';
const solveUtils = require('../solve.utils.js'),
utils = require('../utils.js');
function transpoe(m) {
const mt = utils.generateArray(m[0].length, () => []);
for (let i = 0; i < m.length; i++) {
for (let j = 0; j < m[i].length; j++) {
mt[j][i] = m[i][j];... |
/*
* Copyright 2017 SideeX committers
*
* 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... |
const FeedItems = require("../../models/feeditems");
const Channels = require("../../models/channels");
const config = require("../../config.js");
let PushHandler = require("../../models/pushHandler");
var feeditems_cache = {
data: null,
last_refresh: 0,
force_reload: function (res, sendCallback) {
var that ... |
/**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.com/docs/node-apis/
*/
const _ = require(`lodash`)
const Promise = require(`bluebird`)
const slash = require(`slash`)
const path = require("path");
exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
re... |
const a11y = require( "@wordpress/a11y" );
const annotations = require( "@wordpress/annotations" );
const apiFetch = require( "@wordpress/api-fetch" );
const autop = require( "@wordpress/autop" );
const blob = require( "@wordpress/blob" );
const blockDirectory = require( "@wordpress/block-directory" );
const blockEdito... |
import React from 'react';
import SingleMap from './singleMap';
import Chart from 'react-google-charts';
import isoCountries from '../datas/isoCountries';
import { getTopData } from '../logic/topDataLogic';
import '../components/tracks/tracks.css';
const Table = ({ ...data }) => {
if (data[0] && data[1]) {
ret... |
var CryptoJS = require("crypto-js");
exports.Login = function (connection , response , UserEmail ,password) {
var toSend = {
"result" : false
} ;
// execute a query on our database
var qstring = "select user_name , user_id , company_or_not from user where user_email ='"+UserEmail+"' and pas... |
const async = require('async')
const debug = require('debug')('institution')
const { body, validationResult } = require('express-validator');
//Test
var fs = require('fs');
const Institution = require('../models/institution.js')
exports.set_header = (req, res, next) =>{
Institution.countDocuments().exec((err, res... |
'use strict';
/*******************
* MIDDLEWARE SETUP
*******************/
require('dotenv').config();
const superagent = require('superagent');
const pg = require('pg');
const cors = require('cors');
const express = require('express');
const sha256 = require('js-sha256');
const bs58 = require('bs58');
const app = ... |
/**
* Server that generates and serves the client side app.
*/
var verboseDebug = require('debug')('verbose:graft:client');
var express = require('express');
var http = require('http');
var path = require('path');
var Browserify = require('browserify');
var jadeify2 = require('jadeify2... |
import React from "react";
import { View, Text, TouchableOpacity, Alert } from "react-native";
import { Avatar, Badge, withBadge } from "react-native-paper";
import firebase from "firebase";
import moment from "moment";
import {
getName,
getFullName,
getAvatar,
getHandle,
getAbout,
} from "../../../functions... |
import Vue from 'vue'
import Vuex from 'vuex'
import _ from 'lodash'
import stringer from 'underscore.string'
import * as db from '../../database/db.js'
_.mixin(stringer.exports())
Vue.use(Vuex)
var subs = []
const state = {
doc: {},
selectedDocument: '',
previewRequested: false,
caret: { start: 0, end: 0 }... |
const { DB, ANCHORING_DOMAIN } = require('../constants');
const Manager = require("../../pdm-dsu-toolkit/managers/Manager");
const Order = require('../model').Order;
const OrderLine = require('../model').OrderLine;
const OrderStatus = require('../model').OrderStatus;
/**
* Order Manager Class
*
* Abstract class.
*... |
import React from 'react';
import {useSubscription, gql } from '@apollo/client';
import LinearProgress from '@material-ui/core/LinearProgress';
import {CallbacksTable} from './CallbacksTable';
import {CallbacksGraph} from './CallbacksGraph';
import { meState } from '../../../cache';
import {useReactiveVar} from '@apol... |
'use strict';
const express = require('express');
const router = express.Router();
const modelEvents = require('../../models/events');
const mongo = require('../../modules/database');
const collections = require('../../config/collections');
const archiver = require('../../modules/archiver');
/**
* limit count of eve... |
/* eslint react/jsx-filename-extension: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
import NavBar from './components/navBar/navBar';
import GridBody from './components/gridBody';
import LectureGogglesLogo from './components/logo/logo';
import ZackImage from ... |
// global constants
const clueHoldTime = 1000; //how long to hold each clue's light/sound
const cluePauseTime = 333; //how long to pause in between clues
const nextClueWaitTime = 1000; //how long to wait before starting playback of the clue sequence
//Global Variables
var pattern = [3, 2, 4, 1, 2, 1, 2, 4];
var progre... |
const { promisify } = require('util');
const cheerio = require('cheerio');
const graph = require('fbgraph');
const { LastFmNode } = require('lastfm');
const tumblr = require('tumblr.js');
const { Octokit } = require('@octokit/rest');
const Twit = require('twit');
const stripe = require('stripe')(process.env.STRIPE_SKEY... |
function DivideCodigo() {
let codigo = document.getElementById('codigo').value;
codigo = codigo.toLowerCase();
codigo = codigo.split(" ");
ExaminaTermo(codigo);
}
function PlanificaArray(ArrayComSubarrays) {
let ArrayPlanificado = ArrayComSubarrays.flat(Infinity);
console.log("Array... |
// MQTT client
var mqttClient;
function removeChildren(node) {
if (node.hasChildNodes()) {
while (node.childNodes.length >= 1) {
node.removeChild(node.firstChild);
}
}
}
SendEventForm = function (id) {
this.mId = id;
this.mProperties = new Array();
this.mDestinationPath;
this.mEventPath;
... |
// import the user datagram module (udp) - dgram. This has all of the udp methods
const dgram = require('dgram');
// change port as you like
const SERVER_PORT = 22222; // port for client to listen to server on
const PORT = 22223; // port for client to send on
/**
Broadcast address.
The broadcast address is the add... |
const fs = require('fs');
const readline = require('readline');
// aka Heap
var PriorityQueue = function() {
this.items = [];
this._swap = function(index1, index2) {
const tmpIndex = index1;
const tmpItem = this.items[index1];
this.items[index1] = this.items[index2];
this.ite... |
import Phaser from 'phaser';
const gameOptions = {
platformStartSpeed: 350,
spawnRange: [100, 250],
platformSizeRange: [80, 250],
playerGravity: 900,
jumpForce: 400,
playerStartPosition: 200,
jumps: 2,
};
const credString = 'Made ♥ by Atenais Developer';
export default class GameScene extends Phaser.... |
/**
* 3D Foundation Project
* Copyright 2019 Smithsonian Institution
*
* 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 requir... |
var UserInformation={};
var LoginDetails={};
var PhysicalDetails={};
var OverallFocus={};
var UserDetail={};
var ProfileCover={};
var Achievements={}
var UserTheme={
//PrimaryColor:
//SecondaryColor:
//AccentColor:
//Font
//..
}
var Gallery={}
var Profile={}
var email="";
var currentuser;
document.getElementB... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.config = void 0;
const os_1 = __importDefault(require("os"));
const kv_logger_1 = require("kv-lo... |
import React from 'react'
import {createController} from './controller'
import {gradientColor} from '../../util'
function Controls(props) {
return (
<div>
<h4>Controls:</h4>
<button
onClick={props.onChallenge}
disabled={!props.selectedPlayer}
>Challenge!</button>
</div>
);... |
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const { Device, ObjectType, AccessType, DataType } = require('../../index.js');
const expect = chai.expect;
chai.use(chaiAsPromised);
describe('SDO', function() {
let device = null;
beforeEach(function() {
device = new ... |
import React, { useEffect, useState } from "react";
import Head from "next/head";
import { RichText } from "prismic-reactjs";
import { queryRepeatableDocuments, queryCategories } from "utils/queries";
import Link from "next/link";
import { hrefResolver, linkResolver } from "prismic-configuration";
// Project componen... |
const dotenv = require('dotenv');
const result = dotenv.config();
// parse .env file
if (result.error) {
console.error('failed to load .env file', result.error.message);
process.exit(1);
} else {
console.log('environment variables found');
}
const express = require('express');
const bodyParser = require('body-... |
// Plugin "router"
// Dependencies
import path from 'node:path';
import stream from 'node:stream';
import {clone, merge, is_object_literal} from 'mixme';
import {error, filedirname, load} from '../utils/index.js';
const {__dirname} = filedirname(import.meta.url);
export default {
name: 'shell/plugins/router',
ho... |
//TODO DISABLE REPEATS?
var sp;
var models;
var player;
var lib;
var views;
var restrictedLib;
//form validation
$(function(){
$("form input").change(function(){
$('#submitBtn').attr("disabled",true);
var h=($('#hours').val());
var m=($('#mins').val());
var s=($('#secs').val());
if(validNumber(h) &... |
'use strict';
import {SETTING_TYPES} from '../core/settings';
import {doesObjectShareValues} from '../core/utils';
const MODULE_ID = 'imageToggle';
const SETTING_IDS = {
ENABLED: 'enabled',
KEYBIND: 'keybind',
ALL: 'all',
STORY_COVERS: 'STORY_COVERS',
STORY_BODY: 'story_body',
CHAT_MESSAGES: 'chat_messages',
... |
var submitBtn = $('.submitBtn')
var searchType
var tripTypeCard = $('.tripType')
var userWalk = $('#userWalk')
var userDay = $('#userDay')
var userWeekend = $('#userWeekend')
var tripSelection
var selectedTrip = userDay;
// Locally stored values
var citySearch = localStorage.getItem('citySearch', '') || [''];
var sear... |
import Request from './Request';
import user from '@devoinc/applications-data-library/utils/user';
import HmacSHA256 from 'crypto-js/hmac-sha256';
import { addPragmas } from '@devoinc/applications-data-library/utils/request';
import { client } from '@devo/browser-sdk';
/**
* @class requests/RequestSerrea
* @params
... |
const input = document.querySelector('#search');
const searchBtn = document.querySelector('#search-btn');
const searchContent = document.querySelector('.search-content');
const weatherCard = document.querySelector('.weather-card');
const h2Temp = document.querySelector('.temp');
const pCity = document.querySelector('.c... |
import React, { useEffect, useState, useMemo } from "react";
import * as d3 from "d3";
import styled from "styled-components";
const Label = styled.text`
fill: white;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvet... |
import Dictionary from '../dictionary';
import Noun from '../partsOfSpeech/noun';
import Word from '../word';
/** Generates a regular expression
* @param {string} mutation
* @param {string} fix prefix, suffix, infix
* @returns {RegExp} Regular expression for identifying a mutation
*/
function getMutationRegex(mu... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var rxjs_1 = require("rxjs");
var operators_1 = require("rxjs/operators");
var http_error_response_1 = require("./http-error-response");
var http_headers_1 = require("./http-headers");
var http_interceptor_1 = require("./http-interceptor");
va... |
/*
Copyright (c), <NAME>
This work is licensed under the Creative Commons Attribution 4.0 International License.
You should have received a copy of the license along with this work. If not, see <https://creativecommons.org/licenses/by/4.0/>.
*/
/* pass the option --nopdf to disable PDF creation */
const path = req... |
var Modal = require('makeup-modal');
var transition = require("./transition");
var RovingTabindex = require('makeup-roving-tabindex');
var Expander = require('makeup-expander');
var FloatingLabel = require('makeup-floating-label');
var ScrollKeyPreventer = require('makeup-prevent-scroll-keys');
var ActiveDescendant = r... |
import Device from "@ui5/webcomponents-core/dist/sap/ui/Device";
import Locale from "@ui5/webcomponents-core/dist/sap/ui/core/Locale";
import CalendarType from "@ui5/webcomponents-core/dist/sap/ui/core/CalendarType";
import * as FormatSettings from "./FormatSettings";
let LocaleData;
const getDesigntimePropertyAsArra... |
/**
* 引入文件
* <script src="{{asset('templates/admin/js/jquery.min.js')}}" type="text/javascript"></script>
* <script src="{{asset('org/uploadify/jquery.uploadify.min.js')}}" type="text/javascript"></script>
* <link rel="stylesheet" type="text/css" href="{{asset('org/uploadify/uploadify.css')}}">
* <script src="{{as... |
import path from 'path';
import fs from 'fs-extra';
import { remote } from 'electron';
import pkg from 'appPackage';
import getPort from 'get-port';
const platform = process.platform;
const OSX = 'darwin';
const LINUX = 'linux';
const WINDOWS = 'win32';
const allPassedArgs = process.argv;
let shouldRunMockNetwork =... |
// set globals
var map;
var summer = true
var bars = 10
var currentYear = "s2012"
var selectedCountry = "sUSA"
var clickCountry = "USA"
// set constants
const summerYear = [1896, 1900, 1904, 1908, 1912, 1920, 1924, 1928, 1932, 1936, 1948, 1952, 1956, 1960, 1964,
1968, 1972, 1976, 1980, 1984, 1988, 1992, 1996, 2000... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.