text
stringlengths
3.22k
29.5k
"use strict"; const fs = require("fs"); const path = require("path"); const zlib = require("zlib"); const tea = require("crypto-tea"); const Readable = require("stream").Readable; const common = require("./common"); const pb = require("./pb"); const jce = require("./jce"); const { buildSyncCookie } = require("./message...
import React, { useState, useEffect, useCallback } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import { useTranslation } from "react-i18next"; // core components import * as moment from "m...
/* global location: false */ import Promise from 'bluebird' import BigNumber from 'bignumber.js' import _ from 'lodash' import { Buffer } from 'buffer' import Web3 from 'web3' import ipfsAPI from 'ipfs-api' import Vue from 'vue' import { logger } from './logging.js' import WyvernDAO from './wyvern-ethereum/build/con...
// TO DO: Add in Jive App capability // If adding a new integration types, check/modify the asyncFileGetter and addDefinition functions //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////...
import debug from 'debug'; import WebSocket from 'isomorphic-ws'; import { packBinaryMessage, unpackBinaryMessage, packStringMessage, unpackStringMessage, } from '../common/sockets-encoder-decoder.js'; const log = debug('soundworks:socket'); // https://stackoverflow.com/questions/17575790/environment-detection...
'use strict'; const expect = require('expect.js'); // const AWS = require('aws-sdk'); var AWS = require('aws-sdk-mock'); const utils = require('../lambda/utils'); // AWS SDK mocks AWS.mock('Lambda', 'getAlias', {}); AWS.mock('Lambda', 'getFunctionConfiguration', {MemorySize: 1024}); AWS.mock('Lambda', 'updateFunctio...
// auth.js const express = require("express"); var secured = require('../lib/middleware/secured'); const router = express.Router(); const passport = require("passport"); const util = require("util"); const querystring = require("querystring"); var Tile38 = require('tile38'); var client = new Tile38(); const jwt = requ...
/* eslint no-undef: "off" */ /* eslint no-console: "warn" */ "use strict"; var game_duration = undefined; var win_probability = undefined; var pic_index = 0; // Make this larger to speed the game up. 10 makes it very fast. const step_by = 1; // Returns a number in [min, max). function random_int(min, max) { min = M...
// Copyright 2017 ODK Central Developers // See the NOTICE file at the top-level directory of this distribution and at // https://github.com/opendatakit/central-backend/blob/master/NOTICE. // This file is part of ODK Central. It is subject to the license terms in // the LICENSE file found in the top-level directory of ...
/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ Cu.import("resource://services-common/log4moz.js"); Cu.import("resource://services-sync/record.js"); Cu.import("resource://services-sync/engines.js"); Cu.import("resource://services-sync/engines/bookmarks.js"); ...
import React, { Fragment, useEffect, useRef, useState } from 'react'; import { Link } from 'react-router-dom'; // Gsap Animation import { gsap } from 'gsap'; import { CSSPlugin } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import CSSRulePlugin from 'gsap/CSSRulePlugin'; // import CSSPlugin from ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.sessionImmutableReducer = exports.sessionReducer = exports.sessionService = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in sour...
import React, { useState } from 'react'; import { Modal, FileUploaderDropContainer, FileUploaderItem, TextInput, Button, } from 'carbon-components-react'; import PropTypes from 'prop-types'; import uuidv4 from '../../global/js/utils/uuidv4'; import { pkg } from '../../settings'; const componentName = 'ImportM...
function show_options_fields() { $('.wrap').hide(); if ($('#command').val() == 'deploy') { $('.wrap.modules').show(); $('.wrap.fabric_execution_strategy').show(); $('.wrap.safe_deployment').show(); } else if ($('#command').val() == 'redeploy') { $('.wrap.deploy_id').show(); ...
import * as R from 'ramda' import * as PromiseUtils from '../../promiseUtils' import * as NodeDef from '../nodeDef' import * as NodeDefLayout from '../nodeDefLayout' import * as NodeDefValidations from '../nodeDefValidations' import * as Category from '../category' import * as SurveyNodeDefsIndex from './surveyNodeDef...
let index_produto; let table_produto; $(document).ready(function () { $.extend($.fn.dataTable.defaults, { dom: 'B<"datatable-scroll"t><"datatable-footer">', autoWidth: false, paging: false, searching: false, ordering: false, retrieve: false, language: { ...
import React, { useEffect, useState } from 'react'; import dayjs from 'dayjs'; import './ArticlesList.css'; import { categoriesDict } from '../../services/categories'; import { Link, useHistory } from 'react-router-dom'; import { sortArticleList, getArticleId, parseGreekLetters, } from '../../services/dataHelpers...
import mime from 'mime-component'; import httpStatus from 'statuses'; import { debug, Defer, } from '../utils/'; import { MockerRequest } from './request'; const responseLog = debug.scope('response'); const IS_IE_EDGE = /Edge/.test(navigator.userAgent); export class MockerResponse { /** * Response headers ...
const fs = require('fs-extra') const colors = require('colors') const cheerio = require('cheerio') const puppeteer = require('puppeteer') const express = require('express') const sha256 = require('sha256') const bodyParser = require('body-parser') const shell = require('shelljs') const watch = require('node-watch') con...
import React, { Component } from 'react' import Slider from 'rc-slider' import Tooltip from 'rc-tooltip' import {SortableContainer, SortableElement, SortableHandle, arrayMove} from 'react-sortable-hoc' import _ from 'lodash' import async from 'async' import Marker from './Marker' import Select from './Select' class...
'use strict' const camelCaseKeys = require('camelcase-keys') const collectBuffer = require('bl') const { createHash } = require('crypto') const expandPath = require('@antora/expand-path-helper') const File = require('./file') const fs = require('fs-extra') const get = require('got') const getCacheDir = require('cache-...
const OS = require('./opensubtitles.js') const libhash = require('./hash.js') const path = require('path') module.exports = new class LibSearch { checkHash(input) { return new Promise((resolve, reject) => { if (!input.hash && !input.path) return resolve(false) if (!input...
/* ---------------------------------------------------------------------------- | qewd-conduit: QEWD Implementation of the Conduit Back-end | | | | Copyright (c) 2017 M/Gateway Developments Ltd, | | Re...
import React from 'react'; import { Paper, Typography, FormControl, InputLabel, Select, MenuItem, Grid, CircularProgress } from '@material-ui/core'; import { GotoPlayTableButton } from './Widgets'; // Import the styles import { styles } from './styles' // Import the Model import { Model, Player, Webs...
/** * Created by lekuai on 17/4/1. */ $(function () { //先判断是否有房源id传过来,如果有,即为编辑,否则为新发布 restoreHouseIfModify(); $(".facility .checkBox").click(function () { if ($(this).find("i").hasClass("check")) { $(this).find("i").removeClass("check"); } else { $(this).find("i")...
var gulp = require( 'gulp' ); var fs = require( 'fs' ); var concat = require( 'gulp-concat' ); var ts = require( 'gulp-typescript' ); var merge = require( 'merge-stream' ); var gutil = require( 'gulp-util' ); var gunzip = require( 'gulp-gunzip' ); var request = require( 'request' ); var untar = require( 'gulp-untar' );...
var f7 = new Framework7({ material: true, statusbarOverlay: false, scrollTopOnStatusbarClick: true, cache: false, notificationCloseIcon: false, }); var $ = Dom7; let stops = []; // Routes stops autocomplete var mainView = f7.addView('.view-main', { pushState: true, }); // Make the back button...
/** * The Map "Controller" that wraps a Google Maps and integrates it with searches. * * The controller is initialized via init() after which calls to update() is * used to load the map with data. * * The map will used hashed search-results (provided via update()) at wide * zoom levels, and detailed asset search...
// http://www.cookiecentral.com/faq/#3.5 // The layout of Netscape's cookies.txt file is such that each line contains // one name-value pair. An example cookies.txt file may have an entry that // looks like this: // .netscape.com TRUE / FALSE 946684799 NETSCAPE_ID 100103 // Each line represents a single pie...
const { createClient } = require('redis'); const fs = require('fs'); const chalk = require('chalk'); const fetch = require('node-fetch'); const path = require('path'); const readLastLines = require('read-last-lines'); const semver = require('semver'); const { REST } = require('@discordjs/rest'); const { Routes } = requ...
"use strict" import React from 'react' import classnames from 'classnames' import { isEmpty, forEach } from './utils/objects' import { format, toArray } from './utils/strings' import merge from './utils/merge' import Regs from './utils/regs' import { requireCss } from './themes' requireCss('form-control') import { g...
const bcrypt = require('bcryptjs'); const crypto = require('crypto'); const mongoose = require('mongoose'); const { randomString } = require('./utils'); /* eslint-disable arrow-body-style */ if (process.env.MONGO_DEBUG) { mongoose.set('debug', (collectionName, method, query) => { console.log(`${collectionName}....
/* -*- indent-tabs-mode: nil; js-indent-level: 4; js-indent-level: 4 -*- */ /* Copyright 2015-2017 <NAME>. Released under the MIT license. */ // Given one or more input hydrography shapefile zips, populate a destination // directory with reformatted hydrography data files for each tile. load('../client/utility.js'); ...
import React from "react"; import ReactNative, { NativeModules, StyleSheet, Image, DeviceEventEmitter } from "react-native"; import _ from "lodash"; import { BaseComponent } from "../../commons"; import { Constants } from "../../helpers"; import { TextInput } from "../inputs"; import View from "../view"; import Touchab...
'use strict'; var faust = faust || {}; // Standard Faust DSP faust.mydsp = function (context, instance, buffer_size, sample_rate) { var output_handler = null; var ins, outs; var dspInChannnels = []; var dspOutChannnels = []; // Keep JSON parsed object var json_object = JSON.parse(ge...
const fetch = require('node-fetch'); const color = require('chalk'); const fs = require('fs'); const puppeteer = require('puppeteer'); const time = require('moment'); const { clearScreenDown } = require('readline'); const { RSA_PKCS1_OAEP_PADDING, SSL_OP_MSIE_SSLV2_RSA_PADDING } = require('constants'); let options; f...
import React, { Component } from "react"; import moment from "moment"; import ApolloClient from "apollo-boost"; import { ADD_FOOD } from "../../graphql/mutations"; import { GET_ALL_FOOD, GET_CURRENT_USER_QUERY } from "../../graphql/queries"; import Button from "@material-ui/core/Button"; import TextField from "@materia...
import React from 'react'; import PropTypes from 'prop-types'; import * as d3 from 'd3'; import $ from 'jquery'; class DepthChart extends React.Component { componentDidMount() { window.addEventListener('resize', () => { this.drawASimpleChart(); }); this.drawASimpleChart(); } drawASimpleChart()...
import React, { useState } from "react"; import jsPDF from "jspdf"; import html2canvas from "html2canvas"; /*Estilos*/ import "./style.css"; import "./style-certificate.css"; import "antd/dist/antd.css"; import { Checkbox, Button, Input, message, Table, Tag, Popover, Popconfirm, } from "antd"; import ...
// This file is to show how a library package may provide JavaScript interop features // wrapped in a .NET API var scaleMode = 2; var lastDraw = { x: -1, y: -1 }; var w, h; var img; var canvas, ctx, BRectLeft, BRectTop, canvasId; let pathsarray = []; let points = []; window.addEventListener('resize', windowResize); wi...
import React from 'react'; import './Add.css'; import Cookies from 'js-cookie'; class Add extends React.Component { constructor(props) { super(props); this.state = { formData: { transactionType: 'satis', entries: [] }, inputData: { amount: '', name: '', ...
"use strict"; const express = require("express"); const app = express(); const cmd = require("node-cmd"); const crypto = require("crypto"); const bodyParser = require("body-parser"); const fs = require("fs"); const dotenv = require("dotenv").config(); const debug = process.env.DEBUG || "true"; let options; if (!de...
var Shaders = { 'earth' : { uniforms: { 'texture': { type: 't', value: null } }, vertexShader: [ 'varying vec3 vNormal;', 'varying vec2 vUv;', 'void main() {', 'gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );', 'vNorma...
import CPUMemory from "../core/CPUMemory"; import { INTERRUPTS } from "./constants.js"; import { instructions } from "./instructions.js"; import { modes } from "./modes.js"; import { opcodes } from "./opcodes.js"; class CPU { constructor() { // Hardware connected to CPU this.memory = new CPUMemory(); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); const path = require("path"); const fs_1 = require("fs"); class BuildInfo { constructor(extension) { this.extension = extension; this.status = vscode.window.createStatusBarItem(vsco...
import React, { Component } from 'react' import { Menu, Item, Separator } from 'react-contexify' import { ToastContainer, toast } from 'react-toastify' import 'react-toastify/dist/ReactToastify.css' import Sidenav from './Sidenav' import Albums from './Albums' import Songs from './Songs' import Groups from './Groups' i...
const { io } = require('../servers'); const Game = require('../classes/Game'); const User = require('../models/User'); const uniqid = require('uniqid'); const { sendAvailableGames, generateRandomCard, sanitizePlayer, isPlayerTurn, updateCurrentPlayerTurnIndex, canPlayCard, colors, finishGame } = require...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _asyncToGenerator = _interopRequireDefault(require('async-to-generator')); exports.getCompilationDatabaseHandler = getCompilationDatabaseHandler; var _nuclideArcanistRpc; function _load_nuclideArcanistRpc() { return _nuclideArcani...
'use strict'; const moment = require('moment'); const _ = require('lodash'); const logger = require('./logger'); const settings = require('../settings.json'); const notifyData = require('./notifyData'); // const verbose = _.has(settings, 'config.verbose') ? settings.config.verbose : true; const timing = {}; const apiQ...
import { UNITS, SUPPORTED_SHORTCUTS } from './constants'; import { range, sort, dedup, setError } from './utils'; export function setValuesFromCronString(cronString, setInternalError, onError, allowEmpty, internalValueRef, firstRender, locale, shortcuts, setMinutes, setHours, setMonthDays, setMonths, setWeekDays, setPe...
const fs = require('fs-extra'); const path = require('path'); const { provider } = require('jimple'); /** * Copies the project files and/or the files of a target that doesn't require bundling. */ class BuildCopier { /** * Class constructor. * @param {Copier.copy} copier The func...
'use strict'; const path = require('path'); const fs = require('fs'); const rimraf = require('rimraf'); const test = require('ava'); const markdownMagic = require('markdown-magic'); const ParseMarkdownMetadata = require('parse-markdown-metadata'); const {findPathPkg, getJsonPkg, getDeepAccessProp} = require('..'); con...
//Min, max inclusive. function randomi(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } var __matrix_spinners = []; var __matrix_spinner_counter = 0; var __matrix_animation_interval = 16; var __matrix_glyph_size = 16; function matrixDrawGlyph(context, glyphs, glyph_index, x_index, y_index, al...
"use strict"; const bech32 = require('bech32').bech32; const sha256 = require('crypto-js/sha256') // A looser UUID regex (than spec) since all we care about are having 16 bytes. const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; /** * Checks if the provided thing is a array or typed...
var fs = require('fs'); var path = require('path'); var angFilenameRegex = /([a-zA-Z0-9\-]+)\.((component)|(directive)|(model)|(pipe)|(service)|(widget))\.ts/; var searchFolderOmitRegex = /(mock)|(i18n)|(assets)|(styles)/; var libFolderOmitRegex = /config/; var indexFileName = path.resolve('..', 'docs', 'README.md');...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const urlwithparams_1 = require("../../../common/urlwithparams"); const audio_1 = require("../../../common/audio"); const mappeddata_1 = require("../../../utils/mappeddata"); const genericobject_1 = require("./genericobject"); const filt...
import React, { Component } from 'react'; import './NewActivity.css'; import DashboardHeader from '../DashboardHeader/DashboardHeader.js'; import iconDistance from 'img/icon-distance.svg'; import iconDuration from 'img/icon-duration.svg'; import {adalApiFetch} from "../../../adalConfig" class NewActivity extends Co...
const { MessageEmbed, DiscordAPIError } = require('discord.js'); const Discord = require('discord.js'); const qdb = require("quick.db"); const ms = require("ms"); const moment = require("moment"); const Database = require("../../Helpers/Database"); /* let mongoose = require("mongoose") mongoose.connect...
// Size of field const rows = 48; const columns = 64; // Size of cell const rectWidth = 10; const rectHeight = 10; // Cell states const dead = 0; const alive = 1; // Orientation const horizontal = 0; const vertical = 1; // Colors const cellColors = [ 'orange' /*dead*/, 'yellow' /*alive*/ ]; // Fields var field = new A...
import browser from 'webextension-polyfill'; import _ from 'lodash'; import uuidV4 from 'uuid/v4'; import storage from 'storage/storage'; import { getText, createTab, executeCode, executeFile, getRandomString, getRandomInt } from 'utils/common'; import {getDataUriMimeType} from 'content/common'; import { ...
const express = require('express'); const app = express(); const db = require('./Db'); const update = require('./cadastro/cadatrarProd'); var produtos = require('./schema/Produtos'); const Vendas = require('./schema/Vendas'); var nodemailer = require('nodemailer'); const bodyParser = require('body-parser');//Bod...
'use strict'; function Constants() { this.WIDTH = 760; this.HEIGHT = 600; this.AUXIL_WIDTH = 190; this.AUXIL_HEIGHT = 600; this.CARD_WIDTH = 45; this.CARD_HEIGHT = 70; this.CARD_AREA_PADDING = 10; this.CARD_PADDING_X = 20; this.CARD_PADDING_Y = 30; this.CARD_AREA_X_0 = (this.WIDTH - this.CAR...
var canEdit = false; var TMP_Value = ""; $(document).ready(function () { var identity = getCookie("identity"); var remember_code = getCookie("remember_code"); if (identity != null && remember_code != null) { if (identity.length > 3 && remember_code.length > 5) { checkUser(identity, remember_code); } } }); ...
/** * Imports */ import React from 'react'; import {FormattedMessage} from 'react-intl'; // Flux import IntlStore from '../../../stores/Application/IntlStore'; // Required components import Button from '../buttons/Button'; import InlineItems from './InlineItems'; import InputField from './InputField'; import Selec...
'use strict'; const should = require('should'); const rewire = require('rewire'); const sinon = require('sinon'); const KuzzleMock = require('../../mocks/kuzzle.mock'); const RedisClientMock = require('../../mocks/service/redisClient.mock'); const Redis = rewire('../../../lib/service/cache/redis'); describe('Redis'...
var official = "https://downloader.download-lagu-mp3.com/"; var dl_link = official+"#url="; var icon_img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAq0lEQVRIx2NgIAD+EwCE9BMEoxaMWjBqwVCz4N+/f72EDCQEQGbgtODnz59MQAVLKTB8KcgMvL748+cPG1DhbjIM3w3SS1RQ/f37lw+o4SwJhp8F6SEpPoAaJIAa7xJh+F2QWrJSEFCjCt...
import { GetStoreData, SetStoreData } from '../helpers/General'; import BackgroundGeolocation from '@mauron85/react-native-background-geolocation'; import { Alert, Platform, Linking } from 'react-native'; import { PERMISSIONS, check, RESULTS, request } from 'react-native-permissions'; import PushNotificationIOS from '@...
import React from 'react'; let myResiduals; export const displayProgress = (who, state, data, bat, thestart) => { var datastring = data.toString(); let errorText = state.stderr; var tempOutLength = state.stdout.length; var tempOutBufferSize = 4096; let tempOut = state.stdout tempOut = state.stdou...
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux' import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/Button'; import { makeStyles } from '@material-ui/core/styles'; import InputLabel from '@material-ui/core/InputLabel'; impo...
var WebSocketServer = new require('C:\\Program Files\\nodejs\\node_modules\\ws'); var mysql = require('C:\\Program Files\\nodejs\\node_modules\\mysql'); var crypto = require('crypto'); var clients = require("./clients"); var utilities = require("./utilities"); var connection = mysql.createConnection({ host :...
import * as os from "os"; import { SourceMapConsumer } from "source-map"; import { validate } from "schema-utils"; import serialize from "serialize-javascript"; import pLimit from "p-limit"; import { Worker } from "jest-worker"; import { cssnanoMinify, cssoMinify, cleanCssMinify } from "./utils"; import * as schema ...
import './LabelWorkspace.css' import React, { useState, useEffect, useCallback, useMemo } from 'react' import { Typography, Button, Chip, Divider, Switch, FormControlLabel, TextField, Paper, Grid } from '@material-ui/core' import LabelIcon from '@material-ui/icons/Label' import CheckIcon from '@material-ui/icons/Chec...
var nToggleBp=false, cToggleBp=true; $( function(){ baseUrl = document.getElementsByTagName('base')[0].href; //display paris connect popup $(".btn-inscrire").click(function () { displayLoginBp(); return false; }); $("#create_account_login").click(function () { //displayLoginPage...
const _ = require("lodash"); const uuid = require("uuid/v1"); const logger = require('sb_logger_util_v2'); const messageUtils = require('./messageUtil'); const Sequelize = require('sequelize'); const moment = require('moment'); const responseCode = messageUtils.RESPONSE_CODE; const programMessages = messageUtils.PROGRA...
/*! JTaro-Module parse.js v0.2.1 ~ (c) 2017 Author:BarZu Git:https://github.com/chjtx/JTaro-Module/ */ /** * JTaro Module * 将含以下规则的import/export解释成ES5可执行代码 * import * 1) import { a, b, c } from './util.js' * 2) import { abc as a } from './util.js' * 3) import a from './util.js' * 4) import './util.js' * 5) impo...
moment.locale('es'); window.chart = []; $('.typeChart').on('change', function(ev) { var idCanvas = $(this).closest('.panel-chart').find('.canvas-chart').attr('id'); var type = $(this).find(":selected").val(); console.log(idCanvas); console.log(type); var chart = window.chart[idCanvas]; var chartData = chart.con...
//引入http模块 var http = require("http"); var url = require('url'); var express = require('express') var mysql = require('mysql') var mongoClient = require('mongodb').MongoClient; var fs = require('fs'); var url = 'mongodb://localhost:27017/test'; //设置主机名 var hostName = '127.0.0.1'; //设置端口 var port = 8092; var app = expre...
// Store our API endpoint inside queryUrl var queryUrl = ["https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson", "./static/GeoJSON/PB2002_boundaries.json", "./static/GeoJSON/PB2002_orogens.json", "./static/GeoJSON/PB2002_plates.json" ] // Define variables for our base layers var stree...
/** * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ import { __assign } from "tslib"; import * as argparse from 'argparse'; import { ObjectKeys } from '../../mol-util/type-helpers'; import { VOLUME_...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const events_1 = require("events"); const disconnect_status_codes_1 = require("../disconnect_status_codes"); const errors_1 = require("../errors"); const p2p_request_1 = require("../p2p_request"); const utils_1 = require("../utils"); const val...
$(function(){ //0.初始化fileinput var oFileInput1 = new FileInput(); oFileInput1.Init("petShopImgFile", "/open/uploadShopImg"); //初始化下拉 $("#businessStatus").val($("#businessStatus").attr("data")=='true'?'营业':'暂停营业') $("#acceptAppointmentOrNot").val($("#acceptAppointmentOrNot").attr("data")=='true'?'接受':'不接受') //初...
'use strict'; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.ProtoTx = void 0; var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime...
'use strict' const debug = require('debug')('lint-staged:git') const path = require('path') const execGit = require('./execGit') const { exists, readFile, unlink, writeFile } = require('./file') const MERGE_HEAD = 'MERGE_HEAD' const MERGE_MODE = 'MERGE_MODE' const MERGE_MSG = 'MERGE_MSG' const STASH = 'lint-staged ...
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Page } from 'components' import { router } from 'utils' import styles from './index.less' import Buttons from 'components/Buttons' import { Modal,Button, Table, Upload, Row, Col, Icon,message, Form, ...
'use strict'; // Note: all "sizes" are measured in bytes var assert = require('assert'); module.exports = StructArrayType; var viewTypes = { 'Int8': Int8Array, 'Uint8': Uint8Array, 'Uint8Clamped': Uint8ClampedArray, 'Int16': Int16Array, 'Uint16': Uint16Array, 'Int32': Int32Array, 'Uint32...
'use strict'; var chai = require('chai'); var each = require('async-each'); var expect = chai.expect; var sinon = require('sinon'); var utils = require('lib/common/utils'); var AVFSError = require('lib/common/avfs-error'); chai.use(require('sinon-chai')); // Prototype mock factory var createTarget = function...
let Store_Resident = require('../../stores/resident') let Store_Countries = require('../../stores/countries') let Utils = require('../../utils') var photoResident = null; var sectionId = 'ui-resident-new-section'; //let shortcuts = document.querySelectorAll('kbd.normalize-to-platform') var formData = { //id: "1",...
/* Bliss ARchive text-based, `new TextDecoder().decode()`-safe, file archival format structurally composed from the separator-less concatenation of: * [utf8 data] * [7bit data] * metadata (contains mimetypes, file sizes and finally folder structure): ``` mimetype1 , size1, size2, mimetype2 , -size3, size...
// JS implementations for OCaml's Pervasives library // See stdlib.mli for documentation // Infix operators are converted to equivalent JS in // js_of_ast.ml#js_of_path_longident //---------------------------------------------------------------------------- // Js_of_ocaml bis Generator Requirements // type option ...
const { sendSuccess, sendError, send, convertToAsync, errorToObject, createStore, ErrorWithCode } = require("./utils"); const { CRON_PATH } = require("./constants.json"); const { CronJob } = require("cron"); const crypto = require("crypto"); module.exports = async function (log, instance, opts) { if (opts.cron) { ...
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, de...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _koaRouter = _interopRequireDefault(require("koa-router")); var _lodash = require("lodash"); var _errors = require("../errors"); var _models = require("../models"); var _presenters = require("../presenters...
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import autoBind from '../../utils/autobind'; import * as routes from '../../utils/routes'; import EditForm from '../edit-form/edit-form'; import ConfirmModal from '../confirm-modal/confirm-modal'; import * as wordAc...
import CodeMirror from "codemirror/lib/codemirror"; const mainKeywords = [ "application", "deployment", "entity", "enum", "relationship", "paginate", "dto", "service", "skipClient", "skipServer", "search", "angularSuffix", "filter" ], relationshipKws = ["OneToOne...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
/* eslint-disable prefer-destructuring */ /* eslint-disable no-param-reassign */ /* eslint-disable no-plusplus */ const fs = require('fs'); const path = require('path'); const Canvas = require('canvas'); const defaults = { debug: false, maxWidth: 400, fontSize: 18, lineHeight: 28, margin: 10, bgColor: '#ff...
'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]; } } }...
/** * @author https://github.com/LEODPEN * date: 2021/05/26 * @description new version using linked list. */ class PNode { windowId;tabId;next;pre; constructor(windowId, tabId) { this.windowId = windowId; this.tabId = tabId; this.next = null; this.pre = null; } } cla...
import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import { withRouter } from 'react-router-dom'; import { Page, Header, Content, stores, axios, } from 'choerodon-front-boot'; import _ from 'lodash'; import { Button, Table, Checkbox, Select, Tooltip, } from 'choerodon-ui'; impo...
"use strict"; const { vec3, vec4, mat4 } = glMatrix; var canvas; var gl; var program; var points = []; var index = 0; var normals = []; // circle var va = vec4.fromValues(0.0, 0.0, -1.0, 1); var vb = vec4.fromValues(0.0, 0.942809, 0.333333, 1); var vc = vec4.fromValues(-0.816479, -0.471405, 0.333333, ...