text stringlengths 3.07k 16k |
|---|
'use strict';
import template from './jndi.list.template.html';
import { resourceTemplates } from './jndi.constants';
import 'bootstrap/js/dist/dropdown';
class JndiListCtrl
{
constructor(µJndiDto, jqmCellTemplateBoolean, jqmCellEditorTemplateBoolean, $interval)
{
this.µJndiDto = µJndiDto;
th... |
/* Hypermedia workflow.
** Implementation of Finite State Machine of a 'serial foreach' process. This process waits for its input
** signals in order and processes each of them synchronously.
**
** Author: <NAME> (2013)
*/
var TaskForeachFSM = {
name: "foreach",
logic: TaskLogic,
state : [
... |
// abstract_state.js: globals and functions for creating the abstract state map,
// so we don't have to repeat the code & clutter up each recipe step
// Globals
var Width = 40, Height = 40, CellSize = 39, SelectedColor = 'DarkRed';
function makeMap(toyID, mapItems, selectedItems, xOffset, yOffset) {
// makeMap: c... |
// Copyright (c) 2018, the IFMLEdit.org project authors. Please see the
// AUTHORS file for details. All rights reserved. Use of this source code is
// governed by the MIT license that can be found in the LICENSE file.
/*jslint node: true, nomen: true */
"use strict";
var almost = require('almost');
var model = [];
... |
let dataProblemPerStatus = [];
let dataProblemQtyPerStatus = [];
var myPieChart;
var myLineChart;
$(document).ready(function(){
setTimeout(function(){
var ctx = document.getElementById("probstatPieChart");
myPieChart = new Chart(ctx, {
type: 'pie',
data: {
labels: ["New", "Progress", "So... |
import React, {Component} from 'react';
import {rem} from '../../utils/html-helper';
import SearchControl from '../../components/search-control';
import PropTypes from 'prop-types';
import Lang from '../../core/lang';
import App from '../../core';
import ChatShareList from './chat-share-list';
import _ChatListItem from... |
const isUndef = (value) => value === null || value === undefined;
const someUndef = (... values) => values.some(isUndef);
const isComparableType = (value) => (
isUndef(value)
|| value.constructor === RegExp // RegExp
|| value.constructor === Date // Date
|| !["object", "function"].includes(typeof va... |
/* @echo header */
var
// Process data
_processData = function(data, options) {
data = _.clone(data);
options = options || {};
options.uri = options.uri || global.location.pathname;
_.forEach(data, function(value, key) {
var tmpl = _.template(value, {interpolate:/{{([\s\S]+?)}}/g});
data[key... |
function romanList() {
const roman_letter = [
"I",
"II",
"III",
"IV",
"V",
"VI",
"VII",
"VIII",
"IX",
"X",
"XX",
"XXX",
"XL",
"L",
"LX",
"LXX",
"LXXX",
"... |
// The file is excluded from the build and must only contain utils used by testing.
/* eslint-disable import/no-extraneous-dependencies */
import mongoose from 'mongoose';
import supertest from 'supertest';
import chai from 'chai';
import dirtyChai from 'dirty-chai';
import spies from 'chai-spies';
import flatten fro... |
var v0 = (function (v1){
this._setProperty('-webkit-region-break-before', v1);
});
// GenBlkBrick
while(typeof 11){
var v1 = (function (v1, v2, v3){
var v4 = v3(137), v5 = v3(22), v6 = v3(101), v7 = v4.has, v8 = v4.get, v9 = v4.key, v10 = (function (v1, v2, v3){
if(v7(v1, v2, v3)){
return v8(v1, v2, v3);
}
var v4 = v6(... |
function escapeSelector(id) {
'use strict';
// Wrapper around window.CSS.escape that uses a fallback method if CSS.escape is not available. This is designed to
// serialize a string to be used as a valid css selector. See
// https://drafts.csswg.org/cssom/#the-css.escape()-method For example, this can... |
var generateBtn = document.querySelector("#generate");
//arrays for each character case: lower case, upper case, numbers, special characters
var lowerChar= ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n",
"o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
var upperChar= ["A", "B", "C",... |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import { withStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import Box from '@material-ui/core/Box';
import List from '@material-ui/core/List';
i... |
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more 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 ... |
import axios from 'axios'
import shuffle from 'crypto-shuffle'
import Head from 'next/head'
import { useState } from 'react'
import Confetti from 'react-confetti'
import generatePayload from '../lib/generate-payload'
import Layout from '../components/layout'
function HentDeltagere ({ deltagere, handleSubmit }) {
i... |
var _wr = function(type) {
var orig = history[type]
return function() {
var rv = orig.apply(this, arguments)
var e = new Event(type)
e.arguments = arguments
window.dispatchEvent(e)
return rv
}
}
var shareClick = true;
history.pushState = _wr('pushState')
history.replaceState = _wr(... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.4.0.2.
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functio... |
/*
Copyright (c) 2013-2014, Microsoft Mobile
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and th... |
import {useState, useEffect, useRef, useCallback, cloneElement} from 'react'
import cx from 'classnames'
import PropTypes from 'prop-types'
import Button, {atomButtonDesigns} from '@s-ui/react-atom-button'
import {BASE_CLASS, getPlacement, PLACEMENTS, SIZES} from './config.js'
function usePrevious(value) {
const r... |
// Generated by BUCKLESCRIPT VERSION 3.1.5, PLEASE EDIT WITH CARE
'use strict';
var Jest = require("@glennsl/bs-jest/src/jest.js");
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Future = require("reason-future/src/Future.bs.js");
var Password = require("../... |
const express = require('express');
const app = express();
const { urlencoded, json } = require('body-parser');
const { join } = require('path');
const passport = require('./src/lib/Passport');
const Authenticated = require('./src/lib/Authenticated');
const {
padExists,
padCreate,
padGet,
padUpdate,
accountR... |
var cur = 0;
var color_pool = ['success', 'primary', 'info', 'danger', 'warning'];
var sortby = 'rating';
$('#sortby').on('change', function() {
sortby = $('#sortby select').val();
changeProf(cur, all_profs);
});
function changeProf(index, all_profs) {
var current_prof = all_profs[index];
if (sortby ... |
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
let scope = {};
Cu.import("resource://gre/modules/PermissionSettings.jsm", scope... |
const fs = require('fs');
const path = require('path');
const stringify = require('json-stringify-pretty-compact');
const bash = require('./bash');
const ci = this;
exports.workdir = path.join(__dirname, '/../tmp');
exports.threads = 4;
exports.reapos = [];
exports.channels = {};
exports.start = async function(repos,... |
import _ from 'lodash';
const wdService = function ($http, $q, langService) {
const service = {
get,
getById,
getLabels,
getLocation,
getRecursive,
getSearch,
getSPARQL,
};
const defaultParams = {
action: 'wbgetentities',
format: 'json',
props: ['info', 'labels', 'aliases... |
import React from "react";
import styled from "react-emotion";
import { css } from "emotion";
import theme from "../utils/theme";
import mq from "../utils/breakpoints";
import ContentContainer from "../ui/content-container";
import Link from "gatsby-link";
import heroBg from "./assets/support-hero-bg.svg";
import arro... |
/*
* Gamepad API Test
* Written in 2013 by <NAME> <<EMAIL>>
*
* To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
*
* You should have received a copy of... |
const express = require('express');
const url = require('url');
const fetch = require('node-fetch');
const HttpsProxyAgent = require('https-proxy-agent');
const querystring = require('querystring');
const config = require('./config');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
const entityMap = {
'&': '&... |
/*global require, process, console */
"use strict";
var fs = require( 'fs' );
function convert( dbFile, dbFile2 ) {
fs.readFile( dbFile, 'utf8', function ( error, dbContents ) {
if ( error ) {
console.log( 'Could not read input db file' );
return;
}
var data = {},
... |
import { getTemplate, getSlotContent, getStringTypeAttr } from '@/components/template'
import guid from '@/utils/guid'
// 深度合并
import mergeDeep from '@/utils/mergeDeep'
var handle = function(_attr, _slots, { id }) {
//定义默认属性
let attributes = {
column: {
type: 'number',
... |
import React, { Component } from 'react';
import './proposeTradePopUp.scss';
import './../styles/text.scss';
import './../styles/colors.scss';
import {ItemTypes } from './../card/Constant';
import { DropTarget } from 'react-dnd';
import Card from './../card/Card';
import LoadingDots from "../loading/loadingDots";
impor... |
'use strict';
var workHours = ['6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm'];
var Shop = [];
function Cookie(locationName, MinCust, MaxCust, AvgCookieSale, Location) {
this.locationName = locationName;
this.MinCust = MinCust;
this.MaxCust = MaxCust;
... |
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import { Form, Row, Col, Input } from 'antd';
import StandardTable from '@/components/StandardTable';
import AdModal from '@/components/AdModal';
import moment, { isDate } from 'moment';
import AntdForm from '@/components/AntdForm';
impo... |
function init(){
lista_historial();
lista_select2('/dashboard/listas/modulos', 'modulos', null);
lista_select2('/dashboard/listas/medios', 'medios', null);
lista_select2('/dashboard/listas/eventos', 'eventos', null);
lista_select2('/dashboard/listas/personal', 'personal', null);
$("#formulario... |
var painScale;
jq(function() {
jq('li.nav-item').click(function(){
jq('span.line-vs-tabs').css('top', (jq(this).index()*40)+'px');
});
jq('button.btn-next, button.btn-prev').click(function(){
var index = jq(this).data('tabs');
jq('ul.nav-pills').find('li:eq(' + index + ') a').click();
});
... |
var fs = require('fs')
var path = require('path')
/**
* 复制文件
* @param {*} srcPath 源文件
* @param {*} tarPath 目标文件
* @param {*} cb 回调函数
*/
var copyFile = function (srcPath, tarPath, cb) {
var rs = fs.createReadStream(srcPath)
rs.on('error', function (err) {
if (err) {
console.log('read error', srcPath)... |
/**
* empower.js - Power Assert feature enhancer for assert function/object.
*
* https://github.com/twada/empower
*
* Copyright (c) 2013-2014 <NAME>
* Licensed under the MIT license.
* https://github.com/twada/empower/blob/master/MIT-LICENSE.txt
*/
'use strict';
var extend = require('node.extend'),
isPha... |
/* jshint esversion: 6 */
'use strict';
const fs = require('fs');
const path = require('path');
const async = require('async');
const log = require('util').log;
const handlebars = require("handlebars");
handlebars.registerHelper('for', function(from, to, incr, block) {
var accum = '';
for(var i = from; i < t... |
'use strict';
const assert = require('assert');
const Buffer = require('buffer').Buffer;
const BN = require('bn.js');
const WBuf = require('wbuf');
const OBuf = require('obuf');
const hackchain = require('../../');
const TX = hackchain.TX;
describe('TX', () => {
it('should render empty TX', () => {
const tx = ... |
$(function () {
// 페이지 로딩
getList(true);
$("#searchWord").keydown(function (event) {
if (event.keyCode == 13) {
getList(true);
return false;
}
});
});
function doReject(exchangeId, status) {
$('#myModal').modal('show');
$("#submit_btn").click(func... |
var K = function() {};
export function o_create(obj, props) {
K.prototype = obj;
obj = new K();
if (props) {
K.prototype = obj;
for (var prop in props) {
K.prototype[prop] = props[prop].value;
}
obj = new K();
}
K.prototype = null;
return obj;
}
// If it turns out we need a better p... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _sourceMap = _interopRequireDefault(require("@parcel/source-map"));
var _plugin = require("@parcel/plugin");
var _utils = require("@parcel/utils");
var _postcss = _interopRequireDefault(require("postcss"));... |
const idRegex = /^[a-z0-9-]{1,32}$/;
const nameRegex = /^[a-z0-9-]{1,32}$/;
const valueRegex = /^[a-zA-Z0-9/+.-]+$/;
const b64Regex = /^([a-zA-Z0-9/+.-]+|)$/;
const decimalRegex = /^((-)?[1-9]\d*|0)$/;
const versionRegex = /^v=(\d+)$/;
function objToKeyVal(obj) {
return objectKeys(obj)
.map(k => [k, obj[k]].join... |
// Elements that has text contents in it
const searchEl = document.getElementById('searchEl');
const dateEl = document.getElementById('dateEl');
const cityEl = document.getElementById('cityEl');
const tempEl = document.getElementById('tempEl');
const windEl = document.getElementById('windEl');
const humidEl = document.... |
import { expose, caller } from 'postmsg-rpc'
import { fakeIpfs } from 'identity-wallet/lib/utils'
const IdentityWallet = require('identity-wallet')
const Url = require('url-parse')
const store = require('store')
const { isLinked } = require('./utils')
const consentKey = (address, domain, space) => `3id_consent_${addre... |
import React from 'react';
import { graphql } from 'gatsby';
import styled from 'styled-components';
import SEO from '../components/seo';
import Layout from '../components/layout';
import BlockContent from '../components/block-content';
import NarrowPageWrapper from '../layouts/NarrowPageWrapper';
import SocialLink fro... |
'use strict';
var Package = require('./../package.json');
var path = require('path');
var async = require('async');
var Plugin = require('@maniajs/plugin').default;
/**
* LocalRecords Plugin.
*/
module.exports.default = class extends Plugin {
constructor() {
super();
// Set the package s... |
'use strict';
var hours = ['6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm', '8pm']
var allCookies = [];
var cookieTable = document.getElementById('cookies');
// function newElement(type, content, parent) {
// var element = document.createElement(type);
/... |
'use strict';
// from require to global var
var OSG = window.OSG;
var osg = OSG.osg;
var osgViewer = OSG.osgViewer;
// Wait for it
var main = function() {
var canvas = document.getElementById('View');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
var viewer;
// We create ... |
import React from "react";
import styled from "@emotion/styled";
import { Row, Col } from "reactstrap";
import { connect } from "react-redux";
import LawlessRestaurants from "../../assets/images/restaurants/lawless.jpg";
import PhoneLogo from "../../assets/images/restaurants/phone-logo.svg";
import Burger from "../../... |
require('../../bootstrap');
window.Vue = require('vue');
// Css Loader
import 'vue-loaders/dist/vue-loaders.css';
import VueLoaders from 'vue-loaders';
Vue.component('vue-loaders', VueLoaders.component);
// Vue currency formater
import Cleave from 'vue-cleave-component';
Vue.component('cleave', Cleave);
// Vue Selec... |
/* eslint-disable no-undef */
'use strict';
// Create a constructor function that creates an object associated with each product and put them in an array
function Product (name, imgSource, clickCount =0, displayedCount = 0){
this.name = name;//used as the image id
this.imgSource = imgSource;
this.clickCount = c... |
var calendar;
/**
* [Function to load a JavaScript Calendar]
* https://fullcalendar.io
*/
document.addEventListener("DOMContentLoaded", function () {
var calendarEl = document.getElementById("calendar");
//dayGrid dayGridWeek dayGridMonth listWeek
var view = "dayGridMonth";
// eslint-disable-next-... |
/**
*
* 通用打点日志组件
* 1. 用法:ctx.logger.(info|debug|warn|error)("message", {context})
* CAUTION: 参数格式只能是[string, object]
* 2. 底层使用log4js
* 3. 使用log4js自带的logstashUDP appender
* 4. 在config中声明了log4js的object后,才会初始化logger,可以使用
*
* Created by zhuliang.li on 20170614.
*
* zhuliang.li, modified on 20170619
* 1. 修改... |
import React from 'react';
import 'react-native-gesture-handler';
import {
StyleSheet, Text, View, Image, TouchableOpacity, TextInput, ScrollView,
KeyboardAvoidingView, Keyboard
} from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
import displayPicture from '../assets/display-picture.jpg';
... |
const { handler } = require("../build/cjs/methods");
const chai = require("chai");
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
chai.should();
const fs = require("fs");
const path = require("path");
const jsonFile = path.basename("../vatsimData.json");
const controller = {
cid: 999... |
const swiper = new Swiper(".swiper-container-hero", {
slidesPerView: 1,
loop: true,
navigation: {
nextEl: ".swiper-hero-slider-buttons-next",
prevEl: ".swiper-hero-slider-buttons-prev"
}
});
// modal start
const modalOpeners = document.querySelectorAll(".modal-opener");
const modals = d... |
import React from "react";
import ReactSlider from "react-slider";
import Primitive from "../primitive.js";
import Node from "../node-ui.js";
import TextInput from "../components/text-input.js";
import validators from "../components/validators.js";
import converters from "../components/converters.js";
import SVGTag fr... |
var request = require( 'request' );
var createuuid = require( 'uuidv5' );
var bluebird = require('bluebird');
var _ = require('underscore');
var os = require( 'os' );
var Promise = bluebird.Promise;
var URL_AUTHENTICATE = 'https://api.mobile.endomondo.com/mobile/auth';
var URL_WORKOUTS = 'https://api.mobile.endom... |
var utils = new utilsObject();
function utilsObject(){}
/**
* Obtains a WebGL context for the canvas with id 'canvas-element-id'
* This function is invoked when the WebGL app is starting.
*/
utilsObject.prototype.getGLContext = function(name){
var canvas = document.getElementById(name);
var c... |
//Segunda missao estelar JS
//Apertem os cintos para adentramos ao hiper-espaço rumo a uma nova Missão Estelar JS! :)
var missao = "Segunda missão estelar JS";
console.log("Valor da variável: ", missao, " - Tipo: ", typeof missao);
var hiperespaco = new String("Apertem os cintos para adentramos ao hiper-espaço rumo... |
var fnObj = {};
var ACTIONS = axboot.actionExtend(fnObj, {
PAGE_SEARCH: function (caller, act, data) {
axboot.ajax({
type: "GET",
url: "/api/v1/scheduler",
success: function(res){
return res;
}
});
return false;
},
/*
... |
const drulz = [
'tt0397306',
'tt1486217',
'tt1561755',
'tt2474952',
'tt2467372',
'tt1439629',
'tt4677934',
'tt0182576',
'tt6317068',
'tt0149460',
'tt1865718',
'tt0472954',
'tt3718778',
'tt1266020',
'tt1780441',
'tt2861424',
'tt0098904',
'tt0055683',
'tt1178180',
'tt5691552',
't... |
'use strict';
const { Writable } = require('stream');
const Query = require('./query');
const STATE_VALUE = 0;
const STATE_STRING = 1;
const STATE_OBJECT = 3;
const STATE_OBJECT_KEY = 4;
const STATE_OBJECT_VALUE = 5;
const STATE_ARRAY = 6;
const STATE_ARRAY_VALUE = 7;
const STATE_SKIP = 8;
class StreamIndexer exten... |
/* global Blob */
import $ from './jquery.js'
import mimeTypeIcons from './mime-type-icons.js'
import { configuration } from './configuration.js'
import { uploadSaz } from './saz-store.js'
import { startProgress, stopProgress } from './progress.js'
import { parseError } from './data-parsers.js'
import { padThousands }... |
var brigadeSelect = $("#brigade-select")
// Get list of Brigades and fill up the drop down menu
$.getJSON("http://codeforamerica.org/api/organizations.geojson", function(response){
organizations = response.features;
// Alphabetize by city.
organizations.sort(compare);
// Add them to the form
$.each(organiz... |
function renderPipelines(url, divNames, errorDiv, showAvatars) {
jQuery.ajax({
url: url,
dataType: 'json',
async: true,
cache: false,
timeout: 20000,
success: function (data) {
jQuery("#" + errorDiv).html('');
jQ... |
/* eslint-disable react/prop-types */
/* eslint-disable max-len */
/* eslint-disable require-jsdoc */
import React, {Component} from 'react';
import {Navbar, NavDropdown, Nav, Button, Container} from 'react-bootstrap';
import {ENTITY_VISIBLE_ID_NOTES, ENTITY_VISIBLE_ID_BOARDS, ENTITY_VISIBLE_ID_TASKLISTS} from '../redu... |
var express = require('express');
var config = require( '../config/config')
var router = express.Router();
var node_uuid=require('node-uuid')
var redis = require( './redis')
var mongo = require('mongodb')
var colors=require('colors')
var util=require('util')
var formidable = require('formidable')
var fs=require( 'fs')
... |
const { TwilioClientCommand } = require('@twilio/cli-core').baseCommands;
const { handler } = require('create-twilio-function/src/command');
const { computeDiagnostics } = require('../../utils/diagnostics');
import chalk from 'chalk';
import got from 'got';
import path from 'path';
import logSymbols from 'log-symbols';... |
var target_click;
jQuery(document).ready(function () {
send_comment = 1;
$(document).ready(function () {
sidebar = new StickySidebar('.stickyside', {
topSpacing: 65,
bottomSpacing: 40
});
sidebarright = new StickySidebar('.stickysideRight', {
topSpacin... |
/* eslint-disable brace-style */
import { fonts } from './variable';
import { stopFilterLoader } from './loader';
global.optionsToggle = (event) => {
const parentTarget = event.target.parentElement;
const sectionElement = parentTarget.nextElementSibling.nextElementSibling;
if (sectionElement.classList.contains... |
import React from 'react'
import { Row, Col, Box, Button, Inputs } from 'adminlte-2-react'
import CashDropQr from './qr-code'
import fetch from 'isomorphic-fetch'
import PropTypes from 'prop-types'
const { Text, Select } = Inputs
let _this
class CashDropForm extends React.Component {
constructor (props) {
supe... |
import React, { Component } from 'react'
import { findDOMNode } from 'react-dom'
import NewRelicReactPlayer from './NewRelicReactPlayer'
const MULTIPLE_SOURCES = [
{ src: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4', type: 'video/mp4' },
{ src: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv', type: 'vid... |
import { NO_CONTENT, OK } from 'http-status-codes';
import { concat } from 'lodash';
import {
DEFAULT_CONSUMES,
DEFAULT_PRODUCES,
OPENAPI_2_0,
OPENAPI_3_0_0,
UUID_PATTERN,
} from '../constants';
import { UnprocessableEntity } from '../errors';
import pickVersion from '../versions';
import Parameter... |
import React, { PureComponent, Fragment } from "react";
import { connect } from "dva";
import moment from 'moment';
import {
Row,
Col,
Tag,
List,
Card,
Radio,
Input,
Button,
Dropdown,
Icon,
Menu,
Modal,
Form,
Avatar,
Badge,
Divider,
Select,
Popconfirm,
Pagination,
message
} from ... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __extends = (this && this.__extends) || (function () {
var extendStat... |
/* global __ */
"use strict";
import Pin from "./pin";
const clickType = typeof document.ontouchstart === "undefined" ? "click" : "touchstart";
let changeKeyboardToPassword;
const pinNode = document.getElementById("mx-pin-container");
const errorNode = document.getElementById("mx-pin-error");
const confirmPinButton ... |
const fs = require('fs');
const path = require('path');
const bodyParser = require('body-parser');
const express = require('express');
const webpack = require('webpack');
const yaml = require('js-yaml');
const enableDestroy = require('server-destroy');
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
co... |
const inquirer = require('inquirer')
const mysql = require('mysql2')
require('console.table')
const db = require('./db/connection')
// user asked a question and given several choices
const question = () => {
inquirer.prompt ([
{
type: 'list',
name: 'mainMenu',
message: 'What would you like to... |
import {
isObject,
TRACKER,
each,
shallowCopy,
isTrackable,
createHiddenProperty
} from "./commons"
import ES5Tracker from "./ES5Tracker"
import context from "./context"
const peek = (proxy, accessPath) =>
// eslint-disable-line
accessPath.reduce((proxy, cur) => {
proxy.setProp("isPeeking", true)
... |
const axios = require('axios');
const express = require('express');
const app = express();
app.use(express.static("public"));
/**
* Copyright (c) 2022, <NAME> (hystleria // <EMAIL>)
*
* https://github.com/hystleria/pinger
*
* This code is subject to the BSD 3-Clause "New" or "Revised" License authored by Regent... |
const {Gateway, Wallets} = require('fabric-network');
const FabricCAServices = require('fabric-ca-client');
const path = require('path');
const {buildCAClient, registerAndEnrollUser} = require('./CAUtil.js');
const {buildCCPHosp3, buildCCPHosp2, buildCCPHosp1, buildWallet} = require('./AppUtil.js');
const channelNam... |
var Util = require('util');
var Fs = require('fs');
var Os = require('os');
var defaults = {
timestamp : true
, out : process.stdout
, title : false
, pid : false
, hostname : false
, console : [ 'fatal' ]
, autoorigin ... |
import React, { Component } from 'react';
import CryptoJS from 'crypto-js';
import Question from '../components/Question';
import { Link } from "react-router-dom";
import '../styles/questions.css';
class Questions extends Component {
constructor(props) {
super(props);
this.state = {
data: [],
questions: nu... |
//@ts-check
import { Client } from 'discord.js'
import logger from './lib/logger'
import auth from './config/auth.json'
import config from './config/config.json'
import {
handleTopScoresCommand,
handleSingleScoreCommand,
handleWeeklyRunCommand,
handleMissingMythicsCommand
} from './commands/raideriocaller'
impo... |
/*
* self.js
* Copyright (C) 2015 <NAME> <kovid at kovidgoyal.net>
*
* Distributed under terms of the BSD license.
*/
"use strict"; /*jshint node:true */
var path = require("path");
var crypto = require("crypto");
var fs = require("fs");
var vm = require("vm");
var zlib = require("zlib");
function compile_baseli... |
function generatePassword() {
// confirm password length
var confirmPasslength = prompt(
"How long of a password do you want (8-128 characters)?"
);
// while loop forces user to select between 8-128 characters
while (
isNaN(confirmPasslength) ||
confirmPasslength < 8 ||
confirmPasslength > 128... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Alert, FormGroup, Input, Label, Tooltip } from 'reactstrap';
import { gettext } from '../../../utils/constants';
import Loading from '../../loading';
import OpIcon from '../../op-icon';
const propTypes = {
mode: PropTypes.string,
... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import ParallaxSlide from '@mui-treasury/components/slide/parallax';
import PropTypes from 'prop-types';
import {
Grid,
Typography,
Box,
Card,
CardContent,
Chip
} from '@material-ui/core';
import coursesContent from 'src/data... |
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require("./config.json");
client.on('ready', () => {
console.log(`-------------------------------\nWelcome to the system Admin With Mysql\nCreator / Developper : MasterLua#9999\nConnected to ${client.user.tag}!\n---------... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(ex... |
/* jshint esversion: 7 */
/* jshint node: true */
"use strict";
// Asynchronous utility function for data retrieval
async function getData(url) {
return fetch(url)
.then(response => response.json())
.catch(error => console.log(error));
}
// Header generator
function generateHeader(headerName) {
let header... |
import AddressService from "../../../class/service/AddressService";
import Router from "../../../class/utils/Router";
import Tips from "../../../class/utils/Tips";
const notification = require("../../../class/utils/WxNotificationCenter.js");
const addressService = new AddressService();
var area = require('../../../dat... |
/* eslint-disable no-useless-constructor */
import { toJS } from 'mobx';
import { notify } from 'react-notify-toast';
import { Component } from 'react';
import { Form, Input, Button, Radio, Row, Col, Table } from 'antd';
import TextArea from 'antd/lib/input/TextArea';
import { fetchProcessVars } from './inboxstore';
im... |
import React, { useState, useEffect, useContext } from 'react'
import { Button } from 'react-bootstrap'
import { Row, Col, Table } from 'react-bootstrap'
import { useApi, usePadlock } from '../../../api/hook'
import { AuthContext } from '../../../Components/Auth'
import Collapsible from 'react-collapsible'
import Loadi... |
function hash_code (s) {
return s.split('').reduce(function (a, b) { a = ((a << 5) - a) + b.charCodeAt(0); return a & a }, 0)
}
function get_hash_key (cfg) {
// return cfg.name + "" + hash_code("" + cfg.src)
return cfg.name + '' + hash_code(JSON.stringify(cfg))
}
const Scene2Phaser = {
load: function ... |
"use strict";
const Scene = require("telegraf/scenes/base");
const Markup = require("telegraf/markup");
const {ArgumentParser} = require("argparse");
const {languages} = (function()
{
let l = require("google-translate-api").languages;
return {
languages: Object.entries(l).filter(([k, v]) => typeof v == "string... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.