This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "testes-fabio-vedovelli", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"devDependencies": { | |
"@types/jest": "^27.4.0", | |
"jest": "^27.5.0" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Git | |
alias glog="git log --oneline --graph" | |
alias gpull="git pull" | |
alias gpush="git push" | |
alias gcommit="git commit -m" | |
alias gadd="git add *" | |
alias gcheckout="git checkout" | |
alias gnewbranch="git checkout -b" | |
alias gdeletebranch="git branch -d" | |
alias gbranch="git branch" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mix = require('laravel-mix'); | |
// Add PUG support on Laravel's Vue | |
// install pug and pug-plain-loader as well! | |
mix.webpackConfig({ | |
module: { | |
rules: [ | |
{ | |
test: /\.pug$/, | |
oneOf: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper"> | |
<form class="form"> | |
<input type="text" class="form__input"> | |
<select name="" id="" class="form__input-select"> | |
<option name="" id="">Teste</option> | |
<option name="" id="">Teste</option> | |
</select> | |
<div class="form__radio"> | |
<input type="radio" name="teste" id="teste" value="teste" checked> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adicionar no arquivo main.js | |
$('.form__radio').on('click', 'label', (e) => { | |
if(!$(e.target).hasClass('checked') && $(e.target).is('label')) { | |
$(e.target).addClass('checked').parent().siblings('.form__radio').find('label').removeClass() | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.login { | |
width: 50%; | |
margin: 50px auto; | |
padding: 50px; | |
text-align: center; | |
& form { | |
@include clearfix(); | |
box-shadow: 0 0 30px rgba(0, 0, 0, .1); | |
padding: 40px 100px; | |
border-radius: 5px; |