text stringlengths 3.22k 29.5k |
|---|
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 (Object.prototype.hasOwnProp... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
function render_commit_cell(cell, position) {
const cell_val = cell.getValue();
const authorship_metadata = cell.getRow().getDat... |
import React from 'react';
import L, { Bounds, popup } from 'leaflet';
import styled from 'styled-components';
import 'leaflet/dist/leaflet.css';
import '@geoman-io/leaflet-geoman-free';
import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css';
import mappic from './spaceupdat.jpg';
import { object } from 'prop-... |
/* globals seConfirm */
/**
* @file ext-foreignobject.js
*
* @license Apache-2.0
*
* @copyright 2010 <NAME>, 2010 <NAME>
*
*/
const loadExtensionTranslation = async function (lang) {
let translationModule;
try {
// eslint-disable-next-line no-unsanitized/method
translationModule = await import(`./lo... |
import * as React from 'react'
import SelectSearch from "react-select-search";
import './Institucion.scss';
import {getSchemeAndHttpHost} from "../../../utils";
const Institucion = (props) => {
const [selectedInstitution, setSelectedInstitution] = React.useState(props.institucion ? props.institucion : {});
c... |
import React from 'react';
import { Icon } from 'react-native-elements';
import {
Text,
View,
TouchableOpacity,
StyleSheet,
Keyboard,
} from 'react-native';
import { isIphoneX } from 'react-native-iphone-x-helper';
import PropTypes from 'prop-types';
import { NavButton } from 'react-native-nav';
import { Acti... |
//Each of these is being called such that using 'this' refers to the profileProcessor.
let fetchAssertions = async function(){
console.log("Here I am fetching assertions.");
return await EcAssertion.search(
repo,
// Note: Searches don't work well for encrypted data. This may return irrelevant da... |
import React, { Component } from "react"
import MonthlyViewScreen from './containers/MonthlyViewScreen';
class App extends Component {
render() {
return (
<div className="App">
<MonthlyViewScreen />
</div>
);
}
}
export default App;
/* state = {
dataGasto... |
// using free and open source Codebird library for Twitter access
// downloaded from https://github.com/jublonet/codebird-js
// the file codebird.js is included in the main HTML document as a script before this one
// Based on code by Dr. <NAME> (d0kt0r0) from Avenue To Learn at McMaster University
// this function i... |
import { GameObject } from "./objects/gameobject";
const QLERP = (x) => Math.pow(x, 5);
const SLERP = (x) => Math.pow(x, 2);
export class Transitioner extends GameObject {
constructor(pixiRef, duration) {
super(pixiRef);
// Whether the transition is going on.
this._going = false;
... |
import React, { useState, useRef, useCallback, useLayoutEffect } from "react";
import { View, Text, Platform, ActivityIndicator } from "react-native";
import { useInitialFocus } from "@applicaster/zapp-react-native-utils/focusManager";
import { saveDataToStorages } from "../../Services/StorageService";
import {
creat... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { isInclusivelyBeforeDay } from 'react-dates'
import moment from 'moment'
import CustomDateRangePicker from './customDateRangePicker.js'
import { PaginationArea } from './paginationArea.js'
import { StudylistToolbar } from './studyListT... |
var prefix = "/inspect/inspectJob"
function unitSelect() {
//var dSel = document.getElementById("deptId");
//var dept = dSel.options[dSel.selectedIndex].value;
var nSel = document.getElementById("unitId");
var unit = nSel.options[nSel.selectedIndex].value;
var uSel = document.getElementById("userI... |
import React, { useState } from 'react';
import { SingleDatePickerInput } from './SingleDatePickerInput';
import { DateRangePickerInput } from './DateRangePickerInput';
import Input from '../Input';
import moment from 'moment';
import { Controller, useForm } from 'react-hook-form';
import 'react-dates/initialize';
i... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DateField = undefined;
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)) { t... |
'use strict';
/*
Copyright (c) IBM Corporation 2017
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
import React ,{useState,useEffect}from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { Platform, View, StyleSheet, ScrollView ,FlatList,StatusBar,TouchableOpacity} from "react-native";
import {Button,DataTable, TextInput, Paragraph,Avatar, Surface,Appbar, BottomNavigatio... |
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
______ ______ ______ __ __ __ ______
/\ == \ /\ __ \ /\__ _\ /\ \/ / /\ \ /\__ _\
\ \ __< \ \ \/\ \ \/_/\ \/ \ \ _"-. \ \ \ \/_/\ \/
\ \_____\ \ \_____\ \... |
/**
* Created by xiangxn on 2017/7/10.
*/
import {Long} from 'bytebuffer';
import {encode, decode} from 'bs58';
import ByteBuffer from 'bytebuffer';
import globalParams from './GlobalParams';
import Validation from './Validation';
class Utils {
/**
* 计算可领取的币龄
* @param statistics 账户的统计对象
* @param ... |
import React, { useCallback, useEffect, useRef, useState } from "react";
import AppBtn from "./AppBtn";
import {
checkNewName,
createNewTeam,
deleteTeam,
renameTeam,
initTransfer /*, removeTransfer, commitTransfer*/,
removeTransfer,
commitTransfer,
} from "../helpers/team";
import RouteSelect f... |
function Transition ( sceneA, sceneB, renderer, width, height) {
function getTransitionShader(texture, videoTexture, videoTexture2) {
return new THREE.MeshShaderMaterial({
uniforms: {
tMixTexture: {
type: "t",
value: 0,
... |
import "core-js/modules/es.array.reduce.js";
import React, { Component } from 'react';
import { styled, keyframes } from '@storybook/theming';
import { eventToShortcut, shortcutToHumanString, shortcutMatchesShortcut } from '@storybook/api/shortcut';
import { Form, Icons } from '@storybook/components';
import SettingsFo... |
"use strict";
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ----------------------... |
//
// Ported to JavaScript by <NAME> 2015
//
// <EMAIL>, https://github.com/PeculiarVentures/idscanjs
//
//
// Copyright 2007 ZXing 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 a... |
/**
* Created by james on 13-11-22.
* extract middleware
*/
/**
* extract link
* @param crawl_info
*/
var cheerio = require('cheerio');
var util = require('util');
var url = require('url');
var querystring = require('querystring');
require('../lib/jsextend.js');
var extractor = function (spiderCore) {
this.sp... |
/* global $ */
var hotTracks = {
skip: 0,
limit: 5,
init: function () {
hotTracks.skip = 0;
hotTracks.loadTracks(function () {
$('.post:eq(0) .thumb').append('<div class="medal">1</div>');
$('.post:eq(1) .thumb').append('<div class="medal">2</div>');
$('.post:eq(2) .thumb').append('<... |
var initialMarkdown = "";
var theValue;
var badConnection = false;
var localImage = false;
var onlineImage = false;
var localURL;
var onlineURL;
var spellcheck = true;
var sampleText = "### Welcome to Material Markdown!\n**Shortcuts**\n- Load Sample Page: Ctrl+P\n- Open File: Ctrl+O\n- Save File: Ctrl+S\n- Toggle Block... |
"use strict";
var services = require("./services");
var hooks = require("./hooks");
var config = require("./config");
var messages = require("./messages");
var utils = require("./utils");
var logger = require("./logger");
var _ = require("lodash");
var... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import Modal from "react-modal";
import cn from "classnames";
import { GenericModalStyle } from "../../../main/styles/custom";
Modal.setAppElement("#home-wrapper");
const SelectorItem = ({
label, sele... |
// base map obtained from [here](http://commons.wikimedia.org/wiki/File:Canada_blank_map.svg)
//
// data in the following format:
// ```javascript
// [ {"on" : 1000, "qc": 2000, etc..}]
// [ {"on" : 1000, "qc": 2000, etc..}]
// [ {"on" : 1000, "qc": 2000, etc..}]
// [ {"on" : 1000, "qc": 2000, etc..}]
// ```
// ... |
var fetch = require('node-fetch');
var Wit = require('node-wit/lib/wit');
var express = require('express');
var bodyParser = require('body-parser');
var firebase = require('firebase');
var uuid = require('node-uuid');
var request = require('request'); //http requests
var WIT_TOKEN = 'YHAO664NCDCREMFRSH2OJ5PVY62GL22D'... |
/*!
* yusen
* https://github.com/yscoder/MaterialImage
* MIT LICENSE
*/
let colorPlate = [
'#FFEBEE', '#FFCDD2', '#EF9A9A', '#E57373', '#EF5350', '#F44336',
'#E53935', '#D32F2F', '#C62828', '#B71C1C', '#FF8A80', '#FF5252',
'#FF1744', '#D50000', '#FCE4EC', '#F8BBD0', '#F48FB1', '#F06292',
'#EC407A', '#E9... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { connect } from 'react-redux';
import styled from 'styled-components';
import isNumber from 'utils/is-number';
import {
OrderedMap, Map, List, fromJS,
} from 'imm... |
// 全局变量
var start = false;
var data;
var ItemSelect = NaN;
var ConditionNum = 0;
var PageCancel = function () { };
var PageConfirm = function () { };
// 按钮事件
function database() {
document.getElementById("database").style.textDecoration = "underline";
document.getElementById("reason").style.textDecoration = "... |
import { Meteor } from 'meteor/meteor';
import React from 'react';
import { browserHistory, Link } from 'react-router';
import Alert from 'react-s-alert';
import Modal from '/imports/ui/components/modal.js';
import ElasticTypeahead from '/imports/ui/components/elastic/typeahead.js';
import TaxonTag from '/imports/ui/co... |
// Read File line-by-line taken from StackOverflow
// https://stackoverflow.com/questions/6156501/read-a-file-one-line-at-a-time-in-node-js
const fs = require('fs');
const path = require('path');
const readline = require('readline');
function distance(a, b) {
return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y -... |
/*function TambahDataPasienRadio(id)
{
var json = getDataPasienRadio(id);
$.map(json, function(item) {
$('#tambahRadioNoreg').val(item.noreg);
$('#tambahRadioNorm').val(item.norm);
$('#tambahRadioNoregLabel').html(item.noreg);
$('#tambahRadioNormLabel').html(item.norm);
$... |
/*-----------------------------------------------------------
Processors
----------------------------------------------------------- */
var mdString = require('./mdString');
/*const brTag = 'zzbreakzzz';
const ParaTag_START = 'zxparaStartXz';
const ParaTag_END = 'zxparaEndXz';
const ulTag_START = 'zzULSTARTz... |
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import {
makeQueryFunction,
SearchAndSort
} from '@folio/stripes/smart-components';
import {
filterState,
AppIcon,
} from '@folio/stripes/components';
import ViewRecord from './ViewR... |
var DynmapProjection = L.Class.extend({
initialize: function(options) {
L.Util.setOptions(this, options);
},
fromLocationToLatLng: function(location) {
throw "fromLocationToLatLng not implemented";
},
fromLatLngToLocation: function(location) {
return null;
}
});
if (!Array.prototype.indexOf) { // polyfill ... |
const { connection } = require("../app");
const util = require("util");
const query = util.promisify(connection.query).bind(connection);
const libroPost = async function (req, res) {
if(!req.body.nombre || !req.body.genero_id || !req.body.descripcion){
res.status(413).send({mensaje:"No se enviaron todos los datos... |
var ddb = "dat" + "/" + window.dd_base;
var ddt = ddb + "/" + window.dd_this;
var nodes = graph_nodes(ddb + "/" + "nodes.csv");
var links = graph_links(ddb + "/" + "links.csv");
if (!window.plain_vanilla) {
var nlmap = graph_nlmap(ddb + "/" + "node-links.json");
var vmean = vi_mean(ddt + "/" + "v-mean.csv"... |
const { io, log } = require("lastejobb")
const path = require("path")
let tre = io.lesTempJson("metabase_tweaks")
let hierarki = io.lesTempJson("kodehierarki")
let filindeks = io.lesTempJson("filindeks")
const barnAv = hierarki.barn
let ukjentBbox = 0
addKartformat()
normaliserGradienter()
lagNormaliserteVerdierForG... |
"use strict";
var sc_menuPrincipal = new Phaser.Scene("MenuPrincipal");
var menu = new Menu(sc_menuPrincipal);
sc_menuPrincipal.create = function()
{
menu.create();
}
sc_menuPrincipal.update = function(time, delta)
{
menu.update(time, delta);
}
function Menu(escena)
{
/* VARIABLES */
var pressed =... |
/*
* fis
* http://fis.baidu.com/
*/
'use strict';
var Image = require('node-images');
module.exports = function(file, index, list, images, ret, settings, opt) {
var gen = new Generator(file, index, list, images, ret, settings, opt);
return gen.css;
};
function Generator(file, index, list, images, ret, set... |
if (process.env.NODE_ENV !== 'production') { // HTML 핫리로드
require('./index.html');
}
// 서드파티 먼저 로드
import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.min.css';
import TemplateTable from './class/TemplateTable';
import ToggleCell from './class/ToggleCell';
import CollapseCell from '... |
//定義today變數為Date格式
let today = new Date();
//定義currentMonth變數為today的getMonth(取得月份)
let currentMonth = today.getMonth();
//定義currentYear變數為today的getFullYear(取得年分)
let currentYear = today.getFullYear();
/** 月份字串 */
let months = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
... |
function getQueryParameters() {
var params = {};
window.location.search
.substr(1)
.split("&")
.forEach(function (p) {
var param = p.split("=");
params[param[0]] = decodeURIComponent(param[1]);
});
return params;
}
function getBackendUrl(params) {
const apiPath = "api/";
let apiEn... |
//Função para preencher página de produtos.
//Esta função envia um request para o servidor pedindo uma
//consulta ao banco de dados.
const productPageAJAX = function() {
var xhttp, json_response;
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 2... |
import React, { useState, useEffect } from 'react';
import Avatar from '@material-ui/core/Avatar';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import CssBaseline from '@material-ui/core/CssBaseline';
import Typography from '@material-ui/core/Typography';
import Co... |
import React, { useMemo, useState, useEffect } from 'react';
import { useNavigation } from 'react-navi';
import { Tooltip, Icon, toaster } from 'evergreen-ui';
import storage from '../../storage';
import theme from '../../theme';
import api from '../../api';
import Card from '../../components/card';
import Table from ... |
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
import CircularProgress from '@material-ui/core/CircularProgress';
import Grid from '@material-ui/core/Grid';
import { makeStyles } from '@material-ui/sty... |
import { IconContainer, Caption, BigText, Paragraph, Link, Widont } from "@/components/home/common"
import { GradientLockup } from "@/components/GradientLockup"
import { Tabs } from "@/components/Tabs"
import { CodeWindow, getClassNameForToken } from "@/components/CodeWindow"
import { gradients as allGradients } from "... |
import * as ArticleMenu from '../core/ArticleMenu';
import { ARTICLE_LOADED, COMMENT_LOADED, HEADER_LOADED } from '../core/ArcaSelector';
import { addSetting, getValue, setValue } from '../core/Configure';
import { waitForElement } from '../core/LoadManager';
import sheetLiveModifier from '../css/LayoutCustomizer.css... |
import * as THREE from "../../node_modules/three/build/three.module.js";
import { OrbitControls } from "../../node_modules/three/examples/jsm/controls/OrbitControls.js";
import { appleCrayonColorThreeJS } from '../../js/color.js'
import SpotLightDropShadow from "./spotLightDropShadow.js";
let spotlightDropshadow;
let... |
// check all
$(document).on(' change','input[name="check_all"]',function() {
$('.idRow').prop("checked" , this.checked);
});
//scroll to top
$(document).ready(function(){
//Check to see if the window is top if not then display button
$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('.scro... |
function Calendarpart(config) {
this._config = config;
// 私有函数定义
// 公共函数定义
this.loadData=function(){
};
};
/**
* 定义类成员
*/
Calendarpart.prototype = {
init : function() {
}
};
var partdataTable = null;
var selectedId = null;
function calendarpartpagefunction() {
partdataTable = $('#datatable_col_reorder')
... |
import React, { useState } from 'react'
import { Container, Card, Row, Col, ListGroup, Form, InputGroup, Button } from 'react-bootstrap'
import qs from 'qs'
import axios from 'axios'
import hex2rgba from '../utils/hex2rgba'
import ContactModal from './ContactModal'
const Contact = () => {
const [validated, setValid... |
const inherits = require('util').inherits
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
const clone = require('clone')
const cacheUtils = require('../util/rpc-cache-utils.js')
const Stoplight = require('../util/stoplight.js')
const Subprovider = require('./subprovider.js')
module.exports = B... |
function baseurl(){
var baseUrl = "http://localhost/pharus";
return baseUrl;
}
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
$("#dark").toggleClass("visible");
/*Esse script adiciona ou remove a classe toggled
toda vez que o botão do menu é clicado*/
});
va... |
import React from 'react'
import ProductImg1 from '../../images/product/product-image-1.jpg';
import icon_1 from '../../images/fwc.png';
import icon_2 from '../../images/er.png';
import icon_3 from '../../images/hh.png';
import icon_4 from '../../images/sc.png';
import SubtractCircle from "../../images/subt... |
import { UPDATE_BUDGET } from '../actions/apd';
import { arrToObj } from '../util';
const getFundingSourcesByYear = years => ({
...years.reduce(
(o, year) => ({
...o,
[year]: {
total: 0,
federal: 0,
state: 0
}
}),
{}
),
total: {
total: 0,
federal: 0,
... |
let loader = PIXI.loader;
let b = new Bump(PIXI);
let helper = new Helpers();
//Mobile device detection
//1 = normal / 2 : retina
let resolution = (isMobile.any == true &&
(isMobile.apple.phone == true ||
isMobile.apple.tablet == true ||
isMobile.apple.device == true)) ? 2 : 1;
let appWidth, appHeight;
if ... |
/* eslint-disable indent */
import { itemBushFromPath } from "./utils-canvas";
import { rFilter } from "./utils-io";
import { cursors } from "./utils-canvas";
export const SELECTED_COLOR = "rgb(0,150,250)";
export const RECT_COLOR = "#ccc";
export function getAllTools({
paper,
addPath,
removePath,
pastePath,
... |
import { Chart } from './Chart.js'
import { textWrap } from '../modules/bcd-chart-utils.js'
class GroupedBarChart extends Chart {
constructor (obj) {
super(obj)
this.drawChart()
}
drawChart () {
const c = this
super.init()
super.addAxis()
super.getKeys()
super.drawTooltip()
c.c... |
"use strict";
/**
* @module itsa-fetch
* @class Fetch
* @since 0.0.1
*/
require("itsa-jsext");
var GENERATOR_ID = "ITSA-FILETRANS",
MIME_BLOB = "application/octet-stream",
CONTENT_TYPE = "Content-Type",
idGenerator = require("itsa-utils").idGenerator,
DEFAULT_TIMEOUT = 300000, // 5 minutes
STR... |
import React from 'react'
import Balloon from 'qnui/lib/balloon';
import Button from 'qnui/lib/button';
import FlagIcon from '../../../components/FlagIcon'
import logistics from '../../../static/logistics'
import Input from 'qnui/lib/input';
import Overlay from 'qnui/lib/overlay';
const Popup = Overlay.Popup;
// 异常过... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("core-js/modules/es7.array.includes");
require("core-js/modules/es6.string.includes");
require("core-js/modules/es7.... |
/*global require, console, process, JSON, setTimeout*/
var http = require('http'),
config = require('./test-config'),
optparse = require('optparse'),
fs = require('fs'),
env = require('./env'),
shelljs = require('shelljs'),
spawn = require('child_process').spawn;
var colori... |
import React from 'react';
import '@folio/stripes-erm-components/test/jest/__mock__';
import { renderWithIntl, TestForm } from '@folio/stripes-erm-components/test/jest/helpers';
import { Accordion, Button } from '@folio/stripes-testing';
import translationsProperties from '../../../../test/helpers';
import PCIFormCover... |
// Dependencies
import React, { Component } from 'react';
import { connect } from 'react-redux';
// Assets
import thumbup from '../../assets/images/thumbup.png';
import thumbupBlue from '../../assets/images/thumbup-blue.png';
import thumbdown from '../../assets/images/thumbdown.png';
import thumbdownRed from '../../as... |
import React from 'react';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import CardHeader from '@material-ui/core/... |
import ajax from './ajax'
const BASE_URL = 'http://172.16.31.10:19966' // http://172.16.31.10:19966
const SOCKET_URL = 'ws://172.16.31.10:18080'
export {
BASE_URL,
SOCKET_URL
}
//获取验证码
export const getSms = (params) => ajax(BASE_URL + '/sms', params)
//注册
export const register = (params) => ajax(BASE_URL + '/user... |
import { useFeatures } from 'components/hook'
import * as Logo from 'components/logos'
import { borders, colors } from 'theme'
import { getDomain } from 'helpers'
import { Plus } from 'react-feather'
import { navigate } from 'gatsby'
import { capitalize, get } from 'lodash'
import React from 'react'
import {
Text,
... |
function Zone(){
var markup = '<div class="zone">'+
'<span class="point"></span>'+
'<span class="point"></span>'+
'<span class="point"></span>'+
'<span class="point"></span>'+
'<span class="name"></span>'+
'</div>';
this.pos = new Vector();
this.size = new Vector();
this.node = $(markup);
this.no... |
#!/usr/bin/env node
/**
* cli.js
*
* cec-monitor
*
* 12/8/17
*
* Created by <NAME> (<EMAIL>)
*/
var c = require('../index')
var CEC = c.CEC
var CECMonitor = c.CECMonitor
var readline = require('readline')
///////////////////////////////////////////////////////////////////////////////
// cli commands - see m... |
import fs from 'fs-extra';
import options from './options';
import path from 'path';
import request from 'request';
import semver from 'semver';
import snooplogg from 'snooplogg';
import yauzl from 'yauzl';
import { arch } from 'appcd-util';
import { isFile } from 'appcd-fs';
import { STATUS_CODES } from 'http';
cons... |
import React, {Component} from 'react'
import {
View,
Image,
ListView,
ScrollView,
Text,
TouchableHighlight,
TouchableNativeFeedback,
TouchableOpacity,
TouchableWithoutFeedback,
StyleSheet,
} from 'react-native'
// import ThemeProvider, {CHANNEL} from './theme-provider'
/**
* T... |
/*
* validate.other.parameters-1.0.js script validates the following:
* 1. scopes in /authorize request against scopes defined in API Products
* 2. redirect_uri in /authorize request against callback_uri defined in developer application configuration
*
* validate.other.parameters-1.0.js (c) 2015 @Apigee
*/
... |
let readySLDS = (callback) => {
if (document.readyState !== "loading") callback();
else document.addEventListener("DOMContentLoaded", callback);
}
readySLDS(() => {
createRequiredSelects();
activateTooltips();
activateHelpButton();
adjustLabelsFor();
activateAutoComplete();
});
/* Tooltip ... |
var status = -1;
var choice = -1;
var choice1 = -1
var sns = -1;
var item = -1;
var items = [
[[1102228,45],[1102216,45],[1102215,45],[1102184,50],[1102223,45],[1102258,45],[1102186,45],[1102187,45]], // Capes
[[1042183,55],[1042194,55],[1042177,55],[1042151,55],[1042196,55],[1042168,55],[1042199,55],[1042169,55... |
import { Map, Set, List, fromJS, Iterable } from 'immutable';
import resolveRoute from 'app/ResolveRoute';
import { emptyContent } from 'app/redux/EmptyState';
import { contentStats } from 'app/utils/StateFunctions';
import constants from './constants';
export const emptyContentMap = Map(emptyContent);
export const d... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/* global socketUrl, userId, WebSocket, userName, userUrl, userImg, websocket */
var actions = {
JOIN_CHAT: "join",
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _miniSignals = _interopRequireDefault(require("mini-signals"));
var _superagent = _interopRequireDefault(require("superagent"));
var _Image = _interopRequireDefault(require("../polyfill/Image"));
var _brows... |
/**
* Created by <NAME> on 26.08.2016.
*/
import * as moment from 'moment';
import { DataCache } from 'phovea_core';
import { GlobalEventHandler } from 'phovea_core';
import { AppConstants } from '../app/AppConstants';
import { Language } from '../app/Language';
import * as d3 from 'd3';
import { AppContext } from 'p... |
var hideStates = {};
function initHideState(studentUri, status){
hideStates[studentUri] = {
hidden: status
};
}
function toggleHiddenStatus(labworkUri, studentUri, studentHash){
ajaxHO("/administration/hideStates", "POST", "application/json", {student: studentUri, labwork: labworkUri, hide: !hide... |
function showToolTip(e){
e.stopPropagation();
let target = e.target;
let position = $(target).offset();
let width = $(target).width();
//find tooltip position
let tooltipPositionX = position.left;
let tooltipPositionY = position.top;
//get tip info
$('#tooltip-box').empty().append($(target).... |
// MIT License
// Copyright <NAME> <<EMAIL>>
const Fs = require('fs');
const WS_COMPONENT = { TYPE: 'component' };
const WS_LOADED = { TYPE: 'loaded' };
const WS_INIT = { TYPE: 'init' };
const WS_INSTANCES = { TYPE: 'instances' };
const WS_DATA = { TYPE: 'data' };
const WS_ERROR = { TYPE: 'error' };
const WS_TEMPLATES... |
getChat()
$(document).ready(function() {
setInterval(function() {
getChat();
}, 1000);
});
// ketika #chat-form di submit
$("#chat-form").submit(function (e) {
// memasukan value #chat-input kedalam variable
var chat = $("#chat-input").val();
// mengganti teks "send" menjadi icon pada tombol
var btn... |
let totalBarks = 10;
let barkArray = [];
var globalTime;
var bankA = [];
var bankB = [];
var bankC = [];
var bankD = [];
var bankAmbient = [];
var bankNoise = [];
var bankClick = [];
var clickbuild = 120;
let testSound;
//-------------------//
//extended setup functions
function loadBanks(){
//could this b... |
// wrapper around gettext (https://github.com/guillaumepotier/gettext.js/)
// functions ----------------------------------------------------------------
// string follows gettext (PO) format
// charmapping - optional function(String) for mapping special chars in strings
function ReadPOFile(string,charmapping) {
var ... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.activate = void 0;
const vscode = require("vscode");
... |
/* eslint-disable camelcase */
/* eslint-disable no-undef */
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Select, Modal } from 'antd';
// eslint-disable-next-line import/no-unresolved
import BMap from 'BMap';
// import ReactEcharts from 'echarts-for-react';
import SiderContent f... |
//服务类型、是否减缓选中状态切换
$(function(){
$('.type-list>a').on('click',toggleClass);
});
function toggleClass(){
$(this).addClass('c-active').siblings('a').removeClass('c-active');
var i = $('#typeL1').find('.c-active').index();
//console.log(i);
if(i>0){
$('.tip-price').show();
}else{
$('.tip-price').hide();
}
}
/... |
// Basic imports
import React from 'react';
// 3rd party libraries
import 'bootstrap/dist/css/bootstrap.css';
import {
Card,
Button,
CardTitle,
CardSubtitle,
CardGroup,
ButtonGroup,
ButtonDropdown,
DropdownToggle,
DropdownMenu,
DropdownItem,
Label,
Input,
FormGroup
} from 'reactstrap';
// Lo... |
import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
import { connect } from 'react-redux'
import UnlockPropTypes from '../../propTypes'
import Icon from '../lock/Icon'
import { BalanceWithUnit, Eth } from '../helpers/Balance'
import {
LockRow,
LockName,
LockLabel,
... |
function GamePlayer(){
var self = this;
this.screenActuator = new HTMLActuator();
this.depth = 1;
this.sampleSize = 100;
this.events = {};
this.watch = false;
this.watchDelay = 100;
this.running = false;
this.gameCount = 0;
this.winCount = 0;
this.moveCount = 0;
th... |
import React, { useEffect, useState, useContext, useRef } from "react";
import DomOptions from "../DomOptions";
import ChildrenDetails from "./ChildrenDetails";
import ParentDetails from "./ParentDetails";
import * as domUtils from "../../utils/domUtils";
import AddBookmarkPanel from "../BookmarkPanel/AddBookmarkPanel"... |
import React, {useState, useEffect, useRef} from "react";
import "assets/css/FlippingCard.css";
// reactstrap components
import {
Container,
Row,
Col, Label, Input, FormGroup,
} from "reactstrap";
// core components
// icons
import iconPeople from 'assets/img/icon_people.png';
import iconClock from 'asse... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.