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
| enum Language { | |
| UZ = 'UZ', | |
| EN = 'EN', | |
| RU = 'RU', | |
| } | |
| interface IContent { | |
| uz: string; | |
| ru: string; | |
| en: string; |
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
| import { Context } from "./context"; | |
| import * as chalk from "chalk"; | |
| import * as Table from "cli-table3"; | |
| import * as ngrok from "@ngrok/ngrok"; | |
| import * as webpack from "webpack"; | |
| import * as WebpackDevServer from "webpack-dev-server"; | |
| import * as nodemon from "nodemon"; | |
| export const infoChalk = chalk.blue.bold; | |
| export const warnChalk = chalk.bgYellow.bold; |
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
| /** | |
| * Recursively extracts all possible dot-separated key paths from a nested object. | |
| * If the object has nested objects, it concatenates parent keys with nested keys using dot notation. | |
| * | |
| * @template T - The object type to extract keys from. | |
| * | |
| * @example | |
| * type Obj = { | |
| * campaigns: { | |
| * list: {}; |
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
| /** | |
| * | |
| * @param {{page: import("playwright").Page, email: string, password: string}} | |
| */ | |
| async function getOtpFromGmail({ page, email, password }) { | |
| await page.goto("https://mail.google.com"); | |
| const emailInput = await page.waitForSelector("#identifierId"); | |
| await emailInput.fill(email); |
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
| version: '3.7' | |
| name: database | |
| services: | |
| postgres: | |
| image: postgis/postgis:latest | |
| environment: | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: 1234 | |
| ports: | |
| - 5432:5432 |
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
| version: '3.7' | |
| services: | |
| mysql: | |
| image: mysql:latest | |
| command: --default-authentication-plugin=mysql_native_password | |
| environment: | |
| MYSQL_ROOT_PASSWORD: 1234 | |
| ports: | |
| - 3306:3306 | |
| volumes: |