text
stringlengths
2
1.04M
/** * Utility Error Messages */ export const REQUIRE_NON_NULL_ERROR = "This value cannot be null | undefined."; export const REQUIRE_STRING_ERROR = "This value must be a string."; export const REQUIRE_UINT8ARRAY_ERROR = "This value must be a Uint8Array."; export const REQUIRE_STRING_OR_UINT8ARRAY_ERROR = "This va...
const CopyWebpackPlugin = require("copy-webpack-plugin"); const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin"); const path = require("path"); module.exports = { entry: path.join(__dirname, "/bootstrap.js"), output: { path: path.resolve(__dirname, "dist"), filename: "bootstrap.js", }, mod...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
import React from 'react'; import { Link } from 'react-router-dom'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; const query = gql` query AllLinksViewQuery { allLinks { id url description } } `; class AllLinksView extends React.Component { render() { let {data} = this.p...
var forEach = function (collection, callback, scope) { if (Object.prototype.toString.call(collection) === '[object Object]') { for (var prop in collection) { if (Object.prototype.hasOwnProperty.call(collection, prop)) { callback.call(scope, collection[prop], prop, collection); } } } else { for...
'use strict'; /** * All match entries are defined here, instead of manifest. * * Matching connector is injected to the page after document_end event. * * Supported fields: * @param {String} label Website label * @param {Array} matches Array of match patterns. * Connectors are processed in order and the f...
// COPYRIGHT © 2017 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
(function(window, $) { var Superslides, plugin = 'superslides'; Superslides = function(el, options) { this.options = $.extend({ play: false, animation_speed: 600, animation_easing: 'swing', animation: 'slide', inherit_width_from: window, inherit_height_from: window, pagination: true, ...
var args = arguments[0] || {}; var credenciadoService = require('services/credenciado'); var isFav = false; var credenciadoFavorito = {}; function closeWindow(e){ $.credenciadoDetailWindow.close(); } function getCredenciado(codigoCategoria, credenciadoID){ var uf = Ti.App.Properties.getString('uf'); var cidade = ...
/**----------------------------------------------------------------------------------------- * Copyright © 2020 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *--------------------------------------------------------------...
describe("$location", function() { var rootEl; beforeEach(function() { rootEl = browser.rootEl; browser.get("./examples/example-location-hashbang-mode/index-jquery.html"); }); var addressBar = element(by.css("#addressBar")), url = 'http://www.example.com/base/index.html#!/path?a=b#h'; it("s...
import React from 'react'; import PropTypes from 'prop-types'; import getClassName from '../../helpers/getClassName'; import classNames from '../../lib/classNames'; const baseClassName = getClassName('TabbarItem'); const TabbarItem = ({ className, children, selected, label, text, ...restProps }) => ( <div {...restP...
import React, { useContext } from 'react'; import { View, StyleSheet, Text } from 'react-native'; import NavigationContext from './NavigationContext'; import { ScrollView } from 'react-native-gesture-handler'; export default function Resume() { const recipe = useContext(NavigationContext); return ( <View st...
import React, { useEffect, useRef } from "react"; import axios from "axios"; export const AxiosContext = React.createContext({}); const GlobalConfig = props => { const { config } = props; const axiosInstanceRef = useRef(); useEffect(() => { if (config) { axiosInstanceRef.current = axios.create(config)...
import { Box } from "@chakra-ui/react" import React from "react" const Home = () => { return <Box m={2}>Hi</Box> } export default Home
'use strict' var helper = require('../../lib/agent_helper') var test = require('tap').test var nock = require('nock') var proxyquire = require('proxyquire') var fetchSystemInfo = require('../../../lib/system-info') test('pricing system-info aws', function(t) { var awsHost = "http://169.254.169.254" var awsRespo...
"use strict"; /** * Order.js controller * * @description: A set of functions called "actions" for managing `Order`. */ // note that this needs to be a "private" key from STRIPE const stripe = require("stripe")( "sk_test_51JVMTBBNeZDmB1wzHUOwLbVSEhhBmV4U2YxwwOv0xN9SC3a7YoVY6uCrDhTLmEB65Gahmkq1niqtA32whUMcehZy00CC4...
/* eslint-disable react/prop-types */ import React from 'react'; import View from '../View/aphrodite'; import { StyleSheet } from 'aphrodite'; const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => <View {...other} style={[ styles[`color${color}`], fixed && styles.f...
import React from 'react' import PropTypes from 'prop-types' import { makeStyles } from '@material-ui/styles' import { Link as LinkRouter } from 'react-router-dom' import Box from '@material-ui/core/Box' import Typography from '@material-ui/core/Typography' import CircularProgress from '@material-ui/core/CircularProgre...
module.exports = { name: 'white-sklep', description: "Wysyła sklep", async execute(client, message, cmd, args, Discord, MessageEmbed, prefix) { if(message.author.id !== '699551960231051304') return message.channel.send('Co ty próbujesz powiedz mi!'); message.delete(); let embed = new Mess...
function clearForm() { $("#crudForm").find(":input").each(function() { switch (this.type) { case "password": case "select-multiple": case "select-one": case "text": case "textarea": $(this).val(""); break; ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import withStyles from '@material-ui/core/styles/withStyles'; // MUI Stuff import Button from '@material-ui/core/Button'; import Grid from '@material-ui/core/Grid'; import TextField from '@material-ui/core/TextField'; // Redux stuff import { ...
const ArgumentType = require('./base'); /** * The UserArgumentType class * @param {Client} */ class UserArgumentType extends ArgumentType { /** * The UserArgumentType class * @param {Client} */ constructor(client) { super(client, 'user'); /** * Client * @typ...
const LocalStrategy = require('passport-local').Strategy const User = require('./models/usrSchema') const bcrypt = require('bcryptjs') module.exports = (passport) => { passport.use( new LocalStrategy( { usernameField: 'email', passwordField: 'password' ...
/** * Created by msg on 6/17/16. */ function set_div_show(btn_id, is_show){ var btn = $("#" + btn_id); var btn_v = btn.val(); var div_class = btn_id.replace("btn", "div"); if (is_show == true) { $("." + div_class).show(); } else{ $("." + div_class).hide(); } if(is_...
/* * Node script to preprocess api.json files for use in the UI5 SDKs. * * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ "use strict"; const cheerio = require("cheerio"); const path = require('path'); const log = (function() { t...
import fs from 'fs'; import path from 'path'; import parseArgs from 'minimist'; import process from 'process'; import { spawnSync } from 'child_process'; import { assert } from '@agoric/assert'; import anylogger from 'anylogger'; // Start a network service import bundle from './bundle'; import initBasedir from './ini...
import { combineReducers } from 'redux' import modalReducer from './modal_reducer' const uiReducer = combineReducers({ modal: modalReducer, }) export default uiReducer
(function(d,b,e){var c=function(){this.messages={};this.sources={}};c.prototype={load:function(k,f){var h=null,g=null,i=[],j=this;if(typeof k==="string"){d.i18n.log("Loading messages from: "+k);g=a(k).done(function(l){j.set(f,l)});return g.promise()}if(f){j.set(f,k);return d.Deferred().resolve()}else{for(h in k){if(Obj...
const dbCmds = require('../db/commands.js') const moment = require('moment-timezone') const defaultConfigs = require('../../util/checkConfig.js').defaultConfigs const log = require('../../util/logger.js') const Article = require('../../models/Article.js') const ArticleIDResolver = require('../../structs/ArticleIDResolv...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.10/esri/copyright.txt for details. //>>built define({enter:"Accesare ecran complet",exit:"Ie\u015fire din ecran complet"});
class Alert{ constructor(game, mainContainerID, AlertTitle,text,acceptText,height,width, size, divFactor, cancelText){ this.AlertTitle = AlertTitle; this.text = text; this.game = game; this.acceptText = acceptText; this.size = size; this.divFactor = divFactor; ...
/** * * ProjectSkillForceInteractingClass * */ import { Input } from 'semantic-ui-react'; import { Map } from 'immutable'; import PropTypes from 'prop-types'; import React from 'react'; import { getClass } from '~/containers/App/getters/projectSkillForce'; import ProjectSkillForceFieldFormattedMessage from '../Fi...
const express = require('express') const app = express() const port = 3000 app.set('view engine', 'ejs'); app.use(express.static('./public')); app.get('/', (req, res) => { res.render('index') }) app.get('/project', (req, res) => { res.render('project') }) app.listen(port, () => { console.log(`Kickpush app li...
;(function() { 'use strict'; angular .module('sample-app') .config(AppConfig); AppConfig.$inject = ['$stateProvider', '$urlRouterProvider']; function AppConfig($stateProvider, $urlRouterProvider) { $stateProvider .state({ name: 'main', url: '/main', templateUrl: 'ap...
// Copyright 2020 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 ...
// Source: http://krasimirtsonev.com/blog/article/Javascript-template-engine-in-just-20-line var TemplateEngine = function(html, options) { var re = /<%([^%>]+)?%>/g, reExp = /(^( )?(if|for|else|switch|case|break|{|}))(.*)?/g, code = 'var r=[];\n', cursor = 0; var add = function(line, js) { js? (code...
const { INTERFACE_NAMESPACES, UPDATE_TEXT_FIELD, SELECT_TAB, } = require('../constants'); const { TEXT_STORE_NAMESPACE, TAB_STORE_NAMESPACE } = INTERFACE_NAMESPACES; const initialState = { [TEXT_STORE_NAMESPACE]: {}, [TAB_STORE_NAMESPACE]: {}, }; function reduceInterface(state = initialState, action) { le...
//# sourceMappingURL=main.4daeac2f.chunk.js.map
/*jslint browser: true, devel: true, node: true, nomen: true, es5: true*/ /*global angular, $, describe, it */ var promise = require("promised-io/promise"); module.exports = function (server) { "use strict"; var state; describe('plugin Profiles', function () { var plugin; it('should be init', function ()...
import ReactAntDatePicker from './components'; export default ReactAntDatePicker;
/*! * author: sakitam-fdd <smilefdd@gmail.com> * wind-layer v0.1.1 * build-time: 2020-1-28 14:22 * LICENSE: MIT * (c) 2017-2020 https://sakitam-fdd.github.io/wind-layer */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('maptalks')) ...
/*jslint node: true*/ /*global describe, it*/ "use strict"; var irc = require('../..'); var Stream = require('stream').PassThrough; describe('motd.js', function () { describe('on JOIN', function () { it('should emit "motd"', function (done) { var stream = new Stream(), client =...
import {createRouter, createWebHistory} from "vue-router"; const Frame = () => import('@/pages/frame') const Main = () => import('@/pages/main') const NoFound = () => import('@/pages/noFound') export default createRouter({ history: createWebHistory(), routes: [ { path: '/', name...
* jQuery JavaScript Library v3.2.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2017-03-20T18:59Z */ * Sizzle CSS Selector Engine v2.3.3 * https://sizzlejs.com...
/** * Router for the InterMine Registry API Instances operations */ var express = require('express'); var router = express.Router(); var Agency = require('../models/agencia'); // this is our delete method // this method removes existing data in our database router.delete("/delete", (req, res) => { const { nombre }...
var Code = require('code'), Lab = require('lab'), lab = exports.lab = Lab.script(), describe = lab.experiment, before = lab.before, it = lab.test, expect = Code.expect; var Hapi = require('hapi'), npme = require('../../services/npme'), nock = require('nock'), config = require('../.....
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. // @ts-check /// <reference path="../../core/lib.deno_core.d.ts" /> /// <reference path="../web/internal.d.ts" /> /// <reference path="../url/internal.d.ts" /> /// <reference path="../web/lib.deno_web.d.ts" /> /// <reference path="../web/06_str...
"use strict"; /* TraderServer class maintains list of traders for each sessionID in memory. */ class TraderServer { constructor() { this.traders = {}; this.assorts = {}; this.initializeTraders(); } /* Load all the traders into memory. */ initializeTraders() { for (let ...
import EmployeesIndex from "./components/employees/Index"; import EmployeesCreate from "./components/employees/Create"; import EmployeesEdit from "./components/employees/Edit"; export const routes = [ { path: "/employees", name: "EmployeesIndex", component: EmployeesIndex }, { ...
/* * index.js: Compute client for DigitalOcean API * * (C) 2012 Charlie Robbins, Ken Perkins, Ross Kukulinski & the Contributors. * */ var util = require('util'), urlJoin = require('url-join'), digitalocean = require('../../client'), _ = require('lodash'); var Client = exports.Client = f...
gsap.fromTo('.businesscard', 1.5, {x: -50}, {delay: .15, x: 0, opacity: 1, ease: "power2.out"} );
'use strict'; // ------------------------------------------------------------------------------ // Requirements // ------------------------------------------------------------------------------ var rule = require('../rules/directive-name'); var RuleTester = require('eslint').RuleTester; // --------------------------...
'use strict'; var Address = require('../address'); var BufferReader = require('../encoding/bufferreader'); var BufferWriter = require('../encoding/bufferwriter'); var Hash = require('../crypto/hash'); var Opcode = require('../opcode'); var PublicKey = require('../publickey'); var Signature = require('../crypto/signatu...
import Promise from 'bluebird'; import request from 'request'; import cachedRequestLib from 'cached-request'; const cachedRequest = cachedRequestLib(request); cachedRequest.setCacheDirectory('/tmp'); const oneDayInMilliseconds = 24 * 60 * 60 * 1000; const defaultTtl = oneDayInMilliseconds; export const cachedReques...
const keys = require('./keys'); // Express App Setup const express = require('express'); const bodyParser = require('body-parser'); const cors = require('cors'); const app = express(); app.use(cors()); app.use(bodyParser.json()); // Postgres Client Setup const { Pool } = require('pg'); const pgClient = new Pool({ ...
const capitalise = (string) => { let capString = string.charAt(0).toUpperCase(); for (let i = 1; i < string.length; i++) { capString += string.charAt(i); } return capString; } module.exports = capitalise;
/*! * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. 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...
/* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ /* * Demonstrates a simple publish to a topic using Greengrass Core NodeJS SDK * This lambda function will retrieve underlying platform information and send * a hello world message along with the platform information to the topic...
import React from "react"; import { Formik, Form, Field } from "formik"; import { initialValues } from "./initialValues"; import "../Main/FeedbackForm.scss"; import { object, string } from "yup"; import { useDispatch } from "react-redux"; import { postFeedback } from "../../../store/FeedbackForm/operations"; import { h...
import IntersectionObserverWrapper from './IntersectionObserver-wrapper'; import LazyLoad from './lazy-load'; /** * Animate progress bar value. * @param {Element} progressBar - Progress bar DOM element. * @private * @returns {undefined} */ function _animateProgressBar(progressBar) { const step = 2; const defa...
import React, {Component} from 'react'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; function CGU(props) { return( <div className="Term"> <Paper component="div" className="content"> <h2> Conditions générales d'utilisation</h2> ...
import React from "react"; import { ThemeProvider } from "styled-components"; import Layout from "../../../components/layout"; import SEO from "../../../components/seo"; import Navigation from "../../../sections/General/Navigation"; import Footer from "../../../sections/General/Footer"; import Terms from "../../../se...
/** * User.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models */ var bcrypt = require("bcryptjs"); module.exports = { attributes: { names: { typ...
import React, { useState, useEffect } from 'react'; import { /*TabContent, TabPane, Nav, NavItem, NavLink, Card, Button, CardTitle, CardText,*/ Row, Col } from 'reactstrap'; // import classnames from 'classnames'; // import SongCard from "./SongCard"; import ProfileCard from "./ProfileCard"; // import UserCard from "./...
/** * @license Highstock JS v8.1.0 (2020-05-05) * @module highcharts/indicators/chaikin * @requires highcharts * @requires highcharts/modules/stock * * Indicator series type for Highstock * * (c) 2010-2019 Wojciech Chmiel * * License: www.highcharts.com/license */ 'use strict'; import '../../indicators/chaik...
/*========================================================================================= File Name: dashboard-ecommerce.js Description: dashboard ecommerce page content with Apexchart Examples ---------------------------------------------------------------------------------------- Item Name: Vuexy -...
export default (baseURL, unit) => { return { /* * * 反刷7工单接口 参数map * */ post: { baseURL: baseURL, url: "/empl/deleteempl", params: { id: undefined, }, data: {}, header: {}, retu...
const classes = require('src/gatsby/templates/snippets/classes').classes const html = /* HTML */ ` <div> <div class="xt-list xt-list-3 items-center"> <button type="button" class="xt-button ${classes.buttonSm()} rounded-full ${classes.buttonLower()} ${classes.buttonGray()} ${classes.buttonTe...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("devtools","gl",{title:"Información do elemento",dialogName:"Nome da xanela de diálogo",tabName:"Nome da lapela",elementId:"ID do elemento",elementTy...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { push } from 'react-router-redux'; import { Link } from 'react-router'; import Button from '../../../Common/Button/Button'; import { setTableName, addExistingTableSql, addAllUntrackedTablesSql...
/* */ (function(process) { var fs = require("fs"); var path = require("path"); var http = require("http"); var https = require("https"); var url = require("url"); var UrlRewriter = require("../images/url-rewriter"); var Splitter = require("../utils/splitter"); var override = require("../utils/object")....
function checkboxifyAll() { forEachHomeworksItemDiv((homeworksItemDiv, index) => { checkboxify(homeworksItemDiv, index) }) } function forEachHomeworksItemDiv(callback) { homeworksContents().forEach((homeworksContent) => { let index = 0 homeworksItemDivs(homeworksContent).forEach((homeworksItemDiv) =>...
(self.webpackChunkfusioncms=self.webpackChunkfusioncms||[]).push([[7017],{2569:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});const l={props:{value:{type:Object,required:!0}},computed:{settings:{get:function(){return this.value.settings||{}},set:function(e){this.$set(this.value.settings,e)}},errors:function(){return this.valu...
import React from 'react'; import { Form, Row, Col, Input, Button, Icon, Select, DatePicker, } from 'antd'; import SyncTreeSelect from '../../../components/sync-tree-select'; import CheckboxGroup from '../../../../node_modules/antd/es/checkbox/Group'; const FormItem = Form.Item; const { Option } = Select; export d...
const revalidator = require('revalidator') const schema = require('../helpers/schemas/site-tree-schema') const latestEnterpriseRelease = require('../../lib/enterprise-server-releases').latest const { loadSiteTree } = require('../../lib/page-data') const japaneseCharacters = require('japanese-characters') const nonEnter...
import assert from 'assert' import lodashStable from 'lodash' import { noop, stubTrue, identity } from './utils.js' import memoize from '../memoize.js' import isFunction from '../isFunction.js' describe('memoize', function () { function CustomCache() { this.clear() } CustomCache.prototype = { clear: fun...
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; const styles = theme => ({ gridList: { flexWrap: 'nowrap', } }); function Banner() { return ( <img id="lego" src="logo.png" height="65px" alt="logo" /> ); } export default withStyles(styles)(Banner);
const { updateQuotes } = require('../quotes') const { updatePerformanceImage } = require('../performance') // God forgive me for what I'm about to do function runUpdates () { updateQuotes() // Lazy man's "wait for SQLite to finish his shit" // (I don't even know the right way to do it) // TODO: Fix this once ...
var Clipboard = require('clipboard/dist/clipboard.min.js') // FIXME: workaround for browserify var VueClipboardConfig = { autoSetContainer: false, appendToBody: true // This fixes IE, see #50 } var $copyText = function (text, container) { return new Promise(function (resolve, reject) { var fakeElement = docu...
import React from 'react'; import PortfolioContainer from '../portfolio/portfolio-cointainer'; export default function() { return( <div> <PortfolioContainer /> </div> ); }
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. (async function() { TestRunner.addResult(`Test device orientation\n`); await TestRunner.loadModule('console_test_runner'); await TestRunner.addScrip...
define(["npm:aurelia-task-queue@1.0.0-beta.1.2.0/aurelia-task-queue"], function(main) { return main; });
export const commonName = 'blackgan common util common name'
const { promises: { readFile }, } = require('fs'); const { Server, loadPackageDefinition, ServerCredentials } = require('@grpc/grpc-js'); const { load } = require('@grpc/proto-loader'); const { join } = require('path'); const seconds = new Date('2020-12-20').getTime(); const Genre = { UNSPECIFIED: 0, ACTION: 1,...
var message = null; var methodMatch = { "setOption": createAPI, "preparePayment": preparePayment, "disconnect": disconnect, "submit": submit, "sign": sign, "getTransaction": getTransaction, "getTransactions": getTransactions, "getFee": getFee }; window.addEventListener('message', onMessa...
module.exports = function(sequelize, DataTypes) { var Thursday = sequelize.define("Thursday", { Thursday: { type:DataTypes.STRING, allowNull:false }, shiftStartTime: { type: DataTypes.STRING, allowNull: false, len:4 }, shiftEndTime: { t...
var path = require('path'), assert = require('assert'), assertCalled = require('assert-called'), spawnCommand = require('../'); var win32 = (process.platform === 'win32'), newln = win32 ? '\r\n' : '\n', grep = win32 ? 'findstr' : 'grep', child = spawnCommand(grep + ' commit < ' + path.join(__di...
$(function () { $(".picker-wrapper").each(function (e) { try { var t = $(this); var pickername = t.data("pickername"); var modalname = t.data("modal"); if (pickername != null && pickername != undefined) { if (window["picker" + pickername] != u...
const InstantScalar = require('../scalars/instant.scalar'); const CodeScalar = require('../scalars/code.scalar'); const { GraphQLInputObjectType, GraphQLEnumType, GraphQLNonNull, GraphQLString, GraphQLList, } = require('graphql'); // Util for extending gql objects const { extendSchema } = require('@asymmetrik/fhi...
const express = require("express"); const morgan = require("morgan"); const cors = require("cors"); const bodyParser = require("body-parser"); const { errors } = require("celebrate"); const routes = require("./routes"); class App { constructor() { this.server = express(); this.middlewares(); this.routes...
module.exports = `--- id: displaying-data title: Displaying Data layout: docs category: Guides permalink: displaying-data.html prev: why-react.html next: jsx-in-depth.html --- The most basic thing you can do with a UI is display some data. React makes it easy to display data and automatically keeps the interface up-to...
'use strict' const MockLogClient = require('../mock/mock-log-client') const Promise = require('bluebird') const _ = require('lodash') const automock = require('../lib/immutable-automock') const chai = require('chai') const chaiAsPromised = require('chai-as-promised') const immutable = require('immutable-core') chai.u...
/*global test, suite */ var assert = require('assert'); suite('db setup', function() { "use strict"; var db_setup = require('../../lib/db-setup'); test('db-setup should have mongoose, Schema and ObjectId properties', function() { assert.ok(db_setup.mongoose); assert.ok(db_setup.Schema); assert.ok(db_setup....
import request from '@/utils/request' const api = 'http://47.98.33.249:3000' export function businessList() { return request({ url: api + '/getBusinessDetail', method: 'get', }) } export function getBusiness(data) { return request({ url: api + '/getBusinessDetail/' + data.id, method: 'get', })...
import React from 'react'; import SvgIcon from '../../components/SvgIcon'; const Upload = (props) => ( <SvgIcon {...props}> <g> <rect height="2" width="16" rx="1" ry="1" transform="rotate(180 12 5)" x="4" y="4" /> <rect height="2" ...
const { MessageEmbed } = require("discord.js"), fs = require("fs"), ms = require("ms"), getNow = () => { return { time: new Date().toLocaleString("en-GB", { timeZone: "Europe/Paris", hour12: false, hour: "2-digit", minute: "2-digit", second: "2-digit" }), }; }; function update(message, db) { fs.writeFile(`./serv...
import React from 'react'; import styled from 'styled-components'; import { storiesOf } from '@storybook/react'; import faker from 'faker'; import Button from '../shared/Button'; import DataTable from '../../../src/index'; const createUser = () => ({ id: faker.random.uuid(), name: faker.name.findName(), email: fake...
const assert = require('assert') const api = require('../api') let app = {} describe('Swite de test da api herois', () => { before(async () => { app = await api }) it('listar /herois', async () => { const result = await app.inject({ method: 'GET', url: '/herois?ski...