Browse Source

Working Windows Node Downloader

v0.0.11
John Haverlack 3 years ago
parent
commit
457fe2e253
  1. 1
      index.js
  2. 1
      web/root/.gitignore
  3. 2
      web/root/docs/js/skq-it-am.js
  4. 2
      web/root/site/js/skq-it-am.js
  5. BIN
      web/root/site/sitemap.xml.gz

1
index.js

@ -36,6 +36,7 @@ app.use('/download', express.static(path.join(__dirname, 'download'), { index: f
// showdir: true,
// // baseDir: '/download'
// }));
app.use('/download/nodejs', express.static(path.join(__dirname, 'nodejs'), { index: false }))
// WebUI Admin
app.use('/admin', express.static(path.join(__dirname, process['CONFIG']['GLOBAL']['WEBUI_ADMIN']['WEB_ROOT_DIR'])))

1
web/root/.gitignore

@ -1,5 +1,4 @@
*~
*\\*.html
node_modules/*
download/*
*.DS_Store

2
web/root/docs/js/skq-it-am.js

@ -166,7 +166,7 @@ if (document.getElementsByClassName("WIN_CMD_CMD")) {
let html = ''
// let cmd = encodeURIComponent('PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1"')
let cmd = 'PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1"'
let cmd = 'PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1 ' + webconf['BROWSER']['BASE_URL'] + '"'
console.log (cmd)
html +='<div class="input-group mb-3">' + "\n"

2
web/root/site/js/skq-it-am.js

@ -166,7 +166,7 @@ if (document.getElementsByClassName("WIN_CMD_CMD")) {
let html = ''
// let cmd = encodeURIComponent('PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1"')
let cmd = 'PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1"'
let cmd = 'PowerShell -ExecutionPolicy Unrestricted Invoke-WebRequest \"' + webconf['BROWSER']['BASE_URL'] + '/download/skqitam-setup.ps1\" -Outfile "~\Downloads\skqitam-setup.ps1"; PowerShell -ExecutionPolicy Unrestricted -command "~\Downloads\skqitam-setup.ps1 ' + webconf['BROWSER']['BASE_URL'] + '"'
console.log (cmd)
html +='<div class="input-group mb-3">' + "\n"

BIN
web/root/site/sitemap.xml.gz

Loading…
Cancel
Save