-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from NIAEFEUP/feat/linter-formatter
Added linter and formatter
- Loading branch information
Showing
83 changed files
with
7,428 additions
and
6,765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
/node_modules | ||
/dist | ||
/.yarn | ||
/.github | ||
/popup/.next | ||
/popup/.yarn | ||
/popup/.node_modules | ||
/popup/out | ||
|
||
.changes.json | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"useTabs": false, | ||
"tabWidth": 4, | ||
"printWidth": 80, | ||
"singleQuote": false, | ||
"endOfLine": "auto", | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
From [developer.apple.com](https://developer.apple.com/documentation/safariservices/safari_app_extensions/building_a_safari_app_extension#2957927): | ||
|
||
>To develop without a certificate, each time you launch Safari, you need to tell it to load unsigned extensions using the Develop menu: | ||
> To develop without a certificate, each time you launch Safari, you need to tell it to load unsigned extensions using the Develop menu: | ||
> | ||
> Open Safari and choose Safari > Preferences. | ||
> Open Safari and choose Safari > Preferences. | ||
> | ||
> Select the Advanced tab, then select the “Show Develop menu in menu bar” checkbox. | ||
> Select the Advanced tab, then select the “Show Develop menu in menu bar” checkbox. | ||
> | ||
> Choose Develop > Allow Unsigned Extensions, enter your password, and click OK. The Allow Unsigned Extensions setting resets when a user quits Safari, so you need to set it again the next time you launch Safari. | ||
> Choose Develop > Allow Unsigned Extensions, enter your password, and click OK. The Allow Unsigned Extensions setting resets when a user quits Safari, so you need to set it again the next time you launch Safari. | ||
> | ||
> Choose Safari > Preferences and click the Extensions tab. This tab shows the localized description, display name, and version number for the selected Safari app extension. It also provides a more nuanced message about the permissions for the extension. | ||
> Choose Safari > Preferences and click the Extensions tab. This tab shows the localized description, display name, and version number for the selected Safari app extension. It also provides a more nuanced message about the permissions for the extension. | ||
> | ||
> Find your new extension in the list on the left, and enable it by selecting its checkbox. | ||
> Find your new extension in the list on the left, and enable it by selecting its checkbox. | ||
> | ||
> Close Safari Preferences. | ||
> Close Safari Preferences. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,63 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import jsx from "texsaur"; | ||
|
||
import HeaderLinks from "./HeaderLinks"; | ||
import Authentication from "./HeaderAuthentication"; | ||
import { AuthSession } from "../types"; | ||
|
||
const HEADER_LINKS = { | ||
Estudantes: { | ||
Bolsas: "web_base.gera_pagina?p_pagina=242366", | ||
"Escolher turmas": "it_geral.ver_insc", | ||
"Estatutos especiais": "web_base.gera_pagina?p_pagina=242322", | ||
Exames: "web_base.gera_pagina?p_pagina=242382", | ||
Matrículas: "web_base.gera_pagina?p_pagina=31583", | ||
Propinas: "web_base.gera_pagina?p_pagina=propinas ano corrente", | ||
"Mais opções": "web_base.gera_pagina?p_pagina=ESTUDANTES", | ||
}, | ||
Faculdade: { | ||
Alumni: "web_base.gera_pagina?p_pagina=243186", | ||
"Calendário escolar": | ||
"web_base.gera_pagina?p_pagina=página estática genérica 106", | ||
Cursos: "cur_geral.cur_inicio", | ||
Departamentos: "uni_geral.nivel_list?pv_nivel_id=1", | ||
Empresas: "web_base.gera_pagina?p_pagina=242380", | ||
Governo: "web_base.gera_pagina?p_pagina=31715", | ||
Notícias: "noticias_geral.lista_noticias", | ||
"Serviços/Gabinetes": "uni_geral.nivel_list?pv_nivel_id=4", | ||
}, | ||
Pesquisa: { | ||
Edifícios: "instal_geral.edificio_query", | ||
Estudantes: "fest_geral.fest_query", | ||
Horários: "hor_geral.pesquisa_form", | ||
Notícias: "noticias_geral.pesquisa", | ||
Pessoal: "func_geral.formquery", | ||
"Projetos de investigação": "projectos_geral.pesquisa_projectos", | ||
Publicações: "pub_geral.pub_pesquisa", | ||
Salas: "instal_geral.espaco_query", | ||
Turmas: "it_turmas_geral.formquery", | ||
"Unidades Curriculares": "ucurr_geral.pesquisa_ucs", | ||
"Mais opções": "web_base.gera_pagina?p_pagina=1831", | ||
}, | ||
Estudantes: { | ||
Bolsas: "web_base.gera_pagina?p_pagina=242366", | ||
"Escolher turmas": "it_geral.ver_insc", | ||
"Estatutos especiais": "web_base.gera_pagina?p_pagina=242322", | ||
Exames: "web_base.gera_pagina?p_pagina=242382", | ||
Matrículas: "web_base.gera_pagina?p_pagina=31583", | ||
Propinas: "web_base.gera_pagina?p_pagina=propinas ano corrente", | ||
"Mais opções": "web_base.gera_pagina?p_pagina=ESTUDANTES", | ||
}, | ||
Faculdade: { | ||
Alumni: "web_base.gera_pagina?p_pagina=243186", | ||
"Calendário escolar": | ||
"web_base.gera_pagina?p_pagina=página estática genérica 106", | ||
Cursos: "cur_geral.cur_inicio", | ||
Departamentos: "uni_geral.nivel_list?pv_nivel_id=1", | ||
Empresas: "web_base.gera_pagina?p_pagina=242380", | ||
Governo: "web_base.gera_pagina?p_pagina=31715", | ||
Notícias: "noticias_geral.lista_noticias", | ||
"Serviços/Gabinetes": "uni_geral.nivel_list?pv_nivel_id=4", | ||
}, | ||
Pesquisa: { | ||
Edifícios: "instal_geral.edificio_query", | ||
Estudantes: "fest_geral.fest_query", | ||
Horários: "hor_geral.pesquisa_form", | ||
Notícias: "noticias_geral.pesquisa", | ||
Pessoal: "func_geral.formquery", | ||
"Projetos de investigação": "projectos_geral.pesquisa_projectos", | ||
Publicações: "pub_geral.pub_pesquisa", | ||
Salas: "instal_geral.espaco_query", | ||
Turmas: "it_turmas_geral.formquery", | ||
"Unidades Curriculares": "ucurr_geral.pesquisa_ucs", | ||
"Mais opções": "web_base.gera_pagina?p_pagina=1831", | ||
}, | ||
}; | ||
|
||
interface Props { | ||
auth?: AuthSession | null; | ||
auth?: AuthSession | null; | ||
} | ||
|
||
const Header = ({ auth = null }: Props) => { | ||
return ( | ||
<header id="se-header"> | ||
<a id="se-logo" href="/feup"> | ||
<img src={chrome.runtime.getURL("images/FEUP.svg")} alt="FEUP Logo" /> | ||
</a> | ||
<HeaderLinks links={HEADER_LINKS} /> | ||
<Authentication auth={auth} /> | ||
</header> | ||
); | ||
return ( | ||
<header id="se-header"> | ||
<a id="se-logo" href="/feup"> | ||
<img | ||
src={chrome.runtime.getURL("images/FEUP.svg")} | ||
alt="FEUP Logo" | ||
/> | ||
</a> | ||
<HeaderLinks links={HEADER_LINKS} /> | ||
<Authentication auth={auth} /> | ||
</header> | ||
); | ||
}; | ||
|
||
export default Header; |
Oops, something went wrong.