text
stringlengths
2
1.05M
"use strict"; var http = require('http'); var port = process.env.port || 1337; http.createServer(function (req, res) { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end('Hello World\n'); }).listen(port); console.log("Server Started! Please visit http://127.0.0.1:" + port); //# sourceMappingURL=main....
const jwt = require('./') function TokenGenerator (secretOrPrivateKey, secretOrPublicKey, options) { this.secretOrPrivateKey = secretOrPrivateKey; this.secretOrPublicKey = secretOrPublicKey; this.options = options; //algorithm + keyid + noTimestamp + expiresIn + notBefore } TokenGenerator.prototype.sign = funct...
import firebase from '@firebase/app-compat'; import { FirestoreError, Bytes, _isBase64Available, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, clearIndexedDbPersistence, _DatabaseId, _logWarn, connectFirestoreEmulator, enableNetwork, disableNetwork, _validateIsNotUsedTogether, waitForPendingWrites, on...
import React from 'react' import ReactMarkdown from 'react-markdown' import Link from '../components/Link' import Select from '../components/Select' import Gallery from '../components/Gallery' import './ProductPage.css' export default ({ fields }) => { const { title='', price=0, longDescription='', images=[], optio...
module.exports = (schema) => { return (req, res, next) =>{ console.log(schema) var schemaFields = Object.keys(schema) var body = req.body var missing = false var valid = false schemaFields.forEach(e =>{ var type = schema[e].type ? typeof(s...
import demoTest from '../../../tests/shared/demoTest'; demoTest('input');
// Find the HTML element that included the tracing library (if there is one). // This relies on the fact that scripts are executed as soon as they are // included -- thus 'this' script is the last one in the array at the time // this is run. let hostScriptElement = (function () { let scripts = document.getElementsB...
// @require core/cash.js // @require collection/filter.js // @require ./is.js // @require ./parent.js fn.closest = function ( selector ) { if ( !selector || !this[0] ) return cash (); if ( this.is ( selector ) ) return this.filter ( selector ); return this.parent ().closest ( selector ); };
import Response from "app/response" async function CheckHoldingsTokenHandler(req, res) { const { id, token_ids } = req.query const holdingsPayload = { account_id: id, token_ids: token_ids.split(",") } const { hashgraphClient } = req.context const balanceResponse = await hashgraphClient.hasTokenHoldings( h...
import foo, { bar, baz } from 'hoge'; import * as qux from 'piyo'; const quux = 'hello, world'; const corge = `hello, ${world}`;
function a(a,b){!(a instanceof b)}var b=String.fromCharCode,c=Function.prototype.call.bind(String.prototype.indexOf),d=Function.prototype.call.bind(String.prototype.charAt),e=Function.prototype.call.bind(Array.prototype.join),f=Function.prototype.call.bind(Array.prototype.slice),g=Function.prototype.call.bind(Array.pro...
export const wink = {"viewBox":"0 0 16 16","children":[{"name":"path","attribs":{"fill":"#000000","d":"M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM8 1.5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5-6.5-2.91-6.5-6.5 2.91-6.5 6.5-6.5zM8.48 11.11c2.191-0.433 3.892-1.43 4.507-2.759-0.338 2.624-2.524 4.649-...
$(window).on("load",function(){function t(t){return t.total=d3.sum(e,function(a){return t[a]=+t[a]}),t}var a=d3.dispatch("load","statechange"),n=d3.select("#disptach-events"),e=["Under 5 Years","5 to 13 Years","14 to 17 Years","18 to 24 Years","25 to 44 Years","45 to 64 Years","65 Years and Over"];d3.csv("../../../app-...
const puppeteer = require('puppeteer'); (async () => { // it opens like a browser and then screenshots const browser = await puppeteer.launch({ headless: false, // devtools: true }); // const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://google.com'); awa...
'use strict' require('es5-shim/es5-shim') require('es5-shim/es5-sham') // them tests require('./initialization') require('./bind') require('./unbind') require('./detach') require('./plugins/bind-dictionary') require('./plugins/global-bind') require('./plugins/pause') require('./plugins/record')
import React from 'react'; import { View, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import { useDispatch, useSelector } from 'react-redux'; import { Switch } from 'react-native-paper'; import * as themeActions from 'app/actions/themeActions'; export default...
import split from 'split-string'; import { findChunks } from 'highlight-words-core'; import waitUntil from 'node-wait-until'; import { bundleFilterConstants } from '../constants/bundleFilter.constants'; import { workspaceUserSettingsStoreServices } from '../services/workspaces.service'; import { workspaceHelpers } from...
/** * Represents a point and type from a request */ class PointAndType{ constructor(pointId, typeId) { this.pointId = pointId; this.typeId = typeId; } Create() { let sql = ` INSERT INTO pointandtypes(pointId, typeId) VALUES("${this.pointId}", ${this.type...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); var _inheritsLoose2 = _interopRequireDefault(require...
Search.setIndex({docnames:["index"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":1,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,"sphinx.ext.viewcode":1,sphinx:55},filenames:["index.rst"],objects:{},obj...
Ext.define("Ozone.components.admin.dashboard.DashboardEditPropertiesTab",{extend:"Ozone.components.PropertiesPanel",alias:["widget.dashboardeditproperties","widget.dashboardeditpropertiestab","widget.Ozone.components.admin.dashboard.DashboardEditPropertiesTab"],cls:"dashboardeditpropertiestab",initComponent:function(){...
import CardType from "./CardType.js"; QUnit.module("CardType"); QUnit.test("CardType properties Pilot", function(assert) { const cardTypeKey = CardType.PILOT; const properties = CardType.properties[cardTypeKey]; assert.equal(properties.name, "Pilot"); assert.equal(properties.key, cardTypeKey); }); QUnit....
'use strict'; const { Collection: BaseCollection } = require('@discordjs/collection'); const Util = require('./Util'); class Collection extends BaseCollection { toJSON() { return this.map(e => (typeof e?.toJSON === 'function' ? e.toJSON() : Util.flatten(e))); } } module.exports = Collection; /** * @externa...
//////////////////////////////// //Setup// //////////////////////////////// // Plugins var gulp = require('gulp'), pjson = require('./package.json'), gutil = require('gulp-util'), sass = require('gulp-sass'), autoprefixer = require('gulp-autoprefixer'), postcss = require('gulp-po...
const express = require('express'); let router = express.Router(); router.get('/', (req, res) => { res.send('hello from api'); }); module.exports = router;
var Lab = require('lab'), lab = exports.lab = Lab.script(), describe = lab.experiment, before = lab.before, after = lab.after, it = lab.test, expect = Lab.expect; var server, source, cookieCrumb, forms = require('../fixtures/signupForms'); // prepare the server before(function (done) { s...
"use strict"; let constraintObj = { audio: true, video: { facingMode: ["user", "environment"], width: { min: 240, ideal: 310, max: 640 }, height: { min: 120, ideal: 180, max: 480 }, }, }; let allDevices = []; // let constraintObj = { // audio: true, // video: { // facingMode: "user", // w...
import { receiveWebhook, registerWebhook } from '@shopify/koa-shopify-webhooks'; import { ApiVersion } from '@shopify/shopify-api'; import verifyWebhook from '../services/middleware/verifyWebhook'; const webhook = receiveWebhook({ secret: process.env.SHOPIFY_API_SECRET }); import Router from '@koa/router'; import Sessi...
import { GET_RESTAURANTS, GET_RESTAURANT, RESTAURANT_ERROR } from '../actions/types' const initialState = { restaurant: null, restaurants: [], loading: true, error: null } export const restaurant = (state = initialState, action) => { const { type, payload } = action switch (type) { case GET_RESTAURANTS: ...
const DetailsModel = require("../models/DetailsModel.js"); exports.getDetailsContent = getDetailsContent = async (req, res) => { try { const Details = await DetailsModel.find({ detailsId: 1234 }); res.status(200).json(Details); } catch (error) { res.status(404).json({ message: error.message }); } };...
'use strict'; const _ = require('lodash'); const path = require('path'); const fs = require('fs'); const is = require('electron-is'); const { exec } = require('child_process'); const Controller = require('ee-core').Controller; const Utils = require('ee-core').Utils; const electronApp = require('electron').app; const {...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
import React, { Component } from "react"; import RentalCard from "./RentalCard"; import { deleteRental } from "../../../actions/rentalAction"; import { toast } from "react-toastify"; import { getUserRentals } from "../../../actions/rentalAction"; import Spinner from "../../../components/commonFeilds/Spinner"; import Er...
var socket = io('/'+session.name+'-'+session.id); socket.emit('teacher'); socket.on('clientoffline', studentOffline); socket.on('studentOnline', studentOnline); socket.on('statusUpdate', studentStatus); socket.on('updateError', function(text){ showError(text,1); }); $(document).ready(function(){ setup();...
module.exports = { siteMetadata: { title: `Gatsby Starter Infinite Scroll`, description: `Need infinite scroll or pagination in your Gatsby project? This starter is for you.`, author: `baobabKoodaa`, }, plugins: [ { resolve: `gatsby-plugin-typescript`, options: { isTSX: true, /...
const tape = require('tape'); const express = require('express'); const request = require('request-promise'); const proxyquire = require('proxyquire'); tape('error conditions', test => { test.test('GITHUB_ACCESS_TOKEN missing from environment should respond with error', t => { t.plan(3); // remove GITHUB_AC...
const Joi = require('@hapi/joi'); const ElasticsearchQuery = require('./elasticsearchquery'); module.exports = ElasticsearchQuery.append({ scroll: Joi.string(), });
/* */ "format cjs"; "use strict"; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _lineNumbers = require("line-numbers"); var _lineNumbers2 = _interopRequireDefault(_lineNumbers); var _repeating = require("repeating"); var _repeatin...
'use strict' const chalk = require('chalk') const electron = require('electron') const path = require('path') const { say } = require('cfonts') const { spawn } = require('child_process') const webpack = require('webpack') const WebpackDevServer = require('webpack-dev-server') const webpackHotMiddleware = requir...
(function() { jQuery.sap.declare("com.mitsuruog.openui5.odata.Component"); sap.ui.core.UIComponent.extend("com.mitsuruog.openui5.odata.Component", { metadata: { routing: { config: { viewType: "JS", viewPath: "view", targetControl: "appConteiner", clearTarge...
/** * @author Peter Nitsch */ TERM.Font = function() { this.width = 8; this.height = 16; this.lineHeight = 23; };
var players_view_template = /*template*/` <v-layout column> <AddPlayerDialog :visible="showAddPlayerDialog" :key="showAddPlayerDialog" @close="showAddPlayerDialog=false" ></AddPlayerDialog> <v-toolbar flat dense tile> <v-spacer></v-spacer> <v-btn fab small color="indigo" @click="addSele...
const pmx = require('pmx') module.exports = function refreshVersion(metrics, sql) { sql` SELECT version() ` .then(([x]) => { const match = x.version.match(/^PostgreSQL ([\d.]+)/) match && metrics.version.set(match[1]) }) .catch(err => pmx.notify('Version Query Error: ' + err)) }
/* * Copyright 2016-2017 ZTE, Inc. and others. * * 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 la...
var searchData= [ ['canseeplayer_38',['canSeePlayer',['../class_guard_sight.html#a60505aacf8b6b618e9380e6decffea4d',1,'GuardSight']]], ['canseeplayer_39',['CanSeePlayer',['../class_guard_sight.html#a9dd83be3e2e904f40d049c67a0c08d17',1,'GuardSight']]], ['canvas_40',['canvas',['../class_gui_node_link.html#a687edbe0...
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('uecrApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controlle...
/* Registration form using ajax */ require('../app'); require('../../assets/css/password-update.css'); const qs = require('qs'); const commons = require('../commons'); const config = require('../config'); let segmentElement, formElement, submitElement, checkBoxElement, passwordElement, passwo...
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { var Controller = { index: function () { // 初始化表格参数配置 Table.api.init({ extend: { index_url: 'tra_cash/index' + location.search, ...
module.exports = { siteMetadata: { title: `GitCard`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-react-helmet`, { ...
const config = require("config"); const mapper = listing => { const baseUrl = config.get("assetsBaseUrl"); const mapImage = image => ({ url: `${baseUrl}${image.fileName}_full.jpg`, thumbnailUrl: `${baseUrl}${image.fileName}_thumb.jpg` }); return { ...listing, images: listing.images.map(mapImag...
import React, { useEffect, useState } from "react"; import { useHistory } from "react-router-dom"; import Helmet from "react-helmet"; import { Card, Elevation, Button, AnchorButton, NonIdealState, ButtonGroup, NumericInput, Code, Classes, Dialog, FormGroup, Spinner, } from "@blueprintjs/core"; import { Pop...
var gulp = require('gulp'); var concat = require('gulp-concat'); var templateCache = require('gulp-angular-templatecache'); var less = require('gulp-less'); var uglify = require('gulp-uglify'); var ngAnnotate = require('gulp-ng-annotate'); var rename = require("gulp-rename"); var wrap = require("gulp-wrap"); var del = ...
import { memo } from 'react' import PropTypes from 'prop-types' export const PageLoader = memo(({ loading, className }) => { return loading ? ( <div id="page-loader" role="alert" aria-busy="true" className={className}> <div className="bar"> <div className="progress"> <div classNam...
describe('ClassRegistry', function() { beforeEach(function() { ClassRegistry.storage = {}; }); describe('#exists', function() { it('should return false for non-existing classes', function() { expect(ClassRegistry.exists('Foo.Bar')).toBeFalsy(); }); it('should return true for existing class...
// @flow import type { Menu, ItemType, ItemID, CategoryID } from "./ItemTypes"; import { newItemID, newCategoryID } from "./ItemTypes"; export function setCount(id: ItemID, count: ?number, menu: Menu): Menu { const newCounts = { ...menu.counts, [String(id)]: count }; return { ...menu, counts: newCounts }; } exp...
import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import rootReducer from './reducers' const store = createStore(rootReducer, applyMiddleware(thunk)) export default store
import React from 'react' import Layout from '../components/Layout' import FormattedMarkdownMessage from '../components/FormattedMarkdownMessage' import humanize from 'humanize' import formatSpeed from '../components/formatSpeed' import { Line as LineProgress } from 'rc-progress' import OONIHorizontalMonochromeInver...
'use strict'; const Code = require('code'); const Lab = require('lab'); const lab = exports.lab = Lab.script(); const beforeEach = lab.beforeEach; const describe = lab.experiment; const expect = Code.expect; const it = lab.it; const buildRenderer = require('../spec-helpers').buildRenderer; function renderString(rend...
(function(e){"use strict";var t={Online:"online",Offline:"offline",Connecting:"connect"};var n={Server:"server",Client:"client",Online:"online",Status:"status",Revision:"revision"};var i={NORMAL_CLOSURE:1e3,SERVER_DIE:1001,CONFIG_REPLACED:3e3,CHANNEL_EXPIRED:3001,SERVER_RESTARTED:3002,CONFIG_EXPIRED:3003,MANUAL:3004};v...
/* GAME RULES: - The game has 2 players, playing in rounds - In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score - BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn - The player can choose to 'Hold', which mean...
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ OpenLayers.Format.GML||(OpenLayers.Format.GML={}),OpenLayers.Format...
import Vue from "vue"; import "./firebase"; import App from "./app.vue"; window.eventHub = new Vue(); new Vue({ el: "#app", render: h => h(App) });
module.exports = { siteMetadata: { title: `Albven.com`, description: `The team of professionals at Albatross Ventures provide a wide range of consulting services for all your digital needs. `, author: `@mariolafuente`, siteUrl: "https://www.Albven.com/", }, plugins: [ { resolve: `gatsby...
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'edf-utils' const mockData = fetch.mockData fetch.mock('/v1/edf/columnDetail/update', (option) => { const v = mockData.columnDetail.update(o => o.id == option.id) v.code = option.code v.name = option.name ...
import React from 'react'; const Single = (props) => { return ( <li className="col s4"> <div className="card teal darken-1"> <div className="card-content white-text"> <span className="card-title">{props.note.title}</span> <p>{props.note.details}</p> </div> <div c...
import transformer from '../path/wildcardTransformer.js'; import creator from '../path/creator.js'; import pageResolver from './pageResolver.js'; const resolveRoute = ([name, option]) => ({ path: creator(transformer(option.url), option.action), component: pageResolver(option.action), exact: true, strict: false...
/** * Theme: Metrica - Responsive Bootstrap 4 Admin Dashboard * Author: Mannatthemes * Knob Js */ $(function($) { $(".knob").knob({ change : function (value) { //console.log("change : " + value); }, release : function (value) { //console.log(this.$.attr('value')); ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{415:function(e,s,t){"use strict";t.r(s);var a=t(45),v=Object(a.a)({},(function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h3",{attrs:{id:"注意事项"}},[t("a",{staticClass:"header-ancho...
import React from "react" import Profile from "../Profile" import * as Style from "./styled" import SocialLinks from "../SocialLinks" import MenuLinks from "../MenuLinks" function Sidebar() { return ( <Style.SidebarWrapper> <Profile /> <SocialLinks /> <MenuLinks /> </Style.SidebarWrapper> ...
import * as tslib_1 from "tslib"; import { Output, EventEmitter, Input } from '@angular/core'; import { Column } from '../../lib/data-set/column'; import { DataSource } from '../../lib/data-source/data-source'; var FilterDefault = /** @class */ (function () { function FilterDefault() { this.inputClass = '';...
webpackJsonp([7],{"/TYz":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("ZJVI"),u=t("VU/8")(l.a,null,!1,null,null,null);u.options.__file="pages/index.vue",n.default=u.exports},ZJVI:function(e,n,t){"use strict";n.a={fetch:function(e){e.params;(0,e.redirect)(301,"/blog")}}}});
export default { mainColor: "#000000" }
import axios from 'axios'; import { SERVER_URL, API_SECRET } from '../config'; import { CONTACTS_GET_CONTACTS, CONTACTS_DELETE_CONTACT, CONTACTS_RES } from './types'; import { getPrefixUrl } from '../helpers/pages'; const prefixUrl = getPrefixUrl(SERVER_URL, API_SECRET); export const getContacts = (callback) => asyn...
/* JavaScript 6th Edition Chapter 12 Hands-on Project 12-1 Author: Julen D. Cosme Date: 23 April 2016 Filename: script.js */ function display(event) { $(event.currentTarget).next().fadeIn("slow"); } // create event listeners for h3 elements that call display() function when clicked $("h3"...
import express from 'express'; import passport from 'passport'; import {login, register} from '../controllers/auth'; const requireAuth = passport.authenticate('jwt', {session: false}); const requireLogin = passport.authenticate('local', {session: false}); const routes = (router) => { router.route('/login') .po...
(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{584:function(s,t,a){"use strict";a.r(t);var r=a(3),e=Object(r.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("div",{staticClass:"language-js line-numbers-mode"},[a("pre...
module.exports = (router, passport, authRouteMethod) => { //application type has to be urlencoded router.post('/register', authRouteMethod.registerUser) //still need to add the function that handles password matching router.post('/login', passport.authenticate( 'local',{ failureRe...
Object.defineProperty(window, '_fs_namespace', { writable: true, value: 'FS' }); // define an ES5 class similar to the recording snippet const FS = () => { }; FS.event = jest.fn(); FS.identify = jest.fn(); FS.log = jest.fn(); FS.restart = jest.fn(); FS.setVars = jest.fn(); FS.setUserVars = jest.fn(); FS.shutdown =...
export default class TID1500MeasurementReport { constructor(TID1501MeasurementGroups) { this.TID1501MeasurementGroups = TID1501MeasurementGroups; } validate() {} contentItem(derivationSourceDataset, options = {}) { // Add the Measurement Groups to the Measurement Report let Con...
import React, { Component } from 'react'; import { Container, Panel } from '@sencha/ext-react-modern'; import colors from '../../colors'; export default class CenterLayoutExample extends Component { render() { return ( <Container layout="vbox" padding={10}> <Panel shadow ui="in...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=weatherResultsViewModel.js.map
/** * Widget Body Directive */ angular .module('teamform') .directive('rdWidgetBody', rdWidgetBody); function rdWidgetBody() { var directive = { requires: '^rdWidget', scope: { loading: '@?', classes: '@?' }, transclude: true, template: '<d...
var structimmer_1_1detail_1_1gc__atom__impl = [ [ "box_type", "structimmer_1_1detail_1_1gc__atom__impl.html#a9932752e4dfc30e5783e61edf7fd9566", null ], [ "memory_policy", "structimmer_1_1detail_1_1gc__atom__impl.html#aa0e0ea9b25dd462a9b659d389ae9d637", null ], [ "value_type", "structimmer_1_1detail_1_1gc__a...
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(A){var a,e=navigator.userAgent,R=/iphone/i.test(e),S=/chrome/i.test(e),T=/android/i.test(e);A.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawM...
window.addEventListener("load", function () { addAging(); }); function addAging() { var cards = document.querySelectorAll(".list-card, .ui-droppable"); for (index = 0; index < cards.length; index++) { (function (index) { var agingElements = cards[index].getElementsByClassName("trello-card-aging"); ...
// Get {x, y} positions from event. export function getControlPosition(e) { return offsetXYFromParentOf(e); } // Get from offsetParent export function offsetXYFromParentOf(evt) { const offsetParent = evt.target.offsetParent || document.body; const offsetParentRect = evt.offsetParent === document.body ? {l...
export { default as Head } from './head'; export { default as Layout } from './layout'; export { default as Loader } from './loader'; export { default as Nav } from './nav'; export { default as Menu } from './menu'; export { default as Side } from './side'; export { default as Social } from './social'; export { default...
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undef...
/** * Openmoney API * Openmoney API * * OpenAPI spec version: 2.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
import React from "react"; import {Link} from "react-router-dom"; import Page from "../Page"; import Icon from "../Icon"; import Select from "../Select"; import "./Home.css"; class Connection extends React.Component { constructor(props) { super(props); this.handleDelete = this.handleDelete.bind(thi...
(function framework7ComponentLoader(r,s){void 0===s&&(s=!0);document,window;var e=r.$,t=(r.Template7,r.utils),n=(r.device,r.support,r.Class,r.Modal,r.ConstructorMethods,r.ModalMethods,{set:function(){for(var r,s=[],t=arguments.length;t--;)s[t]=arguments[t];var n=this,a=s[0],o=s[1],i=s[2];if("number"==typeof s[0]&&(o=(r...
import BookForm from './BookForm' import React, {useState} from 'react' import MediaCard from '../ItemCard/ItemCard'; function NewManualBook(book) { const [books,setBooks] = useState(book); console.log(books); const addToCollection = (book) => { setBooks(prevBook => { console....
const inquirer = require('inquirer'); const AWS = require('aws-sdk'); const { AWS_PROFILE, AWS_REGION } = require('./config'); const currentCloudBackendConfig = require('../amplify/#current-cloud-backend/amplify-meta.json'); const credentials = new AWS.SharedIniFileCredentials({ profile: AWS_PROFILE }); AWS.config.cr...
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import PropTypes from 'prop-types'; export const Children = PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf([PropTypes.node])]); export const Style = PropTypes.oneOfType([ PropTypes.object, // i...
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' const IndexPage = ({data}) => ( <div> <Layout> <h1>Hi people</h1> <p>Jorge</p> <p>Now go build something great.</p> <Link to="/page-2/">Go to page 2</Link> </Layout> <div> {data.allMarkdownRe...
// Copyright (c) 2022 Alexandru Catrina <alex@codeissues.net> // // 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, cop...
import Ember from 'ember'; import config from './config/environment'; var Router = Ember.Router.extend({ location: config.locationType }); Router.map(function() { this.route('routeparam', {path: 'routeparam/:page'}); this.route('routequery'); }); export default Router;
import React from 'react'; import { TextInput, StyleSheet } from 'react-native'; import './font'; import { font } from './style'; const styles = StyleSheet.create({ input: { fontFamily: 'Inter Regular', fontSize: font.sizeM, lineHeight: font.lineHeightM + 3, height: font.lineHeightM + 2 * 12, fle...
import React from "react"; import { shallow, mount } from "enzyme"; import DynamicOverflow from "./"; const defaultProps = { list: ({ tabRef }) => { return [ <span key={0} ref={() => { tabRef({ clientWidth: 100 }); }} > First tab </span>, <span ke...
export function broken() { console.log('broken'); }