text
stringlengths
2
1.04M
// // Blockchain Object // BitGo accessor to a any Bitcoin address. // Using this does not require authentication and is unrelated to BitGo wallet management. // // Copyright 2014, BitGo, Inc. All Rights Reserved. // var request = require('superagent'); var common = require('./common'); // // Constructor // var Bloc...
let main = { resolve: { extensions: ['.js','.jsx'] }, stats: 'errors-only', mode: 'development', module: { rules: [ { test: /.jsx?$/, loader: 'babel-loader', options: { presets: [ '@babel/preset-env', '@babel/react',{ 'plugins': ['@babel/plugin-proposal-class-properties']...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
/* * Copyright 2011 Twitter, Inc. * 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...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
module.exports = { siteMetadata: { title: "Tyler's Gatsby site", }, plugins: ['gatsby-plugin-react-helmet'], }
'use strict'; const chalk = require('chalk'); const figures = require('figures'); const ora = require('ora'); const api = require('./api.js'); const helpers = require('./helpers.js'); const imdbtr = params => { if (!params) { return false; } const query = helpers.buildQuery(params); const movie = api(que...
const {join} = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') // works great. with the default 'eval', imports are not mapped. inline-source-map also works. exports.devtool = 'source-map' // root of the monorepo, so that paths in output will be clickable exports.context = join(__dirname, '.....
import assert from 'assert' import GeneticAlg from '../src/index.js' const SOLUTION = 'thisisthesolution' const stringAlg = new GeneticAlg({ populationSize: 20, crossoverChance: 0.4, optimize: GeneticAlg.Optimize.Maximize, seed () { var text = '' var charset = 'abcdefghijklmnopqrstuvwxyz' for (var...
let debug = false try { debug = !!window.localStorage.debug } catch (e) {} export const HAS_DEBUG_FLAG = debug export const HAS_WINDOW = typeof window !== 'undefined' export const IS_BROWSER = HAS_WINDOW || typeof self !== 'undefined' const fallback = func => { setTimeout(func, 0) } export const raf = IS_BROWSER ?...
// Load modules // Declare internals var internals = {}; exports.arrayToObject = function (source) { var obj = {}; for (var i = 0, il = source.length; i < il; ++i) { if (typeof source[i] !== 'undefined') { obj[i] = source[i]; } } return obj; }; exports.merge = funct...
import axios from 'axios' import dotenv from 'dotenv' dotenv.config() async function fetchQuery(selector, query, variables) { // console.log({query, variables}) const {data} = await axios.post( 'https://graphql.fauna.com/graphql', {query, variables}, { headers: { Authorization: `Bearer $...
import React, { createContext, useReducer } from "react" export const PortfolioContext = createContext() const initialState = { isOpen: false, } const reducer = (state, action) => { switch (action.type) { case "TOGGLE_MENU": console.log("toggling in reducer") return { isOpen: !state.isOpe...
/** * Square Connect API * Client library for accessing the Square Connect APIs * * OpenAPI spec version: 2.0 * Contact: developers@squareup.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.3.0...
/*! * Bootstrap v3.3.5 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((v...
define([], function() { return { CreatedOnLabel: "Created on ", ChangedOnLabel: "Changed on ", RefreshLabel: "Refresh", LoadingLabel: "Loading...", "PropertyPaneDescription": "List sites user has permissions, Include SharePoint Sites, Office365 Groups, Add-Ins App Sites", "BasicGroupName": "Pr...
switch (d.id){ case 'Building': $('#toggleWithPieClick').html(' Applications by Day over last Month <select id="monthly-dropdown-menu" onchange ="selectSubtype(value);"><option value="">ALL</option>'+ '<optgroup label="Residential">'+ ...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); require('../plugins/easing/easing.js'); require('../plugins/parallax-js-m...
const webdriver = require('selenium-webdriver'); const {expect} = require('chai'); const chromeDriver = require('selenium-webdriver/chrome'); const {Builder, By, Key, until} = require('selenium-webdriver'); describe('show open baidu', function() { this.timeout(50000); let driver; before(() => { driver = new ...
const api = require('@satelite/api') module.exports = api.controllers.publicFolders
/** * Kendo UI v2019.1.115 (http://www.telerik.com/kendo-ui) * Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
!function(a,f,k){function h(d){return function(){var l,b=arguments[0];l="["+(d?d+":":"")+b+"] http://errors.angularjs.org/1.4.14/"+(d?d+"/":"")+b;for(b=1;b<arguments.length;b++){l=l+(1==b?"?":"&")+"p"+(b-1)+"=";var a,c=encodeURIComponent;a=arguments[b];a="function"==typeof a?a.toString().replace(/ \{[\s\S]*$/,""):"unde...
// @ts-check const fs = require('fs') const { transformSync, ParserOptions } = require('@babel/core') const { createFilter } = require('@rollup/pluginutils') const runtimePublicPath = '/@react-refresh' const runtimeFilePath = require.resolve( 'react-refresh/cjs/react-refresh-runtime.development.js' ) const runtimeCo...
var fs = require('fs'); var _ = require('underscore'); var extend = require('util')._extend; module.exports = { // handle errors in express routers handleError : function(err,res) { if(err) { var message = "" if (_.has(err,'message')) message = err.message else message = err log(message...
import raceData from "./races"; export default { name: "Sergio Perez", id: 13, teamId: 6, raceData };
import {CLOSE_TAB, CHANGE_TAB} from '../constants/tabs'; import { UI_WINDOW_MAXIMIZE, UI_WINDOW_UNMAXIMIZE, UI_OPEN_HAMBURGER_MENU, UI_WINDOW_MINIMIZE, UI_WINDOW_CLOSE } from '../constants/ui'; import rpc from '../rpc'; import {userExitTermGroup, setActiveGroup} from './term-groups'; export function closeTab...
'use strict';var serializer_1 = require('angular2/src/web_workers/shared/serializer'); var event_serializer_1 = require('angular2/src/web_workers/ui/event_serializer'); var exceptions_1 = require('angular2/src/facade/exceptions'); var async_1 = require('angular2/src/facade/async'); var EventDispatcher = (function () { ...
'use strict'; exports = module.exports = function(config) { let winston = require('winston'); let logger = new (winston.Logger)({ transports: [ new (winston.transports.Console)(config.winston.console), new (winston.transports.File)(config.winston.file) ] }); return logger; }; exports['@re...
/** * 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. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
import {RuleTester} from 'eslint'; import * as rule from '../../../lib/rules/types-are-capitalized'; import {parser} from '../../../lib/utils/parser' const ruleTester = new RuleTester(); describe('types-are-capitalized', () => { ruleTester.run('types-are-capitalized', rule, { valid: [ { ...
/* @flow */ export { default } from "./EtherBlockPanel";
// create a reference to the model let Book = require('../models/book'); // Gets all books from the Database and renders the page to list all books. module.exports.bookList = function(req, res, next) { Book.find((err, bookList) => { // console.log(bookList); if(err) { return c...
var cmiAudioTimingData = { "base": "/nwffacim/2009/071809/", "title": "Jul 18, 2009 Discussion", "time": [{ "id": "p0", "seconds": 0 }, { "id": "p1", "seconds": 12.36444814 }, { "id": "p2", "seconds": 22.927676988 }, { "id": "p3", "...
export function a() { return 'this is func a'; } export function b() { return 'this is func b'; }
<<<<<<< HEAD module.exports={A:{A:{"2":"P F D E A B rB"},B:{"1":"v s Q VB GB","2":"C I J K L M N"},C:{"2":"0 1 2 3 4 5 6 7 8 9 uB LB G T P F D E A B C I J K L M N U V W X Y Z a b c d e f g h i j k l m n o p q r R t u O w x y z SB WB AB BB CB DB EB H FB MB NB OB PB QB RB IB TB UB v s Q kB jB iB"},D:{"1":"EB H FB MB NB O...
import React, { PropTypes, Component } from 'react' import Alerts from './organisms/Alerts' import Header from './ecosystems/Header' class App extends Component { render() { return ( <div> <Header /> <Alerts /> <section className="app-container"> { this.props.children ...
/* * jQuery.appear * https://github.com/bas2k/jquery.appear/ * http://code.google.com/p/jquery-appear/ * http://bas2k.ru/ * * Copyright (c) 2009 Michael Hixson * Copyright (c) 2012-2014 Alexander Brovikov * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) */ (function($) { $...
/** @type {import("../..").Heuristic[]} */ export const heuristics = [ { description: "`eslint` is installed", async detector({ folderInfo }) { return "eslint" in folderInfo.allDependencies; }, }, { description: "`.eslintrc.cjs` exists", async detector({ readFile }) { const eslintrc = await readFile(...
import delay from 'delay'; import * as actionTypes from '../utils/actionTypes'; import apiFetch from '../utils/apiFetch'; export const increaseCount = () => ({ type: actionTypes.COUNT_INCREASED, }); export const loadCount = () => async dispatch => { const res = await apiFetch('/count'); const json = await res.j...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ jasonElementResizer.prototype = Object.create(jasonBaseWidget.prototype); jasonElementResizer.prototype.construc...
var searchData= [ ['quat_2ecpp_775',['Quat.cpp',['../_quat_8cpp.html',1,'']]], ['quat_2eh_776',['Quat.h',['../_quat_8h.html',1,'']]] ];
import 'govuk-frontend/govuk/all.scss'; import Head from 'next/head'; import { useState, useEffect } from 'react'; import { SignInRequest } from '../auth/signInRequest'; import { Header } from '../header'; import { Footer } from '../footer'; import { signIn, getAccount } from '../auth/authPopup'; function App({ Compon...
let appContext; const CommonService = { getAppContext: function () { return appContext; }, setAppContext: function (context) { appContext = context; } } export default CommonService;
/*! jQuery v3.3.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector | (c) JS Foundation and other contributors | jquery.org/license */ !function(e, t) { "use st...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
const crypto = require('crypto') const simulate = require('../../index') const _ = require('../utils') test('getAccountInfoSync', () => { expect(wx.getAccountInfoSync()).toEqual({ miniprogram: { appId: 'wx4f4bc4dec97d474b' }, }) }) test('chooseAddress', async () => { const res = await _.wa(wx.cho...
/* * Copyright 2016 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 required by applicable...
// Icon: Linear.CoinPound import React from 'react'; import defaultProps from 'reactium_modules/@atomic-reactor/reactium-ui/Icon/defaultProps'; export default props => ( <svg {...defaultProps} {...props}> <g> <path d="M824.667 231.802c-90.773-50.429-210.904-78.202-338.267-78.202-127.362 0-247....
//Se evalua la expresion el operador de asignacion le asigna el valor a la variable let a = 1; console.log(a); a += 3; // a = a + 3 console.log(a); a -= 2; // a = a - 2 console.log(a); a *= 3; console.log(a); a /= 2; console.log(a); a %= 6; console.log(a); a **= 3; //3 cubica console.log(a);
import axios from 'axios'; export const FETCH_POSTS = 'FETCH_POSTS'; export const CREATE_POST = 'CREATE_POST'; export const FETCH_POST = 'FETCH_POST'; export const DELETE_POST = 'DELETE_POST'; const ROOT_URL = 'http://reduxblog.herokuapp.com/api'; const API_KEY = '?key=turtle123'; export function fetchPosts(){ con...
define(function (require) { var exports = {}; var measureEl = null; var lastEl = null; var util = require('util'); var scale = util.scale; function setHighLight(el) { if (!el) { return; } el.style.outline = 'solid 1px red'; } function setNormal(el) ...
// @flow import moment from 'moment'; import type { AdaWallet, AdaAddress, AdaWalletInitData } from '../../adaTypes'; /* @note: Ada wallet is the abstraction for Daedalus */ export function toAdaWallet(walletInitData : AdaWalletInitData): AdaWallet { const { cwAssurance, cwName, cwUnit } = walletInitData.cwI...
/* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */ import ...
'use strict'; const hljs = require('../../build'); describe('computing the relevance score of a language', () => { it('should ignore common keywords', () => { const grammar =function () { return { keywords: "farmer river weeds" + " and of" // keywords that happen to also be c...
const service = require("./service"), log = require("../lib/log"); module.exports = function(app) { /** * @swagger * /service: * get: * tags: * - frontend * description: Returns a list of items * summary: Search * produces: * - application/json * responses: * 200: *...
const path = require('path'); const glob = require('fast-glob'); const fs = require('graceful-fs'); const {SyncWaterfallHook} = require('tapable'); const {ContextReplacementPlugin, DefinePlugin, Template} = require('webpack'); const app = require('../../option-parser'); function packageName(file) { try { return JSO...
import React from 'react'; // import trie from './AutoComplete.js'; import Search from './Search.js'; import '../css/Welcome.css'; import PropTypes from 'prop-types'; export default function WelcomePage(props) { return ( <header className='Front-page'> <h1 id="title"> Prepare </h1> <div className...
import PInlineError from './PInlineError'; export default { title: 'Forms / Inline Error', component: PInlineError, } const Template = (args, { argTypes }) => ({ props: Object.keys(argTypes), components: { PInlineError, }, template: ` <PInlineError v-bind="$props" ...
// eslint-disable-next-line no-unused-vars import regeneratorRuntime from 'regenerator-runtime/runtime'; import fs from 'fs'; import path from 'path'; import shell from 'shelljs'; import Env from './env'; import Electron from './electron'; import Logger from './log'; import Desktop from './desktop'; import ElectronApp ...
// news_category.js App.Models.NewsCategory = Backbone.Model.extend({ defaults: { name: null }, url: function() { return App.settings.apiEntryPoint + 'news_categories/' + (typeof(this.id) === 'undefined' ? '' : this.id); } });
const DbModel = require('./dbmodel'); class User extends DbModel{ constructor(id){ super(id); } get accountType() { return this._accountType; } set accountType(value) { this._accountType = value; } get username() { return this._username; } set u...
/*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
// required: page // optional: lastmod, changefreq, priority, xhtmlLinks, images, videos // changefreq : always, hourly, daily, weekly, monthly, yearly, never sitemaps.add('/sitemap.xml', () => { let out = []; out.push({ page: '/', priority: 1 }); out.push({ page: '/reviews', priority: 0.5 }); out.push({ page...
// hosting example var myVariable = 10; function myFunc() { myVariable = 25; var myVariable; // log the variable value console.log(myVariable); // result ? } // execute the function myFunc(); // log the variable value console.log(myVariable); // result ?
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'bidi', 'tt', { ltr: 'Сулдан уңга язылыш', rtl: 'Уңнан сулга язылыш' } );
const http = require('http'); const puppeteer = require('puppeteer'); const multimatch = require('multimatch'); const async = require('async'); function pdfize(serverInfo, browser, printOptions, files, path, callback) { const pdfPath = path + '.pdf'; // FIXME see https://github.com/dpobel/metalsmith-pdfize/issues/...
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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...
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.ENUM({ package: 'foam.nanos.approval', name: 'ApprovalStatus', values: [ { name: 'REQUESTED', label: { en: 'Requested', pt: 'Requeridos'}, ordinal: 0, docu...
module.exports = { name : 'stop', run : async(client, message, args) => { if (!message.member.voice.channel) return message.channel.send(`${client.emotes.error} - You're not in a voice channel !`); if (!client.player.getQueue(message)) return message.channel.send(`${client.emotes.error} - No music cur...
export const userAgent = window.navigator.userAgent; export const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent); export function getExt(url) { return url.trim().toLowerCase().split('.').pop(); } export function sleep(ms = 0) { return new Promise((resolve) => setTi...
const idx = [ {{- range .Site.Pages }} { "link": "{{ .Permalink }}", "title": "{{ .Title }}", "body": "{{ .PlainWords }}".toLowerCase(), }, {{- end }} ]; const searchKeys = ['title', 'link', 'body', 'id']; const searchOptions = { ignoreLocation: true, findAllMatches: true, includeScore: true,...
import gulp from 'gulp'; import babel from 'gulp-babel'; import sass from 'gulp-sass'; import autoprefixer from 'gulp-autoprefixer'; import concat from 'gulp-concat'; import uglify from 'gulp-uglify'; import rename from 'gulp-rename'; import imagemin from 'gulp-imagemin'; import sourcemaps from 'gulp-sourcemaps'; impor...
async function newFormHandler(event) { event.preventDefault(); const title = document.querySelector('input[name="post-title"]').value; const post_content = document.querySelector('textarea[name="post-content"]').value; const response = await fetch(`/api/posts`, { method: 'POST', bo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
module.exports = { NewTweet: function(message) { return { message: message, name: "Tom" }; }, };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
import { createAction, createThunkAction } from 'redux-tools'; import { INDOAPI } from 'services/api'; export const fetchAdaptationInit = createAction('fetchAdaptationInit'); export const fetchAdaptationReady = createAction('fetchAdaptationReady'); export const fetchAdaptationFail = createAction('fetchAdaptationFail')...
(function ($) { "use strict"; $(window).scroll(function() { var scroll = $(window).scrollTop(); var box = $('.header-text').height(); var header = $('header').height(); if (scroll >= box - header) { $("header").addClass("background-header"); } else { $("header").removeClass("background-he...
'use strict'; //An example of the response from searching for music on iTunes. Contains a //`results` property that is an array of objects representing individual songs const EXAMPLE_SEARCH_RESULTS = {results:[{ artistName: "Queen", trackName: "Bohemian Rhapsody", previewUrl: "https://audio-ssl.itunes.appl...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import Img from "gatsby-image" /* * This component is built using `gatsby-image` to automatically serve optimized * images with lazy loading and reduced file sizes. The image is loaded using a * `useStaticQuery`, which allows us to load the ...
import { animate, animateChild, animation, group, keyframes, query, style, transition, trigger, useAnimation } from '@angular/animations'; const fadeOutUp = animation([ animate('{{duration}}ms {{delay}}ms', keyframes([ style({ opacity: 1, transform: 'translate3d(0, 0, 0)', easing: 'ease', offset: 0 }), ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = useLoggedOut; var _react = require("react"); var _useWebId = _interopRequireDefault(require("./useWebId")); const isNull = (_, id) => id === undefined ? undefined : id ==...
import React from 'react' import ArchiveIcon from '@patternfly/react-icons/dist/umd/icons/archive-icon'; const Nested = () => { return ( <div> <ArchiveIcon /> </div> ) } export default Nested;
const{ipcRenderer} = require('electron') const{$}=require('./helper') const path=require('path') let musicFilesPath=[] $('select-music').addEventListener('click',()=>{ ipcRenderer.send('open-music-file') }) const renderListHTML=(pathes)=>{ const musicList=$('musicList') const musicItemsHTML=pathes.reduce((...
const config = require('./httpServer'); const staticDir = config.httpServer.staticDir; module.exports = { sass: { src: staticDir, dest: staticDir, debug: true, indentedSyntax: true, // true = .sass and false = .scss sourceMap: true, outputStyle: 'extended' } };
/* * 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 writing, software * distributed u...
// modules are defined as an array // [ module function, map of requires ] // // map of requires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the require for previous bundles parcelRequire = (function (modules, cache, entry, globalName)...
//# sourceMappingURL=AppRootPage.62c612232a976d8836f5.js.map
// @flow import ad from './ad.svg'; import add from './add.svg'; import addCircle from './add-circle.svg'; import addLayout from './add-layout.svg'; import addPin from './add-pin.svg'; import adGroup from './ad-group.svg'; import adsStats from './ads-stats.svg'; import adsOverview from './ads-overview.svg'; import aler...
const path = require('path'); const TerserPlugin = require('terser-webpack-plugin'); module.exports = { mode: 'production', entry: path.resolve(__dirname, 'src/components/SearchField.jsx'), output: { filename: 'index.min.js', path: path.resolve(__dirname, 'dist'), library: 'ReactSearch', libraryT...
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+css-extras+clike+javascript+java+php+php-extras+coffeescript+scss+bash+c+python+sql+http+ruby+scala+haskell+swift+objectivec+latex+apacheconf+git */ self = (typeof window !== 'undefined') ? window // if in browser : ( (typeof WorkerGlobalSc...
import { governance, staking } from '@/apis/http'; import { PROPOSALS } from '@/constants'; export default { async initProposalsList({ commit, dispatch }) { commit('reset'); commit('setLoading', true); const requests = [ dispatch('fetchProposals', PROPOSALS.STATUS.UNSPECIFIED.ID), ]; await ...
import { inject } from '@ember/service'; import Route from '@ember/routing/route'; export default Route.extend({ store: inject(), model(params) { return this.store.find('identificator', params.id); } });
import React from "react" import { Helmet } from "react-helmet" import { graphql, useStaticQuery } from "gatsby" export default ({ description, meta, title }) => { const { site } = useStaticQuery(graphql` { site { siteMetadata { title lang } } } `) return (...
const HtmlWebpackPlugin = require('html-webpack-plugin') const path = require('path') const webpack = require('webpack') const WorkboxPlugin = require('workbox-webpack-plugin') const EnvironmentWebpackPlugin = new webpack.EnvironmentPlugin({ DEBUG: false, NODE_ENV: 'development', PANOPTES_ENV: 'staging' }) cons...
const songs = [ "mixtape/G Squad Live @ Hustlin Beats 01.05.2001.mp3", "mixtape/G-Squad - Live at Liquid Adrenaline 5th Dimension - June 24 2000 - Side A.mp3", "mixtape/G-Squad - Live at Liquid Adrenaline 5th Dimension - June 24 2000 - Side B.mp3", "mixtape/Garth_LiveInSanFrancisco_10311996.mp3", "mixtape/Garth_Sha...
export default function styles(theme) { return { root: { margin: theme.spacing(2), }, header: { paddingBottom: '0px !important', textAlign: 'center', }, content: { margin: `${theme.spacing(1)} 0`, display: 'flex', ...
import React from "react"; import ReactDOM from "react-dom"; import { Provider } from "react-redux"; import "./index.css"; import App from "./App"; import configureStore from "./configure-store"; const store = configureStore(); ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getEle...
const apiready = () => { const app = new Vue({ el: '#app', data: { postsList: [], loading: true, isError: false }, created() { api.setRefreshHeaderInfo({ bgColor: '#FEFEFE', textColor: '#808080', ...
/******************************************************************************\ | | | new-package-source-view.js | | ...