Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | const isHyper = process.env.TERM_PROGRAM === 'Hyper';
|
---|
| 4 | const isWindows = process.platform === 'win32';
|
---|
| 5 | const isLinux = process.platform === 'linux';
|
---|
| 6 |
|
---|
| 7 | const common = {
|
---|
| 8 | ballotDisabled: '☒',
|
---|
| 9 | ballotOff: '☐',
|
---|
| 10 | ballotOn: '☑',
|
---|
| 11 | bullet: '•',
|
---|
| 12 | bulletWhite: '◦',
|
---|
| 13 | fullBlock: '█',
|
---|
| 14 | heart: '❤',
|
---|
| 15 | identicalTo: '≡',
|
---|
| 16 | line: '─',
|
---|
| 17 | mark: '※',
|
---|
| 18 | middot: '·',
|
---|
| 19 | minus: '-',
|
---|
| 20 | multiplication: '×',
|
---|
| 21 | obelus: '÷',
|
---|
| 22 | pencilDownRight: '✎',
|
---|
| 23 | pencilRight: '✏',
|
---|
| 24 | pencilUpRight: '✐',
|
---|
| 25 | percent: '%',
|
---|
| 26 | pilcrow2: '❡',
|
---|
| 27 | pilcrow: '¶',
|
---|
| 28 | plusMinus: '±',
|
---|
| 29 | section: '§',
|
---|
| 30 | starsOff: '☆',
|
---|
| 31 | starsOn: '★',
|
---|
| 32 | upDownArrow: '↕'
|
---|
| 33 | };
|
---|
| 34 |
|
---|
| 35 | const windows = Object.assign({}, common, {
|
---|
| 36 | check: '√',
|
---|
| 37 | cross: '×',
|
---|
| 38 | ellipsisLarge: '...',
|
---|
| 39 | ellipsis: '...',
|
---|
| 40 | info: 'i',
|
---|
| 41 | question: '?',
|
---|
| 42 | questionSmall: '?',
|
---|
| 43 | pointer: '>',
|
---|
| 44 | pointerSmall: '»',
|
---|
| 45 | radioOff: '( )',
|
---|
| 46 | radioOn: '(*)',
|
---|
| 47 | warning: '‼'
|
---|
| 48 | });
|
---|
| 49 |
|
---|
| 50 | const other = Object.assign({}, common, {
|
---|
| 51 | ballotCross: '✘',
|
---|
| 52 | check: '✔',
|
---|
| 53 | cross: '✖',
|
---|
| 54 | ellipsisLarge: '⋯',
|
---|
| 55 | ellipsis: '…',
|
---|
| 56 | info: 'ℹ',
|
---|
| 57 | question: '?',
|
---|
| 58 | questionFull: '?',
|
---|
| 59 | questionSmall: '﹖',
|
---|
| 60 | pointer: isLinux ? '▸' : '❯',
|
---|
| 61 | pointerSmall: isLinux ? '‣' : '›',
|
---|
| 62 | radioOff: '◯',
|
---|
| 63 | radioOn: '◉',
|
---|
| 64 | warning: '⚠'
|
---|
| 65 | });
|
---|
| 66 |
|
---|
| 67 | module.exports = (isWindows && !isHyper) ? windows : other;
|
---|
| 68 | Reflect.defineProperty(module.exports, 'common', { enumerable: false, value: common });
|
---|
| 69 | Reflect.defineProperty(module.exports, 'windows', { enumerable: false, value: windows });
|
---|
| 70 | Reflect.defineProperty(module.exports, 'other', { enumerable: false, value: other });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.