text stringlengths 2 1.04M |
|---|
/*eslint-disable no-unused-expressions */
import { fetchProduct } from "../../api/fetch_product";
`📚 Exercise One - Handling multiple promises in parallel 📚`;
function requestProducts(arrayOfPromises) {
// Your solution here
return Promise.all(arrayOfPromises);
}
`📚 Exercise Two - More Error handling in Promi... |
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import reducers from './reducers';
import App from './App';
import './index.css';
// const enhancer =
// window.__REDUX_DEVTOOLS_E... |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="es6" -o ./modern/`
* Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2014 Jeremy Ashkenas, DocumentCloud and Inv... |
import React from 'react'
import Layout from '../components/layout'
import useInicio from '../components/hooks/useInicio'
import styled from '@emotion/styled'
import { css } from '@emotion/core'
import BackgroundImage from 'gatsby-background-image'
import heroCSS from '../css/hero.module.css'
import Encuentra from '../... |
function Vector(x,y) {
this.x = x;
this.y = y;
this.getX = function() {
return this.x;
}
this.setX = function(x) {
this.x = x;
}
this.getY = function() {
return this.y;
}
this.setY = function(y) {
this.y = y;
}
this.getMag = function() {
return Math.sqrt(Math.pow(this.x,2) + Math.pow... |
describe('Chart.controllers.polarArea', function() {
describe('auto', jasmine.fixture.specs('controller.polarArea'));
it('should be registered as dataset controller', function() {
expect(typeof Chart.controllers.polarArea).toBe('function');
});
it('should be constructed', function() {
var chart = window.acqui... |
/*!
* Native JavaScript for Bootstrap - Collapse v4.1.2 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2022 © dnp_theme
* Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefi... |
import React from 'react'
import { render } from 'react-dom'
const Demo = () => (
<div>
<h1>TODO</h1>
</div>
)
render(<Demo />, document.querySelector('#demo')) |
import {generateNavigator} from './navigatorBridge';
import * as optionsConverter from './optionsConverter';
export function convertSingleScreen(screen, drawer, components) {
if (drawer) {
return convertDrawer(convertSingleScreen(screen), convertComponent(drawer.left), convertComponent(drawer.right));
}
ret... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import './index.css';
import 'bootstrap/dist/css/bootstrap.css';
import App from './App';
ReactDOM.render(
<Router>
<App />
</Router>,
document.getElementById('root')
... |
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import * as React fr... |
import howTo from '../docs/how-to.md'
import MarkdownPage from '../layouts/markdown'
export default function Terms () {
return (
<MarkdownPage title='How to Use' source={howTo} />
)
} |
export default [
{
name: 'kov_01',
colors: ['#d24c23', '#7ba6bc', '#f0c667', '#ede2b3', '#672b35', '#142a36'],
stroke: '#132a37',
background: '#108266'
},
{
name: 'kov_02',
colors: ['#e8dccc', '#e94641', '#eeaeae'],
stroke: '#e8dccc',
background: '#6c96be'
},
{
name: 'kov_0... |
'use strict';
/**
* @namespace Egg
*/
/**
* Start egg application with cluster mode
* @since 1.0.0
*/
exports.startCluster = require('egg-cluster').startCluster;
/**
* Start egg application with single process mode
* @since 1.0.0
*/
exports.start = require('./lib/start');
/**
* @member {Application} Egg#Ap... |
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=9844450175776cf031d4)
* Config saved to config.json and https:... |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2007-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project'... |
// var dom = "<'row topCustomCar'<'col-sm-3'li><'col-sm-3'f><'col-sm-6'p>>" + "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>";
var language = {"decimal": "","emptyTable": "No hay información","info": "Mostrando _START_ a _END_ de _TOTAL_ Entradas",
"infoEmpty": "Mostrando 0 to 0 of 0 Entradas... |
import React from './react';
import ReactDOM from './react-dom';
let style = {border: '3px solid red', margin: '5px'};
console.log(React);
let element = (
<div id="A1" style={style}>
A1
<div id="B1" style={style}>
B1
<div id="C1" style={style}>
C1
<div id="D1">D1</div>
<di... |
require(['./b.js'], function(b) {
console.log(b);
}); |
const Discord = require("discord.js");
const { Clans, Users } = require("../../database.js");
const botUtils = require("../../utils.js");
module.exports = {
// Execução do comando
run: (client, message, args) => {
newError = botUtils.newError;
try {
event = botUtils.jsonPull('./dataBank/mindustryEve... |
/**
* @typedef {import('../repository/abstractAreaRepository')} AbstractAreaRepository
*/
const AreaNotDefinedError = require('./error/areaNotDefinedError');
const AreaIdNotDefinedError = require('./error/areaIdNotDefinedError');
const Area = require('../entity/area');
module.exports = class Service {
/**
*
... |
import {
POD_STATUS_READY,
POD_STATUS_CONTAINER_FAILING,
POD_STATUS_NOT_READY,
POD_STATUS_NOT_SCHEDULABLE,
} from '../constants';
const metadata = {
name: 'my-pod',
namespace: 'my-namespace',
};
const getPod = (phase, conditions = [], containerStatuses = []) => ({
metadata,
status: {
phase,
co... |
export const CLIENT_LOADING = 'CLIENT_LOADING'
export const CLIENT_SUCCESS = 'CLIENT_SUCCESS'
export const CLIENT_FAILURE = 'CLIENT_FAILURE'
export const CLIENT_FINISHED = 'CLIENT_FINISHED'
export const CLIENT_ID = 'CLIENT_ID'
export const CLIENT_NAME = 'CLIENT_NAME'
export const CLIENT_LASTNAME = 'CLIENT_LASTNAME'
ex... |
var utils = require('./test_config.js');
var settings = require('../settings');
var async = require('async');
var expect = require('chai').expect;
var mongoose = require('mongoose');
var meerkat = require('../lib/meerkat');
describe('Current Version Table', function() {
var testSchemaObject = {
testField1: {
t... |
import React, { memo, Fragment } from "react";
import moment from "moment";
import { withTranslation } from "react-i18next";
// import UserPhoto from "../../../partials/user-photo/user-photo.component";
import SeeLink from "../../../partials/see-all-link/see-all-link";
import { goToPageWithFilter } from "./../../../... |
import React from 'react';
import { shallow } from 'enzyme';
import Loading from './Loading';
describe('Loading', () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(<Loading />);
});
it('should render correctly given the required props', () => {
expect(wrapper).toMatchSnapshot();
});
it(... |
import assert from 'power-assert';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { Link, Location, Locations, Pages, NotFound } from '../../index';
describe('react-router-component (on server)', function() {
describe('basic rendering', function() {
class rendersSlug extends Re... |
/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.6
* Copyright (C) 2019 Oliver Nightingale
* @license MIT |
/* _________________________________________________________________________
*
* Tachyon : A Self-Hosted JavaScript Virtual Machine
*
*
* This file is part of the Tachyon JavaScript project. Tachyon is
* distributed at:
* http://github.com/Tachyon-Team/Tachyon
*
*
* Copyright (c) 2011-2014, Un... |
/*!
* 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 required by appli... |
import React, { Component } from 'react'
import AddSkill from './AddSkill'
import API from './utils/api'
import { setTimeout } from 'timers';
class ProfileInfo extends Component {
componentWillMount(){
const store = API.getDataFromLocalStore('toptal-profile-info') || API.profileModel;
this.se... |
var weibo = {
page: 1,
lastId: 0,
loadCount: 1,
url: '',
type:'all',
noMoreNextPage: false,
isLoadingWeibo: false,
isLoadMoreVisible: function () {
var visibleHeight = $(window.top).height();
var loadMoreOffset = $('#load_more').offset();
return visibleHeight + $... |
/*
* @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publis... |
var live = require('can-view-live');
var compute = require('can-compute');
var Map = require('can-map');
var List = require('can-list');
var nodeLists = require('can-view-nodelist');
var canBatch = require('can-event/batch/batch');
var Observation = require("can-observation");
var QUnit = require('steal-qunit');
var ... |
import React from 'react';
import {
PopoverArrow,
PopoverContained,
PopoverDefault,
PopoverDirection,
PopoverOffset,
PopoverOverflow,
} from './index';
export default class PopoverKitchenSink extends React.Component {
render() {
return (
<React.Fragment>
<PopoverArrow />
<Popove... |
var diff = require("../");
var before = {
length: 3,
data: [1, 2, 3]
};
var after = {
data: [4, 5, 1, 2, 3],
count: 5
};
var differences = diff(before, after);
console.log(differences);
function applyChanges(target, changes) {
return changes.reduce(
(acc, change) => {
diff.applyChange(acc, true,... |
//# sourceMappingURL=preact.min.js.map |
let bird = {
name: "Donald",
numLegs: 2
};
let boat = {
name: "Warrior",
type: "race-boat"
};
let glideMixin = function(obj) {
obj.glide = function() {
console.log("Gliding!");
};
};
glideMixin(bird);
glideMixin(boat); |
/* vim:set ts=2 sw=2 sts=2 et: */
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/**
* Make sure that the property view displays function parameters.
*/
const TAB_URL = EXAMPLE_URL + "browser_dbg_frame-parameters.html";
var gPane = null;
var gTab = null;... |
import React from "react"
import Layout from "../components/layout"
import { graphql } from "gatsby"
export default function Home({ data }) {
return (
<>
<Layout>
<h1>{data.index.frontmatter.title}</h1>
<div dangerouslySetInnerHTML={{ __html: data.index.html }} />
<h3>{data.links.fr... |
var a04459 =
[
[ "shared_ptr", "a04459.html#aa2fdfc67818ceeb6d134b5e4aba47591", null ],
[ "EquivInertialNavFactor_GlobalVel", "a04459.html#ad3909c0eae412cff95ae2b01962feb7d", null ],
[ "EquivInertialNavFactor_GlobalVel", "a04459.html#ab42b148a510e66814dc44a05a97d361c", null ],
[ "~EquivInertialNavFactor... |
/*
* ISC License (ISC)
* Copyright (c) 2018 aeternity developers
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVI... |
// makeSelectLocationState expects a plain JS object for the routing state
const makeSelectLocationState = () => {
let prevRoutingState;
let prevRoutingStateJS;
return (state) => {
const routingState = state.get('route'); // or state.route
if (!routingState.equals(prevRoutingState)) {
prevRoutingS... |
export const isSymbol = (x) => typeof x === 'symbol' |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'bi';
var iconName = 'file-font';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = null;
var svgPathData = 'M 128 0 A 64 64 0 0 0 64 64 L 64 448 A 64 64 0 0 0 128 512 L 384 512 A 64 64 0 0 0 448 448 L 448 64 A ... |
import AutoForm from 'uniforms/AutoForm'
import ValidatedQuickForm from './ValidatedQuickForm'
const Auto = parent => class extends AutoForm.Auto(parent) {
static Auto = Auto;
}
export default Auto(ValidatedQuickForm) |
(function() {
frames = 0;
function updateNumbers() {
$('.number').each(function(i, el) {
el.innerHTML = 'Image ' + (i + 1);
});
};
function addFrame(n) {
frames++;
r = '<div id="frame' + n + '" class="frame">';
r += ' <h3 class="number">Image ' + (n + 1) + '</h1>';
r += ' <div>... |
/*! ramp-pcar 26-06-2015 14:04:08 : v. 5.5.0-7
*
* RAMP GIS viewer - Groundhog; Sample of an implementation of RAMP
**/
define(["dojo/_base/lang","utils/tmplUtil"],function(a,b){"use strict";return{dataBuilder:function(a,c){var d={data:null,config:null,str:null,lyr:null,fn:null},e=Object.create(d);return e.data=a... |
#!/usr/bin/env node
var fs = require("fs");
var UglifyJS = require("uglifyjs");
var version = require("../package.json").version;
var ast = UglifyJS.parse(fs.readFileSync("src/bugsnag.js").toString("utf8"), {
filename: "bugsnag-" + version + ".js"
});
var compressor = UglifyJS.Compressor({
warnings: false,
glo... |
export const listeners = [];
export const subscribe = (fn) => {
listeners.push(fn);
return () => {
const index = listeners.indexOf(fn);
if (index >= 0) {
listeners.splice(index, 1);
}
};
};
const snackbarMiddleware = () => (next) => (action) => {
const result = next(action);
if (action.met... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 8.89l.94 3.11h2.82l-2.27 1.62.93 3.01L12 14.79l-2.42 1.84.93-3.01L8.24 12h2.82L12 8.89M12 2l-2.42 8H2l6.17 4.41L5.83 22 ... |
var expect = require("chai").expect;
module.exports = function(helpers) {
var component = helpers.mount(require.resolve("./index"), {});
var children;
children = component.getEl("root").children;
expect(children.length).to.equal(2);
expect(children[0].innerHTML).to.equal("foo-a");
expect(chil... |
const { promisify } = require("util");
const Twit = require("twit");
const stripe = require("stripe")(process.env.STRIPE_SKEY);
const twilio = require("twilio")(
process.env.TWILIO_SID,
process.env.TWILIO_TOKEN
);
const { google } = require("googleapis");
const validator = require("validator");
const GlobalData = r... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _pure = require("./pure");
Object.keys(_pure).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _pure[key]) return;
Object.defineProperty(exports, key, {
e... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PropsNotForwarded = exports.defaultProps = exports.propTypes = undefined;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
function _interopRequireDefault(obj) ... |
export { TimepickerConfig } from './timepicker.config';
export { TimepickerComponent } from './timepicker.component';
export { TimepickerModule } from './timepicker.module';
//# sourceMappingURL=index.js.map |
/*! ramp-pcar 28-04-2015 15:18:32 : v. 5.3.0-rc2
*
* RAMP GIS viewer - Elk; Sample of an implementation of RAMP
**/ |
/*
Copyright 2020-2021 Lowdefy, 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 in wri... |
import BaseAppError from './BaseAppError';
import { NOT_FOUND } from '../constants/errorTypes';
export default class NotFoundError extends BaseAppError {
constructor(details, originalError) {
super(NOT_FOUND.type, NOT_FOUND.message, details, NOT_FOUND.code, originalError);
}
} |
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some W... |
// @flow
import * as React from 'react';
import AccessibleSVG from '../accessible-svg';
import type { Icon } from '../flowTypes';
const IconDownloadSolid = ({ className = '', color = '#000000', height = 10, title, width = 10 }: Icon) => (
<AccessibleSVG
className={`icon-download-solid ${className}`}
... |
export default [
{
title: 'INROADS succeeds because of the generosity of individuals, foundations and corporations throughout its history.',
image: 'https://inroads.org/wp-content/uploads/2019/02/PwC_recruitment_rotator.png',
cta: 'View article',
// horizontal: true
},
{
title: 'Is makeup one... |
const express = require('express')
const routes = express.Router()
const main = require('./controllers/main')
const recipes = require('./controllers/recipes')
routes.get('/', main.index)
routes.get('/about', main.about)
routes.get('/recipes', main.recipes)
routes.get('/recipes/:index', main.recipe)
routes.get('/admin... |
var MeritOrderExcessData = (function () {
'use strict';
return {
set: function (data) {
this.data = data;
this.formatted = undefined;
return this;
},
format: function () {
if (!this.formatted) {
this.formatted = {
... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
/*******************************************************************************
* Author: Matthew Vandenbussche
*
*Copyright IBM Corp. 2010 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... |
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const apiRouter = require('./routes/apiRouter');
const authControllers = require('./controllers/authControllers');
const PORT = 3000;
const app = express();
// u... |
var X = 800, Y=600;
var game = new Phaser.Game(X, Y, Phaser.CANVAS, '', {preload: preload, create: create, update: update, render: render} );
var floor1, floor2, platform1, counter = 0;
var text;
var correctInput = false;
var player, upKey, downKey, leftKey, rightKey;
function preload() {
game.scale.maxWidth = ... |
import subDays from "../subDays/index.js";
import subMonths from "../subMonths/index.js";
import requiredArgs from "../_lib/requiredArgs/index.js";
import toInteger from "../_lib/toInteger/index.js";
/**
* @name sub
* @category Common Helpers
* @summary Subtract the specified years, months, weeks, days, hours, minut... |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/messages');
const db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error'));
db.once('open', () => {
console.log('connected to db');
});
const messageSchema = mongoose.Schema({
message: String,
});
const ... |
var express = require("express");
var app = express();
var bodyParser = require("body-parser");
const { calculate } = require("./src/calculator");
// set the view engine to ejs
app.set("view engine", "ejs");
// parse html forms
app.use(bodyParser.urlencoded({ extended: false }));
// index page
app.get("/", function (... |
import { h, Component } from 'preact';
import './Style.scss'
import {useEffect, useState} from 'preact/hooks';
export default function Dropdown({options=[], onClick=()=>{}, selected}) {
const [selectedOption, setselectedOption] = useState(selected);
useEffect(() => {
if(!selected)
options.... |
var Streams = {};
var EventStream = function() {
var $settings = { timeout: 5000 }, ES = {};
ES.timeout = function() {
if($settings.timeout > 0) {
setTimeout(() => {}, $settings.timeout);
}
};
ES.CreateEventSource = function() {
let source = new EventSource($setting... |
import React from 'react';
import {shallow} from 'enzyme';
import DateTimePicker from '../src/DateTimePicker';
describe('DateTimePicker', () => {
it('should render without throwing an error', () => {
expect(shallow(
<DateTimePicker/>)).toMatchSnapshot();
});
// it('should respond to changes', () => {
// con... |
// Modules and variable definition
const { ipcRenderer, remote } = require('electron')
// IPC event/channel to act on reset of form
ipcRenderer.on('quick-reset', () => {
$('#quick-task-form').trigger('reset')
$('#quick-task-detail').height('48px')
$('#color-option-1').closest('.btn').button('toggle')
$('#submi... |
import * as THREE from 'three';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
const urlToModel = 'static/280/datsun3.gltf';
const envMapPath = 'static/environmentMaps/garage_1k.hdr'
export default class Car {
constructor(pare... |
import React from 'react';
function Wrapper(props) {
return (
<div className="wrapper">
{ props.children }
</div>
);
}
export default Wrapper; |
/**
* @link https://opentechcalendar.co.uk/ This is the software for Open Tech Calendar!
* @link https://gitlab.com/opentechcalendar You will find it's source here!
* @license https://gitlab.com/opentechcalendar/opentechcalendar/blob/master/LICENSE.txt 3-clause BSD
* @copyright (c) JMB Technology Limited, https://w... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Race Schema
*/
var RaceSchema = new Schema({
name: {
type: String,
default: '',
required: 'Please fill Race name',
trim: true
},
created: {
type: Date,
default: Date.now
... |
import { getStyle } from '../../config/mUtils'
import { imgBaseUrl } from '../../config/env'
export const loadMore = {
directives: {
'load-more': {
bind: (el, binding) => {
let windowHeight = window.screen.height
let height
let setTop
let paddingBottom
let marginBott... |
import dateUtils from '../../../core/utils/date';
import dateLocalization from '../../../localization/date';
import messageLocalization from '../../../localization/message';
import { camelize } from '../../../core/utils/inflector';
import { isFunction, isObject } from '../../../core/utils/type';
import errors from '../... |
import Node from './Node.js';
class PropertyNode extends Node {
constructor( name, type ) {
super();
this.name = name;
this.type = type;
}
generate( builder, output ) {
const type = this.getType( builder );
const nodeVary = builder.getVarFromNode( this, type );
nodeVary.name = this.name;
const... |
const api = 'http://localhost:3001'
let token = localStorage.token
if (!token) { token = localStorage.token = Math.random().toString(36).substr(-8) }
const headers = {
'Authorization': token,
'Content-Type': 'application/json',
'Accept': 'application/json'
}
export const getCategories = () =>
fetch(`${api}/c... |
const lime = {
'50': '#F9FBE7',
'100': '#F0F4C3',
'200': '#E6EE9C',
'300': '#DCE775',
'400': '#D4E157',
'500': '#CDDC39',
'600': '#C0CA33',
'700': '#AFB42B',
'800': '#9E9D24',
'900': '#827717',
'A100': '#F4FF81',
'A200': '#EEFF41',
'A400': '#C6FF00',
'A700': '#AEE... |
import { v3 as murmurhash } from 'murmur-hash';
/* eslint-disable-next-line max-len */
const glyphs = '\u20B9;\u2581;\u20BA;\uA73D;\uFFFD;\u20B8;\u05C6;\u1E9E;\u097F;\uF003;\u1CDA;\u17DD;\u23AE;\u0D02;\u0B82;\u115A;\u2425;\u302E;\uA830;\u2B06;\u21E4;\u20BD;\u2C7B;\u20B0;\uFBEE;\uF810;\uFFFF;\u007F;\u10A0;\u1D79;\u0700... |
/**
* Angular module for frontend.core.auth component. This component is divided to following logical components:
*
* frontend.core.auth.login
* frontend.core.auth.services
*/
(function () {
'use strict';
// Define frontend.auth module
angular.module('frontend.core.auth', [
'frontend.core.auth.login',... |
'use strict';
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const BabiliPlugin = require('babili-webpack-plugin');
const minimist = require('minimist');
const path = require('path');
const commandline = minimist(process.argv.slice(2));
const... |
import React from 'react'; // @ts-ignore
import BrowserSymbol from 'svg-baker-runtime/browser-symbol'; // @ts-ignore
import { assign } from 'es6-object-assign';
import { addSpriteSymbol, useIsomorphicLayoutEffect } from '../sprite';
import { SvgIcon } from '../SvgIcon';
var viewBox = '0 0 28 28';
var id = 'list_play_... |
if (!window['YT']) {var YT = {loading: 0,loaded: 0};}if (!window['YTConfig']) {var YTConfig = {'host': 'http://www.youtube.com'};}if (!YT.loading) {YT.loading = 1;(function(){var l = [];YT.ready = function(f) {if (YT.loaded) {f();} else {l.push(f);}};window.onYTReady = function() {YT.loaded = 1;for (var i = 0; i < l.le... |
import respondTo from './mixins/respondTo'
import v from './__vars'
const styles = {
mainContent: {
backgroundColor: '#22252f',
margin:'15px auto 0 auto',
color: v.white,
// display: 'flex',
...respondTo({
sm: {
width: '100vw'
},
lg: {
width: 1200
}
})
},
devRuler: {
shared: {
... |
import { beforeEach, describe, it } from 'mocha'
import { expect } from 'chai'
import { Status, formatterHelpers } from 'cucumber'
import StatisticsFormatter from './statistics_formatter'
import { EventEmitter } from 'events'
describe('StatisticsFormatter', () => {
beforeEach(function() {
this.loggedoutput = ''
... |
/*! `tap` grammar compiled for Highlight.js 11.4.0 */
var hljsGrammar=(()=>{"use strict";return e=>({name:"Test Anything Protocol",
case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{
begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,
end:"\\.\\.\\.$",subLanguage:"yaml"... |
angular.module("umbraco").controller("UIOMatic.Views.Dropdown",
function ($scope, uioMaticObjectResource, $parse) {
//example config
//{'typeName': 'Example.Models.Person, Example', 'valueColumn': 'Id', 'sortColumn': 'FirstName', 'textTemplate' : 'FirstName + \" \"+ LastName '}
function in... |
import React from 'react'
import Layout from '../components/layout'
import SEO from '../components/seo'
import ProductsListing from '../components/ProductsListing/ProductsListing'
import Billboard from '../components/Billboard'
const IndexPage = () => (
<Layout>
<SEO title='Home' />
<Billboard />
<Produc... |
/* global require, console */
/* jshint esversion:6 */
import Vue from 'vue';
Vue.component('current-user', require('./User.vue'));
Vue.component('facet', require('./Facet.vue'));
Vue.component('region-facet', require('./RegionFacet.vue'));
Vue.component('group-facet', require('./GroupFacet.vue'));
Vue.component('lea... |
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import { getImage } from 'gatsby-plugin-image'
import { Wrapper, StyledImg } from './SearcherCombo.styles'
import { useSearcherCombo } from '../../hooks/useSearcherCombo'
import SearcherForm from './SearcherForm'
import { products, searcherCombo... |
// src/polyfills.js must be the first import.
import '#3p/polyfills';
import {register} from '#3p/3p';
import {draw3p, init} from '#3p/integration-lib';
import {kargo} from '#ads/vendors/kargo';
init(window);
register('kargo', kargo);
window.draw3p = draw3p; |
export const cilSpaceBar = ["512 512","<polygon fill='var(--ci-primary-color, currentColor)' points='40 288 40 416 464 416 464 288 432 288 432 384 72 384 72 288 40 288' class='ci-primary'/>"] |
//index.js
var COS = require('../../lib/cos-wx-sdk-v5')
var config = require('./config')
var cos = new COS({
getAuthorization: function (params, callback) {//获取签名 必填参数
// 方法一(推荐)服务器提供计算签名的接口
/*
wx.request({
url: 'SIGN_SERVER_URL',
data: {
Method: par... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.