sass/
|
|– abstracts/
| |– \_variables.scss # Sass Variables
| |– \_functions.scss # Sass Functions
| |– \_mixins.scss # Sass Mixins
| |– \_helpers.scss # Class & placeholders helpers
|
|– base/
- Install Dependencies
yarn add --dev jest babel-jest @babel/preset-env @babel/core @babel/plugin-syntax-jsx @babel/preset-react @testing-library/dom @testing-library/jest-dom @testing-library/react @testing-library/user-event babel-preset-react-app identity-obj-proxy jest-circus jest-scss-transform jest-watch-typeahead
- Set Jest & babel configs in package.json
"jest": {
"roots": [
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
| (function (document) { | |
| var checkCount = 0, | |
| formatFound = false; | |
| function setHTMLClass(height, className) { | |
| checkCount++; | |
| if (height == 2) { | |
| formatFound = true; | |
| document.documentElement.className += " " + className; | |
| } else { |
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
| "imagenes": { | |
| "prefix": "im", | |
| "body": [ | |
| "<picture>", | |
| "<source", | |
| "\t sizes=\"1920w, 1280w, 640w\" ", | |
| "\t srcset=\"img/imagen.avif 1920w, \n\t\t\t img/imagen-1280.avif 1280w, \n\t\t\t img/imagen-640.avif 640w\" ", | |
| "\t type=\"image/avif\">", | |
| "<source", | |
| "\t sizes=\"1920w, 1280w, 640w\" ", |
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
| function parseJwt (token) { | |
| var base64Url = token.split('.')[1]; | |
| var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
| return JSON.parse(window.atob(base64)); | |
| }; |
NewerOlder