diff --git a/db.json b/db.json index b71dedc..998225f 100644 --- a/db.json +++ b/db.json @@ -21,7 +21,7 @@ "title": "Responsividade", "description": "gedg", "status": "Pendente", - "date": "16/04/2026", + "date": "22/04/2026", "userId": 1 }, { diff --git a/usuario/usuario.html b/usuario/usuario.html index 06ca543..1c1cee7 100644 --- a/usuario/usuario.html +++ b/usuario/usuario.html @@ -44,7 +44,7 @@

TaskMaster

- + diff --git a/usuario/usuario.js b/usuario/usuario.js index b14288d..bda5447 100644 --- a/usuario/usuario.js +++ b/usuario/usuario.js @@ -2,10 +2,12 @@ const user = JSON.parse(localStorage.getItem('user')); const LINK_JSON = "http://localhost:3000"; -if (!user) { +if (!userData) { window.location.href = '/index.html'; } +const user = new Usuario(userData); + const statusConfig = { "Completa": { classe: "completa", diff --git a/usuarioclass.js b/usuarioclass.js index cb22e30..54c646a 100644 --- a/usuarioclass.js +++ b/usuarioclass.js @@ -12,4 +12,4 @@ class Usuario { } } -module.exports = Usuario; \ No newline at end of file +if (typeof module !== 'undefined') module.exports = Usuario; \ No newline at end of file