text stringlengths 3.07k 16k |
|---|
/////////////// feature
var dir = import.meta.url.substr( 0,import.meta.url.lastIndexOf("/") ) + "/files/";
var dir2 = import.meta.url.substr( 0,import.meta.url.lastIndexOf("/") ) + "/files2/";
var presets = {
"none":null,
"custom":null,
"stapler":dir2+"Stapling Paper-SoundBible.com-238116558.mp3",
"maracas":... |
//Me da los items de todo el sistema menos los mios
//El 1 que hardcodee es el id del usuario con el que se logueo una persona
function getOtherItems(userID){
$( "#mainTitle" ).html( "Bienvenido a Trueque Libre!" );
console.log("A punto de pedir los itesm de amigos del user" + userID);
$.ajax({
type:... |
/*
Copyright 2019-2022 The Tekton 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 or agreed to in writing, sof... |
'use strict'
const BB = require('bluebird')
const fs = require('fs')
const index = require('./lib/entry-index')
const memo = require('./lib/memoization')
const pipe = require('mississippi').pipe
const pipeline = require('mississippi').pipeline
const read = require('./lib/content/read')
const through = requi... |
/*
Copyright (c) 2011, <NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
const COLS = 7;
const ROWS = 6;
const SIZE = ROWS * COLS;
//Gamestate is held in these two global variables.
let boardState = [];
//By convention: empty == 0 yellow == 1, red == 2
let yellowsTurn = true;
let gameStopped = false;
document.addEventListener('DOMContentLoaded', function() {
initializeGame(); //Sizes oth... |
import React from 'react';
import { Alert, View, StyleSheet,Text } from 'react-native';
import { purple, white, red , blue, green, coolblue} from '../utils/colors'
import TextButton from '../components/TextButton';
import CardFrontBack from '../components/CardFrontBack';
import { clearLocalNotification, setLocalNotifi... |
import PropTypes from "prop-types";
import React from "react";
import addClass from "dom-helpers/addClass";
import removeClass from "dom-helpers/removeClass";
import getWidth from "dom-helpers/width";
import scrollbarSize from "dom-helpers/scrollbarSize";
import classnames from "classnames";
import localizer from "./l... |
import { compose } from 'react-apollo'; // note: at the moment, compose@react-apollo === compose@redux ; see https://github.com/apollostack/react-apollo/blob/master/src/index.ts#L4-L7
import React from 'react';
export const Components = {}; // will be populated on startup (see vulcan:routing)
export const ComponentsTa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// interval is in seconds (can be decimal)
class Timer {
constructor(intervalInMS, func, maxCallCount = -1) {
this.timerID = -1;
this.callCount_thisRun = 0;
this.callCount_total = 0;
//Assert(IsNumber(interv... |
/*
* Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL)
*
* 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.
*
* U... |
'use strict';
const gulp = require('gulp');
const file = require('gulp-file');
const footer = require('gulp-footer');
const concat = require('gulp-concat');
const path = require('path');
const replace = require('gulp-replace');
const ts = require('gulp-typescript');
const context = require('./context.js');
const heade... |
"use strict";
// Jan 2019 <NAME>
////////////////////////////////////////////////////////////////////////
// Log APIs
////////////////////////////////////////////////////////////////////////
var $log;
var $logButton;
var logCount;
/**
* Initialize the Log
*/
function InitializeLog() {
$log = $(... |
async function processAuthentication() {
try {
displayResult('Processing Initiate Authentication with Worldline.', '');
var initResponse = await service
.initAuth()
.chdForm(document.getElementById('card_details'), 'data-chd')
.send();
if (initResponse.tDSMethodContent) {
p... |
var app = getApp();
var WxParse = require('../../../lib/wxParse/wxParse.js');
var util = require('../../../utils/util.js');
var api = require('../../../config/api.js');
Page({
data: {
id: 0,
goods: {},
feel: {},
gallery: [],
attribute: [],
issueList: [],
prictice:[],
retailPrice: 0,
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
// 请求分类数据并显示
$.ajax({
type: 'GET',
url: 'http://localhost:5000/api/classification',
dataType: 'json',
success: function(data) {
var html = '';
var index = 0;
data.map(function(superItem) {
if (superItem.parentID === 0) {
html += '<li>';
html += '<div class="menu">';
html += '<h2>... |
import React from 'react';
import { PropTypes } from 'prop-types';
import _ from 'lodash';
import { Card } from 'react-bootstrap';
import { formatPercentage } from '../../../utils/Analytics';
const WORKFLOWS = ['Exposure', 'Isolation'];
// Provide a separate array, as object-iteration order is not guaranteed in JS
co... |
const util = require('util');
const net = require('net');
const tls = require('tls');
const readline = require('readline');
const fs = require('fs');
rgxAddress = /^(.+?)(?:\/(\+)?(\d{1,5}))?$/;
function parseAddress(addr) {
var md = addr.match(rgxAddress);
return { 'str': addr, 'host': md[1], 'port': parseInt(md... |
import { calendarFormat } from "moment";
import React from "react";
import {
Button,
Card,
CardHeader,
CardImg,
CardBody,
CardSubtitle,
CardText,
CardTitle,
CardFooter,
Col,
Container,
Label,
Row,
} from "reactstrap";
import logo from "../../assets/img/brand/logo.svg";
// const CardContainer ... |
import React, {Component} from 'react'
import {connect} from 'react-redux'
import actions from '../../actions'
import Autocomplete from 'react-autocomplete'
import {
Col,
Row,
InputGroup,
Button,
ButtonGroup,
ButtonDropdown,
DropdownToggle,
DropdownMenu,
DropdownItem
} from 'reactstr... |
var myVar;
function myFunction() {
myVar = setTimeout(showPage, 1000);
}
function showPage() {
document.getElementById("loader").style.display = "none";
document.getElementById("#poettext").style.display = "block";
}
function random(min, max) {
min = Math.ceil(min);
max = Math.floor... |
$.ajaxSetup({
cache: false
});
var default_datelimit = new Date();
default_datelimit.setMonth(default_datelimit.getMonth() - 1);
$("#date_limit").kendoDatePicker({
value: default_datelimit,
change: function () {
var value = this._oldText;
$.post("/Payment/LoadingPaymentList?condition=" + 1... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import history from "../../../history";
import EmojiQuestion from "../EmojiQuestion/index";
import EmojiContainer from "../EmojiContainer";
import EmojiBody from "../EmojiContainer/EmojiBody";
import EmojiOverlay from "../EmojiOverlay/index";... |
"use strict";
import { GlobusTerrain } from "./GlobusTerrain.js";
import { WMS } from "../layer/WMS.js";
import { isPowerOfTwo, nextHighestPowerOfTwo } from "../math.js";
import { getTileExtent } from "../mercator.js";
class BilTerrain extends GlobusTerrain {
constructor(options) {
super("bil", options);
... |
"use strict";
exports.__esModule = true;
exports["default"] = exports.ReactPWAInstallProvider = exports.useReactPWAInstall = void 0;
var _react = _interopRequireWildcard(require("react"));
var _Platforms = require("./Platforms");
var _InstallDialog = _interopRequireDefault(require("./InstallDialog"));
var _this = ... |
import $d from "./dum";
import RbpBase from "./base";
import RbpCore from "./core";
const RbpDropdown = (($d, core, base) => {
const defaults = { dimension: "height", target: null, parent: null };
class RbpDropdown extends base {
constructor(element, options) {
super(element, defaults, options, "dropdown... |
/**
* Created by Julian/Wolke on 07.11.2016.
*/
let Command = require('../../structures/command');
let moment = require('moment');
let winston = require('winston');
let _ = require('lodash');
let version = require('../../../package.json').version;
let erisVersion = require('../../../node_modules/eris/package.json').v... |
/**
* Behavior for bhvBird. These are the birds in the castle grounds
* that fly away and scatter when Mario comes near them. There are
* 2 types of birds; spawner birds and spawned birds. Spawner birds
* are loaded by the level, and are inactive until Mario comes within
* 2000 units of them, when they spawn 6 spa... |
import React from "react";
import Grid from "@material-ui/core/Grid";
import TextField from "@material-ui/core/TextField";
// import InputRow from "../components/InputRow";
import Button from "@material-ui/core/Button";
import RelationshipModal from "../components/RelationshipModal";
import ButtonsRow from "../componen... |
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... |
//component used for signup and login forms because there were a lot of similarites between the two.
//Most elements are conditionally rendered
import React, {useState, useContext} from 'react'
import { Link } from 'react-router-dom'
import {UserContext} from "../../contexts/UserContext"
import axios from 'axios'
//... |
/*
Copyright 2016 - 2017 Huawei Technologies Co., Ltd. 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... |
/* eslint-disable import/no-extraneous-dependencies */
import thunkMiddleware from 'redux-thunk';
import createReduxLogger from 'redux-logger';
import { createStore as createReduxStore, applyMiddleware, combineReducers } from 'redux';
import { reducer as formReducer } from 'redux-form';
import { ipcRenderer } from 'ele... |
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.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
import { __assign, __extends } from 'tslib';
import React from 'react';
// Be sure to include styles at some point, probably during your bootstrapping
import axios from 'axios';
import PontusComponent from './PontusComponent';
import PVGremlinComboBox from './PVGremlinComboBox';
import CreatableSelect from 'react-selec... |
#!/bin/node
const { time } = require('console');
const fs = require('fs');
function ReadSyscalls(strace_output)
{
let syscalls = strace_output.split("----------------\n");
syscalls = syscalls[1].split("\n");
syscalls.pop(); // empty element
let syscall_list = {"syscalls":""};
for(syscall of sysc... |
// For automatic creation of files and setting everything up
function setSheetHeader(sheet, data, widths){
var datalength;
data ? datalength = data.length : datalength = 6;
var range = sheet.getRange(1, 1, 1, datalength)
.setHorizontalAlignment("center")
.setFontWeight("bold");
sheet.setFrozenRows(1);
... |
'use strict';
var Report = require('../lib/fluentReports' ).Report;
var displayReport = require('./reportDisplayer');
// ------------------------------------------------------------------------------------------------------
// Here is the DATA
// ----------------------------------------------------------------------... |
"use strict";
var async = require('async');
var extend = require('extend-fn');
var Timeout = require('./timeout');
var phantom_simple = require('node-phantom-simple');
var debug = require('debug');
var logger = {
debug: debug('phantom-manager:phantom-instance:debug'),
retry: debug('phantom-manager:phantom-ins... |
const SIZE = 160;
const SEPARATION_LIMIT = SIZE / 2;
const EDGE_LIMIT = SIZE * 1.5;
const TENSION_LIMIT = Math.pow(SIZE, 0.1);
const GOLDEN = 1.61803398875;
const GOLDEN_SQUARED = GOLDEN * GOLDEN;
const GOLDEN_CUBED = GOLDEN * GOLDEN * GOLDEN;
const DomainLayout = require("./domain-layout");
import Graph from "..... |
/**
* External dependencies.
*/
import { Component, renderToString } from '@wordpress/element';
class OembedPreview extends Component {
constructor() {
super( ...arguments );
this.state = {
width: 0,
height: 0
};
this.renderIframe = this.renderIframe.bind( this );
this.checkMessageForResize = this... |
const log4js = require('log4js');
const { Pool } = require("pg");
const chainConfigTable = 'chainlink_config';
const supportedChainsTable = 'supported_chains';
const chains_config = require('../config/chains_config.json');
const submissionsTable = 'submissions';
const aggregatorTable = 'aggregator_chains';
const log = ... |
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
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; }... |
import '@babel/polyfill'
import fetch from 'node-fetch'
import { ApolloServer } from 'apollo-server-express'
import { v4 as uuidv4 } from 'uuid'
import { print, GraphQLError } from 'graphql'
import {
introspectSchema,
FilterRootFields,
wrapSchema
} from '@graphql-tools/wrap'
import { stitchSchemas } from '@graphq... |
/**
* A Backbone.View for applying Masks to inputs. This uses the
* inputmask-core engine, and is based heavily on the react-maskedinput
* implementation of that engine (https://github.com/insin/react-maskedinput)
*
* @module views/inputMask
*/
'use strict';
var InputMask = require('inputmask-core'),
Back... |
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.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
var text = document.getElementById('textArea');
var sumbit = document.getElementById('submitButtonArea');
function arrows() {
thingie = '<table><tr><td>';
// row 1
thingie += '<table><tr><td></td><td> <button onclick="up()"> ⇑ </button></td><td></td>';
thingie += '<td><button onclick="talk()">talk</button>... |
import createListComponent, { isHorizontalFunc } from './createListComponent'
let devWarningsDirection = null
let devWarningsTagName = null
if (process.env.NODE_ENV !== 'production') {
if (typeof window !== 'undefined' && typeof window.WeakSet !== 'undefined') {
devWarningsDirection =
/* #__PURE__ */
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Dialog, DialogTitle, DialogActions, List, ListItem, TextField, Button, Divider, FormControl, FormHelperText, Input, InputLabel } from '@material-ui/core';
import SignIn from './SignIn';
import GoogleIcon from './icons/Google';
impo... |
//
// handControllerMouse.js
// examples/controllers
//
// Created by <NAME> on 2015/12/15
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var DEBUGGING = false;
var angularVe... |
// Copyright (c) 2019, PT DAS and contributors
// For license information, please see license.txt
cur_frm.add_fetch("batch", "objek_produksi", "kode_objek");
cur_frm.add_fetch("batch", "id_alat", "id_alat");
cur_frm.add_fetch("batch", "kelas", "kelas");
cur_frm.add_fetch("batch", "unit_produksi", "unit_produksi");
c... |
/*
Copyright (c) 2018 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
* Redistributions of source code must retain the ab... |
// Dependencies
var util = require('util');
var _ = require('@sailshq/lodash');
var debug = require('debug')('query');
var mssql = require('mssql');
module.exports = {
friendlyName: 'Send native query',
description: 'Send a native query to the MSSQL database.',
inputs: {
connection: {
friendlyNa... |
import { action, configure } from 'mobx';
import x from 'x';
import { inputs_data } from 'js/inputs_data';
import * as change_val from 'js/change_val';
import * as history from 'js/history';
import * as manifest from 'js/manifest';
import * as els_state from 'js/els_state';
import * as analytics from 'js/analytics';
... |
import _isString from 'lodash/isString'
import _isFinite from 'lodash/isFinite'
import t from '../constants/ws'
import ui from '../constants/ui'
const send = payload => ({
type: t.BUFF_SEND,
payload: _isString(payload)
? payload
: JSON.stringify(payload),
})
export default {
send,
error: payload => ({... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { graphql, StaticQuery } from 'gatsby';
import styled from 'styled-components';
import { useForm } from 'react-hook-form';
import { Grid, Col, Row } from 'react-styled-flexboxgrid/src';
import BackgroundImage from 'gatsby-background-ima... |
import React from 'react';
import { Button, Keyboard, Image, Platform, ScrollView, StyleSheet, View } from 'react-native';
import { RectButton } from 'react-native-gesture-handler';
import FadeIn from 'react-native-fade-in-image';
import { withNavigation } from 'react-navigation';
import withUnstated from '@airship/wit... |
import React, { useState, useContext } from 'react'
import { Stage, Container, Sprite, useTick, Graphics, Text } from '@inlet/react-pixi'
import { settings, SCALE_MODES } from 'pixi.js'
import * as PLANK from 'planck-js';
import observable from "../components/Observable";
settings.SCALE_MODE = SCALE_MODES.NEAREST
//P... |
/*jshint esversion: 9 */
/**
* Command: sfx
*
* controls the sfx functionality for messages. Note this command only works for masters
*
* usage: !sfx set [emoji_name] [url] - set an emoji. When a permitted person uses this emoji it'll play the sound
* usage: !sfx del [emoji_name] - unset an emoji. See set
... |
import React from "react";
import {UnicodeIcon} from "../utils/generalUtils";
export function FormLayout({title, children}) {
return (
<div className="row justify-content-center">
<div className="col-xl-6 col-lg-8 border bg-lightgray mb-5">
<div className="bg-darkgreen mb-3 no-c... |
const Table = require('cli-table3');
const axios = require('axios');
const _ = require('lodash');
const chalk = require('chalk');
const helpers = require('./helpers');
const api = require('./api');
const stripAnsi = require('strip-ansi');
const {
getCountry,
getConfirmed,
getActive,
getDeaths,
getRecovered,
... |
var layersNews = Framer.Importer.load("imported/News");
var layersReader = Framer.Importer.load("imported/Reader 1");
var topBar = layersNews.topBar;
var txt1 = layersNews.txt1;
var txt2 = layersNews.txt2;
var txt3 = layersNews.txt3;
var txt4 = layersNews.txt4;
var txt5 = layersNews.txt5;
var pic1 = layersNews.pic1;
v... |
import React, { useState } from 'react'
import { x } from '@xstyled/styled-components'
import { Highlight } from './Prism'
const codes = {
x: `
<x.div
p={{ _: 3, md: 6 }}
bg="white"
display="flex"
spaceX={4}
alignItems="center"
boxShadow
borderRadius
>
<x.div flexShrink={0}>
<img height={12} widt... |
/*
artifact generator: C:\My\wizzi\v4\node_modules\v4-wizzi-js\lib\artifacts\js\module\gen\main.js
primary source IttfDocument: c:\my\wizzi\v4\kernel\wizzi-mtree\src\ittf\lib\loader\loadcontext.js.ittf
utc time: Tue, 10 Oct 2017 15:44:11 GMT
*/
'use strict';
// generated by wizzi.codegen.js.es2015.module
fu... |
"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... |
import { storiesOf } from '@storybook/vue';
import { text, boolean, object, select } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import SvTemplateView from '../_storybook/views/sv-template-view/sv-template-view';
// import consts from '../_storybook/utils/consts';
import knobsHelp... |
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library docs, samples, and to report issues
'use strict';
const functions = require('firebase-functions');
const { WebhookClient } = require('dialogflow-fulfillment');
// const { Card, Suggestion } = require('dialogflow-fu... |
/**
* @author <NAME> <<EMAIL>>
* @see https://github.com/TimboKZ/discord-spoiler-bot/wiki
* @copyright 2017
* @license MIT
*/
'use strict';
const fs = require('fs');
const DiscordClient = require('./DiscordClient');
const GifGenerator = require('./GifGenerator');
const DEFAULT_MAX_LINES = 6;
class Spoiler {
... |
/**
* 前端混合使用对象
* 2016-12-12
*/
import {
URL, MENUID, ERR_MSG,
} from '../constants/constant-common';
import { mapGetters,mapMutations } from 'vuex'
import {
GET_USER, SET_USER, GET_MSG, SET_MSG, GET_MENUS, SET_MENUS, GET_ALLMENUS, SET_ALLMENUS,
GET_PRODUCTCOUNT, GET_PRODUCTINFO, SET_PRODUCTCOUNT, SET_PRODUCTINF... |
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { formatShortcut } from '../helpers/helpers';
const ARROW_UP = 38;
const ARROW_DOWN = 40;
const ESCAPE = 27;
export default class CommandPalette extends React.PureComponent {
static propTypes = {
options: PropTypes... |
/* Handling mouse position */
var lastX;
var lastY;
document.onmouseup = function () {
lastX = null;
};
/* Handling mouse button position */
var mouseDown = 0;
document.body.onmousedown = function () {
++mouseDown;
};
document.body.onmouseup = function () {
--mouseDown;
};
/* Handling selected drawing for b... |
import React, { useEffect, useContext, useState, useCallback } from "react";
import axios from "../../Data/utils/axios";
import requests from "../../Data/utils/requests";
import useLocalStorage from "components/Hooks/useLocalStorage";
import { Link } from "react-router-dom";
import {
FormGroup,
Button,
Typography... |
"use strict";
$(document).ready(function () {
"use strict";
$('[data-toggle="tooltip"]').tooltip()
$('.select2').select2({
placeholder: 'Lütfen Seçim Yapınız',
closeOnSelect : false,
theme: 'bootstrap4',
});
$('.datatable').DataTable({
oLanguage: {
oAri... |
/****************************************************************************
Copyright (c) 2017-2018 <NAME> Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
world... |
import React, { Component } from 'react';
import scriptLoader from 'react-async-script-loader';
export class MapContainer extends Component {
state = {
fetchedData : '',
isLoading : false
}
// method to display error message to use depends on the error
handleError = (message) => {
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Checkbox from 'material-ui/Checkbox';
import muiThemeable from 'material-ui/styles/muiThemeable';
import compose from 'recompose/compose';
import FieldTitle from '../../util/FieldTitle';
import translate from '../../i18n/translate';
... |
class Luni {
constructor({
parent = document.querySelector('#luni'),
links = document.querySelectorAll('[data-luni-link]'),
active = 'is-active',
margin = 18,
responsive = {
1024: {
columns: 4
},
... |
require('coffee-script');
const _ = require('lodash');
const nock = require('nock');
const Helper = require('hubot-test-helper');
const helper = new Helper('../src/coffeepoll.js');
const messages = require('../lib/messages');
const expect = require('chai').expect;
describe('coffeepoll', () => {
const pollStartedTest... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
const index_1 = require("./util/index");
const logger_1 = require("./logger");
const media_1 = require("./media");
const log = logger_1.Logger.scope('Message');
function parseAttributes(msgSid, attributes) {... |
import React, { useState, useEffect } from 'react';
import { Doughnut } from 'react-chartjs-2';
import 'chartjs-plugin-datalabels';
import { recentData } from '../../dummyData/index';
import './index.css';
import { useSelector } from 'react-redux';
import Loader from "../../components/loader";
import { getLanguageText... |
import React, {useRef, useEffect, useCallback, useContext} from 'react';
import {AppContext} from "../../../context";
import { motion, AnimatePresence } from 'framer-motion'
import {
AddGasNavbarModalDiv,
NavbarModalP,
ButtonNavbarCancel,
ButtonNavbarSave,
ButtonDiv,
ParametersP,
ParametersD... |
// from https://github.com/CollabVM-Unofficial/GuacUtils/blob/master/GuacUtil.js
function decodeCommand(cypher) {
var sections = [];
var bump = 0;
while (sections.length <= 50 && cypher.length >= bump) {
var current = cypher.substring(bump);
var length = parseInt(current.substring(current.search(/\./) - 2... |
import React, { Component } from 'react';
import Container from 'react-bootstrap/Container';
import { faFileAlt } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import ListPageTranscript from '../lib/ListPageTranscript';
import NewTranscriptFormModal from './... |
/**
* Copyright 2020 Google LLC
*
* 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 agreed to ... |
$(document).ready(function(){
jQuery('#sucess').hide();
var current_fs, next_fs, previous_fs; //fieldsets
var left, opacity, scale; //fieldset properties which we will animate
var animating; //flag to prevent quick multi-click glitches
$(".next").click(function(event){
var fv=formValidation(event);
if(fv){
}els... |
import { OBJECT_TYPE, TEXEL_ENCODING_TYPE } from '../../const.js';
import { Object3D } from '../Object3D.js';
import { Matrix4 } from '../../math/Matrix4.js';
import { Frustum } from '../../math/Frustum.js';
import { Vector4 } from '../../math/Vector4.js';
import { Vector3 } from '../../math/Vector3.js';
var _mat4_1 =... |
import React from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
Dimensions,
ActivityIndicator
} from 'react-native';
import MapView, { Polygon } from 'react-native-maps';
import Communications from 'react-native-communications';
import styled from 'styled-components';
import { Input, Button, I... |
var unitTesting=false;
var curlevel=0;
var curlevelTarget=null;
var levelEditorOpened=false;
var compiling = false;
var errorStrings = [];
var errorCount=0;
var gameScript=null;
function getScript(){
return gameScript;
}
document.oncontextmenu = function (e) {
if (e.target.tagName=="CANVAS"){
e.preven... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styles from './styles.css'
import {
decodedFrameCount,
decodedVideoByteCount,
decodedAudioByteCount,
displayIsFullscreen,
displaySupportFullScreen,
droppedFrameCount,
duration,
paused,
src,
networkState,
currentTim... |
import i18next from 'i18next';
import { NODE_PARAM_PREFIX } from './luigi-config';
import {
saveClusterParams,
deleteCluster,
saveActiveClusterName,
getActiveClusterName,
setCluster,
} from './cluster-management/cluster-management';
import { clearAuthData } from './auth/auth-storage';
import { reloadNavigatio... |
/*
* 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 agreed to in writing, software
* distributed u... |
export const state = () => ({
categories: [
{ name: "politics, social and culture", icon: "mdi-bullhorn" },
{ name: "history and geography", icon: "mdi-map" },
{ name: "economy and finance", icon: "mdi-currency-usd" },
{ name: "health and environment", icon: "mdi-hospital-box" },
... |
// window.onbeforeunload = function(event) {
// return "您编辑的信息尚未保存,您确定要离开吗?"//这里内容不会显示在提示框,为了增加语义化。
// };
function get_img() {
html2canvas(document.querySelector("body")).then(canvas => {
$("#img_data").val(canvas.toDataURL());
$("#demo").attr('src',canvas.toDataURL());
post_add();
});
... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import { Form, Input, Select, Checkbox, Button, Card, Steps, Progress, Spin } from 'antd';
import PageHeaderWrapper from '../../components/PageHeaderWrapper';
import CSVDatasetForm from './Templates/CS... |
import {GameEdition} from 'data/EDITIONS'
import {Team} from 'report'
import {Analyser} from '../Analyser'
import {Dispatcher} from '../Dispatcher'
import {Meta} from '../Meta'
import Parser from '../Parser'
jest.mock('../Dispatcher')
/* eslint-disable @xivanalysis/no-unused-dependencies, @typescript-eslint/no-magic-... |
import {
callAppHook
} from 'uni-core/service/plugins/util'
import initOn from 'uni-core/service/bridge/on'
import {
NETWORK_TYPES
} from '../api/constants'
import {
getCurrentPages
} from './page'
import {
consumePlusMessage
} from './plus-message'
import tabBar from './tab-bar'
impor... |
const proxy = require('express-http-proxy')
const envHelper = require('./../helpers/environmentVariablesHelper.js')
const learnerBaseUrl = envHelper.LEARNER_SERVICE_UPSTREAM_URL
const contentBaseUrl = envHelper.CONTENT_SERVICE_UPSTREAM_URL
const csLocalProxyURI = '/localproxy/content/'
const lsLocalProxyURI = '/localpr... |
function check_mc() {
var id = this.id.split('-')[0];
//console.log("In check_mc(), id="+id);
//console.log(event.srcElement.id)
//console.log(event.srcElement.dataset.correct)
//console.log(event.srcElement.dataset.feedback)
var label = event.srcElement;
//console.log(label,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.