Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
147
node_modules/figures/index.js
generated
vendored
Normal file
147
node_modules/figures/index.js
generated
vendored
Normal file
|
@ -0,0 +1,147 @@
|
|||
'use strict';
|
||||
const escapeStringRegexp = require('escape-string-regexp');
|
||||
|
||||
const platform = process.platform;
|
||||
|
||||
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: '♥',
|
||||
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 win = {
|
||||
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,
|
||||
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' ? win : main;
|
||||
|
||||
const fn = str => {
|
||||
if (figures === main) {
|
||||
return str;
|
||||
}
|
||||
|
||||
Object.keys(main).forEach(key => {
|
||||
if (main[key] === figures[key]) {
|
||||
return;
|
||||
}
|
||||
|
||||
str = str.replace(new RegExp(escapeStringRegexp(main[key]), 'g'), figures[key]);
|
||||
});
|
||||
|
||||
return str;
|
||||
};
|
||||
|
||||
module.exports = Object.assign(fn, figures);
|
21
node_modules/figures/license
generated
vendored
Normal file
21
node_modules/figures/license
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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.
|
47
node_modules/figures/package.json
generated
vendored
Normal file
47
node_modules/figures/package.json
generated
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"name": "figures",
|
||||
"version": "2.0.0",
|
||||
"description": "Unicode symbols with Windows CMD fallbacks",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/figures",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava",
|
||||
"make": "./makefile.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"unicode",
|
||||
"cli",
|
||||
"cmd",
|
||||
"command-line",
|
||||
"characters",
|
||||
"char",
|
||||
"symbol",
|
||||
"symbols",
|
||||
"figure",
|
||||
"figures",
|
||||
"fallback"
|
||||
],
|
||||
"dependencies": {
|
||||
"escape-string-regexp": "^1.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"markdown-table": "^1.0.0",
|
||||
"require-uncached": "^1.0.2",
|
||||
"xo": "*"
|
||||
},
|
||||
"xo": {
|
||||
"esnext": true
|
||||
}
|
||||
}
|
120
node_modules/figures/readme.md
generated
vendored
Normal file
120
node_modules/figures/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,120 @@
|
|||
# figures [](https://travis-ci.org/sindresorhus/figures) [](https://ci.appveyor.com/project/sindresorhus/figures/branch/master)
|
||||
|
||||
> 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 --save figures
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
See the [source](index.js) for supported symbols.
|
||||
|
||||
```js
|
||||
const figures = require('figures');
|
||||
|
||||
console.log(figures('✔︎ check'));
|
||||
// On real OSes: ✔︎ check
|
||||
// On Windows: √ check
|
||||
|
||||
console.log(figures.tick);
|
||||
// On real OSes: ✔︎
|
||||
// On Windows: √
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### figures(input)
|
||||
|
||||
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.
|
||||
|
||||
#### input
|
||||
|
||||
Type: `string`
|
||||
|
||||
String where the unicode symbols will be replaced with fallback symbols depending on the OS.
|
||||
|
||||
|
||||
## Figures
|
||||
|
||||
| Name | Real OSes | 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 | ♥ | ♥ |
|
||||
| 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
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue