From 4e7e7348c3333bc22b5aac7523acf2ed7f06a5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Mon, 13 May 2024 21:25:15 +0200 Subject: [PATCH] refactoring --- front/__init__.py | 0 front/admin.py | 3 --- front/apps.py | 6 ------ front/migrations/__init__.py | 0 front/models.py | 3 --- front/tests.py | 3 --- front/urls.py | 8 -------- front/views.py | 8 -------- kholles_web/urls.py | 4 ++-- requirements.txt | 1 + static/main.css | 3 +-- templates/base.html | 4 ++-- {front/templates => templates}/index.html | 0 13 files changed, 6 insertions(+), 37 deletions(-) delete mode 100644 front/__init__.py delete mode 100644 front/admin.py delete mode 100644 front/apps.py delete mode 100644 front/migrations/__init__.py delete mode 100644 front/models.py delete mode 100644 front/tests.py delete mode 100644 front/urls.py delete mode 100644 front/views.py rename {front/templates => templates}/index.html (100%) diff --git a/front/__init__.py b/front/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/front/admin.py b/front/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/front/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/front/apps.py b/front/apps.py deleted file mode 100644 index 0ece654..0000000 --- a/front/apps.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.apps import AppConfig - - -class FrontConfig(AppConfig): - default_auto_field = 'django.db.models.BigAutoField' - name = 'front' diff --git a/front/migrations/__init__.py b/front/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/front/models.py b/front/models.py deleted file mode 100644 index 71a8362..0000000 --- a/front/models.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.db import models - -# Create your models here. diff --git a/front/tests.py b/front/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/front/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/front/urls.py b/front/urls.py deleted file mode 100644 index 94b69ef..0000000 --- a/front/urls.py +++ /dev/null @@ -1,8 +0,0 @@ -from django.urls import path -from django.shortcuts import redirect - -from . import views - -urlpatterns = [ - path("", views.index, name="index"), -] \ No newline at end of file diff --git a/front/views.py b/front/views.py deleted file mode 100644 index 4a73a4a..0000000 --- a/front/views.py +++ /dev/null @@ -1,8 +0,0 @@ -from django.shortcuts import render - - -# Create your views here. - -def index(request): - context = {} - return render(request, "index.html", context) diff --git a/kholles_web/urls.py b/kholles_web/urls.py index 135fb8b..f8f21ea 100644 --- a/kholles_web/urls.py +++ b/kholles_web/urls.py @@ -16,7 +16,7 @@ Including another URLconf """ from django.contrib import admin, auth from django.urls import include, path -from django.shortcuts import redirect +from django.shortcuts import redirect, render from django.contrib.staticfiles import views as vstatic from rest_framework import routers from rest_framework_simplejwt.views import ( @@ -42,7 +42,7 @@ router.register("calendarlink", CalendarLinkViewset, basename='calendarlink') urlpatterns = [ - path('', include(("front.urls", "front"), namespace="front")), + path('', lambda req: render(req, "index.html", {}), name="home"), path("__debug__/", include("debug_toolbar.urls")), path('api-auth/', include('rest_framework.urls')), diff --git a/requirements.txt b/requirements.txt index afa23bc..92f8320 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,6 +14,7 @@ defusedxml==0.7.1 discord.py==2.3.2 Django==5.0.4 django-cors-headers==4.3.1 +django-debug-toolbar==4.3.0 django-oauth-toolkit==2.3.0 django-smtp-ssl==1.0 djangorestframework==3.15.1 diff --git a/static/main.css b/static/main.css index 94fdc45..ca34a49 100644 --- a/static/main.css +++ b/static/main.css @@ -200,12 +200,11 @@ footer { border-radius: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.04),0 3px 6px rgba(0,0,0,0.0575); - transition: transform 200ms, background-color 200ms; + transition: background-color 200ms; } .colle:hover { background-color: #fafafa; - transform: rotate(1deg); } .colle span { diff --git a/templates/base.html b/templates/base.html index 240bbc9..103d1e0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,14 +25,14 @@ - +