Add a setting for seconds in timestamps
This commit is contained in:
parent
505a6fd5ab
commit
7cabb6f85b
4 changed files with 45 additions and 7 deletions
4
state.js
4
state.js
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue