Changeset 3581
- Timestamp:
- Feb 9, 2017, 12:24:41 PM (4 years ago)
- Location:
- lliurexberry-gui/trunk/fuentes
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurexberry-gui/trunk/fuentes/debian/changelog
r778 r3581 1 lliurexberry-gui (0.6) xenial; urgency=medium 2 3 * Prepare to download optional package lliurexberry-data 4 * Changed dependency node-webkit -> nwjs0.12 5 6 -- M.Angel Juan <m.angel.juan@gmail.com> Thu, 09 Feb 2017 12:23:43 +0100 7 1 8 lliurexberry-gui (0.5) xenial; urgency=medium 2 9 -
lliurexberry-gui/trunk/fuentes/debian/control
r778 r3581 2 2 Section: admin 3 3 Priority: optional 4 Maintainer: Raul Rodrigo Segura < raurodse@gmail.com>4 Maintainer: Raul Rodrigo Segura <m.angel.juan@gmail.com> 5 5 Build-Depends: debhelper (>= 8.0.0), llxsrchelper 6 6 Standards-Version: 3.9.4 … … 9 9 Package: lliurexberry-gui 10 10 Architecture: all 11 Depends: ${shlibs:Depends}, ${misc:Depends}, n4d-lliurexberry, n ode-webkit11 Depends: ${shlibs:Depends}, ${misc:Depends}, n4d-lliurexberry, nwjs0.12 12 12 Description: lliurexberry gui 13 13 Gui to create sd for raspberry pi on LliureX -
lliurexberry-gui/trunk/fuentes/src/css/main.css
r778 r3581 87 87 background-color: white; 88 88 } 89 .download-gif{ 90 background-image:url(icons/downloading.gif); 91 display: block; 92 height: 64px; 93 width: 64px; 94 margin-left: 64px; 95 } -
lliurexberry-gui/trunk/fuentes/src/i18n/ca_ES.UTF-8@valencia.js
r778 r3581 1 module.exports = {"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=2; plural=(n != 1);","lang":"es"},"Based on Raspbian, LliureXBerry is a project aimed to able small ARM computers, such as Raspberry Pi to run as thin clients":["Basat en el Raspbian, el LliureXBerry és un projecte dissenyat per a poder utilitzar ordinadors amb arquitectura ARM, com ara la Raspberry Pi perquè s'execute com a client lleuger."],"This wizard will guide you to make LliureXBerry on an SD Card to run Raspberry Pi as a thin client.":["Este auxiliar vos guiarà per a instal·lar el LliureXBerry en una targeta SD per a utilitzar la Raspberry Pi com a client lleuger."],"Stage 1. Preparing SD Card":["Pas 1. Preparació de la targeta SD"],"Remove SD Card from your system and press Start Wizard Button":["Traieu la targeta SD del sistema i premeu el botó Inicia l'auxiliar."]," Start Wizard":["Inicia l'auxiliar"],"Stage 2. Preparing SD Card":["Pas 2. Preparació de la targeta SD"],"Insert now your sd card, and wait for LMD find it":["Inseriu la targeta SD nova i espereu que l'LMD la trobe."],"Cancel":["Cancel·la"],"Stage 3. Select device":["Pas 3. Selecció del dispositiu"],"Select device from below":["Seleccioneu un dispositiu dels que hi ha a continuació."],"Device":["Dispositiu"],"Model":["Model"],"Size":["Mida"]," Create LliureXBerry Startup media":["Crea el sistema d'arrancada LliureXBerry al dispositiu"],"Finished":["Ha finalitzat"],"Login with local user that belong to adm group":["Introduïx el nom i la contrasenya de un usuari local que pertanga al grup adm"],"Username":["Nom d'usuari"],"Password":["Contrasenya"] }}};1 module.exports = {"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=2; plural=(n != 1);","lang":"es"},"Based on Raspbian, LliureXBerry is a project aimed to able small ARM computers, such as Raspberry Pi to run as thin clients":["Basat en el Raspbian, el LliureXBerry és un projecte dissenyat per a poder utilitzar ordinadors amb arquitectura ARM, com ara la Raspberry Pi perquè s'execute com a client lleuger."],"This wizard will guide you to make LliureXBerry on an SD Card to run Raspberry Pi as a thin client.":["Este auxiliar vos guiarà per a instal·lar el LliureXBerry en una targeta SD per a utilitzar la Raspberry Pi com a client lleuger."],"Stage 1. Preparing SD Card":["Pas 1. Preparació de la targeta SD"],"Remove SD Card from your system and press Start Wizard Button":["Traieu la targeta SD del sistema i premeu el botó Inicia l'auxiliar."]," Start Wizard":["Inicia l'auxiliar"],"Stage 2. Preparing SD Card":["Pas 2. Preparació de la targeta SD"],"Insert now your sd card, and wait for LMD find it":["Inseriu la targeta SD nova i espereu que l'LMD la trobe."],"Cancel":["Cancel·la"],"Stage 3. Select device":["Pas 3. Selecció del dispositiu"],"Select device from below":["Seleccioneu un dispositiu dels que hi ha a continuació."],"Device":["Dispositiu"],"Model":["Model"],"Size":["Mida"]," Create LliureXBerry Startup media":["Crea el sistema d'arrancada LliureXBerry al dispositiu"],"Finished":["Ha finalitzat"],"Login with local user that belong to adm group":["Introduïx el nom i la contrasenya de un usuari local que pertanga al grup adm"],"Username":["Nom d'usuari"],"Password":["Contrasenya"],"Couldn't download lliurexberry-data package, check your sources.list or availability":["No s'ha pogut descarregar el paquet lliurexberry-data, comprove el fitxer sources.list o la disponibilitat del paquet"],"Checking package data":["Comprovant la disponibilitat del paquet de dades"],"lliurexberry-data not found, this is a needed package to work properly, please download from the button below":["lliurexberry-data no s'ha trovat, aquest es un paquet necesari per funcionar correctament, pot descarregarlo des del botó de baix"],"Download package lliurexberry-data":["Descarregar el paquet lliurexberry-data"],"Pressing the button lliurexberry-data package will install on this system":["Polsant el botó el paquet lliurexberry-data serà instal·lat en aquest sistema"],"Download & Install":["Descarregar i instalar-lo"],"Check another time":["Comprovar-ho altra vegada"]}}}; -
lliurexberry-gui/trunk/fuentes/src/i18n/es_ES.UTF-8.js
r778 r3581 1 module.exports = {"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=2; plural=(n != 1);","lang":"es"},"Based on Raspbian, LliureXBerry is a project aimed to able small ARM computers, such as Raspberry Pi to run as thin clients":["Basado en Raspbian, LliureXBerry es un proyecto que es capaz de funcionar en pequeñas computadoras ARM, como Raspberry PI como clientes ligeros."],"This wizard will guide you to make LliureXBerry on an SD Card to run Raspberry Pi as a thin client.":["Este asistente le guiará para grabar la imagen de LliureXBerry en una tarjeta SD y usarla en los clientes ligeros."],"Stage 1. Preparing SD Card":["Paso 1. Preparando la tarjeta SD."],"Remove SD Card from your system and press Start Wizard Button":["Desconecte la tarjeta SD del equipo y pulse el botón de comenzar."]," Start Wizard":[" Comenzar"],"Stage 2. Preparing SD Card":["Paso 2. Preparando la tarjeta SD"],"Insert now your sd card, and wait for LMD find it":["Introduzca ahora la tarjeta SD, y espere que LMD la detecte."],"Cancel":["Cancelar"],"Stage 3. Select device":["Paso 3. Seleccione un dispositivo"],"Select device from below":["Seleccione un dispositivo de la lista"],"Device":["Dispositivo"],"Model":["Modelo"],"Size":["Tamaño"]," Create LliureXBerry Startup media":[" Crear un dispositivo de arranque con LliureXBerry"],"Finished":["Finalizado"],"Login with local user that belong to adm group":["Introduce nombre y contraseña de un usuario que pertenezca al grupo adm"],"Username":["Usuario"],"Password":["Contraseña"] }}};1 module.exports = {"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=2; plural=(n != 1);","lang":"es"},"Based on Raspbian, LliureXBerry is a project aimed to able small ARM computers, such as Raspberry Pi to run as thin clients":["Basado en Raspbian, LliureXBerry es un proyecto que es capaz de funcionar en pequeñas computadoras ARM, como Raspberry PI como clientes ligeros."],"This wizard will guide you to make LliureXBerry on an SD Card to run Raspberry Pi as a thin client.":["Este asistente le guiará para grabar la imagen de LliureXBerry en una tarjeta SD y usarla en los clientes ligeros."],"Stage 1. Preparing SD Card":["Paso 1. Preparando la tarjeta SD."],"Remove SD Card from your system and press Start Wizard Button":["Desconecte la tarjeta SD del equipo y pulse el botón de comenzar."]," Start Wizard":[" Comenzar"],"Stage 2. Preparing SD Card":["Paso 2. Preparando la tarjeta SD"],"Insert now your sd card, and wait for LMD find it":["Introduzca ahora la tarjeta SD, y espere que LMD la detecte."],"Cancel":["Cancelar"],"Stage 3. Select device":["Paso 3. Seleccione un dispositivo"],"Select device from below":["Seleccione un dispositivo de la lista"],"Device":["Dispositivo"],"Model":["Modelo"],"Size":["Tamaño"]," Create LliureXBerry Startup media":[" Crear un dispositivo de arranque con LliureXBerry"],"Finished":["Finalizado"],"Login with local user that belong to adm group":["Introduce nombre y contraseña de un usuario que pertenezca al grupo adm"],"Username":["Usuario"],"Password":["Contraseña"],"Couldn't download lliurexberry-data package, check your sources.list or availability":["No se ha podido descargar el paquete lliurexberry-data comprueba el fichero sources.list o la disponibilidad del paquete"],"Checking package data":["Comprobando disponibilidad del paquete de datos"],"lliurexberry-data not found, this is a needed package to work properly, please download from the button below":["lliurexberry-data no ha sido encontrado en este sistema, para que funcione correctamente debe estar instalado, work properly, puedes descargarlo desde el botón inferior"],"Download package lliurexberry-data":["Descargar el paquete lliurexberry-data"],"Pressing the button lliurexberry-data package will install on this system":["Pulsando el botón el paquete lliurexberry-data será instalado en este sistema"],"Download & Install":["Descargar e instalar"],"Check another time":["Realizar comprobaciones otra vez"]}}}; -
lliurexberry-gui/trunk/fuentes/src/js/lib/core/BerryManager.js
r778 r3581 10 10 this.selecteddevice = ""; 11 11 var i18n = application.util.i18n.getInstance(); 12 this.package_available = "unninitialized"; 12 13 13 14 this.setFirstDeviceList=function setFirstDeviceList(data){ … … 42 43 } 43 44 44 45 this.check_for_data_package = function check_for_data_package(callback_true,callback_false){ 46 $.xmlrpc({ 47 url: 'https://localhost:9779', 48 methodName: 'check_for_data_package', 49 params: ['', "LliurexBerry"], 50 success: function(response,status,jqXHR){ 51 //alert(response[0]['status']); 52 //alert(response[0]['msg'].length); 53 54 if ( response[0]['status']===true){ 55 self.package_available=true; 56 callback_true(); 57 } 58 else { 59 self.package_available=false; 60 callback_false(); 61 } 62 63 64 }, 65 error: function(jqXHR, status, error) { 66 alert("Status: "+status+"\nError: N4D "+error); 67 } 68 }) 69 return false; 70 } 71 this.download_package_data=function download_package_data(callback_true,callback_false){ 72 $.xmlrpc({ 73 url: 'https://localhost:9779', 74 methodName: 'download_package_data', 75 params: [[sessionStorage.localusername, sessionStorage.localpassword], "LliurexBerry"], 76 success: function(response,status,jqXHR){ 77 //alert(response[0]['status']); 78 //alert(response[0]['msg'].length); 79 if ( response[0]['status']===true){ 80 callback_true(); 81 } 82 else{ 83 callback_false(response[0]['msg']); 84 } 85 86 }, 87 error: function(jqXHR, status, error) { 88 alert(sessionStorage.localusername); 89 alert(sessionStorage.localpassword); 90 91 alert("Status: "+status+"\nError: N4D server is down "+error); 92 } 93 }) 94 } 95 45 96 this.showIntro=function showIntro(){ 46 97 text=i18n.gettext("Based on Raspbian, LliureXBerry is a project aimed to able small ARM computers, such as Raspberry Pi to run as thin clients"); … … 200 251 this.showMe=function showMe(){ 201 252 $("#tab_pi").empty(); 202 203 clearInterval(self.searchInterval); 204 self.showIntro(); 253 if (self.package_available==true || self.package_available == 'unninitialized'){ 254 self.showIntro(); 255 256 var div_wizard=$(document.createElement("div")).attr("id", "divWizard"); 257 $("#tab_pi").append(div_wizard); 258 259 260 if ( ! sessionStorage.hasOwnProperty("localusername") || ! sessionStorage.hasOwnProperty("localpassword")){ 261 self.showLogin(); 262 }else{ 263 self.showStage1(); 264 self.bind_ui(); 265 } 266 }else{ 267 text=i18n.gettext("Checking package data"); 268 var div_download_package=$(document.createElement("div")).html(text).addClass("BerryParagraph"); 269 $("#tab_pi").append(div_download_package); 270 self.check_for_data_package(self.showMe,self.show_download_package_data); 271 } 272 } 273 274 this.show_download_package_data = function show_download_data_package(){ 275 276 $("#tab_pi").empty(); 277 text=i18n.gettext("lliurexberry-data not found, this is a needed package to work properly, please download from the button below"); 278 var div_download_package=$(document.createElement("div")).html(text).addClass("BerryParagraph"); 279 280 $("#tab_pi").append(div_download_package); 205 281 206 282 var div_wizard=$(document.createElement("div")).attr("id", "divWizard"); 207 283 $("#tab_pi").append(div_wizard); 208 284 209 if ( ! sessionStorage.hasOwnProperty("localusername") || ! sessionStorage.hasOwnProperty("localpassword")){ 210 self.showLogin(); 211 } 212 else{ 213 self.showStage1(); 214 self.bind_ui(); 215 } 216 217 } 218 285 286 $("#divWizard").empty(); 287 var title=$(document.createElement("h3")).html(i18n.gettext("Download package lliurexberry-data")); 288 $("#divWizard").append(title); 289 var text=$(document.createElement("div")).html(i18n.gettext("Pressing the button lliurexberry-data package will install on this system")).addClass("BerryParagraph"); 290 $("#divWizard").append(text); 291 var btdown=$(document.createElement("button")).attr("id", "btdown"); 292 btdown.addClass("btWizard green firstbutton").html(i18n.gettext("Download & Install")); 293 $("#divWizard").append(btdown); 294 self.bind_ui(); 295 296 } 297 219 298 this.showLogin = function showLogin(){ 220 299 $("#divWizard").empty(); … … 252 331 sessionStorage.localusername = username; 253 332 sessionStorage.localpassword = password; 254 self.showStage1(); 333 self.package_available=false; 334 self.showMe(); 255 335 self.bind_ui(); 256 336 } else { … … 265 345 266 346 } 267 347 this.fail_download = function fail_download(msg){ 348 $('#tab_pi').empty(); 349 //var text='<h2>Error: '+msg+'<br /><br />'+i18n.gettext("berrymanager.loginlocal.tittle")+'</h2>'; 350 var text='<br /><br /><h2>'+i18n.gettext("Couldn't download lliurexberry-data package, check your sources.list or availability")+'</h2>'; 351 var div_download_package=$(document.createElement("div")).html(text).addClass("BerryParagraph").attr("id", "divWizard"); 352 $("#tab_pi").append(div_download_package); 353 var retry=$("<button id='retry_button'>"+i18n.gettext("Check another time")+"</button>"); 354 retry.addClass("btWizard green firstbutton"); 355 $("#tab_pi").append(retry); 356 self.bind_ui(); 357 } 358 268 359 this.bind_ui=function bind_ui(){ 269 360 $("#btwiz1").bind("click",function(){ … … 271 362 }) 272 363 273 } 364 365 $("#btdown").bind("click",function(){ 366 var icon=$(document.createElement("i")).addClass("download-gif"); 367 var btdown=$("#btdown"); 368 369 btdown.parent().append(icon); 370 btdown.remove(); 371 372 self.download_package_data(self.showMe,self.fail_download); 373 }) 374 375 $("#retry_button").bind("click",function(){ 376 self.showMe(); 377 }) 378 379 } 380 381 274 382 } 275 383 -
lliurexberry-gui/trunk/fuentes/src/package.json
r778 r3581 10 10 "title": "LliureX Berry", 11 11 "icon": "/usr/share/icons/hicolor/48x48/apps/lliurexberry.png", 12 "toolbar": false,12 "toolbar": true, 13 13 "frame": true, 14 14 "width": 1024,
Note: See TracChangeset
for help on using the changeset viewer.