diff --git a/package.json b/package.json index 808e62b..30e05a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fwdekker.com", - "version": "0.40.1", + "version": "0.40.2", "description": "The source code of [my personal website](https://fwdekker.com/).", "author": "Felix W. Dekker", "browser": "dist/bundle.js", diff --git a/src/main/css/main.css b/src/main/css/main.css index 990a9dd..af062ec 100644 --- a/src/main/css/main.css +++ b/src/main/css/main.css @@ -1,8 +1,9 @@ #terminal a { + cursor: pointer; text-decoration: none; } -#terminal a:link, #terminal a:visited { +#terminal a, #terminal a:link, #terminal a:visited { color: #00FF00; } diff --git a/src/main/js/Commands.ts b/src/main/js/Commands.ts index e2c75c9..328b6eb 100644 --- a/src/main/js/Commands.ts +++ b/src/main/js/Commands.ts @@ -641,7 +641,7 @@ return new Command( const commandWidth = Math.max.apply(null, commandNames.map(it => it.length)) + 4; const commandPaddings = commandNames.map(it => commandWidth - it.length); const commandLinks = commandNames - .map(it => \`\${it}\`) + .map(it => \`\${it}\`) .map((it, i) => \`\${it.padEnd(it.length + commandPaddings[i], " ")}\`); const commandEntries = commandNames .map((it, i) => \`\${commandLinks[i]}\${commands[it].summary}\`); diff --git a/src/main/js/FileSystem.ts b/src/main/js/FileSystem.ts index e887fe1..0611b01 100644 --- a/src/main/js/FileSystem.ts +++ b/src/main/js/FileSystem.ts @@ -615,7 +615,7 @@ export class Directory extends Node { * @param path the path to this node */ nameString(name: string, path: Path): string { - return `${name}`; + return `${name}`; } visit(path: string, @@ -715,7 +715,7 @@ export class File extends Node { switch (this.mime ?? getFileExtension(name)) { case "jsh": { const script = `execute('${path.toString(true)}'); return false`; - return `${name}`; + return `${name}`; } case "lnk": { const script = `execute('open ${path.toString(true)}'); return false`; @@ -723,7 +723,7 @@ export class File extends Node { } case "txt": { const script = `execute('cat ${path.toString(true)}')`; - return `${name}`; + return `${name}`; } default: return name; diff --git a/src/main/js/Shell.ts b/src/main/js/Shell.ts index 3a62c70..b465d1e 100644 --- a/src/main/js/Shell.ts +++ b/src/main/js/Shell.ts @@ -73,7 +73,7 @@ export class Shell { @ TU Delft, the Netherlands ${(new Date()).toISOString()} - Type "help" for help. + Type "help" for help. Welcome to josh v%%VERSION_NUMBER%%, the javascript online shell. `.trimLines(); diff --git a/src/test/File.spec.ts b/src/test/File.spec.ts index fc2dcc3..4b27559 100644 --- a/src/test/File.spec.ts +++ b/src/test/File.spec.ts @@ -52,12 +52,12 @@ describe("file", () => { it("uses the file extension to determine the value", () => { expect(new File("contents").nameString("file.txt", new Path("/file"))) - .to.equal(`file.txt`); + .to.equal(`file.txt`); }); it("uses the mime type if no type is known", () => { expect(new File("contents", "txt").nameString("file", new Path("/file"))) - .to.equal(`file`); + .to.equal(`file`); }); it("overrides the file extension with the mime type", () => {