mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
97 lines
1.3 KiB
JavaScript
97 lines
1.3 KiB
JavaScript
"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"],
|
|
];
|
|
|
|
const commands = [
|
|
"/away",
|
|
"/back",
|
|
"/ban",
|
|
"/banlist",
|
|
"/close",
|
|
"/collapse",
|
|
"/connect",
|
|
"/ctcp",
|
|
"/deop",
|
|
"/devoice",
|
|
"/disconnect",
|
|
"/expand",
|
|
"/invite",
|
|
"/join",
|
|
"/kick",
|
|
"/leave",
|
|
"/me",
|
|
"/mode",
|
|
"/msg",
|
|
"/nick",
|
|
"/notice",
|
|
"/op",
|
|
"/part",
|
|
"/query",
|
|
"/quit",
|
|
"/raw",
|
|
"/say",
|
|
"/send",
|
|
"/server",
|
|
"/slap",
|
|
"/topic",
|
|
"/unban",
|
|
"/voice",
|
|
"/whois"
|
|
];
|
|
|
|
const actionTypes = [
|
|
"ban_list",
|
|
"invite",
|
|
"join",
|
|
"mode",
|
|
"kick",
|
|
"nick",
|
|
"part",
|
|
"quit",
|
|
"topic",
|
|
"topic_set_by",
|
|
"action",
|
|
"whois",
|
|
"ctcp",
|
|
"channel_list",
|
|
];
|
|
|
|
const condensedTypes = [
|
|
"join",
|
|
"part",
|
|
"quit",
|
|
"nick",
|
|
"kick",
|
|
"mode",
|
|
];
|
|
|
|
const timeFormats = {
|
|
msgDefault: "HH:mm",
|
|
msgWithSeconds: "HH:mm:ss"
|
|
};
|
|
|
|
module.exports = {
|
|
colorCodeMap: colorCodeMap,
|
|
commands: commands,
|
|
condensedTypes: condensedTypes,
|
|
condensedTypesQuery: "." + condensedTypes.join(", ."),
|
|
actionTypes: actionTypes,
|
|
timeFormats: timeFormats
|
|
};
|