hardlounge/client/js/constants.js

103 lines
1.3 KiB
JavaScript
Raw Normal View History

2017-04-18 07:42:26 +00:00
"use strict";
const colorCodeMap = [
["00", "White"],
["01", "Black"],
["02", "Blue"],
["03", "Green"],
["04", "Red"],
["05", "Brown"],
["06", "Magenta"],
["07", "Orange"],
["08", "Yellow"],
["09", "Light Green"],
["10", "Cyan"],
["11", "Light Cyan"],
["12", "Light Blue"],
["13", "Pink"],
["14", "Grey"],
["15", "Light Grey"],
];
2017-04-18 07:42:26 +00:00
const commands = [
"/as",
2017-04-18 07:42:26 +00:00
"/away",
"/back",
2017-04-24 10:40:53 +00:00
"/ban",
2017-04-18 07:42:26 +00:00
"/banlist",
"/bs",
2017-04-18 07:42:26 +00:00
"/close",
"/collapse",
2017-04-18 07:42:26 +00:00
"/connect",
"/cs",
"/ctcp",
"/cycle",
"/dehop",
2017-04-18 07:42:26 +00:00
"/deop",
"/devoice",
"/disconnect",
"/expand",
"/ho",
"/hop",
"/hs",
"/ignore",
"/ignorelist",
2017-04-18 07:42:26 +00:00
"/invite",
2019-04-14 11:44:44 +00:00
"/invitelist",
2017-04-18 07:42:26 +00:00
"/join",
"/kick",
"/leave",
2017-09-04 22:33:33 +00:00
"/list",
2017-04-18 07:42:26 +00:00
"/me",
"/mode",
"/ms",
2017-04-18 07:42:26 +00:00
"/msg",
"/nick",
"/notice",
"/ns",
2017-04-18 07:42:26 +00:00
"/op",
"/os",
2017-04-18 07:42:26 +00:00
"/part",
"/query",
"/quote",
2017-04-18 07:42:26 +00:00
"/quit",
"/raw",
"/rejoin",
"/rs",
2017-04-18 07:42:26 +00:00
"/say",
"/send",
"/server",
"/slap",
"/topic",
2017-04-24 10:40:53 +00:00
"/unban",
"/unignore",
2017-04-18 07:42:26 +00:00
"/voice",
"/whois",
2017-04-18 07:42:26 +00:00
];
2017-06-22 20:08:36 +00:00
const condensedTypes = [
"away",
"back",
2017-09-19 15:22:50 +00:00
"chghost",
2017-06-22 20:08:36 +00:00
"join",
"part",
"quit",
"nick",
"kick",
"mode",
2017-06-22 20:08:36 +00:00
];
const condensedTypesQuery = "." + condensedTypes.join(", .");
2017-06-22 20:08:36 +00:00
2017-05-06 18:44:57 +00:00
const timeFormats = {
msgDefault: "HH:mm",
msgWithSeconds: "HH:mm:ss",
2017-05-06 18:44:57 +00:00
};
2017-04-18 07:42:26 +00:00
module.exports = {
colorCodeMap,
commands,
condensedTypes,
condensedTypesQuery,
timeFormats,
2017-04-18 07:42:26 +00:00
};