thelounge/client/js/constants.js

69 lines
911 B
JavaScript
Raw Normal View History

2017-04-18 09:42:26 +02: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 09:42:26 +02:00
const commands = [
"/away",
"/back",
2017-04-24 12:40:53 +02:00
"/ban",
2017-04-18 09:42:26 +02:00
"/banlist",
"/close",
"/collapse",
2017-04-18 09:42:26 +02:00
"/connect",
"/ctcp",
2017-04-18 09:42:26 +02:00
"/deop",
"/devoice",
"/disconnect",
"/expand",
2017-04-18 09:42:26 +02:00
"/invite",
"/join",
"/kick",
"/leave",
"/me",
"/mode",
"/msg",
"/nick",
"/notice",
"/op",
"/part",
"/query",
"/quit",
"/raw",
"/say",
"/send",
"/server",
"/slap",
"/topic",
2017-04-24 12:40:53 +02:00
"/unban",
2017-04-18 09:42:26 +02:00
"/voice",
"/whois"
];
2017-05-06 20:44:57 +02:00
const timeFormats = {
msgDefault: "HH:mm",
msgWithSeconds: "HH:mm:ss"
};
2017-04-18 09:42:26 +02:00
module.exports = {
colorCodeMap: colorCodeMap,
2017-05-06 20:44:57 +02:00
timeFormats: timeFormats,
2017-04-18 09:42:26 +02:00
commands: commands
};