From 57f64e9cc2670fd5cc5c16803890ab4e2fda6cbc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 19 Apr 2023 11:43:45 +0200 Subject: [PATCH] lib/irc: add formatURL --- components/buffer.js | 6 +++--- components/member-list.js | 3 +-- lib/irc.js | 11 +++++++++++ state.js | 14 +++----------- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/components/buffer.js b/components/buffer.js index 58cb464..a165c5a 100644 --- a/components/buffer.js +++ b/components/buffer.js @@ -2,7 +2,7 @@ import { html, Component } from "../lib/index.js"; import linkify from "../lib/linkify.js"; import * as irc from "../lib/irc.js"; import { strip as stripANSI } from "../lib/ansi.js"; -import { BufferType, ServerStatus, BufferEventsDisplayMode, getNickURL, getChannelURL, getMessageURL, isMessageBeforeReceipt, SettingsContext } from "../state.js"; +import { BufferType, ServerStatus, BufferEventsDisplayMode, getMessageURL, isMessageBeforeReceipt, SettingsContext } from "../state.js"; import * as store from "../store.js"; import Membership from "./membership.js"; @@ -23,7 +23,7 @@ function Nick(props) { let colorIndex = djb2(props.nick) % 16 + 1; return html` - ${props.nick} + ${props.nick} `; } @@ -103,7 +103,7 @@ class LogLine extends Component { } function createChannel(channel) { return html` - + ${channel} `; diff --git a/components/member-list.js b/components/member-list.js index 70847cf..d7fa439 100644 --- a/components/member-list.js +++ b/components/member-list.js @@ -1,5 +1,4 @@ import { html, Component } from "../lib/index.js"; -import { getNickURL } from "../state.js"; import { strip as stripANSI } from "../lib/ansi.js"; import Membership from "./membership.js"; import * as irc from "../lib/irc.js"; @@ -73,7 +72,7 @@ class MemberItem extends Component { return html`