aboutsummaryrefslogtreecommitdiffstats
path: root/front/window.ts
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-03-19 22:40:38 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-03-19 22:40:38 +0200
commitcb3949d974f30501281fd2546ef23c81ac0282b3 (patch)
treeb463e63c16c9288af42d34cf86a0fd6ffeeeb5a5 /front/window.ts
parentdd6cf660b033251c5ab08fa0c3e32a44022a7039 (diff)
downloadfileup-cb3949d974f30501281fd2546ef23c81ac0282b3.tar.gz
bundler
Diffstat (limited to 'front/window.ts')
-rw-r--r--front/window.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/front/window.ts b/front/window.ts
new file mode 100644
index 0000000..79d053b
--- /dev/null
+++ b/front/window.ts
@@ -0,0 +1,25 @@
+
+export class OurWindow {
+ pwd: string[];
+ visuals: HTMLElement;
+ h2: HTMLElement; // The titlebar of the window
+ fileview: any; // TODO what is this
+ files: any[];
+ txt_editor: HTMLElement; // For editable text files, this is the DOM element the user can edit
+
+ // TODO move these to a subclass
+ foldercontents: any;
+ filecontents: any;
+ filecontentsroot: any;
+ filegrid: any;
+ save_btn_container: any;
+
+ constructor(pwd) {
+ this.pwd = pwd; // pwd = [ "Folder1", "Folder2" ] means the current directory of that window is /Folder1/Folder2
+ this.visuals = null; // The DOM object
+ this.h2 = null; // The titlebar of the window
+ this.fileview = null;
+ this.files = [];
+ this.txt_editor = null; // For editable text files, this is the DOM element the user can edit
+ }
+} \ No newline at end of file