text stringlengths 2 1.05M |
|---|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// @flow
import type {GlobalState} from 'types/store';
const state: GlobalState = {
entities: {
general: {
appState: false,
credentials: {},
config: {},
... |
var http = require('http');
var fs = require('fs');
http.createServer(function(req, res){
res.writeHead(200, { 'Content-Type': 'text/html' });
var html = fs.readFileSync(__dirname + '/Index.htm','utf8');
var message = 'Hello world...'
html = html.replace('{Message}', message);
res.end(html);
}).l... |
const RelayMock = artifacts.require("RelayMock");
module.exports = async function(deployer) {
await deployer.deploy(RelayMock);
};
|
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import Tablelvl2Cont... |
import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux';
import { clearDataErr } from "../actions/post";
import { createComment } from "../actions/comment"
import { Link } from 'react-router-dom';
import hi... |
export const source = '<svg viewBox="0 0 266 150" fill="none" width="266" height="150" ><path fill="#FFFFFF" d="M0 0h266v150H0z"></path><rect x="142" y="32" width="104.391" height="4" rx="2" fill="#A0AEC0"></rect><rect x="20" y="32" width="74" height="5" rx="2.5" fill="#4A5568"></rect><rect x="142" y="40" width="77" h... |
const matchers = require('../helpers/matchers');
const DEFAULT_VALIDATOR = function defaultValidator() {
return true;
};
function validateProperty(
aValueObjectInstance,
aPropertyDescriptor
) {
let propertyName = aPropertyDescriptor.name;
let propertyValue = aPropertyDescriptor.value;
let propertyValid... |
/**
* 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"); you... |
Clazz.declarePackage ("J.jvxl.readers");
Clazz.load (["J.jvxl.readers.MapFileReader"], "J.jvxl.readers.XplorReader", ["JU.SB", "J.util.Logger", "J.viewer.Viewer"], function () {
c$ = Clazz.decorateAsClass (function () {
this.nBlock = 0;
this.linePt = 2147483647;
this.nRead = 0;
Clazz.instantialize (this, argument... |
import React from 'react';
import { graphql } from 'gatsby';
import { FormattedMessage, FormattedHTMLMessage } from 'react-intl';
import FormattedMetaTags from '../components/FormattedMetaTags';
import FormattedOpenGraph from '../components/FormattedOpenGraph';
import { Page } from '../components/Page/Page';
import { C... |
'use strict';
import {renderer} from '../../src/js/core/renderer';
import {expect} from 'chai';
describe('Renderers', () => {
let
renderers,
mockRenderer = {
name: 'mock',
options: {
prefix: 'mock'
},
canPlayType: (type) => {
let validMedia = ['video/mime-3'];
return validMedia.indexOf(t... |
import React, { PureComponent } from 'react'
import { Link } from 'react-router-dom';
import './index.css'
class Button extends PureComponent {
render() {
const Linkobject = (this.props.link.indexOf('http://') === 0 || this.props.link.indexOf('https://') === 0)
? 'a'
: Link;
return (
this.... |
import Ember from 'ember';
var EmberOrderedSet = Ember.OrderedSet;
var guidFor = Ember.guidFor;
export default function OrderedSet() {
this._super$constructor();
}
OrderedSet.create = function () {
var Constructor = this;
return new Constructor();
};
OrderedSet.prototype = Object.create(EmberOrderedSet.protot... |
'use strict'
const hapiJwt = require('hapi-auth-jwt2')
const JWT_SECRET_KEY = '12345'
const register = function register (server, options, next) {
server.register(hapiJwt)
server.auth.strategy('jwt', 'jwt',
{ key: JWT_SECRET_KEY,
validateFunc: (decoded, request, callback) => callback(null,... |
'use strict';
var reducer = require('./reducer-b4f65523.js');
var redux = require('redux');
var initialize = require('./initialize-608b1c6b.js');
var base = require('./base-bdd9c13b.js');
/*
* Copyright 2018 The boardgame.io Authors
*
* Use of this source code is governed by a MIT-style
* license that can be ... |
import { all, call, fork, put, takeEvery } from 'redux-saga/effects';
import {
appendNewsItemsFailure,
appendNewsItemsSuccess,
APPEND_NEWS_ITEMS,
LOAD_NEWS,
loadNewsItemsFailure,
loadNewsItemsSuccess,
} from './../actions';
import getInstance from './services/httpService';
function* loadDrinkNewsSaga({ off... |
/*
* HomePage Messages
*
* This contains all the text for the HomePage container.
*/
import { defineMessages } from 'react-intl';
export const scope = 'app.containers.NewFile';
export default defineMessages({
header: {
id: `${scope}.header`,
},
});
|
/*
* Fuel UX Wizard
* https://github.com/ExactTarget/fuelux
*
* Copyright (c) 2014 ExactTarget
* Licensed under the BSD New license.
*/
// -- BEGIN UMD WRAPPER PREFACE --
// For more information on UMD visit:
// https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function (factory) {
if (typeof define ... |
// Gatsby supports TypeScript natively!
import React from "react"
import { PageProps, Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
const Register = () => (
<Layout>
<SEO title="Register" />
<style>
@import
url('https://fonts.googleapis.com/cs... |
importScripts('ejohn.Class.js');
var HistoryWorker = Class.extend({
init: function() {
this._MAX_UNDO = 10;
this._history = [];
this._lastdata = [];
},
_addState: function(state) {
this._history.push(state);
if (this._history.length > this._MAX_UNDO) {
this._history.shift();
}
},
... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"014b":function(t,e,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),d=n("9138"),u=n("ebfd").KEY,c=n("294c"),s=n("dbdb"),f=n("45f2"),l=n("62a0"),$=n("5168"),h=n("ccb9"),p=n("6718"),v=n("47ee"),y=n("9003"),m=n("e4ae"),g=n("f7... |
// Currently selected document or discussion
var current;
// All private discussions for this user
var discussions = [ ];
// All private documents for this user
var documents = [ ];
// Currently logged in user
var user;
// A set of users we can select as collaborators on a private discussion
var users = [ ];
// Cr... |
module.exports = serialize
const convert = require('./convert')
const Serializer = require('./serializer')
/**
* Serialize to the appropriate format
* @@ Currently NQuads and JSON/LD are deal with extrelemently inefficiently
* through mutiple conversions.
*/
function serialize (target, kb, base, contentType, call... |
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
// Node module: loopback-example-database
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
var app = require('../../server/server')
module.exports = function(Report) {
//create path
Report.remoteMeth... |
/// <reference types="Cypress" />
import MediaPageObject from '../../../support/pages/module/sw-media.page-object';
import ProductPageObject from "../../../support/pages/module/sw-product.page-object";
describe('Media: Visual tests', () => {
beforeEach(() => {
cy.setToInitialState()
.then(() =... |
var table= jQuery('.expenses-table').DataTable({
responsive: true,
processing: true,
serverSide: true,
ajax: $('#base_url').val()+'expense/getdata',
columns: [
{ data: 'id', name: 'id'},
... |
import _ from 'lodash'
import React, { PropTypes, Component } from 'react'
import cx from 'classnames'
import ModalHeader from './ModalHeader'
import ModalContent from './ModalContent'
import ModalActions from './ModalActions'
import ModalDescription from './ModalDescription'
import Portal from './../../addons/Portal/... |
const { isFailAssertionLine } = require('./fns')
const error = function (message) {
return {
type: 'error',
message: message,
}
}
const firstAssertion = function (first, assert) {
return assert.number < first.number ? assert : first
}
const lastAssertion = function (last, assert) {
return assert.numb... |
const API_URL = 'http://localhost:8000/'
const LOGIN_URL = API_URL + 'rest-auth/login/'
const LOGOUT_URL = API_URL + 'rest-auth/logout/'
// const REGISTRATION_URL = API_URL + 'registration/'
export default {
user: {
authenticated: false
},
login (context, data) {
console.log(this.user)
context.$http... |
/*
npm outdated [pkg]
Does the following:
1. check for a new version of pkg
If no packages are specified, then run for all installed
packages.
--parseable creates output like this:
<fullpath>:<name@wanted>:<name@installed>:<name@latest>
*/
module.exports = outdated
outdated.usage = 'npm outdated [[<@scope>/]<pk... |
'use strict';
const Input = require('postcss/lib/input');
const Root = require('postcss/lib/root');
const htmlParser = require('./html-parser');
const mdParser = require('./markdown-parser');
const BlockFixer = require('./block-fixer');
function parser (source, opts) {
// Skip known style sheet files
if (opts.from ... |
/**
* @author: Emmanuel SMITH <hey@emmanuel-smith.me>
* project: ets2-dashboard-skin
* file: _app.js
* Date: 08/04/2020
* Time: 18:36
*/
import store from '@/store';
import { history } from '@/utils/utils';
import countryList from 'country-list';
import emojiFlags from 'emoji-flags';
import momentjs from 'mom... |
import { GRID_PREFIX } from '../definition';
export class DragService {
constructor() {
}
static get mimeType() {
return `application/x-${GRID_PREFIX}+json`;
}
static decode(source) {
return JSON.parse(source);
}
static encode(source) {
return JSON.stringify(source);
}
}
DragService.element = null;
D... |
/**
* React v0.12.0
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){var d... |
export { default as AreaChart } from './Area';
export { default as BarChart } from './Bar';
export { default as CandlestickChart } from './Candlestick';
export { default as ColumnChart } from './Column';
export { default as HeatmapChart } from './Heatmap';
export { default as LineChart } from './Line';
export { default... |
// see SignupForm.js for comments
import React, { useState } from 'react';
import { Form, Button, Alert } from 'react-bootstrap';
import Auth from '../utils/auth';
import { useMutation } from '@apollo/react-hooks';
import { LOGIN_USER } from '../utils/mutations';
const LoginForm = () => {
const [userFormData, setUs... |
define({
start: 'Uruchom',
chooseTemplateTip: 'Wybierz szablon',
chooseOtherTemplateTip: 'Wybierz inny szablon',
emptyTemplate: 'Pusty szablon',
lockItemRatio: 'Zablokuj współczynnik szerokość/wysokość',
itemStyle: 'Styl elementu',
on: 'pozostało:',
off: 'Wył',
cardAnimation: 'Animacja',
cardTransit... |
import { Button, makeStyles, Typography } from '@material-ui/core';
import React from 'react';
import { blue } from '../utils/static-value'
const Btn = ({ text, marginTop, isSubmit,id }) => {
const useStyle = makeStyles((theme) => ({
btnStyle: {
marginTop: marginTop,
height: 44,
... |
const MediaWiki = require('mediawiki');
const wiki = new MediaWiki.Bot({
endpoint: "https://alttp-wiki.net/api.php",
userAgent: "alttpbot/1.0"
});
let search = process.argv[2] || "test";
wiki.get({action: "query", list: "search", srsearch: `"${search}"`, srwhat: "text", srprop: "snippet|titlesnippet|section... |
game.renderer = function(){
}
game.renderer.render = function(stgae){
} |
'use strict';
const superagent = require('superagent');
const server = require('../lib/server');
const accCharMock = require('./lib/acc-char-mock');
const logger = require('../lib/logger');
const API_URL = `http://localhost:${process.env.PORT}`;
describe('USER PLAYS VIDEO GAME', () => {
beforeAll(server.start);
... |
// This doesn't have to be here – but if we do import Juniper here, it's already
// preloaded and cached when we dynamically import it in code.js.
import Juniper from './src/components/juniper' // eslint-disable-line no-unused-vars |
/*global module:false*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks("grunt-contrib-yuidoc");
grunt.loadNpmTasks('grunt-exec');
// Project configuration.
... |
/*global ODSA */
$(document).ready(function() {
"use strict";
var av_name = "LazyLists5CON"; // Illustrate and develop the is.map function
var av = new JSAV(av_name);
var leftMargin = 10;
var offset_for_each_var = 50;
// var offset_between_var_label_and_cell = 20;
var arrValues = [1,"Thunk... |
(function TranslateAppModule() {
"use strict";
angular.module('translate.app', ['ngRoute'])
.config(TranslateAppConfig);
TranslateAppConfig.$inject = ['$routeProvider'];
function TranslateAppConfig($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'pages/translate-page.html'
})
.when('... |
// Quantity buttons
function qtySum(){
var arr = document.getElementsByName('qtyInput');
var tot=0;
for(var i=0;i<arr.length;i++){
if(parseInt(arr[i].value))
tot += parseInt(arr[i].value);
}
var cardQty = document.querySelector(".qtyTotal");
// if(tot != 0){
cardQty.innerHTM... |
/*!
* angular-translate - v2.18.2 - 2020-01-04
*
* Copyright (c) 2020 The angular-translate team, Pascal Precht; Licensed MIT
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define([], function () {
r... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{79:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"p:1"},[e.error?s("alert",{attrs:{color:"red"}},[e._v(e._s(e.error))]):e._e(),e._v(" "),e.isLoading?s("loader",{attrs:{message:e.loa... |
const Counter = artifacts.require('Counter');
const truffleConfig = require('../truffle-config');
const _assert = require('assert');
const utils = require('../src/utils');
const oasis = require('@oasislabs/client');
const web3 = utils.setupWebsocketProvider(Counter.web3.currentProvider);
if (truffleConfig.shouldRun(__... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MssqlParameter = void 0;
/**
* Sql server driver requires parameter types to be specified fo input parameters used in the query.
*
* @see https://github.com/patriksimek/node-mssql#data-types
*/
class MssqlParameter {
constructo... |
const URL = require('url').URL
const hyperquest = require('hyperquest')
const bl = require('bl')
const stringify = require('json-stringify-safe')
function HttpError (message) {
SyntaxError.call(this, message)
Error.captureStackTrace(this, arguments.callee) // eslint-disable-line
}
HttpError.prototype = Object.cre... |
import React, { Component, Fragment } from "react";
import axios from "axios";
import { Link } from "react-router-dom";
import Moment from "react-moment";
import Spinner from "../layout/Spinner";
import { heroku, lyrics, trackId } from "../../config/apiUrl";
class Lyrics extends Component {
state = {
track: {},
... |
var datapath_2linux_2compat_2include_2linux_2rculist_8h =
[
[ "hlist_first_rcu", "datapath_2linux_2compat_2include_2linux_2rculist_8h.html#a1c749ab0534a0164d62d148214203c84", null ],
[ "hlist_for_each_entry_rcu", "datapath_2linux_2compat_2include_2linux_2rculist_8h.html#a482ed6bca0b607f6455d5386f3b1ed75", null ... |
ScalaJS.impls.scala_Function2$mcIID$sp$class__$init$__Lscala_Function2$mcIID$sp__V = (function($$this) {
/*<skip>*/
});
//@ sourceMappingURL=Function2$mcIID$sp$class.js.map
|
const docker = require('./docker');
exports.removeContainer = async containerInfo => {
const service = docker.getContainer(containerInfo.Id);
try {
await service.remove({force: true});
} catch (e) {
// ignore not found errors
if (e.statusCode === 404) {
return;
}
throw e;
}
};
export... |
module.exports = class ReturnStatement {
constructor(returnValue) {
this.returnValue = returnValue;
}
}; |
import deepmerge from 'deepmerge'; // < 1kb payload overhead when lodash/merge is > 3kb.
import warning from 'warning';
import typographyMigration from './typographyMigration';
function round(value) {
return Math.round(value * 1e5) / 1e5;
}
const caseAllCaps = {
textTransform: 'uppercase',
};
const defaultFontFa... |
$(document).ready(function ()
{
$.ajaxSetup({
headers :
{
'X-CSRF-TOKEN' : $('meta[name="csrf-token"]').attr('content')
}
})
$('#myModal').on('shown.bs.modal', function () {
$('#myInput').trigger('focus')
})
$("body").bind("ajaxSend", function... |
import Schema from 'ember-json-schema/models/schema';
import Document from 'ember-json-schema/models/document';
import { module, test, skip } from 'qunit';
import schemaFixture from '../../fixtures/default-nested-property-schema';
import arrayBaseObjectFixture from '../../fixtures/location-schema';
module('models/docu... |
// IMPORT PACKAGE REFERENCES
import React from 'react';
// IMPORT IMAGES
// COMPONENT
const SearchPage = () => (
<main>
SearchPage
</main>
);
export { SearchPage }; |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// paths is just a variable for common storage during the build and templating process
paths: {
src: 'src', // source directory for content
dest: 'dest', // final document root, sym... |
import Immutable from 'seamless-immutable';
import { REDO, UNDO } from '../../src/actions/history.jsx';
import * as MutableActions from '../../src/actions/mutable.jsx';
import { history, INITIAL_HISTORY } from '../../src/reducers/history.jsx';
import { namespaces } from '../../src/reducers/namespaces.jsx';
const redu... |
var defined = require('defined');
var wrap = require('./lib/wrap');
var EPSILON = Number.EPSILON;
function clamp (value, min, max) {
return min < max
? (value < min ? min : value > max ? max : value)
: (value < max ? max : value > min ? min : value);
}
function clamp01 (v) {
return clamp(v, 0, 1);
}
func... |
;(function (window, linkify, $) {
<%= contents %>
if (typeof $.fn.linkify !== 'function') {
linkifyJquery($);
}
})(window, linkify, jQuery);
|
/**
* PHP服务端脚本模板
* 开写:2016/04/12
* 更新:-
* 作者:蚁逅 <https://github.com/antoor>
*/
'use strict';
// import Base from '../base';
const Base = require('../base');
class PHP extends Base {
constructor(opts) {
super(opts);
// 解析模板
[
'base',
'command',
'filemanager',
'database/mysql'... |
/**
* Copyright (C) 2017-2019 thirty bees
* Copyright (C) 2007-2016 PrestaShop SA
*
* thirty bees is an extension to the PrestaShop software by PrestaShop SA.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.md.... |
import { createLocalVue, mount } from '@vue/test-utils';
import { config as dotenv } from 'dotenv';
import path from 'path';
import VueEnvPlugin from '@/index';
describe('Vue env plugin', () => {
dotenv({ path: path.join(__dirname, '.env.test') });
test('loads environment into plugin', () => {
const localVue... |
import { FileLoader } from '../FileLoader.js'
import { Matrix4 } from '../../math/Matrix4.js'
import { Color } from '../../math/Color.js'
import { DirectionalLight } from '../../lights/DirectionalLight.js'
import { PointLight } from '../../lights/PointLight.js'
import { SpotLight } from '../../lights/SpotLight.js'
impo... |
/**
* @param {string[][]} equations
* @param {number[]} values
* @param {string[][]} queries
* @return {number[]}
*/
const calcEquation = function (equations, values, queries) {
let map = new Map();
for (let i = 0; i < equations.length; ++i) {
enterToMap(map, equations[i][0], equations[i][1], value... |
import {
FETCH_LOGIN,
FETCH_LOGIN_SUCCESS,
FETCH_LOGIN_FAIL,
FETCH_SIGNUP,
FETCH_SIGNUP_SUCCESS,
FETCH_SIGNUP_FAIL,
LOGOUT
} from 'reducers/user-reducer';
import { callService } from 'libs/service-caller';
export const login = (email, password) => {
return async (dispatch) => {
... |
jQuery(function() {
//ace.click_event defined in ace-elements.js
handle_side_menu();
enable_search_ahead();
general_things();//and settings
widget_boxes();
});
function handle_side_menu() {
$('#menu-toggler').on(ace.click_event, function() {
$('#sidebar').toggleClass('display');
$(this).toggleClass('di... |
'use strict';
const Assert = require('assert');
const CodeStreamMessageTest = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/modules/broadcaster/test/codestream_message_test');
const TokenHandler = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/token_handler');
class ConfirmationEmailTest exten... |
const express = require('express');
const router = express.Router();
router.get('/', function(req, res) {
res.sendFile('/index.html');
});
module.exports = router; |
"use strict";
const Document = require("../models/document");
/**
* Utility class that handles parsing the document file
* for any metadata
*/
class DocumentParserUtility {
constructor() {
this._metaRegex = /<!--META (.*) -->/;
this._missingLinkRegex = /\[(.*)\]\(\)/;
}
/**
* Han... |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).rexrhombusplugin=e()}(this,function(){"use strict";function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as... |
import request from '@/utils/request'
// 常规纱采购分页查询
export function purchaseGeneralYarnPage(data = {}) {
const defaultParams = { pageNum: 1, pageSize: 20 }
return request({
url: '/aps/purchaseGeneralYarn/page',
method: 'post',
data: { ...defaultParams, ...data }
})
}
|
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/axios/index.js":
/*!*************************************!*\
!*** ./node_modules/axios/index.js ***!
\*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module... |
const content = require('app/steps/help/need-help/content.json').resources.en.translation.content;
const pagePath = '/pay/help/need-help';
function selectHelpWithFees(needHelp = true) {
const I = this;
I.waitInUrl(pagePath, 5);
I.seeCurrentUrlEquals(pagePath);
I.retry(2).click(needHelp ? content.yes : conten... |
const StateMock = [
{
"id": "1",
"image": "https://arepa.s3.amazonaws.com/camiseta.png",
"title": "Camiseta",
"price": 25,
"description": "bla bla bla bla bla"
},
{
"id": "3",
"image": "https://arepa.s3.amazonaws.com/mug.png",
"title": "M... |
define({"topics" : [{"title":"Understanding harnesses","shortdesc":"\n <p class=\"shortdesc\">Some project requirements cannot be addressed strictly by building upon built-in actions.</p>\n ","id":"concept_xdn_1gg_wg","href":"TA_Tutorials\/Topics\/Understanding_harnesses.html"... |
// @flow
import React from "react";
import { useSelector } from "react-redux";
import { useTranslation } from "react-i18next";
import { EXPERIMENTAL_MARKET_INDICATOR_SETTINGS } from "~/config/constants";
import { hasPasswordSelector, langAndRegionSelector } from "~/renderer/reducers/settings";
import TrackPage from "~... |
export default {
DESKTOP: 992,
TABLET: 768,
PHONE: 414,
};
|
/* Onfido SDK 5.13.0 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Onfido=t():e.Onfido=t()}(window,(function(){return function(e){function t(t){for(var n,r,i=t[0],a=t[1],s=0,c=[];s<i.length;s++)r... |
import React from "react"
import { Link } from "gatsby"
import {
BaseLayout,
TitleBar,
NavContainer,
Navbar,
LinkList,
Item,
Footer,
} from "../../styles/styles"
export default ({ children }) => (
<BaseLayout>
<div>
<NavContainer>
<Navbar>
<Link style={{ textDecoration: "no... |
/**
* @param {number[]} prices
* @return {number}
*/
var maxProfit = function(prices) {
let minprice = Infinity;
let maxprofit = 0;
for (let i = 0; i < prices.length; i++) {
if (prices[i] < minprice) minprice = prices[i];
else if (prices[i] - minprice > maxprofit) maxprofit = prices[i] - minprice;
}
return ... |
const handler = require('@projecttacoma/fhir-response-util');
/**
* @function search
* @param {Function} service
* @return Promise
*/
module.exports.search = function search(service) {
return (req, res, next) => {
return service
.search(req.sanitized_args, { req })
.then((bundle) => handler.read(... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.glob = exports.rmdir = exports.writeFile = exports.readFile = exports.mkdtemp = exports.mkdir = exports.unlink = exports.rename = exports.exists = void 0;
const util_1 = require("util");
const fs = require("fs");
const globOrig = requi... |
// flowchart.js, v1.16.0
// Copyright (c)2021 Adriano Raiano (adrai).
// Distributed under MIT license
// http://adrai.github.io/flowchart.js
!function(root, factory) {
if ("object" == typeof exports && "object" == typeof module) module.exports = factory(require("Raphael")); else if ("function" == typeof define &&... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/workAttendance',
method: 'post',
data
})
}
export function del(id) {
return request({
url: 'api/workAttendance/' + id,
method: 'delete'
})
}
export function edit(data) {
return request({
url... |
// Requirements
const AdmZip = require('adm-zip')
const async = require('async')
const child_process = require('child_process')
const crypto = require('crypto')
const EventEmitter = require('events')
const fs = require('fs-extra')
const StreamZip = require('node-stream-zip')
const ... |
const router = require('express').Router();
const { User } = require('../../models');
router.post('/', async (req, res) => {
try {
const newUser = await User.create({
username: req.body.username,
password: req.body.password,
});
req.session.save(() => {
req.session.userId = newUser.id;... |
// Generated by BUCKLESCRIPT VERSION 4.0.5, PLEASE EDIT WITH CARE
'use strict';
var ReasonReact = require("reason-react/src/ReasonReact.js");
var GatsbyLink = require("gatsby-link");
function make(to_, children) {
return ReasonReact.wrapJsForReason(GatsbyLink.default, {
to: to_
}, children... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _BaseComponent2 = _interopRequireDefault(require("./BaseComponent"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { if (typeof S... |
var frank = require('../lib/frank'),
server = frank();
server
.get('/')
.render('jade', './public/text.jade', {
name: 'murilo',
email: 'mvrilo@gmail.com'
});
server
.get('/jade')
.render('./public/text.jade', { // this also works!
name: 'murilo',
email: 'mvrilo@gmail.com'
});
server.l... |
/*
An S3 uploader with some useful default settings for Zooniverse static files.
Accepts an S3 path, relative to zooniverse-static, as its only argument.
Usage example: node upload.js preview.zooniverse.org/panoptes-front-end/pr-1234
*/
const Uploader = require('s3-batch-upload').default;
const args = process.ar... |
import React from 'react';
import './Up&BottomMenu.css';
import UpMenu from '../components/SMenuBar';
import ConduMiTaxiAdd from '../components/CConduMiTaxiAdd';
import BottomMenu from '../components/BottomMenuBar';
import { withRouter } from 'react-router-dom';
class ConduMiTaxiAddPage extends React.Component{
re... |
/*!
* Copyright 2017 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import React from 'react';
import ReactDOM from 'react-dom';
import './styles/app.css';
import AppRouter from './routers/AppRouter';
ReactDOM.render(
<React.StrictMode>
<AppRouter />
</React.StrictMode>,
document.getElementById('root'),
);
|
/**
@param {object} user - The user being created
@param {string} user.id - user id
@param {string} user.tenant - Auth0 tenant name
@param {string} user.username - user name
@param {string} user.email - email
@param {boolean} user.emailVerified - is e-mail verified?
@param {string} user.phoneNumber - phone number
@para... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.