-
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.
Merge pull request #16 from HE-Arc/dev
Rendu intermédiaire
- Loading branch information
Showing
52 changed files
with
2,014 additions
and
11,560 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 |
---|---|---|
|
@@ -2,4 +2,5 @@ source 'https://rubygems.org' | |
|
||
gem 'capistrano' | ||
gem 'ed25519' | ||
gem 'bcrypt_pbkdf' | ||
gem 'bcrypt_pbkdf' | ||
|
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 +1,7 @@ | ||
# ARConnect-Manager | ||
|
||
|
||
ARConnect-Manager is a webapp created to manage tournaments in a LAN-like event. | ||
|
||
[Access the demo here](https://arconnect.k8s.ing.he-arc.ch/) | ||
|
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,3 +1,4 @@ | ||
from django.contrib import admin | ||
from arconnectmanagerapp.models import TournamentItem | ||
|
||
# Register your models here. | ||
admin.site.register(TournamentItem) |
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,32 @@ | ||
# Generated by Django 5.0.1 on 2024-03-15 10:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="TournamentItem", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("name", models.CharField(max_length=100)), | ||
("description", models.TextField()), | ||
("state", models.IntegerField()), | ||
("created", models.DateTimeField(auto_now_add=True)), | ||
("updated", models.DateTimeField(auto_now=True)), | ||
], | ||
), | ||
] |
25 changes: 25 additions & 0 deletions
25
api/arconnectmanagerapp/migrations/0002_alter_tournamentitem_state.py
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,25 @@ | ||
# Generated by Django 5.0.1 on 2024-03-21 20:46 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("arconnectmanagerapp", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="tournamentitem", | ||
name="state", | ||
field=models.IntegerField( | ||
default=0, | ||
validators=[ | ||
django.core.validators.MinValueValidator(0), | ||
django.core.validators.MaxValueValidator(3), | ||
], | ||
), | ||
), | ||
] |
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,3 +1,14 @@ | ||
from django.db import models | ||
from django.contrib.auth.models import User | ||
from django.core.validators import MinValueValidator, MaxValueValidator | ||
|
||
# Create your models here. | ||
#Tournament model | ||
class TournamentItem(models.Model): | ||
name = models.CharField(max_length=100) #Name of the tournament | ||
description = models.TextField() #Description of the tournament | ||
state = models.IntegerField( #State of the tournament : 0=closed, 1=open, 2=started 3=finished | ||
default=0, | ||
validators=[MinValueValidator(0), MaxValueValidator(3)] | ||
) | ||
created = models.DateTimeField(auto_now_add=True) | ||
updated = models.DateTimeField(auto_now=True) |
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,16 @@ | ||
from rest_framework import serializers | ||
from django.contrib.auth.models import User | ||
from .models import TournamentItem | ||
|
||
class TournamentItemSerializer(serializers.HyperlinkedModelSerializer): | ||
''' Serializer for the TournamentItem model ''' | ||
class Meta: | ||
model = TournamentItem | ||
fields = [ | ||
'url', | ||
'id', | ||
'name', | ||
'description', | ||
'state' | ||
] | ||
|
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,10 @@ | ||
from django.urls import path, include | ||
from . import views | ||
from rest_framework.routers import DefaultRouter | ||
|
||
router = DefaultRouter() | ||
router.register(r'tournaments', views.TournamentItemViewSet, basename='tournamentitem') | ||
|
||
urlpatterns = [ | ||
path("", include(router.urls)) | ||
] |
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,3 +1,13 @@ | ||
from django.shortcuts import render | ||
from rest_framework import viewsets | ||
from .models import TournamentItem | ||
from .serializers import TournamentItemSerializer | ||
|
||
# Create your views here. | ||
|
||
class TournamentItemViewSet(viewsets.ModelViewSet): | ||
""" | ||
API endpoint that allows tournament items to be viewed or edited. | ||
""" | ||
queryset = TournamentItem.objects.all() | ||
serializer_class = TournamentItemSerializer |
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,5 +1,9 @@ | ||
asgiref==3.7.2 | ||
Django==5.0.3 | ||
|
||
django-cors-headers==4.3.1 | ||
django-environ==0.11.2 | ||
django-rest-framework==0.1.0 | ||
djangorestframework==3.15.0 | ||
sqlparse==0.4.4 | ||
tzdata==2024.1 | ||
django-environ==0.11.2 | ||
tzdata==2024.1 |
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,24 +1,7 @@ | ||
# frontend | ||
# Vue 3 + Vite | ||
|
||
## Project setup | ||
``` | ||
npm install | ||
``` | ||
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more. | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
npm run serve | ||
``` | ||
## Recommended IDE Setup | ||
|
||
### Compiles and minifies for production | ||
``` | ||
npm run build | ||
``` | ||
|
||
### Lints and fixes files | ||
``` | ||
npm run lint | ||
``` | ||
|
||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/). | ||
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). |
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
/* TEAM */ | ||
Name: Jonas Flückiger. | ||
Role: Developper, designer. | ||
|
||
Name: Alexandre Maquet. | ||
Role: Developper. | ||
|
||
Name: Daniel Moreira Dos Santos. | ||
Role: Developper. | ||
|
||
|
||
|
||
/* THANKS */ | ||
Name: HE-Arc | ||
Site: https://he-arc.ch | ||
|
||
|
||
/* SITE */ | ||
Last update: 2024/03/08 | ||
Standards: HTML5, CSS3. | ||
Components: VueJS, ViteJS, SASS, Django. | ||
Software: VSCode, NodeJS, Docker. |
Oops, something went wrong.