Skip to content

Commit

Permalink
Added Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
OrigamingWasTaken committed Jul 2, 2024
1 parent a401815 commit 3a947b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion frontend/src/windows/main/ts/debugging.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { filesystem, os } from "@neutralinojs/lib";
// File with debugging functions
import { filesystem } from "@neutralinojs/lib";
import path from "path-browserify";
import { dataPath, loadSettings } from "./settings";
import { pathExists } from "./utils";

/** Tries to format every variable to a string */
function formatConsoleLog(...args: any[]): string {
return `[${new Date().toLocaleTimeString()}] ` + args
.map((arg) => {
Expand Down Expand Up @@ -42,6 +44,7 @@ function getCircularReplacer() {
};
}

/** Appends a message to the log file */
async function appendLog(message: string) {
try {
const appleBloxDir = path.dirname(await dataPath());
Expand Down
1 change: 1 addition & 0 deletions frontend/src/windows/main/ts/env.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** Detects if the app is ran in dev mode or production */
export function getMode(): "dev" | "prod" {
return import.meta.env.MODE === 'development' ? 'dev' : 'prod'
}
1 change: 1 addition & 0 deletions frontend/src/windows/main/ts/notifications.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Handles notifications in the app using the alerter binary
import { debug, events, os, window as w } from "@neutralinojs/lib"
import { libraryPath } from "./lib.paths";
import { focusWindow } from "./window";
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "@tsconfig/svelte/tsconfig.json",
"compilerOptions": {
"target": "ES2020",
"target": "ES2022",
"useDefineForClassFields": true,
// "verbatimModuleSyntax": false,
"module": "ES2020",
"verbatimModuleSyntax": false,
"module": "CommonJS",
"resolveJsonModule": true,
"moduleResolution": "node",
/**
Expand Down

0 comments on commit 3a947b4

Please sign in to comment.