mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
The CommonJS pass rewrites a dynamic import into a require, which cannot take the file URL the ESM path hands it, so the load goes through here.ts and its .cjs sibling. create-gui reads its manifest from the package root at run time, names its relative imports with their extension, and imports opener instead of requiring it. Co-authored-by: Hanzo Dev <[email protected]>
50 lines
2.8 KiB
TypeScript
50 lines
2.8 KiB
TypeScript
import chalk from 'chalk'
|
||
|
||
import { rainbowColors } from './rainbowChalk.ts'
|
||
|
||
export const hanzoguiAsciiArt = `▀█▀ ▄▀█ █▀▄▀█ ▄▀█ █▀▀ █ █ █
|
||
█ █▀█ █ ▀ █ █▀█ █▄█ █▄█ █`
|
||
|
||
export const hanzoguiRainbowAsciiArt = (function () {
|
||
const char0_1 = chalk.hex(rainbowColors[0])('▀█▀')
|
||
const char0_2 = chalk.hex(rainbowColors[0])(' █ ')
|
||
|
||
const char1_1 = chalk.hex(rainbowColors[1])('▄▀█')
|
||
const char1_2 = chalk.hex(rainbowColors[1])('█▀█')
|
||
|
||
const char2_1 = chalk.hex(rainbowColors[2])('█▀▄▀█')
|
||
const char2_2 = chalk.hex(rainbowColors[2])('█ ▀ █')
|
||
|
||
const char3_1 = chalk.hex(rainbowColors[3])('▄▀█')
|
||
const char3_2 = chalk.hex(rainbowColors[3])('█▀█')
|
||
|
||
const char4_1 = chalk.hex(rainbowColors[4])('█▀▀')
|
||
const char4_2 = chalk.hex(rainbowColors[4])('█▄█')
|
||
|
||
const char5_1 = chalk.hex(rainbowColors[5])('█ █')
|
||
const char5_2 = chalk.hex(rainbowColors[5])('█▄█')
|
||
|
||
const char6_1 = chalk.hex(rainbowColors[6])('█')
|
||
const char6_2 = chalk.hex(rainbowColors[6])('█')
|
||
return `${char0_1} ${char1_1} ${char2_1} ${char3_1} ${char4_1} ${char5_1} ${char6_1}
|
||
${char0_2} ${char1_2} ${char2_2} ${char3_2} ${char4_2} ${char5_2} ${char6_2}
|
||
`
|
||
})()
|
||
|
||
export const takeoutAsciiArt = `████████╗░█████╗░██╗░░██╗███████╗░█████╗░██╗░░░██╗████████╗
|
||
╚══██╔══╝██╔══██╗██║░██╔╝██╔════╝██╔══██╗██║░░░██║╚══██╔══╝
|
||
░░░██║░░░███████║█████═╝░█████╗░░██║░░██║██║░░░██║░░░██║░░░
|
||
░░░██║░░░██╔══██║██╔═██╗░██╔══╝░░██║░░██║██║░░░██║░░░██║░░░
|
||
░░░██║░░░██║░░██║██║░╚██╗███████╗╚█████╔╝╚██████╔╝░░░██║░░░
|
||
░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝╚══════╝░╚════╝░░╚═════╝░░░░╚═╝░░░`
|
||
|
||
export const hanzoguiDuckAsciiArt = ` ████████████
|
||
██ ██
|
||
██ ██ ██████
|
||
██ ██ ██
|
||
██ ████████
|
||
██ ██
|
||
██ ████
|
||
██ ██
|
||
██ ██ `
|