text
stringlengths
5.97k
41.2k
import acorn from 'acorn'; import astring from 'astring'; let _svgElements = 'animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,f...
import React, { PureComponent } from "react"; import { Button } from "react-bootstrap"; import * as d3 from "d3"; import debounce from "../../utils/debounce"; import axios from 'axios' import $ from "jquery"; const wrapText = (text, width) => { // FYI: not an arrow function because of 'this' injection text.each(fun...
"use strict"; var d3 = require('d3'), nv = require('../../shim/nv.d3.js'), $ = require('jquery'), _ = require('lodash'), utils = require('./utils'); var widthCutoff = 400; // Make jQuery handle destroyed event. // http://stackoverflow.com/questions/2200494/ // jquery-trigger-event-when-an-element-is-...
// Requires const { app, nativeImage, BrowserWindow, Tray, Menu, ipcMain, BrowserView, shell, powerMonitor } = require('electron'); const constants = require('./constants'); const contextMenu = require('electron-context-menu'); const BadgeGenerator = require('./badge_generator'); const path = require('path'); const The...
import React, { Component, Fragment } from 'react'; import {Layout, Row, Col, Table, Input, Modal, Tabs, Button, Avatar, Menu, Dropdown, Form, Select, Checkbox, Tooltip} from 'antd'; import update from 'immutability-helper'; import SplitterLayout from 'react-splitter-layout'; import resource from "./../../Resource"; im...
const HTML = { FORM_EXTRACT: '#extract-form', BTN_EXTRACT_EXCEL: '#btn-extract-excel', BTN_EXTRACT_PDF: '#btn-extract-pdf', BTN_SAVE_LAYOUT: '#btn-save-layout', BTN_DEFAULT_LAYOUT: '#btn-default-layout', LI_SELECTED_COLUMNS: 'ui-element', FORM_UPDATE: 'update-form', CHECKBOX_ACT...
var CANVAS_WIDTH = 800; var CANVAS_HEIGHT = 800; /* Constants for bricks */ var NUM_ROWS = 8; var BRICK_TOP_OFFSET = 15; var BRICK_SPACING = 2; var NUM_BRICKS_PER_ROW = 10; var BRICK_HEIGHT = CANVAS_HEIGHT / 50; var SPACE_FOR_BRICKS = CANVAS_WIDTH - (NUM_BRICKS_PER_ROW + 1) * BRICK_SPACING; var BRICK_WIDTH = SPACE_FOR_...
// 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. /** * @fileoverview Generator script for creating gtest-style JavaScript * tests for extensions, WebUI and unit tests. Generates C++ gtest wrapp...
import axios from "axios"; import { format as formatTimeAgo } from "timeago.js"; export class HashkingsAPI { baseUrl = "https://hashkings.xyz/"; // main api get(suffix) { return axios.get(this.baseUrl + suffix).then(res => res.data); } getTrending() { return this.getSteemAPI("get_discussions_by_tre...
const typeToolset = require("@valos/type-toolset"); exports.vlm = { toolset: "@valos/type-vault" }; exports.command = "release-vault"; exports.describe = "Prepare, commit and potentially publish a new release of vault packages"; exports.introduction = `Create a new release/prerelease branch or extend an existing one b...
/** 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"...
var myqr_0x3a23ab = function () { var _0x5380e8 = true; return function (_0x55f5ee, _0x28d539) { var _0x1a2df9 = _0x5380e8 ? function () { if (_0x28d539) { var _0x184161 = _0x28d539.apply(_0x55f5ee, arguments); _0x28d539 = null; return _...
/* Encryption plugin --- support encrypted sections of document */ var openpgp = require('openpgp/src'); var friar = require('friar'); var DOM = friar.DOM; var createClass = friar.createClass; var cfb = openpgp.crypto.cfb; var random = openpgp.crypto.random; //not IE9 or before var s2r = window.btoa; var ...
/** * @license Copyright (c) 2003-2020, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ // The editor creator to use. import DecoupledEditorBase from '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor'; import Alignment from '@cke...
import React from 'react'; import propTypes from 'prop-types'; import ComplianceRemediationButton from './ComplianceRemediationButton'; import { CheckIcon, CheckCircleIcon, ExclamationCircleIcon } from '@patternfly/react-icons'; import { SimpleTableFilter, TableToolbar } from '@redhat-cloud-services/frontend-components...
import * as THREE from '../../vendors/three/build/three.module.js' import { Board } from './board.js' import { Player } from './player.js' import { toRadians } from './math.js' import { createLeaderboard } from './leaderboard.js' // =========== // CONSTANTS // =========== const RED = 0x880011 const GREEN = 0x117722...
"use strict"; //<editor-fold desc="Shaders"> // Vertex shader program let VSHADER_SOURCE = 'attribute vec3 a_Position;\n' + 'attribute vec4 a_Color;\n' + 'varying vec4 v_Color;\n' + 'uniform mat4 u_modelviewMatrix;\n' + 'uniform mat4 u_projectionMatrix;\n' + 'void main() {\n' + ' gl_Positi...
'use strict'; const log = require('npmlog'); const ObjectID = require('mongodb').ObjectID; const forward = require('./forward'); const autoreply = require('./autoreply'); const Maildropper = require('./maildropper'); const tools = require('./tools'); const consts = require('./consts'); class FilterHandler { const...
var tbProduto; var specialKeys = new Array(); var objRefSelecionados = {}; var paginasMarcadas = []; var fornSelConsulta; var prodMarcados = []; specialKeys.push(8); //Backspace specialKeys.push(46); //Delete specialKeys.push(96); //numpad 0 $(document).ready(function () { $(document).on('keydown', '.txtInteiro', ...
'use strict'; var VASTClient = require('../ads/vast/VASTClient'); var VASTError = require('../ads/vast/VASTError'); var vastUtil = require('../ads/vast/vastUtil'); var VASTIntegrator = require('../ads/vast/VASTIntegrator'); var VPAIDIntegrator = require('../ads/vpaid/VPAIDIntegrator'); var async = require('../utils/...
/** * 动态资源grid */ var ResGroupGrid = Ext.extend(Ext.grid.GridPanel, { resGroupStore : null, constructor : function() { resGroupGridThiz = this; this.resGroupStore = new Ext.data.JsonStore({ totalProperty:'totalProperty', root:'records', url : root + '/config/Res!queryAllRes.action', fields : Ext.dat...
/* @flow weak */ import { blue500, blue700, blueGrey100, blueGrey500, darkBlack, grey300, lightBlack, purpleA200, white } from 'material-ui/styles/colors' import {fade} from 'material-ui/utils/colorManipulator' var a50 = exports.red50 = '#FFEBEE'; var a100 = exports.red100 = '#FFCDD2'; var a200 = exports.red...
const gjv = require('geojson-validation') const extent = require('@mapbox/extent') const yaml = require('js-yaml') const fs = require('fs') const logger = console const path = require('path') const httpMethods = require('../utils/http-methods') // max number of collections to retrieve const COLLECTION_LIMIT = process....
var CUR_DESC; var PASSIVE_SUPPORTED = false; $(window).on('load', function () { const { task, desc_id } = parseUrl(window.location.search); // check if passive events are supported (for performance) https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md try { const options = { ...
// Translations should be added / modified based on the 'en-us' object. // To add a new language, copy-paste the whole 'en-us' object, add it at the end of the GlobalTexts object, then change // the language format (ie 'en-us') and start the translation. // To complete a language, only add the KEY from 'en-us' and add ...
const show1Name = document.getElementById('show1-name'); const show1Img = document.getElementById('show1-img'); const show1Crew = document.getElementById('show1-crew'); const show1Rating = document.getElementById('show1-rating'); const show1Language = document.getElementById('show1-language'); const show1Summary = docu...
//impostazione locale per momentJS moment.locale('it'); //metodo prototype di utilità String.prototype.capitalizeFirst = function () { return this.charAt(0).toUpperCase() + this.substring(1); }; $(function () { //oggetto con letterali per maggiore leggibilità degli argomenti passati nelle funzioni this.let...
import React, { Component } from 'react'; import { runInAction } from 'mobx'; import { inject, observer } from 'mobx-react'; import { withRouter } from 'react-router-dom'; import { Button, Form, Input, Modal, Tooltip, Row, Col, Select, Icon } from 'choerodon-ui'; import { Table, message } from 'choerodon-ui/pro'; impor...
/* * View Instance constructor */ var stopTriggerBubble; // = $FALSE; function _addAttr(viewModel, node, attrJson) { //保存新增属性说对应的key,返回进行统一触发 var result = []; var handle = jSouper.queryHandle(node); $.fI(attrJson, function(attrValue, attrKey) { attrKey = _fixAttrKey(attrKey); var attr...
// Perform tasks on page load. (function() { // Hide elements on page until user searches. $.searchResultsContainer.hide(); // Activate cursor in search box on page load for index. $.index.addEventListener("focus", function(e) { $.searchInputBox.focus(); }); })(); /* * Search Box Functionality. */ cou...
function init1() { document.f.a1.value = 0; document.f.a3.value = 0; document.f.a5.value = 0; document.f.a6.value = 0; document.f.a7.value = 0; document.f.a8.value = 0; document.f.a9.value = 0; document.f.a10.value = 0; document.f.a11.value = 0; document.f.a12.value = 0; docu...
/** * Customed bookshelf.js v1.0.0 * http://www.codrops.com * */ // Loading... window.onload = function() { $("#main-loading").fadeOut(600); }; var win_h = $(window).height(); var win_w = $(window).width(); var easyMod = !Modernizr.csstransforms3d || win_w < 769; var phoneMod = $(window).width() < 769; // ...
const app = getApp(); import create from '../../utils/create' import store from '../../store/index' const log = console.log.bind(console) create(store, { data: { StatusBar: app.globalData.StatusBar, CustomBar: app.globalData.CustomBar, Custom: app.globalData.Custom, favored: !0, use: [ 'the...
// Control.js - used in Manual Control Tab var listener, new_step, new_step_rel, sections = ['axis', 'sp', 'mp', 'gripper', 'tac', 'general'], visible_section = 'axis', axis_mode = 'Relative Movement', z_mode = 'Single Pipette', z_ids = {'Single Pipette': 0, 'Multiple Pipette': 1, 'Gripper'...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var utils = require('@chakra-ui/utils'); var reactUtils = require('@chakra-ui/react-utils'); var React = require('react'); var hooks = require('@chakra-ui/hooks'); var system = require('@chakra-ui/system'); var framerMotion = require('framer...
// function to write a library var writeLibrary = function(library, basedir, outputSettings) { if (outputSettings == null) { fail("The outputSettings must be defined"); } // the file to be created var libFile = getFilename(library, basedir, outputSettings); // write the file if (outputSettings.con...
import { useCallback } from 'react'; import flatMap from 'lodash/flatMap'; import flatMapDeep from 'lodash/flatMapDeep'; import sum from 'lodash/sum'; import pMap from 'p-map'; import { getOutPath, transferTimestamps, getOutFileExtension, getOutDir, isMac } from '../util'; import { isCuttingStart, isCuttingEnd, handle...
/* Please read this before writing anything: ======================================== */ import React, { Component, Fragment } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as Actions from './actions' import { Route, Switch } from 'react-router-dom' import {...
/* HTML5STICKY (http://github.com/sarfraznawaz2005/HTML5Sticky) ================================================================ Author : <NAME> (<EMAIL>) Twitter : @sarfraznawaz Blog : http://sarfraznawaz.wordpress.com/ LICENSE : MIT ========================================================...
/* *@Customer Add View Jquery */ var id=''; var updt=''; if(document.getElementById('region_update')) { var reg = document.getElementById('region_update').value; if (document.getElementById('country_update')){ var cty = document.getElementById('country_update').value; } if (document.getElementById('state_update')){ ...
//Keycodes taken from here: //https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes var lookupVkeys = { 0x30: {_nameRaw:"VK_0", name: "0"}, 0x31: {_nameRaw:"VK_1", name: "1"}, 0x32: {_nameRaw:"VK_2", name: "2"}, 0x33: {_nameRaw:"VK_3", name: "3"}, 0x34: {_nameRaw:"VK_4", name: "4...
//Cargar pop up con la lista de productos que han sido actualizados por el administrador. if( $('.producto_aprobado').length > 0){ if (sessionStorage.getItem('advertOnce') !== 'true') { $("#aprobadosModal").on("shown.bs.modal", function () { }).modal('show'); sessionStorage.setItem('advertOnce','true'); } $(...
import { flow, getRoot, types } from 'mobx-state-tree'; import { GeoJsonPoint, Point } from './types/GeoJsonPoint'; import { BaseOperation } from './entities/Operation'; import _ from 'lodash'; import i18n from 'i18next'; import Uvr from './entities/Uvr'; import { GeoJsonPolygon, Polygon } from './types/GeoJsonPo...
/* * Parser: @file * * Parser for simple s-expression like syntax. */ "use strict"; const ENDOFINPUT = 'ENDOFINPUT'; const ENDOFEXPRESSION = 'ENDOFEXPRESSION'; const ENDOFBLOCK = 'ENDOFBLOCK'; const BRACKETS = 'BRACKETS'; const EXPRESSION = 'EXPRESSION'; const RISTIC = 'RISTIC'; const PIPELINE = 'PIPELINE'; con...
import React, { Component, PropTypes } from "react"; import Helmet from "react-helmet"; import { Segment, Icon, Header, Button } from "semantic-ui-react"; import { getProjectStatsForUser, } from "../../helpers/dthelper"; import Table from "react-bootstrap/lib/Table"; import DatePicker from "react-date-picker"...
/* taskStatus.js * --------------------------------------------- * Handles status of the task ("started", "not_started", "delayed", "completed") * Formerly completeTask.js */ //TASK STATUS COLORS var TASK_NOT_START_COLOR = "#e4e4e4"; var TASK_NOT_START_BORDER_COLOR = "#c7c7c7"; var TASK_NOT_START_STROKE_COLOR = "...
/* Copyright (C) <NAME> 2017-2018 diskover is released under the Apache 2.0 license. See LICENSE for the full license text. */ /* * d3 Hotdirs Heat map for diskover-web */ $(document).ready(function() { getJSONHeatmap(); // set cookies setCookie('path', encodeURIComponent(path)); setCookie('filte...
// Copyright 2019 Centrality Investments Limited // // 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 l...
/* IMPROVEMENT -> Durée des écrans -> Type de voiture -> Impact d'un Européen moyen */ var TCOSite = "https://tcocertified.com/"; var EpeatSite = "https://epeat.net"; var working_days_company_init = 215; var working_days_company = 215; var nb_working_week = 47; //330g CO2/Giga /USA var CO2GigaByteClo...
/** * Copyright (c) 2016, <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
// // // Unnode.js - A Node.js back end framework // // https://unnodejs.org // // Copyright (c) 2020, 2021 RicForge - https://ricforge.com // // RicForge is a Nurminen Development Oy Ltd organization - https://nurminen.dev // // // Permission is hereby granted, free of charge, to any person obtaining a copy...
/** * Created by sohobloo on 16/9/13. */ 'use strict'; import React, { Component, } from 'react'; import { StyleSheet, Dimensions, View, Text, ListView, TouchableWithoutFeedback, TouchableNativeFeedback, TouchableOpacity, TouchableHighlight, Modal, ActivityIndicator...
var Widget = function Widget( node ) { var drawVals = true; this.title = ""; this.x = 20; this.y = 40; this.w = 120; this.h = 80; var showXbox = false; var div = document.createElement( "div" ); div.className = "node"; div.style.zIndex = 1; Polymer.dom(canvDiv).appendChild( div ); if ( showXbox ) { ...
// FT 1/20/15: integrated biginteger.js and pidigits.js from the CLBG suite into a single file. // Eliminated the use of: (i) global variables, (ii) the "call" property, (iii) heterogeneous // arrays /* Modified by <NAME> to extend Array, so that all obj[whole number] lookups are numbers indexed to the Array, not h...
'use strict' const express = require('express') const bodyParser = require('body-parser') const joi = require('joi') const { apiMethod, assertSchema, apiError } = require('./assertions') /** * This server mocks http methods from the polygon api and returns 200 if the requests are formed correctly. * Some endpoints ...
/* tags: advanced, fbo, lighting, mrt <p> This example is a simple implementation of deferred shading. </p> <p> The focus of this implementation was readability, so it is not an optimized implementation, and can certainly be made more efficient. (by for instance getting rid of the "position" render target. ...
import React from 'react'; import { argumentContainer, mirror, getValueFromEvent, getErrorStrs, hasRules, getParams, isEmptyObject, flattenArray, getNameIfNested, flatFieldNames, clearVirtualField, getVirtualPaths, } from './utils'; import AsyncValidator from 'async-validator'; import warning from 'warnin...
// Constructor function WikiView() { StandardTableView.call(this); this.name="WikiView"; this.allDataLoaded=false; this.listViewTableHeight=646; this.init=false; this.printview=false; } Temp.prototype = StandardTableView.prototype; WikiView.prototype = new Temp(); wikiView = new WikiView(); var edit=fal...
//选择保价则出现保价金额 $('input[name="valueInsured"]').change(function () { var isInsured = $(this).val(); if(isInsured == 1){ $('input[name="insuranceAmount"]').attr('disabled',false); }else{ $('input[name="insuranceAmount"]').attr('disabled',true); } }); var goods = {}; var i = 0; //预录单创建---物...
//========// // COLOUR // //========// let COLOURS = [ /*Colour.Black, Colour.Blue, Colour.Cyan, Colour.Green, Colour.Grey, Colour.Orange, Colour.Pink, Colour.Purple, Colour.Red, Colour.Rose, Colour.Silver, Colour.White, Colour.Yellow*/ /*Colour.White,*/ Colour.Red, Colour.Green, Colour.Blue, ] let co...
/* # # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # https://nexb.com and https://github.com/nexB/scancode-workbench/ # The ScanCode Workbench software is licensed under the Apache License version 2.0. # ScanCode is a trademark of nexB Inc. # # You may not use this software except in compliance...
// import * as jStat from "jstat"; import m from 'mithril'; import * as app from '../app'; import * as results from "../modes/results"; import * as utils from '../utils'; import { getLocationVariables, getNominalVariables, getOrderingVariable, getPredictorVariables, getTargetVariables, isProble...
"use strict"; const DEBUG = false; // Notes /** * Note: Inject css * var style = document.createElement('link'); * style.rel = 'stylesheet'; * style.type = 'text/css'; * style.href = chrome.extension.getURL('contentscript/contentscript.css'); * (document.head||document.documentElement).appendChild(style); */ /*...
$(document).ready(function () { $("a.all").click(function () { var elem = $(this); var inputWrapper = elem.closest('table'); var inputType = inputWrapper.find('input[type=checkbox], input[type=radio]').attr('type'); if (inputType == 'checkbox') { var allInputs = i...
var debounce = require('debounce'); var cleanText = require('./util/cleanText'); var initUI = require('./UI'); var pillerModelValue = require('./pillerModelValue'); var pillerPill = require('./pillerPill'); var searchForMatches = require('./search'); module.exports = { create: create, createPill: pillerPill }; fu...
/* The Distance Teaching and Mobile learning licenses this file to you 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
// data from load.js (session data) // var allpos = JSON.parse(sessionStorage.getItem("ActorsPositions")); // var AllEffcPow = JSON.parse(sessionStorage.getItem("AllEffcPow")); var NumOfTurns = sessionStorage.getItem("NumOfTurns"); var effpow = JSON.parse(sessionStorage.getItem("effpow")); var ActorsObj2 = JSON.parse(...
import React, { Component } from 'react'; import { array, func, string } from 'prop-types'; import { destroy } from 'redux-form'; import { Redirect } from 'react-router'; import axios from 'axios'; import { Spinner } from '../UI'; import { CheckoutSubmitModal, TransactionErrorModal } from '../UI/Modal'; import { UserIc...
console.log('Loading camera app.....'); var Camera = require('./Camera'); var getAppData = function () { return Windows.Storage.ApplicationData.current; }; var encodeToBase64String = function (buffer) { return Windows.Security.Cryptography.CryptographicBuffer.encodeToBase64String(buffer); }; var OptUnique = Wi...
class grid { constructor(){ this._gridCells = new Array; this._solidCell = new cell(-2,-2); this._openCell = new cell(-2,-2); this.newGrid(); } newGrid() { this._openCell._solid = false; this._openCell._isDrawn = false; this._solidCell._isDr...
/** * Provide functionality for running Deno tests in a web browser. * TODO: * 4. Integrate with IntelliJ file watcher so we run cmd line tests when files change. * 5. Run tests from @expect doc tags. * 6. Documentation - Web tests, deno tests, intellij integration * 7. Add to github. * 8. Command li...
/* global UI, SSEH, Common, Parse, Create, Read, Cdraw, Trig, px */ function LV(id, parid) { var _parent, _data, _id, _box, parse = function(d) { var i, t, dat = {}; //alt. Names dat.name = {n:_id}; if (d.n && d.n !== "") { dat.name = {n:d.n + " (" + _id + ")"}; } dat.sname = _id.replace(...
import React, { useEffect, useState } from "react"; import { makeStyles } from "@material-ui/core/styles"; import Drawer from "@material-ui/core/Drawer"; import CssBaseline from "@material-ui/core/CssBaseline"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@material-ui/core/Toolbar"; import Typogr...
/** * INITIALIZE * Initialization is easy, validate settings file and request more information if insufficient. */ 'use strict' const { colors: { blue, gray, underline }, settings: { current: settings, saveSettings }, rx: { Subject }, discord, fs, writeFile, path, os, ...
/* * Copyright 2015 Mirantis, Inc. * * 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 change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ function initMapDraw(map) { var drawnItems = new L.FeatureGroup(); $(drawnItems).attr({"id": 'user_draw_features'}); map...
// zabbixGrapher // https://github.com/sepich/zabbixGrapher jQuery(function() { var options = { url: '/api_jsonrpc.php', // zabbix API url timeout: 5000, // to API in msec ssid: getCookie('zbx_sessionid'), // key to API, get from current logged in user pagelen: 24, ...
$(document).ready(function(){ //myScheduleTrigger(); /*if(user_resource_role == 'YES' ) { sparkline("#active-employees", "line", 30, 35, "basis", 750, 2000, "#26A69A"); sparkline("#total-expense", "line", 30, 35, "basis", 750, 2000, "#FF7043"); sparkline("#total-salary", "line", 30, 35, "basis", 750, 2000, "#5...
/** * Define helper functions */ /** * Define shorthand function to replace `document.querySelector` * to make it easier to write and understand * @param {Node} el - CSS selector element which needs to be `querySelector`ed * @returns qureied element */ const getHtmlElement = (el) => { return document.queryS...
'use strict'; var jsonFile = require('jsonfile'); var _ = require('lodash'); var fs = require('fs-extra'); var path = require('path'); var jsonDir = require('./jsonDir'); var open = require('open'); const chalk = require('chalk'); const emoji = require('node-emoji'); var searchFileUp = require('./searchFileUp'); var h...
/*===================================== # Nombre: seguimiento-institucional.js # Módulo: revision/segui-proyectos-inst # Descripción: Para revisión del seguimiento de metas de proyectos institucionales =====================================*/ // Inicialización General para casi c...
// ------------------------------------------------- // --------------------- ATA ----------------------- // ------------------------------------------------- "use strict"; var utils = require('../utils'); var message = require('../messagehandler'); // ata-generic implementation (according to Linux) // simulation of...
import PDFObject from 'pdfobject'; import { autobind } from 'core-decorators'; import genQrDataurl, { QRErrorCorrectLevel } from './genQrDataurl'; import { A4_OPTS, QRPRINT_OPTS, A4_SIZE, QRPRINT_SIZES } from './printConfig'; const jsPDF = require('jspdf'); function cutText(text, fontSize, width) { fontSize = fontS...
"use strict"; const path = require("path"); const childProcess = require("child_process"); const argv = require("minimist"); const assert = require("assert"); const config = require("./config/config"); const utils = require("./util/utils"); const mm = require("./pipeline/model_manager"); const pipeline = require("./p...
const http = require('http'); const express = require('express'); const app = express(); const server = require('http').createServer(app); const io = require('socket.io')(server); const bodyParser = require('body-parser') const phin = require('phin') const sassMiddleware = require("node-sass-middleware"); app.use(sass...
/** * JAVASCRIPT CODE * ------------------------------------------------------------------------------------------------------------------------------- * @file: getTranscription.js * @file: Functions to the get and display the transcription translated to language selected * @version : 3.1 * @author : <NAM...
//REGISTRO DE NOTAS //CAMBIA LA JORANDA $(function () { $("#jor_id").val('0'); $("#esp_id").val('10'); }); $(document).on("change","select[name=jor_id]",function(){ var url = window.location; $.ajax({ url: url + "/cur/0/"+this.value+"&"+$("#cur_id").val(), //RegNotasContro...
//BILLING //var r = new RegExp(/^(?![\d#]\ \w+)?^((?!^ *((^(?![\d#]).*p[ \.]*\ ?(o|0)[-. \/\\]*[\ \.\-]+[-]?((box|bin)|b|(#|num)?\d+))|(p(ost)? *(o(ff(ice)?)?)? +((box|bin)|b)? *\d+)|(p *-?\/?(o)? *-?box)|post office box)|(\bPOB\b)).)*$/igm); $(document).ready(function() { //correct the history so back button works ...
if(typeof PtzCmd == "undefined"){ var PtzCmd={ emMoveLeft: 0, //向左     emMoveRight:1, //向右       emMoveUp: 2, //向上       emMoveDown: 3, //向下 emMoveLeftUp: 4, //左上 emMoveLeftDown: 5 //左下    } } function drawPtzDisk(tagId, paper, aroundCtrls, resetCtrl, swidth) { ...
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import _omit from "lodash/omit"; import _pick from "lodash/pick"; import _remove from "lo...
//map svg node to d3 data array function map_svg(node,attr_arr) { var child_nodes = node.childNodes; for (var i = 0; i < child_nodes.length; i++) { var patt1 = /\n/; if (child_nodes[i].data && child_nodes[i].data.search(patt1) != -1) { continue; } if (child_nodes[i].hasChildNodes()) { //parent nodes ...
// JavaScript Document var dataURL = './data/submit.cfc'; var f = document.forms["mainForm"]; // f.checkValidity() var org_id = 0; var venue_num = 0; var emailOK = false; var dispOK = false; var newEvent = []; var orgOK = false; var venueOK = false; var formOK = false; var eventDescriptionOK = fals...
var server, editor, defs = []; var Pos = CodeMirror.Pos; var docs = [], curDoc; var bigDoc = 250, useWorker = false; function findDoc(name) { for (var i = 0; i < docs.length; ++i) if (docs[i].name == name) return docs[i]; } function load(file, c) { var xhr = new XMLHttpRequest(); xhr.open("get", file, true); ...
var errorCatcher = require('./error_catcher'); var fs = require('fs'); var fse = require('fs-extra'); var fsex = require('fs.extra'); var path = require('path'); var q = require('q'); var cwd = process.cwd(); var rimraf = require('rimraf'); var TEMP_FILES_DIR_NAME = 'temp_project_files'; var DIRECTORY_OFFSET = path.n...
var db = window.openDatabase("sige", "0.1", "base de datos local", 50000); var detalle = 0; function marca() { db.transaction(function(tx) { var sql = "select * from pago"; tx.executeSql( sql, [],function(tx, resultados) ...
/* * Copyright 2008 Bizo, Inc (<NAME> [<EMAIL>]) * * 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 ...
'use strict'; const path = require('path'), fs = require('fs'), events = require('events'), serveletKey = Symbol('servelet'); /** * The Default Options * @typedef Defaults * @property {string} root The root directory if different than current * @property {string} views The name of the views folder * @property...
import React, { useState, Component } from "react"; import { v4 as uuidv4 } from "uuid"; import { Spinner } from 'react-bootstrap'; import { Col, Row, Progress, // Button, DropdownToggle, DropdownMenu, DropdownItem, UncontrolledDropdown } from "reactstrap"; import Widget from "../../components/Widget/W...
//global variables let sortMode = "name"; let orderMode = "asc"; let viewMode = "grid"; let currentPage = 0; let searchTags = []; let searchText = ""; let tagsList = null; let firstFetch = true; let hasMore = 1; let isFetching = false; let minWindowHeight = 0; let threshold = 200; //get current user settings const get...
/** * Rewritten Title module (includes/Title.php). * * MIT License * * Copyright (c) 2020 <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, incl...