text
stringlengths
2
1.04M
import React from "react" import { graphql } from "gatsby" import Header from '../components/Header'; import css from './blogTemplate.css'; export default function Template({ data, // this prop will be injected by the GraphQL query below. }) { const { markdownRemark } = data // data.markdownRemark holds our post d...
define([ "app/config" ], function ( config ) { return { applyYearRenderer: function (layer) { classBreakInfos = config.yearClasses.map(function (element) { return { minValue: element.minYear, maxValue: element.maxYear, symbol: { type: "mesh-3d", ...
import React from "react"; import { Link } from "react-router-dom"; import SignOutButton from "../authentication/SignOutButton"; const TopBar = ({ user }) => { const unauthenticatedListItems = [ <li key="sign-in"> <Link to="/user-sessions/new">Sign In</Link> </li>, <li key="sign-up"> <Link to...
var Fs = require('fs'); var Path = require('path'); module.exports = function (robot) { var path; path = Path.resolve(__dirname, 'scripts'); return Fs.exists(path, function (exists) { var file, i, len, ref, results; if (exists) { ref = Fs.readdirSync(path); results = []; for (i = 0, len...
import test from "ava"; import md from "markdown-it"; import TemplateConfig from "../src/TemplateConfig"; import eleventyConfig from "../src/EleventyConfig"; test("Template Config local config overrides base config", async t => { let templateCfg = new TemplateConfig( require("../config.js"), "./test/stubs/co...
/* * * Couch module and utils * * jquery.cocuh docs http://daleharvey.github.io/jquery.couch.js-docs/symbols/ * jquery.couchlib http://<path_to_couchdb_server>/_utils/script/jquery.couch.js * * */ define([ 'jquery', 'modules/module', 'modules/utils', 'lib/jquery.couch' ], function ($, module, util...
window.onload = function() { localStorage.clear(); sessionStorage.clear(); if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { alert("This website is not fully compatible with your device. You should use a desktop computer or a laptop!"); } } function d...
// @copyright @polymer\iron-checked-element-behavior\iron-checked-element-behavior.js // @copyright 2017-2018 adalberto.lacruz@gmail.com import { TYPE_BOOL, TYPE_STRING } from '../util/constants.js'; // TODO: validate, form. Review active/check relation /** * [checked ⛳] * [required ⛳aria-required] * [toggles ⛳] ...
StyleSheetList.prototype.getDeclaration = function( /* selector1, selector2, ... */) { for (var i = 0; i < arguments.length; i++) { var selector = arguments[i]; var reSelector = new RegExp('(?:^|,\\s*)' + selector.replace(/[\[\]\-]/g, function(m) { return '\\' + m; }) + '(?:$|\\s...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // ...
import React from 'react' import {makeStyles} from '@material-ui/core/styles' import clsx from 'clsx' import Card from '@material-ui/core/Card' import CardHeader from '@material-ui/core/CardHeader' import CardMedia from '@material-ui/core/CardMedia' import CardContent from '@material-ui/core/CardContent' import CardAct...
/** * @module olgm/herald/TileSource */ import {getIntersection, getSize} from 'ol/extent.js'; import {get} from 'ol/proj.js'; import TileImage from 'ol/source/TileImage.js'; import PanesOverlay from '../gm/PanesOverlay.js'; import SourceHerald from './Source.js'; import Listener from '../listener/Listener.js'; impor...
import React, { useMemo, useCallback } from 'react' import { Pages } from './Pages' export const Pagination = props => { const { page, pageSize, pageSizeOptions, pageText, pages, isTop, canNext, canPrevious, onPageChange, onPageSizeChange, ButtonRow } = props const cu...
/* * (c) Copyright IBM Corp. 2021 * (c) Copyright Instana Inc. and contributors 2019 */ 'use strict'; const port = process.env.APP_PORT || 3216; require('../../../../')(); const bodyParser = require('body-parser'); // pino log spans are used to verify that follow up calls are traced correctly after a GRPC exit c...
/* ******************************************************************************************* * * * Plese read the following tutorial before implementing tasks: * * https://developer.mozilla.org/en...
export default function updateHeapFunction(state, action) { console.log(action.payload); state.heap = action.payload; }
SLIDES.push({ id: "credits", onstart: function(self){ self.add({ id:"bg", type:"Background", color:"#222" }); // Circular Wordbox self.add({ id:"text", type:"TextBox", x:0, y:35, width:960, height:400, align:"center", text_id:"credits", color:"#fff" }); } });
var searchData= [ ['detail_128',['Detail',['../struct_detail.html',1,'']]] ];
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
import React from 'react'; export const SmileyFace = ({ openEmojiPicker }) => ( <div onClick={openEmojiPicker} style={{ display: 'flex' }}> <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'> <path fill='#000' fillOpaci...
import './index.less' import provinceSelect from './../../common/provinceSelect/provinceSelect' import bottomNode from './bottomNode' import FooterLayer from './footerLayer' // 兼容部分不支持 NodeList.forEach 方法的机型,使用 Array.prototype.forEach.call // import util from './../../common/util' const {fetchJsonp} = window export...
var map_53c1854ba1f1470fba299c4f656c716a = L.map( "map_53c1854ba1f1470fba299c4f656c716a", { center: [-22.9, -43.4], crs: L.CRS.EPSG3857, zoom: 11, zoomControl: true, preferCanvas: false, ...
/** * @desc - Whenever an agent clicks on the send reply button in the ticket * details page, this app displays a success notification. */ $(document).ready( () => { /** Promise .then() * @param - resolve block, reject block */ app.initialized().then((_client) => { // Obtains a Client Object var client...
import { ethers } from "ethers"; import sdk from "./1-initialize-sdk.js"; import { readFileSync } from "fs"; import { APP_MODULE_ADDRESS } from '../src/constants'; const app = sdk.getAppModule(APP_MODULE_ADDRESS); (async () => { try { const bundleDropModule = await app.deployBundleDropModule({ // The coll...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopRequi...
import React, { Component } from 'react' import { Container, Row, Col, Form, Button } from 'react-bootstrap' import Tags from "@yaireo/tagify/dist/react.tagify.js"; import "./Discover.scss" import PostService from '../../services/PostService'; import GetService from '../../services/GetService'; import { DISCOVERURL, ST...
const test = require('tape') const nlp = require('../_lib') test('capture groups silent by default', function (t) { let m = nlp('one two three four five six seven').match('one [two] [three four five] six [seven]') t.equal(m.group(0).text(), 'two', 'group of 1') t.equal(m.group(1).text(), 'three four five', 'con...
import BaseView from 'oroui/js/app/views/base/view'; import template from 'tpl-loader!orodatagrid/templates/datagrid/toggle-group.html'; import _ from 'underscore'; import __ from 'orotranslation/js/translator'; /** * Updates grid's url params with options to turn on/off data pagination */ const TogglePaginationView...
const createOrUpdate = (minX, minY, maxX, maxY, extent) => { if (extent) { extent[0] = minX; extent[1] = minY; extent[2] = maxX; extent[3] = maxY; return extent; } else { return [minX, minY, maxX, maxY]; } }; const _boundingExtentXYs = (xs, ys, extent) => { const minX = Math.min.apply(n...
/** * Single Page Nav Plugin * Copyright (c) 2013 Chris Wojcik <hello@chriswojcik.net> * Dual licensed under MIT and GPL. * @author Chris Wojcik * @version 1.1.0 */ // Utility if (typeof Object.create !== 'function') { Object.create = function(obj) { function F() {} F.prototype = obj; ...
export { GlobalStyle, Theme } from './configurations'
module.exports={A:{A:{"1":"A B","2":"I D E F gB"},B:{"1":"C J K L M N O R S T U V W X P Y Z G a"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H b I D E F A B C J K L M N O c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB XB GB YB Q HB IB JB KB LB MB NB OB PB QB RB SB TB ZB aB bB R S T iB U V W X P Y Z G a","2":"hB WB ...
define(function(){ return { /* 1 */ //"_id" : ObjectId("5193843c58e3383974000dda"), "changes" : [ { "id" : "0", "name" : "A", "numBars" : "6", "repeat" : "0", "endingNumBars" : "0", "timeSignature" : "", ...
const { MessageEmbed } = require('discord.js'); module.exports = { name: 'say', category: 'moderation', description: 'Bot repeats what you tell it to.', usage: `say`, run: (client, message, args) => { message.delete() if (!message.member.hasPermission('MANAGE_MESSAGES')) ...
const cloneDeep = require('lodash.clonedeep'); const { assert } = require('./common'); const { web3 } = require('hardhat'); const { toBN, isHex } = web3.utils; const { toUnit, fromUnit, divideDecimal, multiplyDecimal, takeSnapshot, restoreSnapshot, } = require('../utils')(); /** * This helper acts as a proxy (o...
var express = require('express') , router = express.Router(); const { productContract, fromAddress, fromNodeSubject } = require('../web3services'); var multer = require('multer'); // v1.0.5 var upload = multer(); // for parsing multipart/form-data var bodyParser = require('body-parser'); router.use(bodyParser.json(...
require("ts-node/register"); const expect = require("expect"); const { describe, it, beforeEach, afterEach, context } = require("tap").mocha; const td = require("testdouble"); const { logger } = require("../mocks/createLogger"); const jsonFilePlusMock = require("../mocks/json-file-plus"); td.replace("json-file-plus", ...
/*! For license information please see 6309.36bb74e5894e25340981.chunk.js.LICENSE.txt */
var aws = require("aws-sdk"); var ddb = new aws.DynamoDB(); const cognito = new aws.CognitoIdentityServiceProvider({ apiVersion: "2016-04-18", }); const TABLE_NAME = process.env.USER_TABLE; readItem = async (email) => { const params = { TableName: TABLE_NAME, IndexName: "byEmail", KeyConditionExpressi...
export default class CssRuleDefCodes { static get BackgroundColor() { return 'BackgroundColor'; }; static get BackgroundImage() { return 'BackgroundImage'; }; static get Color() { return 'Color'; }; static get Height() { return 'Height'; }; static get Width() { return 'Width'; }; static get TextAlign() { return '...
import React from 'react'; import './Placeholder.less'; function getPlaceholder(rowCount, className) { const rows = []; for (let i = 0; i < rowCount; i++) { rows.push(<div className="place__line" key={i} />); } const clazz = `place ${className == null ? '' : className}`; return ( <div className={cla...
export const followPlay32F = "M32 24.502L21 32V17zM3 8V3h5V1H1v7zm28 0V1h-7v2h5v5zM8 29H3v-5H1v7h7zm7-14h-2v2h2zm-4 4H9v2h2zm-2 6H7v2h2zm12-13h6v-1h-6zm-11 0h6v-1h-6zm8 2v6h1v-6zm0-11v6h1V3zm.93 7h-.86A1.07 1.07 0 0 0 17 11.07v.86A1.07 1.07 0 0 0 18.07 13h.86A1.07 1.07 0 0 0 20 11.93v-.86A1.07 1.07 0 0 0 18.93 10z";
import Pagination from './src/main'; /* istanbul ignore next */ Pagination.install = function(Vue) { Vue.component(Pagination.name, Pagination); }; export default Pagination;
{ const head = [""]; if (remoteMasterResults) { head.push(chalk.yellow.bold("Remote (Merge Base)")); } if (localResults) { head.push(chalk.green.bold("Local (Current Branch)")); } if (localResults && remoteMasterResults) { head.push(""); } const table = new Table({ head }); addBu...
import { defaultResolveConfig, build, start, watch, runTestcafe, merge, stop, reset } from 'resolve-scripts' import appConfig from './config.app' import devConfig from './config.dev' import prodConfig from './config.prod' import testFunctionalConfig from './config.test_functional' const launchMode = p...
module.exports = (app) => { const mongoose = app.get('mongooseClient'); const { Schema } = mongoose; const users = new Schema({ username: { type: String, required: true, unique: true }, email: { type: String, unique: true }, password: { type: String, required: true } }); return mongoose.model('u...
(function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery", "../jquery.validate"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { /* * Translat...
$(document).ready(function() { let navHeight = 270; $("#home").addClass("active"); $('#home').on('click', function() { $('html, body').animate({ scrollTop: $(".home").offset().top - navHeight }, 1000); }); $('#projects').on('click', function() { $('html, body').animate({ scrollTo...
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS -------------------------------- (C) --------------------------------- Author: Mihai Bazon <...
import amqp from 'amqplib/callback_api'; // const amqp = require('amqplib/callback_api'); const rabbitMq = {}; const rabbitMqServer = 'amqp://guest:guest@localhost:5672'; rabbitMq.newOrderQueue = 'order'; const queues = ['order', 'ETH/BTC', 'INVO/BTC', 'TRZ/BTC']; const durableQueues = ['order']; const hasTtlQueues =...
(function(){ /** * using AMD (Asynchronous Module Definition) API with OzJS * see http://ozjs.org for details * * Copyright (C) 2010-2012, Dexter.Yy, MIT License * vim: et:ts=4:sw=4:sts=4 */ var es5 = require('./es5'); var _ = require('./mix'); var mix = _.mix; exports.construct = function(base, mixes, ...
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.1.1 build: 47 */ YUI.add("querystring-parse",function(E){var B=E.namespace("QueryString");B.parse=function(G,H,F){return E.Array.reduce(E.Array.map(G.split(H||"&"),D(F||"="...
import React from "react"; import CalendarWrapper from "./calendarWrapper"; export default function ContentWrapper(props) { return ( <div> <CalendarWrapper month={props.month}/> </div> ) }
var restify = require('restify'), request = require('supertest'), Router = require('../lib/router'); describe('router', function() { var fakeServer, router, port = 9000; beforeEach(function() { fakeServer = restify.createServer(); router = new Router(fakeServer, 'test/fixtures'); ...
'use strict'; const events = require('events'); const is = require('./is'); const sharp = require('../build/Release/sharp.node'); /** * An Object containing nested boolean values representing the available input and output formats/methods. * @member * @example * console.log(sharp.format); * @returns {Object} */...
module.exports = require('./src/tubular');
'use strict'; var _ = require('lodash'); var Constants = require('./constants'); function Utils() {}; Utils.formatAmount = function(bytes, unitCode, opts) { //if(!_.isNumber(bytes)) throw new Error("Variable should be a Number."); //if(!Constants.UNITS[unitCode]) throw new Error("Illegal Argument."); ...
module.exports = { recursive: true, require: '@babel/register', 'watch-files': ['src/**/*.js', 'test/**/*.js'], };
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' import SEO from '../components/seo' const IndexPage = ({data}) => ( <Layout> <SEO title="Home" keywords={[`gatsby`, `application`, `react`]} /> <h1>Welcome to your new Gatsby site.</h1> <p>Feel free to read...
import findWhere from './findWhere'; export default function splice(arr, item, add, byValueOnly) { let i = arr ? findWhere(arr, item, true, byValueOnly) : -1; if (~i) add ? arr.splice(i, 0, add) : arr.splice(i, 1); return i; }
const childProcess = require('child_process') const http = require('http') const path = require('path') const express = require('express') // configuration of port number and number of total items to provide const port = process.env.PORT - 0 || 3000 const batch = process.env.BATCH - 0 || 3 const total = process.env.T...
/** * * index.js * */ window.lang; window.backPage; window.intervalId; window.jqXHR; window.currCode; window.langChanged; window.lastUserName; window.currentTheme; window.username; window.password; window.baseUrl = "https://fiskas-app.sintesys.hr/"; $(document).bind("mobileinit", function() { console....
import { Actor, HttpAgent } from "@dfinity/agent"; // Imports and re-exports candid interface import { idlFactory } from './dip721.did.js'; export { idlFactory } from './dip721.did.js'; // CANISTER_ID is replaced by webpack based on node environment export const canisterId = process.env.NEXT_PUBLIC_DIP721_CANISTER_ID;...
/* * * HTML编译输出过滤器 * * Description * */ // 文字溢出过滤器 export const textOverflow = (text, length) => { const _length = length || text.length const cansub = _length && text && text.length > _length return cansub ? text.substr(0, _length) + '...' : text } // 首字母大写 export const firstUpperCase = str => { return str ?...
// Copyright 2021 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
export default ` # Steps 步骤条 引导用户按照流程完成任务的导航条。 ## 何时使用 当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。 ## antd Steps API [详情请点击查看官方](https://ant.design/components/steps-cn/) \`\`\`jsx <Steps> <Step title="第一步" /> <Step title="第二步" /> <Step title="第三步" /> </Steps> \`\`\` ### Steps 整体步骤条。 | 参数 | 说明 ...
const AWS = require('aws-sdk'); const AWS_ES = require('http-aws-es'); const elasticsearch = require('elasticsearch'); // File containing map to update const input = process.argv[2]; if (input === undefined) { console.log('No maps were updated due to insufficient arguments.\nRun this script with the following comma...
const _ = require('lodash') const crypto = require('crypto') const request = require('request') const fs = require('fs') const util = require('util') const RequestQueue = require('limited-request-queue') const HUMAN_READABLE_OUTPUT = false function createDirSync(dir) { if (!fs.existsSync(dir)) { fs.mkdirSync(di...
/** * Hit FullContact v3 Enrich API with twitter * names and get more social info back */ // Reqs & Configs require('dotenv').config() // helps to have when running local const axios = require('axios') // https://www.npmjs.com/package/axios const fullcontactKey = process.env.FCKEY // get key from https://dashboard.f...
$(function () { "use strict"; // ============================================================== // Product Sales // ============================================================== new Chartist.Bar('.ct-chart-product', { labels: ['Q1', 'Q2', 'Q3', 'Q4'], series: [ ...
jest.dontMock('../../components/parts/Header'); import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; const Header = require('../../components/parts/Header').default; describe('<Header />', () => { it('Renders the Header', () => { const header = TestUtils...
var toString = require('../lang/toString'); var WHITE_SPACES = require('./WHITE_SPACES'); /** * Remove chars from beginning of string. */ function ltrim(str, chars) { str = toString(str); chars = chars || WHITE_SPACES; var start = 0, len = str.length, charLen = chars.length, found =...
import testImageAccess from '../code-studio/url_test'; import trackEvent from '../util/trackEvent'; export async function measureVideoConnectivity() { const providers = { vc: "https://videos.code.org/retrieval-test.ico", yt: "https://www.youtube.com/favicon.ico", yc: "https://www.youtube-nocookie.com/fav...
import HighlightedProjectProject from './Project' export default HighlightedProjectProject
import Sequelize from 'sequelize' import bcrypt from 'bcrypt' import db from '../database' export function generateHash(str) { const salt = bcrypt.genSaltSync() return bcrypt.hashSync(str, salt) } const User = db.define('user', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true,...
load("201224b0d1c296b45befd2285e95dd42.js"); load("19d7bc83becec11ee32c3a85fbc4d93d.js"); assertEq(Array.prototype.toSource.call([1, 'hi']), '[1, "hi"]'); assertEq(Array.prototype.toSource.call({1: 10, 0: 42, length: 2}), "[42, 10]"); assertEq(Array.prototype.toSource.call({1: 10, 0: 42, length: 1}), "[42]"); assertTh...
define( "dojo/cldr/nls/sr/buddhist", //begin v1.x content { "dateFormatItem-yM": "y-M", "dateFormatItem-yQ": "y Q", "dayPeriods-format-wide-pm": "поподне", "eraNames": [ "БЕ" ], "dateFormatItem-MMMEd": "E d. MMM", "dateFormatItem-hms": "hh.mm.ss a", "dateFormatItem-yQQQ": "QQQ. y", "months-standAlone-narrow"...
'use strict' const OIDCRelyingParty = require('@interop-alliance/oidc-rp') const { logger } = require('../logger') const DEFAULT_MAX_AGE = 86400 class MultiRpClient { /** * @constructor * @param store {FlexDocstore} * @param [localConfig={}] {object} * @param [localConfig.issuer] {string} * @param [lo...
/* * This file is part of SolidInvoice package. * * (c) 2013-2015 Pierre du Plessis <info@customscripts.co.za> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ $(function() { /** * Tooltip */ $('body').tooltip({ "select...
const errors = require('./errors'); const debug = require('debug')('node-telegram-bot-api'); const https = require('https'); const http = require('http'); const fs = require('fs'); const bl = require('bl'); const Promise = require('bluebird'); class TelegramBotWebHook { /** * Sets up a webhook to receive updates...
var breadcrumbs=[['-1',"",""],['2',"VitNX3 Documentation","topic_00000000000016E1.html"],['789',"VitNX3.Functions.Win32 Namespace","topic_00000000000000C6.html"],['790',"Constants Class","topic_00000000000001C1.html"],['1979',"ResultWin32 Class","topic_00000000000001F4.html"],['1982',"Fields","topic_00000000000001F4_va...
var React = require('react/addons') var cx = React.addons.classSet var Promise = require('es6-promise').Promise var PT = React.PropTypes var CodeMirror = require('./code-mirror') var SinceWhen = require('./since-when') var Rendered = require('./rendered') var ConfigDropper = require('./config-dropper') var Editor = Re...
var amqp = require('amqplib/callback_api'); var logger = require("./logger"); var util = require("util"); function MQ() { this.connection = null; this.channel_pub = null; this.channel_con = null; this.connect = async function(config) { var _this = this; return new Promise(function(reso...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === '...
'use strict'; const fs = require('fs'); const Parser = require('../lib/parser'); let definition = 'style'; function elapsed( text, start ) { let elapsed = process.hrtime( start ); console.log( text + ' in ' + ( Math.round(100 * ( elapsed[0] * 1000 + elapsed[1] / 1e6 ) ) / 100 ) + 'ms' ); } let parserStart = proc...
import restArguments from './restArguments.js'; import isFunction from './isFunction.js'; import negate from './negate.js'; import map from './map.js'; import flatten from './_flatten.js'; import contains from './contains.js'; import pick from './pick.js'; // Return a copy of the object without the disallowed properti...
import React from "react" import { Stagger, RouteContainer } from "../../UI/appspecific/Containers" import Welcome from "../../UI/appspecific/Home/Welcome" import CTAs from "../../UI/appspecific/Home/CTAs" import Paper from "../../UI/appspecific/Paper" const Messages = props => { return ( <RouteContainer> <...
import debugModule from 'debug'; import assert from 'assert'; const debug = debugModule('geteventstore:startProjection'); const baseErr = 'Start Projection - '; export default (config, httpClient) => async (name) => { assert(name, `${baseErr}Name not provided`); const response = await httpClient.post(`${config.bas...
module.exports = app => { class ValidationController extends app.Controller { schema() { const res = this.service.validation.schema(this.ctx.request.body); this.ctx.success(res); } } return ValidationController; };
/** * Upload5 0.1.0 * (c) 2011 BitCandies * http://github.com/bitcandies/upload5 * * Upload5 is a flexible HTML5/JavaScript library that handles multiple file uploads. * * Upload5 is freely distributable under the MIT license, * see LICENSE. * * http://www.bitcandies.com/ */ var bitcandies = bitcandies || {}; bitcand...
export default function pad2Digits(number) { const string = number.toString(); return string.length === 1 ? "0" + number : string; }
const { Router } = require('express'); const router = Router(); router.use('/login', require('./login')); router.use('/items', require('./items')); router.use('/orders', require('./orders')); module.exports = router;
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("omi")); else if(typeof define === 'function' && define.amd) define(["omi"], factory); else if(typeof exports === 'object') exports["alarm"] = factory(requi...
const signin = async (user) => { try { let response = await fetch("/auth/signin/", { method: "POST", headers: { Accept: "application/json", "Content-type": "application/json", }, credentials: "include", body: JSON.stringify(user), }); return await response.jso...
/** * 定时器,自动更新数据库账号余额 */ const { get, initCloud } = require('./utils') // 云函数入口函数 exports.main = async ({ env }, context) => { let { collection } = await initCloud(env) let { data: list } = await collection.get() //数据存在数据时,自动调用 if (list.length > 0) { //async await 的问题 //这里抛弃 forEach 的写法,原因是 forEach ...
var apimodule = require('../../dao'), backAlbum = apimodule.backAlbum, moment = require('moment'), control = require('../control'), jetpack = require('fs-jetpack'), commonControl = require('../common-control'), filePrefix = commonControl.commonSet.filePrefix, hostUrl = commonControl.commonSet.hostUrl, f...
import { html, PolymerElement } from '@polymer/polymer'; import { generateClassName } from '../utils/functions'; import { offsetTop, scrollToY } from '../utils/scrolling'; import './session-element'; import './shared-styles'; class ScheduleDay extends PolymerElement { constructor() { super(...arguments); ...
import React from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import CreateCompanyComponent from "../components/company/Create"; import { createAction } from "../actions/company"; import { getAllCity } from "../actions/city"; import { getAllCountry } from "../actions/country"; c...
module.exports = function () { // eslint-disable-next-line max-len,quotes return '<symbol viewbox="0 0 16 16" id=icon-delete-small><path d="M15 4h-3.22L11 .76A1 1 0 0010 0H6a1 1 0 00-1 .76L4.22 4H1a1 1 0 100 2h1.1l.9 8.17A2 2 0 005 16h6a2 2 0 002-1.81L13.9 6H15a1 1 0 100-2zM6.78 2h2.44l.5 2H6.28l.5-2zM11 14H5l-...