Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atualizar branch development #659

Merged
merged 1,205 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1205 commits
Select commit Hold shift + click to select a range
fd6304b
Ajeitando erro em experiências
710lucas May 15, 2024
f747f84
Ajustando componente de formação academica
710lucas May 15, 2024
ec246f6
Ajustando botões para telas menores em formações acadêmicas
710lucas May 15, 2024
a33ed0b
Ajustando botões em tela de experiencia em telas menores
710lucas May 15, 2024
eac68c8
Corrigindo botões em parte de competências
710lucas May 15, 2024
27effc6
Alinhando texto entre partes diferentes
710lucas May 15, 2024
de2a419
change: collapse AssignedByMe
NiiMiyo May 16, 2024
9f52e2c
change: add folder completion percentage
NiiMiyo May 16, 2024
fe1e8c5
change: add completion filter
NiiMiyo May 16, 2024
9cb916e
Merge pull request #536 from universi-me/fix#532/tela-de-experiencias…
710lucas May 16, 2024
ff4387e
change: adjust for mobile
NiiMiyo May 17, 2024
e794df7
feat: manage email alert template in environments page of platform
julio-ufpb May 17, 2024
17e9e15
Merge pull request #538 from universi-me/feat#534/gerenciar-templates…
julio-ufpb May 17, 2024
ed21512
Merge pull request #537 from universi-me/change#531/atribuicao/compac…
NiiMiyo May 19, 2024
f05df37
Mudando estilização dos três pontinhos no topo
710lucas May 19, 2024
09e90ce
change: add email configurations in organization settings
julio-ufpb May 22, 2024
8deac3d
Merge pull request #541 from universi-me/feat#540/adicionar-configura…
julio-ufpb May 22, 2024
bdb2103
feat: support html format in template email
julio-ufpb May 24, 2024
bb73667
change: await UniversiForm callback before enabling save button
NiiMiyo May 24, 2024
704de37
change: API refactor compatibility
NiiMiyo May 24, 2024
01d6988
Merge pull request #545 from universi-me/fix#487/salvar-multiplos-cur…
NiiMiyo May 24, 2024
dcfaf51
change: remove falsy options and filter participants on group roles
NiiMiyo May 24, 2024
bc45ae3
Merge pull request #543 from universi-me/feat#542/editar-template-de-…
julio-ufpb May 26, 2024
dcc0fc9
change: remove auto post feed for new content added
julio-ufpb May 27, 2024
979927f
Merge pull request #546 from universi-me/change#544/compatibilidade-p…
NiiMiyo May 28, 2024
1f60d83
Merge pull request #548 from universi-me/change#547/remove-auto-post-…
julio-ufpb May 28, 2024
3442a82
feat: quill support image upload, resize, use quill as component
julio-ufpb May 30, 2024
5257a55
fix: import warning
julio-ufpb May 30, 2024
abba3eb
Merge branch 'main' into change#530/adicionar-opções-de-grupo-nos-tre…
NiiMiyo May 31, 2024
cf5d6a4
refactor: ManageGroup as component
NiiMiyo May 31, 2024
9f8f802
change: remove legacy ManageGroup page
NiiMiyo May 31, 2024
4fddcdc
change: Alterar texto do nível de experiencia das competencias
MariaGabriellaF May 31, 2024
3a5e5fe
Merge pull request #553 from universi-me/feat#550/adicionar-imagens-e…
julio-ufpb May 31, 2024
dcb7367
Merge branch 'main' into change#554/alterar-o-texto-do-nivel-de-exepe…
julio-ufpb May 31, 2024
396a2f6
Merge branch 'main' into change#530/adicionar-opções-de-grupo-nos-tre…
NiiMiyo May 31, 2024
2236f99
Merge pull request #539 from universi-me/change#530/adicionar-opções-…
NiiMiyo May 31, 2024
dd46647
Merge pull request #555 from universi-me/change#554/alterar-o-texto-d…
MariaGabriellaF May 31, 2024
1506d88
change: set a max app width for all pages
NiiMiyo May 31, 2024
11814b8
fix: ProfileInfo content width on mobile
NiiMiyo May 31, 2024
92a2e48
fix: GroupPeople listing
NiiMiyo May 31, 2024
baf9e6e
fix: login page waves position
NiiMiyo May 31, 2024
0a31ca1
fix: sign up page offset
NiiMiyo May 31, 2024
75cf464
Merge pull request #556 from universi-me/change#549/diminuir-largura-…
NiiMiyo Jun 2, 2024
fe34b18
change: compatibility update
NiiMiyo Jun 4, 2024
ce6da71
Merge pull request #558 from universi-me/change#557/compatibilidade-s…
NiiMiyo Jun 7, 2024
681214f
change: api compatibility
NiiMiyo Jun 7, 2024
93dca5e
refactor: rename ExperienceLocal to Institution and remove previous I…
NiiMiyo Jun 9, 2024
e811d15
feat: Job Controller
NiiMiyo Jun 9, 2024
7f0f7d7
feat: Root group jobs tab
NiiMiyo Jun 10, 2024
25193d8
fix: institutionId parameter and gap on jobs list
NiiMiyo Jun 10, 2024
0f29140
change: job competences and institution
NiiMiyo Jun 10, 2024
2931b2c
change: gray closed job
NiiMiyo Jun 11, 2024
4263792
change: experience and education order
NiiMiyo Jun 11, 2024
2f27cf5
change: curriculum as default profile tab
NiiMiyo Jun 11, 2024
31ca61d
change: add mock reaction box in post
julio-ufpb Jun 18, 2024
a84bf92
Merge pull request #564 from universi-me/feat#563/ofertas-vagas
NiiMiyo Jun 19, 2024
3837614
Merge pull request #565 from universi-me/change#560/perfil/ordem-expe…
NiiMiyo Jun 19, 2024
27c8d05
Merge branch 'main' into feat#472/post-em-grupo-adicionar-reações-às-…
julio-ufpb Jun 20, 2024
e50b6d8
change: add api calls for post reactions
julio-ufpb Jun 20, 2024
822ba17
change: render ractions count in post group
julio-ufpb Jun 20, 2024
11d6c2c
change: ability to unreact group post
julio-ufpb Jun 20, 2024
4a3f2d9
change: change reaction type in map list
julio-ufpb Jun 20, 2024
6508d5f
change: use name instead of number in id of reaction in list
julio-ufpb Jun 20, 2024
bf745a4
new: base job page
NiiMiyo Jun 25, 2024
a7f04c4
change: job page css
NiiMiyo Jun 25, 2024
e434b7c
change: job action buttons
NiiMiyo Jun 25, 2024
240e99f
fix: ActionButton biIcon without "bi-" start
NiiMiyo Jun 25, 2024
546ccb9
change: refactor dont use groupId in reaction post
julio-ufpb Jun 26, 2024
15cc61f
feat: filter jobs form
NiiMiyo Jun 26, 2024
ba06c36
Merge pull request #568 from universi-me/feat#567/vagas/pagina
NiiMiyo Jun 26, 2024
ad49269
change: reaction icons, reaction animation in post group
julio-ufpb Jun 27, 2024
5356817
change: show popup reaction in post group
julio-ufpb Jun 27, 2024
4bd7c05
Merge branch 'main' into feat#472/post-em-grupo-adicionar-reações-às-…
julio-ufpb Jun 27, 2024
e47f7db
change: hidden button comment in post
julio-ufpb Jun 27, 2024
4391d9a
Merge pull request #571 from universi-me/feat#570/vagas/filtrar
NiiMiyo Jun 27, 2024
eb65a33
Merge pull request #572 from universi-me/feat#472/post-em-grupo-adici…
julio-ufpb Jul 1, 2024
e35ddaa
change: repeat password, new password input as component
julio-ufpb Jul 1, 2024
1a2e2c1
change: move password equal check to function
julio-ufpb Jul 1, 2024
19e1aff
change: correct enable signup button
julio-ufpb Jul 1, 2024
8184fac
change: remove unused imports
julio-ufpb Jul 1, 2024
331fec9
change: correct centralize item
julio-ufpb Jul 1, 2024
2272f9b
change: adjust icon visible password
julio-ufpb Jul 1, 2024
1e39aa4
Merge pull request #575 from universi-me/change#574/repetir-senha-no-…
julio-ufpb Jul 2, 2024
4121170
change: use DropdownMenu on header options
NiiMiyo Jul 6, 2024
fd318fb
fix: close dropdown menu on click link
NiiMiyo Jul 8, 2024
576ce72
change: sort WelcomeUser.tsx imports
NiiMiyo Jul 8, 2024
5c58372
fix: group header when image is unavailable
NiiMiyo Jul 8, 2024
51172dd
change: show edit group modal in every tab
NiiMiyo Jul 8, 2024
e035336
change: GroupSubmenu use DropdownMenu
NiiMiyo Jul 8, 2024
25922fa
change: GroupSubmenu styles in LESS
NiiMiyo Jul 8, 2024
95342e7
change: remake styling
NiiMiyo Jul 8, 2024
003156e
fix: no return type on groupHeaderUrl
NiiMiyo Jul 8, 2024
c25d01a
fix
MariaGabriellaF Jul 8, 2024
5089d13
change: remove outlines
NiiMiyo Jul 8, 2024
598197e
Merge pull request #581 from universi-me/fix#577/bugerro-ao-criar-uma…
MariaGabriellaF Jul 8, 2024
4a7e71b
Merge pull request #580 from universi-me/fix#579/editar-grupo-aba-grupo
NiiMiyo Jul 9, 2024
c8574aa
Merge pull request #578 from universi-me/change#576/esconder-operacoe…
NiiMiyo Jul 9, 2024
4705d7f
feat: comment in group posts
julio-ufpb Jul 9, 2024
d924c22
change: edit and delete comment
julio-ufpb Jul 9, 2024
1525ade
change: adjust empty space when delete last comment from post
julio-ufpb Jul 9, 2024
d27f931
change: fix position of count comment to right in post group
julio-ufpb Jul 11, 2024
32b4fb5
change: user name font size in comment
julio-ufpb Jul 11, 2024
29409f3
change: force organization fetch before render
NiiMiyo Jul 24, 2024
05527cd
fix: build errors
NiiMiyo Jul 24, 2024
31b02a2
refactor: UniversiHeader component in its own file
NiiMiyo Jul 24, 2024
181203f
change: OrganizationLogo as component
NiiMiyo Jul 24, 2024
c1f863c
refactor: clean code a bit
NiiMiyo Jul 24, 2024
ed2f7de
fix: delete post endpoint
NiiMiyo Jul 24, 2024
8549b7a
fix: delete post option condition
NiiMiyo Jul 24, 2024
c7c0202
fix: build docker image error typescript not found
julio-ufpb Jul 25, 2024
eca16c0
Merge pull request #592 from universi-me/fix#591/fix-build-error-in-b…
julio-ufpb Jul 25, 2024
56746e1
Merge pull request #588 from universi-me/fix#586/recarregar-organizacao
NiiMiyo Jul 25, 2024
9889134
Merge pull request #590 from universi-me/fix#583/apagar-post
NiiMiyo Jul 25, 2024
8200d1c
Merge pull request #589 from universi-me/change#585/trocar-imagem-logo
NiiMiyo Jul 25, 2024
bc1be4d
Merge branch 'main' into change#587/nome-grupo-icone
NiiMiyo Jul 25, 2024
b06c174
change: ProfileGroups vertical listing
NiiMiyo Jul 25, 2024
1f02454
change: ProfileGroups bigger images
NiiMiyo Jul 25, 2024
333d405
fix: use organization Google Client ID
NiiMiyo Jul 25, 2024
bd891b8
fix: use organization Google Client ID
NiiMiyo Jul 25, 2024
1f14891
Revert "fix: use organization Google Client ID"
NiiMiyo Jul 25, 2024
8f3b4b8
fix: make single API request for login
NiiMiyo Jul 25, 2024
9a6e163
refactor: SignInForm.css to LESS
NiiMiyo Jul 25, 2024
de56434
fix: incorrect LESS filepath
NiiMiyo Jul 25, 2024
0b2f444
refactor: ThemeColorItem component
NiiMiyo Jul 26, 2024
070aec5
change: preview theme on click
NiiMiyo Jul 26, 2024
b00cc46
refactor: clean GroupThemeColorPage
NiiMiyo Jul 26, 2024
cc7a9e8
refactor: move ThemeContext to /src/contexts/Theme
NiiMiyo Jul 26, 2024
60ac129
refactor: clean GroupThemeColor.less
NiiMiyo Jul 26, 2024
f295e4b
change: universi.me version text on settings
NiiMiyo Jul 26, 2024
bf2572f
refactor: use ThemeContext
NiiMiyo Jul 26, 2024
1592f6d
change: theme selector bigger border and animated
NiiMiyo Jul 26, 2024
c61ef4f
change: ThemeBuilder component
NiiMiyo Jul 26, 2024
d2c05d7
change: label some GroupTheme colors
NiiMiyo Jul 26, 2024
bd85dfe
fix: display name as img alt
NiiMiyo Jul 29, 2024
877025f
chande: use div instead of alt to prevent image error icon
NiiMiyo Jul 29, 2024
0c51218
fix: wrong header endpoint
NiiMiyo Jul 29, 2024
ddab510
change: use API header endpoint instead of direct image endpoint
NiiMiyo Jul 29, 2024
a86c3b4
refactor: force text on error instead of toggling
NiiMiyo Jul 29, 2024
63aca38
Merge branch 'main' into feat#573/comentários-nas-postagens-de-grupos
julio-ufpb Jul 29, 2024
b9c2587
change: remove border in comment post
julio-ufpb Jul 29, 2024
c903247
change: fix learn more in comment
julio-ufpb Jul 29, 2024
c5d326a
change: fix build
julio-ufpb Jul 29, 2024
f883ae2
Merge pull request #596 from universi-me/change#455/edicao-cores-avan…
NiiMiyo Jul 30, 2024
904aea9
Merge pull request #593 from universi-me/change#587/nome-grupo-icone
NiiMiyo Jul 30, 2024
0d03375
Merge pull request #598 from universi-me/fix#597/organizacao-duplicad…
NiiMiyo Jul 30, 2024
b8ec150
Merge pull request #594 from universi-me/fix#476/autenticacao-google
NiiMiyo Jul 30, 2024
e35e7b1
Merge branch 'main' into feat#573/comentários-nas-postagens-de-grupos
julio-ufpb Jul 30, 2024
aff7dd9
change: .show-items width
NiiMiyo Jul 30, 2024
3b89dec
Merge pull request #600 from universi-me/change#599/largura-listagem-…
NiiMiyo Jul 30, 2024
4ea20f7
change: uses universiform component for create comment in post
julio-ufpb Jul 30, 2024
af3a534
change: remove unused comment function
julio-ufpb Jul 30, 2024
224ab58
change: adjust edit comment alert
julio-ufpb Jul 30, 2024
5afe281
fix: render default theme if theme not present
NiiMiyo Jul 31, 2024
c1fbaf0
refactor: move ThemeMappings to /src/configs
NiiMiyo Jul 31, 2024
aa09b06
change + refactor: SignInWithGoogle compontent + remove DCX image
NiiMiyo Jul 31, 2024
2a84805
refactor: useMemo on SignInWithGoogle href
NiiMiyo Jul 31, 2024
d0343da
change: remove unused Profile Component LESS
NiiMiyo Aug 2, 2024
fc63a56
fix: UniversiForm LESS being global
NiiMiyo Aug 2, 2024
18924ee
refactor: remove unused and extra colors
NiiMiyo Aug 2, 2024
bbbe078
refactor: rename font-disabled-color, alert-color & sucess-color
NiiMiyo Aug 2, 2024
958c32a
change: font-color-v5 --> card-item-background
NiiMiyo Aug 2, 2024
b1f3d05
refactor: rename font-color-v4 to font-color-links
NiiMiyo Aug 2, 2024
c6539ce
change: skills-1-color --> secondary-color
NiiMiyo Aug 2, 2024
00cfe1a
change: remove tertiary-color
NiiMiyo Aug 2, 2024
035c2cf
fix: applyThemeStyles
NiiMiyo Aug 2, 2024
eedd313
change: theme icon outline animation
NiiMiyo Aug 2, 2024
9ef4228
fix: color picker selector peeking when collapsed
NiiMiyo Aug 2, 2024
cf768e8
refactor: move GroupThemeToLabel to themeUtils
NiiMiyo Aug 2, 2024
efa13ff
change: Theme variables description
NiiMiyo Aug 2, 2024
18ac8fc
Merge pull request #603 from universi-me/change#595/alterar-botao-ema…
NiiMiyo Aug 6, 2024
a1359c9
Merge pull request #602 from universi-me/fix#601/organizacao-sem-tema
NiiMiyo Aug 6, 2024
0bcb17d
Merge pull request #605 from universi-me/change#604/compatibilidade-g…
NiiMiyo Aug 6, 2024
fc4230a
fix: try to render header only if header exists
NiiMiyo Aug 6, 2024
f6f8712
Merge branch 'main' into feat#573/comentários-nas-postagens-de-grupos
julio-ufpb Aug 8, 2024
30fdea4
Merge pull request #582 from universi-me/feat#573/comentários-nas-pos…
julio-ufpb Aug 11, 2024
8943ee7
fix:corrigindo bug do nome saindo fora da caixa de perfil
KassioL2L Aug 19, 2024
36c5d36
refactor: providers on App instead of main
NiiMiyo Aug 25, 2024
c97e356
feat: health check API calls
NiiMiyo Aug 25, 2024
1449a6d
feat: health check page
NiiMiyo Aug 25, 2024
e955081
change: rename PostgreSQL service to Database
NiiMiyo Aug 25, 2024
ffb472d
fix: rename lasting PostgreSQL service to Database
NiiMiyo Aug 25, 2024
424402a
fix: fail service when unreachable
NiiMiyo Aug 25, 2024
37610b7
Merge pull request #611 from universi-me/feat#610/pagina-status-servicos
NiiMiyo Aug 26, 2024
eca9246
change: block app if services down + check returns ApiResponse
NiiMiyo Aug 27, 2024
38a6e95
Merge pull request #614 from universi-me/change#613/bloquear-servicos…
NiiMiyo Aug 27, 2024
2857d07
change: adjust health layout and add box logs
julio-ufpb Aug 27, 2024
64314b7
change: able to detect disabled services
julio-ufpb Aug 27, 2024
e236670
Merge pull request #616 from universi-me/change#615/ajuste-layout-hea…
julio-ufpb Aug 27, 2024
46137d1
feat: color in profile image
julio-ufpb Aug 29, 2024
e14ceb2
change: fix build
julio-ufpb Aug 29, 2024
40dfe87
change: adjust in edit profile page
julio-ufpb Aug 29, 2024
6d81a22
change: adjust use of Avatar image
julio-ufpb Aug 29, 2024
e5a216a
change: use img in content image
julio-ufpb Aug 29, 2024
1e79302
change: limit text to 2 initials in image profile avatar
julio-ufpb Aug 30, 2024
01802e9
change: adjust profile image size in peoples tab in group
julio-ufpb Aug 30, 2024
2217c14
Create README.md
rodrigor Sep 1, 2024
a198fc1
change: feed links have pointer cursor
NiiMiyo Sep 3, 2024
e06be83
change: add target=_blank to all links in posts
NiiMiyo Sep 3, 2024
c6f7db1
Merge pull request #620 from universi-me/fix#619/feed/links-nao-funci…
NiiMiyo Sep 4, 2024
2039ebd
Merge pull request #618 from universi-me/fix/readme.md
NiiMiyo Sep 5, 2024
7c8691d
change: disable text selection in profile image
julio-ufpb Sep 5, 2024
cdd855b
Merge pull request #609 from KassioL2L/main
NiiMiyo Sep 5, 2024
5a76adf
Merge pull request #617 from universi-me/feat#535/cores-aleatórias-pa…
julio-ufpb Sep 5, 2024
ca961a9
fix: HealthCheckPage to LESS and fix selectors
NiiMiyo Sep 5, 2024
5b32dc2
refactor: manage tab on context
NiiMiyo Sep 5, 2024
8dcda9c
fix: render first tab if no tab is rendered
NiiMiyo Sep 5, 2024
0e58305
fix: direct link to group content
NiiMiyo Sep 5, 2024
29799eb
fix: invalid tab on hash
NiiMiyo Sep 5, 2024
9bc454b
Merge pull request #607 from universi-me/fix#606/logo-organização-sem…
NiiMiyo Sep 5, 2024
9b7d351
change: close modal on search users
NiiMiyo Sep 5, 2024
2030686
change: add competence with ActionButton and remove search from modal
NiiMiyo Sep 5, 2024
5c64605
change: move matchEveryCompetence box to search criteria
NiiMiyo Sep 5, 2024
0aabd78
change: clear search with ActionButton
NiiMiyo Sep 5, 2024
bfbd0f1
fix: update options on change user
NiiMiyo Sep 5, 2024
6bf3b45
change: can't change group admin's role
NiiMiyo Sep 5, 2024
73888b6
Merge pull request #622 from universi-me/fix#621/tabela-papeis-ilegivel
NiiMiyo Sep 5, 2024
7a8b291
Merge pull request #624 from universi-me/fix#623/nenhuma-aba-grupo
NiiMiyo Sep 5, 2024
ef58b3a
Merge pull request #626 from universi-me/change#625/ocultar-pesquisa-…
NiiMiyo Sep 5, 2024
8af2f23
Merge pull request #629 from universi-me/change#628/proibir-alteracao…
NiiMiyo Sep 5, 2024
ac166d6
Merge pull request #630 from universi-me/fix#627/configuracoes-grupo-…
NiiMiyo Oct 1, 2024
0c0cbd1
fix: don't undefine tab on refresh context
NiiMiyo Oct 1, 2024
c09a482
Merge pull request #632 from universi-me/fix#631/grupo/sem-aba-coment…
NiiMiyo Oct 2, 2024
563e840
change: Folder.assignedBy as list
NiiMiyo Oct 18, 2024
de9602b
fix: unchanged FolderProfile.profile
NiiMiyo Oct 18, 2024
92fe036
fix: fetch profile before start rendering
NiiMiyo Oct 22, 2024
facee73
change: remove check on ProfilePage
NiiMiyo Oct 22, 2024
ecdbe21
Merge pull request #634 from universi-me/change#633/capacity/compatib…
NiiMiyo Oct 22, 2024
9a24019
fix: only run on push or pull request to main
NiiMiyo Oct 22, 2024
1fa8e45
fix: apply to dependency review
NiiMiyo Oct 22, 2024
da8953b
fix: apply to code coverage
NiiMiyo Oct 22, 2024
7c0a616
fix: require captcha when needed
NiiMiyo Oct 22, 2024
5314623
Merge pull request #638 from universi-me/fix#637/workflow-duplo
NiiMiyo Oct 22, 2024
cb56020
Merge pull request #636 from universi-me/fix#635/profile/redirecionam…
NiiMiyo Oct 22, 2024
0757653
Merge pull request #640 from universi-me/fix#639/login-sem-captcha
NiiMiyo Oct 22, 2024
7da5305
change: remove background and border and increase size
NiiMiyo Oct 25, 2024
311b2d6
Merge pull request #642 from universi-me/change#641/fundo-borda-reacoes
NiiMiyo Oct 25, 2024
5485bb7
change: remove TOS and PP
NiiMiyo Oct 25, 2024
18fc52f
Merge pull request #644 from universi-me/change#643/remover-termos-se…
NiiMiyo Oct 28, 2024
b33ecc8
change: remove legacy Quiz and About pages
NiiMiyo Nov 22, 2024
3c0250c
change: move services/routes.tsx to configs/routes.tsx
NiiMiyo Nov 22, 2024
467473e
fix: size of image profile in component
julio-ufpb Nov 22, 2024
7aebdaa
fix: misaligned icons on signup
NiiMiyo Nov 22, 2024
7a9e484
Merge pull request #646 from universi-me/change#645/remover-paginas-l…
NiiMiyo Nov 22, 2024
9c1c150
Merge pull request #649 from universi-me/change#648/mover-routestsx-c…
NiiMiyo Nov 22, 2024
09bfaf7
Merge pull request #652 from universi-me/fix#651/altura-da-imagem-pro…
julio-ufpb Nov 22, 2024
274e80f
refactor: use createApiInstance instead of exporting instance
NiiMiyo Nov 22, 2024
64bf4a5
Merge pull request #653 from universi-me/fix#650/icones-desalinhados-…
NiiMiyo Nov 22, 2024
9c4812e
Merge pull request #655 from universi-me/refactor#654/funcao-instanci…
NiiMiyo Nov 22, 2024
4f8a19f
refactor: remove finishedLogin state
NiiMiyo Nov 22, 2024
188d28f
Merge pull request #657 from universi-me/refactor#656/remover-finishe…
NiiMiyo Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
__tests__
.github
.jest
.storybook
.npmrc
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_UNIVERSIME_API=http://localhost:8080/api
VITE_BUILD_HASH=development
2 changes: 2 additions & 0 deletions .env.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_UMAMI_URL=@UMAMI_URL@
VITE_UMAMI_ID=@UMAMI_ID@
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: [universi-me]# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
42 changes: 42 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Check

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '15'

- name: Install dependencies
run: npm install --include=dev

- name: Install dependencies
run: npm i --save-dev @types/jest


- name: Set NODE_ENV to production
run: echo "NODE_ENV=production" >> $GITHUB_ENV

- name: Build
run: npm run build

- name: Check for build success
run: |
if [ $? -ne 0 ]; then
echo "Error: 'npm run build' failed"
exit 1
fi
65 changes: 65 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build, Test, and Push Docker Image

on:
release:
types: [published]

jobs:
build-test-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: ~/.docker
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-docker-

- name: Cache npm dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-

- name: Install dependencies
run: rm -rf node_modules && npm ci

- name: Set environment variable
id: set-env
run: echo "VITE_UNIVERSIME_API=/api" >> $GITHUB_ENV

- name: Set VITE_BUILD_HASH environment variable
id: set-build-hash
run: echo "VITE_BUILD_HASH=${{ github.event.release.tag_name }}" >> $GITHUB_ENV

- name: Run Build
run: npm run build

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
run: |
docker buildx create --use
echo "${{ github.event.release.tag_name }}" > ./build.hash
docker buildx build \
--platform linux/arm64,linux/amd64 \
--build-arg VITE_BUILD_HASH=${{ github.event.release.tag_name }} \
-t ghcr.io/${{ github.repository_owner }}/${{ github.repository_name || github.event.repository.name }}:${{ github.event.release.tag_name }} \
-t ghcr.io/${{ github.repository_owner }}/${{ github.repository_name || github.event.repository.name }}:latest \
--push \
.
38 changes: 38 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Running Code Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
23 changes: 23 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency Review'
on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
.jest/coverage/*

# Editor directories and files
.vscode/*
Expand Down
1 change: 1 addition & 0 deletions .jest/__mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = 'test-file-stub';
1 change: 1 addition & 0 deletions .jest/setup-tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom';
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
17 changes: 17 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { StorybookConfig } from "@storybook/react-vite";
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
15 changes: 15 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
### STAGE 1: Build ###

# pull official base image
FROM node:latest AS building

# set working directory
WORKDIR /opt/app

# copy app
COPY . .

# install app dependencies
RUN npm ci --legacy-peer-deps

# setting environment variables to set version
ENV VITE_UNIVERSIME_API=/api
ARG VITE_BUILD_HASH
ENV VITE_BUILD_HASH=${VITE_BUILD_HASH}

# Build app
RUN npm run build:docker

FROM nginx:latest

RUN rm -rf /usr/share/nginx/html/*

COPY --from=building /opt/app/dist /usr/share/nginx/html/universime
COPY --from=building /opt/app/scripts/docker/run.sh /
COPY --from=building /opt/app/scripts/docker/nginx/conf.d/*.conf /etc/nginx/conf.d/
COPY --from=building /opt/app/scripts/docker/nginx/nginx.conf /etc/nginx/

EXPOSE 8088

RUN ["chmod", "+x", "/run.sh"]
CMD ["/run.sh"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Universi.me


O Universi.me é um projeto de extensão coordenado pelo prof. Rodrigo Rebouças de Almeida, no Departamento de Ciências Exatas da Universidade Federal da Paraíba.

Este código é licenciado.

Universi.me © 2023 por Rodrigo Rebouças de Almeida está licenciado sob a licença Creative Commons Atribuição-NãoComercial-SemDerivações 4.0 Internacional. Para ver uma cópia dessa licença, visite [https://creativecommons.org/licenses/by-nc-nd/4.0/](https://creativecommons.org/licenses/by-nc-nd/4.0/).

Empty file added __tests__/.gitkeep
Empty file.
18 changes: 18 additions & 0 deletions __tests__/sample.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Question } from "@/types/question";

describe("sample tests used as examples", () => {
test("1 to equal 1", () => {
expect(1).toBe(1);
});

test("import type from src", () => {
const q: Question = {
feedback_id: 0,
id: 1,
title: "example",
user_create_id: 0
};

expect(q.id).toBe(1);
})
})
7 changes: 7 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
["@babel/preset-env", { "targets": { "esmodules": true } }],
["@babel/preset-react", { "runtime": "automatic" }],
"@babel/preset-typescript"
]
}
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.5'

services:
universi-front:
container_name: universi-front
build:
context: .
restart: unless-stopped
ports:
- "8088:8088"
env_file:
- .env
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export VITE_BUILD_HASH=$(cat /opt/app/build.hash)
exec "$@"
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Universi.me</title>
</head>
Expand Down
Loading
Loading