text
stringlengths
3.22k
29.5k
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ const axios = require('axios') const fs = require('fs') const bgGreen = "\x1b[32m" const reset = "\x1b[0m" const blue = '\033[34m' const vcType = "VerifiableCredential" // options based on various vendor endpoints...
import React from 'react'; import {useDispatch, useSelector} from 'react-redux'; import _ from 'lodash'; import moment from 'moment'; import PropTypes from 'prop-types'; import {Icon, Table} from 'semantic-ui-react'; import {setAnswer} from '../../actions'; import { getAnswers, getNewdleTimeslots, getUserTimezone...
var play = true; var doSave = false; var randohash = Math.round((new Date()).getTime() / 1000); var canvas; $( document ).ready(function() { var shareUrl = window.location.href; if (location.hash.length == 0) { shareUrl = window.location.href + '#' + randohash; } $("#share").attr("data-clipboard-text", sh...
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2015 Manapaho. 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 ReactDOM from 'react-dom'; import Relay from 'r...
import { useStaticQuery, graphql, Link } from 'gatsby'; import React, { useState } from 'react'; import { useSpring, animated } from 'react-spring'; import styled from 'styled-components'; import SubMenuButton from './sub-menu-button'; import { FaInstagram } from 'react-icons/fa'; const mobileNavBreakPoint = `890px`; ...
const landing_page_puzzlepiece_container = 'landing-page-puzzlepiece-container'; const drag_to_start_story_div = 'drag-to-start-story-div'; /** * Enable drag and drop using the Dragula library */ const draggables = dragula([ /** * Adding all the elements to the same dragula might actually allow * any p...
'use strict'; var path = require('path'), fs = require('fs'), os = require('os'); var isExternal = require('./is-external'), logger = require('../../../../logger'), log = logger.child({component: 'external-resolver'}); var PATHS = {}, levelSet; module.exports = resolve; function resolve (x, y, paths, done)...
import React, {Fragment, Component} from 'react' import socket from '../socket' import Axios from 'axios' import {connect} from 'react-redux' import loadFunction from '../utils/loadFunction' import createAndTest from '../utils/createAndTest' import AceEditor from 'react-ace' import 'brace/mode/javascript' import 'brace...
const {DateTime} = require('luxon'); const {toArray} = require('lodash'); module.exports = { render({payload, env: {dom}, options = {}}) { const figure = dom.createElement('figure'); figure.setAttribute('class', 'kg-card kg-embed-card'); let html = payload.html; const tweetData = ...
/** * * Copyright 2018 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
// dimensions of the SVG viewport var w = 600; var h = 400; var r = 3; // TODO change domain and range according to some configuration // scale for the second Chern number var c2 = d3.scale.linear() .domain([-20, 80]) .range([0, w]); // scale for the first Chern number var c12 = d3.scale.linear() .domain([-30,...
// Imports const Discord = require('discord.js'); //const fs = require('fs'); const { client } = require('../constants.js'); const CONSTANTS = require('../constants.js'); module.exports = { // Slash Command's Name, MUST BE LOWERCASE AND NO SPACES name: 'rolemenu', // Slash Command's description descrip...
var categoryVehicleSelected = "muscle"; var vehicleSelected = {}; var isEnableTestDrive = false; var dataVehicles = []; var handlingVehicle = []; var selectedColor = "primary"; window.addEventListener('message', function(event) { var data = event.data; if (event.data.type == "display") { $("body"...
/* SPDX-License-Identifier: Apache-2.0 */ 'use strict'; const Service = require('egg').Service; const qs = require('qs'); const shell = require('shelljs'); const fs = require('fs-extra'); const rimraf = require('rimraf'); const moment = require('moment'); class ChainService extends Service { async list() { con...
const express = require('express'); const common = require('../../lib/common'); const { indexOrders } = require('../../lib/indexing'); const paypal = require('paypal-rest-sdk'); const router = express.Router(); /** * * @param {http session} session - current session * @param {paypal configuration} conf ...
'use strict' const assert = require('assert') const PeerId = require('peer-id') const dagCBOR = require('ipld-dag-cbor') const CID = require('cids') const config = require('../config') const eventLinkTypes = require('../messages/protobuffers').TopicDescriptor .MetaData.EventLinking const { linkUnmarshalling, linkMa...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const services_1 = require("./../services"); const path = require("path"); const models_1 = require("./../models"); const dir = path.dirname(require.main.filename); class ResourceManager { static loadTileInfo() { return new Promise...
/* * ArgonMS MapleStory server emulator written in Java * Copyright (C) 2011-2013 GoldenKevin * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, ...
const checkMobile = { mobile: function () { return navigator.userAgent.match(/Mobile/i); }, Android: function () { return navigator.userAgent.match(/Android/i); }, BlackBerry: function () { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function () { return navigator.userAgent.ma...
const fs = require("fs"); const helper = require("/app/helper"); const CronJob = require("cron").CronJob; // game storage const group_sessions = {}; const user_sessions = {}; // Update session const updateSessionJob = new CronJob("* * * * * *", function() { for (let key in group_sessions) { if (group_sessions[k...
const vscode = require('vscode'); const App = require('../tree/App'); const Group = require('../tree/Group') const Item = require('../tree/Item') const Code = require('../tree/Code') const Core = require('../Core'); const Meta = require('../Meta'); const path = require('path') const mkdirp = require('mkdirp') const d...
// import a file reader const fs = require('fs') const dexie = require('dexie') const moment = require('moment') // for creating the hash of the artist name, album and song to make the ID const sha1 = require('sha1') const parse = require('../utils/parser.js') const timeMinutePrecision = 'MM/DD/YY HH:mm' const timeDay...
import React from 'react'; import Block, {Bit} from './block'; import Header from './header'; const edit = (block, cb) => (index, newVal) => { block[index] = newVal; cb(); }; const Color = ({children, color}) => ( <span> {children} <style jsx>{` color: ${color || 'auto'}; font-weight: ${colo...
import React, { Component } from 'react'; import {Router, Route, Link, RouteHandler, Redirect} from 'react-router'; import {Select} from 'react-select'; import 'react-select/dist/react-select.css'; class SnapshotsMain extends Component { constructor(props) { super(props); this.state = { photos: [], ...
import StorageTypePostgres from './StorageTypePostgres'; import _ from 'lodash'; import toposort from 'toposort'; import { generateIndexName } from './util'; import { isEntity, isViewEntity, isShadowEntity, INDEX_UNIQUE, INDEX_GENERIC, mapOverProperties, isComplexDataType, isConfiguration, } from 'shyf...
"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...
$(function(){ $("#user_manage_btn").click(function(){ $("#userManage").show(); $("#bookManage").hide(); }); $("#books_manage_btn").click(function(){ $("#userManage").hide(); $("#bookManage").show(); }); //添加学生信息功能初始化 stuAddHandle(); //学生搜索 $("#stu_search").click(function(){ if(!isAddStu()){ var ...
// JScript File function ServerFeeding(args, context) { if (args != ''){ var result = args.substring(0,args.indexOf('**')) //Displaying the result on to div var ss = document.getElementById("resultmiles"); ss.style.display = ""; //making the div visibility ...
// @TODO: YOUR CODE HERE! var svgWidth = 700; var svgHeight = 500; var chartMargin = { top:20, right:40, bottom: 60, left: 100 }; var chartWidth = svgWidth - chartMargin.left - chartMargin.right; var chartHeight = svgHeight - chartMargin.top - chartMargin.bottom; var svg = d3.select("#scatter") ...
import { musicToTime, uuidv4, } from '../app/util.js'; const data = { camera: { speed: 0, position: [0, 2, 10], target: [0, 0, 0], }, resources: [ { id: 'leidseplein1', url: 'frames/leidseplein1/frame_#.png', frames: 6303, fps: 30, width: 640, height: 480, ...
'use strict'; var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault'); Object.defineProperty(exports, '__esModule', { value: true, }); exports.KoconutDeprecation = exports.FontStyle = exports.FontBackgroundColour = void 0; var _slicedToArray2 = _interopRequireDefault( require...
$(document).ready(function() { $("#messages #menu-icon-right").click(function() { /** * Code the Inside of the messageBox with html for selecting a player to chat with * Each player namefield is being created in a for-loop which attaches the player-id * to the corresponding button. * @type {String} *...
"use strict"; var fs = require('fs'), EventEmitter = require('events').EventEmitter, path = require('path'), rng = require('crypto').rng, q = require('kew'), through ...
// global call back functions b2World.BeginContactBody = function(contactPtr) { if (world.listener.BeginContactBody === undefined) { return; } var contact = new b2Contact(contactPtr); world.listener.BeginContactBody(contact); }; b2World.EndContactBody = function(contactPtr) { if (world.listener.EndContac...
import { __decorate } from "tslib"; import esriRequest from '@arcgis/core/request'; import { property, subclass } from '@arcgis/core/core/accessorSupport/decorators'; import { storeNode, tsx } from '@arcgis/core/widgets/support/widget'; import Widget from '@arcgis/core/widgets/Widget'; import PopupTemplate from '@arcgi...
import * as reselect from 'reselect'; import createCachedSelectorAsDefault, { createCachedSelector, FlatObjectCache, LruObjectCache, } from '../../src/index'; const createSelectorSpy = jest.spyOn(reselect, 'createSelector'); const consoleWarnSpy = jest .spyOn(global.console, 'warn') .mockImplementation(() =>...
import { spawn, fork, call, take } from 'redux-saga/effects' import { eventChannel } from 'redux-saga' import { createActions } from './createActions' import { createSelector, createStructuredSelector } from 'reselect' import { registerRecord } from './registry' import * as generate from './reducerGenerators' import {...
/** * Main manager class of application. Contains all parts of construct app * like World, Client, Console etc... Runs infinite loop inside run() * method. You may run and stop the manager as many times you need. * Manager runs/stops and destroys in a asynchronous way. So you may set * a callback to these methods,...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _range = _interopRequireDefault(require("../../core/range")); /*! * V4Fire Core * https://github.com/V4Fire/Core * * Released under the MIT license * https://github.com/V4Fire/Core/blob/master/LICENSE */ des...
import React from 'react'; import PropTypes from 'prop-types'; import { // Draft, Editor, EditorState, // ContentState, CompositeDecorator, convertFromRaw, convertToRaw, KeyBindingUtil, getDefaultKeyBinding, Modifier } from 'draft-js'; import Word from './Word'; import WrapperBlock from './Wrapper...
var async = require('async'); var _ = require('underscore'); var noop = function(){}; var logPrefix = '[nodebb-plugin-import-rpa]'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var UserSchema = require('./models/user'); var ForumSchema = require('./models/forum'); var User; var Forum; (function...
import { Checker, BaseInterface, Enum } from './index.js'; import MyInterface from "./tests/MyInterface.interface.js"; const tc = new Checker(); const { multi, Interface, Strict, type, as, is } = tc; const string_ = ''; const number_ = 2; const boolean_ = true; const symbol_ = Symbol('test'); const function_ = functio...
import { generateGetterSetters } from 'muze-utils'; import localOptions from './local-options'; import { SimpleGroup } from '../simple-group'; import { MatrixResolver, findInGroup, getEncoder } from '../group-helper'; import { createUnitState, initializeGlobalState, setMatrixInstances, creat...
/* establish global variables for ESLint */ /* global $ document jQuery */ import $ from 'jquery'; import jQuery from 'jquery'; // import custom styles for project import './index.scss'; // Placeholder for currentGame object let currentGame; // Game object constructor for game initialization const Game = function c...
function clone(source) { let target = null let type = Object.prototype.toString.call(source) // 问题代码 // for(var key in source) { // if(source.hasOwnProperty(key)) { // if(typeof source[key] === 'object') { // target[key] = clone(source[key]) // } else { // target[key] = source ...
const formatTime = date => { const year = date.getFullYear(); const month = date.getMonth() + 1; const day = date.getDate(); const hour = date.getHours(); const minute = date.getMinutes(); const second = date.getSeconds(); return ( [year, month, day].map(formatNumber).join("/") + " " + [hour,...
/* eslint-disable */ const Connection = require("tedious").Connection; const Request = require("tedious").Request; const {ipcMain} = require('electron'); const{SendIt} = require('./mail'); const config = { server:'192.168.10.4', authentication:{ type:'default', options:{ ...
//****************************************************************************************** // Copyright (C) 2019 FRC Team 1736 Robot Casserole - www.robotcasserole.org //****************************************************************************************** // // This software is released under the MIT Licence - ...
console.log("[content.js] - Translator4.3"); const API_KEY = "", XHR = new XMLHttpRequest(); XHR.withCredentials = true; var canTranslate, reqFinished, targetLanguage = 'en', sourceLanguage = '', isAutodetectionEnabled = true, isLastSent, [translatedBlocks, detectedBlocks, coords] = [[], [], []]; // const bub...
import React, { useEffect, useState } from "react"; import { AppBar, IconButton, Toolbar, Typography, Button, TextField, Container, Fab, Modal, } from "@material-ui/core"; import SearchIcon from "@material-ui/icons/Search"; import AddIcon from "@material-ui/icons/Add"; import AccountCircleRoundedIcon ...
var z = 20, deskW = 2.5, deskH = 4, desks = [], mode = 0, cx = 0, cy = 0, addArmed = false, mx, my, ox, oy, dragV = 0, sel = -1, od; document.getElementById('scale').style.width = 6 * z; function saveDesksToDB() { var teacherId = document.getElementById('tea...
var game = new Phaser.Game(1280, 768, Phaser.AUTO, '', { preload: preload, create: create, update: update }); var assets = [ 'elephant', 'giraffe', 'hippo', 'monkey', 'panda', 'parrot', 'penguin', 'pig', 'rabbit', 'snake' ]; var jolly = 'parrot'; ...
import NBA from 'nba'; function barchart() { // NBA.findBy("<NAME>") // console.dir(NBA); // let lebron = NBA.playerIdFromName('<NAME>'); // // console.log(lebron) // NBA.stats.playerInfo({ PlayerID: lebron }).then(console.log); var margin = { left: 100, right: 20, top: 280, bottom: 110 }; ...
"use strict"; var Q = require('q'); var _ = require('lodash'); var winston = require('winston'); var cssParser = require('parserlib').css; var cheerio = require('cheerio'); var ParsedStyleSheet = require('./ParsedStyleSheet'); var preprocessor = require('./Preprocessor'); var util = require('./Util'); // This file ...
// completedValue tracks places identified through autocomplete. let completedValue; // selectedValue tracks refined places (i.e. in case of an autocompleted street, selectedValue tracks house numbers). let selectedValue; // showResult displays the autocompleted / selected address above the simple input field or type...
/** * Schema representing Patient Visit. * The PatientVisit schema stores the all the detail such as department, doctor, payor etc of each OPD or IP visit of the patient. * See {@tutorial patient-tutorial} for an overview. * * @module PatientVisit */ // import the necessary modules var mongoose = require('mongoos...
import React, { useEffect } from 'react' import PropTypes from 'prop-types' import Link from 'next/link' import { useRouter } from 'next/router' import { useAutoplay } from '@/components/context/autoplayContext' import { IconBtn, ToggleIconBtn, ToggleStateIconBtn } from '@/components/ui/Buttons' import { SingleMeme } f...
const puppeteer = require('puppeteer-extra'); const stealth = require('puppeteer-extra-plugin-stealth'); const puppeteerJQuery = require('puppeteer-jquery'); module.exports = { // method that will build the url with brand, model and filters // for some reason some models have different query structure getPageUrl: (...
const uuid = require('uuid/v4'); const partitionAll = require('partition-all'); const faunadb = require("faunadb"); const q = faunadb.query; const cleanString = (str) => str.replace(/"/g, '') const removeSmartQuotes = (str) => str.replace(/(\u201C|\u201D)/g, '"') const parseMessage = (text="") => { // This co...
// 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(function (resolve) { resolve(value); }); } return new (...
//http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/353605?res=daily&key=8f8ff8d0-ca89-4f84-a555-a34d435db28e var restify = require('restify'); var moment = require('moment'); var _ = require('lodash'); var metoffice = function () {}; var metofficeClient = restify.createJsonClient({ url: 'http://dat...
import { reloadApiState, setSessionTitle } from '../../../reducers/api/actions'; import { reloadSelectionReducer } from '../../../reducers/selection/actions'; import { api, METHOD } from '../../../utils/api'; import { setDisableRedirect, setIsLoadingListOfSnapshots, setIsLoadingSnapshotDialog, setListOfSnapshot...
import {configFromStringAndFormat} from './from-string-and-format'; import {createUTCDate} from './date-from-array'; import {configFromArray} from './from-array'; import {hooks} from '../utils/hooks'; import {deprecate} from '../utils/deprecate'; import getParsingFlags from './parsing-flags'; import {defaultLocaleMonth...
/** * Atualizador do Hawk * * @author <NAME> <<EMAIL>> */ var fs = require("fs"), os = require("os"), url = require("url"), crc32 = require("crc-32"), md5 = require("md5"), MongoServer = require("mongodb").MongoClient, AWS = require('aws-sdk'); request = require('superagent'), chee...
/* * BBCode Plugin v1.0 for CKEditor - http://www.site-top.com/ * Copyright (c) 2010, PitBult. * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") */ CKEDITOR.plugins.add( 'bbcode', { requires : [ 'htmlwriter' ], init : function( editor ) { editor.dataProcessor = new CKEDITOR.htmlDataProce...
export { launchRingEditor } import { drawRadar, subscribeToRadarEvents, publishRadarEvent } from './radar.js'; import { getViewpoint, getData, publishRefreshRadar, getDistinctTagValues } from './data.js'; import { ifElementHasValueThenSetProperty, populateFontsList, populateDatalistFromValueSet, getPropertyFromProperty...
$(function () { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); listdata(); // para ver el estado $('#presentafactura').on('change', function () { let numrecibo = $('#numero_recibonuevo') if($(this).is(':checked...
// 获取 canvas 对象 const canvas = document.getElementById('main-canvas'); // 获取 gl context 对象 const gl = getWebGLContext(canvas); // 加载 gl 扩展 const requiredWebglExtensions = [ 'EXT_shader_texture_lod', 'OES_standard_derivatives', 'OES_element_index_uint', 'OES_texture_float', 'OES_texture_float_linear' ]; loa...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RegionsWithIntersections = void 0; var _react = _interopRequireWildcard(require("react")); var _constants = require("../constants"); var _intersectionObserver = require("./intersectionObserver"); var _RegionsWithIntersections = ...
var SVG = require("./draw.js") var Filter = require("./filter.js") var Style = (module.exports = { cssContent: ` .sb-label { font-weight: 500; fill: #fff; font-size: 12px; } .sb-obsolete { fill: #d42828; stroke:#CC9900; } .sb-motion { fill: #4C97FF; stroke:#3373CC; } .sb-looks ...
'use strict'; /** * @module nock/intercepts */ var RequestOverrider = require('./request_overrider'), common = require('./common'), url = require('url'), inherits = require('util').inherits, http = require('http'), parse = require('url').pars...
'use strict'; const { re } = require('./emoji'); const db = require('better-sqlite3')('fruitmachine.db'); const server_settings_str = 'SELECT * FROM settings WHERE server = ?'; var server_settings_stmt; try { server_settings_stmt = db.prepare(server_setttings_str); } catch ( error ) { const fs = require('fs-ext...
// Copyright © 2020 The Things Network Foundation, The Things Industries B.V. // // 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 // // Un...
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------------------...
// Encrypt plaintext using key function encrypt(key, plaintext) { return sjcl.encrypt(key, plaintext) } // Decrypt plaintext using key function decrypt(key, cipher) { return sjcl.decrypt(key, cipher) } // Display or hide an element function display(selector, show) { if ((typeof show === 'undefined') ? true : show)...
// Copyright 2015 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 applicable...
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { Session } from 'meteor/session'; import { ReactiveVar } from 'meteor/reactive-var'; import { ReactiveDict } from 'meteor/reactive-dict'; import { moment } from 'meteor/momentjs:moment'; import { OHIF } from 'meteor/ohif:core'...
// Adapted from and proudly found elsewhere at https://github.com/iann0036/aws-account-controller // special thanks to <NAME> const AWS = require('aws-sdk'); const ssm = new AWS.SSM(); const puppeteer = require('puppeteer'); const PASSWORD = '<PASSWORD>!' let CAPTCHA_STORE = '' async function deleteAccount(email, c...
const util = require("./util") const keys = require("./keys") const completions = require("./completions") // ---- Settings ----// util.addSettings({ hintAlign: "left", omnibarSuggestionTimeout: 500, richHintsForKeystroke: 1, defaultSearchEngine: "dd", theme: ` b...
'use strict'; var _from = require('babel-runtime/core-js/array/from'); var _from2 = _interopRequireDefault(_from); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPr...
import * as ccb from 'cfpb-chart-builder'; import actions from '../actions/chart'; import LineChartStore from '../stores/chart'; import utils from '../utils'; const store = new LineChartStore( [ utils.thunkMiddleware, utils.loggerMiddleware ] ); class MortgagePerformanceLineChart { constructor( { container } ) { ...
'use strict'; const OurGroceriesClient = require('./api/ourGroceries.js'); const config = require('./config.js'); /** * Defines item value pattern * @type {RegExp} */ const ITEM_VALUE_PATTERN = /^([\w\s]+)(?: \((\d+)\))?$/; /** * Defines sync list client class */ class SyncListClient { constructor(householdLi...
//import database const db = require('./db/connection'); // import inquirer const inquirer = require('inquirer'); //import module with question const questions = require('./utils/questions.js') // import console.table const cTable = require('console.table'); //console.table(rows); //inquirer prompt for first action...
module.exports = WebTorrent var createTorrent = require('create-torrent') var debug = require('debug')('webtorrent') var DHT = require('bittorrent-dht/client') // browser exclude var EventEmitter = require('events').EventEmitter var extend = require('xtend') var hat = require('hat') var inherits = require('inherits') ...
const express = require('express'); const RoomService = require('services/room.service'); const roomdataService = require('services/roomdata.service'); const crc = require('crc'); const router = express.Router(); const openTime = padLeft((0).toString(16).toUpperCase()) + padLeft((0).toString(16).toUpperCase()); const ...
/** * Deals with printing * * @module print */ import $ from 'jquery'; import dialog from 'enketo/dialog'; import { MutationsTracker } from './dom-utils'; let dpi; let printStyleSheet; let printStyleSheetLink; /** * @typedef PaperObj * @property {object} [external] - Array of external data objects, required fo...
import React, { Fragment, PureComponent } from "react"; import PropTypes from "prop-types"; import { ACTION, whenSelectionChangeDiscardable, dom, ReactQuery } from "we-edit"; import { Geometry, Composed } from "we-edit-representation-pagination"; import { SvgIcon } from "material-ui"; import { compose, setDisplayName }...
const _ = require('lodash'); /** * If Babel finds other .babelrc files while transpiling files in * subfolder, it will merge the configuration together. This can lead * to undefined behaviors thats why we use 'babel.config.js' * @note -> Can still extend other .bablerc's files - check the docs * @docs -> https://...
/** * 路由 index */ import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) /* Layout */ import Layout from '@/views/layout/Layout' import userRouter from './modules/user' import projectRouter from './modules/project' import goodRouter from './modules/good' import reportRouter from './modules/report' /...
//page init function function init(){ window.count = 0; window.main_old_fields = $('.removeIndicator').clone(); window.schema_json = {"resource":[{"name":"","description":"","field":[]}] } } //destroy table function destroy_table(table_name, service_name){ if(confirm('A...
/** * DevExtreme (ui/tabs.js) * Version: 20.2.6 * Build date: Tue Mar 16 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; exports.default = void 0; var _renderer = _interopRequireD...
if (typeof require == 'function') { var swrm = require('../lib/swarm2.js'); Spec = swrm.Spec; Swarm = swrm.Swarm; Model = swrm.Model; Field = swrm.Field; Set = swrm.Set; } else { exports = this.testEventRelay = {}; } // OPEN QUESTIONS // // v 1 methods on fields; eg inc for numbers // v 2...
import React, { Component } from 'react' import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import {createProfile,getCurrentProfile} from '../../actions/profileAction'; import {withRouter} from 'react-router-dom' class EditProfile extends Component { constructor(props) { super(props) ...
/** * Used to perform various commands available only to admins. * Supported commands: * /ban @username * /unban @username * /updateratings * /godvoice Message * @module helpers/adminCommands * @license MIT */ /** Dependencies */ const dbmanager = require('./dbmanager'); const strings = require('./strings'); ...
'use strcit' const { REQUESTED, PENDING, ACCEPTED, DECLINED, REJECTED, BANNED, FRIENDSHIP_STATUSES } = require('../constants/friendship_status') const findFriendshipById = (Friendship, id) => Friendship.findById(id).then(friendship => { if (!friendship) throw createError({ status: NOT_FOUND, m...
import React from 'react' import PropTypes from 'prop-types' import intl from 'react-intl-universal' import { withStyles } from '@material-ui/core/styles' import clsx from 'clsx' import Table from '@material-ui/core/Table' import TableBody from '@material-ui/core/TableBody' import ResultTableCell from './ResultTableCel...
#!/usr/bin/env node 'use strict'; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } ...
const binding = require("./binding"); const stream = require("readable-stream"); const util = require("util"); const unordered = require("unordered-set"); const dns = require("./dns"); const timeout = require("timeout-refresh"); const EMPTY = Buffer.alloc(0); const UTP_ERRORS = [ "UTP_ECONNREFUSED", "UTP_ECONNRESET"...
'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)) { ...
import { dirname, join, resolve, normalize, sep, extname } from 'path'; import builtinList from 'builtin-modules'; import resolveId from 'resolve'; import isModule from 'is-module'; import fs from 'fs'; import { createFilter } from 'rollup-pluginutils'; function _slicedToArray(arr, i) { return _arrayWithHoles(arr) |...