text stringlengths 3.22k 29.5k |
|---|
/**定义模块和变量**/
const execSync = require('child_process').execSync; //同步子进程
const fs = require('fs'); //文件读取模块
const path = require("path");
const async = require("async");
const request = require('request');
const GitTools = require("./gitTools.js")
const PARENT_DIR = __dirname
const GIT_HOST = "https://gitlab.xxx.com... |
window.onload = onPageLoad;
var g_schoolid = null;
var g_user = null;
var g_classes = {};
g_classes.data = null; // Array of schools.
g_classes.head = null; // Time stamp of creation for head in school array.
g_classes.tail = null; // Time stamp of creation for tail in school array.
g_classes.curpos = -1; // Position... |
// Declaration of variables:
// Read the sheet
var url = "https://script.google.com/macros/s/AKfycbyx3aOL2z55SDj4g0heeHAM79wzx1GtNHBQEcu2ZkKUHAWzJ7lz/exec";
var ss = SpreadsheetApp.openById("1VO9ZU0EgMYJF9aCWpZvR3zx1n2pM-K3lQ_Fb9Cdl0ng"); // Open ENYU_DB
var sheetENYU = ss.getSheetByName("ENYU_CONTACTS");
... |
'use strict'
const camelCase = require('camel-case')
const hyperx = require('hyperx')
const issvg = require('@f/is-svg')
const svgNamespace = require('@f/svg-namespace')
/**
* Try to return a nice variable name for an element based on its HTML id,
* classname, or tagname.
*/
function getElementName (props, tag) {
... |
"use strict";
const fs = require("fs");
const path = require("path");
const config = require("../config.js");
const should = require("should");
const nock = require("nock");
const mockdate = require("mockdate");
const testutil = require("../test/testutil.js");
var osmcalLoader = require("../model/osmcalLoader.js"... |
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import Paneset from '@folio/stripes-components/lib/Paneset';
import ConfirmationModal from '@folio/stripes-components/lib/structures/ConfirmationModal';
import Pane from '@folio/stripes-components/lib/Pane';
import EditableList from... |
import React from 'react';
import PropTypes from 'prop-types';
import {
FormattedRelative,
FormattedMessage,
defineMessages,
} from 'react-intl';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './Activity.css';
import Avatar from '../Avatar';
import Statement from '../Statement';
impor... |
const params = {
selector: '#svgChart',
dataLoadUrl: './js/nerf-herders-test-data.json', // for larger json files, "JSON.parse()" or "for loops" for map-lookup can be used to make changes through the entire file.
chartWidth: window.innerWidth,
chartHeight: window.innerHeight - 125,
data: null,
};
d3.json(par... |
'use strict'
// --------------------------- Global Variables ---------------------------//
const tally = document.getElementById('tally')
const results = document.getElementById('results')
const D = document.getElementById('D')
const prodEh2 = document.getElementById('prodEh2')
const prodEimg = document.getElementById... |
document.addEventListener('DOMContentLoaded', (event) => {
console.log("compute flight profile js is loaded");
$("#trComputeFlightProfileId").hide();
$("#aircraftSelectionId").hide();
$("#routesSelectionId").hide();
$("#launchComputeId").hide();
});
function populateAircraftSelector( airlineAircraf... |
import { faSearch, faSquare } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import bboxPolygon from "@turf/bbox-polygon";
import turfCenter from "@turf/center";
import "bootstrap/dist/css/bootstrap.min.css";
import Color from "color";
import "leaflet/dist/le... |
// ### About this Flow ###
// Using Custom Auth Flow through Amazon Cognito User Pools with Lambda Triggers to complete a 'CUSTOM_CHALLENGE'.
// This custom challenge is performing verification as a Web Authentication Relying Party (RP) server
// during a WebAuthn flow.
'use strict';
var AWS = require('aws-s... |
import React, { cloneElement, createRef, useCallback, useEffect, useRef, useState } from 'react'
import cn from 'classnames'
import { Box, Table, TableBody, TableCell, TableHead, TableRow, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import AttachmentsView from './Attachme... |
const metaParse = (str)=>{
let result = {}, lastKey;
const get = (str)=>{
if(str==='true') return true;
if(str==='false') return false;
if(/^(-?[\d|_]+(\.[\d|_]+)?)$/.test(str)) return Number(str.replace('_',''));
return str;
}
str.split('\n').map(line=>{
const [_,key,val] = line.match(/^(\s*[a-z0-9A-Z_]... |
/**
* Copyright 2017 aixigo AG
* Released under the MIT license.
* https://opensource.org/licenses/MIT
*/
'use strict';
const path = require( 'path' );
const java = require( 'java' );
const JAVA_IO = 'java.io';
const JAVA_UTIL = 'java.util';
const LONG = 'java.lang.Long';
const STRING = 'java.lang.String';
cons... |
/**
* (The MIT License)
*
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* 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 ... |
import React, { useState, useEffect } from "react"
import {
ButtonBack,
ButtonNext,
CarouselProvider,
Dot,
Slide,
Slider,
} from 'pure-react-carousel';
import 'pure-react-carousel/dist/react-carousel.es.css';
import './test.css'
const zip = rows => rows[0].map((_, c) => rows.map(row => row[c])... |
import React, {Component} from 'react';
import logo from '../../../style/images/logo.png';
import {
Form,
Icon,
Input,
Button,
Checkbox,
Card,
Layout,
Row,
Col,
Menu
} from 'antd';
import {headStyles, cardStyles, contentStyles, medusa, layoutStyles} from '../../../style/MainStyles.js';
import { conn... |
/**
* This class creates/wraps a default html select field as backbone class.
*/
import Utils from "utils/utils";
import Buttons from "mvc/ui/ui-buttons";
var View = Backbone.View.extend({
initialize: function(options) {
this.data = [];
this.data2 = [];
this.model =
(options &... |
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymb... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import COLORS from '../../styles/colors.js';
import React, { useState, useEffect } from 'react';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import styles from '../../styles/stylesheet.js';
import {
Text,
View,
Dimensions,
TouchableOpacity,
Alert,
Image,
FlatList,
Modal,
... |
// Copyright 2016 Zipscene, LLC
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
const XError = require('xerror');
const pasync = require('pasync');
/**
* A class representing a reader/writer lock on one or more keys.
*
* @class RWLock
*/
class RWLock {
/**
* @con... |
const {
imageClass,
imageBackgroundClass,
imageWrapperClass,
} = require(`./constants`)
const visitWithParents = require(`unist-util-visit-parents`)
const getDefinitions = require(`mdast-util-definitions`)
const path = require(`path`)
const queryString = require(`query-string`)
const isRelativeUrl = require(`is-r... |
/**
* Template f�r �bungsaufgabe VS1lab/Aufgabe3
* Das Skript soll die Serverseite der gegebenen Client-Komponenten im
* Verzeichnisbaum implementieren. Dazu m�ssen die TODOs erledigt werden.
*/
/**
* Definiere Modul Abh�ngigkeiten und erzeuge Express app.
*/
var http = require('http');
//var path = require('pa... |
/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
import Hypergrid fr... |
import { WAREHOUSE_TRACKS, WAREHOUSE_RECEIPT, WAREHOUSE_TYPES } from '../../../config/app.config';
// HOOKS
import { isExisted, detectForm } from '../../../hook/before';
import React, { Component } from 'react';
import { Row, Col, FormGroup,Label, Input, Table, Button, ButtonGroup } from 'reactstrap';
import Vie... |
// Modifications copyright 2020 Caf.js Labs and contributors
/*!
Copyright 2013 Hewlett-Packard Development Company, L.P.
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/... |
import React, { Component } from 'react';
import { View, Platform, TouchableOpacity, Text, Image } from 'react-native';
import PropTypes from 'prop-types';
import { OT, nativeEvents, setNativeEvents, removeNativeEvents } from './OT';
import OTSubscriberView from './views/OTSubscriberView';
import { handleError } from '... |
import React, { useState, useEffect } from 'react';
import ReactTooltip from 'react-tooltip';
import SubdivisionTableRow from './SubdivisionTableRow';
import { mapNodeType } from '../../ResultUnit';
import { useParams } from 'react-router-dom';
import styled from 'styled-components';
import { generateDisplayParties ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash.debounce';
import autoprefix from './autoprefix';
function autoprefixes(styles) {
return Object.keys(styles).reduce(
(obj, key) => (obj[key] = autoprefix(styles[key]), obj),
{}
);
}
const styles = au... |
const request = require("request");
const fxp = require("fast-xml-parser");
const qs = require("querystring");
const utils = require("../utils.js");
const log = require("../log.js");
module.exports = {
getAmenities: (req, res) => {
log.inf("=> GET /osm/getamenities/:s/:w/:n/:e");
if (isNaN(req.par... |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { componentPropType } from '@material-ui/utils';
import withS... |
import { installFactory } from './utils/plugins'
import { componentsPlugin } from './components'
import { directivesPlugin } from './directives'
import { BVConfigPlugin } from './bv-config'
const NAME = 'BootstrapVue'
//
// BootstrapVue installer
//
const install = /*#__PURE__*/ installFactory({
plugins: {
comp... |
const vscode = acquireVsCodeApi();
// State
const state = {
data: {
tileTag: "",
paletteTag1: "",
paletteTag2: "",
size: "",
width: "",
height: "",
paletteSlot: "",
shadowSize: "",
inanimate: "",
disableReflectionPaletteLoad: "",
tracks: "",
oam: "",
subspriteTables... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
const index = require('../index');
const devices = require('../devices');
const exposes = require('../lib/exposes');
const deepClone = (obj) => JSON.parse(JSON.stringify(obj));
const equals = require('fast-deep-equal/es6');
const fs = require('fs');
const path = require('path');
function containsOnly(array1, array2){
... |
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _classCallCheck2 = _interopRequireDefault(require("@ba... |
import * as THREE from 'three';
import Coordinates from 'Core/Geographic/Coordinates';
import DEMUtils from 'Utils/DEMUtils';
/**
* @typedef {object} Camera~CAMERA_TYPE
* Stores the different types of camera usable in iTowns.
*
* @property {number} PERSPECTIVE Perspective type of camera
* @proper... |
/**
* Copyright 2018 The AMP HTML Authors. 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... |
import React, { useState, useEffect, useMemo, useCallback, useRef } from 'react';
import remove from 'lodash/remove';
import { observer } from 'mobx-react-lite';
import { Action, axios } from '@choerodon/boot';
import { Tabs, Icon, message, Checkbox, Popover } from 'choerodon-ui';
import { Table, Form, TextField, DataS... |
const assert = require('assert');
const async = require('async');
const { Logger } = require('werelogs');
const UtapiReplay = require('../../lib/UtapiReplay');
const UtapiClient = require('../../lib/UtapiClient');
const Datastore = require('../../lib/Datastore');
const redisClient = require('../../utils/redisClient');
... |
/**
* @version 0.50
*/
import React, { PureComponent } from 'react'
import { connect } from 'react-redux'
import { View, Text, ScrollView, Vibration, StyleSheet, Linking } from 'react-native'
import NavStore from '@app/components/navigation/NavStore'
import { LockScreenFlowTypes, setLockScreenConfig } from '@app/ap... |
const persistable_object_utils = require('../../DocumentPersister/persistable_object_utils')
const JSBigInt = require('@mylozzax/mylozzax-bigint').BigInteger
const CollectionName = 'Wallets'
exports.CollectionName = CollectionName
// Utility functions
function HydrateInstance (
walletInstance,
plaintextDocument
)... |
import http from 'http';
import responseMethods from '../response-proto/http/HttpResponse.js';
const nonSimpleProps = ['query', 'cookies', 'body'].map(
(prop) => `req.${prop}`
);
const matchers = (raw, prop) =>
raw.includes(`.${prop}`) ||
raw.includes(`{ ${prop}`) ||
raw.includes(`${prop} }`) ||
raw.includes... |
/*
|-------------------------------------------------------------------------------
| css插件
|-------------------------------------------------------------------------------
|
*/
import Map from '../map';
import { rCssNumVal, isPlainObject } from '../util';
const cssProps = {};
const prefixes = ['', 'webkit', 'Moz', 'O... |
// let scene = new THREE.Scene();
// let camera = new THREE.PerspectiveCamera(35, window.innerWidth/window.innerHeight, 0.1, 1000);
// let renderer = new THREE.WebGLRenderer();
// renderer.setSize(window.innerWidth, window.innerHeight);
// document.getElementById('out').appendChild(renderer.domElement);
// let shape ... |
import React from 'react';
import ReactDOM from 'react-dom';
import ReactQuill, { Quill } from 'react-quill';
import DropDown from './DropDown';
import CheckboxSection from './CheckboxSection';
import Api from '../api/EditorAPI';
import '../statics/editor.css';
import 'react-quill/dist/quill.bubble.css';
class Editor ... |
import React, { Component } from 'react';
import {
StyleSheet,
Image,
View,
TouchableHighlight,
TouchableOpacity,
ListView,
Text,
NavigatorIOS,
AsyncStorage,
Picker,
ScrollView,
StatusBar,
Animated,
} from 'react-native';
import Global from '../Global';
import Dimensi... |
/*global System*/
import { arr, string } from "lively.lang";
import { pt } from "lively.graphics";
import { LoadingIndicator } from "lively.components";
import { config } from "lively.morphic";
import { fuzzyParse, query } from 'lively.ast';
import { ImportInjector, GlobalInjector, ImportRemover } from "lively.modules/... |
function clickBtnArchivoVencimiento (grid,rowIndex,colIndex,item,event){Ext.Ajax.request({url: LINK_GENERICO+'/sesion',method: 'POST',success: function(response, opts) {var result=parseInt(response.responseText);
switch (result){case 0:case '0':location.assign(URL_BASE_SITIO+"admin");break;case 1:case '1':go_clickBtnA... |
// TODO rename tokens to match https://github.com/tweag/nickel/blob/master/src/parser/lexer.rs
// design goal: no hidden tokens -> all non-whitespace is parsed as some token
// this is useful for text-highlighting
// but may be too verbose for a syntax tree?
// -> use fields? field('fieldname', $._hidden_token)
// Pr... |
/**
* Copyright 2017 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/* eslint no-nested-ternary: off */
import $ from 'dom7';
import Utils from '../../utils/utils';
import Framework7Class from '../../utils/class';
class Gauge extends Framework7Class {
constructor(app, params = {}) {
// Extends with open/close Modal methods;
super(app, params);
const gauge = this;
c... |
import { Editor } from 'slate-react'
import { Value } from 'slate'
import React from 'react'
import { css } from 'emotion'
import initialValueAsJson from './value.json'
import { Icon } from '../components'
import { createArrayValue } from 'react-values'
/**
* Deserialize the initial editor value.
*
* @type {Object... |
import * as Gbi from "../../../../../include/gbi"
import {
spooky_09000000,
spooky_09000800,
spooky_09001800,
spooky_09002800,
spooky_09003800,
spooky_09004800,
spooky_09005000,
spooky_09006000,
spooky_09006800,
spooky_09007000,
spooky_09008000,
spooky_09008800,
spook... |
const MongoDBManager = require("../openidl-extraction-pattern-developer/service/mongo-database-manager");
const fileProcessor = require("./FileProcessor");
const fs = require("fs");
const { exit } = require("process");
const TARGET_DB = "database";
const TARGET_CSV = "csv";
const target = TARGET_DB;
const fetch = requi... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
var formatCodeFrame = require("babel-code-frame");
var Tokenizer = require("css-selector-tokenizer");
var postcss = require("postcss");
var loaderUtils = require("loader-utils");
var assign = require("object-assign");
var getLoc... |
"use strict";
function _typeof(obj) { 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 !== Symbol.prototype ? "sym... |
import * as Q from 'q';
import Express from 'express';
import session from 'express-session';
import connectMongo from 'connect-mongo';
import compression from 'compression';
import mongoose from 'mongoose';
mongoose.Promise = Q.Promise;
import bodyParser from 'body-parser';
import path from 'path';
import * as _ from... |
"use strict";
/**
* @module botbuilder-dialogs
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(fun... |
$(document).ready(function() {
$("#startDate").datetimepicker({
ampm : true,
dateFormat : "mm/dd/yy",
timeFormat : "h:mm TT"
});
$("#endDate").datetimepicker({
ampm : true,
dateFormat : "mm/dd/yy",
timeFormat : "h:mm TT"
});
});
var colors = new Array("#385d8a", "#8c3836", "#71893f", "#5c4776", "#357d9... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _path = _interopRequireDefault(require("path"));
var _lodash = require("lodash");
var _webpack = _interopRequireDefault(require(... |
// Bézier Math
// Thanks to Prof. <NAME> at the Vrije Universiteit Brussel, 2006.
'use strict';
var math = require('../util/math');
var Point = require('../objects/point');
var Rect = require('../objects/rect');
var bezier = {};
var MOVETO = bezier.MOVETO = 'M';
var LINETO = bezier.LINETO = 'L';
bezier.QUADTO = 'Q... |
/**
* Create a map
*/
var base_url = window.location.origin;
// alert(base_url);
var pilihan = "modal_simulasi";
var vtipe = "provinsi";
function get_pilihan(val) {
pilihan = val;
console.log(pilihan);
}
AmCharts.theme = AmCharts.themes.light;
AmCharts.loadJSON = function(url) {
// create the request
if (... |
"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[... |
const puppeteer = require('puppeteer');
const DEFAULT_OPTIONS = {
launch: {
// headless: false
},
pages: 99,
timeline: 'light',
replies: true,
parents: true,
quote: true,
loadWait: 1000,
pageWaitMode: 'networkidle0',
doScreenshot: false,
screenshot: {
... |
import React, { memo, useMemo } from 'react';
import { View } from 'react-native'; //#region reanimated & gesture handler
import { TapGestureHandler, LongPressGestureHandler } from 'react-native-gesture-handler';
import Animated, { measure, runOnJS, useAnimatedGestureHandler, useAnimatedProps, useAnimatedRef, useAnima... |
function createServerSideDatasource(fakeServer, gridOptions) {
function ServerSideDatasource(fakeServer, gridOptions) {
this.fakeServer = fakeServer;
this.gridOptions = gridOptions;
}
ServerSideDatasource.prototype.getRows = function(params) {
// console.log('ServerSideDatasource.ge... |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
... |
var tape = require("tape");
var Long = require("long");
var protobuf = require("..");
var Writer = protobuf.Writer,
Reader = protobuf.Reader;
tape.test("writer & reader", function(test) {
test.throws(function() {
Reader.create(1);
}, "should throw when creating a Reader from something else than a... |
var requests = false;
var timeout;
var specialInterval;
var previousButton;
var weatherapikey = false;
var PRIDE_COLOR_COUNT = 9;
var BUTTON_COUNT = 16;
var controlOutlets = function(btn, off) {
$.ajaxQueue({
'url': 'php/status.php',
'data': {
action: btn.attr('data-actiontype'),
turnoff: off,
outlets: (b... |
import React, { Component } from "react";
import { withStyles, Grid } from "@material-ui/core";
import { observer } from "mobx-react";
import Bigneon from "../../../../helpers/bigneon";
import notifications from "../../../../stores/notifications";
import boxOffice from "../../../../stores/boxOffice";
import GuestRow f... |
import PDFFont from '../font';
const toHex = function(num) {
return `0000${num.toString(16)}`.slice(-4);
};
class EmbeddedFont extends PDFFont {
constructor(document, font, id) {
super();
this.document = document;
this.font = font;
this.id = id;
this.subset = this.font.createSubset();
this... |
var sm = new StyleManager('demo');
var htmlViewElement = $('.html-view');
var styleElement = $('#__sm__demo');
//=== 继承
ko.observableArray.fn.refresh = function () {
var data = this().slice(0);
this([]);
this(data);
};
//=== ViewModel
//var AppView = {
// welcome: ,
// ruleOfThumbs:
//};
function... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.findExportDefaultDeclaration = findExportDefaultDeclaration;
exports.findImportNodes = findImportNodes;
exports.getValidStylesName = getValidStylesName;
exports.combineImportNodes = combineImportNodes;
exports.getIdentifierDeclarati... |
'use strict'
const {
getNamedType,
print,
parse,
Kind
} = require('graphql')
const kEntityResolvers = Symbol('mercurius.entity-resolvers')
function getFieldType (schema, type, fieldName) {
return getNamedType(schema.getType(type).getFields()[fieldName].type)
}
function getInlineFragmentType (schema, type)... |
// Por falta de um nome melhor, esse arquivo e movi para cá todas as funções que executam
// ações para definir o que renderiza e funcionalidades do jogo
// Talvez seja melhor quebrar em mais arquivos, mas terá que sera analizado
// Outro talvez é a opção de criar classes e adpatar as funções
// TODO
function isWayWa... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
import {isEmpty, deepAccess, isStr} from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {config} from '../src/config.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import { Renderer } from '../src/Renderer.js';
const BIDDER_CODE = 'richaudience';
let REFERER = '';
... |
const { createLogger, format, transports } = require('winston');
require('winston-daily-rotate-file');
require('winston-elasticsearch');
const { combine, timestamp, printf } = format;
const config = require('./config.js').parse();
const readline = require('readline');
const fs = require('fs');
const path = require('pat... |
function rand(min_rand, max_rand) {
return min_rand + (Math.random()*10000 % (max_rand - min_rand));
}
function shuffle(array) {
var shuffled = [], index;
for(var i=0; i<array.length; i++) {
while((index = parseInt(rand(0, array.length))) in shuffled);
shuffled[index] = array[i];
}
... |
function Filter() {
this.id=null;
this.opMeta = null;
this.field = null;
this.operator = null;
this.operand1 = null;
this.operand2 = null;
}
function BinaryOperation() {
this.field = null;
this.operator = null;
this.value = null;
}
BinaryOperation.prototype.init = function(filter) {
this.field =... |
// Generated by BUCKLESCRIPT VERSION 3.1.5, PLEASE EDIT WITH CARE
'use strict';
var Block = require("bs-platform/lib/js/block.js");
function accessLevelModifier(param_0) {
return /* AccessLevelModifier */Block.__(0, [param_0]);
}
function mutationModifier(param_0) {
return /* MutationModifier */Block.__(1, [para... |
import React, { Fragment, Component } from 'react';
import { Link } from 'react-router';
import { get } from 'lodash';
import fp from 'lodash/fp';
import formatRelative from 'date-fns/formatRelative';
import DestinyAuthProvider from 'app/lib/DestinyAuthProvider';
import { getDefinition } from 'app/lib/manifestData';
i... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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 ("val... |
$(function(){
$("#automotive_management").addClass("open");
$("#plating").addClass("active");
if($("#automotive_management").css("display") == "none"){
alert("페이지 접근 권한이 없습니다");
history.back();
}
if($("#plating").find("a").css("display") == "none"){
alert("페이지 접근 권한이 없습니다");
history.b... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "Handle", {
enumerable: true,
get: function () {
return _Handle.default;
}
});
exports.default = void 0;
function _assert() {
const data = _interopRequireDefault(require("assert"));
_assert = f... |
// Everything related to video stream preferences that the user can modify.
//; -*- mode: rjsx;-*-
/** @jsx jsx */
import { jsx } from 'theme-ui';
import { Fragment, useEffect, useState } from 'react';
import { useTranslation, Trans } from 'react-i18next';
import { FontAwesomeIcon } from '@fortawesome/react-fontaweso... |
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
import _inherits from "... |
/* globals $ App Backbone I18n */
/**
* Creates HTML with the actions which may be taken by a user based on the
* curve options.
*
* @param {object} opts
* An object optionally containing the keys showUpload and showRemove
* indicating whether those actions should be visible.
* @param {Function} t
* A fu... |
document.querySelector("#botaoCalcular").addEventListener("click", () => {
mostraContainer();
resultados();
})
function mostraContainer(){
document.querySelector("#div-resultado").style.display = "block";
}
function resultados(){
let rendaPorMes = document.getElementById("rendaMensal").value;
let ... |
import { Editor } from 'slate-react'
import { Value } from 'slate'
import React from 'react'
import initialValue from '../Controllers/value'
import { Button, Icon, Modal, Input } from 'semantic-ui-react'
import Html from "slate-html-serializer"
import { default as Rules } from "../Controllers/editor-rules";
import ".... |
//<%text>
// same as venus route!
const vbtn = $('#venus_calc');
mutation.keyup(e => {
if ($(e.target).val().search(/\d+/) !== -1 && uniprotValue !== 'ERROR') {
vbtn.show();
$('#error_mutation').hide();
$(e.target).removeClass('is-invalid');
if (event.keyCode === 13) vbtn.click();
... |
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... |
const { mongoUri } = require("../databaseUri.json");
const { Database } = require("./databasewrapper");
const { dbEnsure, delay } = require("./functions")
const OS = require("os");
module.exports = async client => {
return new Promise(async (res) => {
const connectionOptions = {
... |
import { geolocation } from "geolocation";
import * as messaging from "messaging";
import { locale } from "user-settings";
import { settingsStorage } from "settings";
import * as variables from "../common/variables.js";
import * as util from "../common/utils.js";
var index = 1;
var current_favourite_number = -1;
con... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LinterAdapter = undefined;
exports.linterMessageToDiagnosticMessage = linterMessageToDiagnosticMessage;
exports.linterMessageV2ToDiagnosticMessage = linterMessageV2ToDiagnosticMessage;
exports.linterMessagesToDiagnosticUpdate = lint... |
const cookie = require("cookie");
const url = require("url");
const session_key = "sessionID66";
const session_expire = 720;//unit second //60 * 60 * 24 * 7 // 1 week
const general_function = require('./common/general_function');
const mongoose = require("mongoose");
const user = require('./dbmodel/user');
const { thr... |
import {
AccountsQuery,
AccountStorageMutation,
AccountStorageQuery,
NerdGraphQuery,
NerdGraphMutation
} from 'nr1';
import { parseCardinalityBatchResponse } from './cardinality-helper';
import { parseNRQL, chunk, parseE2MMetricRuleListFromResponse } from './misc';
import {
buildCardinalityTimeseriesQuer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.