diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/figures')
5 files changed, 440 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/figures/index.d.ts b/sandbox/testAppNevena/Front/node_modules/figures/index.d.ts new file mode 100644 index 00000000..e770ef39 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/figures/index.d.ts @@ -0,0 +1,96 @@ +declare const figureSet: { + readonly tick: string; + readonly cross: string; + readonly star: string; + readonly square: string; + readonly squareSmall: string; + readonly squareSmallFilled: string; + readonly play: string; + readonly circle: string; + readonly circleFilled: string; + readonly circleDotted: string; + readonly circleDouble: string; + readonly circleCircle: string; + readonly circleCross: string; + readonly circlePipe: string; + readonly circleQuestionMark: string; + readonly bullet: string; + readonly dot: string; + readonly line: string; + readonly ellipsis: string; + readonly pointer: string; + readonly pointerSmall: string; + readonly info: string; + readonly warning: string; + readonly hamburger: string; + readonly smiley: string; + readonly mustache: string; + readonly heart: string; + readonly nodejs: string; + readonly arrowUp: string; + readonly arrowDown: string; + readonly arrowLeft: string; + readonly arrowRight: string; + readonly radioOn: string; + readonly radioOff: string; + readonly checkboxOn: string; + readonly checkboxOff: string; + readonly checkboxCircleOn: string; + readonly checkboxCircleOff: string; + readonly questionMarkPrefix: string; + readonly oneHalf: string; + readonly oneThird: string; + readonly oneQuarter: string; + readonly oneFifth: string; + readonly oneSixth: string; + readonly oneSeventh: string; + readonly oneEighth: string; + readonly oneNinth: string; + readonly oneTenth: string; + readonly twoThirds: string; + readonly twoFifths: string; + readonly threeQuarters: string; + readonly threeFifths: string; + readonly threeEighths: string; + readonly fourFifths: string; + readonly fiveSixths: string; + readonly fiveEighths: string; + readonly sevenEighth: string; +} + +type FigureSet = typeof figureSet + +declare const figures: { + /** + Replace Unicode symbols depending on the OS. + + @param string - String where the Unicode symbols will be replaced with fallback symbols depending on the OS. + @returns The input with replaced fallback Unicode symbols on Windows. + + @example + ``` + import figures = require('figures'); + + console.log(figures('✔︎ check')); + // On non-Windows OSes: ✔︎ check + // On Windows: √ check + + console.log(figures.tick); + // On non-Windows OSes: ✔︎ + // On Windows: √ + ``` + */ + (string: string): string; + + /** + Symbols to use when not running on Windows. + */ + readonly main: FigureSet; + + /** + Symbols to use when running on Windows. + */ + readonly windows: FigureSet; +} & FigureSet; + +export = figures; diff --git a/sandbox/testAppNevena/Front/node_modules/figures/index.js b/sandbox/testAppNevena/Front/node_modules/figures/index.js new file mode 100644 index 00000000..2cbe2db9 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/figures/index.js @@ -0,0 +1,151 @@ +'use strict'; +const escapeStringRegexp = require('escape-string-regexp'); + +const {platform} = process; + +const main = { + tick: '✔', + cross: '✖', + star: '★', + square: '▇', + squareSmall: '◻', + squareSmallFilled: '◼', + play: '▶', + circle: '◯', + circleFilled: '◉', + circleDotted: '◌', + circleDouble: '◎', + circleCircle: 'ⓞ', + circleCross: 'ⓧ', + circlePipe: 'Ⓘ', + circleQuestionMark: '?⃝', + bullet: '●', + dot: '․', + line: '─', + ellipsis: '…', + pointer: '❯', + pointerSmall: '›', + info: 'ℹ', + warning: '⚠', + hamburger: '☰', + smiley: '㋡', + mustache: '෴', + heart: '♥', + nodejs: '⬢', + arrowUp: '↑', + arrowDown: '↓', + arrowLeft: '←', + arrowRight: '→', + radioOn: '◉', + radioOff: '◯', + checkboxOn: '☒', + checkboxOff: '☐', + checkboxCircleOn: 'ⓧ', + checkboxCircleOff: 'Ⓘ', + questionMarkPrefix: '?⃝', + oneHalf: '½', + oneThird: '⅓', + oneQuarter: '¼', + oneFifth: '⅕', + oneSixth: '⅙', + oneSeventh: '⅐', + oneEighth: '⅛', + oneNinth: '⅑', + oneTenth: '⅒', + twoThirds: '⅔', + twoFifths: '⅖', + threeQuarters: '¾', + threeFifths: '⅗', + threeEighths: '⅜', + fourFifths: '⅘', + fiveSixths: '⅚', + fiveEighths: '⅝', + sevenEighths: '⅞' +}; + +const windows = { + tick: '√', + cross: '×', + star: '*', + square: '█', + squareSmall: '[ ]', + squareSmallFilled: '[█]', + play: '►', + circle: '( )', + circleFilled: '(*)', + circleDotted: '( )', + circleDouble: '( )', + circleCircle: '(○)', + circleCross: '(×)', + circlePipe: '(│)', + circleQuestionMark: '(?)', + bullet: '*', + dot: '.', + line: '─', + ellipsis: '...', + pointer: '>', + pointerSmall: '»', + info: 'i', + warning: '‼', + hamburger: '≡', + smiley: '☺', + mustache: '┌─┐', + heart: main.heart, + nodejs: '♦', + arrowUp: main.arrowUp, + arrowDown: main.arrowDown, + arrowLeft: main.arrowLeft, + arrowRight: main.arrowRight, + radioOn: '(*)', + radioOff: '( )', + checkboxOn: '[×]', + checkboxOff: '[ ]', + checkboxCircleOn: '(×)', + checkboxCircleOff: '( )', + questionMarkPrefix: '?', + oneHalf: '1/2', + oneThird: '1/3', + oneQuarter: '1/4', + oneFifth: '1/5', + oneSixth: '1/6', + oneSeventh: '1/7', + oneEighth: '1/8', + oneNinth: '1/9', + oneTenth: '1/10', + twoThirds: '2/3', + twoFifths: '2/5', + threeQuarters: '3/4', + threeFifths: '3/5', + threeEighths: '3/8', + fourFifths: '4/5', + fiveSixths: '5/6', + fiveEighths: '5/8', + sevenEighths: '7/8' +}; + +if (platform === 'linux') { + // The main one doesn't look that good on Ubuntu. + main.questionMarkPrefix = '?'; +} + +const figures = platform === 'win32' ? windows : main; + +const fn = string => { + if (figures === main) { + return string; + } + + for (const [key, value] of Object.entries(main)) { + if (value === figures[key]) { + continue; + } + + string = string.replace(new RegExp(escapeStringRegexp(value), 'g'), figures[key]); + } + + return string; +}; + +module.exports = Object.assign(fn, figures); +module.exports.main = main; +module.exports.windows = windows; diff --git a/sandbox/testAppNevena/Front/node_modules/figures/license b/sandbox/testAppNevena/Front/node_modules/figures/license new file mode 100644 index 00000000..fa7ceba3 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/figures/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/sandbox/testAppNevena/Front/node_modules/figures/package.json b/sandbox/testAppNevena/Front/node_modules/figures/package.json new file mode 100644 index 00000000..ee3b3df8 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/figures/package.json @@ -0,0 +1,45 @@ +{ + "name": "figures", + "version": "3.2.0", + "description": "Unicode symbols with Windows CMD fallbacks", + "license": "MIT", + "repository": "sindresorhus/figures", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "make": "./makefile.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "unicode", + "cli", + "cmd", + "command-line", + "characters", + "symbol", + "symbols", + "figure", + "figures", + "fallback" + ], + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "devDependencies": { + "ava": "^1.4.1", + "markdown-table": "^1.1.2", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } +} diff --git a/sandbox/testAppNevena/Front/node_modules/figures/readme.md b/sandbox/testAppNevena/Front/node_modules/figures/readme.md new file mode 100644 index 00000000..22d3620a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/figures/readme.md @@ -0,0 +1,139 @@ +# figures [](https://travis-ci.org/sindresorhus/figures) + +> Unicode symbols with Windows CMD fallbacks + +[](index.js) + +[*and more...*](index.js) + +Windows CMD only supports a [limited character set](http://en.wikipedia.org/wiki/Code_page_437). + +## Install + +``` +$ npm install figures +``` + +## Usage + +See the [source](index.js) for supported symbols. + +```js +const figures = require('figures'); + +console.log(figures('✔︎ check')); +// On non-Windows OSes: ✔︎ check +// On Windows: √ check + +console.log(figures.tick); +// On non-Windows OSes: ✔︎ +// On Windows: √ + +console.log(figures.main.tick); +// On all OSes: ✔︎ + +console.log(figures.windows.tick); +// On all OSes: √ +``` + +## API + +### figures(string) + +Returns the input with replaced fallback Unicode symbols on Windows. + +All the below [figures](#figures) are attached to the main export as shown in the example above. + +#### string + +Type: `string` + +String where the Unicode symbols will be replaced with fallback symbols depending on the OS. + +### figures.main + +Symbols to use when not running on Windows. + +### figures.windows + +Symbols to use when running on Windows. + + +## Figures + +| Name | Non-Windows | Windows | +| ------------------ | :---------: | :-----: | +| tick | ✔ | √ | +| cross | ✖ | × | +| star | ★ | * | +| square | ▇ | █ | +| squareSmall | ◻ | [ ] | +| squareSmallFilled | ◼ | [█] | +| play | ▶ | ► | +| circle | ◯ | ( ) | +| circleFilled | ◉ | (*) | +| circleDotted | ◌ | ( ) | +| circleDouble | ◎ | ( ) | +| circleCircle | ⓞ | (○) | +| circleCross | ⓧ | (×) | +| circlePipe | Ⓘ | (│) | +| circleQuestionMark | ?⃝ | (?) | +| bullet | ● | * | +| dot | ․ | . | +| line | ─ | ─ | +| ellipsis | … | ... | +| pointer | ❯ | > | +| pointerSmall | › | » | +| info | ℹ | i | +| warning | ⚠ | ‼ | +| hamburger | ☰ | ≡ | +| smiley | ㋡ | ☺ | +| mustache | ෴ | ┌─┐ | +| heart | ♥ | ♥ | +| nodejs | ⬢ | ♦ | +| arrowUp | ↑ | ↑ | +| arrowDown | ↓ | ↓ | +| arrowLeft | ← | ← | +| arrowRight | → | → | +| radioOn | ◉ | (*) | +| radioOff | ◯ | ( ) | +| checkboxOn | ☒ | [×] | +| checkboxOff | ☐ | [ ] | +| checkboxCircleOn | ⓧ | (×) | +| checkboxCircleOff | Ⓘ | ( ) | +| questionMarkPrefix | ?⃝ | ? | +| oneHalf | ½ | 1/2 | +| oneThird | ⅓ | 1/3 | +| oneQuarter | ¼ | 1/4 | +| oneFifth | ⅕ | 1/5 | +| oneSixth | ⅙ | 1/6 | +| oneSeventh | ⅐ | 1/7 | +| oneEighth | ⅛ | 1/8 | +| oneNinth | ⅑ | 1/9 | +| oneTenth | ⅒ | 1/10 | +| twoThirds | ⅔ | 2/3 | +| twoFifths | ⅖ | 2/5 | +| threeQuarters | ¾ | 3/4 | +| threeFifths | ⅗ | 3/5 | +| threeEighths | ⅜ | 3/8 | +| fourFifths | ⅘ | 4/5 | +| fiveSixths | ⅚ | 5/6 | +| fiveEighths | ⅝ | 5/8 | +| sevenEighths | ⅞ | 7/8 | + + +## Related + +- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels + +--- + +<div align="center"> + <b> + <a href="https://tidelift.com/subscription/pkg/npm-figures?utm_source=npm-figures&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> + </b> + <br> + <sub> + Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. + </sub> +</div> |