text
stringlengths
3.07k
16k
var logger = require('pomelo-logger').getLogger('pomelo-admin', 'MqttClient'); var EventEmitter = require('events').EventEmitter; var constants = require('../../util/constants'); var MqttCon = require('mqtt-connection'); var Util = require('util'); var net = require('net'); var MqttClient = function(opts) { EventEmit...
import m from 'mithril'; import _ from 'underscore'; import I18n from 'i18n-js'; import h from '../h'; import projectVM from '../vms/project-vm'; import rewardVM from '../vms/reward-vm'; import faqBox from '../c/faq-box'; const projectsReward = { controller(args) { const vm = rewardVM, selected...
/*jslint node: true */ 'use strict'; const conf = require('ocore/conf'); const headlessWallet = require('headless-obyte'); const db = require('ocore/db'); const moment = require('moment'); const constants = require('ocore/constants'); module.exports = (myAddress, event_date, contract, cb) => { let device = require('...
"use strict"; var _react = _interopRequireDefault(require("react")); var _react2 = require("@storybook/react"); var _addonActions = require("@storybook/addon-actions"); var _addonKnobs = require("@storybook/addon-knobs"); var _storybookReadme = require("storybook-readme"); var _README = _interopRequireDefault(req...
const si = require('../../') const test = require('tape') const sandbox = 'test/sandbox/' const indexName = sandbox + '_SEARCH' // const sanitise = str => str.replace(/[^0-9a-z ]/gi, '').toLowerCase() const data = [ { _id: 0, text: 'The Beatles were an English rock band formed in Liverpool in 1960. With a li...
const $RefParser = require("@apidevtools/json-schema-ref-parser"); const Ajv = require('ajv'); const fs = require('fs-extra'); const klaw = require('klaw'); const path = require('path') const minimist = require('minimist'); const compareVersions = require('compare-versions'); let COMPILED = {}; let ajv = new Ajv({ al...
function symbolicLinkRename(linkName, resource) { var newName = document.symbolics[linkName].value.replace(/ +/g, ''); if (newName.length > 0) window.location = resource + '?responder=symlink&rename=' + linkName + '&newname=' + newName; else alert('Enter a new name first.'); } function doSilentRequest(...
import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Users from 'meteor/vulcan:users'; import { Posts } from '../../collections/posts'; import Sequences from '../../collections/sequences/collection' import { getSetting } from 'meteor/vulcan:core'; const getHeaderColorPost = (postId, store) => { const pos...
'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)) { ...
var user = null; var type = 0; var startSn = 0; var globalCnt = 30; var colleaguesCnt = 0; var userId = 0; var byId = function(id) { return document.getElementById(id); }; (function($, doc) { mui.init({ swipeBack: false }); mui('#colleaguesListDiv').pullRefresh({ up: { height:50, contentrefresh: '...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
var x64 = require('./'); var assert = require('assert'); var util = require('util'); module.exports = Masm; // // ### function Masm (options) // #### @options {Object} **optional** See BaseAsm for details. // X64 Macro Assembler constructor // function Masm(options) { x64.Asm.call(this, options); }; util.inherits(M...
import jQuery from 'jquery'; import Archive from '../scripts/archive'; import {initializeMastodonButtons} from '../scripts/mastodon'; import {getPlayer} from '../scripts/player'; import tokenManager from '../scripts/token'; const rootPath = `${window.location.protocol}//${window.location.host}`; class RouterElement ...
/** * Main lsp module. * * Contains all functions required for lsp. * * @module main */ var fs = require('fs'), path = require('path'), colors = require('colors'); /** * Given a file or directory name, along with the base directory, returns * an object with some data - path, depth, name, whether it is...
//多面线类 import {console} from 'vuedraggable/src/util/helper' var polyLineObj = (function () { //句柄 var vueHandleObj // 地图对象 var vueHandleMap //多面线 var polyLine //信息窗口 // var infoBox; //标题 var title //标签 var label //右键菜单 var menu //图形编辑标识 var editFlag //存放和数据库交互的数据 var bPoint = { ...
import * as $ from 'manhattan-essentials' // -- Defaults -- export function defaultStatusTemplate(progress) { if (progress < 0) { return 'Waiting' } else if (progress >= 100) { return 'Processing' } return `Uploading ${parseInt(progress, 10)}%` } // -- Class definition -- /** * Fi...
/* eslint-disable camelcase, global-require, no-sync */ 'use strict'; const LessPluginAutoprefix = require('less-plugin-autoprefix'); const LessPluginCleanCSS = require('less-plugin-clean-css'); const path = require('path'); const pathmodify = require('pathmodify'); const pkg = require('./package.json'); const ENV_...
var assert = require("chai").assert; var Box = require("truffle-box"); var Migrate = require("truffle-migrate"); var Contracts = require("truffle-workflow-compile"); var Networks = require("../lib/networks"); var path = require("path"); var fs = require("fs"); var TestRPC = require("ganache-cli"); var Resolver = requir...
/* */ "format cjs"; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var...
//const API = "http://localhost:3000/API/V1/students"; const API = "https://backend-cursos-cecati13.uc.r.appspot.com/API/V1/students"; const result = document.querySelector(".result__API"); const formConsult = document.querySelector("#matriculaORcurp"); const typeRegister = document.querySelector(".typeRegister"); as...
import { IdsElement, customElement, attributes, scss, mix, } from '../../core'; // Import Utils import { IdsStringUtils } from '../../utils'; // Import Mixins import { IdsEventsMixin, IdsLocaleMixin, IdsThemeMixin } from '../../mixins'; import styles from './ids-switch.scss'; import IdsText from '../...
import Taro, { Component } from '@tarojs/taro'; import { View, ScrollView } from '@tarojs/components'; import PropTypes from 'prop-types'; import RMTag from '../Tag'; import RMTypography from '../Typography'; import theme from '../styles/theme'; import './index.scss'; class RMTagBar extends Component { state = { ...
/*! * Copyright http://v.shoutu.cn * Email <EMAIL> */ var playerhigh = "1"; //是否开启播放器高度自适应,0关闭1开启(开启后将播放器设置100%关闭填写固定高度) var stui = { 'browser': { url: document.URL, domain: document.domain, title: document.title, language: (navigator.browserLanguage || navigator.language).toLowerCase(), canvas: functi...
var currQ = 0; $(document).ready(function () { showInfo(); }); function likeMouseEnterEvent(val) { if($(val).attr('data-val') == "unselected") { $(val).removeClass('fa-heart-o'); $(val).addClass('fa-heart'); } else { $(val).addClass('fa-heart-o'); $(val).removeClass('fa...
import React from 'react' import PropTypes from 'prop-types' import {compose} from 'recompose' import Table from 'react-bootstrap/lib/Table' import {FormattedMessage} from 'react-intl' import filter from 'lodash/filter' import mapKeys from 'lodash/mapKeys' import camelCase from 'lodash/camelCase' import {withDataFetc...
import { buttonPostback, listElement } from '../lib/facebook'; import DynamoDbCrud from '../lib/dynamodbCrud'; import translations from '../assets/translations'; import { getFaq } from "./payloadFAQ"; import videos from "../assets/videos"; const LanguageEnum = { ARABIC: 'arabic', PERSIAN: 'persian', ENGLIS...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _isNaN2 = require('lodash/isNaN'); var _isNaN3 = _interopRequireDefault(_isNaN2); var _isNull2 = require('lodash/isNull'); var _isNull3 = _interopRequireDefault(_isNull2); var _isEmpty2 = require('lodas...
var backpackingTripPlaces = [ {content:'<strong>#1: Zurich, Switzlerland <strong>', coordinates:{lat:47.373878,lng:8.545094}, iconImagePath:"flag.png"}, {content:'<strong>#2: Stuttgart, Germany <strong>', coordinates:{lat:48.783333,lng:9.183333}, iconImagePath:"flag.png"}, {content:'#3. Munich, Germany', coord...
// 在树莓派上,启动SmartCarDriver。 建议加入系统自启动。 需要用root权限,或者把pi用户加入到gpio用户组。 const ezPWM = require('ezpwmforraspberry'); const rpio = require('rpio'); const SBUSUART = require('sbusuart') const SBUS = new SBUSUART(); const MotorManager = require('ezmotor'); const motorMgr = new MotorManager(); const EZX750 = require('ezx750ups'...
// Copyright (c) 2014, StrongLoop Inc. // // 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 DISCL...
/* * merlee.js * Copyright © <NAME> 2021 * MIT Licensed */ /** * module imports */ const http = require('http'); const fs = require('fs'); const morgan = require('morgan'); const logger = morgan('dev'); const parseUrl = require('parseurl'); const nodepath = require('path'); const ejs = require('ejs'); const fi...
import React from "react"; import styled from "styled-components"; import { connect } from "react-redux"; import { login, register, fetchChildren } from "../../actions/index.js"; const PageStyle = styled.div` height: 85%; display: flex; justify-content: center; align-items: flex-end; @media screen and (max-w...
/* eslint-disable */ import { h, defineComponent, ref, getCurrentInstance, onMounted, onBeforeUnmount, watch, onBeforeMount, nextTick, toRefs } from "vue"; import ApexCharts from "apexcharts"; // define all emitted events in order to better // document how the component should work const events = [...
const _ = require('lodash') const Promise = require('bluebird') const cyDesktop = require('@packages/desktop-gui') const contextMenu = require('electron-context-menu') const { BrowserWindow } = require('electron') const debug = require('debug')('cypress:server:windows') const cwd = require('../cwd') const savedState = ...
// eslint-disable-next-line no-unused-vars const colors = require('colors'); const async = require('async'); const { SortByKey, query, scan, startTimer, } = require('../helper.js'); /** * Uses Amazon DynamoDB query/scan function to fetch all * matching entries in the table. * */ function all(model, filte...
// UI elements var regenerateButton = document.getElementById("regenerate"); regenerateButton.addEventListener("click", function () { DG.digDungeon("dungeon"); }); var wildsButton = document.getElementById("wilds"); wildsButton.addEventListener("click", function () { DG.digDungeon("wilds"); }); var saveButton = ...
'use strict'; var _Object$keys = require('babel-runtime/core-js/object/keys')['default']; var _getIterator = require('babel-runtime/core-js/get-iterator')['default']; var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default']; Object.defineProperty(exports, '__esModule', { val...
// // Script originally by kgsws, modified by SciresM. // BEWARE! By modifying system save data you risk a brick. // sc.killAutoHandle(); var save_struct = new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R...
import { NotificationIds, NotificationHandler } from './notification_handler'; import { LocalStorageKeys, LocalStorageService } from './local_storage_service'; const MessageActions = Object.freeze({ RELOAD: 'reload', ATTACK: 'attack', LOAD_POPUP_DATA: 'load_popup_data', SAVE_LOGIN_DATA: 'save_login_dat...
'use strict'; let net = require('net'); let tls = require('tls'); const TIMEOUT = 5000; const socks = require('socks'); const TlsSocketWrapper = require('./TlsSocketWrapper.js'); const EventEmitter = require('events').EventEmitter; const util = require('./util'); class Client { constructor(port, host, protocol, op...
class Table { constructor() { this.months = [ 'enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre' ]; this.monthsAdded = []; } createColumn(tableName, month)...
import styled, { injectGlobal } from 'react-emotion'; export const Header = styled.header` padding: 2px 10px; width: 100%; background: #fff; z-index: 1000; border-bottom: 1px solid #eee; `; export const Nav = styled.nav` display: flex; height: 55px; align-items: center; position: relative; @media ...
/*if(jQuery) { alert("jQuery is installed!"); } cannot alert if not only works if jQuery is installed*/ /*if (typeof jQuery != "undefined") { alert("jQuery is installed!"); } else { alert ("jQuery is not installed!"); } I do...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const boom_1 = require("@hapi/boom"); const events_1 = __importDefault(require("events")); const Types_1...
var request = require('request'); var querystring = require("querystring"); var VERSION = "1.1" module.exports = function (api_key, api_url) { return new Authy(api_key, api_url); }; function Authy(apiKey, api_url) { this.apiKey = apiKey; this.apiURL = api_url || "https://api.authy.com"; } Authy.prototype...
let defaultOptions = { delimiter: ',', delimiterSub: '.', nestedDelimiter: '.', filteredColumns: null, } class KeenCSV { constructor(response, options) { // First, remove the (optional) wrapping response object let result = response; if (response.hasOwnProperty('result')) { res...
'use strict'; const config = require('config'); const socketio = require('socket.io'); const cookieParser = require('cookie-parser'); const gp = require('./gpxplayer'); const db = require('../database/db'); const usr = require('../models/user'); const dev = require('../models/device'); const pos = require('../models/po...
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // Licensed under the Amazon Software License // http://aws.amazon.com/asl/ import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { decorate, reaction, runInAction } from 'mobx'; import { observer, inj...
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } r...
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010. // // ## Description // This file implements the `Stem` object. Generally this object is handled // by its parent `StemmableNote`. import { Vex } from './vex'; import { Element } from './element'; import { Flow } from './tables'; // To enable logging for t...
/* * Copyright (C) 2018 Intel Corporation * * SPDX-License-Identifier: MIT */ /* exported ShapeMergerModel ShapeMergerController ShapeMergerView*/ /* global Listener:false Logger:false Mousetrap:false */ "use strict"; class ShapeMergerModel extends Listener { constructor(collectionModel) { ...
import React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import LocalizedStrings from 'localized-strings'; import { makeStyles } from '@material-ui/core/styles'; import { sortPlayers } from '../../../utilities/sort'; import Typography from '@material-ui/core/Typography'; import ButtonBase from...
var levels = require("./levels"); /** * Log requests with the given `options` or a `format` string. * * Options: * * - `format` Format string, see below for tokens * - `level` A log4js levels instance. * * Tokens: * * - `:req[header]` ex: `:req[Accept]` * - `:res[header]` ex: `:res[Con...
'use strict'; var $ = require('jquery'); var Keys = require('./Keys'); var escapeHTML = require('./escapeHTML'); var Ajax = { init: function() { $(document) .on('dblclick', '[data-editable]', function(event) { var $el = $(event.currentTarget); $el = $(this).addClass('editing'); $e...
const { Canvas, createCanvas, Image, ImageData, loadImage } = require('canvas'); const { JSDOM } = require('jsdom'); const { writeFileSync, existsSync, statSync } = require('fs'); module.exports = async (file, name = "output.jpg", type = "image/jpeg", quality = 0.95, factor = 1, trainingSet = "./node_modules/opencv-...
import * as Bluebird from 'bluebird'; import * as _ from 'lodash'; import * as logger from '../logger'; import * as deviceState from '../device-state'; import * as applicationManager from '../compose/application-manager'; import * as serviceManager from '../compose/service-manager'; import * as volumeManager from '../...
export const areaDataHandler = (res) => { let options = res.map(item => { let option = { value: item.areaCode, label: item.areaName, children: [], } if (item.subArea.length > 0) { option.children = item.subArea.map(_item => { ...
const mimes = { '3gp': 'video/3gpp', a: 'application/octet-stream', ai: 'application/postscript', aif: 'audio/x-aiff', aiff: 'audio/x-aiff', asc: 'application/pgp-signature', asf: 'video/x-ms-asf', asm: 'text/x-asm', asx: 'video/x-ms-asf', atom: 'application/atom+xml', au: 'a...
const {dependencies} = require('./package.json'), gulp = require('gulp'), multipipe = require('multipipe'), path = require('path'), browserify = require('browserify'), browserSync = require('browser-sync'), reload = browserSync.reload, source = require('vinyl-source-stream'), ...
function set_bombs(){ let locations = []; for(var a = 0; a < row; a++){ for(var b = 0; b < col; b++){ locations.push([a,b]) } } for(var i = 0; i < bomb_number; i++){ if(!locations.length){ break } let a = Math.floor(Math.random()*(loc...
#!/usr/bin/env node const dnssd = require('../index.js'); // // main(process.argv); // // function showHelp(reason) { if (reason) console.log(`\n${reason}`); console.log('\nUsage: dnssd-js <command>\n'); console.log('dnssd-js browse [type] [domain]'); console.log('dnssd-js advertise <type> <port> [name] [...
const auth = require('../middleware/authorize') const dbDebugger = require('debug')('app:db') const { Rental, validate } = require('../models/rental') const { Customer } = require('../models/customer') const { Movie } = require('../models/movie') const mongoose = require('mongoose') const express = require('express') c...
const Kafka = require("@santiment-network/node-rdkafka"); const zk = require("node-zookeeper-client-async"); const { logger } = require('./logger') const ZOOKEEPER_URL = process.env.ZOOKEEPER_URL || "localhost:2181"; const KAFKA_COMPRESSION_CODEC = process.env.KAFKA_COMPRESSION_CODEC || "lz4"; const KAFKA_URL = proce...
let greeting = ' Wellcome to Carolina '; console.log(greeting); // Wellcome to Carolina // .trim() let greeting_trim = greeting.trim(); console.log(greeting_trim); // Wellcome to Carolina // .length let txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; console.log( txt.length ); ...
import React, { useState } from "react"; import { Components, registerComponent } from "meteor/penpal"; import { useHistory } from "react-router-dom"; import Table from "@material-ui/core/Table"; import TableBody from "@material-ui/core/TableBody"; import TableCell from "@material-ui/core/TableCell"; import TableContai...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _WrappedError = _interopRequireDefault(require("../WrappedError")); var _findAssetPaths = _interopRequireDefault(require("../findAssetPaths")); var _getComponentNameFromFileName = _interopRequireDefault(requ...
const util = require('../../utils/util.js'); const api = require('../../config/api.js'); const user = require('../../utils/user.js'); //获取应用实例 const app = getApp(); Page({ data: { newGoods: [], hotGoods: [], topics: [], brands: [], groupons: [], floorGoods: [], banner: [], channel: [...
var Promise=require('bluebird') var lex=require('./lex') var alexa=require('./alexa') var _=require('lodash') var util=require('./util') var translate = require('./multilanguage.js') function sms_hint(req,res) { var hint = ""; if (_.get(req,"_event.requestAttributes.x-amz-lex:channel-type") == "Twilio-SMS") {...
const {eq} = require("prosemirror-test-builder") const ist = require("ist") const {schema, defaultMarkdownParser, defaultMarkdownSerializer} = require("..") const {doc, blockquote, h1, h2, p, hr, li, ol, ol3, ul, pre, em, strong, code, a, link, br, img} = require("./build") function parse(text, doc) { ist(defaultM...
import { htmlToElement } from './utils'; import EventDispatcher from './event-dispatcher'; import DialogTablist from './dialog-tablist'; /** * Dialog which is shown to update cookie preferences. */ const Dialog = ({ config, preferences }) => { const tabList = DialogTablist({ config, preferences }); const events...
"use strict"; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of c...
/* Represents the entire crop visualization. */ class CropVisualization { /* Stores information that is shared by all the classes in this project. */ constructor(active_year, selected_countries, selected_crop) { this.active_year = active_year; this.selected_countries = selected_countries; ...
// pages/addlog/addlog.js const util = require('../../utils/util.js'); const formatTime = util.formatTime; Page({ data: { title:'',//导航栏标题 type:'',//当前添加类型 time:'', //当前时间 data:{ fontSize0: '38rpx', //文本框字体大小 fontSize1: '38rpx', fontSize2: '38rpx', fontSize3: '38rpx', co...
/* * 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 n...
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { RaisedButton, Dialog, FloatingActionButton } from 'material-ui'; import ContentAdd from 'material-ui/svg-icons/content/add'; import ContentRemove from 'mate...
/*global Cu, Services, getPref, bm, PrivateBrowsingUtils */ "use strict"; Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm"); let prompts = Services.prompt, prefs = Services.prefs, ww = Services.ww; const PREF_BRANCH = "extensions.bmreplace.", PREF_VERSION = "version", PREF_M...
// Copyright 2018 Google // // 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 ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import execCommand from './execCommand'; import './DrawingCanvas.css'; class DrawingCanvas extends Component { static propTypes = { activeTool: PropTypes.shape({ type: PropTypes.string.isRequired, ti...
const puppeteer = require('puppeteer'); const { concatAPI, toFile } = require('./utility'); let requires = []; // require let objects = []; // objects, classes, enumerations let properties = []; // obj.propertyName let methods = []; // temporary information let signatures = []; // obj.methodName(x, y, z); const lin...
//Reps var reps_data = [] var default_reps = { name: "", email: "", phone_no : "", day: 0, month: 0, year: 0, } var campaignId = "#campaignId" var repsTableId = "#repsTable" var repsModelId = "#reps-modal" var repsModalTitle = "#reps-modal-title" var repsName = "#reps_name" var repsEmail = "#reps_email"...
import React, {useState, useEffect, useRef, useMemo} from 'react'; import { Button, Cascader, Form, Input, message, Select } from 'antd'; import {productCateServices} from 'services/productCate'; import {brandServices} from 'services/brand'; import {productServices} from 'services/product'; import FormItem from 'antd/l...
import { Checkbox, Header, Icon, Message, Pagination, Segment, Table, } from 'semantic-ui-react'; import React, {Fragment, useState} from 'react'; import {fileLatestDate, fileSortedVersions} from '../../utilities'; import {DOCS_PER_PAGE} from '../../../common/globals'; import FileSimpleElement from './Fi...
/** * * TourPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import injectSaga from 'utils/injectSaga'; import injectR...
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { Button, Table, Spin, Popover, Tooltip, Icon, } from 'choerodon-ui'; import { Page, Header, Content, stores, axios, Permission, } from 'choerodon-front-boot'; import CreateLink from './Component/CreateLink'; import EditLink f...
import { html, PolymerElement } from "@polymer/polymer/polymer-element.js"; import { afterNextRender } from "@polymer/polymer/lib/utils/render-status.js"; import { store } from "@lrnwebcomponents/haxcms-elements/lib/core/haxcms-site-store.js"; import { autorun, toJS } from "mobx/lib/mobx.module.js"; import "@lrnwebcomp...
import DOMMatrix from './DOMMatrix' import {applyArrayValuesToDOMMatrix} from './utilities' // This matrix is represented internally in row-major format so that it is easy // to look at visually. In a pair of coordinates (as in "m23") the first number // is the column and the second is the row (so "m23" means column 2...
/* eslint-disable no-restricted-syntax */ /* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ const smData = require('./data'); const exceptions = require('./exceptions'); // eslint-disable-next-line no-bitwise const MAX_PACKET_SIZE = 1 << 30; const LENG...
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A P...
import isEmpty from 'lodash/isEmpty'; import isNil from 'lodash/isNil'; import moment from 'moment'; import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import withQueryParams from 'react-router-query-params'; import noop f...
$(function() { $("#chooser_directories_above").on("change", chooser_visit_superdirectory); }); // What mode of operation are we using the file chooser for? Possible values are: // // directory - Pick a directory for writing results // file.out - Pick a new or existing file for writing outputs // file.in - Pick an...
// eslint-disable-next-line max-classes-per-file import { dedupeMixin } from '@lion/core'; import { FormControlsCollection } from './FormControlsCollection.js'; import { FormRegisteringMixin } from './FormRegisteringMixin.js'; /** * @typedef {import('../../types/registration/FormRegistrarMixinTypes').FormRegistrarMix...
import database from "../../utils/database.js"; import paginator from "../../utils/pagination/pagination.js"; import { random } from "../../utils/misc.js"; import Command from "../../classes/command.js"; const blacklist = ["create", "add", "edit", "remove", "delete", "list", "random", "own", "owner"]; class TagsComman...
// store the selection colors in an array var colorArr = [ '#fe001a', '#85007d', '#63ff31', '#0a00f9', '#feff37', '#ff9b29', '#ffffff', '#000000', '#ffe1bf', '#ffb7c4', '#d15e27' ]; var currentColor; var gridSize = 0; // populate color palette row var $co...
/* js中依赖处理 允许通过resolveRequire进行依赖重写 */ //分析js中的require命令 //let a=require('aa'); //var b; //b=require('cc'); let jsModuleParser = require('./js-module-parser'); let configs = require('./util-config'); let atpath = require('./util-atpath'); let depsReg = /(?:(?:(?:(?:var|let|const)\s+|,|\s)\s*[^=\s]+\s*=\s*)?\b...
const q = require('daskeyboard-applet'); const request = require('request-promise'); const logger = q.logger; const apiUrl = `https://api.stackexchange.com/2.2`; const MessageForInboxItemType = { comment: 'New comment', chat_message: 'New chat message', new_answer: 'New answer', careers_message: '...
import React, { Component } from "react"; import axios from "axios"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faChevronLeft, faChevronRight } from "@fortawesome/free-solid-svg-icons"; import uiClasses from "../../../components/UI/Layout/Layout.module.css"; import classes from "./P...
/* eslint-disable no-console */ import { AD_AVAILABLE, AD_BAD_REQUEST, AD_ERROR, AD_NO_BID, AD_REQUEST_FAILURE } from './event/events' import {TIMEOUT_DEBOUNCE, TIMEOUT_PREBID} from './timeout/timeout' import Debouncer from './service/Debouncer' /** * @class * @implements {AdLoadable} * @implements {AdV...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/*! * omit-empty <https://github.com/jonschlinkert/omit-empty> * * Copyright (c) 2014-2015, <NAME>. * Licensed under the MIT License. */ 'use strict'; require('mocha'); const typeOf = require('kind-of'); const assert = require('assert'); const omitEmpty = require('./'); describe('omit-empty', () => { it('shou...