text
stringlengths
7
3.69M
(function () { 'use strict'; angular.module('bookBrowserApp', []) .service('bookService', function ($http) { return { getImages: function () { return $http.get("/data/books.json", { responseType: 'json' }); } } }) ...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { Field } from '.'; storiesOf('Field', module) .add('Default', () => ( <Field id={'name'} label={'Your name'}/> )) .add('As tag "textarea"', () => ( <Field id={'name'} label={'Your name'} tag={'textarea'}/> )) .add('Inva...
const jwt = require("jsonwebtoken"); const _ = require("lodash"); const jwt_decode = require("jwt-decode"); const createTokens = async (user, secret) => { const createToken = jwt.sign( { user: _.pick(user, ["id", "username"]), }, secret, { expiresIn: "7d", } ); return createToken...
//LOADER window.addEventListener("load", function () { const loader = document.querySelector(".loader"); loader.className += " hidden"; // class "loader hidden" console.log('pagina cargada!'); }); /* function toggleSidebar(){ document.getElementById('sidebar').classList.toggle('active'); document.getElem...
export default{ deepClone (obj) { let str = JSON.stringify(obj) return JSON.parse(str) }, /** * 加法运算,避免数据相加小数点后产生多位数和计算精度损失。 * * @param num1加数1 | num2加数2 */ add (num1, num2) { let baseNum, baseNum1, baseNum2 try { baseNum1 = num1.toString().split('.')[1].length } catch (e) {...
; (function() { "use strict"; var _extends = Object.assign || function(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { ...
var express = require('express'); var app = express(); require('./build.js').execute({ 'strong': 'src/standard/strong', 'entity': 'src/core/entity', 'component': 'src/core/component' }).then( function (rjs) { var strong = rjs('strong'); var entity = rjs('entity'); var c...
import { PASSWORDRESETCONFIRM_ERROR_MESSAGE } from "../../../constants"; export const passwordResetConfirm = jest .fn() .mockImplementationOnce(() => Promise.resolve()) .mockImplementationOnce(() => Promise.resolve()) .mockImplementationOnce(() => { throw new Error(PASSWORDRESETCONFIRM_ERROR_MESSAGE); })...
/*------------------VARIABLES GLOBALES-----------------------*/ var url_diario="elcomercio.pe"; var contenido_html=document.getElementById("feeddiv");//Aqui estaran las noticias var salida_html="";//se escribira en formato html var limite=5;//Numero de noticias a mostrar //DATOS PARA VISUALIZAR LA NOTICIA var find_link...
import React, { Component } from 'react'; import Signup from '../Signup'; import './products.css'; class Products extends Component { state = { products: [] }; // displays mysql data componentDidMount() { this.getProducts(); } getProducts = () => { console.log("getti...
var listItems = document.querySelectorAll('li'); var dataList = ['apple', 'banana', 'cat', 'dog']; listItems.forEach(function (item, index) { item.textContent = dataList[index]; });
editFunction = function (row, store) { var type; //配送區域 var logisticsAreaStore = Ext.create('Ext.data.Store', { autoLoad: false, model: 'gigade.logisticsName1', proxy: { type: 'ajax', url: '/Logistics/GetLogisticsArea', actionMethods: 'post', ...
import React from 'react'; import './Logotipo.css'; import {Box} from "@material-ui/core"; const Logotipo = (config) => { return( <div> <img src={'imagenes/recortado_DEJAVU.png'} className={'Logo'} /> <Box component={"span"} className={'Logo'}> {config.systemName} ...
var fuse = require('fusejs'); EtudeFS = function () {}; EtudeFS.prototype = Object.create(fuse.FileSystem.prototype); module.exports = function (mountPath) { return fuse.fuse.mount({ filesystem: EtudeFS, options: ["EtudeFS", mountPath] }); }
import React, {Component} from 'react'; import {Helmet} from "react-helmet"; import {connect} from 'react-redux'; import {requestEcoturismos} from '../../../actions/ecoturismo'; import EcoturismoHeader from "./header"; import ServicosItems from '../../servicos-items'; import BadRequestError from '../../errors/404'; imp...
/** * Created by Jay on 2016/12/5. */ function rootRender() { var now = new Date(); if (window.$topLeftTime) { var str = convertTimeToDate(now.getTime(), true, "en"); var ms = now.getMilliseconds(); if (ms < 10) ms = "00" + ms; else if (ms < 100) ms = "0" + ms; str += ...
const btn = document.querySelector("#submit-btn"); const input = document.querySelector("#file"); const form = document.querySelector("#form"); const output = document.querySelector("#output"); const message = document.querySelector("#message"); const fileBtn = document.querySelector(".file-btn") const fileRe...
const total = function sumMiles(miles){ let success = "hello runners!"; console.log(success); };
import Vec2 from '../math/vec2'; import Spring from './spring'; /** * An object representation of the Spring class for easy conversion to JSON. * * @typedef {object} StickAsObject * @property {number} length The length of the stick * @property {number} springConstant Always 0 for sticks * @property {boolean | {x...
const {Router} = require("express") const Course = require('../models/course') const { route } = require("./courses") const router = Router() function mapCartItems(cart) { //console.log(cart) return cart.items.map(c=>({ ...c.courseId._doc, id: c.courseId.id, count : c.count })) } funct...
/** * @author v.lugovsky * created on 16.12.2015 */ (function () { 'use strict'; angular.module('BlurAdmin.pages.app.setting', [ 'BlurAdmin.pages.app.setting.language', 'BlurAdmin.pages.app.setting.user', 'BlurAdmin.pages.app.setting.supplier', ]) .config(routeConfig); /** @ngIn...
const { workspace, Uri, languages } = require('vscode'); const path = require('path'); const { createFile, unlink } = require('fs-extra'); const { FIXTURES_PATH } = require('../utils'); suite('Error handling', function () { test('Validator should bubble PHPCS execution errors', async function () { const filePath...
import { combineReducers } from 'redux'; import postList from './reducer_postList'; import postArticle from './reducer_postArticle'; export default combineReducers({ postList, postArticle, });
import React from "react"; class App extends React.Component{ state={ tasks:["make coffee","make notes","go for a jog"], currInput:"", } render = () =>{ return ( <div> <input type="text" onChange={(e)=>{ this.setState({currInput:e.currentTarget.value}); }} onKe...
// The player character HasPosition = { init: function (x0, y0) { this.x = x0 this.y = y0 }, draw: function () { context.translate(this.x, this.y) }, } FacesDirection = { init: function() { this.facingright = true }, } LooksAhead = { lookingat: function() { ...
import React, { Component } from "react"; import { Route, Router } from "react-router-dom"; import "./css/App.css"; import Search from "./Search"; import Results from "./Results"; import history from "./history"; class App extends Component { constructor(props) { super(props); this.state = { weath...
define(['app/svg-canvas', 'app/utils'], function(SVGCanvas, Utils) { Painter = {}; Painter.drawCircle = function(svg, cx, cy, r, style) { var node = document.createElementNS('http://www.w3.org/2000/svg', 'circle'); node.setAttribute('cx', cx); node.setAttribute('cy', cy); node.se...
/* wrapper for tweenlite */ define('tween', [], function () { return TweenLite; });
var passport = require('passport'); /** * Expose the "Authentication" Controller. */ module.exports = new AuthenticationController; /** * Constructor for the AuthenticationController. * @constructor */ function AuthenticationController() {} /** * Makes a request to Google for authentication with the OAuth ...
import Axios from 'axios'; import {useSelector, useDispatch} from 'react-redux'; export function TransaksiProduct(user, total) { const dispatch = useDispatch(); var data = user; var sukses = false data.point = user.point - total if(total >= user.point) { sukses = false ...
/** * Created by uzysjung on 15. 7. 9.. */ 'use strict'; const ApiController = require('../controllers/api'); const ApiValidate = require('../validations/api'); const middleware = require('../middleware/userInfo'); module.exports = function () { return [ { method: 'GET', path: '/...
export const setTossups = (tossups) => ({ type: 'SET_TOSSUPS', tossups }); export const toggleLoading = () => ({ type: 'TOGGLE_LOADING' });
export { Provider } from './Provider' export { reducers } from './reducer' export { default as useGetter } from './useGetter' export { default as useDispatch } from './useDispatch' export { default as connect } from './connect' export { default as getStore } from './store' export { subscribe } from './subscriber'
/****************************************************************************** * * PROJECT: Flynax Classifieds Software * VERSION: 4.1.0 * LISENSE: FL43K5653W2I - http://www.flynax.com/license-agreement.html * PRODUCT: Real Estate Classifieds * DOMAIN: avisos.com.bo * FILE: JQUERY.GEO_AUTOCOMPL...
// import React from "react"; // import { AppContext } from "../App/App"; // export const AppContextHOC = (Component) => // class extends React.Component { // render() { // return ( // <AppContext.Consumer> // {(context) => <Component {...this.props} {...context} />} // </AppConte...
import Vuesax from "vuesax"; import "vuesax/dist/vuesax.css"; const opts = { // theme: { // dark: false, // }, // icons: { // iconfont: "md" || "fa", // }, }; export default new Vuesax(opts);
import React from 'react'; import { Text, StyleSheet, Image, View, TouchableOpacity, Animated, Dimensions, ScrollView } from 'react-native' import Products from './products' import Blogs from './blogs' import Shop from './shop' const { width } = Dimensions.get('window'); export defaul...
import React from "react"; function Footer(props) { return ( <footer> <p> <a href={props.href} className="text-primary" target="_blank" rel="noopener noreferrer" > Recipe source </a> </p> <p> <a href="ht...
import React, {useEffect, useMemo} from "react"; import {useAsyncDebounce, useFilters, usePagination, useSortBy, useTable} from "react-table"; import ReactPaginate from "react-paginate"; import Form from "react-bootstrap/Form"; import BTable from "react-bootstrap/Table"; function DefaultColumnFilter({column: { filterV...
; (function setupPrototypes() { Date.prototype.addDays = function(days) { this.setDate(this.getDate() + parseInt(days)); return this; }; Date.prototype.getFormattedDate = function() { var date = this; var year = date.getFullYear(); var month = (1 + date.getMonth())...
import React, { useState } from "react"; import { useHistory } from "react-router-dom"; import { Row, Col, message, notification } from "antd"; import ResetPasswordForm from "../components/password/ResetPasswordForm"; import firebaseService from "../services/FirebaseService"; const confirmPasswordResetNotification = ...
import {SUPPORTED_SITES} from "../supportedSites"; export const supportedLanguages = { data: function() { return { languages: [ { label: 'English (default)', value: 'en', icon: SUPPORTED_SITES.find('ebay-gb').icon }, { label: 'German', value: 'de', icon: SUPPORTE...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("./constants"); var TransformFeedback = /** @class */ (function () { function TransformFeedback() { this._glContext = null; this._glTransformFeedback = null; } TransformFeedback.prototype.f...
import React from 'react'; import Slide from './Slide.jsx'; function SlideComponent() { const scene = 'http://people.eecs.berkeley.edu/~sequin/CS184/IMGS/HierSceneComp.GIF'; return ( <Slide title="Scene Graph Maps Nicely to React Components" index={10}> <div> <img src={scene} alt="Scene graph." /...
import React, { useEffect } from "react"; import { useHttp } from "./http"; function HookUser(props) { const [data, isLoading] = useHttp(`https://jsonplaceholder.typicode.com/users/${props.pickedUser}`); const user = !data ? {} : { username: data.username, }; useEffect(() => { return () => { conso...
$("#gsc-i-id1").keyup(function(){ $("h1").css("background-color", "pink"); }); var myCallback = function() { if (document.readyState == 'complete') { // Document is ready when CSE element is initialized. // Render an element with both search box and search results in div with id 'test'. google.s...
// Create a function that takes a number and finds the factors of it, listing them in descending order in an array. // If the parameter is not an integer or less than 1, return -1. In C# return an empty array. // function factors(x){ // } // The user will enter a number an the program will return an array of facto...
// Language : Italian var lang = { firstVisualization:"Confronto", secondVisualization:"Predizione", thirdVisualization:"Valutazione", fourthVisualization:"Distribuzione", firstControlPanel:"Misurazione degli ID", thirdControlPanel:"Distribuzione dei valori", startTime:"Giorna/ora d'inizio", endTime:"G...
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TextInput, Dimensions, KeyboardAvoidingView, Keyboard, TouchableWithoutFeedback } from 'react-native'; import { SocialIcon, FormLabel, FormInput, FormValidationMessage, Button, Input } from 'react-native-elements'; import { connect } from...
import React from 'react'; import Axios from 'axios'; import { Link } from 'react-router-dom'; import { AuthContext } from '../contexts/AuthContext'; import { withStyles } from '@material-ui/styles'; import { makeStyles } from '@material-ui/core/styles'; import Menu from '@material-ui/core/Menu'; import MenuItem from '...
import React from "react"; export default function Score({ score, setPlayAgain }) { return <div> <p>{score}</p> <button onClick={setPlayAgain}>Jugar de nuevo</button> </div>; }
var theDonald = [{ tweet_score: 4, tweet_favorites: 1274, tweet_date: '2016-02-24T23:14:39.000Z', tweet_retweets: 444, twitter_handle: 'realDonaldTrump' }, { tweet_score: 2, tweet_favorites: 2263, tweet_date: '2016-02-24T23:13:15.000Z', tweet_retweets: 910, twitter_handle: 'realDonaldT...
import "./App.css"; import styled from "styled-components"; import React from "react"; import { MEDIA_QUERY_MD, MEDIA_QUERY_LG } from "../../constants/style"; import PropTypes from "prop-types"; const TodoItemWrapper = styled.div` display: flex; align-items: center; justify-content: space-between; paddin: 8px ...
const { Given, When, Then } = require("cucumber"); import Ship from "../StarTrek/ship"; import { Klingon } from "../StarTrek/Klingon"; import { UserInterface } from "../Untouchables/userInterface"; import { assert } from "chai"; Given("a player ship", function() { this.setShip(new Ship()); }); Given("a weakling Kli...
import React, { Component } from 'react'; import { Container, Row, Col } from 'reactstrap'; import Router from 'next/router'; import Layout from '../../../components/account/accountLayout'; import AccountCard from '../../../components/account/accountCard'; import AccountNav from '../../../components/account/accountNav...
import { ADD_TRANSACTIONS, DELETE_TRANSACTIONS } from "./types"; export const addTransaction = ({ id, pid, title, price, image, quantity }) => ( dispatch ) => { const newTransaction = { id, pid, title, price, image, quantity, }; dispatch({ type: ADD_TRANSACTIONS, payload: newTransaction...
require('dotenv').config(); const pg = require('pg'); const connectionString = process.env.DATABASE_URL || 'postgres://postgres:root@localhost:5432/postgres'; const bcrypt = require('../lib/bCrypt.js'); function openClient(){ const client = new pg.Client({ user: process.env.DATABASE_USER, database: proce...
var RUBROS = { RESTAURANTE: 'Restaurante', COMIDA_RAPIDA: 'ComidaRapida', SUPERMERCADO: 'Supermercado', LIBRERIA: 'Libreria', CINE: 'Cine', BOLICHE: 'Boliche' } function Rubro(nombre){ this.nombre = nombre; }
var NAVTREEINDEX0 = { "annotated.html":[1,0], "block__cluster_8cpp.html":[2,0,0], "block__cluster_8cpp.html#ad0b2f114adc0485735774ad9e860ecba":[2,0,0,0], "block__cluster_8h_source.html":[2,0,1], "classbctree.html":[1,0,1], "classbctree.html#a254904aeb2cfa83f2d1c6adf01c15725":[1,0,1,0], "classbctree.html#a39dc8aa1925e04...
import React, { Component } from 'react'; import { View, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import { Card, Icon, Button, Text, Avatar } from 'react-native-elements'; import propTypes from 'prop-types'; import config from '../../services/config'; const API_ROOT = config.ROOT_URL; ...
nodeIntegration: true, }, }); win.loadFile("shop.html"); win.loadFile("./public/shop.html"); win.once("ready-to-show", () => { win.show(); });
import http from "k6/http"; import { check, sleep } from "k6"; import { Counter, Rate } from "k6/metrics"; /* * Stages (aka ramping) is how you, in code, specify the ramping of VUs. * That is, how many VUs should be active and generating traffic against * the target system at any specific point in time for the dura...
import {browserHistory} from 'react-router'; import Backbone from 'backbone'; import $ from 'jquery'; import config from '../config'; import store from '../store'; export default Backbone.Model.extend({ url: 'https://api.backendless.com/v1/data/Folders', idAttribute: 'objectId', defaults: { folderN...
/** * Controller */ angular.module('ngApp.home').controller('HomeController', function (AppSpinner, $scope, $location, $state, $stateParams, config, $filter, CountryService, CourierService, HomeService, SessionService, $uibModal, $log, toaster, SystemAlertService, DateFormatChange, $anchorScroll) { //start angul...
// pages/shopList/shopList.js Page({ /** * 页面的初始数据 */ data: { shopList:[], shopList1:[], pageIndex: 0, pageSize: 20, catId: 1, hasMore:true }, // 封装请求数据函数 loadmore: function(){ console.log(this.data.catId) wx.request({ url: 'https://locally.uieee.com/categories/' +...
$(function() { var index = 0; var timerid; $(".banner-imgList li").eq(0).show(); var arrBg = ['#435664','#6392a3','#222222','#654a53','#525252']; $('.top-nav').css('background','#435664'); $(".banner-tab li").on("mouseenter",function () { clearInterval(timerid); var i = $(this)....
/** * Promesas, es un objeto que representa la finalizacion exitosa o fracaso * de una funcion o peticion. No se envian callbacks a la funcion * se adjunta a las funciones del objeto. */ const API_URL = 'https://swapi.co/api/' const PEOPLE_URL = 'people/:id' const opts = null function obtenerPersonaje(id) { ...
export const GET_USER = 'GET_USER' export const SET_USER = 'SET_USER' export const RESET_USER = 'RESET_USER' export const GET_GOOGLE_USER = 'GET_GOOGLE_USER' export const IS_LOGIN = 'IS_LOGIN' export const DELETE_USER = 'DELETE_USER' export const SET_ADMIN = 'SET_ADMIN' export const REMOVE_ADMIN = 'REMOVE_ADMIN'...
function threeSumBruteForce(numbers) { var count = 0; var n = numbers.length; for (var i = 0; i < n; i++) { for (var j = i + 1; j < n; j++) { for (var k = j + 1; k < n; k++) { if (numbers[i] + numbers[j] + numbers[k] === 0) { count += 1; ...
let UniComponent = require("./unicomponent.js"); /** * @typedef Shadow * @property {Number} distance The length of the shadow * @property {Number} blur The blur of the shadow */ /** * @typedef ImageParams * @property {Point3D} position The position of the image * @property {Shadow} [shadow] The parameters for...
import React from 'react'; const Default = props => { console.log(props); return ( <section className="container"> <div className="row"> <div className="col-10 mx-auto text-uppercase text-title text-center pt-5"> <h1 className="display-3 font-weight-bold">404</h1> <h2 classNam...
function browserAssistTypeset(identifier, type, tolerance, options) { var ruler = $(identifier).clone().css({ visibility: 'hidden', position: 'absolute', top: '-8000px', width: 'auto', "text-indent": "0px", display: 'inline', left: '-8000px' ...
// next.config.js const withLess = require('@zeit/next-less'); const withCSS = require('@zeit/next-css'); const withImages = require('next-images'); module.exports = withCSS(withLess(withImages())); // module.exports = withCSS( // withLess({ // webpack: ( // config, // { buildId, dev, isServer, defaultLoaders...
import styles from "./businessPanel.module.css" import Image from 'next/image' import { useEffect, useState } from "react" const BusinessPanel=({text,picture}) =>{ const [active,setActive] = useState("1") const [visible,setVisible] = useState(false) const handleClick = (e) => { setActive(e.target.id) } retu...
(function (App) { var missing = [] , expected = { templateDirectory: 'directory of virtual-dom templates' , stateFile: 'observ-struct instance, pre-populated with initial state' , styleFile: 'stylesheet' , socketUrl: 'url for websocket connection to server'}; Object.keys(expected).for...
import React, { Component } from "react"; import { withMusicData } from "../../context/musicDataProvider"; import SearchForm from "./SearchForm"; import axios from "axios"; import Track from "../home/Track"; import { StyledHeading2 } from "../../elements/StyledHeading"; import { StyledSearchList, StyledList } from "../...
const { Launcher } = require('chrome-launcher'); const CDP = require('chrome-remote-interface'); const util = require('util'); const fs = require('fs'); const config = require('config'); const yaml = require('js-yaml'); const argv = require('minimist')(process.argv.slice(2)); const writeFile = util.promisify(fs.writeF...
var fs = require('fs'); pathOfTextFile = "E:/nodejs/ReadCreatePdf/InputFile.txt"; fs.readFile(pathOfTextFile,"utf8",readcallback); function readcallback(err,data){ console.log(data); fs.writeFile("output.pdf",data,"utf8",writecallback); function writecallback(err){ if(err) throw err; console.log("saved successf...
import { storiesOf } from '@storybook/react'; // eslint-disable-line import React from 'react'; import ReactCompareImage from '../src/ReactCompareImage'; const leftImageSrc = '/cat1.jpg'; const rightImageSrc = '/cat2.jpg'; storiesOf('ReactCompareImages', module) .add('200px', () => ( <div style={{ maxWidth: '20...
const composeWithProps = injectedProps => WrappedComponent => props => <WrappedComponent {...injectedProps} {...props} />; export default composeWithProps;
if (!window.popupBridge) { window.popupBridge = { getReturnUrlPrefix: function () { return <%s>; }, open: function(checkoutURL) { var location = window.popupBridge.getReturnUrlPrefix() + '?ppcheckoutURL=' + encodeURIComponent(checkoutURL) + '&checkoutjs=true'; ...
import { StatusBar } from 'expo-status-bar'; import React from 'react'; import SliderTwo from '../../components/SliderTwo'; import TopHome from '../../components/Home/TopHome'; import PersonHomes from '../../components/Home/PersonHomes'; import ListImagesHome from '../../components/Home/ListImageHomes'; import ItemMaps...
const expect = require('expect'); const utils = require('./utils'); it('should add two numbers', () => { const res = utils.add(33, 11); // if (res !== 44) { // throw new Error(`Expected 44, but got ${res}.`); // } expect(res).toBe(44); });
import React from "react"; import MainGreeting from "../res/svg/landing-greet.svg"; import Elephant from "../res/svg/elephant.svg"; import { Link } from "react-router-dom"; const Home = () => { return ( <div className="home-main"> <div className="navbar"> <div className="active-link"> <span className="na...
const {override, fixBabelImports, addLessLoader,addWebpackAlias} = require('customize-cra'); const path=require('path') module.exports = override( fixBabelImports('import', { libraryName: 'antd', libraryDirectory: 'es', style: 'less', }), addLessLoader({ javascriptEnabled: t...
'use strict'; 'es6'; angular.module('main') .controller('AventuraCtrl', function ($log, $scope, $localstorage) { $log.log('Hello from your Controller: AventuraCtrl in module main:. This is your controller:', this); var cartas = $localstorage.getObject('cartasApi'); // $log.log(cartas); $scope.expancoes = Arra...
import React from 'react'; import {Dimensions, StyleSheet, Image} from 'react-native'; import {useSelector} from 'react-redux'; import I18n from '@aaua/i18n'; import { MainCard, CardItem, Header, Autocomplete, } from '@aaua/components/common'; import AutocompleteScreen from '@aaua/components/common/Autocomple...
$(function () { window.$Qmatic.components.modal.autoCloseExtend = new window.$Qmatic.components.modal.autoCloseExtendModalComponent('#auto-close-extend-modal') })
'use strict' /* global describe, it */ const expect = require('chai').expect const buildActions = require('../src/buildActions') const createCustomer = require('./fixtures') describe('#buildActions', function () { const customer = { email: '[email protected]', firstName: 'Mutton', lastName: 'Heart' } ...
import React from 'react'; import styles from './Pile.module.css' const Pile = (props) => { let piledNames = props.usersPile.map(ele => { return <li> {ele.name} </li> }) return ( <div className={styles.pileContainer}> <ul> {piledNames} </ul><input className={styles.namePile} ...
app.controller('products', [ '$scope', '$rootScope', '$http', '$routeParams', function ($scope, $rootScope, $http, $routeParams) { var cat_id = $routeParams.cat_id; var s_id = $routeParams.s_id; $scope.s_name = $routeParams.name; $scope.p_name = $routeParams.p_name; var api = $rootScope.site_url + 'prod...
import React, { useEffect, useState } from 'react'; import './App.css'; import Covidata from './Components/Data' import DataLoading from './Components/DataLoading'; function App() { const ListLoading = DataLoading(Covidata); const [appState, setAppState] = useState({ loading: false, data: null, isClicke...
document.getElementsByClassName("contenido"); // call al boton document.getElementById("sumar").addEventListener("click", function sumar(){ // llamo los id que cree en el html var caja = document.getElementById("cajaNueva"); var nuevoContenido = document.getElementById("contenido"); nuevoContenido.setAttribute(...
const logInWithFirebase = async (email, password) => { const response = await fetch( `https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=${process.env.API_KEY}`, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ ...
import React from 'react' const Herobanner = () => { return ( <div className='heroBannerImage container-fluid'> <div className='row'> <div className='col-sm'> </div> <div className='col-sm heroBannerMessage'> <h1>DINNER TOGETH...
import messageReducer from './messageReducer'; describe('Message Reducer', () => { it('should handle initial state', () => { expect( messageReducer(undefined, {}) ).toEqual([]); }); it('should handle ALL_MESSAGES', () => { const messages = [ { ...
'use strict'; require('mocha'); const assert = require('assert'); const pm = require('..'); describe('options.dot', () => { beforeEach(() => pm.clearCache()); it('should match dotfiles when `options.dot` is true', () => { assert(pm.isMatch('/a/b/.dot', '**/*dot', { dot: true })); assert(pm.isMatch('/a/b/...
import server from '@/utils/request' export function getGoodsList(params) { return server({ url: '/commodity/queryCommodityInfos', method: 'post', params }) }
import React from 'react'; export default function WebtoonWeekday() { return <div>WebtoonWeekdayPage</div> }
export default { "0": 1, "1": "0x7E8f313C56F809188313aa274Fa67EE58c31515d", "2": "0x99b8afd7b266e19990924a8be9099e81054b70c36b20937228a77a5cf75723b8", "3": 18, "4": 32, "5": true, "6": { "_hex": "0x09979c0838e8fc880000" }, "7": 53500, "8": { "_hex": "0x49" }, "9": true, "id": 1, "acc...