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": "projeto-1", | |
| "version": "1.0.0", | |
| "description": "Desenvolvimento de uma Calculadora simples visando ensinar os conceitos básicos de Vue.js", | |
| "author": "Glaucia Lemos", | |
| "private": true, | |
| "scripts": { | |
| "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --open --hot", | |
| "start": "npm run dev", | |
| "lint": "eslint --ext .js,.vue src", |
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
| <template> | |
| <div class="calculadora"> | |
| <div class="display">0</div> | |
| <div class="botao">C</div> | |
| <div class="botao">+/-</div> | |
| <div class="botao">%</div> | |
| <div class="botao operadores">÷</div> | |
| <div class="botao">7</div> | |
| <div class="botao">8</div> | |
| <div class="botao">9</div> |
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
| <template> | |
| <div class="calculadora"> | |
| <div class="display">0</div> | |
| <div class="botao">C</div> | |
| <div class="botao">+/-</div> | |
| <div class="botao">%</div> | |
| <div class="botao">÷</div> | |
| <div class="botao">7</div> | |
| <div class="botao">8</div> | |
| <div class="botao">9</div> |
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
| <template> | |
| <div class="calculadora"> | |
| <div class="display">0</div> | |
| <div >C</div> | |
| <div >+/-</div> | |
| <div >%</div> | |
| <div>÷</div> | |
| <div>7</div> | |
| <div>8</div> | |
| <div>9</div> |
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
| <template> | |
| <div class="calculadora"> | |
| <div class="display">1.565854</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> |
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
| <template> | |
| <div class="calculadora"> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> | |
| <div>teste</div> |
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
| <template> | |
| </template> | |
| <script> | |
| export default { | |
| }; | |
| </script> | |
| <!-- Add "scoped" attribute to limit CSS to this component only --> | |
| <style scoped> |
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
| <template> | |
| <div id="app"> | |
| <Calculadora/> | |
| </div> | |
| </template> | |
| <script> | |
| import Calculadora from './components/Calculadora'; | |
| export default { |
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": "calculadora-app", | |
| "version": "1.0.0", | |
| "description": "Calculadora em Vue.js", | |
| "author": "Glaucia Lemos", | |
| "private": true, | |
| "scripts": { | |
| "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --open --hot", | |
| "start": "npm run dev", | |
| "lint": "eslint --ext .js,.vue src", |
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
| #!/usr/bin/env node | |
| // Usado para dizer ao Node.js que se trata de uma ferramenta do CLI | |
| // Declarando os módulos: | |
| const chalk = require('chalk') | |
| const boxen = require('boxen') | |
| // Definindo as opções para o ‘boxen’: | |
| const options = { | |
| padding: 1, |