symbols.js 1.88 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
'use strict';

const isWindows = process.platform === 'win32';
const colors = require('ansi-colors');
const utils = require('./utils');

const symbols = {
  ...colors.symbols,
  upDownDoubleArrow: '',
  upDownDoubleArrow2: '',
  upDownArrow: '',
  asterisk: '*',
  asterism: '',
  bulletWhite: '',
  electricArrow: '',
  ellipsisLarge: '',
  ellipsisSmall: '',
  fullBlock: '',
  identicalTo: '',
  indicator: colors.symbols.check,
  leftAngle: '',
  mark: '',
  minus: '',
  multiplication: '×',
  obelus: '÷',
  percent: '%',
  pilcrow: '',
  pilcrow2: '',
  pencilUpRight: '',
  pencilDownRight: '',
  pencilRight: '',
  plus: '+',
  plusMinus: '±',
  pointRight: '',
  rightAngle: '',
  section: '§',
  hexagon: { off: '', on: '', disabled: '' },
  ballot: { on: '', off: '', disabled: '' },
  stars: { on: '', off: '', disabled: '' },
  folder: { on: '', off: '', disabled: '' },
  prefix: {
    pending: colors.symbols.question,
    submitted: colors.symbols.check,
    cancelled: colors.symbols.cross
  },
  separator: {
    pending: colors.symbols.pointerSmall,
    submitted: colors.symbols.middot,
    cancelled: colors.symbols.middot
  },
  radio: {
    off: isWindows ? '( )' : '',
    on: isWindows ? '(*)' : '',
    disabled: isWindows ? '(|)' : ''
  },
  numbers: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']
};

symbols.merge = options => {
  let result = utils.merge({}, colors.symbols, symbols, options.symbols);
  delete result.merge;
  return result;
};

module.exports = symbols;