No internet feature
This commit is contained in:
@ -65,6 +65,7 @@
|
||||
"not_connected": "Sembla que no esteu connectat a Internet.",
|
||||
"please_config": "Configureu la connexió Wi-Fi.",
|
||||
"lets_do_btn": "D'acord, fem això.",
|
||||
"no_internet": "Utilitzeu-lo fora de línia",
|
||||
"wifi_connected": "Wi-Fi connectat",
|
||||
"wifi_not_connected": "Wi-Fi no connectat. Torneu-ho a provar.",
|
||||
"tap_keyboard": "Toqueu el teclat virtual per començar",
|
||||
|
@ -65,6 +65,7 @@
|
||||
"not_connected": "You seem to not be connected to Internet.",
|
||||
"please_config": "Please configure the Wi-Fi connection.",
|
||||
"lets_do_btn": "Ok, let's do that.",
|
||||
"no_internet": "Use it offline",
|
||||
"wifi_connected": "Wi-Fi connected",
|
||||
"wifi_not_connected": "Wi-Fi not connected. Please retry.",
|
||||
"tap_keyboard": "Tap on the virtual keyboard to start",
|
||||
|
@ -63,6 +63,7 @@
|
||||
"wifi_name": "Nombre de Wi-Fi",
|
||||
"refresh_btn": "Actualizar lista de redes",
|
||||
"not_connected": "Parece que no estás conectado a Internet",
|
||||
"no_internet": "Úselo sin conexión",
|
||||
"please_config": "Configure la conexión Wi-Fi.",
|
||||
"lets_do_btn": "Ok, hagámoslo",
|
||||
"wifi_connected": "Wi-Fi conectado",
|
||||
|
@ -62,9 +62,10 @@
|
||||
"yes_btn": "Oui, utilisez celle-là",
|
||||
"wifi_name": "Nom du réseau",
|
||||
"refresh_btn": "Rafraichir la liste des réseaux",
|
||||
"not_connected": "Vous semblez ne pas être connecté à Internet.",
|
||||
"please_config": "Configurez la connexion Wi-Fi.",
|
||||
"lets_do_btn": "Oui, allons-y",
|
||||
"not_connected": "Vous ne semblez pas être connecté à Internet.",
|
||||
"please_config": "Merci de configurer une connexion Wi-Fi.",
|
||||
"lets_do_btn": "Oui, configurer le Wi-Fi",
|
||||
"no_internet": "Utiliser sans internet",
|
||||
"wifi_connected": "Wi-Fi connecté",
|
||||
"wifi_not_connected": "Wi-Fi non connecté. Ressayez.",
|
||||
"tap_keyboard": "Appuez sur cet espace pour écrire",
|
||||
|
@ -32,7 +32,7 @@
|
||||
<span v-html="$t('generate-ap.error_msg2')"></span>
|
||||
<br /><br />
|
||||
</p>
|
||||
<button v-if="window.config.reboot_option" class="btn" v-on:click="reboot()">{{ $t("generate-ap.restart_btn") }}</button>
|
||||
<button v-if="reboot_option" class="btn" v-on:click="reboot()">{{ $t("generate-ap.restart_btn") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -54,7 +54,7 @@ export default {
|
||||
capture_start: false,
|
||||
interval: false,
|
||||
error: false,
|
||||
reboot_option: false,
|
||||
reboot_option: window.config.reboot_option,
|
||||
attempts: 3,
|
||||
translation: {}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ export default {
|
||||
var saved_ssid = this.saved_ssid
|
||||
var list_ssids = this.list_ssids
|
||||
var internet = this.internet
|
||||
if (window.config.iface_out.charAt(0) == 'e' || window.config.iface_out.charAt(0) == 'n'){
|
||||
if (window.config.iface_out.charAt(0) == 'e'){
|
||||
router.push({ name: 'generate-ap' });
|
||||
} else {
|
||||
router.push({ name: 'wifi-select',
|
||||
|
@ -23,7 +23,7 @@
|
||||
axios.get('/api/network/status', { timeout: 10000 })
|
||||
.then(response => {
|
||||
if (response.data.internet) this.internet = true
|
||||
if (window.config.iface_out.charAt(0) == 'e' || window.config.iface_out.charAt(0) == 'n') {
|
||||
if (window.config.iface_out.charAt(0) == 'e') {
|
||||
setTimeout(function () { this.goto_home(); }.bind(this), 1000);
|
||||
} else {
|
||||
this.get_wifi_networks();
|
||||
|
@ -31,7 +31,7 @@
|
||||
<div v-else>
|
||||
<p><strong>{{ $t("wifi-select.not_connected") }}</strong><br />{{ $t("wifi-select.please_config") }}</p>
|
||||
<div class="empty-action">
|
||||
<button class="btn btn-primary" @click="enter_creds = true">{{ $t("wifi-select.lets_do_btn") }}</button>
|
||||
<button class="btn" v-on:click="force_ap()">{{ $t("wifi-select.no_internet") }}</button> <button class="btn btn-primary" @click="enter_creds = true">{{ $t("wifi-select.lets_do_btn") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -117,6 +117,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
force_ap: function() {
|
||||
router.push({ name: 'generate-ap' });
|
||||
},
|
||||
onChange(input) {
|
||||
this.input = input
|
||||
this.password = this.input;
|
||||
|
Reference in New Issue
Block a user