Compare commits
1 Commits
v1.0.0-bet
...
eslint-ext
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
488e11eddc |
@@ -2,7 +2,7 @@
|
||||
|
||||
A simple IRC web client.
|
||||
|
||||
<img src="https://codeberg.org/attachments/117ff232-7e73-46c7-a21d-2b59ffa3765a" alt="Screenshot" width="800">
|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ function _Timestamp({ date, url, showSeconds }) {
|
||||
if (showSeconds) {
|
||||
timestamp += ":--";
|
||||
}
|
||||
return html`<span class="timestamp">${timestamp}</span>`;
|
||||
return html`<spam class="timestamp">${timestamp}</span>`;
|
||||
}
|
||||
|
||||
let hh = date.getHours().toString().padStart(2, "0");
|
||||
@@ -274,15 +274,9 @@ class LogLine extends Component {
|
||||
break;
|
||||
case "TOPIC":
|
||||
let topic = msg.params[1];
|
||||
if (topic) {
|
||||
content = html`
|
||||
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
||||
`;
|
||||
} else {
|
||||
content = html`
|
||||
${createNick(msg.prefix.name)} cleared the topic
|
||||
`;
|
||||
}
|
||||
content = html`
|
||||
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
||||
`;
|
||||
break;
|
||||
case "INVITE":
|
||||
invitee = msg.params[0];
|
||||
|
||||
@@ -63,8 +63,7 @@ if (remoteHost) {
|
||||
ws.close();
|
||||
});
|
||||
|
||||
client.on("error", (err) => {
|
||||
console.log(err);
|
||||
client.on("error", () => {
|
||||
ws.close(WS_BAD_GATEWAY);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -26,8 +26,11 @@ export default [
|
||||
"eqeqeq": "error",
|
||||
"no-invalid-this": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"require-atomic-updates": "error",
|
||||
"no-implicit-coercion": "warn",
|
||||
"object-shorthand": "warn",
|
||||
//"sort-imports": ["warn", { ignoreMemberSort: true, allowSeparatedGroups: true }],
|
||||
//"func-style": ["warn", "declaration"],
|
||||
"@stylistic/js/indent": ["warn", "tab"],
|
||||
"@stylistic/js/quotes": ["warn", "double"],
|
||||
"@stylistic/js/semi": "warn",
|
||||
|
||||
2207
package-lock.json
generated
2207
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
"dependencies": {
|
||||
"htm": "^3.0.4",
|
||||
"linkifyjs": "^4.1.3",
|
||||
"preact": "^10.17.1"
|
||||
"preact": "10.17.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.11.1",
|
||||
|
||||
Reference in New Issue
Block a user