Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacingBat3 authored Aug 5, 2022
2 parents 97f435b + 06c0e6b commit 604feae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@fontsource/fira-code": "^4.5.9",
"@fontsource/roboto": "^4.5.1",
"@fontsource/ubuntu": "^4.5.0",
"@spacingbat3/kolor": "^2.0.1",
"@spacingbat3/kolor": "^3.0.1",
"deepmerge-ts": "^4.0.0",
"dompurify": "^2.3.6",
"electron-fetch": "^1.7.3",
Expand Down
12 changes: 6 additions & 6 deletions sources/code/common/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ let overwriteMain: (() => unknown) | undefined;
console.log([
"\n " + kolor.bold(kolor.blue(app.getName())) +
" – Privacy focused Discord client made with " +
kolor.bold(kolor.brightWhite(kolor.blueBg("TypeScript"))) + " and " +
kolor.bold(kolor.blackBg(kolor.brightCyan("Electron"))) + ".\n",
" " + kolor.underscore("Usage:"),
kolor.bold(kolor.whiteBright(kolor.bgBlue("TypeScript"))) + " and " +
kolor.bold(kolor.bgBlack(kolor.cyanBright("Electron"))) + ".\n",
" " + kolor.underline("Usage:"),
" " + kolor.red(argv0) + kolor.green(" [options]\n"),
" " + kolor.underscore("Options:")
" " + kolor.underline("Options:")
].join("\n")+"\n"+[
renderLine(["help", "h", "?"],"Show this help message."),
renderLine(["version","V"],"Show current application version."),
Expand Down Expand Up @@ -206,7 +206,7 @@ let overwriteMain: (() => unknown) | undefined;
Promise.all(filePromise).then(() => {
console.log([
"\n🎉️ "+kolor.green(kolor.bold("Successfully"))+" exported localization files to",
" '" + kolor.blue(kolor.underscore(directory)) + "'!\n"
" '" + kolor.blue(kolor.underline(directory)) + "'!\n"
].join("\n"));
app.quit();
}).catch((err:NodeJS.ErrnoException) => {
Expand All @@ -221,7 +221,7 @@ let overwriteMain: (() => unknown) | undefined;
null;
console.error([
"\n⛔️ " + kolor.red(kolor.bold(err.code ?? err.name)) + " " + (err.syscall ?? "") + ": ",
(finalPath ? kolor.blue(kolor.underscore(finalPath)) + ": " : ""),
(finalPath ? kolor.blue(kolor.underline(finalPath)) + ": " : ""),
err.message.replace((err.code ?? "") + ": ", "")
.replace(", " + (err.syscall ?? "") + " '" + (err.path ?? "") + "'", "") + ".\n"
].join(""));
Expand Down
6 changes: 3 additions & 3 deletions sources/code/main/modules/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Server } from "ws";
import kolor from "@spacingbat3/kolor";

function wsLog(message:string, ...args:unknown[]) {
console.log(kolor.bold(kolor.brightMagenta("[WebSocket]"))+" "+message,...args);
console.log(kolor.bold(kolor.magentaBright("[WebSocket]"))+" "+message,...args);
}

/** Generates an inclusive range (as `Array`) from `start` to `end`. */
Expand Down Expand Up @@ -143,7 +143,7 @@ export default async function startServer(window:Electron.BrowserWindow) {
const [
{isJsonSyntaxCorrect, knownInstancesList: knownIstancesList},
{initWindow},
{underscore},
{underline},
L10N
] = await Promise.all([
import("../../common/global"),
Expand All @@ -157,7 +157,7 @@ export default async function startServer(window:Electron.BrowserWindow) {
// eslint-disable-next-line no-await-in-loop
wss = await getServer(port);
if(wss !== null) {
wsLog(listenPort,underscore(port.toString()));
wsLog(listenPort,underline(port.toString()));
wsPort = port;
break;
}
Expand Down

0 comments on commit 604feae

Please sign in to comment.