text
stringlengths
2
1.04M
const yargs=require('yargs'); const Server=require('./app'); const argv=yargs .usage('anydoor [option]') .option('p',{ alias:'port', describe:'端口号' }) .option('h',{ alias:'hostname', describe:'host' }) .option('d',{ alias:'root', describe:'root path' }) .version() .alias('v','version') .help() .argv; console.lo...
/** * 动作动画帧范围类 * @author 后天 2017.10.2 * */ var Entity; (function (Entity) { var ActionAnimation = /** @class */ (function () { function ActionAnimation(nFrameStart, nFrameCount, nActionTime) { this._nFrameStart = 0; //帧起始 this._nFrameCount = 0; //帧数量 this._nActionTime...
const os = require('os'); const path = require('path'); const R = require('ramda'); const Loki = require('lokijs'); const debug = require('debug')('noko'); const homeDir = os.homedir(); const dbLocation = path.join(homeDir, '.freckle-overtime.db'); let db; let totalsCollection; let configCollection; function init() ...
const SimpleStorage = artifacts.require('./SimpleStorage.sol'); const UpgradableStorage = artifacts.require('./UpgradableStorage.sol'); module.exports = async (deployer) => { await deployer.deploy(SimpleStorage); await deployer.deploy(UpgradableStorage); }
/** * MainController * * 摘要:布局页面控制 * */ (function () { angular.module('passport').controller('MainController', function ($scope) { $scope._init = function () { $('.n-main-nav').find('li').click(function () { $('.n-main-nav').find('li').removeClass('current'); ...
/* Created: 2018-06-19 by James Austin - Trafford Data Lab Purpose: Setup script to handle the styling and behaviour for our leaflet.reachability.js plugin Dependencies: Leaflet.js (http://www.leafletjs.com), leaflet.reachability.js (https://github.com/trafforddatalab/leaflet.reachability) ...
define(function(require) { 'use strict'; const EmailAttachmentModel = require('oroemail/js/app/models/email-attachment-model'); const BaseView = require('oroui/js/app/views/base/view'); const EmailAttachmentView = BaseView.extend({ model: EmailAttachmentModel, inputName: '', ...
//== Class definition var DatatableColumnWidthDemo = function () { //== Private functions // basic demo var demo = function () { var datatable = $('.m_datatable').mDatatable({ // datasource definition data: { type: 'remote', source: { read: { url: 'http://keenthemes.com/metronic/preview...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/ui/core/Control', './library', './SliderTooltipBaseRenderer'], function(Control, Library, SliderTooltipBaseRenderer) { "use strict"; /** * Con...
import './styles.scss'; import React, { Fragment, useState } from 'react'; import PropTypes from 'prop-types'; import StepWizard from 'react-step-wizard'; import { Steps } from '../../components/Steps/Steps'; import { Constrain } from '../Constrain/Constrain'; import { Link, useParams } from 'react-router-dom'; /** ...
module.exports = (sequelize, DataTypes) => { const Formation = sequelize.define( "Formation", { id: { allowNull: false, primaryKey: true, type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, validate: { isUUID: 4, notNull: true } ...
/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array....
/** * Copyright 2016 The AMP HTML Authors. 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 require...
"use strict"; define("ace/snippets/java", ["require", "exports", "module"], function (require, exports, module) { "use strict"; exports.snippetText = "## Access Modifiers\n\ snippet po\n\ protected\n\ snippet pu\n\ public\n\ snippet pr\n\ private\n\ ##\n\ ## Annotations\n\ snippet before\n\ @Before\n\ static v...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var fetchTimeout = exports.fetchTimeout = function fetchTimeout(fetchPromise) { var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6000; var abortFunc = null; var abortPromise = new Promise(func...
/*! * Copyright (C) 2020 浦 公統 * Released under the MIT license. * see https://opensource.org/licenses/MIT/ */ /** * @file anyCalculatorFramework.js * @brief なんでも計算フレームワーク * @remark formatDecimal.js が必要 * @version 1.2.0 */ /** * 項目クラス (入出力項目クラスの親クラス) */ class itemBase { /** * コンストラクタ * @param title ...
import { Icon, IconButton } from '@hypothesis/frontend-shared'; import classnames from 'classnames'; /** * @typedef Student * @prop {string} displayName */ /** * @typedef StudentSelectorProps * @prop {(index: number) => any} onSelectStudent - * Callback invoked when the selected student changes * @prop {numb...
var lista = [] var res = document.querySelector('div#res') function adicionar(){ var numero = document.querySelector('input#txtnum') var num = Number(numero.value) var tab = document.querySelector('select#txttab') if (num < 1 || num > 100){ //Verifica se o valor é válido (entre 1 e 100) window...
// import '@ovh-ux/ng-translate-async-loader'; // import 'angular-translate'; // import 'ovh-ui-angular'; import component from './novnc.component'; import './index.less'; const moduleName = 'ovhManagerVpsKvmNovnc'; angular .module(moduleName, [ 'ngTranslateAsyncLoader', 'oui', 'pascalprecht.translate'...
//# sourceMappingURL=chunk-0ab6b84e.8ed53ba8.js.map
//https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript export function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec...
module.exports = { outputDir: './../public/', publicPath: process.env.NODE_ENV === 'production' ? '/vendor/blanket/' : '/', filenameHashing: false, }
const appJs = (db) => { let setUpRequired = ""; if (db.toLowerCase() === "mongodb") { setUpRequired = `import "./models/setup";`; } return `import express from 'express'; import bodyParser from 'body-parser'; import cors from 'cors'; import routes from './routes'; ${setUpReq...
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export const store = new Vuex.Store({ state:{ pdfInfo:"", }, mutations:{ change_pdfInfo(state,payload){ state.pdfInfo = payload; }, }, getters: { pdfInfo: state => state.pdfInfo, } }) export default sto...
import ncformCommon from "@vxcontrol/ncform-common"; const { getValType } = ncformCommon.ncformUtils; const { ValidationRule } = ncformCommon; class NumberRule extends ValidationRule { constructor(props) { super(props); this.name = "number"; this.defaultErrMsg = "it's not a number."; } validateLogi...
function Cart (){ this.orders = []; // this.ordersType = ["Delivery" , "Carry Out"; this.shippingType = ""; this.shippingCost=0; this.total =0; } Cart.prototype.addOrder = function(order){ //this.orders.push(order); this.orders.push(new Pizza()); this.orders[this.orders.length - 1].cost = order.cost; ...
/** * Expose `pathToRegexp`. */ module.exports = pathToRegexp; module.exports.parse = parse; module.exports.compile = compile; module.exports.tokensToFunction = tokensToFunction; module.exports.tokensToRegExp = tokensToRegExp; /** * Default configs. */ var DEFAULT_DELIMITER = '/'; var DEFAULT_DELIMITERS = './'; /*...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var source = require('./faFaceGrinSquint'); exports.definition = { prefix: source.prefix, iconName: source.iconName, icon: [ source.width, source.height, source.aliases, source.unicode, source.svgPathData ]}; expor...
export default { name: 'ElTableFooter', render(h) { const sums = []; this.columns.forEach((column, index) => { if (index === 0) { sums[index] = this.sumText; return; } const values = this.store.states.data.map(item => Number(item[column.property])); const precisions ...
(function ($) { var FeedbackForm = function(wrapper) { this.wrapper = $(wrapper); this.setup(); } FeedbackForm.prototype = { setup: function() { this.toggleBtn = this.wrapper.find('.feedback-form__toggle'); this.formHeading = this.wrapper.find('.feedback-for...
if (global.GENTLY) require = GENTLY.hijack(require); var fs = require('fs'); var util = require('formidable/lib/util'), path = require('path'), File = require('formidable/lib/file'), MultipartParser = require('formidable/lib/multipart_parser').MultipartParser, QuerystringParser = require('formidable/li...
const mongoose = require('mongoose') const Schema = mongoose.Schema const cervezaSchema = new Schema({ nombre: { type: String, required: true }, descripción: String, graduación: String, envase: String, precio: String }) const Cerveza = mongoose.model('Cerveza', cervezaSchema) module.exports = Cer...
/* * Copyright (c) 2020 Huawei Device Co., Ltd. * 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 ...
var searchData= [ ['test',['Test',['../class_test.html',1,'Test'],['../_arduino_unit_8h.html#a191e80e8763446a0e725a8e58fb3380b',1,'test():&#160;ArduinoUnit.h']]], ['test_5fmax_5fverbosity',['TEST_MAX_VERBOSITY',['../_arduino_unit_8h.html#a59a891cb5163a9ed52a47fe580c70609',1,'ArduinoUnit.h']]], ['test_5fverbosity'...
import { FluidFunc, PropTypes, React } from "../imports"; import { PageDefaultLink } from "./PageDefaultLink"; function linkOnClick(link, goToUrl, hide, show) { if (link.root && !link.show && (link.active || !link.url)) { show(link.group); } else if (link.root && link.show && (link.active || !link.url)) { ...
import { expect } from 'chai' import { getNamespaceFromPath, getEnhancer } from '../../src/utils' describe('utils', () => { describe('getNamespaceFromPath', () => { it('should work with relative path', () => { expect(getNamespaceFromPath('./a/b/c.js')).to.be.equal('a.b.c') expect(getNamespaceFromPath...
/** * 信件投递审核 * * @author 陶开杰 */ Ext.define('OA.parts.core.gridtools.batch.LetterDeliverBlackListTool', { extend: 'Ext.button.Button', alias: 'widget.letterdeliverblacklisttool', text: '(信件)黑名单', scale: 'small', iconCls: 'default_btn_icon_plus', handler: function (button, event) { var...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal, Form, Input } from 'antd'; import Canvas from '../../canvas/Canvas'; import AnimationProperty from '../properties/AnimationProperty'; class AnimationModal extends Component { static propTypes = { form: PropTypes....
export { default } from './MUIDataTable'; export { default as Popover } from './components/Popover'; export { default as TableBodyCell } from './components/TableBodyCell'; export { default as TableBody } from './components/TableBody'; export { default as TableBodyRow } from './components/TableBodyRow'; export { default...
// @flow import {Foo} from './foo'; const foo: Foo = new Foo(); foo.foo();
import { newLogger } from '@dbux/common/src/log/logger'; import { registerCommand } from './commandUtil'; import { showInformationMessage } from '../codeUtil/codeModals'; import { nextMode } from '../traceDetailsView/nodes/ExecutionsTDNodes'; import { NavigationMethods } from '../traceDetailsView/nodes/NavigationNode';...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's // vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisa...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Person20 = factory()); }(this, (function () { 'use strict'; var _20 = { elem: 'svg', attrs: { xmlns: 'ht...
import React from 'react'; const App = ({ children }) => { return <div className="container"> {children} </div>; }; export default App;
/** * see https://codepen.io/qtizee/pen/JjGwBbx * A debounce funtion for quick implementation 1. If leading and trailing options are true, func is invoked on the trailing edge of the timeout only if the debounced function is invoked more than once during the wait timeout. */ function debounce(func, wait, option...
export const caselists = 10; export const peoplelist = [ { xh: 1, name: '张三', sex: '男', id: '95682f02-ed8b-ab5a-a1f0-edabd8e9afc7', entryCause: '抢劫', optCreateTime: '2019-10-12 15:13', time: '2019-10-13 13:24', babm: 'babm', bardw: '22222', policename: '张三、王雷', }, { xh:...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
import * as React from "react" function SvgComponent(props) { return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="scarlab scarlab-yen" {...props}> <path d="M9 7L11.8832 1...
load(); function load() { $.ajax({ url: "all-customer", method: "GET", success: function (a) { $("#container").html(a) } }) } $(document).ready(function () { var a = ".menu-item"; $(a).on("click", function () { $(a).removeClass("menu-item-active"); ...
const webpack = require('webpack') const merge = require('webpack-merge') const paths = require('../paths') module.exports = merge( { mode: 'development', plugins: [ new webpack.HotModuleReplacementPlugin(), ], devServer: { contentBase: paths.appPublic, stats: 'errors-only', ...
/** * Copyright (c) 2017, CTI LOGIC * Copyright (c) 2006-2017, JGraph Ltd * Copyright (c) 2006-2017, Gaudenz Alder * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain ...
/** * * Common settings for server and browser * * ************************************************** * * WARNING! Never access any secrets in this file * * ************************************************** * */ const { getEnv, devDefaults } = require('kth-node-configuration') const devPort = 3000 const d...
import request from '../utils/request'; //登录 export const userLogin = query => { return request({ url: '/login/userLogin', method: 'get', params: query }); }; //保存图片 export const uploadImg = data => { return request({ url: '/cloud/uploadImg', method: 'post', d...
export const displayCurrentFilter = filter => { const currentFilter = []; Object.keys(filter).map(key => { if (filter[key].length > 0) { currentFilter.push(key); } }); const convertedFilter = currentFilter.map(filter => { switch (filter) { case "colors": return "color"; c...
//数据库操作语句 var sqlMap = { user: {//用户表 add: 'insert into user (username, email, password) values (?,?,?)', select: 'select * from user', update: 'update user set username=?,email=?,password=? where id=?', delete: 'delete from user where id=?' }, obj: {//客观题表 add: 'inse...
/** * Kendo UI v2020.2.617 (http://www.telerik.com/kendo-ui) * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
var docusign = require('../src/index'); var oAuth = docusign.ApiClient.OAuth; var restApi = docusign.ApiClient.RestApi; var config; try { config = require('../test-config'); } catch (err) { console.error(err); } var assert = require('assert'); var path = require('path'); var Buffer = global.Buffer.from ? global.Bu...
import express from 'express'; import bodyParser from 'body-parser'; import logger from 'morgan'; import http from 'http'; import cors from 'cors'; // initiliase the express app const app = express(); app.use(logger('dev')); app.use(cors()); // parse incoming http requests app.use(bodyParser.json()); app.use(bodyPar...
// Copyright 2020 The casbin Authors. 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 a...
'use strict'; angular.module('libappApp') .controller('TransactionsDetailController', function ($scope, $stateParams, Transactions, User, Book) { $scope.transactions = {}; $scope.load = function (id) { Transactions.get({id: id}, function(result) { $scope.transactions = res...
var express = require('express'); var restify = require('restify-clients'); var assert = require('assert'); var router = express.Router(); // Creates a JSON client - Declaração de onde esta o serviço var client = restify.createJsonClient({ url: 'http://localhost:4000' }); /* GET users listing. */ router.get('/', fu...
/* * Copyright (C) 2014 MetaBrainz Foundation * * This file is part of MusicBrainz, the open internet music database, * and is licensed under the GPL version 2, or (at your option) any * later version: http://www.gnu.org/licenses/gpl-2.0.txt */ import test from 'tape'; import * as validation from '../../edit/va...
import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' import { SheetsRegistry, JssProvider } from 'react-jss' export default class JssDocument extends Document { static getInitialProps (ctx) { const registry = new SheetsRegistry() const page = ctx.renderPage(App => props ...
import $http from '@/libs/axios' /* 查询 * @id menuType */ export const contextMenu = (data) => { return $http.request({ api: 'user', url: '/context/enums/'+ data, method: 'get' }) }; /* 查询 * @id menuType */ export const contextEnums = async (api) => { let data ; await $http.request({ api: ap...
'use strict'; module.exports = (Franz, options) => { function getMessages() { let directCount = 0; let indirectCount = 0; let roomInfoContainer = document.querySelectorAll('.unread'); Array.prototype.forEach.call(roomInfoContainer, function (room) { directCount = 1 }); Franz.setBadge(...
!function(e){MathJax.Hub.Insert(e.Parse.Entity,{ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Egrave:"È",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Epsilon:"Ε",Equal:"⩵",Esim:"⩳",Eta:"Η",Euml:"Ë",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecirc:"ê",ecolon:"≕",ecy:"э",e...
tinymce.addI18n('nl_BE',{ "Redo": "Opnieuw doen", "Undo": "Ongedaan maken", "Cut": "Knippen", "Copy": "Kopi\u00ebren", "Paste": "Plakken", "Select all": "Alles selecteren", "New document": "Nieuw document", "Ok": "Ok", "Cancel": "Annuleren", "Visual aids": "Visuele hulpmiddelen", "Bold": "Vet", "Italic": "Cursief", "Un...
// Copyright The Closure Library Authors. // SPDX-License-Identifier: Apache-2.0 // This file has been auto-generated, please do not edit. // Disable Clang formatter for this file. // See http://goo.gl/SdiwZH // clang-format off goog.addDependency('../../third_party/closure/goog/mochikit/async/deferred.js', ['goog.a...
import axios from 'axios'; import { Auth } from 'aws-amplify'; const client = axios.create({ baseURL: process.env.REACT_APP_API_HOST, }); client.interceptors.request.use(async (config) => { const auth = `Bearer ${(await Auth.currentSession()) .getIdToken() .getJwtToken()}`; config.headers.Authorization ...
const Setting = require('./setting'); class Channel { /** * @property {Setting[]} settings */ /** * @property {string} name */ /** * @property {string} method */ constructor({settings /* Setting[] */, name /* string */, method /* string */} = {}) { Object.assi...
import Player from './player.js'; let myPlayer = new Player(); let myButtonsPlay = document.querySelectorAll("a.ion-ios-play.play"); myButtonsPlay[0].addEventListener('click', function (event) { myPlayer.play() });
(function() { var check_max_interval = 300000; var check_interval_ms = 1000; var check_start_time = (new Date()).getTime(); var sha256_sent = null; var check_interval = setInterval(function() { try { if ((new Date()).getTime()-check_start_time > check_max_interval) { clearInterval(check_interval); ...
var cluster = require('cluster'), numCPUs = Math.min(2,require('os').cpus().length); if (cluster.isMaster && process.env.NODE_ENV != "testing") { // Fork workers for (var i = 0; i < numCPUs; i++) { cluster.fork(); } cluster.on('exit', function (worker, code, signal) { console.log('...
import axios from 'axios'; import { browserHistory } from 'react-router'; import Socket from '../sockets'; import { INIT_GRID, MAKE_TURN, UPDATE_HIT_COUNT, MARK_AS_SUNK, TOGGLE_ACTIVE_TURN, UPDATE_OPPONENT_HIT_COUNT, } from './types'; import { HIT_CHARACTER, MISS_CHARACTER } from '../constants'; export...
define({ "_widgetLabel": "Liten elv", "noStreamLayer": "Det er ingen forhåndskonfigurerte alternativer for strømmingslag.", "streamControls": "Strømmingskontroller", "startStreaming": "Start strømming", "stopStreaming": "Stans strømming", "clearObservation": "Fjern tidligere observasjoner", "streamFilter"...
var Q = require('q'); var url = require('url'); var _ = require('lodash'); var qs = require('querystring'); var crypto = require('./crypto'); var http = require('http'); var https = require('https'); var baseLocation = "://tuner.pandora.com/services/json/"; function createRequestor(clientInfo) { var encryptor = cr...
import * as C from './constant' import U from './utils' import en from './locale/en' let L = 'en' // global locale const Ls = {} // global loaded locale Ls[L] = en const isDayjs = d => d instanceof Dayjs // eslint-disable-line no-use-before-define const parseLocale = (preset, object, isLocal) => { let l if (!pre...
const DrawCard = require('../../drawcard.js'); class ToTheRoseBanner extends DrawCard { setupCardAbilities() { this.action({ title: 'Gain gold then sacrifice character', phase: 'marshal', target: { activePromptTitle: 'Select a character', ...
const Sequelize = require('sequelize') const db = require('../db') const Interactions = db.define('Interactions', {}) module.exports = Interactions
var gulp = require('gulp'); var clean = require('gulp-clean'); var order = require('gulp-order'); var concat = require('gulp-concat'); var rename = require('gulp-rename'); // for js var ngAnnotate = require('gulp-ng-annotate'); var uglify = require('gulp-uglify'); // css var stylus = require('gulp-stylus'); var autopre...
/* state argument is not application state, only the state this reducer is responsible for */ export default function(state = null, action) { switch(action.type) { case 'BOOK_SELECTED': return action.payload; } return state }
/** * This factory produces a worker function that tests the response of a callback * instance. * @factory */ function _HasResponseOf(isMockCallback) { /** * @worker * @type {assertion} * @param {callback} cb The callback object to be tested. * @param {number} num The callback instance index. * @param {any...
import React from 'react' import Card from './Card' import Candidate from './Candidate'; import FlipMove from 'react-flip-move'; export default function Candidates({ candidates, previousVotes, previousPercentages }) { return ( <div> <FlipMove> {candidates.map((candidate, index) ...
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ import Editor from '$clayui.com/src/components/Editor'; import ClayNav, {ClayVerticalNav} from '@clayui/nav'; import React from 'react'; const navigationImports = `import ClayNav from '@clayui/nav';`...
"use strict"; var util = require("util"); var events = require("events"); var EventEmitter = events.EventEmitter || events; var SerialPort = require("serialport"); var modbusSerialDebug = require("debug")("modbus-serial"); /* TODO: const should be set once, maybe */ var EXCEPTION_LENGTH = 5; var MIN_DATA_LENGTH = 6; v...
'use strict' const test = require('tape') const { MemoryLevel } = require('memory-level') const { pipeline } = require('readable-stream') const { ManyLevelHost, ManyLevelGuest } = require('..') const ModuleError = require('module-error') test('iterator.next() error', async function (t) { t.plan(4) const db = new...
// Math类型 export const math_type = ["round", "ceil", "floor"]; // 阿拉伯数字 export const arabic_numberals = { lower: { num: ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"], unit: ["", "十", "百", "千", "万"], level: ["", "万", "亿"] }, upper: { num: ["零", "壹", "贰", "叁", "肆", "伍", ...
/** * This plug-in will add automatic detection for currency columns to * DataTables. Note that only $, £ and € symbols are detected with this code, * but it is trivial to add more or change the current ones. This is best used * in conjunction with the currency sorting plug-in. * * DataTables 1.10+ has currency s...
/* Use this old export style until sequelize cli supports es6 syntax */ function defaultExport() {} require('dotenv').config(); defaultExport.DB_TYPES = { MONGO: 'MONGO', POSTGRES: 'POSTGRES', NONE: 'NONE' }; module.exports = defaultExport;
/* * (c) Copyright 2015 Hewlett-Packard Development Company, L.P. * * 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 requ...
/* * Globalize Culture es-AR * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need t...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'notification', 'pl', { closed: 'Powiadomienie zostało zamknięte.' } );
// Prompt the user to enter what they are currently doing const userInput = process.argv[2]; console.log('Current user activity:', userInput); // If the user does not enter anything, return an error message if (!userInput) { console.error( '\nPlease enter your current activity\nUsage: `node index.js <activity>`'...
import React,{Fragment, useEffect } from 'react' import { withPrefix, Link } from "gatsby" import Helmet from "react-helmet" import MainLogo from '../assets/images/logo/main_logo.png'; import {faTwitter, faInstagram, faFacebook, faGoodreads } from '@fortawesome/fontawesome-free-brands' import { FontAwesomeIcon } from "...
import { Global } from '@emotion/react'; const Fonts = () => ( <Global styles={` @font-face { font-family: 'Product Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ProductSans-Bold.woff2') format('woff2'); unicode-range: U+000...
const inquirer = require('inquirer'); const fs = require('fs'); // const { inherits } = require('util'); const Manager = require('./lib/manager') const Engineer = require('./lib/engineer') const Intern = require('./lib/intern') const generateHTML = require('./Assets/generateHTML') const teamList = [] function addManag...
const config = require('../config/tamper'); const generateScript = () => { return config.require?.map(v => `<script src="${v}"></script>`).join('\n') ?? ''; }; const htmlPlugin = () => { return { name: 'html-require-inject', transformIndexHtml(html) { return html.replace(/<script class="inject-block...
import React from 'react'; import { Card, Form, Input, Button, Space, Alert, Switch, Row, List, Col, Skeleton } from 'antd'; import { LockOutlined } from '@ant-design/icons'; import createForm from '../../utils/form'; function Password() { const cardStyle = { width: 400, }; const [ui, setUI] = React.useState(...
// @flow import type { EdgeCurrencyInfo } from 'edge-core-js' import type { EngineCurrencyInfo } from '../engine/currencyEngine.js' import type { BcoinCurrencyInfo } from '../utils/bcoinExtender/bcoinExtender.js' import { imageServerUrl } from './constants.js' const bcoinInfo: BcoinCurrencyInfo = { type: 'bitcoin', ...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** File Name: 15.5.4...