diff --git a/src/app/components/analyser/Analyser.ts b/src/app/components/analyser/Analyser.ts
index 8ee9d36..d3f6f1a 100644
--- a/src/app/components/analyser/Analyser.ts
+++ b/src/app/components/analyser/Analyser.ts
@@ -27,9 +27,9 @@ export class Analyser implements AfterViewInit {
this.canvas.style.height = `${this.height}px`;
this.canvas.style.top = `-${this.height}px`;
document.onmousemove = (e: MouseEvent) => {
- const cursorDistancefromBottom = document.documentElement.clientHeight - (e.clientY || 0);
- let offset = cursorDistancefromBottom - (this.bottomOffset + this.offsetBuffer);
- if (cursorDistancefromBottom < this.bottomOffset || cursorDistancefromBottom > (this.bottomOffset + this.height + this.offsetBuffer)) {
+ const cursorDistanceFromBottom = document.documentElement.clientHeight - (e.clientY || 0);
+ let offset = cursorDistanceFromBottom - (this.bottomOffset + this.offsetBuffer);
+ if (cursorDistanceFromBottom < this.bottomOffset || cursorDistanceFromBottom > (this.bottomOffset + this.height + this.offsetBuffer)) {
offset = this.height;
}
this.canvas.style.height = `${offset}px`;
diff --git a/src/app/models/FileSystemFile.ts b/src/app/models/FileSystemFile.ts
index 4d85a90..066b579 100644
--- a/src/app/models/FileSystemFile.ts
+++ b/src/app/models/FileSystemFile.ts
@@ -1,9 +1,10 @@
export class FileSystemFile {
+ public filename: string;
+
constructor(
- public filename: string,
public filepath: string,
public size: number,
) {
-
+ this.filename = filepath.substring((filepath.lastIndexOf('/') || 0) + 1);
}
}
diff --git a/src/app/pages/homepage/homepage.html b/src/app/pages/homepage/homepage.html
index d010be5..e67766d 100644
--- a/src/app/pages/homepage/homepage.html
+++ b/src/app/pages/homepage/homepage.html
@@ -14,11 +14,19 @@ Home
+Files:
+@for (item of files; track item) {
+