Add a setting for seconds in timestamps

This commit is contained in:
Simon Ser 2022-06-27 16:34:41 +02:00
parent 505a6fd5ab
commit 7cabb6f85b
4 changed files with 45 additions and 7 deletions

View file

@ -1,5 +1,6 @@
import * as irc from "./lib/irc.js";
import Client from "./lib/client.js";
import { createContext } from "../lib/index.js";
export const SERVER_BUFFER = "*";
@ -40,6 +41,8 @@ export const BufferEventsDisplayMode = {
HIDE: "hide",
};
export const SettingsContext = createContext("settings");
export function getNickURL(nick) {
return "irc:///" + encodeURIComponent(nick) + ",isuser";
}
@ -216,6 +219,7 @@ export const State = {
activeBuffer: null,
bouncerNetworks: new Map(),
settings: {
secondsInTimestamps: true,
bufferEvents: BufferEventsDisplayMode.FOLD,
},
};