diff --git a/comandos.txt b/comandos.txt
index 4158d05..b6d76f9 100644
--- a/comandos.txt
+++ b/comandos.txt
@@ -9,3 +9,4 @@ python manage.py migrate
python manage.py createsuperuser
pip freeze > requirements.txt
pip install -r requirements.txt
+python manage.py runserver_plus 192.168.0.100:8000 --cert-file /tmp/cert.crt
diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3
index 4701ea8..6abb85a 100644
Binary files a/gestaoRaul/db.sqlite3 and b/gestaoRaul/db.sqlite3 differ
diff --git a/gestaoRaul/orders/templates/orders.html b/gestaoRaul/orders/templates/orders.html
index 56274f5..0e73a7d 100644
--- a/gestaoRaul/orders/templates/orders.html
+++ b/gestaoRaul/orders/templates/orders.html
@@ -1,5 +1,7 @@
{% extends "base.html" %}
{% load static %}
+{% load custom_filter_tag %}
+
@@ -51,9 +53,11 @@
{{order.id_comanda.name}} - {{order.id_comanda.mesa.name}}
Atendente: {{order.id_comanda.user.first_name}}
{{order.queue|date:"D"}} {{order.queue|date:"d/m/Y - H:i"}}
+ {% if user|groupUser:"Cozinha" %}
+ {% endif %}
{% endif %}
{% endfor %}
@@ -75,9 +79,11 @@
{{order.id_comanda.name}} - {{order.id_comanda.mesa.name}}
Atendente: {{order.id_comanda.user.first_name}}
{{order.queue|date:"D"}} {{order.queue|date:"d/m/Y - H:i"}}
+ {% if user|groupUser:"Cozinha" %}
+ {% endif %}
{% endif %}
{% endfor %}
@@ -98,9 +104,11 @@
{{order.id_comanda.name}} - {{order.id_comanda.mesa.name}}
Atendente: {{order.id_comanda.user.first_name}}
{{order.queue|date:"D"}} {{order.queue|date:"d/m/Y - H:i"}}
+ {% if user|groupUser:"Garçom" %}
+ {% endif %}
{% endif %}
{% endfor %}
diff --git a/gestaoRaul/templates/base.html b/gestaoRaul/templates/base.html
index d9573bf..e390554 100644
--- a/gestaoRaul/templates/base.html
+++ b/gestaoRaul/templates/base.html
@@ -4,7 +4,7 @@
-
+
@@ -24,7 +24,6 @@
-
diff --git a/gestaoRaul/templates/static/base.js b/gestaoRaul/templates/static/base.js
index 0b2fcb3..c8c1d0e 100644
--- a/gestaoRaul/templates/static/base.js
+++ b/gestaoRaul/templates/static/base.js
@@ -11,4 +11,14 @@ function menuShow() {
function entrar(){
alert('Onde tu pensa que vai entrar?🤨');
-}
\ No newline at end of file
+}
+var elem = document.getElementById("all");
+function openFullscreen() {
+ if (elem.requestFullscreen) {
+ elem.requestFullscreen();
+ } else if (elem.webkitRequestFullscreen) { /* Safari */
+ elem.webkitRequestFullscreen();
+ } else if (elem.msRequestFullscreen) { /* IE11 */
+ elem.msRequestFullscreen();
+ }
+ }
diff --git a/gestaoRaul/templates/static/comandas/js/comandas.js b/gestaoRaul/templates/static/comandas/js/comandas.js
index e1011d4..89434d9 100644
--- a/gestaoRaul/templates/static/comandas/js/comandas.js
+++ b/gestaoRaul/templates/static/comandas/js/comandas.js
@@ -58,10 +58,8 @@ function notificacao(){
if (data['notificacao'] == 'true'){
console.log('verdadeiro')
document.cookie = `pronto=${data['pronto']}`;
- // navigator.vibrate(200);
- // navigator.vibrate([200, 100, 200]);
mostrarNotificacao(data['titulo'], data['corpo'],'Garçom')
- texto = new SpeechSynthesisUtterance(data['corpo']+', para '+data['titulo']);
+ texto = new SpeechSynthesisUtterance(data['corpo']+', para '+data['titulo']+' tá pronto.');
window.speechSynthesis.speak(texto);
console.log(data['notificacao'])
@@ -78,7 +76,6 @@ function notificacao(){
}
-
setInterval(()=> {
notificacao()
}, 10000)
diff --git a/gestaoRaul/templates/static/orders/js/orders.js b/gestaoRaul/templates/static/orders/js/orders.js
index 0d38715..0576813 100644
--- a/gestaoRaul/templates/static/orders/js/orders.js
+++ b/gestaoRaul/templates/static/orders/js/orders.js
@@ -77,16 +77,14 @@ function notificacao(){
.then(data => {
if (data['notificacao'] == 'true'){
document.cookie = `fila=${data['fila']}`;
- // navigator.vibrate(200);
- // navigator.vibrate([200, 100, 200]);
mostrarNotificacao(data['titulo'], data['corpo'],'Cozinha')
+ texto = new SpeechSynthesisUtterance(data['corpo']+', '+data['titulo']+'.');
+ window.speechSynthesis.speak(texto);
}else{
console.log(data['notificacao'])
console.log('notificação foi false')
}
- // var produtos_mais_vendidos = data.produtos_mais_vendidos
-
})
.catch(error => {
alert('Erro verificar notificação:', error)