text stringlengths 3.22k 29.5k |
|---|
const { constants } = require('../constants');
export default class Page {
get dialogTitle() { return $('[data-qa-dialog-title]'); }
get dialogContent() { return $('[data-qa-dialog-content]'); }
get dialogConfirm() { return $('[data-qa-confirm-cancel]'); }
get dialogConfirmDelete() { return $('[data-qa... |
import * as elements from './elements.js'
document.addEventListener('DOMContentLoaded', () => {
setValues()
})
const initialHealth = 50
const initialHunger = 50
const initialHappiness = 50
const initialCash = 500
const initialIntelligence = 0
const initialStrength = 0
const initialSpirituality = 0
const initialDaysV... |
/*
This file is for defining how the client reacts to a message from the trajectory port and setting up the html accordingly.
*/
//did we receive the dimension of the trajectory yet?
let rcvdDimension = false;
//how many points are currently rendered in the trajectory?
let trajDrawCount = 0;
//maximum number of float... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import style from 'HPCCloudStyle/JobMonitor.mcss';
import { formatFileSize } from '../../utils/Format';
import FilePreview from './FilePreview';
import { dispatch } from '../../redux';
import * as Actions from '../... |
var Widget = Class.extend({
init: function($element) {
var self = this,
$previousSibling;
this.$el = $element;
this.pageName = $element.parent().attr('id');
$previousSibling = this.$el.prev();
if($previousSibling.length > 0) {
onT... |
const Discord = require('discord.io');
const winston = require('winston');
const sqlite3 = require('sqlite3').verbose();
const dotenv = require('dotenv');
const { VerseQuery, RandomVerse } = require('./verseQuery');
const MAX_LENGTH = 1980;
dotenv.config();
/* ------------------------------- */
/* --------- BOT SET ... |
// Copyright (c) 2018 Intel Corporation. All rights reserved.
// Use of this source code is governed by an Apache 2.0 license
// that can be found in the LICENSE file.
'use strict';
/* global describe, it, before, after */
const assert = require('assert');
const fs = require('fs');
let rs2;
try {
rs2 = require('nod... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Finchart = void 0;
const data_1 = require("./data");
const options_1 = require("./options");
const priceaxis_1 = require("./priceaxis");
const style_1 = require("./style");
const timeaxis_1 = require("./timeaxis");
const toolbar_1 = re... |
// Copyright 2022 The Google Research Authors.
//
// 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... |
import React from 'react';
import { View, Text, ScrollView, TextInput, StyleSheet,
Dimensions, TouchableOpacity, AsyncStorage,
ActivityIndicator, Alert,} from 'react-native';
import { MaterialCommunityIcons, MaterialIcons, FontAwesome, } from '@expo/vector-icons';
import Slider from '@react-native-community/... |
"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, { Component } from 'react';
import ReactList from 'react-list';
import CommentListItem from './Item';
import TartarusContract from '../../../contracts/Tartarus.json';
import LoadingIndicatorSpinner from '../../shared/LoadingIndicator/Spinner';
import { updateUserPermissions } from '../../../redux/actions/... |
import React, {useEffect, useState} from "react";
import removeAccents from "remove-accents"
// nodejs library that concatenates classes
import classNames from "classnames";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// @material-ui/icons
// core components
import GridCon... |
// Student: <NAME>
// UvA-ID: 10447555
// File: data.js
// load data in correct format for linechart
function Linechart_Data(data, country_path) {
// define some variables needed to retrieve the correct data
var continent_name = country_path.continent,
country_code = country_path.country_code,
country_num = cou... |
'use strict';
const _ = require('lodash');
const BPromise = require('bluebird');
const chalk = require('chalk');
const db = require('../db');
const LocalFilesScanner = require('./local-files-scanner');
const path = require('path');
const prettyBytes = require('pretty-bytes');
const ProgressBar = require('progress');
c... |
/*global $ jQuery*/
/**
TODO
*/
//initial setup
var playerIdent='';
var cpuIdent='';
var turnDelay=1000;
var playerTurn=true;
var playertestflag=false;
var gamestate={
'1':'',
'2':'',
'3':'',
'4':'',
'5':'',
'6':'',
'7':'',
'8':'',
'9':'',
'cpu':[],
'player':[],
'empty':['1','2','3','4','5','6'... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Paper from '../Paper';
import CardExpandable from './CardExpandable';
/**
* @description
* A card is a piece of paper with unique related data that serves as an entry point to more detailed information.
* For example, a card could c... |
/*=====================================
# Nombre:
lista-programas-rendicion.js
# Módulos:
seguimiento/seguimiento-prog
# Descripción:
Funciones para seguimiento de metas de Programas Presupuestales
=====================================*/
var moduloResource = new RESTfulRequests(... |
'use strict';
var _CellArray = require('./classes/CellArray');
var _CellArray2 = _interopRequireDefault(_CellArray);
var _DrawingFunctions = require('./classes/DrawingFunctions');
var drawer = _interopRequireWildcard(_DrawingFunctions);
var _BinaryFunctions = require('./classes/BinaryFunctions');
function _intero... |
"use strict";
var express = require('express');
var favicon = require('serve-favicon');
var path = require('path');
var mkdirp = require('mkdirp');
var nomnom = require('nomnom');
var wordwrap = require('wordwrap');
var killable = require('killable');
var tailLog = require('./logging');
var cors = requi... |
var commonCityData = require('../../utils/city.js');
//获取应用实例
var app = getApp()
Page({
data: {
id:'',
user_tokenHead:'',
user_token:'',
linkMan:'',
address:'',
mobile:'',
code:'',
provinces: [],
citys: [],
districts: [],
selProvince: '请选择',
selCity: '请选择',
selDistr... |
"use strict";
const { html, render, useState, useReducer, useEffect } = window.htmPreact;
function getData(key) {
try {
return JSON.parse(localStorage.getItem(key));
} catch (e) {
return null;
}
}
function usePersistentReducer(reducer, key, fallback) {
const [data, dispatch] = useReducer(reducer, getD... |
import {LayerType} from '../firebase_layers.js';
import {loadingElementFinished} from '../loading.js';
import {getDisaster} from '../resources.js';
import {processNewEeLayer, processNonEeLayer} from './add_layer.js';
import {withColor} from './color_function_util.js';
import {getDisasterAssetsFromEe} from './list_ee_as... |
// Images are loaded in
var bgr = new Image()
bgr.src = 'https://albingyllander.github.io/slot/images/bgrE.png'
var face = new Image();
face.src = 'https://albingyllander.github.io/slot/images/faceanim.png'
var j = new Image()
j.src = 'https://albingyllander.github.io/slot/images/janim.png'
var k = new Image()
k.s... |
/**
* This work is based on original code developed and copyrighted by TNO 2020.
* Subsequent contributions are licensed to you by the developers of such code and are
* made available to the Project under one or several contributor license agreements.
*
* This work is licensed to you under the Apache License, ... |
/* jslint node:true */
'use strict';
exports = module.exports = {
getAll: getAll,
getAllPublic: getAllPublic,
getAllLean: getAllLean,
get: get,
getPublic: getPublic,
add: add,
put: put,
del: del,
exp: exp,
imp: imp,
extractURLs: extractURLs,
extractTags: extractTags,
... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import React, { Component } from "react";
import PropTypes from "prop-types";
//import reduxForm and Field
import { Field, reduxForm } from "redux-form";
//import connect mapStateToProps and mapDispatchToProps
import { connect } from "react-redux";
//import action for submit data (call api).
import { dataRegisterSubmit... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2018, Affirm
* 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
... |
// This Section Contains calls to external Modules
// make sure to perform npm install
// Load the "dotenv" package to make .env info readable.
require("dotenv").config();
// Load fs
var fs = require("fs");
// Load Moment
var moment = require('moment');
moment().format();
// Load the Keys from keys.js this way we c... |
/* To study and do again
event handler -> when the player enter a guess.
Organized with: model, view and controller.
Each of these objects above have one primary responsability.
Model: store the actual state of the game and implement logic that modifies this state based on the player guesses.
View: Update the disp... |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var postcss = _interopDefault(require('postcss'));
var valueParser = require('postcss-value-parser');
const pf = "--fgp-";
const CS = " > *";
const SS = " > ::slotted(*)"; // function supportNativeSolut... |
/// <reference path="appconfig.js" />
//requirejs([
// "./requirejs.config.js",
// './src/Main'
//], function (
// config,
// Cesium
//) {
VectorTileImageryProvider = Cesium.VectorTileImageryProvider;
viewer = new Cesium.Viewer("cesiumContainer");
var imageryProviderViewModels = viewer.baseLayerPicker.... |
/* Magic Mirror
* Node Helper: MMM-Tools
*
* By
* MIT Licensed.
*/
var async = require('async')
var exec = require('child_process').exec
var os = require('os')
const path = require("path")
const fs = require("fs")
var myMath= {}
myMath.round = function(number, precision) {
var factor = Math.pow(10, precisio... |
$(document).ready(function(){
initTitle();
var indexMore = $("button[id=index-more]");
indexMore.attr("disabled", "true");
indexMore.text("正在加载");
var articleVO = {
"articleType": 2
};
initPage("/article/list", "_news_content", articleVO, function(fla... |
import React from 'react'
import { Table, Loader, Container, Image, Label, Icon, Checkbox, Segment, Header } from 'semantic-ui-react'
function AttributeList(props){
let attributeParse = props.attributesSelected ? JSON.parse( props.attributesSelected) : []
/*console.log("MMMMMMMMMMMMMMMMM: ", props.attributesS... |
/**
*
* @author Froguard
* @date 2016/9/18.
*/
'use strict';
var fs = require("fs"),
path = require("path"),
events = require('events'),
color = require("./color"),
tinyLr = require("tiny-lr"),
_livereload = require.resolve("./livereload-js/livereload.js"),
// gaze = require("gaze"),//vers... |
angular.module('orderCloud')
.config(ExpressCheckoutConfig)
.controller('ExpressCheckoutCtrl', ExpressCheckoutController)
.controller('ExpressOrderReviewCtrl', ExpressOrderReviewController)
.directive('ordercloudUserDefaults', ExpressCheckoutUserDefaultsDirective)
.controller('ExpressCheckoutUserDef... |
/* eslint-disable no-console */
const Discord = require('discord.js');
const fs = require('fs');
const HTTPS = require('https');
const merge = require('merge');
const request = require('request');
const reload = require('require-reload')(require);
const WebSocket = require('ws');
const CommandHelper = require('./Comma... |
/* eslint-disable react/jsx-key */
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import {
useExpanded, useTable, usePagination, useSortBy,
} from 'react-table';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faArrowDown,
faArrowUp,
} from '@fortawesome/f... |
$(document).ready(function () {
// add san pham tu product defaul size color soluong=1 vao shopping cart
$("button.add-to-cart").on('click', function (e) {
e.preventDefault();
var url = $(this).parent().attr('action');
var _token = $('meta[name="csrf-token"]').attr('content');
v... |
import rawCountries from './rawCountries'
import rawTerritories from './rawTerritories'
// let allCountryCodes = {}
//
// function addCountryCode(iso2, dialCode, priority) {
// if (!(dialCode in allCountryCodes)) {
// allCountryCodes[dialCode] = [];
// }
// const index = priority || 0;
// allCountryCodes[d... |
var modelOperations = require('./modelOperations'),
oozePaths = require('./paths'),
get = modelOperations.get,
set = modelOperations.set,
wildcardRegex = oozePaths.wildcardRegex,
arrayProto = [],
WM = require('./weakmap');
var isBrowser = typeof Node != 'undefined';
module.exports = function(m... |
const { Client, CommandInteraction, MessageAttachment, Interaction } = require("discord.js");
const jsh = require("discordjsh");
const Embed = require("../Util/Embed");
const { Emojis } = require("../Util/EmojiManager");
const DiscordReal = require("discord.js");
const Jimp = require("jimp");
const { errorMessage, chec... |
import React, { useRef, forwardRef } from "react";
import VNnum2words from 'vn-num2words';
import Moment from 'react-moment';
import { useReactToPrint } from "react-to-print";
import { CCard, CCardBody, CRow, CCol, CCardSubtitle, CCardText, CButton } from '@coreui/react';
import { Table } from '@components/common'
// ... |
import React, { createElement as h } from 'react'
import ReactDOM from 'react-dom'
import { splitLines, parseDiffLine } from 'util/diff-util.js'
import codeHighlighter from 'util/code-highlighter.js'
import AttributedString from 'util/attributed-string.js'
import diff_match_patch from 'diff-match-patch'
import './diff... |
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function swap(x, y) {
const temp1 = bar_heights[x];
bar_heights[x] = bar_heights[y];
bar_heights[y] = temp1;
const temp2 = bar_colors[x];
bar_colors[x] = bar_colors[y];
bar_colors[y] = temp2;
}
function apply_co... |
console.log("content running");
var jiraTicketNumber;
var jiraTicketSummary;
var discipline;
var mindApp;
var activityType;
var edition;
var copyrightYear;
var rejoinder;
var coreISBN;
var ssoISBN;
var author;
var newProductCode;
function wait(ms) {
var start = new Date().getTime();
var end = start... |
//
// Server status page showing useful info for diagnostics or troubleshooting.
//
// Includes middleware to collect request statistics for all requests.
//
const os = require("os")
const escapeHTML = require("underscore.string/escapeHTML")
const ipaddr = require("ipaddr.js")
const sprintf = require("sprintf-js").spr... |
var canv = document.getElementById("canv");
var ctx = canv.getContext("2d");
const DEFAULT_DISTANCE_BETWEEN_MARKERS = 45;
const FONT_SIZE = 10;
var canvHeight = canv.clientHeight;
var canvWidth = canv.clientWidth;
var xZoomFactor = 1;
var yZoomFactor = 1;
var centerX = 0;
var centerY = 0;
var xMarkerPixDistance =... |
function alertIfNewerDefinitions() {
chrome.storage.local.get('definition_version', function (localVersionResult) {
axios.get(VERSION_JSON)
.then(function (cloudVersionResult) {
document.getElementById('definitions-newest-version').innerText = cloudVersionResult.data.version;
... |
var express = require('express');
var router = express.Router();
var mongoose = require('mongoose');
var Post = mongoose.model('Post');
var Comment = mongoose.model('Comment');
var passport = require('passport');
var User = mongoose.model('User');
var jwt = require('express-jwt');
var Upvote = mongoose.model('Upvote')... |
// Copyright 2012 <NAME>, Inc. All rights reserved.
var assert = require('assert');
var EventEmitter = require('events').EventEmitter;
var url = require('url');
var util = require('util');
var semver = require('semver');
///--- Helpers
function addProbes(dtrace, name) {
if (!dtrace)
return false;
assert... |
require("dotenv").config();
const PORT = process.env.PORT || process.env.NODE_PORT || 8080;
const ITEMS_COLLECTION = "items";
// const MONGODB_URI = process.env.PROD_MONGODB || process.env.MONGODB_URI; //Removed for demo
const mockItems = require("./mockItems.js").mockItems;
//let sslRedirect = require('heroku-ssl-red... |
const title = 'Simple HTTP Gateway'
const version = '0.0.0'
const options = {
port: { default: 3000, notes:'listening port'},
'case sensitive routing': {default:false, notes:'https://expressjs.com/en/4x/api.html#app.set'},
env: { default:'development',
notes:'https://expressjs.com/advanced/best-practice-perf... |
// we have two sources of targeting data that need to be transformed into (identical) buttons.
// 1. a targeting row
// 2. params from the URL into a button (or, params specified in constants.js )
const GENDER_CROSSWALK = {
"MALE": "men",
"FEMALE": "women"
}
const EDUCATION_STATUSES = {
EDU_MASTER_DEGREE:... |
const ObjetivesGenerator = require('./objetives');
const { Rules, CardType } = require('./gameRules');
const EngineEvents = require('./engineEvents');
const { Subject } = require('rxjs');
const { pipe } = require('./utils');
const RegisterOperations = require('./registerOperations');
const uuidv1 = require('uuid/v1');
... |
/**
* Widget for data-provider input.
* Can be used both for createDataProvider and viewDataProvider
* @param {Object} $
*/
( function($) {
$.fn.dataProviderWidget = function(configuration) {
configuration.target = this;
drawDataProviderWidget(configuration);
return this;
};
}(jQuery));
function d... |
/*package annotator.ui */
"use strict";
var util = require('../util');
var adder = require('./adder');
var editor = require('./editor');
var highlighter = require('./highlighter');
var textselector = require('./textselector');
var viewer = require('./viewer');
var _t = util.gettext;
// trim strips whitespace from ... |
"use strict";
let fs = require('fs');
let Horseman = require('node-horseman');
let jsdom = require("jsdom");
let ical = require('ical-generator');
let config = require('./config');
// Main entry point
// Load all pages from the website
function loadPages(parsingCallback, callback) {
console.log('icalCreator:loadPag... |
import React, { Component} from 'react'
import ReactDOM from 'react-dom'
import { Link } from 'react-router-dom'
import axios from 'axios'
import qs from 'query-string'
class Category extends Component {
state = {
min_price: 0,
max_price: 100000,
sort_dropdown: 'newest',
view_sel... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import 'react-widgets/lib/scss/react-widgets.scss';
import ReactWidgets from 'react-widgets';
import Portal from 'react-portal';
import update from 'react-addons-update';
import Button from 'react-button';
import {Column, Cell} from "./Table.js... |
/*
* Extract rules for Unicode case conversion, specifically the behavior
* required by ECMAScript E5 in Sections 172.16.31.10 to 172.16.17.329. The
* bitstream encoded rules are used for the slow path at run time, so
* compactness is favored over speed.
*
* There is no support for context or locale sensiti... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 HackerOne Inc and individual 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 l... |
window.motivosProperties = {
"Ir al trabajo":{
color: "#3366cc"
},
"Regreso a casa":{
color: "#ff9900"
},
"Desplazamientos de trabajo":{
color: "#990099"
},
"Estudios":{
color: "#dd4477"
},
"Visitas":{
color: "#66aa00"
},
"Compras":{
... |
import React, {useState} from "react"
import styled from "styled-components"
import {
purple,
gray,
} from "@vschool/lotus"
import { useStaticQuery, graphql } from "gatsby"
const Container = styled.section`
background-color: ${purple.lightest};
padding: 0;
@media (min-width: 1000px) {
padd... |
// @ts-check
/* eslint no-shadow: 0 */
/** @typedef {import('./types.js').ArchiveOptions} ArchiveOptions */
/** @typedef {import('./types.js').ArchiveWriter} ArchiveWriter */
/** @typedef {import('./types.js').CompartmentDescriptor} CompartmentDescriptor */
/** @typedef {import('./types.js').ModuleDescriptor} ModuleDe... |
var tahun = "2015";
var maptahunnya = {
"2015-2016": "1516",
"2015-2017": "1517",
"2015-2018": "1518",
"2015-2019": "1519",
"2016-2017": "1617",
"2016-2018": "1618",
"2016-2019": "1619",
"2017-2018": "1718",
"2017-2019": "1719",
"2018-2019": "1819",
"2015": "15",
"2016":... |
/*
Logger v0.1.0
A bot for Discord that logs moderator actions.
-----------------------------------------------
Copyright © <NAME> 2016.
*/
//imports
const Discord = require('discord.js');
//constants
const VERSION = '0.1.1';
const CHANNEL = 'logs';
//declarations
var bot = new Discord.Client();
//
... |
/** @license Copyright 2012 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 require... |
var _ = require('lodash');
var async = require('async-chainable');
var asyncExec = require('async-chainable-exec');
var duration = require('duration-js');
var events = require('events');
var pm2 = require('pm2');
var util = require('util');
function Tasker() {
var tasker = this;
/**
* Default settings for tasker
*... |
'use strict';
function Bezier(a) {
Array.call(this);
if (a instanceof Array) {
this[0]=a[0]; // cx1
this[1]=a[1]; // cy1
this[2]=a[2]; // cx2
this[3]=a[3]; // cy2
this[4]=a[4]; // x
this[5]=a[5]; // y
}
}
Bezier.prototype=[];
// Point object
function Point(a,b,c) {
// a=x,b=y, c=id
if (b!==u... |
import React from "react"
import { Link } from "gatsby"
import styled, { css, keyframes } from "styled-components"
import Layout from "../components/layout"
import SEO from "../components/seo"
// import "typeface-roboto"
// import "typeface-roboto-slab"
import Article from "../templates/blog/post"
const ArticleSingle ... |
function thm(p, n, dual=false, sig=undefined) {
if (sig === undefined) sig = parameters.sig.getValue().map(i => 1)
parameters.sig.setValue(sig);
parameters.p.setValue(p);
parameters.n.setValue(n);
parameters.dual.setValue(dual);
renderTheorem();
}
class Parameter {
constructor(name, props) {
this.name = name... |
/* eslint-disable no-unused-expressions */
/**
* @fileoverview Generic Hero helpers.
*/
const dateFns = require('date-fns');
const { getRanking } = require('./hero-ranking.ent');
const {
EMOJIS,
CLASS_REV,
PROFESSIONS,
CLASS_REV_SHORT,
} = require('../constants/constants.const');
const {
MINING,
GARDEN... |
const assert = require('assert');
const stream = require('stream');
const TypeCheck = require('js-typecheck');
const Settings = require('../Settings');
const Handler = require('../Handler');
const Writer = require('../Writer');
const MeboErrors = require('../MeboErrors');
// symbols used for private members to avoid a... |
// In this file you can instantiate your views
// We here first instantiate wrapping views, then the trial views
/** Wrapping views below
* Obligatory properties
* trials: int - the number of trials this view will appear
* name: string
*Optional properties
* buttonText: string - the text on the button (defaul... |
import React from 'react'
import { connect} from 'react-redux';
import {
Breadcrumb,
BreadcrumbItem,
InlineLoading
} from 'carbon-components-react';
import {
Grid,
Row,
Column,Toggle,
ContentSwitcher,
Switch,
TextInput,
ToastNotification
} from 'carbon-components-react';
import WidgetTable from "./Widg... |
// Find declared globals from es5 source files
const _ = require('lodash')
const CLIEngine = require('eslint').CLIEngine
const escope = require('escope')
const esprima = require('esprima')
const fs = require('fs')
const path = require('path')
const program = require('commander')
const cli = new CLIEngine({
useEslin... |
const dev = {
SFU_LOGIN_URL: 'https://cas.sfu.ca/cas/login?service=http://localhost:3000/',
AUTHENTICATION_API_URL: 'http://localhost:8080/api/v1/users/userId?url=http://localhost:3000/',
REPOS_API_URL: 'http://localhost:8080/api/v1/projects',
ANALYSIS_API_URL: 'http://localhost:8080/api/v1/reports',
... |
import React, { Component } from 'react'
import { NotificationStack } from 'react-notification';
import { OrderedSet } from 'immutable';
import PicWitnessContract from '../build/contracts/PicWitness.json'
import getWeb3 from './utils/getWeb3'
import ipfs from './utils/IPFS'
import moment from './utils/moment'
import '... |
const Async = require('async');
const Request = require('request');
exports.install = function() {
// Tickets
F.route('/api/tickets/', json_query, ['authorize', '*Ticket']);
F.route('/api/tickets/', json_save, ['authorize', '*Ticket', 'post']);
F.route('/api/tickets... |
import React, { useState, useEffect } from "react";
import _ from "lodash";
import {
Container,
Grid,
List,
Button,
Icon,
Item,
Form,
Image,
Card,
Feed,
Label,
Modal,
Divider,
ModalDescription,
} from "semantic-ui-react";
import axios from "axios";
import {
getAllUsers,
getPublicPosts,
... |
const mongoose = require("mongoose");
mongoose.set('runValidators', true);
const mongoomise = require("mongoomise");
const validate = require("mongoose-validator");
const mongooseLeanVirtuals = require("mongoose-lean-virtuals");
//const extend = require("mongoose-schema-extend");
const _ = require("lodash");
c... |
const FRAME_RATE = 14 //1/2 ~30FPS
const CAPTURE_DIMENSION = 300
const BACKUP_CHALLENGE = "a "
const MAX_CHALLENGE_SWITCHES = 3 //max refreshes
const LOCAL_TIME_ZONE = moment.tz.guess()
const TODAY = moment().tz(TIME_ZONE).diff(moment.tz(EPOCH, TIME_ZONE).hour(0).minute(0).second(0), "days")
let CHALLENGE = ""
let CHA... |
const { ipcRenderer } = require("electron");
const { filesize: FormatFileSize } = require("humanize");
const path = require("path");
const { capitalize } = require("../../lib/helpers");
/* TEMPLATE
<section id='item1' class='download-item'>
<div class="flex-2 info">
<div clas... |
const path = require('path')
const marked = require('marked')
const to = require('./utils/to')
const ignore = require('./config/ignore')
const { failLog, generalLog } = require('./utils/log')
const { parseComponentMarkdown, parseDocMarkdown, parseDemoMarkdown } = require('./utils/parse')
const { readUTF8FilePromise, re... |
$(document).ready(function() {
var refreshButton = $("#refresh");
var actionButtons = $(".action");
var cell = $(".cell");
var dialog = $("#dialog");
//var datePicker = $("#datepicker");
var changeDate = $("#change_date");
//datePicker.datepicker({ dateFormat: "dd.mm.yy", defaultDate: +1 ... |
import React, { PureComponent } from 'react';
import Immutable, { Record } from 'immutable';
import './AnnoText.css';
import { iso6393To6391 } from '../util/languages';
import Tooltip from './Tooltip';
import CopyInterceptor from './CopyInterceptor';
import SystemBrowserLink from './SystemBrowserLink';
import { cpSl... |
import React, { useState, useRef, useEffect } from 'react'
import { DataGrid, GridOverlay } from '@material-ui/data-grid'
import Grid from '@material-ui/core/Grid'
import Typography from '@material-ui/core/Typography'
import FormControlLabel from '@material-ui/core/FormControlLabel'
import Checkbox from '@material-ui/c... |
// Copyright 2018 Fox Council
'use strict';
const numberWithCommas = x => {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
const toMMSS = x => {
var sec_num = parseInt(x, 10); // don't forget the second param
var hours = Math.floor(sec_num / 3600);
var minutes = Math.floor((sec_num - ... |
// JavaScript Document
$(document).ready(function(){
formID="fbc30_";
val=$("#"+formID+" #KATEGORI_EKSPOR").val();
getQQ=$("#"+formID+" #KODE_ID_QQ").val();
if(val=='21' || val=='22' || val=='23'){
$("#PKB").show();
}else{
$("#PKB").hide();
}
if(getQQ!=''){
$("#QQcheckBox").empty().append("<input type=\"c... |
import sinon from 'sinon'
import events from './events'
const runnerStub = () => ({
on: sinon.stub(),
emit: sinon.spy(),
})
const appStateStub = () => ({
startRunning: sinon.spy(),
pause: sinon.spy(),
reset: sinon.spy(),
resume: sinon.spy(),
end: sinon.spy(),
temporarilySetAutoScrolling: sinon.spy(),... |
const modelDependency = require('./modelDependency.json');
const mongoose = require('mongoose');
const modelMapping = modelDependency.collectionModelMapping;
const modelDir = '../models/';
const commonHelper = require('./common');
const bluebirdPromise = require('bluebird');
const currentUserHandler = require('../lib/... |
var FIELD_DATE_STR = "fecha";
var FIELD_HOUR_STR = "hora";
var FIELD_PRODUCT_STR = "producto";
var FIELD_ID_STR = "isin";
var FIELD_NUM_STR = "titulos";
var FIELD_PRICE_STR = "precio";
var FIELD_TOTAL_STR = "total";
var EXPECTED_FIELDS = [
FIELD_DATE_STR,
FIELD_HOUR_STR,
FIELD_PRODUCT_STR,
FIELD_ID_STR,... |
import React from 'react'
import { Helmet } from 'react-helmet'
import { useStaticQuery, graphql } from 'gatsby'
import { Footer, NavBar } from '../../components/shared'
import FiftyTwoFacesCoverImg from '../../content/images/2021/fifty-two-faces/52facesheader.png'
import { BackgroundWrapper } from '../../components/2... |
/**
* 该模块为 render 线程, 负责视图层渲染、
* 信息更新、用户交互、与主线程通信
*/
const onlineUsers = require("./ui/onlineUsers");
const htmlModels = require("./ui/htmlModels");
const sizeFormat = require("filesize");
const {
highlightBlock
} = require("highlight.js");
const {
ipcRenderer,
remote,
shell
} = require("electron");... |
"use strict";
const Throw = require("../throw.js");
const Tree = require("../tree.js");
const ArrayLite = require("array-lite");
const global_JSON_stringify = global.JSON.stringify;
const global_RegExp_prototype_test = global.RegExp.prototype.test;
const global_Reflect_apply = global.Reflect.apply;
const global_Strin... |
class Led extends Phaser.GameObjects.Image {
constructor(scene, x, y, frame) {
super(scene, x, y, 'atlas', frame);
this.setAlpha(0);
this.twOn;
this.twOff;
this.init();
this.scene.add.existing(this);
}
init() {
let t = this;
t.twOn = t.scene.tweens.add({... |
/**
LIST ITEM UI
Funciones asociadas a la interfaz gráfica.
@author <NAME>. <EMAIL>
@license Copyright 2018, no copiar o distribuír sin permiso directo del autor
*/
// noinspection ES6ConvertVarToLetConst
/**
* Contenedor listar ítems
* @ignore
*/
var list_item_container;
// noinspection ES6ConvertVarToLetCo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.