text stringlengths 3.22k 29.5k |
|---|
/**
* command.js:
*
* Contains the Vue components for displaying the command history, and the command sending form.
*/
// Setup component for select
import "../../third-party/js/vue-select.js"
import {timeToString,filter} from "./utils.js";
Vue.component('v-select', VueSelect.VueSelect);
/**
*
*/
Vue.component("... |
/////////////////////////
// HELPER
/////////////////////////
async function getAssocMembers(contractObject) {
var result = []
var memberHistoricCount = await getContractValueWoArg(contractObject, "getMemberHistoricCount");
for (i = 0; i < memberHistoricCount; i++) {
let historicMember = await getC... |
import React, { useCallback, useEffect, useRef, useState } from 'react'
import PropTypes from 'prop-types'
import createRange from '../../utils/createRange'
import Button from '../Button'
import { getTranslateXRanges, strippedNum } from '../../helpers'
import Dots from '../Dots'
import Slide from '../Slide'
import Sty... |
const app = getApp();
const config = require("../../config.js");
const db = wx.cloud.database();
const store = db.collection("store");
Page({
/**
* 页面的初始数据
*/
data: {
stores: {},
occurpyProblemNumber: 2,
errorProblemNumber: 1,
designProblemNumber: 3,
longitude: config.center_longitude,
... |
import path from 'path';
import { Resolver, Logger, Constants, Common, PluginManager, Prompt, FileUtils } from 'rnv';
import { getAppFolderName } from './common';
import { parseProvisioningProfiles } from './provisionParser';
const {
getAppFolder,
getAppId,
getConfigProp,
getFlavouredProp
} = Common;
c... |
const {
SlashCommandBuilder
} = require('@discordjs/builders');
const {
MessageEmbed,
VoiceChannel
} = require('discord.js');
const Voice = require('@discordjs/voice');
const ytsr = require('ytsr');
const playdl = require('play-dl');
module.exports = {
data: new SlashCommandBuilder()
.setName('tocar')
... |
'use strict'
const dedent = require('dedent-js')
const { get, set, isEqual } = require('lodash')
const AdminSubmissionsService = require('../../../../services/AdminSubmissionsService')
const BetaService = require('../../../../services/BetaService')
const UserService = require('../../../../services/UserService')
const... |
import React, {useState, useEffect} from 'react';
import {Input, Button, Popconfirm} from 'antd';
import {connect, useSelector} from 'react-redux';
import {useTableSearch} from 'hooks/useTableSearch';
import {Link} from '@reach/router';
import {useAPI} from 'common/hooks/api';
import {deleteOutward} from 'common/api/au... |
var treeID = null;
function tree(treeID,treeNodes,funName){
var treeType = 0;
var layer = 0;
var parentidlist = '';
var title = '';
var lastDiv = null;
this.id = treeID;
this.drag = false;
this.dragObj = null;
this.oldClass = '';
this.treeType = 0;
this.layer = 0;
this.parentidlist = '';
this.title = '';
this.lastDi... |
// Use window.addEventListener("scroll",) Event listener.
// then add callback function that includes when the window height scroll down to 100vh and add 'fixed-top' class on Navbar element.
// For your mind: object.classList.add('class') this method is add class on selected element
// e.target.scrollingElement.scroll... |
var i, node;
var groupSep = 10; // the distance between different nodes
// controls the node radius and the distance between links
// var noderadius = d3.scaleSqrt().range([2,4]); // set five levels for result node radius, range is the result value
var noderadius = 4;
var noderadius2 = 6;
var linkwidth2 = d3.scaleLin... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var BABYLON;
(function (BABYLON) {
var Camera = (function (_super) {
__extends(C... |
var jagg = jagg || {};
var messageTimer;
(function () {
jagg.post = function(url, data, callback, error) {
return jQuery.ajax({
type:"POST",
url:url,
data:data,
async:true,
... |
/**
* Demonstrates usage of a custom Ext.tab.Panel component with the tabBar docked to the top of the screen
* for Material Design Theme / Android, and at the bottom for all other themes.
*/
/**
* This method returns an array of all items we should add into the form panel we create below in the splitViewPortfolio.... |
const vertex = `
precision highp float;
precision highp int;
attribute vec3 position;
attribute vec2 uv;
attribute vec3 normal;
uniform mat3 normalMatrix;
uniform mat4 modelMatrix;
uniform mat4 modelViewMatrix;
uniform mat4 projectionMatrix;
varying vec2 vUv;
varying vec3 vNormal;
varying vec3 vMPos;
void main() {
... |
/**
* @fileoverview Radial plot component.
* @author <NAME>.
* FE Development Lab <<EMAIL>>
*/
'use strict';
var geom = require('../../helpers/geometric');
var chartConst = require('../../const');
var pluginFactory = require('../../factories/pluginFactory');
var snippet = require('tui-code-snippet');
var... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/** @suppress {duplicate} */
var remoting = remoting || {};
/** @type {remoting.HostSession} */ remoting.hostSession = null;
/**
* @... |
"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... |
'use strict';
var Constants = require('Constants');
function AnnotationsPanel(params) {
this.submitAnnotationsUrl = params.submitAnnotationsUrl || (Constants.baseUrl + '/submitModelAnnotations');
if (params) {
this.container = params.container;
// List of settable attributes
this.attributes = params.a... |
//Variables
var canvas = document.getElementById("canvas");
var color = 'black';
var cadre = document.getElementById("cadre");
var step = '';
var step2 = '';
var envoi = document.getElementById('envoi');
var envoijson = {};
var col = document.getElementById("col");
var row = document.getElementById("row");
var choix = ... |
var frameModule = require("ui/frame");
var view = require("ui/core/view");
var dialogs = require("ui/dialogs");
var observable = require("data/observable");
var pageData = new observable.Observable();
var subNavTitle = "YourPayInformation";
var navList = [];
exports.pageLoaded = function(args) {
const page = args.... |
import React, { useEffect, useContext } from 'react';
import { useParams, withRouter, Link } from 'react-router-dom';
import { useImmerReducer } from 'use-immer';
import Axios from 'axios';
import PropTypes from 'prop-types';
import Page from '../../components/layouts/Page';
import LoadingDotsAnimation from '../../comp... |
////////////////////////////////////////
// DateUtil
// 日期处理工具集
//--------------------------------------
// 如何使用
// var DateUtil = require('../utils/DateUtil'); // src/dao文件夹
// var DateUtil = require('../src/utils/DateUtil');// routes文件夹
// DateUtil.func(str, params...);
////////////////////////////////////////
//... |
// dbQuery.js
// REQUIRED MODULES_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
const spicedPg = require( 'spiced-pg' );
const redis = require( './redis' );
const db = spicedPg( process.env.DATABASE_URL || require( '../config/secrets.json' ).psqlConfig );
const {
hashPassword,
checkPassword
} = ... |
// Model:n vi använder för att lagra, hämta och hantera vår data.
import { Meteor } from "meteor/meteor";
import Games from "./collections/games/games";
import Watchlist from "./collections/watchlist/watchlist";
const Model = function(){
var games = [];
var watchlist = {items: []};
var watchlistId = "";
var ... |
'use strict'
// order of entries in this map *does* matter for the resolved labels
// earlier entries override later entries
const subSystemLabelsMap = new Map([
/* src subsystems */
[/^src\/async-wrap/, ['c++', 'async_wrap']],
[/^src\/(?:base64|node_buffer|string_)/, ['c++', 'buffer']],
[/^src\/cares/, ['c++'... |
import React, { Component } from 'react';
import ReactHtmlParser from 'react-html-parser';
import PropTypes from 'prop-types';
import '../scss/component-owner.scss';
import '../scss/animation.scss';
/**
* Focus on DOM node after a delay.
* @param {HTMLElement} el Element that will receive focus.
* @param {Number} ... |
"use strict";
var _interopRequireDefault = require("babel-runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(
require("babel-runtime/helpers/classCallCheck")
);
var _createClass2 = _inter... |
'use strict';
var angular = require('angular');
require('angular-ui-router');
var _ = require('lodash');
var resolveArgs = require('../common/utils/resolve-args');
var commonModule = require('../common');
var deviceDetailsModule = angular.module('concaria-manage-device-details', [
'ui.router',
commonModule.name... |
/**
* 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... |
const h64raw_promise = import('/js/xxhash-wasm@0.4.2.js').then(m => m.default()).then(d => d.h64Raw);
async function h64raw(data, seed1, seed2) {
return h64raw_promise.then(hasher => hasher(data, seed1, seed2));
}
function series_filter() {
document.getElementById('main').dataset.filterSeries = document.getEl... |
import gl from "./gl.js";
import Fungi from "./Fungi.js";
import Shader from "./Shader.js";
class Vao{
constructor(){ this.vao = null; }
//----------------------------------------------------------
create(){
this.vao = {
id : gl.ctx.createVertexArray(),
elmCount : 0,
isIndexed : false
};
gl.c... |
import icon from "../icon/icon";
import {
LOAD,
CLICK,
DRAGSTART,
DRAGOVER,
DROP,
PREVENT,
DEBOUNCE
} from "../../../util/Event";
import {
BlurFilter,
GrayscaleFilter,
HueRotateFilter,
InvertFilter,
BrightnessFilter,
ContrastFilter,
DropshadowFilter,
OpacityFilter,
SaturateFilter,
Sep... |
/*
*
* +------------------------+
* | TrackR - Time tracking |
* +------------------------+
*
*/
// -- Libraries -- \\
var express=require('express.io');
var engines=require('consolidate');
var ldap=require('ldapjs');
var Connection=require('tedious').Connection;
var Request=require('tedious').Request;
// -- Co... |
import sumBy from 'lodash/sumBy';
import { set_charge_type_query } from './utils';
import Timeline from '../vue/Timeline.vue';
export function booking_order_freight_detail() {
return {
freight_add: function (frm, cdt, cdn) {
const row = frappe.get_doc(cdt, cdn);
frm.script_manager.copy_from_first_ro... |
"use strict";
import React from 'react'
import {checkActivateCalls} from '../../event-manager.js'
import GlobalStyles from '../global-styles.js'
const $ = React.createElement
const MenuBurger = (props) => {
const c = {transition:"all 100ms",transformOrigin:"center"}
const alt1 = props.isBurgerOpen?{transform: "rot... |
var WebDFU = require("webdfu");
var DFU = WebDFU.DFU;
var DFUse = WebDFU.DFUse;
var Storage = require("./Storage");
const AUTOCONNECT_DELAY = 1000;
/**
* Class handling communication with a Numworks
* calculator in Recovery Mode using WebUSB and the WebDFU lib.
*
* @author Maxime "M4x1m3" FRIESS
* @license MIT... |
function validaCep(id) {
var campoEndereco = $(id).parents('.form-row').find('input[id^=inputEndereco]');
var campoNumero = $(id).parents('.form-row').nextAll().find('input[id^=inputNumero]');
var campoBairro = $(id).parents('.form-row').nextAll().find('input[id^=inputBairro]');
var campoCidade ... |
/**
* Provides metadata about the current project
*/
const paths = require('./config/paths')
// This will always be in the context of the nearest package.json in process.cwd()
const runtime = require('@skypager/node')
const projectTypes = {}
const { mapValues, keys, uniq, isArray, isString } = runtime.lodash
const... |
import { sep, resolve } from "./safe/path.js"
import COMPILER from "./constant/compiler.js"
import ENTRY from "./constant/entry.js"
import ENV from "./constant/env.js"
import ESM from "./constant/esm.js"
import Compiler from "./compiler.js"
import GenericBuffer from "./generic/buffer.js"
import exists from "./fs/exi... |
//
// Author: <NAME> <EMAIL>
// backendjs 2018
//
var util = require('util');
var core = require(__dirname + '/../lib/core');
var lib = require(__dirname + '/../lib/lib');
var db = require(__dirname + '/../lib/db');
var logger = require(__dirname + '/../lib/logger');
// Setup LMDB/LevelDB database driver, this is s... |
/**
* 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 may... |
var fs = require('fs'),
path = require('path'),
utils = require('../../').utils;
var h5bp = module.exports;
// Basic template description.
h5bp.description = 'Init a new html5-boilerplate project.';
// Template-specific notes to be displayed before question prompts.
h5bp.notes = fs.readFileSync(path.join(__dirn... |
import React, { Component } from 'react';
import { hashHistory } from 'react-router';
import ParticipantNewToolbar from './ParticipantNewToolbar';
import ParticipantProjectDetailsAPI from '../../../api/participant-project/ParticipantProjectDetailsAPI';
import Panel from '../../../components/panel/Panel';
import Panel... |
import React from 'react';
import MovieInspectionHeader from '../../../Header/MovieInspectionHeader';
import * as ROUTES from '../../../../../constants/routes';
import {Button, CircularProgress, Container, Grid, IconButton, TextField} from '@material-ui/core';
import ThumbsUpDownIcon from '@material-ui/icons/ThumbsUpDo... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _propTypes = _interopRequireDefault(require("prop-types"));
function _interopRequireDe... |
const N = 24 * 2
export const threshold = Math.random() * 1
export const variables = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
// {
// "total":{"n":4234,"percent":23},
// "variables":[
// {"name":"A","n":343,"percent":13},
// {"name":"B","n":434,"percent":20},
// ...
// ]
// ... |
const Discord = require("discord.js");
module.exports = class HelpCommand extends require("../../Class/Command") {
constructor(client) {
super(client, {
name: "help",
aliases: ["h"],
description:
"Da los comandos del bot y proporciona información sobre un comando",
usage: "help <c... |
const navMenu = document.getElementById('nav-menu'),
navToggle = document.getElementById('nav-toggle'),
navClose = document.getElementById('nav-close');
/*================ menu--show ======================*/
// validate if cosntant exists
if(navToggle){
navToggle.addEventListener('click', () =>{
nav... |
const chai = require( 'chai' );
const expect = chai.expect;
const markdown = require( '../src/markdown' );
describe( 'markdown', () => {
describe( 'rendering', () => {
[
// correct emphasis
[ '_emphasis_', '<em>emphasis</em>' ],
[ '*emphasis*', '<em>emphasis</em>' ],
... |
import React, { PureComponent, Fragment } from "react";
import classes from "./ChatBox.module.css";
import ChatForm from "../../../../components/ChatForm/ChatForm";
import { withRouter } from "react-router";
import * as actionCreators from "../store/actions";
import { required } from "../../../../util/validators";
impo... |
/*
* Wazuh app - React component for registering agents.
* Copyright (C) 2015-2020 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at ... |
import * as THREE from "three";
import metaversefile from "metaversefile";
import Avatar from "../avatars/avatars.js";
// import {world} from '../world.js';
import physicsManager from "../physics-manager.js";
// import {glowMaterial} from '../shaders.js';
// import easing from '../easing.js';
import npcManager f... |
import React, { useEffect, useState } from "react";
import { useSelector } from "react-redux";
import socketIOClient from "socket.io-client";
import List from "@material-ui/core/List";
import Avatar from "@material-ui/core/Avatar";
import Dialog from "@material-ui/core/Dialog";
import Drawer from "@material-ui/core/Dr... |
"use strict";
exports.__esModule = true;
var reserved_spaces = {
relative_protocol_ids: 0,
protocol_ids: 1,
implementation_ids: 2
};
var object_type = {
null: 0,
base: 1,
account: 2,
asset: 3,
force_settlement: 4,
committee_member: 5,
witness: 6,
limit_order: 7,
call_order: 8,
custom: 9,
p... |
var _ = require('underscore');
var async = require('async');
var mongodb = require('mongodb');
var pg = require('pg');
/*
remove dummy users with only 'created' and '_id' columns
var emptyUserQuery = function() {
var no_responses = (this.responses === undefined) || (this.responses.length === 0);
return no_respon... |
function interpret(program) {
return P(program)
}
const P = (program) => {
let statements = program.body
let w = [{}, []]
for (let s of statements) {
w = S(s)(w)
}
return w[1]
}
const S = (statement) => ([memory, output]) => {
if (statement.constructor === VariableDeclaration) {
let { variable, ... |
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.require("dojo.lang.type");
function test_lang_i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
function toggleSpeciesData(src)
{
// gets the data area
var dataID = src.id.toString().replace('species_header_for_','species_data_for_');
var options = {};
$( "#" + dataID ).toggle( 'blind', options... |
'use strict';
const fs = require('fs');
const path = require('path');
const barbe = require('barbe');
const _ = require('lodash');
const { isNumber } = require('@terascope/utils');
const { safeEncode } = require('../../../../../utils/encoding_utils');
const { setMaxOldSpaceViaEnv } = require('./utils');
class K8sR... |
import * as React from "react";
import { useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import {
getArticles,
createArticle,
} from "../../store/actions/ArticlesActions";
import Editor from "../admin/Editor";
import { styled, alpha } from "@mui/material/styles";
import Box from "... |
import React, { Component } from 'react'
import cls from 'classnames'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import {
changePreview,
changeGbConfig,
initSchema,
changeCodeMode,
changeComponent,
editComponent
} from './actions'
import { Divider } from './utils/util'
import ... |
/**
* Allows you to effortlessly interface your node applications with a variety of gamepad controllers.
*
* @example
* var controller = ( new Gamepad( 'ps3/dualshock3' ) ).connect();
* controller.on( 'x:press', function() {
* // do something here.
* } );
* @module Gamepad
*/
// load our d... |
$(document).ready(function () {
llenar_lista_puestos()
obtener_cursos_guardados()
Habilitar_bloquear_controles(true)
dar_evento_a_botones()
/*if($("#img").attr("src")=="")
$("#img").hide()
else
$("#imagen p").show()
checar_imagen_cambio();*/
})
/*****************************... |
import React, {useEffect,useState,useImperativeHandle, useRef} from 'react';
import Web3 from './utils/Web3';
import contractService from './services/contract';
import {
BrowserRouter as Router,
Route,
Link,
Redirect,
withRouter
} from 'react-router-dom';
import { Header,Menu, Segment } from 'semantic-ui-re... |
/**
* Postgres service. Requires 'pg' module.
* @module arpen/services/postgres
*/
let pg;
try {
pg = require('pg');
} catch (error) {
// do nothing
}
const debug = require('debug')('arpen:postgres');
const moment = require('moment-timezone');
const os = require('os');
const NError = require('nerror');
/**... |
"use strict";
NodeList.prototype.indexOf = Array.prototype.indexOf;
let $ = (s, o = document) => o.querySelectorAll(s);
function empty(e) {
while (e.firstChild) {
e.removeChild(e.firstChild);
}
}
let ws;
window.addEventListener("load", function(event) {
init();
for (let p of $... |
import { randomItem, random, convertColors } from "@react-effects/utils";
let canvas = undefined;
let ctx = undefined;
let rafId = undefined;
const targets = new Map();
const effects = new Map();
function getPosition(node) {
return node.getBoundingClientRect();
}
function loop(time = performance.now()) {
// Sto... |
/* eslint-disable no-new-func */
/* eslint-disable id-length */
import React, {Fragment} from 'react'
import AceEditor from 'react-ace'
import 'brace/mode/javascript'
import 'brace/theme/monokai'
import loadFunction from '../utils/loadFunction'
import {
fetchProblem,
addSolvedProblem,
fetchSolvedProblems
} from '... |
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createCl... |
var head, content, desc;
var curTop = 0;
var images = [];
var imgIDs = {};
var thumbshigh = 0; // How many thumbnails high the window allows
var visible = []; //9,10,11,12,13,14,15]; // Thumbs that are available in the header window.
var stripheight = 0;
var headerHeight = 0;
var activeHeader = 0;
function I... |
let nothingness_state = true;
const menus = {
"&File": [
{
item: "&Open",
action: () => {
const $w = $Window({ title: "<NAME> and the Forty Thieves", resizable: false, maximizeButton: false, minimizeButton: false });
$w.$content.html("<p>\"Open Sesame!\"</p>");
$w.$Button("OK", () => $w.close()).fo... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
var Alloy = require('/alloy'),
Backbone = Alloy.Backbone,
_ = Alloy._;
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
}
return arg;
}
function Controller() {
require('/alloy/controllers/' + 'BaseController').apply(this, Array.prototype.slice.call(arguments));
... |
import React, {useState} from "react";
// reactstrap components
import {
Button,
Input,
InputGroup,
Container,
Col, CardBody, Card
} from "reactstrap";
// core components
import DefaultFooter from "../components/Footers/DefaultFooter.js";
import HomeNavbar from "../components/Navbars/HomeNavbar... |
// Generates snark verifier contract with hardcoded verification keys
const fs = require("fs");
const utils = require("./utils.js");
function serializePK(vk_verifier_file) {
let verificationKey = utils.fload(vk_verifier_file);
let template = `
vk.alfa1 = Pairing.G1Point(<%vk_alfa1%>);
vk.beta2... |
import React from 'react';
import { connect } from 'react-redux';
import { Table, EditWrapper } from 'components';
import STRINGS from 'config/localizedStrings';
import { TABS } from '../index';
import { calculateEsimatedDate } from 'utils/eth';
import Transaction from './Transaction';
import DonutChart from './DonutCh... |
import validator from 'validator';
import { Comment } from '../../models';
import { toTSVector } from '../search/to-tsvector';
import { initObject, prepareModelPayload } from './utils';
///////////////////////////////////////////////////
// Comments
///////////////////////////////////////////////////
const comments... |
const { toJSON } = require('./vtl');
const log = require('logdown')('appsync-emulator:util');
class Unauthorized extends Error {}
class TemplateSentError extends Error {
constructor(gqlMessage, errorType, data, errorInfo) {
super(gqlMessage);
Object.assign(this, { gqlMessage, errorType, data, errorInfo });
... |
function dialog_emi_rec_pag_imp_predial() {
$("#vw_emision_rec_pag_imp_predial").dialog({
autoOpen: false, modal: true, width: 815, show: {effect: "fade", duration: 300}, resizable: false,
title: "<div class='widget-header'><h4>.: RECIBO IMPUESTO PREDIAL :.</h4></div>",
buttons: [{
... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import PostDetails from './PostDetails';
import ErrorBoundary from '../../../ErrorBoundary/ErrorBoundary';
import ModalGroup from '../../../Modal/ModalGroup';
... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________.__ __ .____ .__
/ _____/| | _____ ____ | | __ ___________| | ____ ____ ____ | | ___.__.
\_____ \ | | \__ \ _/ ___\| |/ // __ \_ _... |
FROMEWORK_CODE = "TSS";
APP_CODE = "TSS";
APPLICATION = APP_CODE.toLowerCase();
CONTEXTPATH = APPLICATION + "/";
// 获取系统参数模块的配置信息
function getParam(key, callback) {
$.getJSON("/tss/param/json/simple/" + key, {},
function(result) {
var val;
if( result && result.length && result[... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenera... |
const router = require('express').Router();
const co = require('co');
const toMongodb = require('jsonpatch-to-mongodb');
const ObjectID = require('mongodb').ObjectID;
const coForEach = require('co-foreach');
const strContains = require('../../utils').strContains;
const getLastMondayDates = require('../../utils').getLas... |
import React, { useEffect } from 'react';
import { View, ActivityIndicator, Platform } from 'react-native';
import './index.css';
import TextInput from './components/TextInput';
import FileInput from './components/FileInput';
import ImagePicker from './components/ImagePicker';
import Picker from './components/Picker'... |
/**
*
* Breaks up speech into components and assists with classifying things such
* as the subject, ownership, and action for a statement.
*
* I am not a linguist, this is the result of writing whatever logic it takes
* to get the tests to work.
*
* Please help me make this better:
* https://github.com/nhunzak... |
const VueWCPlugIn = {
deferred: {},
$isEnabled: true,
get isEnabled() {
return VueWCPlugIn.$isEnabled;
},
set isEnabled(value) {
if(VueWCPlugIn.$isEnabled = value) {
Object.keys(VueWCPlugIn.deferred).forEach(key => {
window.customElements.define(key, VueWCPlugIn.deferred[key]);
});... |
import { createStore, combineReducers } from 'redux';
const Router = {
_routes: {},
_store: null,
_state: {},
_listeners: {},
_initted: false,
add(name, _pattern, data) {
const pattern = this._toRegex(_pattern);
this._routes[name] = {
name,
origPattern: _pattern,
regexp: patter... |
import get from 'lodash/get';
import React from 'react';
import PropTypes from 'prop-types';
import { Field, reduxForm } from 'redux-form';
import {
FormattedMessage,
FormattedTime,
injectIntl,
intlShape
} from 'react-intl';
import moment from 'moment-timezone';
import {
Paneset,
Pane,
Button,
MultiColu... |
// one worker which steps forward, renders frames,
// and pushes RGB or RGBA into a (limited size) queue of buffers
const isDocument =
typeof window !== "undefined" && typeof window.document !== "undefined";
const context2DAttributes = {
antialias: true,
alpha: false,
desynchronized: true,
powerPreference: ... |
const React = require('react')
const Link = require('react-router').Link
const companyService = require('../services/companyservice')
const axios = require('axios')
const ErrorList = require('../components/errorlist.component.js')
const formatDate = require('../lib/date').formatDate
const InputText = require('../compon... |
const chalk = require( "chalk" );
const CharacterSet = require( "characterset" );
const WebServer = require( "./WebServer" );
const GlyphHangerWhitelist = require( "./GlyphHangerWhitelist" );
const GlyphHangerEnvironment = require( "./GlyphHangerEnvironment" );
const debug = require("debug")("glyphhanger");
class Glyp... |
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
'use strict';
var getMediaButton = document.querySelector('button#getMedia');
var createPeerCon... |
/**
* This module provides access to subsections of a multi-resolution tiled image
* at a desired resolution.
*
* Here's a quick overview of what I've determined about the structure of the
* images.
*
* Images a are represented in increasing resolution levels from 0 upwards.
* The dimensions of an image at a gi... |
//微信订阅号的API库
var crypto = require('crypto');
var _ = require('underscore');
var request = require('request');
var async = require('async');
var wechat = require('wechat-enterprise');
var appToken = "<PASSWORD>",
// sEncodingAESKey = "<KEY>",
// sCorpID = "wx3bd6f3aa75c0c7e7";
appid = "wx89f73281f44727ac"... |
var cspath = getMyPath();
var jsN = finds(cspath, '/', 2);
function finds(str, cha, num) {
var x = str.indexOf(cha);
for (var i = 0; i < num; i++) {
x = str.indexOf(cha, x + 1);
}
return x;
}
if (cspath.indexOf("http:") > -1 || cspath.indexOf("https:") > -1) {
var cspath = cspath.substr(js... |
import personTpl from '../templates/personTpl.js';
import * as util from '../modules/utils.js';
const _curSeason = Symbol('biosphereView.seasons');
const _seasons = Symbol('biosphereView.seasons');
const _template = Symbol('template');
const _personId = ($el) => $el.data('uuid');
export default class BiosphereView {... |
'use strict';
const fs = require('fs');
const path = require('path');
const w3utils = require('web3-utils');
const constants = {
BUILD_FOLDER: 'build',
CONTRACTS_FOLDER: 'contracts',
COMPILED_FOLDER: 'compiled',
FLATTENED_FOLDER: 'flattened',
AST_FOLDER: 'ast',
CONFIG_FILENAME: 'config.json',
SYNTHS_FILENAME:... |
var MZXGTotal = doc.getElementById("MZXGTotal"),
MZXGTotalPage = 0,
MZXGnumPerPage = doc.getElementById("MZXGnumPerPage"),
MZXGnumPer = 20,
MZXGassignPage = doc.getElementById("MZXGassignPage"),
MZXGconfirm = doc.getElementById("MZXGconfirm");
var MZXGpage = 1,
MZXGdataSource = [],
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.