3.1.0 muilti
This commit is contained in:
		
							parent
							
								
									ed396e0575
								
							
						
					
					
						commit
						64fea32966
					
				@ -39,5 +39,8 @@
 | 
			
		||||
    "failed": "Failed",
 | 
			
		||||
    "restoring-apps-complete": "Restoring Apps Complete",
 | 
			
		||||
    "batch-install-apps-complete": "Batch Install Apps Complete",
 | 
			
		||||
    "connect-to-watch": "Connect to watch"
 | 
			
		||||
    "connect-to-watch": "Connect to watch",
 | 
			
		||||
    "connected-via-usb": "Connected via USB",
 | 
			
		||||
    "connected-via-wifi": "Connected via Wifi",
 | 
			
		||||
    "not-connected": "Not Connected"
 | 
			
		||||
}
 | 
			
		||||
@ -37,13 +37,13 @@ module.exports = {
 | 
			
		||||
    },
 | 
			
		||||
    connectionCheck: async () => {
 | 
			
		||||
        if (globalVariables.localUSB === "X") {
 | 
			
		||||
            console.log(chalk.white('MiWatch: ') + chalk.green('Connected via USB'))
 | 
			
		||||
            console.log(chalk.white('MiWatch: ') + chalk.green(await Language.get('connected-via-usb')))
 | 
			
		||||
        }
 | 
			
		||||
        if (globalVariables.miWatchIpaddress != "") {
 | 
			
		||||
            console.log(chalk.white('MiWatch: ') + chalk.green('Connected via Wifi - ' + chalk.white(globalVariables.miWatchIpaddress)))
 | 
			
		||||
            console.log(chalk.white('MiWatch: ') + chalk.green(await Language.get('connected-via-wifi') + ' ' + chalk.white(globalVariables.miWatchIpaddress)))
 | 
			
		||||
        }
 | 
			
		||||
        if (globalVariables.localUSB === "" && globalVariables.miWatchIpaddress === "") {
 | 
			
		||||
            console.log(chalk.white('MiWatch: ') + chalk.red('Not Connected'))
 | 
			
		||||
            console.log(chalk.white('MiWatch: ') + chalk.red(await Language.get('not-connected')))
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    downloadFile: async (url, path) => {
 | 
			
		||||
 | 
			
		||||
@ -4,13 +4,6 @@ const common = require("./common");
 | 
			
		||||
 | 
			
		||||
const Language = require("@shypes/language-translator");
 | 
			
		||||
 | 
			
		||||
Language._({
 | 
			
		||||
  default_lang: "en",
 | 
			
		||||
  ext: ".json",
 | 
			
		||||
  __basedir: "./",
 | 
			
		||||
  langFolder: 'lang'
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
module.exports = {
 | 
			
		||||
  mainMenu: async () => {
 | 
			
		||||
    const questions = [{
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "miwatchkleaner",
 | 
			
		||||
  "version": "3.0.0",
 | 
			
		||||
  "version": "3.1.0",
 | 
			
		||||
  "description": "MiWatch Cleaning Tool",
 | 
			
		||||
  "main": "app.js",
 | 
			
		||||
  "bin": "app.js",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user