diff --git a/.gitignore b/.gitignore index e50f0ba..f03aff9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .vscode main pdwebconfig.toml -res/script/pixellib.js -res/script/home.js \ No newline at end of file +res/static/res/script/pixellib.js +res/static/res/script/home.js \ No newline at end of file diff --git a/Makefile b/Makefile index 6aa826b..3fb9420 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,4 @@ deps: backgroundrun: go run main.go backgroundts: - tsc --watch res/static/res/typescript/lib/*.ts --outFile res/static/res/script/pixellib.js \ - res/static/res/typescript/home/*.ts \ - res/static/res/typescript/lib/*.ts --outFile res/static/res/script/home.js + tsc --watch --project res/static/res/typescript/home diff --git a/res/static/res/script/compiled/README b/res/static/res/script/compiled/README new file mode 100644 index 0000000..e1286db --- /dev/null +++ b/res/static/res/script/compiled/README @@ -0,0 +1,4 @@ +All files in this directory are compiled typescript files. You can find the +sources in /res/typescript. + +Have fun typing! \ No newline at end of file diff --git a/res/static/res/script/home.js b/res/static/res/script/home.js deleted file mode 100644 index 31b5cae..0000000 --- a/res/static/res/script/home.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -var uploader = null; -/* - * Form upload handlers - */ -$("#selectFileButton").click(function (event) { - $("#fileInputField").click(); -}); -function fileInputChange(dom, files) { - if (uploader === null) { - uploader = new UploadManager(); - } - uploader.uploadFileList(files); - // This resets the file input field - // http://stackoverflow.com/questions/1043957/clearing-input-type-file-using-jquery - $('#fileName').html(""); - $("#fileUploadButton").css("visibility", "hidden"); - $("#fileInputField").wrap("