mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-01 11:55:20 +01:00
71 lines
1.6 KiB
JavaScript
71 lines
1.6 KiB
JavaScript
|
'use strict';
|
|||
|
|
|||
|
const isHyper = process.env.TERM_PROGRAM === 'Hyper';
|
|||
|
const isWindows = process.platform === 'win32';
|
|||
|
const isLinux = process.platform === 'linux';
|
|||
|
|
|||
|
const common = {
|
|||
|
ballotDisabled: '☒',
|
|||
|
ballotOff: '☐',
|
|||
|
ballotOn: '☑',
|
|||
|
bullet: '•',
|
|||
|
bulletWhite: '◦',
|
|||
|
fullBlock: '█',
|
|||
|
heart: '❤',
|
|||
|
identicalTo: '≡',
|
|||
|
line: '─',
|
|||
|
mark: '※',
|
|||
|
middot: '·',
|
|||
|
minus: '-',
|
|||
|
multiplication: '×',
|
|||
|
obelus: '÷',
|
|||
|
pencilDownRight: '✎',
|
|||
|
pencilRight: '✏',
|
|||
|
pencilUpRight: '✐',
|
|||
|
percent: '%',
|
|||
|
pilcrow2: '❡',
|
|||
|
pilcrow: '¶',
|
|||
|
plusMinus: '±',
|
|||
|
section: '§',
|
|||
|
starsOff: '☆',
|
|||
|
starsOn: '★',
|
|||
|
upDownArrow: '↕'
|
|||
|
};
|
|||
|
|
|||
|
const windows = Object.assign({}, common, {
|
|||
|
check: '√',
|
|||
|
cross: '×',
|
|||
|
ellipsisLarge: '...',
|
|||
|
ellipsis: '...',
|
|||
|
info: 'i',
|
|||
|
question: '?',
|
|||
|
questionSmall: '?',
|
|||
|
pointer: '>',
|
|||
|
pointerSmall: '»',
|
|||
|
radioOff: '( )',
|
|||
|
radioOn: '(*)',
|
|||
|
warning: '‼'
|
|||
|
});
|
|||
|
|
|||
|
const other = Object.assign({}, common, {
|
|||
|
ballotCross: '✘',
|
|||
|
check: '✔',
|
|||
|
cross: '✖',
|
|||
|
ellipsisLarge: '⋯',
|
|||
|
ellipsis: '…',
|
|||
|
info: 'ℹ',
|
|||
|
question: '?',
|
|||
|
questionFull: '?',
|
|||
|
questionSmall: '﹖',
|
|||
|
pointer: isLinux ? '▸' : '❯',
|
|||
|
pointerSmall: isLinux ? '‣' : '›',
|
|||
|
radioOff: '◯',
|
|||
|
radioOn: '◉',
|
|||
|
warning: '⚠'
|
|||
|
});
|
|||
|
|
|||
|
module.exports = (isWindows && !isHyper) ? windows : other;
|
|||
|
Reflect.defineProperty(module.exports, 'common', { enumerable: false, value: common });
|
|||
|
Reflect.defineProperty(module.exports, 'windows', { enumerable: false, value: windows });
|
|||
|
Reflect.defineProperty(module.exports, 'other', { enumerable: false, value: other });
|