text
stringlengths
7
3.69M
import NumResolver from "@class/resolver/NumericResolver" export default { template: `<div> <div class="represntative" @click="move_to"> <img :src="item.url"> <div class="sale_rate" v-if="...
import React from 'react'; import Next from './Next'; export const Section2APropos = () => ( <section id="section2" className="section sectionAPropos rel"> <div className="chevron abs haut1 larg1" onClick={Next}> <i className="chevronBas fas fa-chevron-down"></i> </div> <di...
import { default as ContributionHunk } from '../contribution-hunk'; import { default as utils } from '../utils'; import { default as Color } from 'color'; const Snapshot = class { constructor (prevSnapshot = Snapshot.root(), data = null) { if (prevSnapshot === null) { this.prevSnapshot = null;...
(function() { 'use strict'; /** * Create the module and call the requires */ var app = angular.module('ideasmanagement', [ 'ngRoute', 'ngCookies', 'ui.bootstrap' ]); app.filter('searchAllIdeasFor', function(){ return function(arr, searchString){ ...
import { motion } from 'framer-motion' import 'twin.macro' import Dictionary from '../Dictionary' export default function Permutation({ state }) { const { __done: done, __returnValue, windowStart, windowEnd, patternFrequencies, pattern, } = state const isActive = (index) => done && !...
import axios from "axios"; export const signUp = (body) => { return axios.post("/api/1.0/users", body); }; export const signIn = (body) => { return axios.post("/api/1.0/auth", {}, { auth: body }); };
const express = require('express'); const csrf = require('csurf'); const bodyParser = require('body-parser') const app = express(); const cookieParser = require('cookie-parser') const session = require('express-session') app.use(bodyParser.urlencoded({ extended: false })) app.use(cookieParser()); app.use(session({ ...
let button = document.getElementById("button"); button.addEventListener('click', function (e) { e.preventDefault(); let password1 = document.getElementById("password1"); let password2 = document.getElementById("password2"); if (password1.value == password2.value) { password1.style.borderColor = ...
module.exports = function(QuestionType) { };
import { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; export default class TagFilter extends Component { constructor(props) { super(props); this.goHome = this.goHome.bind(this); } initQueryFilter() { const { loadCategories, loadTags } =...
const { Movie } = require('../models') module.exports = { async index(req, res) { try { const movielink = await MovieLink.findOne({ where: { tmdbId : tmdbId } }) res.send(movielink) } catch (err) { ...
const express = require("express"); const router = express.Router(); const auth = require("../../middlewares/auth.js"); // Set Chat Route router.get("/", auth.checkLogin, (req, res) => { res.render("./dashboard/chat", { user: req.session.user, chat: req.session.chat }); }); router.get("/room-enter", auth...
import index from './index'; import newsletter from './newsletter'; import search from './search'; export default { index, newsletter, search, }
var keystone = require('keystone'); var Types = keystone.Field.Types; /** * Banner Model * ============= */ var Banner = new keystone.List('Banner', { autokey: { from: 'name', path: 'key', unique: true }, track: true }); Banner.add({ name: { type: String, required: true, index: true }, publishedDate: { type: ...
import React from "react"; import { EmailIcon, FacebookIcon, LinkedinIcon } from "react-share"; import { withFirebase, storage } from "../Firebase"; //import storage from "../Firebase/firbaseStorage" import { compose } from "recompose"; import { withRouter } from "react-router-dom"; import { AuthUserContext, withAu...
$(function () { $("#tableExcel tr").each(function () { var _this = $(this); // 删除 _this.find(".delpayConfig").click(function () { var id = $(this).attr('data-value'); if (confirm("你确定要把配置,编号为" + id + "删除么?")) { $.ajax({ type: 'PO...
//搜索的初始化,默认初始化一下变量 var url = "http://www.chijiao.org/"; var charset = "gbk"; //var searchTpye = "article"; //实现搜索,触发该方法,跳出搜索结果页面 function getSearchPage(searchTpye, keyword){ switch(searchTpye){ case 'article': url = "ArticleSearch.do?act=search&orderby=pubdate desc&keyword="; charset = "gbk"; b...
//grabs the html div with the id of submit, and adds //a click event listener to it document.getElementById('submit').addEventListener('click', function() { //grabs the value of the input with id num1 var number1 = Number(document.getElementById('num1').value); //grabs the value of the input with id num2 var numbe...
import React from 'react'; import { ScrollView, StyleSheet, View,Image, ImageBackground, AsyncStorage,TouchableOpacity,Alert, SafeAreaView,Linking,Platform,BackHandler } from 'react-native'; import { Container ,Header, StyleProvider,Textarea, Form ,Item,Left,Right,Title,Input, Label,Content,List,CheckBox,Body,ListItem,...
var searchData= [ ['main',['main',['../main_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4',1,'main.cpp']]], ['med',['med',['../class_student.html#a38b3e368f66757d5ab99fea91e579024',1,'Student']]], ['medcalc',['medCalc',['../class_student.html#a3d9abf4e847a325a49ba91e07d6f9594',1,'Student::medCalc()'],['../funk_8h.h...
import Layout from "../../../components/Layout"; import axios from "axios"; import {useEffect, useState} from "react"; import {env} from "../../../next.config"; import Link from "next/link"; import reactHtml from "react-render-html"; import moment from "moment"; import InfiniteScroll from 'react-infinite-scroller'; imp...
var express = require('express'), router = express.Router(), mongoose = require('mongoose'), Team = mongoose.model('Team'); module.exports = function(app) { app.use('/', router); }; router.get('/', function(req, res, next) { res.render('index', { "title": "API SmartBoxTV" }); }); router.get('/api/teams/', fu...
class MovingBlock { position = {x: 0, y: 0, z: 0}; mesh = null; shape = null; type = null; boundingBox = null; scene = null; constructor(scene, boundingBox) { this.boundingBox = boundingBox; this.scene = scene; } rotate = (x, y, z) => { // converting angles ...
import React from 'react'; import Prism from '../Prism'; import LiLink from '../LiLink'; import Droids from '../../../../src'; import { Label } from 'react-bootstrap'; import { IndexLink } from 'react-router'; class ApiDocs extends React.Component { renderHome() { return ( <div> <Prism className="...
import React from 'react'; import JobDetailsForm from '../forms/job-details-form'; const JobDetailsArea = ({item}) => { return ( <> <div className="job-details-info pt-120 pb-100"> <div className="container"> <div className="row"> <div className="col-xl-6 col-lg-6"> ...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const CrittersPlugin = require('critters-webpack-plugin'); const CleanWebpackPlugin = require('clean-webpack-plugin'); module.exports = { entry: { main: '...
appicenter.factory('loginService', ['$firebaseSimpleLogin', function($firebaseSimpleLogin) { var ref = new Firebase('https://appicenter.firebaseio.com/'); return $firebaseSimpleLogin(ref); }]);
import React from 'react'; import {Panel, Image} from 'react-bootstrap'; import PostActions from './PostActions'; import parseDate from '../../helpers/date'; class Post extends React.Component{ render(){ let {post} = this.props; return ( <Panel className="post"> <P...
import { get, post, upload } from "../http"; export async function popular() { return get("/trending"); } export async function top(type) { return get(type === "movie" ? "/top/movies" : "/top/shows"); } export async function history(user_id, type) { return post("/history", { id: user_id, type }); } export asy...
var carrinhos = []; var cervo; var elefante; var frango; var tartaruga; var girafa; var kermit; var ourico; var ovelha; var pinguim; var ursoNatal; var urso; var hipopotamo; function Produto(codigo, nome, preco, peso){ this.codigo = codigo; //this.foto; this.nome = nome; //this.descricao; this.preco = preco; t...
var login = new Vue({ el:'#login-div-id', delimiters: ['[[', ']]'], data: { register1: false, username: '', password: '', errors: false, errortext: '', username1: '', email: '', password1: '', password2: '', }, methods: { close: function(){ this.errors = false; ...
import React from "react"; import Grid from "@material-ui/core/Grid"; import { FormattedMessage } from "react-intl"; import GithubIcon from "../GithubIcon"; import { fileOnGithub } from "../../utils"; import Tray from "../Tray"; import Breadcrumbs from "../Breadcrumbs"; import TocIcon from "@material-ui/icons/Bookmark"...
import { csvParseRows, csvParse } from 'd3-dsv'; import { timeParse } from 'd3-time-format'; import { stack } from 'd3-shape'; import { range } from 'd3-array'; import { getUniqueDateValues } from './utils'; /** * Data parsing module. Takes a CSV and turns it into an Object, and optionally determines the formatting t...
function register(env) { env.addFilter("root", handler); } function handler(input) { return Math.sqrt(input); } export { handler, register as default };
(function (document) { if (document.getElementById('yummlyYumletConfirmClose')) { return false; } var siteTitle = document.title, siteProtocol = document.location.protocol, yDiv = document.createElement('div'), yIFrame = document.createElement('iframe'), body = document.getElementsByTagNam...
import ShortcutIconRow from './ShortcutIconRow'; export default ShortcutIconRow;
// CURRENTLY NOT IN USE const Message = require('../message'); const message = new Message(); message .setup() .then(() => { console.log('Database setup complete.'); }) .catch(err => { console.log('Database setup error: ', err); });
let Temp = require('./Temp.vue') module.exports = Temp
import { shallowMount } from "@vue/test-utils"; import Project from "@/components/Project.vue"; describe("Project", () => { describe("project image", () => { it("renders the project image", () => { const wrapper = shallowMount(Project); expect(wrapper.find(".project__image img").exists()).toBe(true);...
"use strict"; var async = require('async'); var Rate = require('../database/rate'); var utils = require('../utils'); var rateController = module.exports; rateController.get = function (req, res, next) { Rate.findById(req.params.uuid, function (err, rate) { if (err) return next(err); return res....
import React from 'react'; import { Grid, Paper, Typography } from '@material-ui/core' import weatherImg from '../images/weatherImage.jpg' import WeatherList from './WeatherList'; import FavoriteItem from './FavoriteItem'; import { useSelector, useDispatch } from 'react-redux' const Favorites = () => { const _favo...
import React,{Component} from 'react'; import {connect} from 'react-redux' import {fetchList} from '../actions' import { Pagination, PaginationItem, PaginationLink , Breadcrumb , BreadcrumbItem} from 'reactstrap'; import { NavLink } from 'react-router-dom' var PAGE=1; const mapStateToProps = (state)=>{ return { ...
const Colors = { primary: '#F6F6FC', secondary: '#FFFFFF', accent: '#6F16E3', danger: '#bb2124', sucess: '#22bb33', warning: '#f0ad4e', inActive: '#cdd0cb', dark: '#433d3c' } export default Colors;
$(function() { // 显示语言切换 $(".language-box > button").bind("click", function() { if($(".dropdown-menu").is(":hidden")){ $(".dropdown-menu").show(); }else { $(".dropdown-menu").hide(); } }); // 手机端下显示头部信息 $(".open-header").bind("click", function() { $("#pc-navigation").addClass("show-header"); $("...
import styled from 'styled-components' const Input = styled.input` color: green; font-size: 20px; font-weight: bold; `; export default Input;
import http from 'http'; var rp = require('request-promise'); var request = require("request"); const MongoClient = require('mongodb').MongoClient; const dbUrl = 'mongodb://egursoy:Forever9@ds129030.mlab.com:29030/webscraper' // const dbUrl = 'mongodb://localhost:27017/local'; var db; export default function stocks(re...
import propTypes from 'prop-types'; import NavItem from './NavItem.js'; import logo from'../tamaiti_logo.png'; function NavBar(props) { return ( <ul className="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar"> <a className="sidebar-brand d-flex alig...
var counter = 0; $(".row1").click(function() { if(counter % 2 === 0){ $( this ).append( "<img src='https://cdn0.iconfinder.com/data/icons/basic-ui-elements-plain/385/010_x-512.png' alt='Smiley face' height='42' width='42'>" ); counter++ }else{ $( this ).append( "<img src='http://circle...
var json = [ tmas, satcom, radiowave, optic, noise, modulation, microwave, digicom, broadcast, antenna, acoustic] var data = { tmas:{name:"Transmission Media and Antenna Systems", description:"",type:"subject", data:tmas}, satcom:{name:"Satellite Communications", description:"", type:"subject", data:satcom}, ra...
// returns a string with a message that contains the name of the person shopping, and // the total amount they will pay function calculateHEBDiscount(shopperName, groceryTotal, discountPercent){ var price = 200; var discount = 100; var result; if(groceryTotal>price){ discountPercent = groceryTotal-disc...
const state = { key: 'API_KEY', version: 'ENGESV', currentBook: 'Luke', currentBookId: 'Luke', currentChapter: 1, books: {}, timestamps: [], } document.addEventListener('DOMContentLoaded', app); async function app() { const booksList = await fetchBooks(state.key, state.version); co...
'use strict'; module.exports = function (sequelize, DataTypes) { var Character = sequelize.define('Character', { id: { type: DataTypes.BIGINT.UNSIGNED, field: 'character_id', primaryKey: true }, name: { type: DataTypes.STRING, field: 'name' }, factionId: {...
const canvas = document.createElement('canvas'); canvas.width = 500; canvas.height = 500; canvas.style.width = canvas.width + 'px'; canvas.style.height = canvas.height + 'px'; canvas.style.border = '1px solid black'; document.body.appendChild(canvas); /** * @type {CanvasRenderingContext2D} */ const ctx = ca...
module.exports = function () { return { app: "./src/app.js", scripts: "./src/**/*.js", assets: "./src/assets/**/*", styles: "./src/**/*.scss", appStyle: "./src/styles.scss", index: './src/index.html', dist: "./dist" } }
export default { state: { server: '', expire_at: 0, code: undefined, session: undefined }, namespaced: true, mutations: { setCode (state, payload) { state.code = payload localStorage.setItem('network/code', payload) }, setServer (state, payload) { ...
const compose = (...fns) => (...args) => fns.reduceRight((s, fn) => [fn.call(null, ...s)], args)[0]; const map = (f) => (arr) => arr.map(f); const arrayTransformer = ([k, v]) => ([k, parseInt(v, 10)]); const fromEntries = (arr) => arr .reduce((acc, pair) => (pair.length === 2 ? { ...acc, [pair[0]]: pair[1] } : {})...
var indexSectionsWithContent = { 0: "_abcdefghilmnoprstuvwxy", 1: "_alnps", 2: "acfilnoprstuv", 3: "abcdefghilmnoprstuvwxy", 4: "abcdfghilmnoprstwxy", 5: "ilnst", 6: "el", 7: "bclvw", 8: "agmrstu", 9: "cdfhinost", 10: "dhsu" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "files", ...
import { Navigation } from 'react-native-navigation'; import configureStore from './src/store/configureStore'; import InviteScreen from './src/screens/invite/InviteScreen'; import OfferScreen from './src/screens/offers/OfferScreen'; import RewardScreen from './src/screens/rewards/RewardScreen'; import SettingScreen fro...
WMS.module("Commissions.List", function(List, WMS, Backbone, Marionette) { var Views = _.extend({}, WMS.Common.Views, List.Views); List.Controller = Marionette.Controller.extend({ prefetchOptions: [ { request: 'get:commission:list', name: 'commissions', options:['from', 'to'] }, ], regions: [ ...
/** * Created by patrick conroy on 2/3/18. */ module.exports = { firebaseServerAuthCreds:{ "type": "service_account", "project_id": "XXXXX", "private_key_id": "xxxxxxxxxxxxxxxxxx", "private_key": "" "client_email": "XXXXX" "client_id": "XXXXX", "auth_uri": ...
import React, { useState, useEffect, useContext } from "react"; import { userContext } from "./utils/Context.js"; import { BrowserRouter, Route, Switch } from "react-router-dom"; import API from "./utils/API.js"; //import pages import About from './pages/About'; import SignUp from './pages/SignUp'; import Login from ...
const rimraf = require("rimraf"); const path = require("path"); const fs = require("fs"); const tymlogger = require("tymlogger"); const log = new tymlogger(); const BUILD_DIRECTORY = path.resolve(process.cwd(), "Build"); const BUILD_LOG = path.resolve(process.cwd(), "Build.log"); const PROJECT_FILE = path.resolve(pr...
import React, { useRef, useEffect } from "react"; import styled from "styled-components"; import { useSelector } from "react-redux"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAward } from "@fortawesome/free-solid-svg-icons/faAward"; import { defaultPlayerNames } from "../../constants...
/* Creator : ABDUL BASITH A */ /* Email : ambalavanbasith@gmail.com */ /* github : abdulbasitha */ /* More Info : https://techzia.in */ import React, { Component } from "react"; import { View, Text, StyleSheet, Button, TouchableOpacity, TextInput, Image, SafeAreaView, Alert...
roleDefender = { Tick: function(creep){ if (creep.spawning){return} roomName = creep.memory.originroom; room = Game.rooms[roomName]; hostiles = taskManager.getHostiles(roomName); if (hostiles.length < 0){ nearestHostile = creep.pos....
const last = arr => arr[arr.length - 1]; //let a = [11,12,13] -> 13
let url = "https://jsonplaceholder.typicode.com/users/1"; function getResponse(response) { return new Promise(function (resolve, reject) { if (!response) { reject(Error("getResponse")); } else { console.log("getResponse: ", response); resolve(response.json()); } }); } function pa...
const CopyWebpackPlugin = require('copy-webpack-plugin'); const ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const VueLoaderPlugin = require('vue-loader/lib/plugin') const path...
(function() { var OtpView, _type, _status, _query, _table, _page, _resendOtp; var _menu = BackendAdminPayDee._menu; var _datepicker = BackendAdminPayDee._datepicker; var _notifyForUser = BackendAdminPayDee._notifyForUser; var _pageCommon = BackendAdminPayDee._page; _menu.activeMenu('otp-menu'); _datepicker.in...
export { default } from 'ember-sunny-days/components/sunny-day';
(function () { 'use strict'; $('.mask-cellphone').mask('(00) 00000-0000'); })();
import { GET_OAUTH_GITHUB_TOKEN_START, GET_OAUTH_GITHUB_TOKEN_SUCCESS, GET_OAUTH_GITHUB_TOKEN_ERROR } from '../../consts/actionTypes' import { GITHUB_TOKEN } from '../../consts' import get from 'lodash/get' import { saveData } from '../../utils/storage' const initialState = {} export default function(state = in...
import express from 'express'; import assetCtrl from '../controllers/assetCtr'; const router = express.Router(); router.route('/api/assets') .get(assetCtrl.getAssData) .put(assetCtrl.updateAssData) router.route('/api/assets/inincome') .put(assetCtrl.infIncome) router.route('/api/assets/payroll') ...
const { completeTransaction } = require("./utils/general"); /** * @dev Constant flow agreement v1 helper class */ module.exports = class ConstantFlowAgreementV1Helper { /** * @dev Create new helper class * @param {Framework} sf Superfluid Framework object * * NOTE: You should first call async...
// This app depends of the fact that wp-json is installed on the server var websiteLocation = 'https://steinbring.net'; var data = {mainDetails:'',pages:{projects:'',resume:'',about:''},selected:'home',posts:'',currentPost:''}; var getMainDetails = function(){ var request = new XMLHttpRequest(); request.open('GET'...
// get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: '192.168.1.141', port:"3306", user:"root", password: "123456" }); // simple query connection.query( 'show databases;', function (err, results, fields) { console.log...
import {createGUI} from './helpers.mjs'; const supportedMethods = ['get', 'post', 'put', 'patch', 'delete'] const body = document.body; body.appendChild(createGUI(supportedMethods)); // const config = { // 'tagName': 'button', // 'tagText': 'ala ma kota', // 'tagClass': 'send', // 'tagId': 'send', /...
const express = require('express') const mongoose = require('mongoose') const axios = require('axios') const { connectDb } = require('./helpers/db') const { port, host, db, authApiUrl } = require('./configuration') const app = express() const postSchema = new mongoose.Schema({ name: String }) const Post = mongoo...
const cv = () => { return ( <h1>cv</h1> ) } export default cv
// Dedié à la partie header de la page : patrimoine function myFunction(imgs) { var expandImg = document.getElementById("expandedImg"); var imgText = document.getElementById("imgtext"); expandImg.src = imgs.src; imgText.innerHTML = imgs.alt; expandImg.parentElement.style.display = "block"; } // Dédié à la...
import * as Yup from 'yup'; import Plan from '../models/Plan'; class PlanController { async store(req, res) { const schema = Yup.object().shape({ title: Yup.string().required(), price: Yup.number() .positive() .required(), duration: Yup.nu...
export default function ({app}) { if (!app.$cookies.get('s')) { app.$cookies.set('s', 'Morocco', { path: '/' }) } }
const db = require('../model/transactions') const insert = (req, res) => { db.create({ buyer: req.headers.auth.id, goods: req.headers.goods, address: req.body.address, telp: req.body.telp }) .then(response => { res.send(response) }) .catch(err => { res.send(err) }) } const all = (r...
import React, { Fragment } from 'react'; import convertReaderToDataUri from '../utils/convertReaderToDataUri'; import { FileInputStyle } from './styles/FileUploadStyles'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { setDataUri } from '../redux/actions/image'; const FileInput = ...
import React from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Test1 from './Test1'; import Test2 from './Test2'; import index from './'; import TestF from './TestF'; import TestFunc from './TestFunc'; const Routes = () => ( <Router> <Route path="/" component={index} ...
import { renderString } from '../../src/index'; describe(`Returns a Blog by id`, () => { it(`unnamed case 0`, () => { const html = renderString(`{{ blog_by_id(123) }}`); }); });
// 判断两个对象的相等 // 就是在判断成员是否相等 // 简单对象演示( 复杂对象 ) function compare_plain_obj( obj1, obj2 ) { if ( obj1 === obj2 ) return true; // 地址不相同 // 什么是两个对象相同? // 对象1 中的所有属性, 在 对象2 中都有. 而且值都相同 => 对象1 包含 在对象2 中 // 如果对象2 中的所有成员, 在 对象1 中也都有. 而且值相等 => 对象2 包含在对象 1 中 for ( var k in obj2 ) { // if...
(function(){ /** Class representing a color */ class Color{ /** * Creates a Color object. * @param {string} cssStr - String of css color value */ constructor(cssStr){ this.rbg = parseRGB(rbg_str) this.r = r this.g = g this.b = b } /** * Parses the RBG value from a string representing ...
// Global Name for Screens // Login export const LOGIN = 'sta.login'; // Main Stack export const CALENDAR = 'sta.calendar'; export const HOME = 'sta.home'; export const PHOTOS = 'sta.photos'; export const TOOLS = 'sta.tools'; // Tools export const CURRENCY = 'sta.currency'; export const JOURNAL = 'sta.journal'; export...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
shapely.geom = function( coords, type ){ var type = type; var coords = coords; var geom = { area: area, length: length } function area(){ return 0.0; } function length(){ return 0.0; } return geom; };
import React from 'react'; import {Container, Card, Row, Col } from 'react-bootstrap' const ServiceItems = (props) => ( <div> <Card> <Container className="dark-text service"> <Row className="service"> Milage: {props.item.milage} </Row> <Row className="service"> Service Done: {props.item.se...
import React ,{useState} from 'react'; import {Link} from "react-router-dom"; const CourseCard = ( { course, lastModified="1/1/2021", owner="who knows?", deleteCourse, updateCourse }) => { const [editing, setEditing] = useState(false) const [title, setTitle] = use...
var mocks = require('./mocks.js'); var request = require('supertest'); var jade = require('jade'); var should = require('should'); var app = require('../app')(mocks); var views = __dirname + '/../views/'; describe('App', function() { describe('/', function() { beforeEach(function() { mocks.db.err = null; }); ...
const express = require("express"); const bbGController = require("../../Controllers/BebidasControl/BebidaGaseosa"); const api = express.Router(); api.post("/agregar-BebidaGaseosa", bbGController.guardarBG); api.get("/gaseosa", bbGController.getGaseosas); api.put("/updateBebGas/:id", bbGController.updateBebGas); api....
import styled from 'styled-components' const SearchBarWrapper = styled.div` display: flex; align-items: center; width: 1040px; margin: 0 auto; ` const SearchBarForm = styled.form` width: 100%; `; const SearchBarButton = styled.a` border: 1px solid #fff; height: 50px; line-height: 50px; cursor: poin...
module.exports = function (params) { const keys = Object.keys(params); for (let i = 0; i < keys.length; i++) { if (!params[keys[i]]) { return false; } } return true; };
import React, { Component } from "react"; import { Link } from "react-router-dom"; import PropTypes from "prop-types"; // Redux import { connect } from "react-redux"; import { setDetailsMovie, addMovieToCollection, removeMovieFromCollection } from "../../../actions/movieActions"; class TrendingMovie extends Co...
$(document).ready(function() { $('#test').on('click', function (e) { console.log("event",event); console.log("this", $(this)); console.log("this not jq", this); }); }); // this.a = 37 // console.log(window.a); // var fubar = "42"; // function baz() { // console.log("baz"); // bar(); // } // function bar(...
function inArray(value,array){ if(Array.prototype.indexOf){ return array.indexOf(value) !== -1; }else{ var has = 0; for(var i=0,len=array.length; i<len;i++){ if(value === array[i]){ has = 1; break; } } return has; } } _.difference = function(array,values){ var tempArr = []; for(var ...