-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
640 additions
and
293 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,43 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.1] - 2021-06-10 | ||
|
||
### Added | ||
|
||
- ReadMe.md | ||
- License based on MIT License | ||
- Add `localhost` to Django Production `ALLOW_HOSTS` list | ||
- Add username field to jwt token and get username by parse token | ||
- `GameConsumer` check event permission | ||
- React.js Frontend Project | ||
- Docker-compose dev/prod/ci settings | ||
- additional text to guide user to signup/login page | ||
|
||
### Changed | ||
|
||
- Fix django account can't delete because of `outstanding token` delete permission | ||
- Fix Game page title room name `undefined` | ||
- Fix bystander can view one of player handcards | ||
- Adjust docker-compose dev/prod/ci settings | ||
- Fix frontend `access_token` not exist error handling | ||
- Fix frontend `GameSwitch` & ` AccountSwitch` not handle 404 | ||
- Adjust footer to stick on bottom | ||
- Adjust GamePlaying Page layout | ||
- Change django time-zone and language | ||
- Unify card name and so on | ||
|
||
### Removed | ||
|
||
- Frontend Code console log for debug | ||
- Backend Code unused comment | ||
|
||
## [1.0.0] - 2021-05-28 | ||
### Added | ||
- Finished Saboteur Game Website | ||
- Django Backend Project | ||
- React.js Frontend Project | ||
- Docker-compose dev/prod/ci settings |
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,26 @@ | ||
License | ||
|
||
Copyright (c) 2021 NTNU OOAD Project | ||
|
||
This project is a digital version of the well-known board game Saboteur, so | ||
all the copyrights of the game content belong to the game company. Therefore, | ||
we do not recommend that you use it for a commercial profit. In this project, | ||
we used it for academic reference only. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and to permit | ||
persons to whom the Software is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3' | ||
services: | ||
|
||
db: | ||
ports: | ||
- "5432:5432" | ||
|
||
redis: | ||
ports: | ||
- "6379:6379" | ||
|
||
app: | ||
ports: | ||
- "8000:8000" | ||
|
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,9 +1,20 @@ | ||
from django.contrib import admin | ||
from rest_framework_simplejwt.token_blacklist.admin import OutstandingTokenAdmin | ||
from rest_framework_simplejwt.token_blacklist import models | ||
|
||
from .models import CustomUser | ||
|
||
|
||
class CustomUserAdmin(admin.ModelAdmin): | ||
model = CustomUser | ||
|
||
|
||
class NewOutstandingTokenAdmin(OutstandingTokenAdmin): | ||
|
||
def has_delete_permission(self, *args, **kwargs): | ||
return True | ||
|
||
|
||
admin.site.unregister(models.OutstandingToken) | ||
admin.site.register(models.OutstandingToken, NewOutstandingTokenAdmin) | ||
admin.site.register(CustomUser, CustomUserAdmin) |
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 |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
|
||
class CustomUser(AbstractUser): | ||
color = models.CharField(blank=True, max_length=120) | ||
# Create your models here. |
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
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
Oops, something went wrong.