text stringlengths 2 1.04M |
|---|
import '../d2l-capture-central.js';
import { expect, fixture, html } from '@open-wc/testing';
import { runConstructor } from '@brightspace-ui/core/tools/constructor-test-helper.js';
describe('d2l-capture-central', () => {
describe('accessibility', () => {
it('should pass all axe tests', async() => {
const el = ... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js
*
* Copyright (c) 2010 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the Lic... |
import variables from '@/assets/styles/element-variables.scss'
import defaultSettings from '@/settings'
const { themeStyle, showSettings, tagsView, fixedHeader, sidebarLogo } = defaultSettings
const state = {
theme: variables.theme,
themeStyle: themeStyle,
showSettings: showSettings,
tagsView: tagsView,
fix... |
import UsersMenu from './menus/users_menu.json'
export default [
{
type: 'item',
icon: 'fas fa-home',
name: 'Home',
router: {
name: 'home'
},
permission: null
},
{
type: 'tree',
icon: 'fas fa-users',
name: 'Usuários',
... |
class Util {
static getPrice (pair, from, to) {
// Rate
let rate = pair[`${from}_${to}`]
if (rate) return rate
// Swap?
const swappedRate = pair[`${to}_${from}`]
if (!swappedRate) throw new Error('Pair not exist')
// Swap from normal rate
return 1 / swappedRate
}
}
export default ... |
// @flow
import * as React from 'react'
import { StyleSheet } from 'react-native'
import slowlog from 'react-native-slowlog'
import { sprintf } from 'sprintf-js'
import { type WalletListMenuKey } from '../../actions/WalletListMenuActions.js'
import { WALLET_LIST_MENU } from '../../constants/WalletAndCurrencyConstants... |
import React from 'react'
import { CChartLine } from '@coreui/react-chartjs'
import { getStyle, hexToRgba } from '@coreui/utils'
const brandSuccess = getStyle('success') || '#4dbd74'
const brandInfo = getStyle('info') || '#20a8d8'
const brandWarning = getStyle('warning') || '#f0ad4e'
const brandDanger = getStyle('dang... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[125],{676:function(s,t,n){"use strict";n.r(t);var e=n(23),r=Object(e.a)({},(function(){var s=this,t=s.$createElement,n=s._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[n("p",[s._v("怎么在SpringBoot的maven插件中设置命令行参数呢:")]),s._v(" "),... |
/** */
const { logger } = require('../utilities/logger');
const {
decodeAuthenticationToken,
processFailedResponse
} = require('../utilities/general');
module.exports = {
authenticateUser: async (request, __, next) => {
try {
const { authorization } = request.headers;
if (!a... |
import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8.75 12c-.41 0-.75-.34-.75-.75V13h-2v1.25c0 .41-.34.75-.75.75S6 14.66 6 1... |
export const getCaption = ({ num, text }) => {
if (isNaN(num) || !text) throw new Error('getCaption: incorrect values');
return `${num}-${text}`;
}; |
$(document).ready(function() {
// enable fileuploader plugin
$('input[name="files"]').fileuploader({
changeInput: '<div class="fileuploader-input">' +
'<div class="fileuploader-input-inner">' +
'<img src="img/fileuploader-dragdrop-icon.png">' +
'<h3 class="fileuploader-input-... |
macDetailCallback("48b8de000000/24",[{"d":"2012-09-28","t":"add","a":"10F-1, NO. 122, QIAOHE RD.,\nZHONGHE DIST.,\nNEW TAIPEI CITY, 235\n","c":"TAIWAN, PROVINCE OF CHINA","o":"HOMEWINS TECHNOLOGY CO.,LTD."},{"d":"2015-08-27","t":"change","a":"10F-1, NO. 122, QIAOHE RD., NEW TAIPEI CITY, TW 235","c":"TW","o":"HOMEWINS... |
import ChallengeFactorPageObject from './ChallengeFactorPageObject';
export default class ChallengeEmailPageObject extends ChallengeFactorPageObject {
constructor (t) {
super(t);
}
resendEmailView() {
return this.form.getElement('.resend-email-view');
}
async clickSendAgainLink() {
await this.f... |
import React, {useState} from 'react';
import {Affix, IconList, Navbar, Toggle,} from 'react-windy-ui';
import DocFrame, {FrameContextConsumer} from '../../../utils/DocFrame';
const fixedNavbarStyle = {
background: '#333',
};
export default function Navbar11() {
const [smallWindow, setSmallWindow] = useState(fals... |
let natural = require('natural');
let wordnet = new natural.WordNet();
let myWord = 'desert';
wordnet.lookup(myWord, results => {
results.forEach(result => {
console.log('\n');
console.log(result.synsetOffset);
console.log(result.pos);
console.log(result.synonyms);
console.l... |
#!/usr/bin/env node
// eslint-disable-next-line no-unused-vars
const colors = require('colors')
const yargs = require('yargs')
const { checkUserMiddleware, solutionMiddleware } = require('./helpers')
yargs // eslint-disable-line no-unused-expressions
.commandDir('cmds')
.demandCommand(1, '')
.fail((msg, err) =>... |
var _ = require('underscore');
var Docxtemplater = require('docxtemplater');
var fs = require('fs');
var moment = require('moment');
var transformCvData = require('./transform');
var exportedDataPath = process.env.EXPORT_DATA || './sample-input.json';
var exportedData = require(exportedDataPath);
var cvData = _
.ch... |
/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
*
* @namespace
*/
var jasmine = {};
/**
* @private
*/
jasmine.unimplementedMethod_ = function() {
throw new Error("unimplemented method");
};
/**
* Use <code>jasmine.undefined</code> instead of <code>undefined</code>,... |
// JavaScript Document
|
import curryN from 'funny-curry-n'
/**
* Logical conjunction operator.
*
* @param {Number} a A operand.
* @param {Number} b B operand.
* @return {Number} Conjunction result.
*/
function _and (a, b) {
return a && b
}
const and = curryN(2, _and)
export default and |
function fourSquareController() {
var request = require('request');
var config = require('../config')
this.getRestaurantsExplore = function(req, res, next) {
var params = {
//from config
client_id: config.foursquare_client_id,
client_secret: config.foursquare_client_secret,
near: config.foursquare_loc... |
//>>built
define({widgetLabel:"\u0641\u062d\u0635 \u0647\u062c\u0627\u0621 \u062f\u0641\u0639\u064a",unfound:"\u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f\u0629",skip:"\u062a\u062e\u0637\u064a",skipAll:"\u062a\u062e\u0637\u064a \u0643\u0644",toDic:"\u0627\u0636\u0627\u0641\u0629 \u0627\u0644\u0649 \u0627\u0644\u06... |
import React from 'react'
import styled from 'styled-components'
import { StaticQuery, graphql } from 'gatsby'
import { styles, Section } from '../../utils'
import Img from 'gatsby-image'
const GET_IMAGES = graphql`
{
getImages: allFile(filter: {relativeDirectory: {eq: "homeGallery"}}) {
edges {
node {
... |
const map = require('./map')
const nums = map([1, 2, 3], x => x * x)
console.log({ nums }) |
var user;
addTagSearchTagListeners();
/**
* Adds listeners to the search bar to search the database and redirect to tags page if needed
*/
function addTagSearchTagListeners() {
function redirectToTagPage(tag, datalist) {
for (let dataTag of datalist.options) {
if (dataTag.value.toUpperCase()... |
(function() {
var $feeds, $filterAll, $filterMonth, $filterWeek, $items, $optionsSortBackwards, $optionsSortForwards, $player, $playerFeedTitle, $playerImage, $playerNext, $playerPlay, $playerPodTitle, $playerPositionBar, $playerPositionCurrent, $playerPositionDuration, $playerPrev, $playerStop, $playerVolumeBar, $se... |
import React from 'react';
import {
Heading, Slide
} from 'spectacle';
const SwarmIntro = (
<Slide transition={['slide']} bgColor="primary">
<Heading size={1} fit caps lineHeight={1} textColor="black">
Docker Swarm
</Heading>
</Slide>
);
export default SwarmIntro; |
import styled from '@emotion/styled';
import { css, get } from '@theme-ui/css';
import { createShouldForwardProp } from '@styled-system/should-forward-prop';
import space from '@styled-system/space';
import color from '@styled-system/color';
import React from 'react';
import { keyframes } from '@emotion/react';
var bo... |
import Vue from 'vue'
import { shallowMount } from '@vue/test-utils'
import CoreuiVue from '@coreui/vue'
import Brands from '@/views/icons/Brands'
Vue.use(CoreuiVue)
describe('Brands.vue', () => {
it('has a name', () => {
expect(Brands.name).toBe('Brands')
})
it('is Vue instance', () => {
const wrapper ... |
module.exports = {
tag: [ 'тэгтест', 'тесттэг' ], // Бот откликнется на: "(Имя бота), тэгтест" и на "(Имя бота), тесттэг"
func: function(msg) {
msg.ok('Всё окей)))');
},
help: 'тесттэг',
desc: 'проверка тега'
}; |
var files =
[
[ "OcularCore", "dir_de58fdaf326cba871fdb8576b85a4719.html", "dir_de58fdaf326cba871fdb8576b85a4719" ],
[ "OcularD3D11", "dir_5349e94d8f0ef7e2c3c1aa88ee8d6d72.html", "dir_5349e94d8f0ef7e2c3c1aa88ee8d6d72" ],
[ "OcularEditor", "dir_124e30887da88df05ac15b394dc59e40.html", "dir_124e30887da88df05ac... |
import React, { useEffect } from 'react';
import { Route, Redirect } from 'react-router-dom';
import Cookies from 'js-cookie';;
const checkLogin = () => {
return Cookies.get('__SOSAR_AUTH') ? true : false;
}
const checkStatus = () => {
const initCookies = JSON.parse(Cookies.get('__SOSAR_AUTH'));
const user ... |
// @codepen
import * as React from 'react';
import { MessageBarButton } from 'office-ui-fabric-react/lib/Button';
import { Link } from 'office-ui-fabric-react/lib/Link';
import { Label } from 'office-ui-fabric-react/lib/Label';
import { MessageBar, MessageBarType } from 'office-ui-fabric-react/lib/MessageBar';
import '... |
/**
* @license 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 law or a... |
const question = document.querySelector('#question');
const choices = Array.from(document.querySelectorAll('.choice-text'));
const progressText = document.querySelector('#progressText');
const scoreText = document.querySelector('#score');
const progressBarFull = document.querySelector('#progressBarFull');
let currentQ... |
import React from 'react'
export default () => (
<div>
<p>I am blogs.</p>
</div>
) |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var ContentFilterList = React.createClass({
displayName: 'ContentFilterList',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d... |
import { app, BrowserWindow, Menu, shell } from 'electron';
import DaemonInterface from './DaemonInterface';
let menu;
let template;
let mainWindow = null;
if (process.env.NODE_ENV === 'production') {
const sourceMapSupport = require('source-map-support'); // eslint-disable-line
sourceMapSupport.install();
}
if ... |
const expect = require('chai').expect;
const config = require('../../../../config');
const { checkUserAgent } = require('../../../../assertion-helper');
describe('[API] t.eval', function () {
it('Should execute an anonymous client function', function () {
const browsers = 'chrome,fi... |
import defaultSettings from '@/configs'
const { tagsView, fixedHeader, sidebarLogo } = defaultSettings
const state = {
tagsView: tagsView,
fixedHeader: fixedHeader,
sidebarLogo: sidebarLogo
}
const mutations = {
CHANGE_SETTING: (state, { key, value }) => {
if (state.hasOwnProperty(key)) {
state[key... |
/*
The MIT License (MIT)
Copyright 2021 Blockstream Corp
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
//
// Usage:
// node benchmark/http_simple_auto.js <args> <target>
//
// Where:
// <args> Arguments to pass to `ab`.
// <target> Target to benchmark, e.g. `bytes/1024` or `buffer/8192`.
//
var path = require("path");
var http = require("http");
var spawn = require("child_process").spawn;
var port = parseInt(p... |
/**
* Copyright 2014 IBM Corp.
*
* 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 wr... |
/*!
DataTables Bootstrap 3 integration
Š2011-2014 SpryMedia Ltd - datatables.net/license
*/
(function(l,q){var e=function(b,c){b.extend(!0,c.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});b.extend(c.ext.classes,{sWrapper:"dataTables_wra... |
// @flow
import {
TERRAIN_MIPMAP_LOADED,
} from './terrainConstants';
export const loadTerrainMipmap = (mipmap) => (dispatch) => {
dispatch({ type: TERRAIN_MIPMAP_LOADED, payload: { mipmap }, meta: { worker: true } });
}; |
/*
* This is inspired on the example work by Robbie Tilton [0] leapmotion
* example code posted on codepen.io [1]. According to codepen.io's licensing
* page [2] all public code posted on codepen.io is licensed under the MIT
* license. They apply the license to the code automatically when you view
* an example cod... |
import React from 'react'
import PropTypes from 'prop-types'
// FPCC
import useIcon from 'common/useIcon'
import WidgetAreaEdit from 'components/WidgetAreaEdit'
function HomeCrudPresentation({ site }) {
return (
<div id="HomeCrud" className="bg-gray-100">
{/* Page header */}
<div className="w-full s... |
$("#form-edit").validate({
submitHandler:function(form){
edit();
}
});
function edit() {
var dataFormJson=$("#form-edit").serialize();
$.ajax({
cache : true,
type : "POST",
url : "/appCfg/save",
data : dataFormJson,
headers: {
"Authorization":... |
/**
* node-queue-lib
* Copyright(c) 2014 year Andrey Gromozdov
* License: MIT
*/
var util = require('../core/utils');
var EventEmitter = require('events').EventEmitter;
var socketIoClient = require('socket.io-client');
var uuid = require('node-uuid').v4;
var connections = [];
var sockets = [];
function SocketIoBr... |
"use strict";
/**
* @ Author: 幸焕光
* @ Create Time: 2020-12-30 14:30:17
* @ Modified by: 幸焕光
* @ Modified time: 2021-01-02 22:16:46
* @ Description: 核心文件
* @ URL:
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.de... |
// import React from 'react';
// import { shallow } from 'enzyme';
// import Avatar from '../index';
describe('<Avatar />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
}); |
const mongoose = require('mongoose');
const config = require('config');
mongoose.Promise = global.Promise;
const db = mongoose.connect(config.get('server.database'), { useMongoClient: true },
function(err) {
err
? console.log('Unable to connect to MongoDB. Error: ', err)
: console.log('Connected successfu... |
/**
* Upper Sorbian (Hornjoserbsce) language functions
*/
( function ( $ ) {
'use strict';
$.i18n.languages.hsb = $.extend( {}, $.i18n.languages[ 'default' ], {
convertGrammar: function ( word, form ) {
switch ( form ) {
case 'instrumental': // instrumental
word = 'z ' + word;
break;
case 'l... |
import {After, Given, Then, When} from 'cucumber';
import {assert} from 'chai';
import any from '@travi/any';
import {BAD_REQUEST, UNAUTHORIZED} from 'http-status-codes';
import crypto from 'crypto';
let server, serverResponse, signature;
const githubSecret = any.string();
const payload = any.simpleObject();
After(()... |
function solve() {
let text = document.getElementById('input').value.split('.').map(e => e.trim()).filter(e => e !== '');
const n = 3
const result = new Array(Math.ceil(text.length / n))
.fill()
.map(_ => text.splice(0, n))
const output = document.getElementById('output');
result.f... |
import React, { Fragment, useEffect } from 'react';
import PropTypes from 'prop-types';
import Glide from '@glidejs/glide';
import '@glidejs/glide/dist/css/glide.core.min.css';
import GlideWrapper, {
GlideSlideWrapper,
ButtonControlWrapper,
ButtonWrapper,
BulletControlWrapper,
BulletButton,
DefaultBtn,
} fr... |
"use strict";
var CodeMirror = require("codemirror");
let $ = require('jquery');
CodeMirror.defineMode("shapeMap", function(config, parserConfig) {
// var indentUnit = config.indentUnit;
var grammar = require("./_tokenizer-table.js");
var ll1_table = grammar.table;
var PN_PREFIX = "(" + PN_CHARS_BASE + ")... |
/*
* Copyright 2019 is-land
*
* 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 w... |
var extraImagesCount = 0;
$(document).ready(function() {
$("input[name='extraImage']").each(function(index) {
extraImagesCount++;
$(this).change(function() {
if (!checkFileSize(this)) {
return;
}
showExtraImageThumbnail(this, index);
});
});
$("a[name='linkRemoveExtraImage']").each(funct... |
// 引入 user 模块
const User = require('./model/user')
// 查找数据
User.find({}, (err, res)=>{
if (err) {
console.log('查找数据失败:' + err)
return
}
console.log('查找数据成功!')
console.log(res)
})
// 根据年龄查找数据
User.findByAge(19, (err, res)=>{
if (err) {
console.log('查询数据失败:' + err)
}
c... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ExchangeNotAvailable, RequestTimeout, AuthenticationError, PermissionDenied, DDoSProtection, InsufficientFunds, OrderNotFound, OrderNotCached, InvalidOrder... |
// 页面变量
var page = 1;
var rows = 10;
var desc = 1;
var order = 'start_time';
var loading = false;
var where = '';
var s_page = 1;
var isMain = true;
var isFull = false;
var _winHeight = $(window).height();
$('#action').on('click', function(event) {
$('.ui-actionsheet').addClass('show');
});
$('#btnC').on('click', fu... |
import styled from 'styled-components';
const FixedContainer = styled.div`
max-width: ${props => props.theme.maxWidth};
margin: 0 auto;
`;
export default FixedContainer; |
sap.ui.define([
"sap/ui/model/json/JSONModel",
"sap/ui/core/mvc/Controller"
], function (JSONModel, Controller) {
"use strict";
return Controller.extend("sap.uxap.sample.ObjectPageSelectedSection.controller.ObjectPageSelectedSection", {
onInit: function () {
var oJsonModel = new JSONModel("./test-resources/sap... |
//= require moment/moment.js |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function GiBathtub (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M440.6 24.77c-.7 0-1.4 0-2.1.1-17.2 1.06-33.5 10.97-43.1 25.11 3.9 1.97 7.6 4.48 11.1 7.61 1.2 1.08 2.4 2.2 3.4 3.34 7.3... |
exports.fields = {
title: 'Hello World',
};
exports.render = (doc, pod, env) {
return `<!DOCTYPE html>
<title>${doc.title}</title>
`;
}; |
export default {
interaction: {},
errors: null,
interactionLatLng: null,
interactionSelected: null,
layerGroups: []
}; |
var write_content_xml/*:{(wb:any, opts:any):string}*/ = (function() {
var null_cell_xml = ' <table:table-cell />\n';
var covered_cell_xml = ' <table:covered-table-cell/>\n';
var cell_begin = ' <table:table-cell ', cell_end = '</table:table-cell>\n';
var vt = 'office:value-type=';
var p_b... |
import {h, app} from 'hyperapp'
export default function RandomQuote({state, actions}) {
return (
<section id="RandomQuote" style= {{
backgroundImage: 'linear-gradient(135deg, rgba(0, 0, 0, .1) 0, #000 100%), url("https://images.unsplash.com/photo-1470549813517-2fa741d25c92?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQi... |
export default function sanitizeURL(url) {
let clean = '';
let escaped = false;
for (let i = 0; i < url.length; i++) {
const char = url.charAt(i);
if (char === '"') escaped = !escaped;
else if (!escaped && (char === ' ' || char === '\n')) continue;
clean += char;
}
return clean;
} |
const shops = {
'梅园': 'shopId=7122b5ce-14b3-4b68-b122-83b10716e1dd&longitude=120.097911&latitude=30.265527',
'桃园': 'shopId=a64d9143-2a0b-4be0-891b-7c213c40579b&longitude=120.097911&latitude=30.265527',
'橘园': 'shopId=85beb7dc-b0d4-4222-aae9-73d19d45e9a8&longitude=120.097911&latitude=30.265527'
}
const states = [
... |
/**
* Returns the owner document of a given element.
*
* @param node the element
*/
export default function ownerDocument(node) {
return node && node.ownerDocument || document;
} |
import axios from '~/lib/utils/axios_utils';
import MockAdapter from 'axios-mock-adapter';
import testAction from 'helpers/vuex_action_helper';
import createFlash from '~/flash';
import * as actions from '~/error_tracking/store/details/actions';
import * as types from '~/error_tracking/store/details/mutation_types';
j... |
define({"topics" : [{"title":"About","shortdesc":"<p class=\"shortdesc\">Acknowledgements for all contributors.</p>","href":"source\/r_about.html","attributes": {"data-id":"untitled1",},"menu": {"hasChildren":false,},"tocID":"untitled1-d61e1153","topics":[]}]}); |
const mongoose = require('mongoose');
const supertest = require('supertest');
const http = require('http');
const app = require('../../app');
describe('User Tests', () => {
let server, api;
beforeAll(done => {
server = http.createServer(app);
server.listen(done);
api = supertest(server);
});
it('... |
'use strict';
import _ from 'lodash';
import { Map } from 'immutable';
import Channel from './Channel';
class Channels {
constructor(bot, channels = []) {
this.channels = Map({});
_.each(channels, (channel) => {
if (! (channel instanceof Channel)) {
channel = new Channel(bot, channel);
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TreeNode_1 = require("./base/TreeNode");
const TreeUtils_1 = require("./base/TreeUtils");
var GrammarConstantsCompiler;
(function (GrammarConstantsCompiler) {
GrammarConstantsCompiler["stringTemplate"] = "stringTemplate";
Grammar... |
module.exports = {
root: true,
parser: "babel-eslint",
parserOptions: {
sourceType: "module"
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: ["standard", "prettier"],
// required to lint *.vue files
plugins: ["html"],
// add your custom rules here
... |
const kvInterface = {
'keyValueStorage': {},
'keyValueCounters': {},
'set': (key, value, ttl) => {
return new Promise((resolve) => {
if (typeof(key) !== 'string') {
throw Error('not a valid key. [set] expects a string.');
}
if (ttl && typeof(ttl) !== 'number') {
throw Error(... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import Login from "../components/login.component"
const LoginPage = () => (
<Layout>
<Login />
</Layout>
)
export default LoginPage |
const puppeteer = require("puppeteer");
const fetch = require("node-fetch");
// start a chromium process here
let browserPromise = startChromiumProcess();
function startChromiumProcess() {
return puppeteer.launch({
args: [
"--no-sandbox",
"--disable-dev-shm-usage",
"--font-render-hinting=none"... |
import { faExternalLinkAlt, faSpinner } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome';
import useCreateContribution from 'components/CreateContributionModal/hooks/useCreateContribution';
import Tooltip from 'components/Utils/Tooltip';
import ROUTES fr... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[189],{
/***/ "./frontend/node_modules/vue-clickaway/index.js":
/*!******************************************************!*\
!*** ./frontend/node_modules/vue-clickaway/index.js ***!
\******************************************************/
/*! exports pr... |
(function () {
//placeholder
}()); |
import { h } from '../ionic.core.js';
import { c as createColorClasses } from './chunk-2f96b3d2.js';
import { a as sanitizeDOMString } from './chunk-8b4dfddb.js';
import { f as debounceEvent } from './chunk-6d7d2f8c.js';
class Searchbar {
constructor() {
this.isCancelVisible = false;
this.shouldAl... |
import {Group, BoxGeometry, Mesh, MeshLambertMaterial} from 'three';
import {MODE} from '../constants';
export default (parent, config) => {
let geometry = null;
let mesh = null;
let material = null;
const group = new Group();
group.position.y = config.tableHeight / 2;
group.position.z = config.tablePositi... |
define({
// Connection tab
"connection": "Connessione",
// Clients container
"clients": "Client",
"newClients": "Nuovi client",
"addTrustedClient": "Trust", // todo: translate when client messages can be translated
"trustedClients": "Client attendibili",
"removeTrustedClient": "Rimuovi",... |
import Ember from 'ember';
import C from 'ui/utils/constants';
import Util from 'ui/utils/util';
export default Ember.Service.extend({
store: Ember.inject.service(),
isReady() {
return this.get('store').find('stack').then((stacks) => {
return this.get('store').find('service').then((services) => {
... |
import PropTypes from "prop-types";
import React from "react";
import { getBaseProps } from "./helper-methods";
import Bar from "./bar";
import {
Helpers,
VictoryLabel,
VictoryContainer,
VictoryTheme,
CommonProps,
addEvents,
Data,
Domain
} from "victory-core";
const fallbackProps = {
width: 450,
he... |
import React from "react";
import firebase from "firebase";
import {
chakra,
Box,
Flex,
useColorModeValue,
VisuallyHidden,
HStack,
Button,
useDisclosure,
VStack,
IconButton,
CloseButton,
Avatar,
Link,
} from "@chakra-ui/react";
import { AiOutlineMenu } from "react-icons/ai";
import Contactless... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[51],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/suggestions/List.vue?vue&type=script&lang=js&":
/*!**********************************************************************************... |
const encoding = require('../../../encoding/encoding');
class PendingTransactionInformation {
constructor(c, txid) {
this.c = c;
this.txid = txid;
this.query = {};
this.query.format = 'msgpack';
}
/**
* returns the transaction information for a specific txid of a pending transaction
* @par... |
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilesHandler = void 0;
var fs_1 = require("fs");
var path_1 = require("path");
var MimeTypes_1 = require("../Tools/MimeTypes");
var FilesHandler = /** @class */ (function () {
function FilesHandler(errorsHandler) {
this.errorsHandler = e... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
const HeroHome = () => {
const data = useStaticQuery(graphql`
query {
placeholderImage: file(relativePath: { eq: "home-hero.png" }) {
childImageSharp {
fluid(maxWidth: 1200) {
... |
import { module, test } from 'qunit';
import {
click,
setupContext,
teardownContext,
_registerHook,
} from '@ember/test-helpers';
import {
buildInstrumentedElement,
instrumentElement,
insertElement,
} from '../../helpers/events';
import { isIE11 } from '../../helpers/browser-detect';
import hasEmberVersio... |
import React from 'react';
import {shallow, mount, render} from 'enzyme';
import Alert from './alert';
import styles from './alert.css';
const TICK = 500;
describe('Alert', () => {
const mountAlert = props => mount(<Alert {...props}/>);
const shallowAlert = props => shallow(<Alert {...props}/>);
const renderAl... |
const mongo = require('mongoose')
const Schema = mongo.Schema
const lotofacilSchema = new Schema({
contest: { type: Number, required: true, index: { unique: true } },
date: { type: Date, required: true },
result: { type: [ Number ], required: true },
fifteenNumbersWinners: { type: Number, required: true, defau... |
'use strict';
const {
multiByteIndexOf,
stringToBytes,
readUInt64LE,
tarHeaderChecksumMatches,
uint8ArrayUtf8ByteString
} = require('./util');
const supported = require('./supported');
const xpiZipFilename = stringToBytes('META-INF/mozilla.rsa');
const oxmlContentTypes = stringToBytes('[Content_Types].xml');
cons... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.