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
| prompt mcp | |
| # Role | |
| Você é um Arquiteto de Design System Sênior e Especialista em Engenharia Reversa de Interfaces (Pixel-Perfect). | |
| # Objetivo | |
| Sua tarefa é desconstruir a imagem da interface fornecida em uma estrutura JSON hierárquica. | |
| A análise deve ser feita "de fora para dentro": Primeiro identifique as grandes SESSÕES horizontais da página, e depois analise o conteúdo de cada uma. | |
| # Regras de Análise (Rigorosas) |
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
| /** | |
| * Remove formatting from contenteditable elements, when paste others content | |
| * | |
| * @param elements Array of elements with contenteditable="true" attribute | |
| */ | |
| function clearFormatting(elements) { | |
| [].forEach.call(elements, (element) => { | |
| element.addEventListener('paste', (event) => { | |
| event.preventDefault(); |
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
| /** | |
| * | |
| * translate.js | |
| * @author Guilherme Modugno - https://modugno.github.io | |
| * @description Plugin para tradução de elementos na página. | |
| */ | |
| class Translate { | |
| /** |
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
| <?php | |
| /** | |
| * Find the longest run character in a string | |
| * @author Guilherme Modugno | |
| * | |
| * @param String $str The string to be analyzed | |
| * Array $letters It convert letter by letter to array | |
| * Array $array Take the values and assign them to the keys | |
| * String $previous It responsible for save the last letter | |
| * Int $position Return the position of first element repeated |