-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dev): várias mudanças foram realizadas para preparar o códig…
…o para implementação de testes - foram adicionados os novos arquivos babel.config.cjs e jest.config.cjs, ambos relacionados as configurações de suas respectivas tecnologias - os scripts em PHP para não serem inicializados em todas as páginas do site WP, e sim apenas na página onde o shortcode está localizado - script.js foi modificado para exportar as classes para testes unitários - a parte do código com HTML foi modificada para não incluir tags do tipo <script>, pois são redundantes (é necessário apenas o enfileiramento de scripts pelo WP)
- Loading branch information
1 parent
1532bd9
commit e01477b
Showing
9 changed files
with
8,374 additions
and
2,453 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-env'], | ||
}; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
testEnvironment: 'jsdom', | ||
transform: { | ||
'^.+\\.js$': 'babel-jest', | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css" /> | ||
|
||
</head> | ||
<body> | ||
<div id="div_index"> | ||
|
@@ -72,10 +71,6 @@ | |
<button onclick="transicaoPagina('PaginaFormulario', 'div_form')" class="blue_button">Cadastrar um novo local</button> | ||
<button onclick= "transicaoPagina('PaginaComPopup', 'div_index')" class="voltar_exit">Voltar</button> | ||
</div> | ||
|
||
<script src="js/script.js"></script> | ||
<script src="js/formulario.js"></script> | ||
<script src="js/funcionalidades.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | ||
</body> | ||
|
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
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
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
Oops, something went wrong.