Skip to content

Instantly share code, notes, and snippets.

View mendesrl's full-sized avatar

mendesrl

View GitHub Profile
import { ApiService } from '../';
jest.mock('../', () => ({
ApiService: {
get: jest.fn(),
post: jest.fn(),
put: jest.fn(),
delete: jest.fn(),
postMkt: jest.fn(),
customRequest: jest.fn(),
@mendesrl
mendesrl / select.vue
Created December 9, 2019 00:03
Select
<template>
<Painel titulo="Resumo" roxo>
<select v-model="selected">
<option v-for="option in produtos"
:key="option.preco"
v-bind:value="option.value">
{{ option.nome }}
</option>
</select>
<span>Selecionado: {{ selected }}</span>
/* Desenvolver o compoenent chamado oferta, que representa cada item das Ofertas Diarias
*
Utilize apenas
Vue.compoenent( 'nomeDoComponente', {
props: {},
template: ``,
methods: {}
} )
Implementando seu componente dentro do Vue.component nao se faz necessario importa-lo no index.js
pois o mesmo eh uma instancia de Vue e tera acesso a tudo o que voce colocar em Vue.???
@mendesrl
mendesrl / JogodaVelha.html
Last active July 3, 2018 20:11
Jogo da Velha (HTML,CSS,JAVASCRIPT)
<!DOCTYPE <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title> 🎮 Jogo da Velha</title>
<!--CSS-->
<style>
/*Importação do estilo de fonte pixel*/
@import url(http://fonts.googleapis.com/css?family=Geo&subset=latin);