Rebrand to Hard Lounge

This commit is contained in:
hgw 2023-10-09 10:28:14 +00:00
parent bf6baa541b
commit 020e5d3490
Signed by: hgw
SSH Key Fingerprint: SHA256:diG7RVYHjd3aDYkZWHYcBJbImu+6zfptuUP+3k/wol4
34 changed files with 105 additions and 103 deletions

View File

@ -2,17 +2,17 @@ FROM node:lts-alpine
RUN apk add --no-cache --virtual=build-dependencies build-base git python3-dev && \
apk add --no-cache yarn
USER node
WORKDIR /var/opt/thelounge-src
ENV THELOUNGE_HOME /var/opt/thelounge
WORKDIR /var/opt/hardlounge-src
ENV THELOUNGE_HOME /var/opt/hardlounge
COPY . .
#RUN git clone https://git.supernets.org/supernets/thelounge.git --depth 1 .
#RUN git clone https://git.supernets.org/supernets/hardlounge.git --depth 1 .
RUN yarn install && \
NODE_ENV=production yarn build && \
yarn link && \
yarn --non-interactive cache clean && \
ln -s /var/opt/thelounge-src/index.js /var/opt/thelounge-src/thelounge
ln -s /var/opt/hardlounge-src/index.js /var/opt/hardlounge-src/hardlounge
USER root
RUN apk del --purge build-dependencies
USER node
EXPOSE 9000
CMD ["/var/opt/thelounge-src/thelounge", "start"]
CMD ["/var/opt/hardlounge-src/hardlounge", "start"]

View File

@ -129,7 +129,7 @@ export default defineComponent({
store.commit("sidebarOpen", storage.get("thelounge.state.sidebar") !== "false");
}
// If The Lounge is opened on a small screen (less than 1024px), and we don't have stored
// If Hard Lounge is opened on a small screen (less than 1024px), and we don't have stored
// user list state, close it by default
if (viewportWidth >= 1024 && isUserlistOpen !== "true" && isUserlistOpen !== "false") {
isUserlistOpen = "true";

View File

@ -251,7 +251,7 @@
autocomplete="off"
class="input"
name="leaveMessage"
placeholder="The Lounge - https://thelounge.chat"
placeholder="Hard Lounge - https://thelounge.chat"
/>
</div>
<template v-if="defaults.uuid && !store.state.serverConfiguration?.public">
@ -390,7 +390,7 @@ the server tab on new connection"
</div>
</template>
<div v-else-if="defaults.sasl === 'external'" class="connect-sasl-external">
<p>The Lounge automatically generates and manages the client certificate.</p>
<p>Hard Lounge automatically generates and manages the client certificate.</p>
<p>
On the IRC server, you will need to tell the services to attach the
certificate fingerprint (certfp) to your account, for example:

View File

@ -8,7 +8,7 @@
class="btn"
@click.prevent="nativeInstallPrompt"
>
Add The Lounge to Home screen
Add Hard Lounge to Home screen
</button>
<button
v-if="canRegisterProtocol"
@ -16,7 +16,7 @@
class="btn"
@click.prevent="registerProtocol"
>
Open irc:// URLs with The Lounge
Open irc:// URLs with Hard Lounge
</button>
</div>
<div v-if="store.state.serverConfiguration?.fileUpload">
@ -82,7 +82,7 @@
type="text"
name="awayMessage"
class="input"
placeholder="Away message if The Lounge is not open"
placeholder="Away message if Hard Lounge is not open"
/>
</label>
</div>
@ -157,9 +157,9 @@ export default defineComponent({
const uri = document.location.origin + document.location.pathname + "?uri=%s";
// @ts-expect-error
// the third argument is deprecated but recommended for compatibility: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler
window.navigator.registerProtocolHandler("irc", uri, "The Lounge");
window.navigator.registerProtocolHandler("irc", uri, "Hard Lounge");
// @ts-expect-error
window.navigator.registerProtocolHandler("ircs", uri, "The Lounge");
window.navigator.registerProtocolHandler("ircs", uri, "Hard Lounge");
};
return {

View File

@ -16,7 +16,7 @@
/>
<span
v-if="isDevelopment"
title="The Lounge has been built in development mode"
title="Hard Lounge has been built in development mode"
:style="{
backgroundColor: '#ff9e18',
color: '#000',

View File

@ -2,7 +2,7 @@
<div id="version-checker" :class="[store.state.versionStatus]">
<p v-if="store.state.versionStatus === 'loading'">Checking for updates</p>
<p v-if="store.state.versionStatus === 'new-version'">
The Lounge <b>{{ store.state.versionData?.latest.version }}</b>
Hard Lounge <b>{{ store.state.versionData?.latest.version }}</b>
<template v-if="store.state.versionData?.latest.prerelease"> (pre-release) </template>
is now available.
<br />
@ -12,11 +12,11 @@
</a>
</p>
<p v-if="store.state.versionStatus === 'new-packages'">
The Lounge is up to date, but there are out of date packages Run
Hard Lounge is up to date, but there are out of date packages Run
<code>thelounge upgrade</code> on the server to upgrade packages.
</p>
<template v-if="store.state.versionStatus === 'up-to-date'">
<p>The Lounge is up to date!</p>
<p>Hard Lounge is up to date!</p>
<button
v-if="store.state.versionDataExpired"

View File

@ -7,7 +7,7 @@
<h1 class="title">Help</h1>
<h2 class="help-version-title">
<span>About The Lounge: Hard Chats Edition</span>
<span>About Hard Lounge</span>
<small>
v{{ store.state.serverConfiguration?.version }} (<router-link
id="view-changelog"
@ -21,7 +21,7 @@
<VersionChecker />
<p>
<a
href="https://git.supernets.org/supernets/thelounge/"
href="https://git.supernets.org/supernets/hardlounge/"
target="_blank"
rel="noopener"
class="website-link"
@ -39,7 +39,7 @@
</p>
<p>
<a
href="https://git.supernets.org/supernets/thelounge/issues/new"
href="https://git.supernets.org/supernets/hardlounge/issues/new"
target="_blank"
rel="noopener"
class="report-issue-link"
@ -592,7 +592,7 @@
</div>
<div class="description">
<p>
Send an action message to the current channel. The Lounge will display it
Send an action message to the current channel. Hard Lounge will display it
inline, as if the message was posted in the third person.
</p>
</div>

View File

@ -4,14 +4,14 @@
<img
src="img/logo-vertical-transparent-bg.svg"
class="logo"
alt="The Lounge"
alt="Hard Lounge"
width="256"
height="170"
/>
<img
src="img/logo-vertical-transparent-bg-inverted.svg"
class="logo-inverted"
alt="The Lounge"
alt="Hard Lounge"
width="256"
height="170"
/>

View File

@ -16,7 +16,7 @@
<% }); %>
<style id="user-specified-css"></style>
<title>The Lounge</title>
<title>Hard Lounge</title>
<!-- Browser tab icon -->
<link id="favicon" rel="icon" sizes="16x16 32x32 64x64" href="favicon.ico" data-other="img/favicon-alerted.ico" type="image/x-icon">
@ -36,7 +36,7 @@
<link rel="apple-touch-icon" sizes="180x180" href="img/logo-grey-bg-180x180px.png">
<!-- Windows 8/10 - Edge tiles -->
<meta name="application-name" content="The Lounge">
<meta name="application-name" content="Hard Lounge">
<meta name="msapplication-TileColor" content="<%- themeColor %>">
<meta name="msapplication-square70x70logo" content="img/logo-grey-bg-120x120px.png">
<meta name="msapplication-square150x150logo" content="img/logo-grey-bg-152x152px.png">
@ -54,7 +54,7 @@
<div id="loading-status-container">
<img src="img/logo-vertical-transparent-bg.svg" class="logo" alt="" width="256" height="170">
<img src="img/logo-vertical-transparent-bg-inverted.svg" class="logo-inverted" alt="" width="256" height="170">
<p id="loading-page-message">The Lounge requires a modern browser with JavaScript enabled.</p>
<p id="loading-page-message">Hard Lounge requires a modern browser with JavaScript enabled.</p>
</div>
<div id="loading-reload-container">
<p id="loading-slow">This is taking longer than it should, there might be connectivity issues.</p>

View File

@ -33,7 +33,7 @@ function handleDisconnect(data) {
if (!socket.io.reconnection()) {
store.commit(
"currentUserVisibleError",
`Disconnected from the server (${message}), The Lounge does not reconnect in public mode.`
`Disconnected from the server (${message}), Hard Lounge does not reconnect in public mode.`
);
updateLoadingMessage();
return;

View File

@ -83,7 +83,7 @@ function loadFromLocalStorage() {
return {};
}
// Older The Lounge versions converted highlights to an array, turn it back into a string
// Older Hard Lounge versions converted highlights to an array, turn it back into a string
if (storedSettings.highlights !== null && typeof storedSettings.highlights === "object") {
storedSettings.highlights = storedSettings.highlights.join(", ");
}

View File

@ -155,8 +155,8 @@ class Uploader {
// Tell the server that we are still upload to this token
// so it does not become invalidated and fail the upload.
// This issue only happens if The Lounge is proxied through other software
// as it may buffer the upload before the upload request will be processed by The Lounge.
// This issue only happens if Hard Lounge is proxied through other software
// as it may buffer the upload before the upload request will be processed by Hard Lounge.
this.tokenKeepAlive = setInterval(() => socket.emit("upload:ping", token), 40 * 1000);
if (

View File

@ -1,5 +1,5 @@
// @ts-nocheck
// The Lounge - https://github.com/thelounge/thelounge
// Hard Lounge - https://github.com/thelounge/thelounge
/* global clients */
"use strict";

View File

@ -1,6 +1,6 @@
{
"name": "The Lounge",
"short_name": "The Lounge",
"name": "Hard Lounge",
"short_name": "Hard Lounge",
"description": "Self-hosted web IRC client",
"start_url": ".",
"display": "standalone",

View File

@ -5,7 +5,7 @@ module.exports = {
// ### `public`
//
// When set to `true`, The Lounge starts in public mode. When set to `false`,
// When set to `true`, Hard Lounge starts in public mode. When set to `false`,
// it starts in private mode.
//
// - A **public server** does not require authentication. Anyone can connect
@ -45,7 +45,7 @@ module.exports = {
// ### `reverseProxy`
//
// When set to `true`, The Lounge is marked as served behind a reverse proxy
// When set to `true`, Hard Lounge is marked as served behind a reverse proxy
// and will honor the `X-Forwarded-For` header.
//
// This value is set to `false` by default.
@ -62,7 +62,7 @@ module.exports = {
// ### `https`
//
// These settings are used to run The Lounge's web server using encrypted TLS.
// These settings are used to run Hard Lounge's web server using encrypted TLS.
//
// If you want more control over the webserver,
// [use a reverse proxy instead](https://thelounge.chat/docs/guides/reverse-proxies).
@ -91,11 +91,11 @@ module.exports = {
// Set the default theme to serve to new users. They will be able to select a
// different one in their client settings among those available.
//
// The Lounge ships with two themes (`default` and `morning`) and can be
// Hard Lounge ships with two themes (`default` and `morning`) and can be
// extended by installing more themes. Read more about how to manage them
// [here](https://thelounge.chat/docs/guides/theme-creation).
//
// The Lounge: Hard Chats Edition also shiped with an OLED theme which
// Hard Lounge also shiped with an OLED theme which
// Is FAR better than either of the default themes. The default themes are
// blowjobs.
//
@ -108,7 +108,7 @@ module.exports = {
// ### `prefetch`
//
// When set to `true`, The Lounge will load thumbnails and site descriptions
// When set to `true`, Hard Lounge will load thumbnails and site descriptions
// from URLs posted in channels and private messages.
//
// This value is set to `false` by default.
@ -116,10 +116,10 @@ module.exports = {
// ### `disableMediaPreview`
//
// When set to `true`, The Lounge will not preview media (images, video and
// When set to `true`, Hard Lounge will not preview media (images, video and
// audio) hosted on third-party sites. This ensures the client does not
// make any requests to external sites. If `prefetchStorage` is enabled,
// images proxied via the The Lounge will be previewed.
// images proxied via the Hard Lounge will be previewed.
//
// This has no effect if `prefetch` is set to `false`.
//
@ -128,19 +128,19 @@ module.exports = {
// ### `prefetchStorage`
// When set to `true`, The Lounge will store and proxy prefetched images and
// When set to `true`, Hard Lounge will store and proxy prefetched images and
// thumbnails on the filesystem rather than directly display the content at
// the original URLs.
//
// This option primarily exists to resolve mixed content warnings by not
// loading images from http hosts. This option does not work for video
// or audio as The Lounge will only load these from https hosts.
// or audio as Hard Lounge will only load these from https hosts.
//
// If storage is enabled, The Lounge will fetch and store images and thumbnails
// If storage is enabled, Hard Lounge will fetch and store images and thumbnails
// in the `${THELOUNGE_HOME}/storage` folder.
//
// Images are deleted when they are no longer referenced by any message
// (controlled by `maxHistory`), and the folder is cleaned up when The Lounge
// (controlled by `maxHistory`), and the folder is cleaned up when Hard Lounge
// restarts.
//
// This value is set to `false` by default.
@ -167,11 +167,11 @@ module.exports = {
// ### `prefetchTimeout`
//
// When `prefetch` is enabled, this value sets the number of milliseconds
// before The Lounge gives up attempting to fetch a link. This can be useful
// before Hard Lounge gives up attempting to fetch a link. This can be useful
// if you've increased the `prefetchMaxImageSize`.
//
// Take caution, however, that an inordinately large value may lead to
// performance issues or even a denial of service, since The Lounge will not
// performance issues or even a denial of service, since Hard Lounge will not
// be able to clean up outgoing connections as quickly. Usually the default
// value is appropriate, so only change it if necessary.
//
@ -180,10 +180,10 @@ module.exports = {
// ### `fileUpload`
//
// Allow uploading files to the server hosting The Lounge.
// Allow uploading files to the server hosting Hard Lounge.
//
// Files are stored in the `${THELOUNGE_HOME}/uploads` folder, do not expire,
// and are not removed by The Lounge. This may cause issues depending on your
// and are not removed by Hard Lounge. This may cause issues depending on your
// hardware, for example in terms of disk usage.
//
// The available keys for the `fileUpload` object are:
@ -198,7 +198,7 @@ module.exports = {
// you can set this option to `"https://example.com/folder/"` and the final URL
// would look like `"https://example.com/folder/aabbccddeeff1234/name.png"`.
// If you use this option, you must have a reverse proxy configured,
// to correctly proxy the uploads URLs back to The Lounge.
// to correctly proxy the uploads URLs back to Hard Lounge.
// This value is set to `null` by default.
fileUpload: {
enable: false,
@ -218,9 +218,9 @@ module.exports = {
// Set users' default `quit` and `part` messages if they are not providing
// one.
//
// This value is set to `"The Lounge - https://thelounge.chat"` by
// This value is set to `"Hard Lounge - https://thelounge.chat"` by
// default.
leaveMessage: "The Lounge: Hard Chats Edition - https://git.supernets.org/supernets/thelounge",
leaveMessage: "Hard Lounge - https://git.supernets.org/supernets/hardlounge",
// ## Default network
@ -231,7 +231,7 @@ module.exports = {
//
// The available keys for the `defaults` object are:
//
// - `name`: Name to display in the channel list of The Lounge. This value is
// - `name`: Name to display in the channel list of Hard Lounge. This value is
// not forwarded to the IRC network.
// - `host`: IP address or hostname of the IRC server.
// - `port`: Usually 6667 for unencrypted connections and 6697 for
@ -249,7 +249,7 @@ module.exports = {
// - `leaveMessage`: Network specific leave message (overrides global leaveMessage)
// - `join`: Comma-separated list of channels to auto-join once connected.
//
// This value is set to connect to the official channel of The Lounge on
// This value is set to connect to the official channel of Hard Lounge on
// Libera.Chat by default:
//
// ```js
@ -262,7 +262,7 @@ module.exports = {
// rejectUnauthorized: true,
// nick: "thelounge%%",
// username: "thelounge",
// realname: "The Lounge User",
// realname: "Hard Lounge User",
// join: "#thelounge"
// }
// ```
@ -277,8 +277,7 @@ module.exports = {
username: "webchat",
realname: "",
join: "#superbowl",
leaveMessage:
"The Lounge: Hard Chats Edition - https://git.supernets.org/supernets/thelounge",
leaveMessage: "Hard Lounge - https://git.supernets.org/supernets/hardlounge",
},
// ### `lockNetwork`
@ -294,7 +293,7 @@ module.exports = {
// ### `messageStorage`
// The Lounge can log user messages, for example to access them later or to
// Hard Lounge can log user messages, for example to access them later or to
// reload messages on server restart.
// Set this array with one or multiple values to enable logging:
@ -322,9 +321,9 @@ module.exports = {
// ## WEBIRC support
//
// When enabled, The Lounge will pass the connecting user's host and IP to the
// When enabled, Hard Lounge will pass the connecting user's host and IP to the
// IRC server. Note that this requires to obtain a password from the IRC
// network that The Lounge will be connecting to and generally involves a lot
// network that Hard Lounge will be connecting to and generally involves a lot
// of trust from the network you are connecting to.
//
// There are 2 ways to configure the `webirc` setting:
@ -361,7 +360,7 @@ module.exports = {
// ### `identd`
//
// Run The Lounge with `identd` support.
// Run Hard Lounge with `identd` support.
//
// The available keys for the `identd` object are:
//
@ -394,10 +393,10 @@ module.exports = {
//
// The authentication process works as follows:
//
// 1. The Lounge connects to the LDAP server with its system credentials.
// 1. Hard Lounge connects to the LDAP server with its system credentials.
// 2. It performs an LDAP search query to find the full DN associated to the
// user requesting to log in.
// 3. The Lounge tries to connect a second time, but this time using the
// 3. Hard Lounge tries to connect a second time, but this time using the
// user's DN and password. Authentication is validated if and only if this
// connection is successful.
//
@ -448,7 +447,7 @@ module.exports = {
// When unset, the LDAP auth logic with use `searchDN` instead to locate users.
// - `searchDN`: LDAP search DN settings. This defines the procedure by
// which The Lounge first looks for the user DN before authenticating them.
// which Hard Lounge first looks for the user DN before authenticating them.
// It is ignored if `baseDN` is specified. It is an object with the
// following keys:
searchDN: {
@ -459,7 +458,7 @@ module.exports = {
// default.
rootDN: "cn=thelounge,ou=system-users,dc=example,dc=com",
// - `rootPassword`: Password of The Lounge LDAP system user.
// - `rootPassword`: Password of Hard Lounge LDAP system user.
rootPassword: "1234",
// - `filter`: it is set to `"(&(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com))"`
@ -488,7 +487,7 @@ module.exports = {
//
// When set to true, this enables extra debugging output provided by
// [`irc-framework`](https://github.com/kiwiirc/irc-framework), the
// underlying IRC library for Node.js used by The Lounge.
// underlying IRC library for Node.js used by Hard Lounge.
ircFramework: false,
// ### `debug.raw`

View File

@ -1,8 +1,8 @@
services:
thelounge:
image: git.supernets.org/supernets/thelounge:latest
hardlounge:
image: git.supernets.org/supernets/hardlounge:latest
#build: .
ports:
- "9000:9000"
volumes:
- "$PWD/config:/var/opt/thelounge"
- "$PWD/config:/var/opt/hardlounge"

View File

@ -12,13 +12,13 @@ const pkg = require("./package.json");
if (!require("semver").satisfies(process.version, pkg.engines.node)) {
/* eslint-disable no-console */
console.error(
"The Lounge requires Node.js " +
"Hard Lounge requires Node.js " +
pkg.engines.node +
" (current version: " +
process.version +
")"
);
console.error("Please upgrade Node.js in order to use The Lounge");
console.error("Please upgrade Node.js in order to use Hard Lounge");
console.error("See https://thelounge.chat/docs/install-and-upgrade");
console.error();

View File

@ -1,16 +1,16 @@
{
"name": "@supernets/thelounge",
"name": "@supernets/hardlounge",
"description": "The self-hosted Web IRC client",
"version": "4.4.1",
"preferGlobal": true,
"bin": {
"thelounge": "index.js"
"hardlounge": "index.js"
},
"repository": {
"type": "git",
"url": "https://git.supernets.org/supernets/thelounge"
"url": "https://git.supernets.org/supernets/hardlounge"
},
"homepage": "https://git.supernets.org/supernets/thelounge",
"homepage": "https://git.supernets.org/supernets/hardlounge",
"scripts": {
"build:client": "webpack",
"build:server": "tsc -p server/tsconfig.json",

View File

@ -74,7 +74,7 @@ function createPackagesFolder() {
{
private: true,
description:
"Packages for The Lounge. Use `thelounge install <package>` command to add a package.",
"Packages for Hard Lounge. Use `thelounge install <package>` command to add a package.",
dependencies: {},
},
null,
@ -93,7 +93,7 @@ function verifyFileOwner() {
if (uid === 0) {
log.warn(
`You are currently running The Lounge as root. ${colors.bold.red(
`You are currently running Hard Lounge as root. ${colors.bold.red(
"We highly discourage running as root!"
)}`
);
@ -103,7 +103,7 @@ function verifyFileOwner() {
if (configStat && configStat.uid !== uid) {
log.warn(
"Config file owner does not match the user you are currently running The Lounge as."
"Config file owner does not match the user you are currently running Hard Lounge as."
);
log.warn(
"To prevent any issues, please run thelounge commands " +

View File

@ -67,7 +67,7 @@ program
const humanVersion = isLocalFile ? packageName : `${json.name} v${json.version}`;
if (!("thelounge" in json)) {
log.error(`${colors.red(humanVersion)} does not have The Lounge metadata.`);
log.error(`${colors.red(humanVersion)} does not have Hard Lounge metadata.`);
process.exit(1);
}
@ -81,7 +81,7 @@ program
log.error(
`${colors.red(
humanVersion
)} does not support The Lounge v${Helper.getVersionNumber()}. Supported version(s): ${
)} does not support Hard Lounge v${Helper.getVersionNumber()}. Supported version(s): ${
json.thelounge.supports
}`
);

View File

@ -122,7 +122,7 @@ class Utils {
// We only ever operate in production mode
NODE_ENV: "production",
// If The Lounge runs from a user that does not have a home directory,
// If Hard Lounge runs from a user that does not have a home directory,
// yarn may fail when it tries to read certain folders,
// we give it an existing folder so the reads do not throw a permission error.
// Yarn uses os.homedir() to figure out the path, which internally reads

View File

@ -114,7 +114,7 @@ class Identification {
}
refresh() {
let file = "# Warning: file generated by The Lounge: changes will be overwritten!\n";
let file = "# Warning: file generated by Hard Lounge: changes will be overwritten!\n";
this.connections.forEach((connection, id) => {
if (!connection.socket.remotePort || !connection.socket.localPort) {

View File

@ -28,7 +28,7 @@ class User {
}
setModes(modes: string[], prefix: Prefix) {
// irc-framework sets character mode, but The Lounge works with symbols
// irc-framework sets character mode, but Hard Lounge works with symbols
this.modes = modes.map((mode) => prefix.modeToSymbol[mode]);
}

View File

@ -127,7 +127,7 @@ function checkForUpdates(manager: ClientManager) {
}
log.info(
`The Lounge ${colors.green(
`Hard Lounge ${colors.green(
versionData.latest.version
)} is available. Read more on GitHub: ${versionData.latest.url}`
);

View File

@ -101,7 +101,7 @@ function generate() {
const attrs = [
{
name: "commonName",
value: "The Lounge IRC Client",
value: "Hard Lounge IRC Client",
},
];
cert.setSubject(attrs);

View File

@ -13,7 +13,7 @@ const ctcpResponses = {
PING: ({message}: {message: string}) => message.substring(5),
SOURCE: () => pkg.repository.url,
VERSION: () =>
"The Lounge: Hard Chats Edition - COLD HARD CHATS ONLY IN IRC.SUPERNETS.ORG #SUPERBOWL FUCK YOUR NETWORK - " +
"Hard Lounge - COLD HARD CHATS ONLY IN IRC.SUPERNETS.ORG #SUPERBOWL FUCK YOUR NETWORK - " +
Helper.getVersion() +
" -- " +
pkg.homepage,

View File

@ -396,7 +396,7 @@ function getRequestHeaders(headers: Record<string, string>) {
// Certain websites like Amazon only add <meta> tags to known bots,
// lets pretend to be them to get the metadata
"User-Agent":
"Mozilla/5.0 (compatible; The Lounge IRC Client; +https://github.com/thelounge/thelounge)" +
"Mozilla/5.0 (compatible; Hard Lounge IRC Client; COLD HARD CHATS; +https://git.supernets.org/supernets/hardlounge)" +
" facebookexternalhit/1.1 Twitterbot/1.0",
Accept: headers.accept || "*/*",
"X-Purpose": "preview",
@ -422,7 +422,7 @@ function fetch(uri: string, headers: Record<string, string>) {
if (!prefetchTimeout) {
log.warn(
"prefetchTimeout is missing from your The Lounge configuration, defaulting to 5000 ms"
"prefetchTimeout is missing from your Hard Lounge configuration, defaulting to 5000 ms"
);
}

View File

@ -208,7 +208,7 @@ class SqliteMessageStorage implements SearchableMessageStorage {
const version = await this.current_version();
if (version > currentSchemaVersion) {
throw `sqlite messages schema version is higher than expected (${version} > ${currentSchemaVersion}). Is The Lounge out of date?`;
throw `sqlite messages schema version is higher than expected (${version} > ${currentSchemaVersion}). Is Hard Lounge out of date?`;
} else if (version === currentSchemaVersion) {
return; // nothing to do
}

View File

@ -133,7 +133,7 @@ function loadPackage(packageName: string) {
includePrerelease: true, // our pre-releases should respect the semver guarantees
})
) {
throw `v${packageInfo.version} does not support this version of The Lounge. Supports: ${packageInfo.thelounge.supports}`;
throw `v${packageInfo.version} does not support this version of Hard Lounge. Supports: ${packageInfo.thelounge.supports}`;
}
packageFile = require(packagePath);
@ -176,7 +176,7 @@ function loadPackage(packageName: string) {
log.info(
"There are packages using the experimental plugin API. " +
"Be aware that this API is not yet stable and may change in future The Lounge releases."
"Be aware that this API is not yet stable and may change in future Hard Lounge releases."
);
}
}

View File

@ -71,7 +71,7 @@ export default async function (
dev: false,
}
) {
log.info(`The Lounge ${colors.green(Helper.getVersion())} \
log.info(`Hard Lounge ${colors.green(Helper.getVersion())} \
(Node.js ${colors.green(process.versions.node)} on ${colors.green(process.platform)} ${
process.arch
})`);
@ -678,7 +678,7 @@ function initializeClient(
client.manager.webPush.pushSingle(client, registration, {
type: "notification",
timestamp: Date.now(),
title: "The Lounge",
title: "Hard Lounge",
body: "🚀 Push notifications have been enabled",
});
}

View File

@ -275,8 +275,8 @@ describe("IRC formatted message parser", () => {
},
{
name: "hex foreground and background colors",
input: "\x04415364,ff9e18The Lounge",
expected: '<span style="color:#415364;background-color:#FF9E18;">The Lounge</span>',
input: "\x04415364,ff9e18Hard Lounge",
expected: '<span style="color:#415364;background-color:#FF9E18;">Hard Lounge</span>',
},
{
name: "italic",

View File

@ -39,8 +39,8 @@ describe("Msg", function () {
},
{
body: "",
head: "The Lounge",
link: "https://thelounge.chat/",
head: "Hard Lounge",
link: "https://git.supernets.org/supernets/hardlounge",
thumb: "",
type: "link",
shown: true,
@ -49,11 +49,14 @@ describe("Msg", function () {
});
it("should find a preview given an existing link", function () {
expect(msg.findPreview("https://thelounge.chat/")?.head).to.equal("The Lounge");
expect(
msg.findPreview("https://git.supernets.org/supernets/hardlounge/")?.head
).to.equal("Hard Lounge");
});
it("should not find a preview that does not exist", function () {
expect(msg.findPreview("https://github.com/thelounge/thelounge")).to.be.undefined;
expect(msg.findPreview("https://git.supernets.org/supernets/hardlounge")).to.be
.undefined;
});
});
});

View File

@ -56,7 +56,7 @@ describe("packages", function () {
packages.loadPackages();
expect(stdout).to.deep.equal(
"Package thelounge-package-foo vdummy loaded\nThere are packages using the experimental plugin API. Be aware that this API is not yet stable and may change in future The Lounge releases.\n"
"Package thelounge-package-foo vdummy loaded\nThere are packages using the experimental plugin API. Be aware that this API is not yet stable and may change in future Hard Lounge releases.\n"
);
});
});

View File

@ -54,7 +54,7 @@ describe("Server", function () {
it("should run a web server on " + webURL, async () => {
const response = await got(webURL);
expect(response.statusCode).to.equal(200);
expect(response.body).to.include("<title>The Lounge</title>");
expect(response.body).to.include("<title>Hard Lounge</title>");
expect(response.body).to.include("js/bundle.js");
});
@ -63,7 +63,7 @@ describe("Server", function () {
const body = JSON.parse(response.body);
expect(response.statusCode).to.equal(200);
expect(body.name).to.equal("The Lounge");
expect(body.name).to.equal("Hard Lounge");
expect(response.headers["content-type"]).to.equal("application/manifest+json");
});
});
@ -100,7 +100,7 @@ describe("Server", function () {
client.on("init", () => {
client.emit("network:new", {
username: "test-user",
realname: "The Lounge Test",
realname: "Hard Lounge Test",
nick: "test-user",
join: "#thelounge, #spam",
name: "Test Network",