From a82227b4850b817ce56ff13ac4592b11f28ca6df Mon Sep 17 00:00:00 2001 From: janis Date: Wed, 4 Jan 2023 17:01:37 +0100 Subject: [PATCH] restructure repo -> follows new layout --- server.js | 36 ++++++++++++++++++ testingserver.js | 36 ------------------ 404.html => ui/404.html | 0 about.html => ui/about.html | 0 {assets => ui/assets}/Logo.png | Bin {assets => ui/assets}/logo.xcf | Bin {css => ui/css}/altstyle.css | 0 {css => ui/css}/footerstyle.css | 0 {css => ui/css}/mainstyle.css | 0 {css => ui/css}/menustyle.css | 0 footer.html => ui/footer.html | 0 getos.html => ui/getos.html | 0 index.html => ui/index.html | 0 {js => ui/js}/basicanimations.js | 0 {js => ui/js}/jquery.js | 0 {js => ui/js}/specialanimations.js | 0 menu.html => ui/menu.html | 0 privacypolicy.html => ui/privacypolicy.html | 0 projects.html => ui/projects.html | 0 {projects => ui/projects}/bgac.html | 0 {projects => ui/projects}/imagescaler.html | 0 {projects => ui/projects}/musiplayer.html | 0 {projects => ui/projects}/qrinsight.html | 0 {projects => ui/projects}/storagemanager.html | 0 support.html => ui/support.html | 0 25 files changed, 36 insertions(+), 36 deletions(-) create mode 100755 server.js delete mode 100755 testingserver.js rename 404.html => ui/404.html (100%) rename about.html => ui/about.html (100%) rename {assets => ui/assets}/Logo.png (100%) rename {assets => ui/assets}/logo.xcf (100%) rename {css => ui/css}/altstyle.css (100%) rename {css => ui/css}/footerstyle.css (100%) rename {css => ui/css}/mainstyle.css (100%) rename {css => ui/css}/menustyle.css (100%) rename footer.html => ui/footer.html (100%) rename getos.html => ui/getos.html (100%) rename index.html => ui/index.html (100%) rename {js => ui/js}/basicanimations.js (100%) rename {js => ui/js}/jquery.js (100%) rename {js => ui/js}/specialanimations.js (100%) rename menu.html => ui/menu.html (100%) rename privacypolicy.html => ui/privacypolicy.html (100%) rename projects.html => ui/projects.html (100%) rename {projects => ui/projects}/bgac.html (100%) rename {projects => ui/projects}/imagescaler.html (100%) rename {projects => ui/projects}/musiplayer.html (100%) rename {projects => ui/projects}/qrinsight.html (100%) rename {projects => ui/projects}/storagemanager.html (100%) rename support.html => ui/support.html (100%) diff --git a/server.js b/server.js new file mode 100755 index 0000000..9111ebc --- /dev/null +++ b/server.js @@ -0,0 +1,36 @@ +var ejs = require('express') +var path = require('path') +var http = require('http') + +var app = ejs(); + +app.get('/', (request, response) => { + response.sendFile(path.join(__dirname + '/ui/index.html')); +}); + +app.get('/:filename', (request, response) => { + response.sendFile(path.join(__dirname + "/ui/" + request.params.filename)); +}); + +app.get('/css/:file', (request, response) => { + response.sendFile(path.join(__dirname + "/ui/css/" + request.params.file)); +}); + +app.get('/js/:file', (request, response) => { + response.sendFile(path.join(__dirname + "/ui/js/" + request.params.file)); +}); + +app.get('/projects/:file', (request, response) => { + response.sendFile(path.join(__dirname + "/ui/projects/" + request.params.file)); +}); + +app.get('/projects/css/:file', (request, response) => { + response.sendFile(path.join(__dirname + "/ui/css/" + request.params.file)); +}); + +app.get('/assets/:file', (request, response) => { + response.sendFile(path.join(__dirname + "/ui/assets/" + request.params.file)); +}); + + +http.createServer( app ).listen( 8080 ); \ No newline at end of file diff --git a/testingserver.js b/testingserver.js deleted file mode 100755 index b1f34c7..0000000 --- a/testingserver.js +++ /dev/null @@ -1,36 +0,0 @@ -var ejs = require('express') -var path = require('path') -var http = require('http') - -var app = ejs(); - -app.get('/', (request, response) => { - response.sendFile(path.join(__dirname + '/index.html')) -}) - -app.get('/:filename', (request, response) => { - response.sendFile(path.join(__dirname + "/" + request.params.filename)) -}) - -app.get('/css/:file', (request, response) => { - response.sendFile(path.join(__dirname + "/css/" + request.params.file)) -}) - -app.get('/js/:file', (request, response) => { - response.sendFile(path.join(__dirname + "/js/" + request.params.file)) -}) - -app.get('/projects/:file', (request, response) => { - response.sendFile(path.join(__dirname + "/projects/" + request.params.file)) -}) - -app.get('/projects/css/:file', (request, response) => { - response.sendFile(path.join(__dirname + "/css/" + request.params.file)) -}) - -app.get('/assets/:file', (request, response) => { - response.sendFile(path.join(__dirname + "/assets/" + request.params.file)) -}) - - -http.createServer(app).listen(8080); \ No newline at end of file diff --git a/404.html b/ui/404.html similarity index 100% rename from 404.html rename to ui/404.html diff --git a/about.html b/ui/about.html similarity index 100% rename from about.html rename to ui/about.html diff --git a/assets/Logo.png b/ui/assets/Logo.png similarity index 100% rename from assets/Logo.png rename to ui/assets/Logo.png diff --git a/assets/logo.xcf b/ui/assets/logo.xcf similarity index 100% rename from assets/logo.xcf rename to ui/assets/logo.xcf diff --git a/css/altstyle.css b/ui/css/altstyle.css similarity index 100% rename from css/altstyle.css rename to ui/css/altstyle.css diff --git a/css/footerstyle.css b/ui/css/footerstyle.css similarity index 100% rename from css/footerstyle.css rename to ui/css/footerstyle.css diff --git a/css/mainstyle.css b/ui/css/mainstyle.css similarity index 100% rename from css/mainstyle.css rename to ui/css/mainstyle.css diff --git a/css/menustyle.css b/ui/css/menustyle.css similarity index 100% rename from css/menustyle.css rename to ui/css/menustyle.css diff --git a/footer.html b/ui/footer.html similarity index 100% rename from footer.html rename to ui/footer.html diff --git a/getos.html b/ui/getos.html similarity index 100% rename from getos.html rename to ui/getos.html diff --git a/index.html b/ui/index.html similarity index 100% rename from index.html rename to ui/index.html diff --git a/js/basicanimations.js b/ui/js/basicanimations.js similarity index 100% rename from js/basicanimations.js rename to ui/js/basicanimations.js diff --git a/js/jquery.js b/ui/js/jquery.js similarity index 100% rename from js/jquery.js rename to ui/js/jquery.js diff --git a/js/specialanimations.js b/ui/js/specialanimations.js similarity index 100% rename from js/specialanimations.js rename to ui/js/specialanimations.js diff --git a/menu.html b/ui/menu.html similarity index 100% rename from menu.html rename to ui/menu.html diff --git a/privacypolicy.html b/ui/privacypolicy.html similarity index 100% rename from privacypolicy.html rename to ui/privacypolicy.html diff --git a/projects.html b/ui/projects.html similarity index 100% rename from projects.html rename to ui/projects.html diff --git a/projects/bgac.html b/ui/projects/bgac.html similarity index 100% rename from projects/bgac.html rename to ui/projects/bgac.html diff --git a/projects/imagescaler.html b/ui/projects/imagescaler.html similarity index 100% rename from projects/imagescaler.html rename to ui/projects/imagescaler.html diff --git a/projects/musiplayer.html b/ui/projects/musiplayer.html similarity index 100% rename from projects/musiplayer.html rename to ui/projects/musiplayer.html diff --git a/projects/qrinsight.html b/ui/projects/qrinsight.html similarity index 100% rename from projects/qrinsight.html rename to ui/projects/qrinsight.html diff --git a/projects/storagemanager.html b/ui/projects/storagemanager.html similarity index 100% rename from projects/storagemanager.html rename to ui/projects/storagemanager.html diff --git a/support.html b/ui/support.html similarity index 100% rename from support.html rename to ui/support.html