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 { interfaces } = require("mocha") | |
//definindo entidade aviao e seus comportamentos | |
class Veiculo { | |
veiculosQueVoam = ["aviao", "asadelta","helicoptero"] | |
constructor(tipo, combustivel){ | |
this.tipo = tipo | |
this.combustivel = combustivel | |
this.cor = "sem cor" |
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 path = require('path'); | |
const root_dir = path.join(path.dirname(require.main.filename),'arquivos') | |
const fs = require('fs'); | |
const uuid = require('uuid').v4; | |
const criaEndereco = (destino, arquivoNome) => { | |
return path.join(root_dir, destino, arquivoNome); | |
} |
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 history = useHistory(); | |
useEffect(() => { | |
return history.listen((location) => { | |
let nomeDaPagina="Nome do projeto" | |
let _title = location.pathname.replace('/', '') | |
_title = _title.indexOf('/') > 0 ? _title.substring(0, _title.indexOf('/')) : _title | |
switch(_title.toUpperCase()){ | |
case '': | |
_title = `${nomeDaPagina}-Início` | |
break; |
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
@using Sharpy | |
@using BackendAPI.Objects | |
@using BackendProxy | |
@using BackendAPI | |
@using BackendAPI.Events | |
@using BackendAPI.Pages.Shared | |
@using System.Diagnostics | |
@using Microsoft.JSInterop | |
@inject IJSRuntime JSRuntime |
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
@using Sharpy | |
@using BackendAPI.Objects | |
@using BackendProxy | |
@using BackendAPI | |
@using BackendAPI.Events | |
@using BackendAPI.Pages.Shared | |
@using System.Diagnostics | |
@using Microsoft.JSInterop | |
@inject IJSRuntime JSRuntime |