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

New version of game #254

Closed
wants to merge 703 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
703 commits
Select commit Hold shift + click to select a range
26bc64d
style: fix lint complaints
sondrefj Jul 19, 2024
cc46717
fix: Norwegian as default language
vkallerud Jul 19, 2024
e690fd6
Merge branch 'develop' into SP24-642-Norwegian-as-default
vkallerud Jul 19, 2024
705bf08
feat: add logic that prevents idle popup to appear on drawing screen
sondrefj Jul 19, 2024
45accd8
refactor: edit name of method that decide style on points
sondrefj Jul 19, 2024
0a47dea
Merge pull request #203 from computas/SP24-642-Norwegian-as-default
vkallerud Jul 19, 2024
2cae4b3
Fixes score and single variables
ComputasAlex Jul 19, 2024
3165fef
Merge branch 'develop' into SP24-636-Update-style-on-intermediate-scr…
sondrefj Jul 19, 2024
6f0af67
Merge pull request #202 from computas/SP24-636-Update-style-on-interm…
sondrefj Jul 19, 2024
5f1ec8b
Merge branch 'develop' into SP24-482-score-bug
ComputasAlex Jul 19, 2024
efc73b0
fix: edit font family
sondrefj Jul 19, 2024
fa84bc5
so clean code
ComputasAlex Jul 19, 2024
7204826
Merge pull request #205 from computas/SP24-482-score-bug
ComputasAlex Jul 19, 2024
fa670d2
finished logic and most of design on result page
andreasrberg Jul 19, 2024
0878066
one css fix and changed logic for multiplayer
andreasrberg Jul 22, 2024
db24982
Fixed animation speed on difficulty screen + ability to skip animation
calvx Jul 22, 2024
6cea6a9
O guesses earlier and a bit more often
andreasrberg Jul 22, 2024
58c1179
Merge pull request #208 from computas/SP24-645-Fix-flow-and-animation…
calvx Jul 22, 2024
6d08892
refactor: split into two components for simpler maintenance
sondrefj Jul 22, 2024
fb572c4
style: add basic style and extra speech bubble
sondrefj Jul 22, 2024
cb58351
feat: add hide pointer field to speech bubble component
sondrefj Jul 22, 2024
460a60e
feat: add text that gets displayed and translations
sondrefj Jul 22, 2024
4c64736
style: resize example drawing to fit screen
sondrefj Jul 22, 2024
99b155f
feat: make it possible to choose number of example images
sondrefj Jul 22, 2024
b0a2d7f
Added IO logo to result screen
andreasrberg Jul 22, 2024
a89c787
class names and small css refactor
andreasrberg Jul 22, 2024
65b7089
Merge branch 'develop' into SP24-522-Refactor-result-screen
andreasrberg Jul 22, 2024
ed82c4a
Merge branch 'develop' into SP24-629-Fix-idle-on-drawing-screen
andreasrberg Jul 22, 2024
551aa37
Merge pull request #204 from computas/SP24-629-Fix-idle-on-drawing-sc…
andreasrberg Jul 22, 2024
a6f98d6
feat: get example drawings on singleplayer
sondrefj Jul 22, 2024
0c7ad7b
Merge branch 'develop' into fix-font-and-screen-resize-intermediate-s…
andreasrberg Jul 22, 2024
631354c
Merge pull request #206 from computas/fix-font-and-screen-resize-inte…
andreasrberg Jul 22, 2024
d918844
Adds fun crazy I/O confetti!
ComputasAlex Jul 22, 2024
f5398b6
Reduced css bloat
andreasrberg Jul 22, 2024
c610822
Added draw as possibility
andreasrberg Jul 22, 2024
09af54c
Merge branch 'develop' into SP24-522-Refactor-result-screen
andreasrberg Jul 22, 2024
f8dabc8
style: change margin between containers
vkallerud Jul 22, 2024
1fbc478
Merge pull request #207 from computas/SP24-522-Refactor-result-screen
andreasrberg Jul 22, 2024
41ab265
Merge branch 'develop' into SP24-663-highscore-confetti
andreasrberg Jul 22, 2024
f55ef12
style: new drawing screen
vkallerud Jul 22, 2024
fbe9990
fix: removed global class that applied unwanted styling
vkallerud Jul 22, 2024
eae9f7b
Merge branch 'develop' into SP24-631-Alternative-drawing-screen
vkallerud Jul 22, 2024
20b2c66
feat: add seperate endpoints for each player
sondrefj Jul 22, 2024
6014a60
format + prettier
vkallerud Jul 22, 2024
bc20db1
style: move i avatar, change points text and add translations
sondrefj Jul 23, 2024
661f5fc
add: difficulty and gradient button, styling
jmehmandarova Jul 23, 2024
0859d58
style: update style by moving speech bubbles, edit translations and t…
sondrefj Jul 23, 2024
d1747be
add: i-avatar component
jmehmandarova Jul 23, 2024
3d0bb5c
fix: lint
jmehmandarova Jul 23, 2024
4213f32
Adds onpress inset to buttons in result
ComputasAlex Jul 23, 2024
f95387d
Merge pull request #210 from computas/SP24-663-highscore-confetti
ComputasAlex Jul 23, 2024
994831a
Merge branch 'develop' into SP24-664-Improve-guessing-logic
andreasrberg Jul 23, 2024
0dff1b0
add: speech-bubble component
jmehmandarova Jul 23, 2024
3496e41
Merge branch 'develop' into SP24-631-Alternative-drawing-screen
vkallerud Jul 23, 2024
a0fce79
Merge pull request #209 from computas/SP24-664-Improve-guessing-logic
andreasrberg Jul 23, 2024
e0d97ed
bunbun
vkallerud Jul 23, 2024
3e2f805
put all css for game logo in styles.scss
andreasrberg Jul 23, 2024
7b528d1
Merge branch 'develop' into SP24-631-Alternative-drawing-screen
vkallerud Jul 23, 2024
2ec3426
prettier + lint
vkallerud Jul 23, 2024
209ca1a
Merge pull request #211 from computas/SP24-631-Alternative-drawing-sc…
vkallerud Jul 23, 2024
55fd64b
centralized background image styling
andreasrberg Jul 23, 2024
962eae1
style: remove default image icon when images aren't loaded
sondrefj Jul 23, 2024
f83ae64
Merge branch 'develop' into SP24-677-background-and-logo-common-styling
andreasrberg Jul 23, 2024
6eb9945
fix: new text in lobby
vkallerud Jul 23, 2024
f089d6d
Splash screen finishing touches:
ComputasAlex Jul 23, 2024
4d7ac17
Added background to drawing screen
andreasrberg Jul 23, 2024
582e1cd
feat: add logic that hides speech bubble until drawings are loaded
sondrefj Jul 23, 2024
03600b7
refactor: fix lint complaints and edit translation
sondrefj Jul 23, 2024
12dd437
Merge branch 'develop' into SP24-547-Implement-screen-for-failed-guess
sondrefj Jul 23, 2024
11339b3
Merge pull request #212 from computas/SP24-672-finishing-splash-screen
jmehmandarova Jul 23, 2024
5622502
Pick difficulty finishing touches:
ComputasAlex Jul 23, 2024
173203c
Sets difficulty in singleplayer: Thanks to Vicky V for help
ComputasAlex Jul 23, 2024
8d1db4e
fixed button style and logic
andreasrberg Jul 23, 2024
78ce782
fix: styling and placing of elements + words remaining
jmehmandarova Jul 23, 2024
2dddb5f
styling of i component
jmehmandarova Jul 23, 2024
2fee922
Fixes correct text in difficulty word to draw
ComputasAlex Jul 23, 2024
213a8e1
Merge branch 'develop' into SP24-568-Implement-components-word-to-dra…
ComputasAlex Jul 23, 2024
fc10766
Remove duplicate words
ComputasAlex Jul 23, 2024
9f72ec9
Fix bugs and wrong font
ComputasAlex Jul 23, 2024
c179680
Merge branch 'develop' into SP24-674-finishing-touches-select-difficulty
ComputasAlex Jul 23, 2024
553feb8
Merge pull request #214 from computas/SP24-674-finishing-touches-sele…
ComputasAlex Jul 23, 2024
7c65f20
Merge branch 'develop' into SP24-568-Implement-components-word-to-dra…
jmehmandarova Jul 23, 2024
7f8c761
Fixes duplicate Difficulty word
ComputasAlex Jul 23, 2024
f11f208
temporary wrong button fix
ComputasAlex Jul 23, 2024
7af94b5
Merge pull request #217 from computas/SP24-568-Implement-components-w…
ComputasAlex Jul 23, 2024
e80d3de
Merge branch 'develop' into SP24-547-Implement-screen-for-failed-guess
ComputasAlex Jul 23, 2024
156d9b5
Merge pull request #213 from computas/SP24-547-Implement-screen-for-f…
sondrefj Jul 23, 2024
00d8cae
Merge branch 'develop' into SP24-678-wrong-difficulty-displayed-in-re…
ComputasAlex Jul 23, 2024
b4771df
Merge pull request #215 from computas/SP24-678-wrong-difficulty-displ…
ComputasAlex Jul 23, 2024
da997e4
style: make global button styles
vkallerud Jul 23, 2024
03bdcae
Merge branch 'develop' into SP24-456-New-button-design
vkallerud Jul 23, 2024
636d819
Merge branch 'develop' into SP24-677-background-and-logo-common-styling
andreasrberg Jul 23, 2024
5a39bfa
Cropped background image
andreasrberg Jul 23, 2024
515e441
changed minimumDrawnThreshold to support small drawings
andreasrberg Jul 23, 2024
e5e6dab
style: idle timeout button
vkallerud Jul 24, 2024
f5fc573
Change to a single confetti pop + reset on destroy
ComputasAlex Jul 24, 2024
8ae8824
Remove todo
sondrefj Jul 24, 2024
61cb01a
Merge pull request #216 from computas/SP24-677-background-and-logo-co…
ComputasAlex Jul 24, 2024
79e5b58
Merge branch 'develop' into SP24-664-Improve-guessing-logic
ComputasAlex Jul 24, 2024
7b3a5a7
Merge branch 'develop' into SP24-684-remove-confetti-earlier
ComputasAlex Jul 24, 2024
bb57461
Merge pull request #218 from computas/SP24-664-Improve-guessing-logic
ComputasAlex Jul 24, 2024
cd66285
Merge branch 'develop' into SP24-684-remove-confetti-earlier
ComputasAlex Jul 24, 2024
4b05142
refactor: fix translation and score that was hidden
sondrefj Jul 24, 2024
89f2b65
retrieves opponentscore even if u get 0 points
andreasrberg Jul 24, 2024
1cac71b
fixed new highscore when 0 points
andreasrberg Jul 24, 2024
7012211
Merge branch 'develop' into SP24-682-multiplayer-wrong-result-displayed
jmehmandarova Jul 24, 2024
2fbf606
Merge pull request #220 from computas/SP24-682-multiplayer-wrong-resu…
jmehmandarova Jul 24, 2024
9b64d4e
refactor: remove unused labels
sondrefj Jul 24, 2024
6f8b736
refactor: remove unused styling, logic and variables
sondrefj Jul 24, 2024
0e66bf6
Changed color names and the colors to the correct colors
calvx Jul 24, 2024
9fd263b
Now wont show same label twice on loss intermediary screen
andreasrberg Jul 24, 2024
5922c38
refactor: add input to display drawing
sondrefj Jul 24, 2024
9f5a4e6
Merge branch 'develop' into SP24-683-Implement-correct-colors-and-text
calvx Jul 24, 2024
7b433a7
Merge branch 'develop' into SP24-684-remove-confetti-earlier
ComputasAlex Jul 24, 2024
85e185b
Language fixes
ComputasAlex Jul 24, 2024
d0ff08d
Merge pull request #222 from computas/SP24-683-Implement-correct-colo…
jmehmandarova Jul 24, 2024
eb1a388
Merge branch 'develop' into SP24-676-Finishing-touches-intermediate-s…
sondrefj Jul 24, 2024
30955d9
"Waiting for player 2"
ComputasAlex Jul 24, 2024
ddba94a
Merge branch 'develop' into SP24-690-Language-bug-multiplayer-english
ComputasAlex Jul 24, 2024
7f102a2
Merge branch 'develop' into SP24-684-remove-confetti-earlier
ComputasAlex Jul 24, 2024
5223b8d
finishing touches waiting for word
andreasrberg Jul 24, 2024
7a0eb90
Merge pull request #224 from computas/SP24-690-Language-bug-multiplay…
jmehmandarova Jul 24, 2024
ea65e5c
Merge branch 'develop' into SP24-684-remove-confetti-earlier
ComputasAlex Jul 24, 2024
8f581a1
Merge branch 'develop' into SP24-676-Finishing-touches-intermediate-s…
ComputasAlex Jul 24, 2024
fb9f6d4
Merge pull request #219 from computas/SP24-684-remove-confetti-earlier
ComputasAlex Jul 24, 2024
6576fa9
Merge branch 'develop' into SP24-688-fix-your-drawing-looked-like
ComputasAlex Jul 24, 2024
b0ff95c
Merge branch 'develop' into SP24-676-Finishing-touches-intermediate-s…
ComputasAlex Jul 24, 2024
948c9e2
Fix own english request
ComputasAlex Jul 24, 2024
ecc016c
Merge pull request #221 from computas/SP24-688-fix-your-drawing-looke…
ComputasAlex Jul 24, 2024
8998101
Merge branch 'develop' into SP24-676-Finishing-touches-intermediate-s…
ComputasAlex Jul 24, 2024
d25bc01
images no longer being stretched in results
andreasrberg Jul 24, 2024
bfaa397
Adds "WAITING" in addition to waiting for player to use in buttons
ComputasAlex Jul 24, 2024
381b3fe
Merge pull request #223 from computas/SP24-676-Finishing-touches-inte…
ComputasAlex Jul 24, 2024
9db0bcc
Merge branch 'develop' into SP24-689-Finishing-touches-Waiting-for-word
ComputasAlex Jul 24, 2024
8fd3e06
Merge branch 'develop' into SP24-691-make-result-images-not-stretch
ComputasAlex Jul 24, 2024
b9404ef
changed round counter css
andreasrberg Jul 24, 2024
15bc3a7
Merge pull request #225 from computas/SP24-689-Finishing-touches-Wait…
andreasrberg Jul 24, 2024
862c36d
Merge branch 'develop' into SP24-691-make-result-images-not-stretch
andreasrberg Jul 24, 2024
b2990f4
Merge pull request #226 from computas/SP24-691-make-result-images-not…
andreasrberg Jul 24, 2024
0f1d205
style: implemented new button component
vkallerud Jul 24, 2024
ecef361
style: implemented new button component on more screens
vkallerud Jul 24, 2024
ea12e99
On splash screen: fixed right speech bubble position and updated svgs
calvx Jul 24, 2024
d689604
Merge branch 'develop' into SP24-456-New-button-design
ComputasAlex Jul 25, 2024
75a7189
fixes
ComputasAlex Jul 25, 2024
2fa7cf8
removed duplicate logo + fixed language
andreasrberg Jul 25, 2024
14eb901
Merge pull request #227 from computas/SP24-692-Finishing-touches-Spla…
jmehmandarova Jul 25, 2024
70f5729
format & lint
ComputasAlex Jul 25, 2024
0c74f6d
Fixes in word-to-draw: Remove "draw" button in multiplayer
ComputasAlex Jul 25, 2024
5d2a03f
Merge branch 'develop' into SP24-456-New-button-design
ComputasAlex Jul 25, 2024
f532734
Last button pages
andreasrberg Jul 25, 2024
54cb009
Merge branch 'SP24-456-New-button-design' of https://github.com/compu…
andreasrberg Jul 25, 2024
6d899e9
Cant click draw before word comes
andreasrberg Jul 25, 2024
787b0ff
removed unused function
andreasrberg Jul 25, 2024
29ace59
Merge pull request #228 from computas/SP24-456-New-button-design
ComputasAlex Jul 25, 2024
8dce3f4
mini changes :DD
ellenyuX Aug 12, 2024
17c10fb
Merge pull request #230 from computas/test-pipeline2
Ivan-Computas Aug 12, 2024
d45939c
Slett superlint workflow som ikke er i bruk
Aug 12, 2024
56dce02
Fjern Computas-instance workflow som ikke lenger er i bruk
Aug 12, 2024
2062a7e
Change from performing the workflow for pull requests only instead of…
Aug 12, 2024
3cba570
Endre push til pull request da workflow kjører, og legg til en forkla…
Aug 12, 2024
771ceb5
Endre filnavn til diverse workflows og tittle i fil for bedre lesbarhet
Aug 14, 2024
96b626c
Dialog box should be better styled and perform correct functionality
ellenyuX Aug 16, 2024
4913a2b
Fixed linting
ellenyuX Aug 16, 2024
7564a6e
Update dev workflow
Ivan-Computas Aug 16, 2024
a72c5ff
Merge pull request #232 from computas/Ivan-Computas-patch-1
ellenyuX Aug 16, 2024
976c7c4
Merge branch 'develop' into SP24-701-dialog
ellenyuX Aug 16, 2024
85c7098
Merge pull request #231 from computas/SP24-701-dialog
ellenyuX Aug 16, 2024
1243c4c
Sett mindre skarpe kanter for tegnebrett, hjørnene
Aug 16, 2024
d3b84cc
Fjern ubrukt kode
Aug 16, 2024
dc58cee
Fjern ubrukte CSS-klasser, og flytt inline styling til CSS fil
Aug 16, 2024
29f7202
Update azure-static-web-apps-jolly-ground-07bb42c03.yml
ellenyuX Aug 19, 2024
60c8abe
Slett superlint workflow som ikke er i bruk
Aug 12, 2024
c2251f1
Fjern Computas-instance workflow som ikke lenger er i bruk
Aug 12, 2024
cb1af14
Change from performing the workflow for pull requests only instead of…
Aug 12, 2024
31a9052
Endre push til pull request da workflow kjører, og legg til en forkla…
Aug 12, 2024
4310c52
Endre filnavn til diverse workflows og tittle i fil for bedre lesbarhet
Aug 14, 2024
6306558
Merge remote-tracking branch 'origin/SP24-704_edit_workflow_frontend'…
ThomasBakkenMoe-Computas Aug 19, 2024
0ef231c
Adds tekniskmuseum.code-workspace to gitignore
ThomasBakkenMoe-Computas Aug 19, 2024
dbd1d33
Adds tekniskmuseum.code-workspace to gitignore
ThomasBakkenMoe-Computas Aug 19, 2024
29f24d2
Adds 'edited' type as PR-workflow trigger
ThomasBakkenMoe-Computas Aug 19, 2024
eb8548a
Removes types from pull_request
ThomasBakkenMoe-Computas Aug 19, 2024
50c232b
Edits TODO
ThomasBakkenMoe-Computas Aug 19, 2024
24f25d9
Fjern redundant kode definert i @media i game-info komponenten
Aug 19, 2024
28c36a6
Fjern ubrukte variabler, forenkle kode, og fjern mellomrom i kode
Aug 19, 2024
eaa2559
Merge pull request #233 from computas/SP24-704_edit_workflow_frontend
filvanh Aug 19, 2024
fd294b8
Merge branch 'develop' into SP24-707-SCSS-files-cleanup
filvanh Aug 20, 2024
35d9f4a
Merge pull request #235 from computas/SP24-707-SCSS-files-cleanup
TobiasHermansen-Computas Aug 20, 2024
1b33778
Ta imot endring i NO.json fil
Aug 20, 2024
0391c4e
Legg til funksjonalitet som spør bruker om han vil avslute (openDialo…
Aug 20, 2024
241aec0
Endre fra goToHomePage til openDialoge i html kompinenten til game-wo…
Aug 20, 2024
b154e87
Fjern funksjonalitet gotToHomepage i ts komponenten, da den ikke leng…
Aug 20, 2024
b0af603
Merge pull request #236 from computas/SP24-719-extra-prompt-quit-game
TobiasHermansen-Computas Aug 20, 2024
93b41a4
Sett overscroll-behavior til disabled, slik at man ikke kan swipe mel…
Aug 20, 2024
3ccf302
Merge pull request #237 from computas/SP24-716-remove-horisontal-swiping
TobiasHermansen-Computas Aug 20, 2024
81ab864
Legg til synlig countdown timer i manuell prompt
Aug 20, 2024
5f056a2
Merge pull request #238 from computas/SP24-722-Visible-timebox-manual…
TobiasHermansen-Computas Aug 20, 2024
9ace286
change 'stay' button to 'resume'
Ivan-Computas Aug 21, 2024
1e2ea86
Merge branch 'develop' into ellenyuX-patch-1
Ivan-Computas Aug 21, 2024
861b381
Send spiller til valg av vanskelighetsgrad når den vil starte et nytt…
filvanh Aug 21, 2024
a5386af
Fjern test-border og feilstaving
filvanh Aug 21, 2024
03bc321
Merge pull request #240 from computas/SP24-724-Play-again-to-difficul…
TobiasHermansen-Computas Aug 21, 2024
6e0812d
Added styling
ellenyuX Aug 21, 2024
86ea14f
Merge branch 'develop' into SP-24-715-difficulty-buttons
ellenyuX Aug 21, 2024
604be6a
Change difficult button size
Ivan-Computas Aug 21, 2024
fede989
Merge branch 'develop' into SP24_721_fix_gui_minor_changes
Ivan-Computas Aug 21, 2024
7f2ed13
increase size 'end game' button
Ivan-Computas Aug 21, 2024
2f43215
Merge branch 'SP24_721_fix_gui_minor_changes' of https://github.com/c…
Ivan-Computas Aug 21, 2024
9dc1173
Merge pull request #239 from computas/SP24_721_fix_gui_minor_changes
Ivan-Computas Aug 21, 2024
a28a360
Merge branch 'develop' into ellenyuX-patch-1
Ivan-Computas Aug 21, 2024
1c5d709
Merge pull request #234 from computas/ellenyuX-patch-1
Ivan-Computas Aug 21, 2024
78079f8
Samle margin-X elementene til en felles
filvanh Aug 22, 2024
4035b58
Merge branch 'develop' into SP-24-715-difficulty-buttons
TobiasHermansen-Computas Aug 26, 2024
5e90498
Merge pull request #241 from computas/SP-24-715-difficulty-buttons
TobiasHermansen-Computas Aug 26, 2024
c731825
Edited text
ellenyuX Aug 26, 2024
3526124
Fjern scrollbar for manuel avsluttboks
filvanh Aug 27, 2024
c0a02b8
Legg til mer luft mellom teksten i avsluttboksen
filvanh Aug 27, 2024
6ecf911
Added functionality for logging
ellenyuX Aug 27, 2024
13091d1
Fjern ubrukt CSS kode
filvanh Aug 27, 2024
d8a8693
User keeps chosen language when is sent back to welcome side
Ivan-Computas Aug 28, 2024
87506cd
Merge pull request #245 from computas/SP24-727-prompt-endgame-spacing
TobiasHermansen-Computas Aug 28, 2024
b9b7190
Merge branch 'develop' into SP24_697_stop_reseting_language_when_restart
ellenyuX Aug 28, 2024
4af3f5e
Logging showing in frontend
ellenyuX Aug 28, 2024
8bda9c5
Update info-dialog.component.ts
ellenyuX Aug 28, 2024
5dd568d
Reset timer når man kommer på intermediate resultpage så idlepromt ik…
filvanh Aug 28, 2024
4b0cc4e
Update info-dialog.component.ts
ellenyuX Aug 28, 2024
d18c8b9
Merge branch 'develop' into SP24-740-get-logger
Ivan-Computas Aug 28, 2024
f86173b
Disable at idlePrompt dukker opp på admin siden og tilhørende kompone…
filvanh Aug 28, 2024
b9d282a
Merge pull request #247 from computas/SP24-740-get-logger
ellenyuX Aug 28, 2024
f77f57b
Merge branch 'develop' into SP24-725-Inactively-timer-bug
filvanh Aug 28, 2024
3d483cd
Add logging service
Ivan-Computas Aug 28, 2024
241019c
Merge branch 'develop' into SP24_697_stop_reseting_language_when_restart
Ivan-Computas Aug 28, 2024
8c3c819
Merge pull request #246 from computas/SP24_697_stop_reseting_language…
Ivan-Computas Aug 28, 2024
9d1b2d9
Merge branch 'develop' into SP24-713-abort-button
Ivan-Computas Aug 28, 2024
6fdacac
Merge branch 'develop' into SP24-725-Inactively-timer-bug
filvanh Aug 28, 2024
efe3d12
Fjern tomme kodelinjer, og fiks navngiving
filvanh Aug 28, 2024
22f3dd8
Merge pull request #248 from computas/SP24-725-Inactively-timer-bug
filvanh Aug 28, 2024
a30206d
Display frontend logs in adminpanel
Ivan-Computas Aug 28, 2024
2c673a2
Format: run linter
Ivan-Computas Aug 28, 2024
ec4565c
Merge branch 'develop' into SP24-713-abort-button
Ivan-Computas Aug 28, 2024
fb3c0a7
Merge pull request #244 from computas/SP24-713-abort-button
Ivan-Computas Aug 28, 2024
cd1b09f
Merge branch 'develop' into SP24_744_setup_logging
Ivan-Computas Aug 29, 2024
6625708
Merge pull request #249 from computas/SP24_744_setup_logging
Ivan-Computas Aug 29, 2024
2fc5857
Fix: next button overlap
Ivan-Computas Aug 29, 2024
e42c7ae
Styling to adminpanel
ellenyuX Aug 29, 2024
d6e8564
Merge pull request #250 from computas/SP24_738_fix_next_button
Ivan-Computas Aug 29, 2024
580bc38
Merge branch 'develop' into SP24-740-style-logger
Ivan-Computas Aug 29, 2024
326fe3e
Merge pull request #251 from computas/SP24-740-style-logger
Ivan-Computas Aug 29, 2024
b8950ab
Resize buttons
Ivan-Computas Aug 30, 2024
cfd1d64
Add gradient to diffuculty buttons
Ivan-Computas Aug 30, 2024
8c82fdc
Merge pull request #252 from computas/SP24_750_add_gradient_difficult…
TobiasHermansen-Computas Aug 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .browserslistrc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@
name: Deploy to computas instance of Kunstige Jens Azure Static Web Apps CI/CD

on:
push:
branches:
- master

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_BUSH_01C322703 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_build_command: 'npm run build -- --configuration computas'
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: '/dist/tekniskmuseum' # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_BUSH_01C322703 }}
action: 'close'
#Workflow to run when deploying to development environment.

name: Azure Deploy to Development environment

on:
push:
branches:
- develop
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- develop
workflow_dispatch:

jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_JOLLY_GROUND_07BB42C03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: '/dist/tekniskmuseum' # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_JOLLY_GROUND_07BB42C03 }}
action: 'close'
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Deploy to teknisk museum Production(ambitious-pond)
#Workflow to run when deploying to production environment.
#TODO: A bit outdated, need to inspect code.

name: Azure Deploy to Production environment

on:
workflow_dispatch:
Expand All @@ -17,11 +20,11 @@ jobs:
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_POND_03D4A0710 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
action: 'upload'
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_build_command: "npm run build -- --configuration TekniskMuseumProd"
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "/dist/tekniskmuseum" # Built app content directory - optional
app_build_command: 'npm run build -- --configuration TekniskMuseumProd'
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: '/dist/tekniskmuseum' # Built app content directory - optional
###### End of Repository/Build Configurations ######
43 changes: 0 additions & 43 deletions .github/workflows/github-superlinter.yml

This file was deleted.

70 changes: 34 additions & 36 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Lint, Test & Build

on:
push:
branches-ignore:
- "master"

jobs:
build:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm run test:ci

- name: Build
run: npm run build:ci
# This workflow will do a clean install of node dependencies, build the source code, perform lint checks and run tests across different versions of node.
# This workflow will only be run for pull requests to either master or develop branch provided there are no merge conflicts.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# TODO: Add a step for performing bun test.
name: Lint & Build

on:
pull_request:
branches: ["master", "develop"]

jobs:
build:
name: Lint & Build
runs-on: ubuntu-latest

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

steps:
- name: Checkout ✔️
uses: actions/checkout@v4

- name: Setup bun 🥟
uses: oven-sh/setup-bun@v1

- name: Install dependencies 📝
run: bun install

- name: Run Lint 🧼
run: bun run lint

- name: Build 🛠️
run: bun run build
34 changes: 13 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,46 +1,38 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.

# compiled output
# Compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
# Node
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
npm-debug.log
yarn-error.log

# IDEs and editors
/.idea
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*
# Visual Studio Code
.vscode

# misc
/.sass-cache
# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
/tekniskmuseum.code-workspace

# System Files
# System files
.DS_Store
Thumbs.db
14 changes: 7 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 120,
"semi": true,
"singleQuote": true
}
{
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 120,
"semi": true,
"singleQuote": true
}
57 changes: 44 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,44 @@
# Tekniskmuseum

## Setup

Run `npm install`

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Documentation
https://confluence.computas.com/display/SO/Teknisk+museum

# Tekniskmuseum

Dette er repoet som står for front-end biten av Teknisk Museum-prosjektet "Kunstig Jens". Her finner du svar på de viktigste tingene du trenger å kunne for å starte opp applikasjonen.

## Oppsett

1. Prosjektet bruker [Bun](https://bun.sh) for pakkebehandling og kjøring av kode. Om du ikke har installert Bun, kan det gjøres slik:

```shell
# For MacOS, Linux, og WSL
curl -fsSL https://bun.sh/install | bash

# For Windows
powershell -c "irm bun.sh/install.ps1|iex"
```

2. Deretter kan du installere avhengighetene i prosjektet ved å kjøre

```shell
bun install
```

3. Til slutt kan du starte opp det lokale utviklingsmiljøet ved å kjøre

```shell
bun run start
```

## Forskjellige miljøer

Om man ønsker å gå mot forskjellige miljøer, er det satt opp et sett med forskjellige konfigurasjoner i prosjektet. Disse finner man i mappen `/src/environments/`. Om man f.eks. ønsker å bruke konfigurasjonen "Computas", kan man gjøre det ved å legge til argumentet `--configuration` når man starter opp det lokale utviklingsmiljøet. Det vil si at man da kjører scriptet

```shell
bun run start --configuration computas
```

## Oppstår det problemer i teamet forbundet med bruk av Bun?

Ikke noe problem! Dere kan enkelt gå over til mer tradisjonelle verktøy som Yarn eller NPM. Da er det bare å gjøre følgende:

- Slett `bun.lockb` filen.
- Endre workflowene i `.github/workflows` til å ikke bruke Bun (dvs erstatt trinnet `uses: oven-sh/setup-bun@v1` samt andre kall som bruker Bun).
- Skriv inn ny pakkebehandler i feltet `cli.packageManager` i `angular.json`.
- Lag en ny lockfil med den nye pakkebehandleren ved å kjøre hhv. `npm i` eller `yarn`.
Loading
Loading