This file contains 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
import { defineNuxtConfig } from 'nuxt' | |
export default defineNuxtConfig({ | |
/* ... */ | |
vite: { | |
server: { | |
watch: { | |
usePolling: true | |
} | |
} |
This file contains 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
<body> | |
<div | |
id="myDiagramDiv" | |
style="border: solid 1px blue; width:400px; height:150px"> | |
</div> | |
<script src="https://unpkg.com/gojs/release/go-debug.js"></script> | |
<script src="./script.js"</script> | |
</body> |
Antigamente um dos maiores desafios relacionado ao desenvolvimento web se tratava na construção de layouts, conforme o tempo foi avançado várias abordagens (hoje isso se chama gambiarra) foram sendo utilizadas, tendo métodos desde da utilização com tabelas, floats, com a propriedade position
e display block
, inline-block
e assim por diante.
Agora imagine o trabalho não só para construir mas para quando quisesse fazer alguma alteração no layout, a responsabilidade poderia estar no elemento HTML ou divido em várias seções no CSS, com isso tudo foi gerado a grande fama de dificuldade que se tem como trabalhar com CSS.
This file contains 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
// Funções prontas para guardar e resgatar itens no localStorage. | |
export const saveLocalStorage = (key, payload) => { | |
localStorage.setItem(key, JSON.stringify(payload)); | |
}; | |
export const getLocalStorage = (key) => JSON | |
.parse(localStorage.getItem(key)); |
This file contains 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 welcomeMessage = () => { | |
const hour = new Date().getHours(); | |
const message = { | |
morning: 'Bom dia', | |
afternoon: 'Boa tarde', | |
evening: 'Boa noite', | |
default: 'Olá', | |
}; | |
if (hour >= 6 && hour <= 12) return message.morning; |
This file contains 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 baseUrlGit = 'https://api.github.com'; | |
const fetchGithubPulls = async (user, repository) => { | |
/* Estrutura do protocolo HTTP Get de pesquisa em issues | |
Url SITE | |
https://github.com/search?q=user%3Atryber+lcds90&type=issues | |
Url API | |
https://api.github.com/search/issues?q=author:lcds90%20is:pr%20user:tr | |
https:// = Protocolo HTTP Hyper Text Transfer Protocol Secure | |
api.github.com = hostname | |
search = rota / caminho com endpoint como é utilizado no mecanismo de busca padrão do Github |
This file contains 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
// importa em variavel | |
import style from './Login.module.css'; | |
// podemos desestruturar através { form, input }, mas isso é opcional | |
const Login = () => { | |
// utilizado dinamicamente atraves da prop da className, o legal é que podemos realizar condições para aplicar determinada classe | |
const isValidated = true; | |
return ( | |
<form className={ style.form }> | |
<input |
This file contains 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
{ | |
"short_name": "Todo Extension", | |
"name": "Todo List and Trybe Integration", | |
"version": "1.0", | |
"description": "Uma nova guia para concetrar estudos", | |
"author": "Leonardo Santos", | |
"manifest_version": 2, | |
"browser_action": { | |
"default_title": "Todo Extension" | |
}, |
NewerOlder