text
stringlengths
2
1.04M
var async = require('async'), error = require('./../../error'); module.exports = function(oauth2, client, sCode, redirectUri, pCb) { // Define variables var code, refreshTokenValue, accessTokenValue; async.waterfall([ // Fetch code function(cb) { oauth2...
import React, { useState } from "react"; import { ListItem, Left, Right, Text, Radio, Button, Icon } from 'native-base'; export default function RadioButton({ isChecked, text, onRadioButtonPress }) { return ( <ListItem selected={isChecked} onPress={onRadioButtonPress} > <Left> <Tex...
// This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. import Rails from '@rails/u...
import nc from 'next-connect'; import { isAdmin, isAuth } from '../../../../../utils/auth'; import Product from '../../../../../models/Product'; import db from '../../../../../utils/db'; const handler = nc(); handler.use(isAuth, isAdmin); handler.get(async (req, res) => { await db.connect(); const product = await...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
const assert = require('assert') const getAddress = require('../../../../user/address/get') describe('user / address / get', () => { const context = { meta: { userId: null } } it('should throw an unauthorized error if no user is logged in', async () => { try { await getAddress(context) ...
const webpack = require('webpack'); module.exports = { mode: 'production', module: { rules: [ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ } ] }, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"development"', ...
const CurrencySystem = require("currency-system"); const cs = new CurrencySystem; exports.run = async (client, message, args) => { let user; if (message.mentions.users.first()) { user = message.mentions.users.first(); } else if (args[0]) { user = message.guild.mem...
import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import KeyValueEditor from '../../key-value-editor/editor'; import {trackEvent} from '../../../../common/analytics'; @autobind class FormEditor extends PureComponent { _handleTrackToggle (pair) ...
import React from "react" import { graphql } from "gatsby" import Bio from "../components/bio" import Layout from "../layouts/layout" const EssayTemplate = ({ data, _pageContext, location }) => { const post = data.markdownRemark // const { _previous, _next } = pageContext return ( <Layout location={locatio...
'use strict'; var _ = require('underscore'); var Collection = require('../collection'); var FormDefinition = require('./form-constructor-definition'); module.exports = Collection.extend({ model: FormDefinition, getValidatedAttrs: function() { var validatedAttrs = {}; this.each(function(model) { _....
console.log('load _drum_45_16_FluidR3_GM_sf2_file'); var _drum_45_16_FluidR3_GM_sf2_file={ zones:[ { midi:128 ,loopStart:0 ,loopEnd:0 ,keyRangeLow:45 ,keyRangeHigh:45 ,sampleRate:44100 ,coarseTune:0 ,fineTune:0 ,originalPitch:4500 ,anchor:0.00632653 //'Tom Low(L) } ] };
/** * Author: Liang Gong */ (function() { var http = require('http'); var colors = require('colors'); var content; var url = 'http://localhost:8883/f/../../confidential.txt'; console.log('\t[' + 'directory traversal attack'.green + ']: ' + url); var content = ''; http.get(url, (res) => ...
/*! * Timepicker Component for Twitter Bootstrap * * Copyright 2013 Joris de Wit and bootstrap-timepicker contributors * * Contributors https://github.com/jdewit/bootstrap-timepicker/graphs/contributors * * For the full copyright and license information, please view the LICENSE * file that was distributed with ...
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react'; import { StatusBar, View, TouchableOpacity, Text, StyleSheet, SectionList, Alert, Platform, Image, Dimensions, useWindowDimensions, SafeAreaView, } from 'react-native'; import { BlueHeaderDefaultMain, BlueTransa...
// COPYRIGHT © 2021 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
"use strict"; /* MIT License Copyright (c) 2020 Samuel Carliles, Marcus Hansen, and Promit Roy 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 th...
const connection = require('./db/connection.js'); // class with sql queries for employee, department, role manipulations class DB { constructor(connection) { this.connection = connection; } viewAllEmployees() { return this.connection.query(`SELECT employee.id, employee.first_name, employee...
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; export default class Instruction extends React.Component { constructor(props) { super(props); if(props.read_only){ this.state = { color: 'red', text: 'READONLY' }; }else{ this.state = { c...
import React from 'react'; export default function Disabled2({ size = 24, color = 'currentColor', ...restProps }) { return ( <svg xmlns='http://www.w3.org/2000/svg' className='icon icon-tabler icon-tabler-disabled-2' width={size} height={size} viewBox='0 0 24 24' stroke=...
const { strict: assert } = require('assert') const { pbkdf2Sync: pbkdf2, randomBytes } = require('crypto') const { KEYOBJECT } = require('../help/consts') const base64url = require('../help/base64url') const SALT_LENGTH = 16 const NULL_BUFFER = Buffer.alloc(1, 0) const concatSalt = (alg, p2s) => { return Buffer.co...
'use strict'; $(document).ready(function() { //preloader4 (function(i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m...
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
import Vue from 'vue' import VueI18n from 'vue-i18n' Vue.use(VueI18n); function loadLocaleMessages () { const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i); const messages = {}; locales.keys().forEach(key => { const matched = key.match(/([A-Za-z0-9-_]+)\./i); if (matched && m...
var assert = require('assert'); function assertNode(desc, node, path, childsNb, uses, methods){ describe(desc, function(){ it("path "+path, function(){ assert.strictEqual(node.path, path); }); it(childsNb+" childs", function(){ assert.strictEqual(node.childs.length,childsNb); }); it("has valid uses", ...
import React, {useEffect} from 'react'; import {Styles} from "./styles/backToTop.js"; function BackToTop() { useEffect(() => { const topBtn = document.querySelector(".totop-btn"); window.addEventListener("scroll", () => { if (window.scrollY > 750) { topBtn.classList.add...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Factory class to create a simple autocomplete that will match * from an array of data provided via ajax. * * @see ../../demos/autocompleteremote.html */ goog.provide('goog.ui.ac.Remote'); goo...
import express from 'express' import fs from 'fs' import cors from 'cors' const app = express() app.use(cors()) app.get('/worldpopulation.csv', (req, res) => { res.status(200).send(fs.readFileSync('./src/worldpopulation.csv', 'utf-8')); }) app.get('/worldcountriesdata.json', (req, res) => { res.status(200).send...
exports.up = function(knex, Promise) { return knex.schema.createTable('boards', function(table){ table.increments(); table.string('name').notNullable(); table.string('code').notNullable(); table.string('tagline').notNullable(); table.timestamp('created_at').defaultTo(knex.fn....
const prod1 = {} //Representa um objeto, objetos são coleções de chaves valor prod1.nome = 'Celular Ultra Mega'; prod1.preco = 4998.90; console.log(prod1); const prod2 = { nome: 'Camisa Polo', preco: 79.90 } console.log(prod2);
const fs = require('fs'); const data = require('./results.json') const obj = JSON.parse(JSON.stringify(data)) Object.values(obj) module.exports = obj
import React from 'react'; import { Link } from 'react-router-dom'; function DiscussionsCard({ discussions }) { return ( <div className="card card--dark"> <div className="card__body"> <h5>Discussions</h5> <Link to="/create-discussion">Start a Discussion</Link> <div className="custom...
import React from 'react'; import PropTypes from 'prop-types'; const UilExclamation = (props) => { const { color, size, ...otherProps } = props return React.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: size, height: size, viewBox: '0 0 24 24', fill: color, ...otherProp...
const raw = require('random-access-web') const DiscoverySwarmWeb = require('discovery-swarm-web') const levelup = require('levelup') const leveljs = require('level-js') const storage = { create (path) { return nestStorage(raw('corestore'), path) }, delete (path) { // Todo. } } function swarm (opts) {...
define({ root: ({ _widgetLabel: "Demo", label1: "Wersja demo widżetu", label2: "Element konfigurowalny" }), "ar": 0, "cs": 0, "da": 0, "de": 0, "el": 0, "es": 0, "et": 0, "fi": 0, "fr": 0, "he": 0, "it": 0, "ja": 0, "ko": 0, "lt": 0, "lv": 0, "nb": 0, "nl": 0, "pl": ...
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 11.1.5_7-2-1-s description: > Strict Mode - SyntaxError is thrown when an assignment to a reserved word is contained in strict code flags: [onlyStrict] ---*/ ass...
var assign = require('object-assign'); var coreUI = { registerComponent: function(name, src) { if (coreUI[name]) { throw new Error('Component ' + name + ' already exists in coreUI. Use a different name.'); } coreUI[name] = src; return coreUI; }, unregisterComponent: function(name) { del...
const readline = require('readline').createInterface({ input: process.stdin, output: process.stdout }); function min(a, b) { if (a > b) { return b } return a } readline.question('Enter the n!\n', n => { dp = [1] var index2 = 0, index3 = 0, index5 = 0 var next2 = 2, next3 = 3, next5 = 5 for(var i = 1;...
import {createAction, handleActions} from 'redux-actions'; import {Map, List,fromJS} from 'immutable'; import {pender} from 'redux-pender'; import * as AlarmAPI from '../../lib/api/alarm'; const GET_ALARM = 'alarm/GET_ALARM'; const GET_ALARM_NUM = 'alarm/GET_ALARM_NUM'; const SET_ALL_READ_ALARM = 'alarm/SET_ALL_READ_A...
const router = require('express').Router(); const { Post, User, Comment } = require('../models'); const withAuth = require('../utils/auth'); router.get('/', async (req, res) => { try { // Get all posts and JOIN with user data const postData = await Post.findAll({ include: [ { mo...
const btnAdd = document.querySelector('#btnAdd'); const btnRemove = document.querySelector('#btnRemove'); const sb = document.querySelector('#list'); const namefield = document.querySelector('#name'); const error = document.querySelector('#error'); const chkLanguageneutral = document.querySelector('#chkLanguageneutral'...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
/* eslint import/no-extraneous-dependencies: "off" */ import path from 'path'; import webpack from 'webpack'; import merge from 'webpack-merge'; import commonConfig from './webpack.common'; export default merge(commonConfig, { mode: 'development', plugins: [ new webpack.HotModuleReplacementPlugin(), ], d...
import can from "can"; import template from "./moderation-tabs.stache!"; import "./moderation-tabs.less!"; import "can/route/"; const ICON_MAPPINGS = { pending: 'inbox', approved: 'thumbs-up', starred: 'star', deleted: 'trash' }; export default can.Component.extend({ tag: 'bh-moderation-tabs', template: templ...
import React, { useState, useEffect } from 'react'; import { TableHeads } from './TableHead'; import DisplayBlocks from './DisplayBlocks'; import { getTransactions } from '../../redux/actions/PlaidActions'; import { connect } from 'react-redux'; import '../../index.css'; import './index.css'; import Table from '@mate...
/** * The initial values for the redux state. */ export const INITIAL_STATE = { username: '', password: '', saveUser: '', userDetails: {}, userDetailsError: '', allUsers: null, allUsersError: null, }
const OVERPASS_API = 'https://z.overpass-api.de/api/interpreter?data=[out:json];' const SEARCH_DIST_KM = 0.25 const NUMBER_OF_COMPUTED_PATH = 5 const BICYCLE_PARKING_ICON = L.icon({ iconUrl: '240px-Parking-bicycle-16.svg.png', iconSize: [32, 32], // size of the icon }); const POLYLINE_OPTIONS = { color: 'red', w...
import React from 'react'; import FilterLink from '../containers/FilterLink'; import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE, } from '../constraints/filter'; // Footerの実体は<p>~</p>に囲まれた3種類のフィルタリングリンク export default class extends React.Component { render() { return ( <p> Show: {' '} ...
/* * (c) Copyright IBM Corp. 2021 * (c) Copyright Instana Inc. and contributors 2020 */ 'use strict'; const { findAllMatchingItems, reportFailure } = require('./matchingItems'); const stringifyItems = require('./stringifyItems'); /** * @typedef {import('../../src/tracing/cls').InstanaBaseSpan} InstanaBaseSpan *...
// @noflow import App from 'fusion-core'; export default async function () { return new App('el', (el) => el); }
'use strict'; function convertID2topic(id, pattern, prefix, namespace) { let topic; id = (id || '').toString(); if (pattern && pattern.substring(0, (prefix + namespace).length) === (prefix + namespace)) { topic = prefix + id; } else if (pattern && pattern.substring(0, namespace.length) === name...
// Code for ngEnter obatined from https://gist.github.com/EpokK/5884263 inspireModule.directive('ngEnter', function() { return function(scope, element, attrs) { element.bind("keydown keypress", function(event) { if (event.which === 13) { scope.$apply(function() { ...
// This file was automatically generated from template.soy. // Please don't edit this file by hand. /** * @fileoverview Templates in namespace planepage. */ if (typeof planepage == 'undefined') { var planepage = {}; } planepage.messages = function(opt_data, opt_ignored, opt_ijData) { return '<div style="display...
var should = require('should'), needle = require('./../'), http = require('http'), zlib = require('zlib'), stream = require('stream'), port = 11111, server; describe('compression', function(){ require.bind(null, 'zlib').should.not.throw() var jsonData = '{"foo":"bar"}'; describe(...
const net = require("net"); function zeroFill(val) { return val > 9 ? val : "0" + val; } const server = net.createServer(function(socket) { const d = new Date(); const dateStr = `${d.getFullYear()}-${zeroFill(d.getMonth() + 1)}-${zeroFill( d.getDate() )} ${zeroFill(d.getHours())}:${zeroFill(d.getMinutes()...
/** * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. * ...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import CalendarLocale from '../calendar/is_IS'; import TimePickerLocale from '../time-picker/is_IS'; // Merge into a locale object /** @type {?} */ const locale ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
import React, { Component } from 'react' import styled from 'styled-components' import Copy from '../Copy' import * as icons from '@mozaic-ds/icons/react' const IconDetail = styled.li` flex: 0 1 30.8%; list-style: none; border: 1px solid #eee; box-sizing: border-box; border-radius: 4px; margin: 0.5rem; ` ...
module.exports = { input: 'main.js', output: { format: 'umd', noConflict: true, name: 'conflictyName' } };
const shadows = [ { name: "Google docs", shadow: "0 0 0 0.75pt #d1d1d1, 0 0 3pt 0.75pt #ccc", border: "0" }, { name: "Google Account Login", shadow: "0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)", border: "0" }, { name: "Google Notifica...
"use strict"; /** * A connection handler for Amazon ES. * * Uses the aws-sdk to make signed requests to an Amazon ES endpoint. * * @param client {Client} - The Client that this class belongs to * @param config {Object} - Configuration options * @param [config.protocol=http:] {String} - The HTTP protocol that thi...
const mkdirp = require('mkdirp') const rollup = require('rollup').rollup const vue = require('rollup-plugin-vue') const jsx = require('rollup-plugin-jsx') const buble = require('rollup-plugin-buble') const replace = require('rollup-plugin-replace') const cjs = require('rollup-plugin-commonjs') const node = require('rol...
import SimpleSchema from 'simpl-schema'; import { ValidatedMethod } from 'meteor/mdg:validated-method'; import DocMemSolds from './docMemSolds'; import rateLimit from '../../modules/rate-limit.js'; export const upsertDocMemSold = new ValidatedMethod({ name: 'docMemSolds.upsert', validate: new SimpleSchema({ _i...
const uuidV4 = require("uuid/v4"); const Native = require("./Native"); const EventEmitter = require("events").EventEmitter; class VideoEncoderIncomingStreamTrack { /** * @ignore * @hideconstructor * private constructor */ constructor(id,receiver,source) { //Create new id this.id = id || uuidV4(); //...
import { parse } from 'url'; // mock tableListDataSource let tableListDataSource = []; for (let i = 0; i < 46; i += 1) { tableListDataSource.push({ key: i, disabled: i % 6 === 0, href: 'https://ant.design', avatar: [ 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png', '...
import Vue from 'vue' import Router from 'vue-router' import index from '@/components/index.vue' import register from '@/components/register.vue' import login from '@/components/login.vue' import logout from '@/components/logout.vue' import settlement from '@/components/app-settlement.vue' import order from '@/compone...
// https://nodemailer.com/smtp/ import nodemailer from "nodemailer"; const NODEMAILER_AUTH_USER = process.env.NODEMAILER_AUTH_USER; const NODEMAILER_AUTH_PASS = process.env.NODEMAILER_AUTH_PASS; const MY_EMAIL = "b00502013@gmail.com"; const transporter = nodemailer.createTransport({ host: "smtp.gmail.com", port: ...
import conversationsAPI from '../conversations'; import ApiClient from '../ApiClient'; import describeWithAPIMock from './apiSpecHelper'; describe('#ConversationApi', () => { it('creates correct instance', () => { expect(conversationsAPI).toBeInstanceOf(ApiClient); expect(conversationsAPI).toHaveProperty('ge...
/** * Make Theme Customizer preview reload changes asynchronously for a better user experience. */ (function( $ ) { // Site title and description. wp.customize( 'blogname', function( value ) { value.bind( function( to ) { $( '.site-title' ).text( to ); } ); } ); wp.customize( 'blogdescription', function( ...
/* eslint-disable jsx-a11y/label-has-for */ /* eslint-disable jsx-a11y/label-has-associated-control */ /* eslint-disable react/forbid-prop-types */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { EtherWalletHD, BitcoinWalletHD } from '@exiliontech/walletcs'; import { RadioGroup...
export { default } from './es/icons/AimOutlined';
import React, { useEffect } from 'react'; import PropTypes from 'prop-types'; import './styles.scss'; import { Link } from 'react-router-dom'; // import Spinner from './Spinner'; const OrderPass = ({ /* loading, setLoading, */ passOrder, userId, item, orderError, userType, decreaseCartAmount, clearCart }) => { useEf...
/** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import * as React from "react" import PropTypes from "prop-types" import { useStaticQuery, graphql } from "gatsby" import Header from "./header" import "./layout.css" ...
var path = require('path'), EventEmitter = require('events').EventEmitter; var log = require('minilog')('bundler'), xtend = require('xtend'), waitress = require('waitress'); var cache = require('./cache'), core = require('./node-core'), buildEnv = require('./build-env'), registry = require('./...
/** * Ionicons icon set component. * Usage: <Ionicons name="icon-name" size={20} color="#4F8EF7" /> */ import createIconSet from './lib/create-icon-set'; import glyphMap from './glyphmaps/Ionicons.json'; const iconSet = createIconSet(glyphMap, 'Ionicons', 'Ionicons.ttf'); export default iconSet; export const { ...
/* Copyright (c) 2020 Trashbots - SDG 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, publish, distribute,...
/** * @class Oskari.userinterface.component.UIHelper * Generic UI helper methods */ Oskari.clazz.define('Oskari.userinterface.component.UIHelper', /** * @method create called automatically on construction * @static */ function (sandbox) { this.sandbox = sandbox; }, { /** ...
var active = false; var hover = false; $(document).ready(function() { $('body').not('ul.megamenu').click(function() { $(".sub-menu").hide(); }); $("ul.megamenu li .sub-menu .content .hover-menu ul li").hover(function () { $(this).children("ul").show(); },function () { $(this).children("ul").hide(); }); ...
define({ "_widgetLabel": "Võrgujälitus", "configError": "Vidin ei ole õigesti konfigureeritud.", "geometryServiceURLNotFoundMSG": "Geomeetriateenuse URL-i ei saa tuua", "clearButtonValue": "Tühista", "GPExecutionFailed": "Jälitust ei saa lõpetada. Palun proovige uuesti", "backButtonValue": "Tagasi", "expo...
// 获取token const getToken = () => { const data = sessionStorage.getItem("persist:root"); const { auth } = JSON.parse(data); const { authToken } = JSON.parse(auth); return authToken; }; // 删除 const removeToken = () => { sessionStorage.removeItem("persist:root"); }; // 获取用户名 const getUser = () => { const da...
/** * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* globals document */ import MouseObserver from '../../../src/view/observer/mouseobserver'; import View from '../../../src/view/view'; impo...
import React, { Component } from "react"; import SingleDeck from "./SingleDeck"; class DeckGrid extends Component { state = { decksList: [], savedDecks: [], filteredColors: [], restrictColors: false }; componentDidMount() { const res = global.ipcRenderer.sendSync("get-initialData-DeckGrid", ...
import React from 'react' import PropTypes from 'prop-types' import { useDispatch } from 'react-redux' import { makeStyles } from '@material-ui/core/styles' import { Card, CardContent, CardActions, Button, Typography } from '@material-ui/core' import { removeCourse } from '../../reducers/courseReducer' import { setNoti...
export default { index: function( p, status, awal, akhir ){ return axios.get('/api/jalinanKlaim/status/' + status + '/' + awal + '/' + akhir,{params: p}); }, indexCu: function( p, cu, tp, status, awal, akhir ){ return axios.get('/api/jalinanKlaim/indexCu/' + cu + '/tp/' + tp + '/status/' + status + '...
/** * Copyright 2015 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 ...
var searchData= [ ['saveprivatekey_0',['savePrivateKey',['../classiotex_1_1_storage.html#a08ea194a2b37b6655de2eceade18ef2a',1,'iotex::Storage']]], ['sendexecution_1',['sendExecution',['../classiotex_1_1api_1_1_i_wallets.html#af9467c21aea73cac1cd0806256dc2469',1,'iotex::api::IWallets::sendExecution()'],['../classiot...
import React from 'react'; import { Link } from 'gatsby'; import Layout from '../components/layout'; import Head from '../components/head'; const AboutPage = () => ( <div> <Layout> <Head title="About" /> <h1>About Me</h1> <br /> <p> Hello my name is Christian Collosi. A quick intr...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[41],{ /***/ "./node_modules/@ionic/core/dist/esm/ion-nav_5.entry.js": /*!**************************************************************!*\ !*** ./node_modules/@ionic/core/dist/esm/ion-nav_5.entry.js ***! \***********************************************...
const postcss = require('postcss'); const fs = require('fs'); /* eslint-disable quotes */ module.exports = postcss.plugin('postcss-extract-vars', function (opts) { opts = opts || {}; const outputFile = opts.file; return function (css) { let outputCSS = `:root {`; css.walkRules(function (r...
//The sort() method sorts the elements of an array in place and returns the sorted array. //The default sort order is built upon converting the elements into strings, //then comparing their sequences of UTF-16 code units values. //arr.sort([compareFunction]) <-- Syntax function demo() { let months = ['March', 'J...
const mongoose = require('mongoose'); const nameSchema = mongoose.Schema( { firstName: { type: String, }, lastName: { type: String, }, }, { versionKey: false } ); const avatarSchema = mongoose.Schema( { src: { type: String, }, alt: { type: String, }, ...
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case // - src/dstr-binding/default/cls-expr-gen-meth-dflt.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (class expression method...
import { createElement } from "./domMethods"; // Setting up dummy topics data let topicData = [{ id: 1, name: "Politics" }, { id: 2, name: "Environment" }, { id: 3, name: "Sports" }, { id: 4, name: "Entertainment" } ]; let lastId = 4; // Empty topic container, render topics function renderTopics() { ...
import React, { PureComponent } from "react"; import { TouchableOpacity, Text, Alert } from "react-native"; import styles from "./Styles/SortByLocationButtonStyle"; import Permissions from "react-native-permissions"; export default class SortByLocationButton extends PureComponent { constructor(props) { super(pro...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi...
var HtmlUtil = { /*1.用浏览器内部转换器实现html编码(转义)*/ htmlEncode:function (html){ //1.首先动态创建一个容器标签元素,如DIV var temp = document.createElement ("div"); //2.然后将要转换的字符串设置为这个元素的innerText或者textContent (temp.textContent != undefined ) ? (temp.textContent = html) : (temp.innerText = html); ...
$(document).ready(function(){ var countries = [ {"id": 0, "co":"ru","ph":"+7","na":"Россия"}, {"id": 1, "co":"ua","ph":"+380","na":"Украина"}, ], html = ''; countries.forEach( function(element, index) { html +='<div class="country_row country_' + index + '" data-type="' + index + '"><span class="сount...
import React from 'react' import { PropTypes as p } from 'prop-types' import { FormContainer, FormField } from '../forms' import Badge from '@material-ui/core/Badge' import Grid from '@material-ui/core/Grid' import Stepper from '@material-ui/core/Stepper' import Step from '@material-ui/core/Step' import StepButton from...
import React, { useEffect, useState } from "react"; import { Link } from "react-router-dom"; import { Badge, Button, Card, CardBody, CardHeader, CardTitle, Col, Container, DropdownItem, DropdownMenu, DropdownToggle, Media, Row, UncontrolledDropdown } from "reactstrap"; import { Briefcase...