├── .gitignore ├── LICENSE ├── README.md ├── env.sample ├── init └── systemd-init.sh ├── nostrTerm.mjs ├── package.json ├── web ├── ansi.js ├── index.html ├── styles.css └── xterm.css └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | .env* 2 | node_modules 3 | *.log 4 | *.txt 5 | sharelink -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nostr Terminal 2 | Connect to any computer terminal remotely from the browser. NAT traversal powered by Nostr. 3 | 4 | ## How to Setup 5 | 6 | On your computer: 7 | 8 | ```bash 9 | ## Clone the repository and navigate inside. 10 | git clone 11 | cd nostr-terminal 12 | 13 | ## Install package dependencies. 14 | yarn install || npm install 15 | 16 | ## Start the terminal server using a package manager. 17 | yarn start || npm start 18 | 19 | ## You can also start the server directly, and provide arguments. 20 | ./nostrTerm.js 21 | 22 | ## If you want to specify your own defaults, 23 | ## create an .env file with the following: 24 | ADDRESS= 25 | SECRET= 26 | ``` 27 | 28 | The app will give you a base64 encoded connection string to copy/paste into the browser client. This string includes the relay url and connection secret, so keep it safe! 29 | 30 | If you do not provide a secret, the server will generate a random secret for you. This is the safest option! 31 | 32 | On your browser: 33 | ```ini 34 | ## Navigate to the browser client (hosted on github): 35 | https://cmdruid.github.io/nostr-terminal/web 36 | 37 | ## Or host your own web client! The files are here: 38 | nostr-terminal/web 39 | ``` 40 | 41 | ## How to Use 42 | 43 | The browser client will connect to your terminal server, using the same user account running the server. Be careful running this app as a sudo or administartor user! 44 | 45 | There are two modes for the terminal: `buff mode` or `live mode`. You can toggle modes by clicking the `[ mode ]` button located near the top-right of the terminal window. 46 | 47 | **buff mode**: 48 | Most keyboard input is buffered locally, then sent to your machine when you press enter. This is the fastest mode, plus it prevents flooding the relay with every keystroke. Certain features do not work in this mode, such as Up/Down (for scrolling command history) and Tab (for auto-completion). I'm looking to implement them in the future! 49 | 50 | **live mode**: 51 | All keyboard input is streamed in real-time. This is nessecary when using a text editor (like vim or nano), but it will flood the relay with traffic. This app uses ephemeral events, so we are flooding in the most friendly way possible. However not all relays may handle this traffic properly, so please use this mode wisely and consider running your own relay if you plan to use it frequently. 52 | 53 | ## Tips on Usagefas 54 | 55 | ```bash 56 | ## Start the terminal server as a background process, 57 | ## and save the connection string to a local file. 58 | ./nodeTerm.mjs > secrets.txt & 59 | cat secrets.txt 60 | ``` 61 | 62 | ## Disclaimer 63 | 64 | This is a demo project that opens a remote terminal connection into your machine. The connection is end-to-end encrypted with a secret, and uses a modern cryptography library (webcrypto) with best-practices. That being said, please review the code being used (NostrEmitter is just 500 lines), and take your own precautions! 65 | 66 | ## Known Issues 67 | 68 | If you open a text editor (or any TUI application) while using `buff mode`, the screen may not draw properly. Switch to `live mode` before opening the application. 69 | 70 | If you switch to `live mode` while you still have characters in the buffer, they will not be sent to the server properly. 71 | 72 | If you lose / close the connection while inside an editor (or any TUI application), the screen will not re-draw the application properly when you reconnect. I'm currently looking for elegant ways to fix this, and suggestions are welcome! 73 | 74 | ## Bugs / Questions 75 | 76 | Please feel free to post any bugs or questions on the issues page! 77 | 78 | ## Contributions 79 | 80 | Anyone may contribute! Please feel free to open a pull request. 81 | 82 | ## Resources 83 | 84 | **ANSI escape code** 85 | https://en.wikipedia.org/wiki/ANSI_escape_code 86 | 87 | **Console Codes — Linux manual page** 88 | https://man7.org/linux/man-pages/man4/console_codes.4.html 89 | 90 | **The Standard ASCII Character Set and Codes** 91 | https://cs.smu.ca/~porter/csc/ref/ascii.html 92 | 93 | **ANSI Escape Sequences** 94 | https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 95 | 96 | **xtermjs** 97 | https://github.com/xtermjs/xterm.js 98 | 99 | **node-pty** 100 | https://github.com/microsoft/node-pty 101 | -------------------------------------------------------------------------------- /env.sample: -------------------------------------------------------------------------------- 1 | ADDRESS=wss://example.nostr.relay 2 | SECRET=makesurethisisverysecretandsecure 3 | -------------------------------------------------------------------------------- /init/systemd-init.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | ## Setup Nostr Terminal systemd service. 3 | 4 | SERV_NAME='nostr-term' 5 | BIN_PATH='/usr/local/bin/nostr-term' 6 | 7 | ## Define user account used for the service. 8 | [ -n "$1" ] && USER_NAME=$1 || USER_NAME="nostr-term" 9 | 10 | SYSTEMD_CONFIG="# Nostr Terminal Server 11 | # See 'man systemd.service' for details. 12 | 13 | [Unit] 14 | Description=Nostr Terminal Server 15 | Documentation=https://github.com/cmdruid/nostr-terminal/blob/master/README.md 16 | 17 | After=network-online.target 18 | Wants=network-online.target 19 | 20 | [Service] 21 | WorkingDirectory=$BIN_PATH 22 | ExecStart=$BIN_PATH/nostrTerm.js -o sharelink 23 | Type=simple 24 | Restart=on-failure 25 | User=$USER_NAME 26 | 27 | [Install] 28 | WantedBy=multi-user.target 29 | " 30 | 31 | # Check if user:group is setup. 32 | if ! id -u "$USER_NAME" > /dev/null 2>&1; then 33 | echo "User does not exist! Adding $USER_NAME user ..." 34 | useradd $USER_NAME 35 | else 36 | echo "User $USER_NAME already exists." 37 | fi 38 | 39 | # Check if /usr/bin/node exists. 40 | if ! [ -e "/usr/bin/env" ]; then 41 | echo "Adding symlink for node ..." 42 | ln -s "$(which node)" /usr/bin/node 43 | fi 44 | 45 | # Check if bin path exists. 46 | if ! [ -d "$BIN_PATH" ]; then 47 | echo "Path does not exist! Creating '$BIN_PATH' path ..." 48 | mkdir -p $BIN_PATH 49 | else 50 | echo "Path '$BIN_PATH' already exists." 51 | fi 52 | 53 | # Check if install files exist. 54 | if ! [ -e "$BIN_PATH/package.json" ]; then 55 | echo "Copying over package.json ..." 56 | cp "../package.json" "$BIN_PATH/package.json" 57 | fi 58 | 59 | if ! [ -e "$BIN_PATH/nostrTerm.mjs" ]; then 60 | echo "Copying over nostrTerm.mjs ..." 61 | cp "../nostrTerm.mjs" "$BIN_PATH/nostrTerm.mjs" 62 | fi 63 | 64 | if ! [ -d "$BIN_PATH/node_modules" ]; then 65 | echo "Copying over node_modules ..." 66 | cp -r "../node_modules" "$BIN_PATH/node_modules" 67 | fi 68 | 69 | # Install systemd service template 70 | if [ -z "$(systemctl list-unit-files | grep nostr-term)" ]; then 71 | echo "Service does not exist! Adding $SERV_NAME.service ..." 72 | printf "$SYSTEMD_CONFIG" > /etc/systemd/system/nostr-term.service 73 | systemctl daemon-reload 74 | else 75 | echo "Service $SERV_NAME already exists." 76 | fi 77 | 78 | # Enforce the correct permissions. 79 | chown -R $USER_NAME:$USER_NAME $BIN_PATH 80 | chmod -R 744 $BIN_PATH 81 | chmod a+x $BIN_PATH/nostrTerm.mjs 82 | -------------------------------------------------------------------------------- /nostrTerm.mjs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import os from 'os' 3 | import pty from 'node-pty' 4 | import dotenv from 'dotenv' 5 | import path from 'path' 6 | import { writeFile } from 'fs' 7 | import { parseArgs } from 'util' 8 | import QREncoder from 'qrcode' 9 | import NostrEmitter from '@cmdcode/nostr-emitter' 10 | 11 | // Setup our utility libraries. 12 | const ec = new TextEncoder() 13 | 14 | // Define our dotenv config. 15 | const configSchema = { override: true } 16 | 17 | // Define our argument parser interface. 18 | const optSchema = { 19 | 'silent' : { type: 'boolean', short: 's' }, 20 | 'verbose' : { type: 'boolean', short: 'v' }, 21 | 'config' : { type: 'string', short: 'c' }, 22 | 'output' : { type: 'string', short: 'o' } 23 | } 24 | 25 | // Parse our arguments. 26 | const { values: opt, positionals: arg } = parseArgs({ 27 | options: optSchema, 28 | args: process.argv.slice(2), 29 | allowPositionals: true 30 | }) 31 | 32 | // If a config path is specified, add to dotenv config. 33 | if (opt.config) { 34 | configSchema.path = path.resolve(opt.config) 35 | } 36 | 37 | // Apply the dotenv configuration. 38 | const { parsed: config } = dotenv.config(configSchema) 39 | 40 | if (opt.verbose) console.log('Startup config:', opt ?? {}, arg, config) 41 | 42 | // Define our connection parameters. 43 | let relayUrl = arg[0] || config.ADDRESS || 'relay.nostrich.de', 44 | secret = arg[1] || config.SECRET || Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString('hex') 45 | 46 | // Initialize our emitter object. 47 | const emitter = new NostrEmitter({ silent: opt.silent, verbose: opt.verbose }) 48 | 49 | // Setup our shell process. 50 | const shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash' 51 | 52 | const ptyProcess = pty.spawn(shell, [], { 53 | name: 'xterm-color', 54 | cols: 80, 55 | rows: 30, 56 | cwd: process.env.HOME, 57 | env: process.env 58 | }) 59 | 60 | // Initialize our buffers. 61 | let hasBuffer = false 62 | let sendBuffer = false 63 | 64 | emitter.on('init', () => { 65 | // On init, send clear command. 66 | ptyProcess.write('clear\r') 67 | }) 68 | 69 | emitter.on('buff', (data) => { 70 | // If data sent via buffer, 71 | // set hasBuffer flag. 72 | const keys = ec.encode(data) 73 | 74 | if (keys.at(-1) === 9) { 75 | // If there's a trailing tab, 76 | // send a return buffer. 77 | sendBuffer = true 78 | } else { 79 | sendBuffer = false 80 | } 81 | 82 | hasBuffer = true 83 | if (opt.verbose) console.log('buff:', ec.encode(data)) 84 | ptyProcess.write(data) 85 | }) 86 | 87 | emitter.on('data', (data) => { 88 | if (opt.verbose) console.log('data', ec.encode(data)) 89 | ptyProcess.write(data) 90 | }) 91 | 92 | // Define our main connection function. 93 | async function main() { 94 | await emitter.connect(relayUrl, secret) 95 | 96 | ptyProcess.onData((data) => { 97 | if (hasBuffer) { 98 | // If buffer flag is set, 99 | // skip returning chunk. 100 | hasBuffer = false 101 | } else { 102 | // Return chunk. 103 | if (sendBuffer) { 104 | sendBuffer = false 105 | emitter.publish('buff', data) 106 | } else { 107 | emitter.publish('data', data) 108 | } 109 | } 110 | sendBuffer = false 111 | }) 112 | 113 | console.log('Listening for connections ...') 114 | } 115 | 116 | // Output our connection details. 117 | const sharelink = [ secret, relayUrl ].join('@') 118 | const qrcode = await QREncoder.toString(sharelink, { type:'terminal', small: true }) 119 | 120 | if (typeof opt.output === 'string') { 121 | const data = ec.encode(sharelink) 122 | writeFile(opt.output, data, { mode: 0o644 }) 123 | } else { 124 | console.log(qrcode, `\nShare Link: ${sharelink}`) 125 | } 126 | 127 | // Start main. 128 | main() 129 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nostr-terminal", 3 | "version": "1.0.0", 4 | "description": "Connect to your computer terminal remotely. Powered by Nostr.", 5 | "author": "Christopher Scott", 6 | "license": "MIT", 7 | "keywords": [ 8 | "nostr", 9 | "remote", 10 | "terminal", 11 | "ssh" 12 | ], 13 | "main": "./nostrTerm.js", 14 | "files": [ 15 | "README.md", 16 | "LICENSE", 17 | "dist" 18 | ], 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/cmdruid/nostr-terminal.git" 22 | }, 23 | "publishConfig": { 24 | "registry": "https://registry.npmjs.org", 25 | "access": "public" 26 | }, 27 | "dependencies": { 28 | "@cmdcode/nostr-emitter": "^2.0.9", 29 | "dotenv": "^16.0.3", 30 | "node-pty": "^0.10.1", 31 | "qrcode": "^1.5.1", 32 | "ws": "^8.12.0" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /web/ansi.js: -------------------------------------------------------------------------------- 1 | const ANSI = {} 2 | 3 | ANSI.esc = '\x1B' 4 | ANSI.ctl = '\x5B' 5 | ANSI.seq = ANSI.esc + ANSI.ctl 6 | 7 | ANSI.mov = { 8 | h: ANSI.seq + '\x48', 9 | b: '\x08', 10 | u: (x) => ANSI.seq + x + '\x41', 11 | d: (x) => ANSI.seq + x + '\x42', 12 | r: (x) => ANSI.seq + x + '\x43', 13 | l: (x) => ANSI.seq + x + '\x44', 14 | sav: ANSI.esc + '7', 15 | res: ANSI.esc + '8', 16 | db: (x) => ANSI.seq + x + '\x45', 17 | ub: (x) => ANSI.seq + x + '\x46' 18 | } 19 | 20 | ANSI.erase = { 21 | disp: ANSI.seq + '\x4B', 22 | line: ANSI.seq + '\x4B' 23 | } 24 | 25 | ANSI.key = { 26 | insert: (x, d) => ANSI.mov.sav + ANSI.mov.l(x) + ANSI.erase.line + d + ANSI.mov.res + ANSI.mov.r(1), 27 | return: ANSI.mov.db(1) 28 | } 29 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Nostr Terminal 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

Nostr Terminal

18 |

Connect to your computer terminal remotely. Powered by Nostr.

19 |
20 |
21 |
22 |
23 |
Paste the connection string from your node.
24 |
25 | 26 | 27 |
28 |
29 |
30 |
31 |
32 | 33 |

Terminal

34 | 35 |
36 |
37 |
38 |
39 |
40 |
41 |

This demo uses node-pty to access the terminal, xtermjs for
the console, and nostr emitter as the transport layer.

42 |

Check out the github readme on how to use the [ buff ] and [ live ] modes.

43 |

Sometimes the unpkg.com CDN fails to serve the xtermjs library. If the page
appears broken upon loading, try refreshing the page.

44 |

If something breaks, please submit an issue on the github page. :-)

45 |
46 |
47 |
48 |

49 | github-repo | 50 | nostr-emitter | 51 | node-pty | 52 | xterm.js 53 |

54 |
55 |
56 |
57 | 203 | 204 | 205 | -------------------------------------------------------------------------------- /web/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #21222b; 3 | color: whitesmoke; 4 | font-size: large; 5 | font-family: monospace; 6 | min-width: 770px; 7 | margin: 0; 8 | } 9 | 10 | h1 { 11 | font-size: x-large; 12 | } 13 | 14 | p { 15 | font-size: large; 16 | } 17 | 18 | h1, p { 19 | text-align: center; 20 | padding: 0 0.5rem 0 0.5rem; 21 | } 22 | 23 | pre { 24 | margin: 0; 25 | white-space: pre-wrap 26 | } 27 | 28 | input { 29 | flex-grow: 1; 30 | width: 100%; 31 | border: none; 32 | background-color: transparent; 33 | color: transparent; 34 | text-shadow: 0 0 0 rgb(255, 255, 255, 0.5); 35 | font-weight: bold; 36 | font-family: monospace; 37 | } 38 | 39 | input:focus { 40 | outline: none; 41 | } 42 | 43 | header { 44 | text-align: center; 45 | margin: 0 auto; 46 | padding: 1em; 47 | margin-bottom:2em; 48 | background-color: #2c4353; 49 | } 50 | 51 | section { 52 | margin: 0 auto; 53 | padding: 1rem; 54 | max-width: 60em; 55 | } 56 | 57 | button { 58 | cursor: pointer; 59 | border: none; 60 | min-width: 8rem; 61 | font-family: monospace; 62 | font-weight: bold; 63 | font-size: large; 64 | color: white; 65 | background-color: #88d441a9; 66 | text-align: center; 67 | } 68 | 69 | button::before { 70 | content: '[ '; 71 | } 72 | 73 | button::after { 74 | content: ' ]' 75 | } 76 | 77 | button:active { 78 | background-color: #3e8e41; 79 | box-shadow: 0 1px #666; 80 | transform: translateY(1px); 81 | } 82 | 83 | .container { 84 | margin-bottom: 2em; 85 | } 86 | 87 | .connect-window pre { 88 | text-align: center; 89 | } 90 | 91 | .connect-prompt { 92 | border: 1px dashed whitesmoke; 93 | margin-top: 0.5rem; 94 | padding: 0.25rem; 95 | display: flex; 96 | } 97 | 98 | .connect-prompt input { 99 | font-size: smaller; 100 | font-weight: normal; 101 | height: 1.5rem; 102 | color: white; 103 | } 104 | 105 | .title { 106 | display: flex; 107 | margin: 0 auto; 108 | justify-content: space-between; 109 | align-items: center; 110 | } 111 | 112 | .title span { 113 | width: 8rem; 114 | } 115 | 116 | .title span button { 117 | background-color: transparent; 118 | font-size: small; 119 | text-align: right; 120 | } 121 | 122 | .title span button:active { 123 | box-shadow: none; 124 | transform: none; 125 | } 126 | 127 | .container .title { 128 | background-color: #282a35; 129 | border: 1px solid #8b8b8b86; 130 | } 131 | 132 | .title p { 133 | font-weight: bold; 134 | color: rgb(96, 192, 101); 135 | height: 0.25rem; 136 | line-height: 0.25rem; 137 | flex-grow: 1; 138 | } 139 | 140 | .view-frame .title { 141 | border: none; 142 | width: 100%; 143 | border-bottom: 1px solid purple; 144 | } 145 | 146 | .view-frame { 147 | background-color: #282a35; 148 | border: 1px solid #8b8b8b86; 149 | display: flex; 150 | flex-direction: column; 151 | } 152 | 153 | :root { 154 | --retro-shadow: rgba(240, 46, 170, 0.4) 0 1px, rgba(240, 46, 170, 0.3) 0 2px, rgba(240, 46, 170, 0.2) 0 3px, rgba(240, 46, 170, 0.1) 0 4px, rgba(240, 46, 170, 0.05) 0 5px; 155 | } 156 | -------------------------------------------------------------------------------- /web/xterm.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2014 The xterm.js authors. All rights reserved. 3 | * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) 4 | * https://github.com/chjj/term.js 5 | * @license MIT 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | * 25 | * Originally forked from (with the author's permission): 26 | * Fabrice Bellard's javascript vt100 for jslinux: 27 | * http://bellard.org/jslinux/ 28 | * Copyright (c) 2011 Fabrice Bellard 29 | * The original design remains. The terminal itself 30 | * has been extended to include xterm CSI codes, among 31 | * other features. 32 | */ 33 | 34 | /** 35 | * Default styles for xterm.js 36 | */ 37 | 38 | .xterm { 39 | cursor: text; 40 | position: relative; 41 | user-select: none; 42 | -ms-user-select: none; 43 | -webkit-user-select: none; 44 | } 45 | 46 | .xterm.focus, 47 | .xterm:focus { 48 | outline: none; 49 | } 50 | 51 | .xterm .xterm-helpers { 52 | position: absolute; 53 | top: 0; 54 | /** 55 | * The z-index of the helpers must be higher than the canvases in order for 56 | * IMEs to appear on top. 57 | */ 58 | z-index: 5; 59 | } 60 | 61 | .xterm .xterm-helper-textarea { 62 | padding: 0; 63 | border: 0; 64 | margin: 0; 65 | /* Move textarea out of the screen to the far left, so that the cursor is not visible */ 66 | position: absolute; 67 | opacity: 0; 68 | left: -9999em; 69 | top: 0; 70 | width: 0; 71 | height: 0; 72 | z-index: -5; 73 | /** Prevent wrapping so the IME appears against the textarea at the correct position */ 74 | white-space: nowrap; 75 | overflow: hidden; 76 | resize: none; 77 | } 78 | 79 | .xterm .composition-view { 80 | /* TODO: Composition position got messed up somewhere */ 81 | background: #000; 82 | color: #FFF; 83 | display: none; 84 | position: absolute; 85 | white-space: nowrap; 86 | z-index: 1; 87 | } 88 | 89 | .xterm .composition-view.active { 90 | display: block; 91 | } 92 | 93 | .xterm .xterm-viewport { 94 | /* On OS X this is required in order for the scroll bar to appear fully opaque */ 95 | background-color: #000; 96 | overflow-y: auto; 97 | cursor: default; 98 | position: absolute; 99 | right: 0; 100 | left: 0; 101 | top: 1px; 102 | bottom: 0; 103 | } 104 | 105 | .xterm .xterm-screen { 106 | position: relative; 107 | padding: 0.5rem; 108 | } 109 | 110 | .xterm .xterm-screen canvas { 111 | position: absolute; 112 | left: 0; 113 | top: 0; 114 | } 115 | 116 | .xterm .xterm-scroll-area { 117 | visibility: hidden; 118 | } 119 | 120 | .xterm-char-measure-element { 121 | display: inline-block; 122 | visibility: hidden; 123 | position: absolute; 124 | top: 0; 125 | left: -9999em; 126 | line-height: normal; 127 | } 128 | 129 | .xterm.enable-mouse-events { 130 | /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */ 131 | cursor: default; 132 | } 133 | 134 | .xterm.xterm-cursor-pointer, 135 | .xterm .xterm-cursor-pointer { 136 | cursor: pointer; 137 | } 138 | 139 | .xterm.column-select.focus { 140 | /* Column selection mode */ 141 | cursor: crosshair; 142 | } 143 | 144 | .xterm .xterm-accessibility, 145 | .xterm .xterm-message { 146 | position: absolute; 147 | left: 0; 148 | top: 0; 149 | bottom: 0; 150 | right: 0; 151 | z-index: 10; 152 | color: transparent; 153 | } 154 | 155 | .xterm .live-region { 156 | position: absolute; 157 | left: -9999px; 158 | width: 1px; 159 | height: 1px; 160 | overflow: hidden; 161 | } 162 | 163 | .xterm-dim { 164 | opacity: 0.5; 165 | } 166 | 167 | .xterm-underline-1 { text-decoration: underline; } 168 | .xterm-underline-2 { text-decoration: double underline; } 169 | .xterm-underline-3 { text-decoration: wavy underline; } 170 | .xterm-underline-4 { text-decoration: dotted underline; } 171 | .xterm-underline-5 { text-decoration: dashed underline; } 172 | 173 | .xterm-strikethrough { 174 | text-decoration: line-through; 175 | } 176 | 177 | .xterm-screen .xterm-decoration-container .xterm-decoration { 178 | z-index: 6; 179 | position: absolute; 180 | } 181 | 182 | .xterm-decoration-overview-ruler { 183 | z-index: 7; 184 | position: absolute; 185 | top: 0; 186 | right: 0; 187 | pointer-events: none; 188 | } 189 | 190 | .xterm-decoration-top { 191 | z-index: 2; 192 | position: relative; 193 | } 194 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@cmdcode/nostr-emitter@^2.0.9": 6 | version "2.0.9" 7 | resolved "https://registry.yarnpkg.com/@cmdcode/nostr-emitter/-/nostr-emitter-2.0.9.tgz#7b1a0eafdc3647efdb188022c9fa1cbe4f94b183" 8 | integrity sha512-RP6BSi8iy8irrQt3pBTGN+4n2d8CmtT29P9f8R9sA7pnlal5460lQkd3y5EIpCjErBJmRM9P5/ITOyHKQJn82g== 9 | dependencies: 10 | "@noble/secp256k1" "^1.7.1" 11 | ws "^8.12.0" 12 | 13 | "@noble/secp256k1@^1.7.1": 14 | version "1.7.1" 15 | resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" 16 | integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== 17 | 18 | ansi-regex@^5.0.1: 19 | version "5.0.1" 20 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" 21 | integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== 22 | 23 | ansi-styles@^4.0.0: 24 | version "4.3.0" 25 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" 26 | integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== 27 | dependencies: 28 | color-convert "^2.0.1" 29 | 30 | camelcase@^5.0.0: 31 | version "5.3.1" 32 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" 33 | integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== 34 | 35 | cliui@^6.0.0: 36 | version "6.0.0" 37 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" 38 | integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== 39 | dependencies: 40 | string-width "^4.2.0" 41 | strip-ansi "^6.0.0" 42 | wrap-ansi "^6.2.0" 43 | 44 | color-convert@^2.0.1: 45 | version "2.0.1" 46 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" 47 | integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== 48 | dependencies: 49 | color-name "~1.1.4" 50 | 51 | color-name@~1.1.4: 52 | version "1.1.4" 53 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 54 | integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 55 | 56 | decamelize@^1.2.0: 57 | version "1.2.0" 58 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 59 | integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== 60 | 61 | dijkstrajs@^1.0.1: 62 | version "1.0.2" 63 | resolved "https://registry.yarnpkg.com/dijkstrajs/-/dijkstrajs-1.0.2.tgz#2e48c0d3b825462afe75ab4ad5e829c8ece36257" 64 | integrity sha512-QV6PMaHTCNmKSeP6QoXhVTw9snc9VD8MulTT0Bd99Pacp4SS1cjcrYPgBPmibqKVtMJJfqC6XvOXgPMEEPH/fg== 65 | 66 | dotenv@^16.0.3: 67 | version "16.0.3" 68 | resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" 69 | integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== 70 | 71 | emoji-regex@^8.0.0: 72 | version "8.0.0" 73 | resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" 74 | integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== 75 | 76 | encode-utf8@^1.0.3: 77 | version "1.0.3" 78 | resolved "https://registry.yarnpkg.com/encode-utf8/-/encode-utf8-1.0.3.tgz#f30fdd31da07fb596f281beb2f6b027851994cda" 79 | integrity sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw== 80 | 81 | find-up@^4.1.0: 82 | version "4.1.0" 83 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" 84 | integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== 85 | dependencies: 86 | locate-path "^5.0.0" 87 | path-exists "^4.0.0" 88 | 89 | get-caller-file@^2.0.1: 90 | version "2.0.5" 91 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" 92 | integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== 93 | 94 | is-fullwidth-code-point@^3.0.0: 95 | version "3.0.0" 96 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" 97 | integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== 98 | 99 | locate-path@^5.0.0: 100 | version "5.0.0" 101 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" 102 | integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== 103 | dependencies: 104 | p-locate "^4.1.0" 105 | 106 | nan@^2.14.0: 107 | version "2.17.0" 108 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" 109 | integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== 110 | 111 | node-pty@^0.10.1: 112 | version "0.10.1" 113 | resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-0.10.1.tgz#cd05d03a2710315ec40221232ec04186f6ac2c6d" 114 | integrity sha512-JTdtUS0Im/yRsWJSx7yiW9rtpfmxqxolrtnyKwPLI+6XqTAPW/O2MjS8FYL4I5TsMbH2lVgDb2VMjp+9LoQGNg== 115 | dependencies: 116 | nan "^2.14.0" 117 | 118 | p-limit@^2.2.0: 119 | version "2.3.0" 120 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" 121 | integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== 122 | dependencies: 123 | p-try "^2.0.0" 124 | 125 | p-locate@^4.1.0: 126 | version "4.1.0" 127 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" 128 | integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== 129 | dependencies: 130 | p-limit "^2.2.0" 131 | 132 | p-try@^2.0.0: 133 | version "2.2.0" 134 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" 135 | integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== 136 | 137 | path-exists@^4.0.0: 138 | version "4.0.0" 139 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" 140 | integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== 141 | 142 | pngjs@^5.0.0: 143 | version "5.0.0" 144 | resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-5.0.0.tgz#e79dd2b215767fd9c04561c01236df960bce7fbb" 145 | integrity sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw== 146 | 147 | qrcode@^1.5.1: 148 | version "1.5.1" 149 | resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.1.tgz#0103f97317409f7bc91772ef30793a54cd59f0cb" 150 | integrity sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg== 151 | dependencies: 152 | dijkstrajs "^1.0.1" 153 | encode-utf8 "^1.0.3" 154 | pngjs "^5.0.0" 155 | yargs "^15.3.1" 156 | 157 | require-directory@^2.1.1: 158 | version "2.1.1" 159 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 160 | integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== 161 | 162 | require-main-filename@^2.0.0: 163 | version "2.0.0" 164 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" 165 | integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== 166 | 167 | set-blocking@^2.0.0: 168 | version "2.0.0" 169 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 170 | integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== 171 | 172 | string-width@^4.1.0, string-width@^4.2.0: 173 | version "4.2.3" 174 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 175 | integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== 176 | dependencies: 177 | emoji-regex "^8.0.0" 178 | is-fullwidth-code-point "^3.0.0" 179 | strip-ansi "^6.0.1" 180 | 181 | strip-ansi@^6.0.0, strip-ansi@^6.0.1: 182 | version "6.0.1" 183 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 184 | integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== 185 | dependencies: 186 | ansi-regex "^5.0.1" 187 | 188 | which-module@^2.0.0: 189 | version "2.0.0" 190 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" 191 | integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== 192 | 193 | wrap-ansi@^6.2.0: 194 | version "6.2.0" 195 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" 196 | integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== 197 | dependencies: 198 | ansi-styles "^4.0.0" 199 | string-width "^4.1.0" 200 | strip-ansi "^6.0.0" 201 | 202 | ws@^8.12.0: 203 | version "8.12.0" 204 | resolved "https://registry.yarnpkg.com/ws/-/ws-8.12.0.tgz#485074cc392689da78e1828a9ff23585e06cddd8" 205 | integrity sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig== 206 | 207 | y18n@^4.0.0: 208 | version "4.0.3" 209 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" 210 | integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== 211 | 212 | yargs-parser@^18.1.2: 213 | version "18.1.3" 214 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" 215 | integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== 216 | dependencies: 217 | camelcase "^5.0.0" 218 | decamelize "^1.2.0" 219 | 220 | yargs@^15.3.1: 221 | version "15.4.1" 222 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" 223 | integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== 224 | dependencies: 225 | cliui "^6.0.0" 226 | decamelize "^1.2.0" 227 | find-up "^4.1.0" 228 | get-caller-file "^2.0.1" 229 | require-directory "^2.1.1" 230 | require-main-filename "^2.0.0" 231 | set-blocking "^2.0.0" 232 | string-width "^4.2.0" 233 | which-module "^2.0.0" 234 | y18n "^4.0.0" 235 | yargs-parser "^18.1.2" 236 | --------------------------------------------------------------------------------