Permalink
Browse files

🍦v2.8.2

  • Loading branch information...
Trevelopment committed Nov 4, 2018
1 parent ac05a8b commit 0126adb1bbc466edde4859bddd8c585f414975f2
Showing with 61,572 additions and 2,815 deletions.
  1. +7 βˆ’0 app/assets/css/index.css
  2. +1 βˆ’0 app/assets/js/aapatcher.js
  3. +1 βˆ’0 app/assets/js/audioSourceList.js
  4. +61 βˆ’41 app/assets/js/build-tweaks.js
  5. +1 βˆ’4 app/assets/js/events.js
  6. +1 βˆ’0 app/assets/js/ex-links.js
  7. +1 βˆ’1 app/assets/js/gritter-conf.js
  8. +20 βˆ’13 app/assets/js/index.js
  9. +3 βˆ’1 app/assets/js/installCS.js
  10. +1 βˆ’0 app/assets/js/messages-settings.js
  11. +2 βˆ’1 app/assets/js/notifications.js
  12. +1 βˆ’0 app/assets/js/printers.js
  13. +1 βˆ’0 app/assets/js/saveCanvas.js
  14. +1 βˆ’0 app/assets/js/speedoConfig.js
  15. +1 βˆ’0 app/assets/js/tour.js
  16. +1 βˆ’0 app/assets/js/translator.js
  17. +1,007 βˆ’629 app/changelog.htm
  18. +14 βˆ’13 app/controllers/home.js
  19. +32 βˆ’17 app/files/tweaks/00___fullRestore.sh
  20. +10 βˆ’3 app/files/tweaks/00_end.txt
  21. +7 βˆ’0 app/files/tweaks/00_factory-reset-end.txt
  22. +8 βˆ’6 app/files/tweaks/00_intro.txt
  23. +215 βˆ’73 app/files/tweaks/00_start.txt
  24. +1 βˆ’1 app/files/tweaks/02_disclaimer-i.txt
  25. +1 βˆ’12 app/files/tweaks/06_listloop-i.txt
  26. +0 βˆ’7 app/files/tweaks/06_listloop-u.txt
  27. +21 βˆ’5 app/files/tweaks/08_sysbeep-i.txt
  28. +10 βˆ’3 app/files/tweaks/08_sysbeep-u.txt
  29. +19 βˆ’19 app/files/tweaks/10_pausemute-i.txt
  30. +1 βˆ’1 app/files/tweaks/13_boot-i.txt
  31. +11 βˆ’11 app/files/tweaks/17_videoplayer-i.txt
  32. +27 βˆ’31 app/files/tweaks/17_videoplayer-u.txt
  33. +3 βˆ’8 app/files/tweaks/19_speedo-i1.txt
  34. +24 βˆ’23 app/files/tweaks/19_speedo-u.txt
  35. +6 βˆ’6 app/files/tweaks/20_date-iv3.3.txt
  36. +5 βˆ’5 app/files/tweaks/24_castscreen-i.txt
  37. +1 βˆ’0 app/files/tweaks/25_androidauto-i.txt
  38. +22 βˆ’19 app/files/tweaks/25_androidauto-u.txt
  39. +10 βˆ’0 app/files/tweaks/25_androidautohud-i.txt
  40. +2 βˆ’7 app/files/tweaks/27_aioapp-i.txt
  41. +38 βˆ’36 app/files/tweaks/27_aioapp-u.txt
  42. +2 βˆ’7 app/files/tweaks/28_mzdmeter-i.txt
  43. +1 βˆ’0 app/files/tweaks/casdk/apps/app.clock/app.js
  44. +19 βˆ’0 app/files/tweaks/casdk/patch/systemApp.70.js
  45. +2 βˆ’1 app/files/tweaks/config/aio-app/data_persist/dev/system_restore/restore.sh
  46. +15 βˆ’9 app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/mzd.js
  47. +2 βˆ’2 app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/sh/resource_swap.sh
  48. BIN app/files/tweaks/config/androidauto/data_persist/dev/bin/headunit
  49. +65 βˆ’18 app/files/tweaks/config/androidauto/data_persist/dev/bin/headunit-wrapper
  50. +6 βˆ’0 app/files/tweaks/config/androidauto/data_persist/dev/bin/headunit.json
  51. +27 βˆ’0 app/files/tweaks/config/androidautohud/check-usb.sh
  52. BIN app/files/tweaks/config/androidautohud/headunit
  53. +82 βˆ’0 app/files/tweaks/config/androidautohud/headunit-wrapper
  54. +6 βˆ’0 app/files/tweaks/config/androidautohud/headunit.json
  55. +37 βˆ’0 app/files/tweaks/config/androidautohud/usb-allow.list
  56. +19 βˆ’0 ...iles/tweaks/config/audio_order_AND_no_More_Disclaimer/both/jci/gui/apps/system/js/systemApp.70.js
  57. +19 βˆ’0 ...audio_order_AND_no_More_Disclaimer/only_change_audio_order/jci/gui/apps/system/js/systemApp.70.js
  58. +19 βˆ’0 ...audio_order_AND_no_More_Disclaimer/only_no_More_Disclaimer/jci/gui/apps/system/js/systemApp.70.js
  59. +2 βˆ’2 app/files/tweaks/config/date-to-statusbar_mod/jci/gui/common/controls/StatusBar/js/StatusBarCtrl.js
  60. +6 βˆ’4 ...iles/tweaks/config/date-to-statusbar_mod/jci/gui/common/controls/StatusBar/js/StatusBarCtrl.v1.js
  61. +19 βˆ’0 app/files/tweaks/config/jci/gui/apps/system/js/systemApp.70.js
  62. +21 βˆ’0 app/files/tweaks/config/list-loop/jci/gui/common/controls/List2/js/List2Ctrl.js
  63. +99 βˆ’88 app/files/tweaks/config/videoplayer/jci/gui/apps/_videoplayer/js/videoplayer-v3.js
  64. +38 βˆ’0 app/files/tweaks/config/videoplayer/jci/gui/apps/_videoplayer/sh/resource_swap.sh
  65. +10 βˆ’0 ...weaks/config/videoplayer/jci/gui/apps/_videoplayer/templates/VideoPlayer/css/VideoPlayerTmplt.css
  66. +2,676 βˆ’0 app/files/tweaks/config_org/v70/Common.js.org
  67. BIN app/files/tweaks/config_org/v70/ExitLogo.ivf.org
  68. +869 βˆ’0 app/files/tweaks/config_org/v70/FuelConsumptionCtrl.css.org
  69. +2,433 βˆ’0 app/files/tweaks/config_org/v70/FuelConsumptionCtrl.js.org
  70. +10,309 βˆ’0 app/files/tweaks/config_org/v70/List2Ctrl.css.org
  71. +14,422 βˆ’0 app/files/tweaks/config_org/v70/List2Ctrl.js.org
  72. +311 βˆ’0 app/files/tweaks/config_org/v70/MainMenuCtrl.css.org
  73. +670 βˆ’0 app/files/tweaks/config_org/v70/MainMenuCtrl.js.org
  74. +835 βˆ’0 app/files/tweaks/config_org/v70/NowPlaying4Ctrl.css.org
  75. +2,086 βˆ’0 app/files/tweaks/config_org/v70/NowPlaying4Ctrl.js.org
  76. +305 βˆ’0 app/files/tweaks/config_org/v70/SbnCtrl.css.org
  77. +236 βˆ’0 app/files/tweaks/config_org/v70/StatusBarCtrl.css.org
  78. +947 βˆ’0 app/files/tweaks/config_org/v70/StatusBarCtrl.js.org
  79. +420 βˆ’0 app/files/tweaks/config_org/v70/TestCtrl.css.org
  80. +1,576 βˆ’0 app/files/tweaks/config_org/v70/TestCtrl.js.org
  81. +792 βˆ’0 app/files/tweaks/config_org/v70/Ump3Ctrl.css.org
  82. +669 βˆ’0 app/files/tweaks/config_org/v70/Utility.js.org
  83. +1,261 βˆ’0 app/files/tweaks/config_org/v70/blm_msg-system.xml.org
  84. +74 βˆ’0 app/files/tweaks/config_org/v70/common.css.org
  85. +556 βˆ’0 app/files/tweaks/config_org/v70/diagApp.js.org
  86. +185 βˆ’0 app/files/tweaks/config_org/v70/jci-fw.sh.org
  87. BIN app/files/tweaks/config_org/v70/newLoopLogo.ivf.org
  88. +105 βˆ’0 app/files/tweaks/config_org/v70/opera.ini.org
  89. +5,504 βˆ’0 app/files/tweaks/config_org/v70/syssettingsApp.js.org
  90. +2,747 βˆ’0 app/files/tweaks/config_org/v70/systemApp.js.org
  91. +7,868 βˆ’0 app/files/tweaks/config_org/v70/usbaudioApp.js.org
  92. +17 βˆ’8 app/index.html
  93. +1 βˆ’1 app/lang/english.aio.json
  94. +1 βˆ’0 app/lib/OrderOfAudioSources.js
  95. +40 βˆ’29 app/main.js
  96. +1 βˆ’0 app/menus/application-menu.js
  97. +1 βˆ’0 app/menus/context-menu.js
  98. +1 βˆ’0 app/menus/menu.js
  99. +1 βˆ’1 app/opts/11options.htm
  100. +1 βˆ’1 app/opts/13options.htm
  101. +1 βˆ’1 app/opts/14options.htm
  102. +1 βˆ’1 app/opts/15options.htm
  103. +1 βˆ’1 app/opts/16options.htm
  104. +2 βˆ’1 app/opts/17options.htm
  105. +1 βˆ’1 app/opts/18options.htm
  106. +1 βˆ’1 app/opts/19options.htm
  107. +1 βˆ’1 app/opts/1options.htm
  108. +1 βˆ’1 app/opts/20options.htm
  109. +1 βˆ’1 app/opts/22options.htm
  110. +1 βˆ’1 app/opts/23options.htm
  111. +1 βˆ’1 app/opts/24options.htm
  112. +21 βˆ’5 app/opts/25options.htm
  113. +1 βˆ’1 app/opts/26options.htm
  114. +1 βˆ’1 app/opts/27options.htm
  115. +1 βˆ’1 app/opts/2options.htm
  116. +1 βˆ’1 app/opts/6options.htm
  117. +1 βˆ’1 app/opts/9options.htm
  118. +1 βˆ’1 app/opts/backupoptions.htm
  119. +1 βˆ’1 app/opts/bgoptions.htm
  120. +1 βˆ’1 app/opts/coloroptions.htm
  121. +1 βˆ’1 app/opts/mainmenuoptions.htm
  122. +1 βˆ’1 app/opts/sshoptions.htm
  123. +1 βˆ’1 app/opts/uistyleoptions.htm
  124. +115 βˆ’78 app/package-lock.json
  125. +10 βˆ’9 app/package.json
  126. +2 βˆ’2 app/views/PhotoJoiner/PhotoJoiner.html
  127. +1 βˆ’0 app/views/PhotoJoiner_files/PhotoJoin.js
  128. +1 βˆ’1 app/views/background.html
  129. +1 βˆ’1 app/views/contact.html
  130. +1 βˆ’1 app/views/help.htm
  131. +3 βˆ’2 app/views/joiner.html
  132. +38 βˆ’4 app/views/stance.htm
  133. +29 βˆ’71 app/views/update.htm
  134. +1,277 βˆ’1,438 package-lock.json
  135. +15 βˆ’14 package.json
@@ -2559,3 +2559,10 @@ input:disabled {
#PhotoJoiner #mzd-title small {
display: initial;
}
.isink input[type=checkbox].w3-check {
height: 15px;
width: 15px;
}
.isink {
text-align: center;
}
@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117 */
'use strict'

const path = require('path')
@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117 */
var listOrder = ''
var entertainmentItems = [
{ label: 'USB A', menuItem: 'UsbAudioAPos', pos: 1 },
@@ -3,16 +3,15 @@
|** MZD-AIO-TI **|
|** By: Trezdog44 - Trevor Martin **|
|** http://mazdatweaks.com **|
|** Β©2017 Trevelopment **|
|** Β©2019 Trevelopment **|
|** **|
|** build-tweaks.js - The main 'builder' component copys neccesary files to **|
|** a temporary folder for copying to a usb additionaly **|
|** gives the option to copy files directly to an available usb drive. **|
|** **|
|** ************************************************************************ **|
\* ************************************************************************** */
/* jshint esversion:6 */
/* jshint -W033 */
/* jshint esversion:6, -W033, -W117, -W097 */
// First line of AIO log
var AIO_LOG = `# __MZD-AIO-TI__ ${app.getVersion()}| MZD All In One Tweaks Installer\n#### AIO COMPILATION LOG - ${Date()}\r\n___\n- *START!*\n`
var AIO_LOG_HTML = `<button class="w3-btn w3-hover-teal w3-display-bottomright w3-margin" onclick="saveAIOLogHTML()">Save Log (HTML)</button><div id="aio-comp-log" class="aio-comp-log"><h1><b>MZD-AIO-TI ${app.getVersion()}</b> | MZD All In One Tweaks Installer</h1><br><h4> AIO COMPILATION LOG - ${Date()}</h4><hr><div><ul><li><b><i>START!</i></b></li>`
@@ -53,15 +52,17 @@ function buildTweakFile(user, apps) {
if (fs.existsSync(`${tmpdir}`)) {
aioLog('Delete old _copy_to_usb folder...')
}
try {
// delete tmp folder if it exists and make new tmpdir
rimraf.sync(`${tmpdir}`)
} catch (e) {
let m = `Error occured while deleting old '_copy_to_usb' folder: ${e}\n Try closing all other running programs and folders before compiling.`
aioLog(m, m)
finishedMessage()
return
}
// delete tmp folder if it exists and make new tmpdir
rimraf(`${tmpdir}`, (err) => {
if (err) {
let m = `Error occured while deleting old '_copy_to_usb' folder: ${err}\n Try closing all other running programs and folders before compiling.`
aioLog(m, m)
}
buildTweaksConfig(user, apps)
})
}

function buildTweaksConfig(user, apps) {
setTimeout(() => {
/* Autorun Script Installer */
if (user.autorun.installer) {
@@ -461,15 +462,18 @@ function buildTweak(user) {
if (user.options.includes(25)) {
addTweak('25_androidauto-i.txt')
addTweakDir('androidauto', true)
if (user.aaWifi) {
if (user.aaHUD) {
addTweak('25_androidautohud-i.txt')
addTweakDir('androidautohud', true)
} else if (user.aaWifi) {
addTweak('25_androidautowifi-i.txt')
addTweakDir('androidautowifi', true)
}
if (user.aaBetaVer) {
} else if (user.aaBetaVer) {
addTweak('25_androidautob-i.txt')
if (!user.aaWifi) addTweakDir('androidautob', true)
if (!user.aaWifi) {
addTweakDir('androidautob', true)
}
}

}
if (user.options.includes(11)) {
addTweak('11_msgreplies-i.txt')
@@ -625,6 +629,16 @@ function buildTweak(user) {
swapdest = '/'
}
}
if (user.options.some((x) => { return x > 100 })) {
twkdir = '/config_org/'
mkdirp.sync(`${tmpdir}${twkdir}`)
if (!fs.existsSync(`${tmpdir}${twkdir}/v70`)) {
mkdirp.sync(`${tmpdir}${twkdir}/v70`)
copydir(`${builddir}${twkdir}/v70`, `${tmpdir}${twkdir}/v70`, (err) => {
(err) ? aioLog(`File Copy Error:`, `${err}`): aioLog(`Copied v70 Fallback Files`)
})
}
}
setTimeout(() => {
// Finish with the end script
addTweak(user.options.includes(11) ? '00_factory-reset-end.txt' : '00_end.txt')
@@ -731,7 +745,7 @@ function writeSpeedoConfigFile(user) {
})

fs.writeFileSync(`${tmpdir}/config/speedometer/speedometer-controls.js`, `var spdBtn = ${JSON.stringify(user.multictrl,null,'\t')}`)
for (bt in user.barThemeColors) {
for (var bt in user.barThemeColors) {
var num = user.barThemeColors[bt].num
barColorFile += `/* Theme #${num} */\n`
barColorFile += `#speedBarContainer.theme${num} #vehdataMainDiv fieldset div, #speedBarContainer.theme${num} #vehdataMainDiv [class*="vehDataMain"].pos0 div {\n`
@@ -746,13 +760,14 @@ function writeSpeedoConfigFile(user) {
}

function tweakVariables(user) {
mkdirp.sync(`${varDir}`)

var bak = `KEEPBKUPS=` + (user.backups.org ? `1\n` : `0\n`)
bak += `TESTBKUPS=` + (user.backups.test ? `1\n` : `0\n`)
bak += `SKIPCONFIRM=` + (user.backups.skipconfirm ? `1\n` : `0\n`)
bak += `APPS2RESOURCES=` + (user.backups.apps2resources ? `1\n` : `0\n`)
bak += (user.mainOps.includes(1) ? `ZIPBACKUP=` + (user.zipbackup ? `1\n` : `0\n`) : '')
bak += (user.mainOps.includes(4) ? `FORCESSH=` + (user.forcessh ? `1\n` : `0\n`) : '')
bak += (user.mainOps.includes(4) || user.options.includes(21) ? `FORCESSH=` + (user.forcessh ? `1\n` : `0\n`) : '')
fs.writeFileSync(`${varDir}/backups.txt`, bak)
tweaks2write.push(`${varDir}/backups.txt`)

@@ -872,6 +887,7 @@ function tweakVariables(user) {
var vpops = `VP_SHUFFLE=${user.vpOps.shuffle}\n`
vpops += `VP_REPEAT=${user.vpOps.repeat}\n`
vpops += `VP_FULLSCRN=${user.vpOps.fullscreen}\n`
vpops += `VP_V4LSINK=${user.vpOps.v4lsink}\n`
fs.writeFileSync(`${varDir}/vpops.txt`, vpops)
tweaks2write.push(`${varDir}/vpops.txt`)
}
@@ -897,7 +913,7 @@ function tweakVariables(user) {
sops += `SBUNIT=speedUnit\n`
sops += `BTSTART=${user.spdExtra.barThemeStart}\n`
sops += `SBINT=${user.speedoOps.sbint*1000}\n`
for (fb in user.fuelBarColors) {
for (var fb in user.fuelBarColors) {
sops += `${user.fuelBarColors[fb].bashVar}="${user.fuelBarColors[fb].colorVal}"\n`
//console.log(`${user.fuelBarColors[fb].bashVar}="${user.fuelBarColors[fb].colorVal}"`);
}
@@ -927,9 +943,13 @@ function convert2LF() {
fs.renameSync(`${tmpdir}/tweaks.txt`, `${tmpdir}/${tweaksFileName}.sh`)
aioLog(`Writing ${tweaksFileName}.sh`)
if (`${tweaksFileName}` === 'run') {
fs.unlinkSync(`${tmpdir}/jci-autoupdate`)
fs.unlinkSync(`${tmpdir}/cmu_dataretrieval.up`)
fs.unlinkSync(`${tmpdir}/dataRetrieval_config.txt`)
try {
fs.unlinkSync(`${tmpdir}/jci-autoupdate`)
fs.unlinkSync(`${tmpdir}/cmu_dataretrieval.up`)
fs.unlinkSync(`${tmpdir}/dataRetrieval_config.txt`)
} catch (e) {
aioLog(`${e}`)
}
}
opsComplete = true
setTimeout(() => {
@@ -947,7 +967,7 @@ function addTweakDir(twk, inst) {
var twkdir = '/config/'
if (!inst) {
twkdir = '/config_org/'
mkdirp.sync(`${tmpdir}/config_org/`)
mkdirp.sync(`${tmpdir}${twkdir}`)
}
try {
if (!fs.existsSync(`${tmpdir}${twkdir}${twk}`)) {
@@ -1082,10 +1102,10 @@ function usbDrives() {
lst += `<h2><b>${usb.length} ${langObj.popupMsgs[6].msg}:</b></h2>`
var usbuttons = ''
for (var j = 0; j < usb.length; j++) {
var mpLocation = (process.platform === 'win32') ? `${usb[j].mp.replace('\\', '/')}` : `${usb[j].mp}`
lst += `<h4> ${mpLocation.replace('/','')} ${usb[j].desc} `
lst += `<button class="w3-round w3-btn w3-ripple w3-hover-indigo w3-border w3-hover-border-pink w3-large" title='${langObj.popupMsgs[5].msg} ${mpLocation.replace(':/','')}' onclick="shell.showItemInFolder('${mpLocation}')"></span><span class="icon-usb2"></span> ${langObj.popupMsgs[5].msg} ${mpLocation.replace(':/','')}</button></h4>`
appendAIOlog(`<li style='color:#005182'>Found USB Drive #${j + 1} - ${mpLocation.replace(':/','')} ${usb[j].desc}</li>`)
var mpLoc = (process.platform === 'win32') ? `${usb[j].mp.replace('\\', '/')}` : `${usb[j].mp}`
lst += `<h4> ${mpLoc.replace('/','')} ${usb[j].desc} `
lst += `<button class="w3-round w3-btn w3-ripple w3-hover-indigo w3-border w3-hover-border-pink w3-large" title='${langObj.popupMsgs[5].msg} ${mpLoc.replace(':/','')}' onclick="shell.showItemInFolder('${mpLoc}')"></span><span class="icon-usb2"></span> ${langObj.popupMsgs[5].msg} ${mpLoc.replace(':/','')}</button></h4>`
appendAIOlog(`<li style='color:#005182'>Found USB Drive #${j + 1} - ${mpLoc.replace(':/','')} ${usb[j].desc}</li>`)
}
lst += `<h5><b>${langObj.popupMsgs[8].msg}:</b></h5>${langObj.popupMsgs[2].msg}`
lst += usbuttons
@@ -1437,7 +1457,7 @@ function fullSystemRestore(user) {
function buildAutorunInstaller(user) {
if (user.autorun.serial) {
tmpdir = `${tmpdir}/XX`
try{
try {
mkdirp.sync(`${tmpdir}`)
} catch (e) {
errFlag = true
@@ -1556,17 +1576,17 @@ function writePresetMessageFile(result) {
}

function copyPresetMessageFile() {
if(fs.existsSync(`${varDir}/message_replies`)) {
if (fs.existsSync(`${varDir}/message_replies`)) {
copydir(`${varDir}/message_replies`, `${tmpdir}/config/message_replies`, (err) => {
if (err) {
aioLog(err + " copy default preset text messages")
addTweakDir('message_replies', true)
} else {
aioLog('Copied Preset Messages!')
}
})
} else {
aioLog("Copy default preset text messages")
addTweakDir('message_replies', true)
}
if (err) {
aioLog(err + " copy default preset text messages")
addTweakDir('message_replies', true)
} else {
aioLog('Copied Preset Messages!')
}
})
} else {
aioLog("Copy default preset text messages")
addTweakDir('message_replies', true)
}
}
@@ -1,8 +1,5 @@
/* jshint esversion:6, -W033, -W117, -W097, -W116 */
/* Automatically Open Background Dialog, Color DL and Speedcam DL On First Checkbox Click Only */
/* jshint esversion:6 */
/* jshint -W033 */
/* jshint -W117*/
/* jshint -W097*/
const selectBgDir = $('.menuCheck.bg input')
const selectColorsDL = $('.menuCheck.colors input')
$(function() {
@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117*/
// Open all external links *with class="link"* outside the app
// Credit: Electron API Demos app
var links = document.querySelectorAll('a.link')
@@ -65,7 +65,7 @@ var Gritter = function() {
sticky: false,
// (function) before the gritter notice is opened
before_open: function() {
if ($('.gritter-item-wrapper').length == 3) {
if ($('.gritter-item-wrapper').length === 3) {
// Returning false prevents a new gritter from opening
return false;
}
@@ -3,14 +3,14 @@
** MZD-AIO-TI **
** By: Trezdog44 - Trevor Martin **
** http://mazdatweaks.com **
** Β©2017 Trevelopment **
** Β©2019 Trevelopment **
** **
** index.js - Helper javascript functions for the main view using electron **
** renderer process modules. **
** **
** ************************************************************************** **
\* ************************************************************************** */
/* jshint esversion:6, -W033 */
/* jshint esversion:6, -W033, -W117, -W097, -W116 */
const { electron, nativeImage, remote, clipboard, shell } = require('electron')
const { app, BrowserWindow } = remote
const _ = require('lodash')
@@ -46,7 +46,9 @@ var colordir = `${app.getPath('userData')}/color-schemes` // Location of downloa
var logFileName = 'MZD_LOG' // Name of log file (without extension)
var varDir = `${app.getPath('userData')}/background/` // Location of files with saved variables
var date = function() { return new Date() }
var updateVer = 281
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true
var helpClick = false
var updateVer = 282
// require('./lib/log')('MZD-AIO-LOG')
// var output = process.stdout
// var errorOutput = process.stderr
@@ -132,15 +134,17 @@ ipc.on('open-copy-folder', () => {
})

function openCopyFolder() {
copyFolderLocation = path.normalize(path.join(persistantData.get('copyFolderLocation'), '/_copy_to_usb/config'))
if (!shell.showItemInFolder(copyFolderLocation)) {
copyFolderLocation = path.normalize(path.join(persistantData.get('copyFolderLocation'), '/_copy_to_usb/tweaks.sh'))
if (!shell.showItemInFolder(copyFolderLocation)) {
if (!fs.existsSync(`${copyFolderLocation}/_copy_to_usb`)) {
mkdirp.sync(`${copyFolderLocation}/_copy_to_usb`)
}
var openCopy = (process.platform === "win32" ? `${copyFolderLocation}/_copy_to_usb/*`:`${copyFolderLocation}/_copy_to_usb/tweaks.sh`)
shell.showItemInFolder(openCopy, { activate: true }, (err) => {
if (err) {
bootbox.alert({
message: `"${copyFolderLocation.replace('config', '')}" Does Not Exist. Click "Start Compilation" to Run The Tweak Builder and Create the _copy_to_usb Folder.`
})
}
}
})
}

function openApkFolder() {
@@ -161,7 +165,7 @@ function autoHelp() {

function myStance() {
ipc.send('reset-window-size')
$.featherlight('views/stance.htm', { closeSpeed: 2000, variant: 'myStance', afterClose: updateNotesCallback })
// $.featherlight('views/stance.htm', { closeSpeed: 2000, variant: 'myStance', afterClose: updateNotesCallback })
}

function announcement() {
@@ -271,10 +275,13 @@ function helpDropdown() {
}

function closeHelpDrop() {
var x = document.getElementById('helpDrop')
var y = document.getElementById('helpDropBtn')
x.className = x.className.replace(' w3-show', '')
y.innerHTML = "<span class='icon-cog3'></span>"
var x, y
if (x = document.getElementById('helpDrop')) {
x.className = x.className.replace(' w3-show', '')
}
if (y = document.getElementById('helpDropBtn')) {
y.innerHTML = "<span class='icon-cog3'></span>"
}
}
// Normal Drop Down Menus
function dropDownMenu(id) {
@@ -1,12 +1,14 @@
/* jshint esversion:6, -W117*/
'use strict'


const path = require('path')
const cp = require('child_process')
const remote = require('electron').remote
const app = remote.app
const dialog = remote.dialog
const isDev = require('electron-is-dev')
const adb = path.resolve((isDev ? path.resolve(`${__dirname}`, "../../") : path.dirname(process.execPath)), 'resources/adb`/adb.exe')
const adb = path.resolve((isDev ? path.resolve(`${__dirname}`, "../../") : path.dirname(process.execPath)), 'resources/adb/adb.exe')
const apk = path.resolve((isDev ? path.resolve(`${__dirname}`, "../../") : path.dirname(process.execPath)), 'castscreenApp/castscreen-1.0.1.apk')


@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117, -W116 */
var xml2js = require('xml2js')
//var settingsData = new Config({ 'name': 'msgSettings' })
var data2edit, msgLangs = [],
@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117 */
// Display a notification message when a new version is ready for install
var dll = null
ipc.on('update-not available', (event) => {
@@ -104,7 +105,7 @@ function snackbar(message, mtime) {
$.gritter.add({
title: 'MZD-AIO',
text: message,
time: mtime * 1000 || 10000
time: mtime * 1000 || 5000
});
}

@@ -1,3 +1,4 @@
/* jshint esversion:6, -W083 */
const electron = require('electron')
const ipc = electron.ipcRenderer

@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117*/
window.URL = window.URL || window.webkitURL || window.mozURL || window.msURL
window.saveAs = window.saveAs || window.webkitSaveAs || window.mozSaveAs || window.msSaveAs

@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117*/
var translateData = new Config({ 'name': 'speedo-config' })

// Hook up the Restore to Default button
@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117*/
function startTour(tourMsgs) {
var tour = introJs().setOptions({ 'skipLabel': 'Skip Tour', 'doneLabel': 'Start!', 'tooltipClass': 'w3-pale-green w3-center', 'showStepNumbers': false, 'scrollToItem': true, 'exitOnOverlayClick': false, 'hideNext': true, 'hidePrev': true })
tour.setOptions({
@@ -1,3 +1,4 @@
/* jshint esversion:6, -W117*/
var translateData = new Config({ 'name': 'aio-translate-save' })
document.getElementById('submit').innerHTML = langObj.translatorWindow[14].label

Oops, something went wrong.

0 comments on commit 0126adb

Please sign in to comment.