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
| <!-- Example usage in HTML: <use href="/path_to_file/icons.svg#<symbol_id>" /> | |
| <svg width="18" height="18"> | |
| <use href="/assets/svgs/icons.svg#location" /> | |
| </svg> | |
| #location - id attribute of the symbol, to be rendered. | |
| --> | |
| <svg xmlns="http://www.w3.org/2000/svg"> | |
| <!-- icons --> |
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
| *, | |
| *::after, | |
| *::before { | |
| box-sizing: border-box; | |
| } | |
| * { | |
| margin: 0; | |
| } |
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
| // implementation example here: https://github.com/emmanuelkiranr/DevSandbox | |
| const BASE_URL = `https://jsonplaceholder.typicode.com/` | |
| export class HttpError extends Error { | |
| status: number | |
| constructor(status: number, message: string) { | |
| super(message) | |
| this.name = 'Error' | |
| this.status = status |