text
stringlengths
2
1.04M
import { useRouter } from 'next/router'; import { Helmet } from 'react-helmet'; import styles from './Layout.module.scss'; import useSite from 'hooks/use-site'; import { helmetSettingsFromMetadata } from 'lib/site'; import Nav from 'components/Nav'; import Main from 'components/Main'; import Footer from 'components/Fo...
module.exports = Object.freeze({ APP: { port: process.env.PORT || 3200, connectionString: process.env.NLP_SERVICE_MONGO_STRING, saltRounds: 10, session: { privateKey: process.env.NLP_SERVICE_SESSION_KEY, expiration: '5d' } }, NLP: { degree: 2, scope: 3 }, CONSUMER_APP: ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ /*jslint evil: true */ 'use strict'; const React = require('react'); const ReactDOM = require('react-do...
// @ts-expect-error will be resolve by https://github.com/sveltejs/kit/pull/2285 import * as App from '../output/server/app.js'; import {toSvelteKitRequest} from './firebase-to-svelte-kit.js'; /** @type {import('@sveltejs/kit').App} */ const app = App; app.init(); /** * Firebase Cloud Function handler for SvelteKit...
(function () { 'use strict'; angular.module('OwlAdmin.pages.mail') .controller('MailListCtrl', MailListCtrl); /** @ngInject */ function MailListCtrl($stateParams, mailMessages) { var vm = this; vm.messages = mailMessages.getMessagesByLabel($stateParams.label); vm.label = $stateParams.label; ...
import React from 'react'; import CarForSaleCard from './CarForSaleCard'; import { connect } from 'react-redux'; import { Card } from 'semantic-ui-react'; class CarsForSaleResultList extends React.Component { state = { open: false }; mapNewCars = (props) => { let i = this.props.render_...
import { Router } from 'express'; import passport from 'passport'; import { userSerializer, strategy } from '../helpers/passport'; const router = Router(); const scope = ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/plus.m...
/** * @author yomboprime https://github.com/yomboprime * * GPUComputationRenderer, based on SimulationRenderer by zz85 * * The GPUComputationRenderer uses the concept of variables. These variables are RGBA float textures that hold 4 floats * for each compute element (texel) * * Each variable has a fragment shad...
// This file has been autogenerated. exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'westus'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'testg1012'; process.env['AZURE_SUBSCRIPTION_ID'] = '9ed7cca5-c306-4f66-9d1c-2766e67013d8'; }; exports.scopes = [[function (nock) { var result = ...
//cell size (px) var cell_size = 40; let maze = [ 0x0E, 0x0A, 0x09, 0x0C, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x08, 0x0A, 0x0A, 0x0A, 0x08, 0x09, 0x0C, 0x09, 0x05, 0x06, 0x08, 0x0A, 0x0A, 0x0A, 0x0A, 0x0B, 0x06, 0x0A, 0x0A, 0x0A, 0x03, 0x05, 0x05, 0x05, 0x05, 0x0C, 0x02, 0x0B, 0x0E, 0x08, 0x0A, 0x0A, 0x08,...
import { __decorate, __metadata, __param } from "tslib"; import { splitSignature } from '@ethersproject/bytes'; import BaseService from '../commons/BaseService'; import { eEthereumTxType, } from '../commons/types'; import { canBeEnsAddress } from '../commons/utils'; import { GovDelegationValidator } from '../commons/va...
var charts = {} var chartData = {} $(document).ready(function() { var limit; if(projectName == "") limit = 5; else if(suiteName == "") limit = 10 else limit = 50; $.ajax({ url: "/report/get_last_executions/", data: { "project": projectName, "suite": suiteName, "limit": li...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.17/esri/copyright.txt for details. //>>built define("esri/themes/calcite/icons/demo-files/demo",["dojo","dijit","dojox"],function(f,g,h){"boxShadow"in document.body.style||document.body.setAttribute("class","n...
// Copyright 2013 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
import http from 'utils/http' export default function() { return new Promise((resolve, reject) => { let option = { url: `/${http.permission}/Client/list`, } http.get(option).then(data => { resolve(data) }).catch(() => { reject() }) }) }
import '@testing-library/jest-dom'; import renderer from 'react-test-renderer'; import { Provider } from 'react-redux'; import Category from '../components/Category'; import store from '../redux/Store'; it('Display category element', () => { const tree = renderer .create( <Provider store={store}> <...
(function() { /* global __dirname, require, module */ "use strict"; var util = require("util"); var path = require("path"); var chalk = require("chalk"); var ScriptBase = require("../script-base.js"); /*jshint unused: vars */ var ptdttui5Generator = module.exports = function ptdttui5Gen...
'use strict'; const fs = require('fs'); const path = require('path'); const chai = require('chai'); const expect = chai.expect; chai.use(require('chai-subset')); const BulkWriteError = require('../../lib/bulk/common').BulkWriteError; const TestRunnerContext = require('./spec-runner').TestRunnerContext; const gatherT...
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("d-breadcrumb")]),n("span",{class:"token punctuation"},">")]),t(` `),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("d-breadcrumb-item")]),t(),n("span...
import React, { Component } from 'react' import * as R from 'ramda' import { PropTypes as T } from 'prop-types' import TextField from '@material-ui/core/TextField' import FormControlLabel from '@material-ui/core/FormControlLabel' import Checkbox from '@material-ui/core/Checkbox' import InputAdornment from '@material-ui...
var exports = module.exports = {} exports.signup = function(req, res) { res.render('signup'); } exports.signin = function(req,res) { res.render('signin'); } exports.dashboard = function(req,res){ res.render('dashboard'); } exports.logout = function(req,res){ req.session.destroy(function(err){ ...
var gulp = require('gulp'); var minifycss = require('gulp-minify-css'); var uglify = require('gulp-uglify'); var htmlmin = require('gulp-htmlmin'); var htmlclean = require('gulp-htmlclean'); var imagemin = require('gulp-imagemin'); var babel = require('gulp-babel'); // 压缩css文件 gulp.task('minify-css', function (done) {...
/* eslint-env jest */ import 'intersection-observer'; import React from 'react'; import renderer from 'react-test-renderer'; import IntersectionObserver from '../IntersectionObserver'; import { callback, findObserverElement, observerElementsMap } from '../observer'; function mockUtilsFunctions() { const utils = re...
import React from "react"; import Api from "../../data/Api"; import { v4 as uuidv4 } from "uuid"; import { ReactComponent as Add } from "../../assets/svg/plus-circle.svg"; import { ReactComponent as ServerIcon } from "../../assets/svg/server.svg"; import { ReactComponent as Spinner } from "../../assets/svg/spinner.s...
const { build } = require('gluegun') /** * Create the cli and kick it off */ async function run(argv) { // create a CLI runtime const cli = build() .brand('cloud-native-node-starter') .src(__dirname) .plugins('./node_modules', { matching: 'cloud-native-node-starter-*', hidden: true })...
"main";_6f5‍.x([["fetchProducts",()=>fetchProducts],["getProductFilterForCategory",()=>getProductFilterForCategory],["getProductFilterForSearch",()=>getProductFilterForSearch],["getParsedProductFilter",()=>getParsedProductFilter],["fetchMoreProducts",()=>fetchMoreProducts],["fetchCart",()=>fetchCart],["addCartItem",()=...
import { useState } from 'react'; const UploadButton = ({ onUploadClick }) => { return ( <button type="button" className="bg-blue-500 hover:bg-blue-700 text-white py-2 px-3 rounded" onClick={onUploadClick} > <img className="w-4 h-4 inline mb-1 mr-1" src="https://tree-a...
/*! jQuery UI - v1.11.4 - 2015-03-11 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.j...
import grid_1 from './grid_1'; import grid_2 from './grid_2'; import grid_3 from './grid_3'; import grid_4 from './grid_4'; import grid_5 from './grid_5'; import grid_6 from './grid_6'; import grid_7 from './grid_7'; import grid_8 from './grid_8'; import grid_9 from './grid_9'; import grid_10 from './grid_10'; import g...
// import { Link } from 'gatsby'; import React from 'react'; import '../styles/Portfolio.scss'; import PortfolioItem from './portfolioItem'; import data from '../data'; const Portfolio = () => ( <section className="portfolio"> {data.portfolio.map((item, index) => ( <PortfolioItem key={index} ...
const resolveImageStorageConfig = require('./resolveImageStorageConfig') const varifyTimeconfig = (time) => { if (Array.isArray(time) === false) { throw new TypeError() } const [timeConfig, allowNumber] = time if (typeof timeConfig !== 'number') { throw new TypeError() } if (typeof allowNumber !...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcar...
import{d as e,j as i}from"./chunk-PSRONZ2A.js";var o=class{titleElem=null;githubBtn=null;async init(t,l){this.titleElem=t.elem?.querySelector('[data-title="auth-service"]')||null,this.githubBtn=t.elem?.querySelector('[data-button="auth-service-github"]')||null}async load(t,l,m){this.titleElem&&(this.titleElem.textConte...
// 7.3.20 SpeciesConstructor(O, defaultConstructor) var anObject = require('./$.an-object') , aFunction = require('./$.a-function') , SPECIES = require('./$.wks')('species'); module.exports = function(O, D){ var C = anObject(O).constructor, S; return C === undefined || (S = anObject(C)[SPECIES]) == undefined...
var oldID = null; var d = new Date(); var month = d.getMonth(); var year = d.getYear(); var quantity = $('.statisticTable tr').length; $('#newRowButton').click(function() { quantity = $('.statisticTable tr').length; $('.statisticTable tr:last') .clone() .insertAfter('.statisticTable tr:last'); ...
var React = require('react'); var RulePicker = require('./RulePicker.js'); var TimePicker = require('react-time-picker'); var DatePicker = require('react-date-picker'); var RuleSummary = require("./RuleSummary.js"); var moment = require('moment'); var Tabs = require('react-simpletabs'); var RecurringSelect = React.cre...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.6.0 (2020-11-18) */
import React from 'react'; import PropTypes from 'prop-types'; import Heading from '../heading'; import Icon from '../icon'; import Tooltip from '../tooltip'; export default class ControlCard extends React.Component { static propTypes = { /** * The type of update to the card. Options are "close" and "collap...
var dao = require('./dao/statsDao.js'); console.log("Start import"); fs = require('fs'); var walk = require('walk'); var files = []; // Walker options var walker = walk.walk('../import', { followLinks: false }); walker.on('file', function(root, stat, next) { console.log(root+" "+stat.name); // Add th...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 15.2.3.6-4-497 description: > ES5 Attributes - property ([[Get]] is a Functio...
'use strict'; var ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/inline-linear-companion.xml'; describe('Test for Companion', function () { var id = 'rmpPlayer'; var container = document.getElementById(id); var video = document.querySelector('.rmp-video'); video.muted = true; var rmpVast = new RmpVa...
import React from "react" import styled from "styled-components" import Layout from "../components/layout" import { TitleContainer } from "../pages/mentors" import WorkInProgress from "../components/work-in-progress/work-in-progess" const TeamContainer = styled.div` display: flex; flex-direction: column; alig...
if (process.env.NODE_ENV !== "production") { require("dotenv").config(); } const express = require("express"); const app = express(); const port = process.env.PORT || 3000; const methodOverride = require("method-override"); const path = require("path"); const mongoose = require("mongoose"); const dbURL = process.en...
'use strict'; import fs from 'fs'; import inquirer from 'inquirer'; import showBanner from 'node-banner'; import path from 'path'; import exec from '../../utils/exec'; import * as logger from '../../utils/logger'; import { checkIfConfigFileExists, fetchProjectConfig, readFileContent, } from '../../utils/helpers...
// // playSoundLoop.js // examples // // Created by David Rowe on 5/29/14. // Copyright 2014 High Fidelity, Inc. // // This example script plays a sound in a continuous loop, and creates a red sphere in front of you at the origin of the sound. // // Distributed under the Apache License, Version 2.0. // See the a...
/** * Copyright 2015 Telerik AD * * 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 ...
mycallback( {"CONTRIBUTOR OCCUPATION": "Neuroradiologist", "CONTRIBUTION AMOUNT (F3L Bundled)": "500", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Neuroskeletal Imaging Winter Park", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "609 Atlantic Street", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CAND...
module.exports = app => { var api = app.api.debate; var authApi = app.api.auth; app .route('/v1/debates') .post(authApi.authenticationRequired, api.create); app .route('/v1/debates/creator') .get(authApi.authenticationRequired, api.findByCreator); app .rout...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { OverlayModule } from '@angular/cdk/overlay'; import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { NzAddOnM...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import Img from "gatsby-image" import moment from "moment" import AniLink from "gatsby-plugin-transition-link" import { connect } from "react-redux" import { Col, Card, CardBody, CardTitle, CardSubtitle, CardText, } from "reactstra...
/** * For each species, execute the gremlin 200 times, separated by a 10ms delay * * var bySpeciesStrategy = gremlins.strategies.bySpecies(); * horde.strategy(bySpeciesStrategy); * * The actual attack duration depends on the number of species in the horde. * * The bySpecies strategy can be customized as fol...
/** Copyright (c) 2018 Uber Technologies, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ /* eslint-env node */ const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const chalk...
/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ //# sourceMappingURL=jquery.min.map /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ /* Highlight.js 10.1.1 (93fd0d73) License: BSD-3-Clause Copyright (c) ...
// Copyright 2021 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. // clang-format off // #import 'chrome://os-settings/strings.m.js' // #import 'chrome://os-settings/chromeos/os_settings.js'; // #import {assertTrue} from...
import variables from '../../../styles/variables'; const styles = theme => ({ KpiBox: { display: "flex", flexDirection: "row", height: 80, alignItems: 'center', cursor: 'pointer' }, KPIItemSmall: { flex: 1, fontFamily: 'montserrat', textAlign:...
import { app, BrowserWindow, globalShortcut } from 'electron' // eslint-disable-line /** * Set `__static` path to static files in production * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html */ if (process.env.NODE_ENV !== 'development') { global.__static = require('path').join(...
const getWindowSizes = ({ fallbackWidth = null, fallbackHeight = null, forceFallback = false }) => { const canUseDOM = typeof window !== 'undefined' return { width: canUseDOM && !forceFallback ? window.innerWidth : fallbackWidth, height: canUseDOM && !forceFallback ? window.innerHeight : fallbackHeight, ...
module.exports = { siteMetadata: { // Site URL for when it goes live siteUrl: `https://sadiqsada.netlify.app/`, // Your Name name: 'Sadiq Sada', // Main Site Title title: `Sadiq Sada | Full-Stack Developer`, // Description that goes under your name in main bio description: `SDE Intern ...
defineSuite([ 'Scene/TweenCollection', 'Core/Color', 'Core/EasingFunction' ], function( TweenCollection, Color, EasingFunction) { 'use strict'; it('add() adds a tween', function() { var startObject = { value : 0.0 }; var st...
import React from "react" import styled from "styled-components" export const Title = ({ title, subtitle }) => { return ( <TitleWrapper> <h4> <span className="title">{title}</span> <span>{subtitle}</span> </h4> </TitleWrapper> ) } const TitleWrapper = styled.div` text-transfo...
!function e(t,o,i){function n(l,r){if(!o[l]){if(!t[l]){var s="function"==typeof require&&require;if(!r&&s)return s(l,!0);if(a)return a(l,!0);throw new Error("Cannot find module '"+l+"'")}var c=o[l]={exports:{}};t[l][0].call(c.exports,function(e){var o=t[l][1][e];return n(o||e)},c,c.exports,e,t,o,i)}return o[l].exports}...
function calcularAreaCuadrado() { const input = document.getElementById("InputCuadrado"); const value = input.value; const area = value*value; //alert(area); const resultado = document.getElementById("Resultado"); resultado.innerText = "El área es " + area; }
import React, { useState } from 'react' import PropTypes from 'prop-types' import { Link } from 'gatsby' import { FaFacebookF } from 'react-icons/fa'; import styled from "styled-components" import { useSpring, animated } from "react-spring" const Nav = styled.nav` display: none; @media (min-width: 770px) { ...
define([ 'kbwidget', 'bootstrap', 'jquery', 'narrativeConfig', 'kbaseAuthenticatedWidget', 'kbase-generic-client-api', ], (KBWidget, bootstrap, $, Config, kbaseAuthenticatedWidget, GenericClient) => { const loadingImage = Config.get('loading_gif'); return KBWidget({ name: 'kbase...
import XORShift64 from './xorshift64.js'; export { default as LCG } from './lcg.js'; export { default as PCG } from './pcg.js'; export { default as MersenneTwister } from './mersenneTwister.js'; export { default as XORShift } from './xorshift.js'; export { default as XORShift64 } from './xorshift64.js'; export { defau...
const {OFF, ERROR, WARN} = require('../constants'); module.exports = { rules: { /* * Сброс всех правил в состояние 'Нет ошибки'. Для плавной интеграции */ // url: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/escape-case.md 'unicorn/escape-case': OFF, // url...
/** * Urls * * @module :: Model * @description :: A short summary of how this model works and what it represents. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { attributes: { uid : { type: 'string', required: true }, shortened_...
tinyMCE.addI18n('te.paste_dlg',{word_title:"Use CTRL+V on your keyboard to paste the text into the window.",text_linebreaks:"Keep linebreaks",text_title:"Use CTRL+V on your keyboard to paste the text into the window."});
let webpack = require('webpack'); module.exports = { devtool: 'inline-source-map', resolve: { extensions: ['.ts', '.js'] }, entry: './src/ng-http-client-plus.ts', output: { path: './dist', publicPath: '/', filename: 'ng-http-client-plus.umd.js', library: 'ngHttpClientPlus', library...
var fs = require('fs-extra'); var path = require('path'); var mkdirp = require('mkdirp'); fs.readdirSync(__dirname).forEach(function(test) { var testPath = path.join(__dirname, test); if (fs.statSync(testPath).isDirectory()) { if (test === 'testLib') return; // update this man...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'basicstyles', 'ar', { bold: 'عريض', italic: 'مائل', strike: 'يتوسطه خط', subscript: 'منخفض', superscript: 'مرتفع', underline...
import React from "react" import { Link, graphql, useStaticQuery } from "gatsby" import HeaderStyles from "./Header.module.scss" const Header = ({ showComplete }) => { const data = useStaticQuery(graphql` query { site { siteMetadata { title } } } `) return ( <he...
/* eslint-disable react/display-name */ import React from 'react' import {Table} from 'semantic-ui-react' import CartItem from './CartItem' import {_calcTotal} from '../helperfuncs/calcTotal' import {_calcQuantity} from '../helperfuncs/calcQuantity' export default ({cart, disabled, reRender, isLoggedIn}) => ( <Table...
import React from 'react' import {Label} from 'semantic-ui-react' import {ActionLink, StatusLink} from 'components/ui/DbLink' import CONTRIBUTORS from 'data/CONTRIBUTORS' import ACTIONS from 'data/ACTIONS' import STATUSES from 'data/STATUSES' export const changelog = [ { date: new Date('2020-08-24'), Changes: ()...
const config = require("./src/config") module.exports = { development: { client: 'postgresql', connection: config.postgres, }, test: { client: 'postgresql', connection: { database: "analytics_reporter_test", user: process.env.CIRCLECI ? "postgres" : config.postgres.user }, mig...
export default { apiKey: 'AIzaSyD3T8nxhH7gbO_1x1utAaMF7RPPhvBrF_8', authDomain: 'kfit-b2c11.firebaseapp.com', databaseURL: 'https://kfit-b2c11.firebaseio.com', projectId: 'kfit-b2c11', storageBucket: 'kfit-b2c11.appspot.com', messagingSenderId: '715333909115', };
/* functions for transforming and indexing Cumulus Payloads * in ElasticSearch. These functions are specifically designed * to transform data for use in cumulus api * * The module accepts the following kinds of workflows (state machines): * - ParsePdrs * - IngestGranules * - StateMachine (if a payload doesn't be...
'use strict'; exports.query = function(name, args, map, plugins) { return { 'name': name, 'args': args, 'plugins': plugins, 'map': map }; }; exports.plugin = function(name, args) { return { 'value': name, 'args': args }; }; exports.argVar = function(val) { return { 'type': 'var'...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'format', 'he', { label: 'עיצוב', panelTitle: 'עיצוב', tag_address: 'כתובת', tag_div: 'נורמלי (DIV)', tag_h1: 'כותרת', tag_h...
export const isNumber = (number) => !Number.isNaN(Number.parseFloat(number)); export const maxDecimals = (number, fractionDigits) => { return Math.round(number * (10 ** fractionDigits)) / (10 ** fractionDigits); }; export const maxDecimalsFloor = (number, fractionDigits) => { return Math.floor(number * (10 ** fra...
const path = require('path'); const assert = require('yeoman-assert'); const helpers = require('yeoman-test'); describe('generator-superset:package', () => { let dir; beforeAll(() => { dir = process.cwd(); }); describe('typescript', () => { beforeAll(() => helpers .run(path.join(__dirna...
//商品相关的api //引入封装好的axios /* 规定了 :get params post data */ import request from '@/utils/request.js'; //获取商品列表 export function fetchProductList(params) { return request({ url: "product_list", method: "get", params: params }) } //获取 商品分类列表 export function fetchProductCateList(pa...
// Copyright (c) Amazon.com, Inc. or its affiliates and others. Licensed under the MIT license. // SPDX-License-Identifier: MIT const express = require('express') const passport = require('passport') const GitHubStrategy = require('passport-github').Strategy const { URL } = require('url') const GitHubApi = require('@o...
import React from 'react'; import GuestNav from '../components/guest-nav'; function Welcome () { return ( <div className="flex flex-col min-h-screen"> <GuestNav /> <div className="flex flex-1 flex-col items-center justify-center"> <h1 className="text-indigo text-2xl p-2 font-thin uppercase"> ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } // A second optional argument can be given to furt...
import axios from 'axios' import React, { Component } from 'react' import ApiData from './ApiData' export class Home extends Component { constructor() { super() this.state = { apiData:[], showData:false, } } componentDidMount = async ()=>{ const url = "http...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
// @flow import { contactsReducer, initialState, type ContactsState } from './contactsReducer.js' import { loadContactsStart } from './actions.js' export type { ContactsState } export { loadContactsStart, initialState, contactsReducer }
import React from 'react'; import { Link } from 'react-router-dom'; import '../styles/Header.css'; function Header() { return ( <div className="navbar"> <h1 className="left-head">Crypto</h1> <div className="right-head"> <Link to="/">Home</Link> <Link to="/category">Category</Link> ...
'use strict'; const common = require('../common'); if (!common.hasCrypto) { common.skip('missing crypto'); } const fixtures = require('../common/fixtures'); const assert = require('assert'); const https = require('https'); const http = require('http'); const tls = require('tls'); const MakeDuplexPair = require('../...
/** * Selector.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * Selector engine, enables you to select controls by using CSS like expressions. * We currently only support basic CSS ex...
/*! jQuery v1.7.2 jquery.com | jquery.org/license */
!function(e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).GhostContentAPI = t() }(this, function() { "use strict"; var e = function(e, t) { return function() { for (var n =...
/** * Engine2D game engine. * * @author jackdalton */ /** * Engine2D namespace * * @namespace */ var Engine2D = { TYPE: { RECT: 1, CIRCLE: 2 }, /** * Engine2D game scene constructor. * * @constructor * @this {GameScene} */ GameScene: function() { ...
const chai = require('chai'); const chaiHttp = require('chai-http'); const api = require('./app'); chai.use(chaiHttp); const { assert } = chai; describe('/myTest', () => { it('should work with valid data', (done) => { let data = { key: 'value', }; chai .request(api) .post('/path') ...
const express = require('express'); const SimulationResult = require('../models/SimulationResult'); const router = express.Router(); const uuid = require('uuid'); router.get('/user/:uuid', (req, res) => { res.send(uuid.v4()); }); router.get('/', (req, res) => { res.render('index', { title: 'ARL STRONG UML | Home' }...
const mysql = require("mysql"); const inquirer = require("inquirer"); const cTable = require("console.table") const connection = mysql.createConnection({ host: "localhost", // Your port; if not 3306 port: 8889, // Your username user: "root", // Your password password: "root", databas...
const formatTime = date => { const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() const hour = date.getHours() const minute = date.getMinutes() const second = date.getSeconds() return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map...
/** * Copyright IBM Corp. 2016, 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'; var _32 = { "elem": "svg", "attrs": { "xmlns": "http:/...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var asn1js = _interopRequireWildcard(require("asn1js")); var _pvutils = require("pvutils"); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != n...