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
| const {randomUUID} = require('node:crypto'); | |
| // Mocks for external dependencies | |
| const registerLevel = (level, name, color) => { | |
| // console.log(`Registered level: ${name} (${level}) with color ${color}`); | |
| }; | |
| const log = (level, time, source, msg, info, extra) => { | |
| // console.log(`[${time}] [${level}] [${source}] ${msg}`); | |
| }; | |
| const time = () => new Date().toISOString(); |
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
| class IncludeHtml extends HTMLElement { | |
| static get observedAttributes(): Array<string> { | |
| return ["url"]; | |
| } | |
| constructor() { | |
| super(); | |
| } | |
| connectedCallback(): void { |
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
| class AndroidProgressBar extends HTMLElement { | |
| #root: ShadowRoot; | |
| #svg: SVGSVGElement; | |
| #circle: SVGCircleElement; | |
| static #MIN_SPEED_RATE: number = 1.5; | |
| static #MAX_SPEED_RATE: number = 3; | |
| constructor() { | |
| super(); |
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
| export default class Modal { | |
| /** @type {boolean} */ | |
| static #isModalOpen = false; | |
| /** @type {boolean} */ | |
| static #isRtl = false; | |
| /** @param {boolean} bool */ | |
| static set isRtl(bool) { |