text
stringlengths
2
1.04M
app.directive('ngEnter', function () { return function (scope, element, attrs) { element.bind("keydown keypress", function (event) { if (event.which === 13) { scope.$apply(function () { scope.$eval(attrs.ngEnter); }); event.pr...
import React, { Component } from "react"; import Project from "../components/Project/Project"; import projects from "../components/Project/projects.json"; class Portfolio extends Component { state = { projects }; render() { return ( <div> {this.state.projects.map(project => (...
import express from 'express' import dotenv from 'dotenv' import mongoose from 'mongoose' import cors from 'cors' import routes from './routes' dotenv.config() const server = express() const port = process.env.PORT || 3000 mongoose.connect( `mongodb+srv://ahoycap:${process.env.DB_PASSWORD}@cluster0.wimfi.mongodb....
import Taro from '@tarojs/taro' import { View } from '@tarojs/components' import AtInputNumber from '../../../components/input-number/index' import DocsHeader from '../../components/doc-header' import './index.scss' export default class Index extends Taro.Component { config = { navigationBarTitleText: 'Taro UI' ...
const { resolve } = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const config = { stats: { maxModules: 0, }, mode: 'pr...
import { PRJ_CREATE } from '../actions/projects'; export default function projects(state = {}, action) { switch (action.type) { case PRJ_CREATE: { const st = { ...state }; st[action.name] = { name: action.name, path: action.path }; return st; } default: return state; } }
import React, { useState, useEffect } from "react" import PostBtn from './postBtn' import ListOfPost from './listOfPost' import Nav from './nav' const url = "http://localhost:8090/api/articles.php" export default function Dashboard(props){ const [articles, setPosts] = useState([]) async function fet...
tagSearchIndex = []; updateSearchResults();
import React from 'react' import { create } from 'react-test-renderer' import { StaticQuery } from 'gatsby' import Seo from '../../../common/seo/index' beforeEach(() => { StaticQuery.mockImplementationOnce(({ render }) => render({ site: { siteMetadata: { title: `Default Starter`, ...
import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faInfo } from '@fortawesome/free-solid-svg-icons'; import { Popover, Button, OverlayTrigger } from "react-bootstrap"; import "../../../css/performance.css"; import "../../../css/form.css"; import "../../../css/chart.c...
import React from 'react'; import UserContext from '../../lib/userContext'; import Router from 'next/router'; import Cookies from 'js-cookie'; import Head from 'next/head' import Layout from '../../components/layout'; import Link from "next/link"; import styles from '../../styles/Home.module.css'; import Footer from ...
///import editor.js ///import core/dom/dom.js ///import core/utils.js /** * dtd html语义化的体现类 * @constructor * @namespace dtd */ var dtd = dom.dtd = (function() { function _( s ) { for (var k in s) { s[k.toUpperCase()] = s[k]; } return s; } var X = utils.extend2; va...
// Parsing utility functions import check from './check.js' // Retrieve an unsigned byte from the DataView. function getByte (dataView, offset) { return dataView.getUint8(offset) } // Retrieve an unsigned 16-bit short from the DataView. // The value is stored in big endian. function getUShort (dataView, offset) { ...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import {Header} from 'components'; @translate(['common']) export default class App extends Component { static propTypes = { children: PropTypes.object.isRequired }; constructor(props) { ...
const { callbackify } = require('util'); const axios = require('axios'); const { stringify } = require('qs'); function request(requestOptions, requestCallback) { requestOptions.url = requestOptions.url || requestOptions.uri; requestOptions.data = requestOptions.data || requestOptions.json || requestOptions.formDat...
webpackHotUpdate(0,{ /***/ "./src/Views/Posters.js": /*!******************************!*\ !*** ./src/Views/Posters.js ***! \******************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony imp...
$(document).ready(function () { $(window).scroll(function () { if ($(window).height()+$(window).scrollTop()==$(document).height()){ $.ajax({ url: '/getBlogs', data: {'scroll':$('.blog').length}, success: function (data) { if (da...
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{279:function(n,w,o){}}]);
const download = require('download'); const fs = require('fs-extra'); const path = require('path'); const spawn = require('child_process').spawnSync; const prettier = require('prettier'); const pkg = require('./package.json'); const tspkg = require('typescript/package.json'); const API_VERSION = 6; const DTS_SRC = pa...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <div className="container"> <App /> </div> ,document.getElementById('root')); // If you want your app to work offline and load faste...
;(function(){ if (!!BX.IntranetStructure) return; BX.IntranetStructure = { bInit: false, popup: null, arParams: {} } BX.IntranetStructure.Init = function(arParams) { if(arParams) BX.IntranetStructure.arParams = arParams; if(BX.IntranetStructure.bInit) return; BX.IntranetStructure.bInit = true; BX.read...
import {Icon} from 'antd-mobile' import React, {Component, lazy, Suspense} from 'react' import {Route, Switch} from 'react-router-dom' export default class Navigator extends Component { state = { selectedTab: global.location.pathname.slice(1), } componentDidMount() {} componentWillUnmount() {...
const cheerio = require('cheerio') const createServer = require('../../../server/index') describe('Cookies route', () => { const url = '/cookies' let server beforeEach(async () => { server = await createServer() }) afterEach(async () => { await server.stop() }) test('responds with 200 when no ...
const path = require("path"); const { createFilePath } = require(`gatsby-source-filesystem`); const blogPost = path.resolve(`./src/templates/blog-post.js`); exports.createMdPages = function(graphql, createPage) { return graphql( ` { allMarkdownRemark( sort: { fields: [frontmatter___date],...
const moment = require('moment-jalaali'); require('moment/locale/fa'); moment.locale('fa'); moment.loadPersian({usePersianDigits: true}, {dialect: 'persian-modern'}); var now = new Date(); var isoStringDate = now.toISOString(); let todaysDate = moment(isoStringDate).format('jYYYY/jM/jD'); let todaysName = moment(iso...
import _ from 'lodash' import chai from 'chai' import sinon from 'sinon' require('sinon-as-promised') _.assign(global, { expect: chai.expect, sinon: sinon }) export default { noop() {} }
var classCamera = [ [ "Camera", "classCamera.html#a01f94c3543f56ede7af49dc778f19331", null ], [ "~Camera", "classCamera.html#ac9ed2a1433c5afdfb9cdf5b282fbc350", null ], [ "farClip", "classCamera.html#a49151cdee26a495c9078f59a565886fa", null ], [ "getPosition", "classCamera.html#ac3f20f73b8e37f445da786bf...
exports.normal = require('./distributions').normal; exports.getWindowedAverager = require('./utils').getWindowedAverager; exports.minimize = require('./minimizer').minimize; if (window) window.minimize = exports.minimize;
import axios from "axios"; import Head from "next/head"; import { Fragment } from "react"; import { motion } from "framer-motion"; import { DefaultLayout } from "../layouts/DefaultLayout"; const Static = (props) => { return ( <Fragment> <Head> <meta name="description" content={props.metadata} /> ...
// You should implement your task here. module.exports = function towelSort(matrix) { const arr = []; if (matrix) { for (let i = 0; i < matrix.length; i++) { if (i % 2 == 1) { matrix[i].reverse().forEach(item => { arr.push(item); }); } else { matrix[i].forEach(item...
'use strict'; // Clientes controller angular.module('clientes').controller('ClientesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Clientes', 'TableSettings', 'ClientesForm', function($scope, $stateParams, $location, Authentication, Clientes, TableSettings, ClientesForm ) { $scope.authent...
const production = !process.env.ROLLUP_WATCH; module.exports = { compilerOptions: { // enable run-time checks when not in production dev: !production, } };
import React from 'react' import PropTypes from 'prop-types' const PropsList = ({systemProps}) => <div>{systemProps.join(', ')}</div> PropsList.propTypes = { systemProps: PropTypes.arrayOf(PropTypes.string) } export default PropsList
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var _broadcastjs = require("broadcastjs"); var _br...
// prefix: a2cldr var Add2Calendar = function(eventData) { /*================================================================ Util */ /** * Check if the element has this class name * * @param {[type]} ele * @param {String} cls * @return {Boolean} */ this.hasClass = function(ele, cls) { ...
/** * Implements ToonTalk's frontside of a widget * Authors: Ken Kahn * License: New BSD */ /*jslint browser: true, devel: true, plusplus: true, vars: true, white: true */ window.TOONTALK.frontside = (function (TT) { "use strict"; // following needed due to containment mouse enter of a container from its ...
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" import Button from "../components/button" class IndexPage extends React.Component { render() { const siteTitle = "Gatsby Starter Personal Website" return ( <Layout lo...
const { mix } = require('laravel-mix'); // let tailwindcss = require('tailwindcss'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining ...
import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.PARAGRAPH; export default class Paragraph extends Component { render () { var classes = classnames( CLASS_ROOT, this.props.cl...
import { saveSecondLang, saveUserProps, checkAuth } from './'; import * as A from 'js/actions/constants'; describe('saveSecondLang', () => { test('should return the right payload', () => { expect(saveSecondLang({ target: { checked: true } })).toEqual({ payload: true, type: A.SAVE_SECOND_LANG, }); }); }); ...
// DOMAIN LAYER // Has the userRepository as a dependency. The authService does not know // nor does it care where the user models came from. This is abstracted away // by the implementation of the repositories. It just calls the needed repositories // gets the results and usually applies some business logic on them. c...
// // Path pattern: /issues/[0-9]+/copy$ // /* チケットコピー時のカスタマイズ Path pattern: /issues/[0-9]+/copy$ Type: JavaScript via: http://qiita.com/wfigo7/items/f13a89e1d3522f4a73b6 */ $(function(){ // ステータス ⇒ 新規 // val()ではうまくいかない。プルダウン変更時のイベントが関係している? $('#issue_status_id option').removeAttr('selected'); $('#is...
import { gsap } from 'gsap'; import { map, lerp, getMousePos, calcWinsize, getRandomNumber } from './utils'; import { MagneticFx } from './magneticFx'; import { Preview } from './preview'; // Calculate the viewport size let winsize = calcWinsize(); window.addEventListener('resize', () => winsize = calcWinsize()); /...
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. (function () { "use strict"; var config = require("../../config.js"); module.exports = { options: { force: true }, ...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
$(window).scroll(function(){ $topscroll=$(window).scrollTop(); $serivcesTop=$('#theSlid').offset().top; console.log($topscroll); console.log($serivcesTop); if($topscroll>$serivcesTop) { $('.navbar').fadeOut(500); }else{ $('.navbar').fadeIn(500); ...
/** * By default DataTables only uses the sAjaxSource variable at initialisation * time, however it can be useful to re-read an Ajax source and have the table * update. Typically you would need to use the `fnClearTable()` and * `fnAddData()` functions, however this wraps it all up in a single function * call. * ...
const { join, relative, dirname, resolve } = require('path'); const { readJSONSync } = require('fs-extra'); const resolveModule = require('resolve'); const t = require('@babel/types'); const { _transform: transformTemplate } = require('./element'); const genExpression = require('../codegen/genExpression'); const traver...
const { spawnSync } = require('child_process'); const extractGithubData = () => { const result = spawnSync('git', ['remote', 'get-url', 'origin']); const { stdout } = result; // https://github.com/USERNAME/REPOSITORY.git // or // git@github.com:USERNAME/REPOSITORY.git // to USERNAME/REPOSITORY.git const...
const getSessionByUserId = require('@steedos/auth').getSessionByUserId const objectql = require('@steedos/objectql') const getObject = objectql.getObject const wrapAsync = objectql.wrapAsync Meteor.publish('myFavorites', function(space_id){ var collection = Creator.getCollection("favorites", space_id) if(!this.use...
function main() { const v2 = {isFinite:4294967297}; const v4 = ["function"]; let v5 = v4; const v7 = [13.37,13.37]; function v8(v9,v10,v11,v12) { if (v12) { } else { const v18 = {defineProperties:268435456}; const v20 = Reflect.preventExtensions(268435456,"input",v18); } const v23 = [13....
(function($) { $.fn.scramble = function(options) { if (this.length === 0) { console.log('nothing here!'); return this; } var settings = $.extend({ textClass: null, possible: 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz', frames: 0, startTime: 5000, interval: 5000 }, options); ...
/* * Copyright 2004 Outerthought bvba and Schaubroeck nv * * 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 l...
export default ` /*============================================================================== Project: Bulk Synchronous Farm (BSF) Theme: BSF Skeleton Module: Problem-bsfTypes.h (Predefined Problem Types) Prefix: PT_bsf Author: Nadezhda A. Ezhova Supervisor: Leonid B. Sokolinsky This source code is ...
const ParkingList = () => import('./components/parking/List.vue' /* webpackChunkName: "resource/js/components/parking/list" */) const ParkingCreate = () => import('./components/parking/Add.vue' /* webpackChunkName: "resource/js/components/parking/add" */) const ParkingEdit = () => import('./components/parking/Edit.vue'...
import { pauseTracking, resetTracking, isRef, toRaw, isReactive, effect, stop, ref, reactive, proxyRefs, toRef, shallowReactive, trigger, isProxy, shallowReadonly, track, computed as computed$1, isReadonly } from '@vue/reactivity'; export { customRef, isProxy, isReactive, isReadonly, isRef, markRaw, proxyRefs, reactive...
(function(a,...b){})
//# sourceMappingURL=webpack-runtime-1887c35687d30d349433.js.map
///////////////////////////// This is the barchart with ttl distances /////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////// function draw_distances(data) { var margin = {top: 20, right: 20, bottom: 20, left: 40}, wi...
// @flow import React from "react" import { Redirect } from "react-router-dom" const NotFound404 = () => <Redirect to="/lessons" /> export default NotFound404
'use strict'; module.exports.definition = { set: function (v) { this.setProperty('pitch', v); }, get: function () { return this.getPropertyValue('pitch'); }, enumerable: true, configurable: true };
import fs from 'fs'; import babel from 'rollup-plugin-babel'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8')); export default [ { input: 'lib/index.js', output: { file: 'dist/inde...
import {ALERT_TYPE} from "../reducers/alertState"; export const verifyErrors = errors => { let existsErrors = Boolean(errors) if (existsErrors) {; // eslint-disable-next-line no-unused-vars for (const [ key, value ] of Object.entries(errors)) { if (existsErrors) existsErrors = !value; } } ret...
/** module with ignored shiz @module @alias ignore */ /** visible property */ exports.visible = 1 /** invisible property @ignore */ exports.invisible = 2
import { tagged } from 'daggy' import { compose, identity } from 'ramda' const Coyoneda = tagged('x', 'f') Coyoneda.prototype.map = function(f) { return Coyoneda( this.x, compose( f, this.f ) ) } Coyoneda.prototype.lower = function() { return this.x.map(this.f) } Coyoneda.lift = (x) =>...
import { createStore } from 'redux'; import reducer from './reducers'; const configureStore = () => { /* eslint-disable no-underscore-dangle */ const store = createStore( reducer, /* preloadedState, */ window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() ); /* eslint-enable */ ...
/** * Returns a set of inputs to add * "key" being the label and "value" the field type and default value * @return {Object} */ function inputs () { return { // Fill with desired inputs // ex: ["Your key"]: 42, }; } /** * Do the work * @param {Object} parameters - Selected value on inputs...
/** * @license * Copyright 2015 Google Inc. 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 requir...
import { html } from '@polymer/polymer/lib/utils/html-tag.js'; import { PolymerElement } from '@polymer/polymer/polymer-element.js'; import '@polymer/paper-input/paper-input.js'; import '../components/hui-generic-entity-row.js'; class HuiInputTextEntityRow extends PolymerElement { static get template() { return...
import {StyleSheet} from 'react-native' import * as colors from '@/assets/colors' export default StyleSheet.create({ container: { display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center', width: '100%', height: 30 }, icon: { width: 20, height: 20, ...
export const displayName = (name) => { if (!name) return; if (name.length > 50) { return `${name.substring(0, 50)}...`; } else { return name; } }; export function makeTableData(data) { const result = []; for (let i = 0; i < data.length; i++) { const contact = data[i][1...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, AuthenticationError, ExchangeNotAvailable } = require ('./base/errors'); // --------------------------------------------------------------------------- ...
import Fuse from 'fuse.js'; const searchKeywords = [ { title: "$BASED sCRV", link: "/based/scrv", tags: ["based", "$based", "scrv", "scurve"] }, { title: "$BASED sUSD", link: "/based/scrv", tags: ["based", "$based", "scrv", "scurve", "susd"] }, { ...
"use strict"; /* eslint-disable @typescript-eslint/no-var-requires */ var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.Adapter = exports.adapter = exports.getConfig = exports.controllerDir = void 0; const fs = require("fs"); const path = require("path"); /** * Resolves the root directory ...
'use strict'; const path = require('path'); const HtmlPlugin = require('html-webpack-plugin'); const isDevelopment = process.env.NODE_ENV !== 'production'; module.exports = { mode: isDevelopment ? 'development' : 'production', devtool: isDevelopment ? 'inline-source-map' : undefined, entry: { app: './src/in...
/* 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( 'notification', 'ku', { closed: 'ئاگادارکەرەوەکە داخرا.' } );
const fontFamily = "Inter"; const leftPercent = 25; const leftMargin = 2; const leftPanelColor = "#002D7D"; const rightPanelColor = "white"; export default { header: { position: "absolute", top: "0", left: "0", width: "100vw", height: "55px", background: "rgba(0, 72, 168, 0.85)", boxShado...
(x,) => 0
import React from 'react'; import '../Assets/Stylesheets/NotFound.css'; const NotFound = () => ( <div className="NotFound" id="notFound" /> ); export default NotFound;
'use strict' const { as } = require('@cuties/cutie'); const { Assertion } = require('@cuties/assert'); const { Is } = require('@cuties/is'); const { ConnectedMongoClient, ClosedMongoClient, DbOfMongoClient, AdminOfDb, BuildInfo } = require('./../../index'); const mongoClient = require('mongodb').Mongo...
process.chdir("../src/"); console.log("switching to directory " + process.cwd()); var util = require('util'); var assert = require('assert'); var fs = require('fs'); var SAT = require('example/sat/Problem.js'); var GSAT = require('example/sat/Algorithms.js').GSAT_IIA; var SAT_SA = require('example/sat/Algorithms.js')...
/** * @license * (c) 2009-2013 Michael Leibman * michael{dot}leibman{at}gmail{dot}com * http://github.com/mleibman/slickgrid * * Distributed under MIT license. * All rights reserved. * * SlickGrid v2.2 * * NOTES: * Cell/row DOM manipulations are done directly bypassing jQuery's DOM manipulation methods....
//# sourceMappingURL=component---src-pages-web-design-js-d2d3ccbb96e1a46f8a74.js.map
import { ModalBody, Spinner } from "reactstrap"; import { useHistory } from "react-router-dom"; import AlertTemplate from "../common/AlertTemplate"; import { useTranslation } from "react-i18next"; function ModalCheckOutBody({ queryGetVisitorByEmail, mutationUpdateVisit, updateVisit, toggle, getCurrentVi...
import _regeneratorRuntime from "@babel/runtime/regenerator"; import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; import { getBlobOrSVGDataUrl } from './svg-utils'; export default function parseToImage(_x, _x2, _x3) { return _parseToImage.apply(this, arguments); } function _parseToImage() { ...
import { BaseError } from 'make-error'; export default class ValidationError extends BaseError { static isInvalid(error, prop) { if (!(error instanceof ValidationError)) return false; return error.params.prop === prop; } constructor(name, params = {}) { super(`ValidationError: ${JSON.stringify({ na...
// @flow const R = require('ramda'); const jwt = require('jsonwebtoken'); const sshpk = require('sshpk'); /* :: type Role = 'none' | 'admin' | 'drush'; type Payload = {| // If set, this needs to be a valid ssh key (starting w/ 'ssh-rsa ...') sshKey?: string, role: Role, // Issuer - Information on who creat...
(function () { angular.module('app').service('servTeacher', ['$http', function ($http) { this.Get = function (query) { return $http.get("/Teacher/GetTeachers", { params: { query: query } }) .then(function (response) { return response.data; });...
/** * Handles toggling the navigation menu for small screens and * accessibility for submenu items. */ ( function() { var nav = document.getElementById( 'site-navigation' ), button, menu; if ( ! nav ) { return; } button = nav.getElementsByTagName( 'button' )[0]; menu = nav.getElementsByTagName( 'ul' )[0]; ...
/* * ***** BEGIN LICENSE BLOCK ***** * * Zimbra Collaboration Suite Web Client * Copyright (C) 2014, 2016 Synacor, Inc. * * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
"use strict"; /* * Copyright 2015 Palantir Technologies, Inc. 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 *...
import commonjs from 'rollup-plugin-commonjs'; import fs from 'fs'; import path from 'path'; import replace from 'rollup-plugin-replace'; import resolve from 'rollup-plugin-node-resolve'; import ts from 'rollup-plugin-typescript'; import typescript from 'typescript'; const tsconfig = JSON.parse(fs.readFileSync('./tsco...
/*jshint eqeqeq:false */ (function (window) { 'use strict'; /** * Creates a new client side storage object and will create an empty * collection if no collection already exists. * * @param {string} name The name of our DB we want to use * @param {function} callback Our fake DB uses callbacks because in *...
// @flow import React, { PureComponent } from "react"; import { Trans, withTranslation } from "react-i18next"; import { connect } from "react-redux"; import type { TFunction } from "react-i18next"; import { createStructuredSelector } from "reselect"; import type { CryptoCurrency } from "@ledgerhq/live-common/lib/types...
// const withPlugins = require('next-compose-plugins') // const withTM = require('next-transpile-modules')(['browser-nativefs']) // const withBundleAnalyzer = require('@next/bundle-analyzer')({ // enabled: process.env.BUNDLE_VISUALIZE == 1, // }) // module.exports = withPlugins([[withBundleAnalyzer, {}], [withTM]]) ...
const winston = require('winston'); module.exports.logger = new (winston.Logger)({ transports: [ new (winston.transports.Console)({ colorize: true, timestamp: true, }), new (winston.transports.File)({ maxsize: 320000, level: 'debug', ...
import { BootstrapVue } from 'bootstrap-vue'; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; import { shallowMount, createLocalVue, RouterLinkStub } from '@vue/test-utils'; import TdDashboardAction from '@/components/DashboardAction.vue'; describe('components/DashboardAction.vue', () => { const t...
import React, { useState } from "react"; import { NavLink } from "react-router-dom"; import { USER } from "../../../../../constants/routes"; import Menu from "./Menu"; const FeaturesLink = () => { const [visible, setVisible] = useState(false); const displayMenu = () => { setVisible(true); }; const hideMen...
/** * * Tests for TheFooter * * @see https://github.com/react-boilerplate/react-boilerplate/tree/master/docs/testing * */ import React from 'react'; import { render } from 'react-testing-library'; import { IntlProvider } from 'react-intl'; // import 'jest-dom/extend-expect'; // add some helpful assertions impor...
export * from '@styled-icons/boxicons-regular/BellOff';