Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: 1752 kurono badges (#1767)
Browse files Browse the repository at this point in the history
* feat: Upgrade Kubernetes to 1.26

* hack :)

* Merge master

* use new badges service

* change out dir

* undo out dir

* add worksheet 2 badges

* clean up

* merge from main

* call deployment

* Merge branch 'master' into 1747_kurono_badges

* fix: formatting

* Update badge 2:2 title and message (compromise)

* Make typescript a full dependency

* fix: node and use env var

* remove tests

* use older syntax

* disable minify and cache

Co-Authored-By: faucomte97 <f.aucomte@hotmail.co.uk>
  • Loading branch information
SKairinos and faucomte97 authored May 18, 2023
1 parent 4f7354b commit b2c6ae4
Show file tree
Hide file tree
Showing 12 changed files with 3,690 additions and 3,575 deletions.
31 changes: 11 additions & 20 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions aimmo-game/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def setup_socketIO_server(application, async_handlers=True):
async_handlers=async_handlers,
cors_allowed_origins=[
"http://localhost:8000",
"http://localhost:8080",
"https://dev-dot-decent-digit-629.appspot.com",
"https://staging-dot-decent-digit-629.appspot.com",
"https://www.codeforlife.education",
Expand Down
4 changes: 2 additions & 2 deletions game_frontend/djangoBundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const options = {
outFile: 'index.html',
publicUrl: '/static/react/',
watch: process.env.NODE_ENV !== 'production',
minify: process.env.NODE_ENV === 'production',
minify: false, // process.env.NODE_ENV === 'production',
target: 'browser',
cache: process.env.NODE_ENV === 'production',
cache: false // process.env.NODE_ENV === 'production',
}

const templateFolder = Path.resolve(Path.join(__dirname, '../aimmo/templates/players'))
Expand Down
5 changes: 3 additions & 2 deletions game_frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"prettier": "2.7.1",
"prettier-standard": "^16.3.0",
"react-test-renderer": "^16.6.3",
"redux-mock-store": "^1.5.3",
"typescript": "^3.5.3"
"redux-mock-store": "^1.5.3"
},
"dependencies": {
"@material-ui/core": "^4.1.0",
Expand All @@ -65,6 +64,7 @@
"immer": "^9.0.6",
"js-cookie": "^2.2.1",
"lodash.isequal": "^4.5.0",
"node-fetch": "^2.0.0",
"parcel-bundler": "^1.12.5",
"react": "^16.8.6",
"react-ace": "^9.0.0",
Expand All @@ -78,6 +78,7 @@
"socket.io-client": "^4.0.0",
"styled-components": "^5.2.0",
"threads": "^1.7.0",
"typescript": "^3.5.3",
"webfontloader": "^1.6.28"
},
"esLintConfig": {
Expand Down
15 changes: 15 additions & 0 deletions game_frontend/src/components/Badge/badges.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import ChangeDirectionBadge from 'img/1_change_direction.svg'
import RandomDirectionsBadge from 'img/1_random_directions.svg'
import InvestigateBadge from 'img/1_investigate.svg'
import AvoidBadge from 'img/2_avoid.svg';
import PickupBadge from 'img/2_pick_up.svg';


export const badgeInfo = {
'1:1': {
Expand All @@ -21,4 +24,16 @@ export const badgeInfo = {
img: InvestigateBadge,
name: 'Investigate location',
},
'2:1': {
title: 'Amazing job!',
message: 'You created your first subroutine!',
img: AvoidBadge,
name: 'Create subroutine'
},
'2:2': {
title: 'You\'re an explorer!',
message: 'You\'re ready to pick up your first artefact!',
img: PickupBadge,
name: 'Pickup artefact'
},
}
1 change: 1 addition & 0 deletions game_frontend/src/img/2_avoid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b2c6ae4

Please sign in to comment.