From 711c1cb8d5574a785f980a3f840a848a6701ed0b Mon Sep 17 00:00:00 2001 From: Joabesv Date: Mon, 5 Feb 2024 00:22:25 -0300 Subject: [PATCH 1/3] refac: remove unused locales --- app/_locales/en/messages.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 app/_locales/en/messages.json diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json deleted file mode 100644 index 6aa6594..0000000 --- a/app/_locales/en/messages.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "appName": { - "message": "ex", - "description": "The name of the application" - }, - "appShortName": { - "message": "ex", - "description": "The short_name (maximum of 12 characters recommended) is a short version of the app's name." - }, - "appDescription": { - "message": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", - "description": "The description of the application" - } -} From cc0346378135ad62e0d4d34238c3460f87ec6d12 Mon Sep 17 00:00:00 2001 From: Joabesv Date: Mon, 5 Feb 2024 00:27:00 -0300 Subject: [PATCH 2/3] fix: remove wrong manifest keys --- app/manifest.json | 1 - 1 file changed, 1 deletion(-) diff --git a/app/manifest.json b/app/manifest.json index 3835a8e..4958408 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -49,7 +49,6 @@ "content_security_policy": { "extension_pages": "script-src 'self'; object-src 'self'" }, - "options_page": "src/options/index.html", "web_accessible_resources": [ { "resources": [ From 0c2494c59e959f00638d01512d9c3d43588e5a1a Mon Sep 17 00:00:00 2001 From: Joabesv Date: Mon, 5 Feb 2024 00:36:40 -0300 Subject: [PATCH 3/3] feat: update deprecated apis --- app/scripts/portal/portal.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/app/scripts/portal/portal.js b/app/scripts/portal/portal.js index f9bc0d0..47246be 100644 --- a/app/scripts/portal/portal.js +++ b/app/scripts/portal/portal.js @@ -14,13 +14,15 @@ const logoWhite = require('./logo-white.svg') const toast = new Toastify({ text: "

Atualizando suas informações...

\n\n NÃO SAIA DESSA PÁGINA,

apenas aguarde, no máx. 5 min 🙏

", - duration: -1, + duration: -1, close: false, gravity: "bottom", position: 'right', className: 'toast-loading', avatar: loading, - backgroundColor: "linear-gradient(to right, #2E7EED, rgba(46, 126, 237, 0.5));", + style: { + background: 'linear-gradient(to right, #2E7EED, rgba(46, 126, 237, 0.5));' + }, }) if (isIndexPortalAluno()) { @@ -62,11 +64,11 @@ function iterateTabelaCursosAndSaveToLocalStorage () { tabelaCursos.each(async function () { var linhaCurso = $(this).children(); - + var nomeDoCurso = $(linhaCurso[0]).children('a').text() var fichaAlunoUrl = $(linhaCurso[1]).children('a').attr('href'); var anoDaGrade = $(linhaCurso[2]).text() - + const curso = await getFichaAluno(fichaAlunoUrl, nomeDoCurso, anoDaGrade) if(count == 0) toast.hideToast() count++ @@ -142,17 +144,19 @@ async function getFichaAluno(fichaAlunoUrl, nomeDoCurso, anoDaGrade) { curso.cursadas = jsonFicha.data; - return curso + return curso } catch(err) { console.log(err) Toastify({ text: "
Não foi possível salvar seus dados, recarregue a página e aguarde.
", - duration: -1, + duration: -1, close: true, gravity: "top", position: 'right', className: 'toast-error-container', - backgroundColor: "#E74C3C", + style: { + background: '#E74C3C;' + }, }).showToast() } }