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" - } -} 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": [ 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() } }