text stringlengths 3.22k 29.5k |
|---|
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-8f9a8751.js');
var createComponent = require('reakit-system/createComponent');
var createHook = require('reakit-system/createHook');
require('reakit-utils/shallowEqual');
... |
import React from 'react';
import { compose } from 'redux';
import * as PropTypes from 'prop-types';
import { Button, Grid, withStyles } from '@material-ui/core';
import SelectAutocomplete from 'components/SelectAutocomplete';
import InputControl from 'components/InputControl';
import PeriodPicker from 'components/Peri... |
var Unit14_ChipmunkScene = cc.Scene.extend({
onEnter:function () {
this._super();
//this.loadLayer();
this.loadExample();
},
loadLayer : function(){
var node = new Unit14_ChipmunkLayer();
this.addChild(node);
},
loadExample : function(){
var node = new... |
import Operation from './Operation'
import Variable from './Variable'
const SyntaxQualifiers = {
'varying': Variable.Qualifier.VARYING,
'uniform': Variable.Qualifier.UNIFORM,
'attribute': Variable.Qualifier.ATTRIBUTE
}
const SyntaxTypes = {
'bool': Variable.Type.BOOL,
'int': Variable.Type.INT,
'uint': Var... |
/**
@module ember-flexberry-gis
*/
import Ember from 'ember';
import layout from '../../templates/components/geometry-add-modes/import';
import { translationMacro as t } from 'ember-i18n';
/**
Component's CSS-classes names.
JSON-object containing string constants with CSS-classes names related to component's .h... |
var playlist;
function callMusicTemplate(id){
genTemplateMusic();
callAjaxMusic(id);
playlist=id;
verifica(id,useridphp);
}
function callAjaxMusic(playlistid){
$.ajax({
type: 'POST',
url: '../ws/getUserMusicbyPlayList.php',
dataType: 'json',
data: {
p... |
const spawn = require("cross-spawn-promise");
const cpx = require("cpx");
const Path = require("path");
const FS = require("fs");
const rimraf = require("rimraf");
const chalk = require("chalk");
const exportTools = require("./exportTools");
const error = chalk.rgb(200, 0, 0);
const info = chalk.rgb(100, 100, 255);
/... |
/*globals requireJS*/
/*eslint-env node*/
/**
*
* @author pmeijer / https://github.com/pmeijer
*/
'use strict';
var Q = require('q'),
superagent = require('superagent'),
BranchMonitor = require('./branchmonitor'),
EventDispatcher = requireJS('common/EventDispatcher'),
STORAGE_CONSTANTS = requireJS(... |
var priorities
var incidents
var token
var poller
var last_polled
var recent_log_entries = []
var recent_log_entries_purge_timer
var table
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = rege... |
var locations = [];
var map;
var infowindow;
var mapZoom;
function initMap() {
'use strict';
if (window.innerWidth < 730) {
mapZoom = 12;
} else {
mapZoom = 15;
}
//Ashland, Oregon latlng.
var latlng = {
lat: 42.194576,
lng: -122.709477
};
... |
var async = require('async');
var assert = require('assert');
var savePostUser = require('./import-user-post-info');
var save_viewer_node = require('./import-viewer-info').save_viewer_node;
var MongoOplog = require('mongo-oplog');
var restify = require('restify');
var conn = {
mongo: process.env.MONGO_URL,
oplog: ... |
/*
Copyright IBM Corporation 2017.
LICENSE: Apache License, Version 2.0
*/
let
// host = window.location.hostname.replace('-preview',''),
host = window.location.hostname,
tenant = window.location.pathname.split('/')[1],
protocol = window.location.protocol,
inPreview = (host.includes('-preview') && host.includes('.... |
var ICallbackStatus;
(function (ICallbackStatus) {
ICallbackStatus[ICallbackStatus["NO_RESULT"] = 0] = "NO_RESULT";
ICallbackStatus[ICallbackStatus["OK"] = 1] = "OK";
ICallbackStatus[ICallbackStatus["CLASS_NOT_FOUND_EXCEPTION"] = 2] = "CLASS_NOT_FOUND_EXCEPTION";
ICallbackStatus[ICallbackStatus["ILLEGAL... |
'use strict';
import { COL } from '../COL.js';
class FileZipUtils {
////////////////////////////////////////////////////////////////////////////
// Returns true if the filenameFullPath is for data that is shared across multiple sites
// e.g. sitesInfo.json, general_metadata.json
// or false otherwi... |
import styled from "styled-components";
export const Container = styled.div`
width: 85%;
max-width: 1920px;
margin: 0 auto;
}
@media (max-width: 768px) {
.container {
width: 95%;
}
}
@media (max-width: 1440px) {
.container {
width: 90%;
}`;
export const Flex = styled.div`
display: flex;
align-items: center;
... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { debounce } from "lodash";
import { fetchCities } from "../actions/citiesActions";
import { editCity, deleteCity } from "../actions/cmsActions";
import Header from "../components/layout/Header";... |
import React from 'react';
import {useLocation} from 'react-router';
import {Switch, Route, Link} from 'react-router-dom';
import AppBar from '@material-ui/core/AppBar';
import CssBaseline from '@material-ui/core/CssBaseline';
import Drawer from '@material-ui/core/Drawer';
import Divider from '@material-ui/core/Divid... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
// 金额格式化
// s表示长串,n表示小数点后有几位
export const formatMoney = function (s, n) {
// debugger
if (s) {
let isNegative = false
n = n >= 0 && n <= 20 ? n : 2;
s = parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(n) + '';
if (s[0] === '-') {
isNegative = true
s... |
const fs = require('fs');
const path = require('path');
const homedir = require('homedir');
const os = require('os');
const Rx = require('rxjs');
const chokidar = require('chokidar');
const readDir = Rx.Observable.bindNodeCallback(fs.readdir);
const readFile = Rx.Observable.bindNodeCallback(fs.readFile);
const mkDir ... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var Race_1 = __importDefault(require("./Race"));
var Voter_1 = __importDefault(require("./Voter"));
var ... |
// Code adapted from bl.ocks.org, https://bl.ocks.org/Thanaporn-sk/210d359e6e0c10898ff1329a88ed20c6
// Data is taken from https://news.gallup.com/poll/312575/satisfaction-direction-lowest-four-years.aspx
var margin = {top: 100, right: 100, bottom: 50, left: 250};
var width = 1200 - margin.left - margin.right,
he... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
import React, { useState } from 'react'
import { makeStyles } from '@material-ui/core/styles'
import PropTypes from 'prop-types'
import TextField from '@material-ui/core/TextField'
import Grid from '@material-ui/core/Grid'
import Button from '@material-ui/core/Button'
import Typography from '@material-ui/core/Typograph... |
'use strict';
const {app, Menu, BrowserWindow, ipcMain, Tray, nativeTheme, nativeImage} = require('electron');
const path = require('path');
// 計る「3」分間
const MAX_MILLI_SECONDS = 3*60*1000;
let milliseconds = MAX_MILLI_SECONDS;
// トレイアイコン
let tray = null;
// メインウィンドウ
let mainWindow;
// タイマー動作中フラグ
let isWo... |
"use strict";
//----------- string -----------
var nome = 'João';
// Mesmo escrevendo um código JS puro, o TS infere automaticamente um tipo para a variável baseado no tipo do valor
console.log(nome);
//nome = 28
// Já que na variável "nome" já foi inferido o tipo "string", o TS não permite atribuir um valor de tipo di... |
import React, { useState } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import store from 'store';
import classNames from 'classnames';
import { filter, get, includes, isUndefined, size } from 'lodash';
import { Icon, Menu } from 'antd';
import { Link } from 'react-router-dom... |
var mymap = L.map('maps').setView([-7.449, 109.2150], 6);
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Ma... |
// material-ui
import { Accordion, AccordionDetails, AccordionSummary, Alert, Button, Grid, LinearProgress, MenuItem, Select, TextField, Typography } from '@mui/material';
import { makeStyles } from '@mui/styles';
import { useNavigate } from 'react-router';
import { useEffect, useState } from 'react';
import { useDispa... |
import PropTypes from 'prop-types';
import { Form, FormikProvider } from 'formik';
import FilterAltIcon from '@mui/icons-material/FilterAlt';
// material
import { makeStyles } from '@material-ui/core/styles';
import {
Box,
Radio,
Stack,
Button,
Drawer,
Divider,
Checkbox,
... |
function elId(e) {
if (!e) {
return;
} else if (e.charAt(0) != '#') {
return '#' + e;
} else {
return e;
}
};
function getLabelSpan(msg, label) {
return '<span class="label label-' + label + '">' + msg + '</span>';
};
$(document).ready(function() {
// Given an input element, find the next inp... |
const axios = require('axios');
const axiosRateLimit = require('axios-rate-limit');
const WebSocket = require('ws');
const {
payments:bitcoinPayments, networks:bitcoinNetworks, script:bitcoinScript,
address:bitcoinAddress, crypto:bitcoinCrypto, ECPair, Psbt,
} = require('bitcoinjs-lib');
const {
inspect, inspect... |
// adds a method called "has" to the array prototype, which checks if the array contains an item
Object.defineProperty(Array.prototype,'has', {
value: function(o) {
return this.indexOf(o) != -1;
}
});
// MAP
var map;
// MAP LAYERS
var hospitals_layer;
var schools_layer;
var kindergarten_layer;
var layers;
var ... |
// NUMERIC FUNCTIONS
var num = {
vecSum: numeric['+'],
vecSub: numeric['-'],
vecProd: numeric['*'],
vecDiv: numeric['/'],
inv: numeric.inv,
transpose: numeric.transpose,
dot: numeric.dot,
det: numeric.det,
norm2: numeric.norm2,
norm2Squared: numeric.norm2Squared,
id: (function() {
return [[1, 0, 0], [0, 1... |
import _ from 'lodash'
import fp from 'lodash/fp'
import React from 'react'
import { connect } from 'react-redux'
import classNames from 'classnames'
import { getLinkToFront, getLinkToChannel } from '../routing/links'
import { push } from '../store/actions/router'
import { sendMessage, pushMessageInputHistory } from '... |
// Load DFP --
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') + '//www.goo... |
"use strict";
/* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with the License. You may
* obtain a c... |
import * as d3 from 'd3';
import { each, map } from 'lodash';
import moment from 'moment';
import {AREA_CHART_TRANSITION_DURATION, textXPosition, transformAxeTextPosition, XYChartYScale} from './utils';
import legend from './legend';
import popup from './popup';
const margin = {
top: 40,
left: 60,
bottom:... |
/**
* Created by zhangboya on 2016/8/31.
*/
$(function () {
WinPageChange();
changeWidth();
$(window).resize(function () {
WinPageChange();
changeWidth();
})
//响应 页面改变
function WinPageChange() {
//设置 section 部分的高度
$('.section').height($(window).height() - 120);
... |
var Handlebars = {
compile: function(string) {
var fnBody = Handlebars.compileFunctionBody(string);
var fn = new Function("context", "fallback", "Handlebars", fnBody);
return function(context, fallback) { return fn(context, fallback, Handlebars); };
},
compileToString: function(string) {
var fnB... |
/* XXX rewrite this, it's super baddddddd; check notion Database
transitiong group */
export const displayAds = {
contentContainer : document.querySelector("#display-ads-content"),
/**
* @type {HTMLImageElement}
*/
itemTemplate : document.querySelector("#display-ads-item-template")
.content.firstElementChild,... |
const MARGIN_TOP = 100;
const WIDTH = 1200;
const HEIGHT = 750 - MARGIN_TOP;
const FIRST_YEAR = 1950;
const LAST_YEAR = 2020;
const TRANSITION_DURATION = 750;
const OPTION_ALL = "all";
let populationData;
let interval;
let currentYear = FIRST_YEAR;
let currentContinent = OPTION_ALL;
let numberOfCountries = OPTION_ALL;
... |
document.getElementById('map').oncontextmenu=function(){return false;};
var legend_data = [];
var series_categories=[];
$(function() {
var url1 = "/sysDicUserIndexCode/chartList";
ajaxPost(url1,null,loadSelect);
$("#addItem").bind("click",function(){
var value = $("#keyword_input").val();
if(value==""){
al... |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import PropTypes from 'prop-types';
import { Image, View, StatusBar, Alert, TouchableOpacity, TextInput, ScrollView, Text } from 'react-native';
import { Footer, FooterTab, Container, Header, Button, Body, Title, ActionSheet } from 'native-... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Test suite for chrome://media-app.
*/
GEN('#include "chromeos/components/media_app_ui/test/media_app_ui_browsertest.h"');
GEN('#inc... |
function attack(group, target, override){
const droids = enumGroup(group);
droids.some(function check_droid(droid){
if(!override
&& droid.order !== 0
&& droid.order !== 25){
return;
}
if(target.type === DROID){
if(target.isVTOL){
... |
// Global
let path = $('.main-content').data('path'); let alert = $('.notification-cart');
// click add to cart from feactured // produts view
$('.product').on('click', '#add-cart', function(event) {
event.preventDefault();
/* Act on the event */
let btn = $(this);
add_cart(btn.data('id'),1);
});
// click add t... |
// Opens a streaming torrent client
var videoStreamer = null;
var playTorrent = window.playTorrent = function (torrent, subs, movieModel, callback, progressCallback) {
videoStreamer ? $(document).trigger('videoExit') : null;
// Create a unique file to cache the video (with a microtimestamp) to prevent read confl... |
//Reusable Fields
const getSellFields = function () {
let fields = [];
for (var i = 2; i < 14; i++) {
fields.push($("#sell_" + i)[0]);
}
return fields;
};
const getFirstBuyRadios = function () {
return [
$("#first-time-radio-no")[0],
$("#first-time-radio-yes")[0]
];
};
const getPreviousPattern... |
/* globals $ */
import * as d3 from './d3';
import D3Chart from './D3Chart';
import stackData from './utils/stackData';
import negativeRegionRect from './utils/negativeRegionRect';
const stack = d3.stack().offset(d3.stackOffsetDiverging);
/**
* Determines the opacity with which a target line should be drawn.
*/
co... |
var Pointer = function() {
var pointer = this;
this.exitCountdown = 0;
this.inputLog = [];
this.analyzedExits = [];
}
Pointer.prototype.get = function(path) {
// Parse a plaintext path into steps
if (isString(path))
path = parseMapPath(path);
var steps = path.steps.map(step => step.value !== undefi... |
var search_dat = parent.search_dat;
var selected_fare = parent.selected_fare;
var selected_seat = parent.selected_seat;
var book_dat = parent.book_dat;
var book_log_dat = parent.book_log_dat;
var board_dat = [[],[]];
var input = document.getElementsByTagName("input");
var h3 = document.getElementsByTagName("h3")[2];
va... |
"use strict";
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var Tabpane = React.createClass({
displayN... |
/* eslint-disable */
import * as THREE from 'three'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'
import { VRButton } from 'three/examples/jsm/webxr/VRButton.js'
import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer'
import eventBus from './eventBus'
import * as newcc ... |
/**
* Gathers util functions to serialize JSONAPI resources to RDFA.
* Notes
* -----
* You might wonder why not using Ember DS models instead?
* - Since the domain you are talking about, might not fully be represented in Ember, this might provide issues with serialization
* Furthermore: the metaModel passed in f... |
import flat from '../../../utils/flat/index.js';
import unflat from '../../../utils/unflat/index.js';
import setByPath from '../../../utils/set-by-path/index.js';
import getByPath from '../../../utils/get-by-path/index.js';
import compareObjects from '../../../utils/compare-objects/index.js';
import betterResult from '... |
/**
* kociemba two phase算法, 对称对各种坐标的适用性验证, 这里仅验证角块朝向坐标和棱块朝向坐标:
* 依据: S(i)^-1 * H * S(i) = H 如果满足这个公式, 说明就是可以应用对称的.
*/
export function test(){
Symmetries.init();
testCornerOrientation();
testEdgeOrientation();
}
function testCornerOrientation(){
console.log("test corner orientation start...");
l... |
//Set CSRF Tokken into AJAX Request ////////////////////////////////////////////////////////////////////////////////////
//The Begin
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < c... |
const UpdateEnums = {
databaseName: 'maha',
up: async (knex) => {
await knex.raw('drop view finance_items')
await knex.raw('drop view maha_imports_import_items')
await knex.raw('alter type expenses_advances_status rename to finance_advances_status')
await knex.raw('alter type expenses_checks_s... |
// RAW
// Author: 熊猫小A
// Link: https://www.imalan.cn
console.log(` %c Theme RAW 0.94 %c https://blog.imalan.cn/archives/163/ `, `color: #fadfa3; background: #23b7e5; padding:5px;`, `background: #1c2b36; padding:5px;`);
$(document).scroll(function(){
if($(window).width()>767) return;
var before = $(document).scr... |
import React, { Component } from "react";
//Styles
import "./App.css";
import {
Grid,
// List,
Button,
// Table,
// Input,
Message,
Form,
// Card,
// Divider,
Segment,
Header,
Icon
} from "semantic-ui-react";
// ABI for test purposes
import sampleABI from "./ethereum/sampleABI2";
// Component... |
#!/usr/bin/env node
var os = require("os");
var fs = require("fs");
var network = require("network");
var promise = require("deferred");
var yaml = require("yamljs");
var watcher = require("watchjs");
var child_process = require('child_process');
var path = require('path');
var vccutil = require("./vccutil.js");
var ... |
import React, { Component } from "react";
import Database from "variables/Database.js";
import Input from "components/Input/Input";
import moment from "moment";
import { Route, Switch, Link, withRouter } from 'react-router-dom';
// import { AddBox, ArrowUpward } from "@material-ui/icons";
// import ReactDOM from "rea... |
/**
* Copyright 2021 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/*
Meet-the-Fans
https://github.com/evoluteur/meet-the-fans
(c) 2022 <NAME>
*/
const height = config.height || 2000;
const width = config.width || 2500;
const userColors = config.userColors;
const colorFaded = config.colorFaded || "#eeeeee";
const circleBorder = config.circleBorder || "white"; //'black'
co... |
import utcDateFactory from '../ngbBlastSearch.date.filter';
const utcDateFormatter = utcDateFactory();
const DEFAULT_BLAST_HISTORY_COLUMNS = [
'id', 'title', 'currentState', 'submitted', 'duration', 'actions'
];
const DEFAULT_ORDERBY_HISTORY_COLUMNS = {
'submitted': 'created_date',
'id': 'task_id',
't... |
// require('update-electron-app')()
const {dialog, ipcRenderer} = require('electron').remote;
const remote = require('electron').remote;
const fs = require('fs')
const path = require('path')
var xml_parser = require('xml-js')
var QRCode = require('qrcode')
var html2image = require('html-to-image')
var bmp_generator = r... |
const fetch = require('node-fetch');
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
module.exports = {
name: 'help-genshin',
aliases: ["genshin"],
permissions: ["SEND_MESSAGES"],
description: "Embeds!",
async execute(client, message, args, Discord){
let de... |
import React, { useEffect, useState } from 'react'
import { Text, Alert } from 'react-native'
import moment from 'moment'
import Share from 'react-native-share'
import { Avatar } from 'react-native-elements'
import ScreenLoader from '../../../components/ScreenLoader'
import { CoolAlert } from '../../../components/Cool... |
import * as bootstrap from 'bootstrap';
import $ from 'jquery';
import BN from "bn.js";
import * as spl_token from "@solana/spl-token";
import * as BufferLayout from 'buffer-layout';
import bs58 from 'bs58';
import { sha256 } from 'crypto-hash';
// Both devnet
let NFT_PROGRAM_ID = new solanaWeb3.PublicKey("<KEY>");... |
import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import Countdown from 'react-countdown-now';
import Modal from 'react-bootstrap/Modal';
import AceEditor from 'react-ace';
import 'ace-builds/src-noconflict/mode-javascript';
import 'ace-builds/src-noconflict/the... |
var t = document.getElementById("kt_charts_widget_4_chart");
let arr = JSON.parse(t.dataset.chart);
let data = [];
let date = [];
if (t) {
arr.forEach(function(e){
data.push(e.total);
date.push(this.monthName(e.month));
});
var e = {
series: [{
name: "Reports",
data: data... |
var Discord = require('discord.io');
var logger = require('winston');
var auth = require('./auth.json');
var index = require('./index.js');
//log settings
logger.remove(logger.transports.Console);
logger.add(logger.transports.Console, {
colorize: true
});
logger.level = 'debug';
//Initialize bot
var bot = new Dis... |
var network = null;
function draw() {
var utg_div = document.getElementById('utg_div');
var utg_details = document.getElementById('utg_details');
showOverall();
var options = {
autoResize: true,
height: '100%',
width: '100%',
locale: 'en',
nodes: {
shapeProperties: {
useBor... |
/* eslint-disable*/
/*
* @Author: docoder
* @Email: <EMAIL>
*/
import React from 'react'
import PropTypes from 'prop-types'
import {Table as AntTable, Popconfirm} from 'antd'
import styled from 'styled-components'
import { EditableFormRow, EditableCell } from './editableComponents'
import Button from '../Button'
impor... |
import { Card , Button , Col , CardDeck , Form , Dropdown , Row , Carousel } from 'react-bootstrap';
import React , { Component } from 'react';
import { Menu } from 'semantic-ui-react';
import { Link } from 'react-router-dom';
import { products } from '../../orbitdb/orbit';
import { baseLink , ipfs } from '../../... |
import React,{useEffect, useState, useRef} from 'react';
import RecipeService from "../services/recipe.service";
import AuthService from "../services/auth.service"
import { Link } from "react-router-dom";
import { makeStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardActio... |
/* eslint-disable no-await-in-loop */
const color = require('ansi-styles'),
table3 = require('cli-table3'),
chart = require('./chart'),
pkg = require('../../package.json'), // package.json info
say = require('../sayings/threads.json'); // sayings
// ansi colors
... |
import React, { Component, Fragment, useState } from 'react';
import { API_URL, GET_TOKEN_HEADER } from '../../constants';
import SkeletonLoading from '../SkeletonLoading';
import ErrorBox from '../Error';
import Issue from '../Issue';
import PRBlock from '../PRBlock'
import FPRIssueList from '../FPRIssueList';
import ... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
import React, { useState, useEffect } from "react";
import {
Tab,
Row,
Col,
Container,
Card,
ListGroup,
ListGroupItem,
Pagination,
Button,
Form,
} from "react-bootstrap";
import api from "./../../app/api";
import moment from "moment";
import { getIdFromToken, getUserTypeFromToken } from "../../app/... |
import { useEffect, useState, useContext, useCallback } from "react";
import { useParams } from "react-router-dom";
import withRouter from "../utility/withRouter"
import * as React from 'react';
import { render } from "@testing-library/react";
import { DataGrid, selectedGridRowsCountSelector } from '@mui/x-data-grid';
... |
var mathUtils = require('./../../../mathUtils.js').mathUtils;
var trig = require('./../../../trigonomicUtils.js').trigonomicUtils;
var coloring = require('./../../../colorUtils.js').colorUtils;
var rgba = coloring.rgba;
var warpStarTheme = {
contextBlendingMode: 'lighter',
active: 1,
life: { min: 50, max: ... |
const fs = require('fs');
// const util = require('util');
const _ = require('lodash');
const api = require('./api/data.json');
const Entry = require('./lib/entry');
const Parameter = require('./lib/parameter');
const Return = require('./lib/returns');
const Tag = require('./lib/tag');
// const Category = require('./l... |
'use strict';
var jstransform = require('jstransform');
var utils = require('jstransform/src/utils');
var Syntax = jstransform.Syntax;
//
// utils
//
function getName(x) {
return x.name;
}
function getObjectKey(key) {
switch (key.type) {
case Syntax.Identifier :
return key.name;
case Syntax.Liter... |
'use strict';
var mongoose = require('mongoose'),
async = require('async'),
path = require('path'),
fs = require('fs'),
imagemagick = require('imagemagick'),
mv = require('mv'),
utils = require('../utils/utils'),
flowUtils = require('../utils/flowUt... |
var curUser = parseInt(localStorage.getItem("CurrentUser"), 10);
if(curUser == 0){
window.location.replace("index.html");
}
document.getElementById("navbarDropdown").innerHTML = JSON.parse(localStorage.getItem('User_Db'))[localStorage.getItem('CurrentUser')]['Uname'];
var i;
var j;
var k;
var albumId;
var albumNam... |
var FlexPaper_Model = {
//globalImgPath : "../../auxiliary/dhtmlxfull3.5/imgs/dhtmlxtoolbar_imgs/" // not mandatory, default "../codebase3.5/imgs/"
globalImgPath : "../../plugins/dhtmlx/imgs/dhtmlxtoolbar_imgs/" // not mandatory, default "../codebase3.5/imgs/"
,globalSkin : "dhx_skyblue" // not mandatory, d... |
/*
(The MIT License)
Copyright (C) 2012 wsky (wskyhx at g<EMAIL>) and other contributors
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 limitat... |
import React from 'react';
import showdown from 'showdown';
import highlight from 'showdown-highlight';
const classMap = {
table: 'documentation__docs_table',
h3: 'documentation__h3',
};
const bindings = Object.keys(classMap)
.map(key => ({
type: 'output',
regex: new RegExp(`<${key}(.*)>`, 'g'),
rep... |
fc.banks2 = {}
fc.bank2 = null
fc.b2 = null
// ---[ API ]-------------------------------------------------------------------
function new_bank(b,bw,bh,sw=8,sh=8,c=0) {
var bank = {}
bank.bw = bw // bank width in sprites
bank.bh = bh // bank height in sprites
bank.sw = sw
bank.sh = sh
bank.b = b
if (Array.isArr... |
const fs = require('fs');
const path = require('path');
module.exports = (main) => {
const exports = main.exports;
class Session {
constructor(options) {
this.active = false;
this.data = {
options: {
runInBackground: false,
textEditor: '',
defaultLogger: {},
},
clients: [],
se... |
// wordAtInsertionPt.js
// See https://stackoverflow.com/questions/2444430/how-to-get-a-word-under-cursor-using-javascript
// soln by Drakes https://stackoverflow.com/users/1938889/drakes
// (Modified from the original.)
// In IntraMine, getFullWord() is called by viewerStart.js#expandSelectionToWordIfPossible(),
// t... |
console.log('%c /* %s */', 'color:#0096fa; font-weight:bold;', GM_info.script.name + ' v.' + GM_info.script.version);
const
optionsPage = 'https://raingart.github.io/options.html', // ?tabs=tab-plugins
configStoreName = 'user_settings',
fix_GM_getValue = v => v === 'undefined' ? undefined : v, // for Tampermon... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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... |
/* eslint-disable no-undef */
let options = {
locale: moment.locale('es'),
icons: {
time: 'fa fa-clock',
clear: 'fa fa-trash'
},
tooltips: {
today: 'Hoy',
clear: 'Eliminar',
close: 'Cerrar',
selectMonth: 'Elegir mes',
prevMonth: 'Anterior mes',
nextMonth: 'Siguiente mes',
sel... |
window.jQuery = $ = require("jquery");
require("bootstrap");
const marked = require("marked");
const GitUrlParse = require("git-url-parse");
const isReserved = require("github-reserved-names");
const hljs = require("highlight.js");
marked.setOptions({
highlight: function (code) {
return hljs.highlight("swift", ... |
import { userFacingText } from 'utils/user-facing-text';
import { EventEmitter } from 'utils/event-emitter';
import { isString, merge } from 'utils/utils';
import { zeroPad } from 'utils/format';
import { ModalBase as Modal } from 'components/modal';
import { notifyNegative, notifyPositive } from 'components/notify';
i... |
/**
* Class UtilsAjax (common popin object)
*
* @category Bus
* @package Utils
* @subpackage Js
* @author bduhot <<EMAIL>>
* @license Shaoline copyright
* @version 1.0.0
* @link no link
*
*/
function UtilsWindow() {
}
//Id de la fenetre en cour de selectionnee
var SELECTED_WINDOWS = "";... |
const fs = require('fs');
const path = require('path');
const commander = require('commander');
const {yellow, magenta, red} = require('kleur');
const {sub_domain} = require('./references.js');
const {get_request, handle_error, render_spinner, green_bg, cyan_bg, safe_name, stream_download, path_exists} = require('./u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.