text stringlengths 2 1.04M |
|---|
//Dados
const proffys = [
{
name: "Diego Fernandes", avatar: "https://avatars2.githubusercontent.com/u/2254731?s=460&u=0ba16a79456c2f250e7579cb388fa18c5c2d7d65&v=4" ,
whatsapp: "89987654534",
bio: "Entusiasta das melhores tecnologias de química avançada.<br><br>Apaixonado por explodir coisas ... |
export const ADD_PRODUCT_TYPE = 'categories/ADD_PRODUCT_TYPE'
export const addProductType = (productType) => {
return {
type: ADD_PRODUCT_TYPE,
payload: {productType}
}
}
export const EDIT_PRODUCT_TYPE = 'categories/EDIT_PRODUCT_TYPE'
export const editProductType = (productType, index) => {
return {
... |
require('dotenv').config();
const moment = require('moment');
const cron = require('node-cron');
const fetch = require('node-fetch');
var express = require('express');
var app = express();
const SLACK_WEBHOOK = process.env.SLACK_WEBHOOK;
const PINCODES = process.env.PINCODES.split(' ');
const SCHEDULE = process.env.SC... |
// Copyright (c) 2012 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.
/**
* This view displays information on ChromeOS specific features.
*/
var CrosView = (function() {
'use strict';
var fileContent;
var passco... |
exports.up = async function(knex) {
let hasTable = await knex.schema.hasTable('student_has_education')
return !hasTable ? knex.schema.createTable('student_has_education', (table) => {
table.integer('student_id').unsigned().notNullable();
table.foreign('student_id').references('student.id').onDel... |
print("cleanup.js started " + new Date());
var currDBAddress = "IP_ADDRESS:PORT";
var currDBName = "countly";
/*
**************************************************
****************DO NOT EDIT BELOW*****************
**************************************************
*/
load("parseConnection.js");
var cu... |
import React,{ Component } from "react";
import { connect } from 'react-redux';
import { ActionTypes } from '../constants/actionTypes';
import axios from 'axios';
class QuizList extends Component{
// state = {
// // quizes: [
// // { id: 'data/javascript.json', name: 'Javascript' },
// ... |
'use strict';
/**
* Copyright (c) 2017 Copyright tj All Rights Reserved.
* Author: lipengxiang
* Date: 2018-06-02 16:36
* Desc:
*/
exports.name = 'https://r.cnpmjs.org/';
exports.cmd = 'npm.cmd config set registry="' + exports.name + '"'; |
#usr/bin/env node
const http = require('http'),
log = console.log;
http.createServer(req,res)=>{
logRequest(req);
if(req.url.slice)
switch
}
function logRequest(req){
log(`${req.method } ${req.url} HTTP`)
} |
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])... |
(function() {
if (typeof Mario === 'undefined')
window.Mario = {};
Flag = Mario.Flag = function(pos) {
//afaik flags always have the same height and Y-position
this.pos = [pos, 49];
this.hitbox = [0,0,0,0];
this.vel = [0,0];
this.acc = [0,0];
}
Flag.prototype.collideWall = function() {... |
/*=========================================================================================
File Name: maps.js
Description: google maps
----------------------------------------------------------------------------------------
Item Name: Apex - Responsive Admin Theme
Version: 1.0
Author: PIXINVENT... |
var express = require('express');
var path = require('path');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var connect = require('connect')
var methodOverride = require('method-override')
//Routes
var routes = require('./routes/index');
var books... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-%typedarray%.prototype.slice
description: Infinity values on start and end
includes: [testTypedArray.js, compareArray.js]
---*/
testWithTypedArrayConstructors(functi... |
class GeneralEngine {
salt(exponential) {
let temp_result = Math.random() - exponential;
return temp_result - Math.floor(temp_result); // between 0 and 1
}
}
module.exports = GeneralEngine; |
define(["require", "exports", "assert", "vs/base/common/extpath", "vs/base/common/platform"], function (require, exports, assert, extpath, platform) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
suite('Paths', () => {
test('toForwardSlashes', () => {
asse... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.FiChevronRight = function FiChevronRight (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":"2","strokeLinecap":"round","strokeLinejoin":"round"},"child":[{"tag":"... |
import {APICall, RequestType} from "./API";
export default class Requests {
static HttpStatus = {
SUCCESS: 200, BAD_REQUEST: 400, UNAUTHORIZED: 401, NOT_FOUND: 404
};
static async checkSelfAsync() {
let call = new APICall(RequestType.GET, "users/self", null, [this.HttpStatus.SUCCESS, this.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ... |
const { static } = require("./../index")
module.exports = [
...require('./auth'),
...require('./user')
] |
/* global describe beforeEach it */
import {expect} from 'chai'
import React from 'react'
import enzyme, {shallow} from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import {UserHome} from '../components/UserHome'
const adapter = new Adapter()
enzyme.configure({adapter})
describe('UserHome', () => {
let u... |
import React from 'react';
import classNames from 'classnames';
const {any, bool, number, string} = React.PropTypes;
function noop() {}
export class RadioButton extends React.Component {
static propTypes = {
className: any,
checked: bool,
disabled: bool,
tabIndex: number,
name: string,
id:... |
// @flow
import {observable} from 'mobx';
import SearchStore from '../SearchStore';
import ResourceRequester from '../../../services/ResourceRequester';
jest.mock('../../../services/ResourceRequester', () => ({
getList: jest.fn(),
}));
test('Clear search results from store', () => {
const searchStore = new Se... |
toastr = {
success: function (msg) {
console.log(msg);
},
info: function (msg) {
console.log(msg);
}
};
angular.module('mt.route')
.config(function (mtRouteConfig) {
mtRouteConfig.rootPath = 'testViews';
});
angular.module('mt.route')
.factory('userGroupConfiguration', ['$route', '$r... |
/*
This project is licensed under the MIT License - see the LICENSE.md file for details
https://github.com/skino0/fully-scroll-animated/blob/master/license.md
*/
document.addEventListener('DOMContentLoaded', function(){
var trigger = new ScrollTrigger({
toggle: {
visible: 'visible',
hidden: 'i... |
let Bishop = function(brdfStartIndex, quadricStartIndex, row, col, lightIndex) {
let hyperboloid = new ClippedQuadric(new Mat4(), new Mat4());
hyperboloid.setUnitHyperboloid();
hyperboloid.transform(new Mat4().scale(new Vec3(.15,.3,.15)).translate(-3.5 + col,.9,3.5 - row));
let head = new ClippedQuadric(new Ma... |
'use strict';
module.exports = function (ks) {
var ksController = {};
ksController.postKs = function (req, res) {
console.log(req.body);
ks.set(req.body.key, req.body.value, function (err, key) {
if (err) {
res.status(400);
return res.json(err);
}
return res.json(key);
... |
"use strict";
var parse_response_json_data = "\")]}'\n" +
"\n" +
"1595\n" +
"[[\"v\",\"rf93WciF82Q.no.\",\"8\",\"64fb6f9ad4e42f0a\"],[\"di\",642,null,null,null,null,[],[],null,null,[],[],[]],[\"ub\",[[\"^smartlabel_personal\",8756],[\"^smartlabel_social\",8756],[\"^smartlabel_pure_notif\",8756],[\"^smartlabel_receipt\... |
/**
* 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.10.2 (2021-11-17)
*/
(function () {
'use strict';
... |
import Ember from "ember-metal/core";
import {set} from "ember-metal/property_set";
import run from "ember-metal/run_loop";
import ArrayProxy from "ember-runtime/system/array_proxy";
import ArrayController from "ember-runtime/controllers/array_controller";
QUnit.module("ArrayProxy - content change");
test("should upd... |
import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { fetchTopGamesBanner } from "../../../store/actions";
import Navbar from "../navbar/navbar";
import "./homepage.scss";
import Background from "../background/background";
import { Link } from "react-router... |
// Copyright 2018-2021 Polyaxon, 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 agre... |
module.exports = {
getDataFromCurrentSelection: jest.fn(),
}; |
const ruler = {
/**
* @el 容器 String
* @height 刻度尺高度 Number
* @maxScale 最大刻度 Number
* @startValue 开始的值 Number
* @region 区间 Array
* @background 刻度尺背景颜色 String
* @color 刻度线和字体的颜色 String
* @markColor 中心刻度标记颜色 String
* @isConstant 是否不断地获取值 Boolean
* @success(res) 滑动结束后的... |
import React, { Component } from 'react';
class Paragraph extends Component {
render() {
const { styleObj } = this.props;
return (
<div>
<p style={ styleObj } >Praesent sapien massa, convalli
s a pellentesque nec, egestas non nisi. Curabitur arcu erat,
accumsan id imperdie... |
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
import '@vaadin/vaadin-ordered-layout/src/vaadin-vertical-layout.js';
class OverviewNewtag extends PolymerElement {
static get template() {
return html`
<style include="shared-styles">
:host {
dis... |
/**
* 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.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
function compute() {
var amount = document.getElementById("amount").value;
var rate = document.getElementById("rate").value;
var years = document.getElementById("years").value;
var interest = amount * rate * years / 100;
var year = new Date().getFullYear() + parseInt(years)
if(amount < "1") {
... |
import React from 'react';
import PropTypes from 'prop-types';
import {makeStyles} from '@material-ui/core/styles';
import LoadingIcon from '../LoadingIcon';
import {Grid, Typography} from '@material-ui/core';
const gridStyles = makeStyles({
root: {
display: 'flex',
flex: '1 1 auto',
flexDirection: 'col... |
// @flow
import React, { PureComponent } from 'react'
import styled from 'styled-components'
import { multiline } from 'styles/helpers'
import TrackPage from 'analytics/TrackPage'
import Box from 'components/base/Box'
import WarnBox from 'components/WarnBox'
import DeviceConfirm from 'components/DeviceConfirm'
impo... |
define([
'atlas/events/EventManager',
// Code under test
'atlas/model/Line',
'atlas/model/GeoPoint',
'atlas/util/WKT'
], function(EventManager, Line, GeoPoint, WKT) {
describe('A Polygon', function() {
var line, wktLine, constructArgs, vertices, eventManager;
beforeEach(function() {
wktLine ... |
/**
* Library for storing and rotating logs
*/
// Dependencies
const fs = require('fs')
const path = require('path')
const zlib = require('zlib')
// Container for the module
let logs = {}
// Base directory of the data folder
logs.baseDir = path.join(__dirname, '/../.logs/')
// Append a string to a file. Create the... |
import React from "react";
import IconButton from "@mui/material/IconButton";
import Tooltip from "@mui/material/Tooltip";
import CompareArrowsIcon from "@mui/icons-material/CompareArrows";
import IndeterminateCheckBoxIcon from "@mui/icons-material/IndeterminateCheckBox";
import BlockIcon from "@mui/icons-material/Bloc... |
'use strict';
// Load chai
const chai = require('chai');
const expect = chai.expect;
// Load our module
const utils = __require('libs/utils');
// Checks if a command is available in cmd/terminal
describe('Function "commandExists"', () => {
it('should export a function', () => {
expect(utils.commandExists).to.... |
//Author : @arboshiki
/**
* Generates random string of n length.
* String contains only letters and numbers
*
* @param {int} n
* @returns {String}
*/
Math.randomString = function (n) {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < n; i++)... |
import '../menu.js';
import { html, LitElement } from 'lit-element/lit-element.js';
class CustomSlots extends LitElement {
render() {
return html`
<d2l-menu>
<slot></slot>
</d2l-menu>
`;
}
}
customElements.define('d2l-custom-slots', CustomSlots); |
import React, { Component } from "react";
import { Row, Layout, Radio, Button, Col, Divider } from "antd";
import BreadcrumbBee from "../../../../../componentes/BreadcrumBee";
import { uris } from "../../../../../assets";
export class RelatorioVisitas extends Component {
state = {
disabled: false,
tipoVisita... |
/**
* Select2 Latvian translation
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Sakritību nav"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us... |
// Copyright (c) 2012 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.
/**
* @fileoverview
* Class representing the client tool-bar.
*/
'use strict';
/** @suppress {duplicate} */
var remoting = remoting || {};
/**
... |
import React from 'react'
import Layout from './components/layout'
import Profile from './components/profile'
import Repositories from './components/repositories'
import NoSearch from './components/no-search'
import useGithub from './hooks/github-hooks'
const App = () => {
const { githubState } = useGithub()
r... |
$(function() {
consoleInit(main)
});
const Pools = [
{
//tokens: [xe[f.c.AVALANCHE], f.p[f.c.AVALANCHE]],
stakingRewardAddress: "0x9080Bd46a55f8A32DB2B609C74f8125a08DafbC3"
}, {
//tokens: [xe[f.c.AVALANCHE], we[f.c.AVALANCHE]],
stakingRewardAddress: "0x4235F9bE035541A69525Fa853e2369fe493BA936"
}... |
'use strict'
const Joi = require('@hapi/joi')
const { optionalUrl } = require('../validators')
const { BaseJsonService } = require('..')
const { authConfig } = require('./jira-common')
const queryParamSchema = Joi.object({
baseUrl: optionalUrl.required(),
}).required()
const schema = Joi.object({
fields: Joi.obj... |
const {WebcController} = WebCardinal.controllers;
export default class ShareQRCodeController extends WebcController {
constructor(...props) {
super(...props);
this.model.title = `QR Code for ${this.model.name}`;
}
} |
import fiddleConfig from '../../configs/default';
import { cloneDeep } from 'lodash';
Cypress.env('RETRIES', 1);
describe('Fiddle', () => {
describe('Navigation', () => {
describe('Core api navigation test', () => {
beforeEach(() => {
cy.visitWithFiddleConfig('/');
});
it('Core API navi... |
// TODO: Create a function that returns a license badge based on which license is passed in
// If there is no license, return an empty string
function renderLicenseBadge(license) {
if (!license){
return '';
}
else{
switch(license){
case 'MIT':
return `
[License: MIT](https://img.shields... |
/**
* @module ts.events
*/
define("ts/events/TSMessageEvent",[
"jsm/events/MessageEvent",
"ts/events/TSEvent"
],function(MessageEvent,TSEvent){
"use strict";
/**
* @namespace ts.events
* @class TSMessageEvent
* @constructor
* @param {String} type
* @param {Object} [init={bubbles:false,cancelable:false,
... |
import React from "react";
import Panel from "@/components/Panel/Panel.js";
function Button() {
return (
<div>
<Panel />
<div id="viewer">
<div className="f416">
<h1 className="buttonh1">Button#41</h1>
<a href="/buttons/41">
<button className="btn41-43 btn-41">... |
const queryParse = function (req) {
// Check if it is an empty object.
// if( Object.keys(query).length > 0) {
// console.log(query);
// }
const query = {}; // The request query string on JSON format!!! We can do casting on TypeScript
if(req.query.genre) {
query.genre = req.query.genre;
}
if(re... |
require('./legacy-compat');
// we do this to easily wrap each file in a mocha test
// and also have browserify be able to statically analyze this file
var orig_require = require;
var require = function(file) {
test(file, function() {
orig_require(file);
});
};
require('./add-listeners.js');
require('.... |
/**
* Development config settings shared by all.
* If you'd like to use your own settings, you can create 'dev.local.config.js' and that will be
* used instead of this.
* @type {Object}
*/
var webpack = require('webpack');
var progressPlugin;
try {
var ProgressBarPlugin = require('progress-bar-webpack-plugin')... |
import Schedule from '../../../models/schedule';
import Request from '../../../models/request'
import nc from 'next-connect';
import db from '../../../utils/db';
import { onError } from '../../../utils/error';
const handler = nc({
onError,
});
handler.post(async (req, res) => {
const { selectedId } = req.body... |
import path from 'path'
import { __dirname } from '../../libs/constants.js'
const root = path.join(__dirname, 'public')
export default (req, res, next) => {
return res.status(404).sendFile('rNF.html', { root })
} |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Rodape extends Component {
render() {
return (
<div className="row mt-1 pagamento__rodape">
<div className="col">
<Link to="/">
<small>Retornar à Loja Demo</small>
</Link>
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
(global.... |
define(['./_baseIsMatch', './_getMatchData'], function(baseIsMatch, getMatchData) {
/**
* Performs a partial deep comparison between `object` and `source` to
* determine if `object` contains equivalent property values.
*
* **Note:** This method is equivalent to `_.matches` when `source` is
* partially... |
'use strict';
import mobileNav from './mobileNav';
import switchContent from './switchContent';
mobileNav();
const btn1 = {
id: 'content-btn-1',
title: 'Who we are',
content: ` Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione
consectetur magnam exercitationem est laudantium reprehenderit
nesci... |
export const onInitialClientRender = () => {
// A11Y: Detect keyboard vs. mouse vs. touch input (for focus styling)
if (!loadjs.isDefined(`what-input`)) {
loadjs(
`https://cdnjs.cloudflare.com/ajax/libs/what-input/5.0.5/what-input.min.js`,
`what-input`
)
}
}
//////////////////////////////////... |
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter, Route, Redirect, Switch } from "react-router-dom";
import { StripeProvider } from 'react-stripe-elements';
// styles
import "assets/css/bootstrap.min.css";
import "assets/scss/paper-kit.scss";
import "./assets/scss/paper-dashboard.scs... |
import React from "react";
import { Row, Col } from "antd";
const FixtureDetail = (props) => {
return (
<div className="">
<Row className="justify-center border-b border-gray-4 py-4">
<Col lg={6} className="flex items-center justify-end">
<p className="text-xl font-normal">Crystal Palace</p>
<img s... |
// @remove-file-on-eject
/** This source code is forked from https://github.com/facebook/create-react-app **/
'use strict';
const babelJest = require('babel-jest');
module.exports = babelJest.createTransformer({
presets: [require.resolve('babel-preset-react-app')],
babelrc: false,
configFile: false,
}); |
require([
'jquery',
'underscore',
'app/view/notifications',
], function($, _, App) {
console.log('notification');
var notifications = new App.Views.Notifications({
el: '.container'
});
}); |
import mixin from '../../../src/globals/js/misc/mixin';
import initComponentBySearch from '../../../src/globals/js/mixins/init-component-by-search';
describe('Test init component by search', function() {
let container;
const spyCreate = jasmine.createSpy();
const options = { foo: 'Foo' };
const Class = class e... |
const {execFileSync} = require(`child_process`);
exports.sourceNodes = ({actions, createNodeId, createContentDigest}, opts) => {
const {createNode} = actions;
const output = execFileSync(`node`, [opts.binary, `--clipanion=definitions`]);
let commands;
try {
({commands} = JSON.parse(output));
} catch (... |
import React from 'react'
import Link from 'gatsby-link'
const Header = ({ siteTitle }) => (
<nav className="navbar navbar-dark bg-dark sticky-top">
<span className="navbar-brand mb-0 h1">{siteTitle}</span>
</nav>
)
export default Header |
var runmode_pcap_file_8h =
[
[ "RunModeFilePcapAutoFp", "runmode-pcap-file_8h.html#a8b3fac464c73a6e2f8bfd8175a9dbc96", null ],
[ "RunModeFilePcapGetDefaultMode", "runmode-pcap-file_8h.html#a5b21b16b667c7beae6f2d557a8f3bd58", null ],
[ "RunModeFilePcapRegister", "runmode-pcap-file_8h.html#ac0d7c8cc1a9e09f97c... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/ |
module.exports = {
presets: ['next/babel'],
plugins: [['styled-components', { ssr: true }], 'inline-react-svg', 'emotion']
} |
import {compose, contains} from "ramda"
import {domainStore} from "../stores"
const API_URL = "https://api.meetup.com/"
const buildRequestUrl = (uri, token) => {
const separator = contains("?", uri) ? "&" : "?"
return `${API_URL}${uri}${separator}${token}`
}
export const getApi = ({get}) => {
const getUrl = c... |
/*
* Copyright (C) Rich Moore. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... |
/**
* Created by Julien on 29/04/2015.
*
* Contains the methods concerning the game object
*/
'use strict';
clientMVC.service('GameServices', ['$window', 'ClientServices', function ($window, ClientServices) {
// class Game
var Game = function () {
this.gameId = "";
this.gameToken = "";
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[27],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/pages/common/auth/login/Login.vue?vue&type=script&lang=js&":
/*!************************************************************************... |
import '../src/_libs/test/';
import '../src/accordion/test/';
import '../src/alert/test/';
import '../src/autocomplete/test/';
import '../src/button/test/';
import '../src/button-group/test/';
import '../src/calendar/test/';
import '../src/checkbox/test/';
import '../src/curtain/test/';
import '../src/dropdown/test/';
... |
const router = require('express').Router({mergeParams:true})
const {getCharacters,getCharacter,postCharacter}= require('../controllers/characterControllers.js')
//routers for heroes
router.get("/heroes",getCharacters)
router.get("/heroes/:id",getCharacter)
router.post("/heroes",postCharacter)
//routers for villains
r... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _ExclamationCircleOutlined = _interopRequireDefault(require("@ant-design/icons-svg/lib/asn/ExclamationCircleOutlined"));
var _AntdIcon = _interopRequire... |
import { useAuth } from './../hooks';
const WithAuth = (props) => useAuth(props) && props.children;
export default WithAuth; |
const TerserPlugin = require("terser-webpack-plugin");
module.exports = {
minimize: true,
minimizer: [new TerserPlugin()],
}; |
;(function($B){
var bltns = $B.InjectBuiltins()
eval(bltns)
$B.del_exc = function(){
var frame = $B.last($B.frames_stack)
frame[1].$current_exception = undefined
}
$B.set_exc = function(exc){
var frame = $B.last($B.frames_stack)
if(frame === undefined){
console.log("no frame", exc)
}
... |
import moment from "moment";
import * as components from "./components";
import * as directives from "./directives";
import AxiosPlugin from "./utils/AxiosPlugin";
import ProxyAdapter from "./model/ProxyAdapter";
import AbstractStore from "./model/AbstractStore";
import BsModel from "./model/BsModel";
import BsStore fr... |
let data = {
"body": "<path d=\"M20 17.998v-10H4v10h16zm0-12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2l.01-12c0-1.104.884-2 1.99-2h6l2 2h8zM9 16v-3h1v-1a2 2 0 1 1 4 0v1h1v3H9zm4-3v-1a1 1 0 1 0-2 0v1h2z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
export default data; |
import React from "react"
import styles from "./projects.module.css"
import Layout from "../components/layout"
import image1 from "../img/proj-css-colors.png"
import image2 from "../img/proj-figma-photo01.png"
import image3 from "../img/proj-superhero4hire-01-croplight.png"
import image4 from "../img/proj-laptopProjec... |
const express = require('express');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const passport = require('passport');
// load configs
const config = require('./config/index');
// load routes
const users = require('./routes/api/users');
const profile = require('./routes/api/profile... |
import React from 'react'
import styled from 'styled-components'
import { StaticQuery, graphql, Link } from 'gatsby'
import mediaImg from '../images/Media_kuva.png'
import ictImg from '../images/ICT_kuva.png'
import softdevImg from '../images/Softdev_kuva.png'
/*
<div className="teams">
{props.data.teams... |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/**
* Auto-generated action file for "Figshare" API.
*
* Generated at: 2019-05-07T14:40:43.882Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / figshare-com-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under t... |
const { createSetCookieHeader } = require('./cookies');
/**
* Creates an HTTP response for when the user is unauthorized.
*
* @param message - The reason the request failed
* @returns an HTTP response
*/
function reject(message) {
return {
status: '401',
statusDescription: 'Unauthorized',
body: `
... |
/**
* mutations,统一使用大写字母,以下划线分割
*/
export default {
/**
* 保存TODO信息
* @param state
* @param todos
* @constructor
*/
GET_TODOS (state, todos) {
state.todos = todos
},
/**
* 新增TODO
* @param state
* @param todo
* @constructor
*/
ADD_TODO (state, todo) {
state.todos.push(tod... |
import { persistStore } from 'redux-persist';
import createSagaMiddleware from 'redux-saga';
import createStore from './createStore';
import persistReducers from './persistReducers';
import rootReducer from './modules/rootReducer';
import rootSaga from './modules/rootSaga';
const sagaMonitor =
process.env.NODE_EN... |
/* eslint-disable func-names */
describe('description', () => {
it('should have description', () => {
expect(1 + 2).toBe(3);
});
}); |
const GameAction = require('./GameAction');
class DiscardPower extends GameAction {
constructor() {
super('discardPower');
}
canChangeGameState({ card }) {
return ['active plot', 'faction', 'play area'].includes(card.location) && card.power > 0;
}
createEvent({ card, amount = 1 })... |
define(["exports"], function (exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var Debouncer =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.