rename lan
This commit is contained in:
parent
6e598b577f
commit
29caadaca2
4
502.html
4
502.html
@ -1,6 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>EZ LAN Manager - Wartungsmodus</title>
|
<title>EZGG LAN Manager - Wartungsmodus</title>
|
||||||
<style>
|
<style>
|
||||||
body { text-align: center; padding: 150px; }
|
body { text-align: center; padding: 150px; }
|
||||||
h1 { font-size: 50px; }
|
h1 { font-size: 50px; }
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<h1>Wir sind bald wieder da!</h1>
|
<h1>Wir sind bald wieder da!</h1>
|
||||||
<div>
|
<div>
|
||||||
<p>Wir führen zurzeit Wartungsarbeiten durch und sind in kürze wieder für euch da.</p>
|
<p>Wir führen zurzeit Wartungsarbeiten durch und sind in kürze wieder für euch da.</p>
|
||||||
<p>— Euer EZ LAN Team</p>
|
<p>— Euer EZGG LAN Team</p>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
12
README.md
12
README.md
@ -1,8 +1,8 @@
|
|||||||
# EZ LAN Manager
|
# EZGG LAN Manager
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This repository contains the code for the EZ LAN Manager.
|
This repository contains the code for the EZGG LAN Manager.
|
||||||
|
|
||||||
## Development Setup
|
## Development Setup
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ This repository contains the code for the EZ LAN Manager.
|
|||||||
|
|
||||||
To prepare the database, apply the SQL file located in `sql/create_database.sql` to your database server. This is easily accomplished with the MYSQL Workbench, but it can be also done by pipeing the file into the mariadb-server executable.
|
To prepare the database, apply the SQL file located in `sql/create_database.sql` to your database server. This is easily accomplished with the MYSQL Workbench, but it can be also done by pipeing the file into the mariadb-server executable.
|
||||||
|
|
||||||
Optionally, you can now execute the script `create_demo_database_content.py`, found in `src/ez_lan_manager/helpers`. Be aware that it can be buggy sometimes, especially if you overwrite existing data.
|
Optionally, you can now execute the script `create_demo_database_content.py`, found in `src/ezgg_lan_manager/helpers`. Be aware that it can be buggy sometimes, especially if you overwrite existing data.
|
||||||
|
|
||||||
### Step 2: Preparing configuration
|
### Step 2: Preparing configuration
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ Use `pip install -r requirements.txt` to install the requirements. The usage of
|
|||||||
|
|
||||||
### Step 4: Running the application
|
### Step 4: Running the application
|
||||||
|
|
||||||
Run the application by executing the file `EzLanManager.py` found at `src/ez_lan_manager`. Check the STDOUT for information regarding the port on which the application is now served.
|
Run the application by executing the file `EzggLanManager.py` found at `src/ezgg_lan_manager`. Check the STDOUT for information regarding the port on which the application is now served.
|
||||||
|
|
||||||
## Docker Deployment
|
## Docker Deployment
|
||||||
|
|
||||||
@ -37,8 +37,8 @@ To get the docker compose setup running, you need to manually complete the follo
|
|||||||
1. Create a valid `config.toml` in the project root, so it gets copied over into the container.
|
1. Create a valid `config.toml` in the project root, so it gets copied over into the container.
|
||||||
2. Create the database user:
|
2. Create the database user:
|
||||||
```sql
|
```sql
|
||||||
CREATE USER 'ez_lan_manager'@'%' IDENTIFIED BY 'PASSWORD';
|
CREATE USER 'ezgg_lan_manager'@'%' IDENTIFIED BY 'PASSWORD';
|
||||||
GRANT ALL PRIVILEGES ON ez_lan_manager.* TO 'ez_lan_manager'@'%';
|
GRANT ALL PRIVILEGES ON ezgg_lan_manager.* TO 'ezgg_lan_manager'@'%';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
```
|
```
|
||||||
3. Make sure to **NOT** use the default passwords!
|
3. Make sure to **NOT** use the default passwords!
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[lan]
|
[lan]
|
||||||
name="EZ LAN"
|
name="EZGG LAN"
|
||||||
iteration="0.5"
|
iteration="0.5"
|
||||||
date_from="2024-10-30 15:00:00"
|
date_from="2024-10-30 15:00:00"
|
||||||
date_till="2024-11-01 12:00:00"
|
date_till="2024-11-01 12:00:00"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
db_password="demo_password"
|
db_password="demo_password"
|
||||||
db_host="127.0.0.1"
|
db_host="127.0.0.1"
|
||||||
db_port=3306
|
db_port=3306
|
||||||
db_name="ez_lan_manager"
|
db_name="ezgg_lan_manager"
|
||||||
|
|
||||||
[mailing]
|
[mailing]
|
||||||
smtp_server=""
|
smtp_server=""
|
||||||
|
|||||||
@ -5,20 +5,20 @@ services:
|
|||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
PYTHONPATH: /opt/ez-lan-manager
|
PYTHONPATH: /opt/ezgg-lan-manager
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
- "8001:8001"
|
- "8001:8001"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/opt/ez-lan-manager
|
- ./:/opt/ezgg-lan-manager
|
||||||
entrypoint: ["/bin/sh", "-c", "cd /opt/ez-lan-manager/src && python3 /opt/ez-lan-manager/src/EzLanManager.py"]
|
entrypoint: ["/bin/sh", "-c", "cd /opt/ezgg-lan-manager/src && python3 /opt/ezgg-lan-manager/src/EzggLanManager.py"]
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
environment:
|
environment:
|
||||||
MARIADB_ROOT_PASSWORD: Alkohol1
|
MARIADB_ROOT_PASSWORD: Alkohol1
|
||||||
MARIADB_DATABASE: ez_lan_manager
|
MARIADB_DATABASE: ezgg_lan_manager
|
||||||
MARIADB_USER: ez_lan_manager
|
MARIADB_USER: ezgg_lan_manager
|
||||||
MARIADB_PASSWORD: Alkohol1
|
MARIADB_PASSWORD: Alkohol1
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
|
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
CREATE DATABASE IF NOT EXISTS `ez_lan_manager` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;
|
CREATE DATABASE IF NOT EXISTS `ezgg_lan_manager` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;
|
||||||
USE `ez_lan_manager`;
|
USE `ezgg_lan_manager`;
|
||||||
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
|
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
|
||||||
--
|
--
|
||||||
-- Host: 127.0.0.1 Database: ez_lan_manager
|
-- Host: 127.0.0.1 Database: ezgg_lan_manager
|
||||||
-- ------------------------------------------------------
|
-- ------------------------------------------------------
|
||||||
-- Server version 5.5.5-10.11.8-MariaDB-0ubuntu0.24.04.1
|
-- Server version 5.5.5-10.11.8-MariaDB-0ubuntu0.24.04.1
|
||||||
|
|
||||||
|
|||||||
@ -8,13 +8,13 @@ from pathlib import Path
|
|||||||
from rio import App, Theme, Color, Font, ComponentPage, Session
|
from rio import App, Theme, Color, Font, ComponentPage, Session
|
||||||
from from_root import from_root
|
from from_root import from_root
|
||||||
|
|
||||||
from src.ez_lan_manager import pages, init_services
|
from src.ezgg_lan_manager import pages, init_services
|
||||||
from src.ez_lan_manager.helpers.LoggedInGuard import logged_in_guard, not_logged_in_guard, team_guard
|
from src.ezgg_lan_manager.helpers.LoggedInGuard import logged_in_guard, not_logged_in_guard, team_guard
|
||||||
from src.ez_lan_manager.services.DatabaseService import NoDatabaseConnectionError
|
from src.ezgg_lan_manager.services.DatabaseService import NoDatabaseConnectionError
|
||||||
from src.ez_lan_manager.services.LocalDataService import LocalData
|
from src.ezgg_lan_manager.services.LocalDataService import LocalData
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
logger = logging.getLogger("EzLanManager")
|
logger = logging.getLogger("EzggLanManager")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
theme = Theme.from_colors(
|
theme = Theme.from_colors(
|
||||||
@ -28,7 +28,7 @@ if __name__ == "__main__":
|
|||||||
corner_radius_small=0,
|
corner_radius_small=0,
|
||||||
corner_radius_medium=0,
|
corner_radius_medium=0,
|
||||||
corner_radius_large=0,
|
corner_radius_large=0,
|
||||||
font=Font(from_root("src/ez_lan_manager/assets/fonts/joystix.otf"))
|
font=Font(from_root("src/ezgg_lan_manager/assets/fonts/joystix.otf"))
|
||||||
)
|
)
|
||||||
default_attachments = [LocalData()]
|
default_attachments = [LocalData()]
|
||||||
default_attachments.extend(init_services())
|
default_attachments.extend(init_services())
|
||||||
@ -46,7 +46,7 @@ if __name__ == "__main__":
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
app = App(
|
app = App(
|
||||||
name="EZ LAN Manager",
|
name="EZGG LAN Manager",
|
||||||
build=pages.BasePage,
|
build=pages.BasePage,
|
||||||
pages=[
|
pages=[
|
||||||
ComponentPage(
|
ComponentPage(
|
||||||
@ -168,13 +168,13 @@ if __name__ == "__main__":
|
|||||||
default_attachments=default_attachments,
|
default_attachments=default_attachments,
|
||||||
on_session_start=on_session_start,
|
on_session_start=on_session_start,
|
||||||
on_app_start=on_app_start,
|
on_app_start=on_app_start,
|
||||||
icon=from_root("src/ez_lan_manager/assets/img/favicon.png"),
|
icon=from_root("src/ezgg_lan_manager/assets/img/favicon.png"),
|
||||||
meta_tags={
|
meta_tags={
|
||||||
"robots": "INDEX,FOLLOW",
|
"robots": "INDEX,FOLLOW",
|
||||||
"description": f"Info und Verwaltungs-Seite der LAN Party '{lan_info.name} - {lan_info.iteration}'.",
|
"description": f"Info und Verwaltungs-Seite der LAN Party '{lan_info.name} - {lan_info.iteration}'.",
|
||||||
"og:description": f"Info und Verwaltungs-Seite der LAN Party '{lan_info.name} - {lan_info.iteration}'.",
|
"og:description": f"Info und Verwaltungs-Seite der LAN Party '{lan_info.name} - {lan_info.iteration}'.",
|
||||||
"keywords": "Gaming, Clan, Guild, Verein, Club, Einfach, Zocken, Gesellschaft, Videospiele, "
|
"keywords": "Gaming, Clan, Guild, Verein, Club, Einfach, Zocken, Gesellschaft, Videospiele, "
|
||||||
"Videogames, LAN, Party, EZ, LAN, Manager",
|
"Videogames, LAN, Party, EZ, EZGG, LAN, Manager",
|
||||||
"author": "David Rodenkirchen",
|
"author": "David Rodenkirchen",
|
||||||
"publisher": "EZ GG e.V.",
|
"publisher": "EZ GG e.V.",
|
||||||
"copyright": "EZ GG e.V.",
|
"copyright": "EZ GG e.V.",
|
||||||
@ -2,19 +2,19 @@ import logging
|
|||||||
|
|
||||||
from from_root import from_root
|
from from_root import from_root
|
||||||
|
|
||||||
from src.ez_lan_manager.services import *
|
from src.ezgg_lan_manager.services import *
|
||||||
from src.ez_lan_manager.services.AccountingService import AccountingService
|
from src.ezgg_lan_manager.services.AccountingService import AccountingService
|
||||||
from src.ez_lan_manager.services.CateringService import CateringService
|
from src.ezgg_lan_manager.services.CateringService import CateringService
|
||||||
from src.ez_lan_manager.services.ConfigurationService import ConfigurationService
|
from src.ezgg_lan_manager.services.ConfigurationService import ConfigurationService
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager.services.LocalDataService import LocalDataService
|
from src.ezgg_lan_manager.services.LocalDataService import LocalDataService
|
||||||
from src.ez_lan_manager.services.MailingService import MailingService
|
from src.ezgg_lan_manager.services.MailingService import MailingService
|
||||||
from src.ez_lan_manager.services.NewsService import NewsService
|
from src.ezgg_lan_manager.services.NewsService import NewsService
|
||||||
from src.ez_lan_manager.services.ReceiptPrintingService import ReceiptPrintingService
|
from src.ezgg_lan_manager.services.ReceiptPrintingService import ReceiptPrintingService
|
||||||
from src.ez_lan_manager.services.SeatingService import SeatingService
|
from src.ezgg_lan_manager.services.SeatingService import SeatingService
|
||||||
from src.ez_lan_manager.services.TicketingService import TicketingService
|
from src.ezgg_lan_manager.services.TicketingService import TicketingService
|
||||||
from src.ez_lan_manager.services.UserService import UserService
|
from src.ezgg_lan_manager.services.UserService import UserService
|
||||||
from src.ez_lan_manager.types import *
|
from src.ezgg_lan_manager.types import *
|
||||||
|
|
||||||
# Inits services in the correct order
|
# Inits services in the correct order
|
||||||
def init_services() -> tuple[AccountingService, CateringService, ConfigurationService, DatabaseService, MailingService, NewsService, SeatingService, TicketingService, UserService, LocalDataService, ReceiptPrintingService]:
|
def init_services() -> tuple[AccountingService, CateringService, ConfigurationService, DatabaseService, MailingService, NewsService, SeatingService, TicketingService, UserService, LocalDataService, ReceiptPrintingService]:
|
||||||
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@ -4,7 +4,7 @@ from decimal import Decimal
|
|||||||
import rio
|
import rio
|
||||||
from rio import Component, Row, Text, IconButton, TextStyle
|
from rio import Component, Row, Text, IconButton, TextStyle
|
||||||
|
|
||||||
from src.ez_lan_manager import AccountingService
|
from src.ezgg_lan_manager import AccountingService
|
||||||
|
|
||||||
MAX_LEN = 24
|
MAX_LEN = 24
|
||||||
|
|
||||||
@ -3,9 +3,9 @@ from typing import Optional, Callable
|
|||||||
|
|
||||||
from rio import Component, Row, Card, Column, Text, TextStyle, Spacer, PointerEventListener, Button
|
from rio import Component, Row, Card, Column, Text, TextStyle, Spacer, PointerEventListener, Button
|
||||||
|
|
||||||
from src.ez_lan_manager.services.CateringService import CateringService
|
from src.ezgg_lan_manager.services.CateringService import CateringService
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringOrder, CateringOrderStatus
|
from src.ezgg_lan_manager.types.CateringOrder import CateringOrder, CateringOrderStatus
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
|
|
||||||
class CateringManagementOrderDisplayStatusButton(Component):
|
class CateringManagementOrderDisplayStatusButton(Component):
|
||||||
status: CateringOrderStatus
|
status: CateringOrderStatus
|
||||||
@ -3,7 +3,7 @@ from typing import Callable
|
|||||||
from rio import Component, Row, Text, TextStyle, Color, Rectangle, CursorStyle
|
from rio import Component, Row, Text, TextStyle, Color, Rectangle, CursorStyle
|
||||||
from rio.components.pointer_event_listener import PointerEvent, PointerEventListener
|
from rio.components.pointer_event_listener import PointerEvent, PointerEventListener
|
||||||
|
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringOrderStatus, CateringOrder
|
from src.ezgg_lan_manager.types.CateringOrder import CateringOrderStatus, CateringOrder
|
||||||
|
|
||||||
MAX_LEN = 24
|
MAX_LEN = 24
|
||||||
|
|
||||||
@ -4,7 +4,7 @@ from typing import Callable
|
|||||||
import rio
|
import rio
|
||||||
from rio import Component, Row, Text, IconButton, TextStyle, Column, Spacer, Card, Color
|
from rio import Component, Row, Text, IconButton, TextStyle, Column, Spacer, Card, Color
|
||||||
|
|
||||||
from src.ez_lan_manager import AccountingService
|
from src.ezgg_lan_manager import AccountingService
|
||||||
|
|
||||||
MAX_LEN = 24
|
MAX_LEN = 24
|
||||||
|
|
||||||
@ -3,12 +3,12 @@ from typing import Optional, Callable
|
|||||||
|
|
||||||
from rio import *
|
from rio import *
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, LocalDataService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, LocalDataService
|
||||||
from src.ez_lan_manager.components.DesktopNavigationButton import DesktopNavigationButton
|
from src.ezgg_lan_manager.components.DesktopNavigationButton import DesktopNavigationButton
|
||||||
from src.ez_lan_manager.components.UserInfoAndLoginBox import UserInfoAndLoginBox
|
from src.ezgg_lan_manager.components.UserInfoAndLoginBox import UserInfoAndLoginBox
|
||||||
from src.ez_lan_manager.services.LocalDataService import LocalData
|
from src.ezgg_lan_manager.services.LocalDataService import LocalData
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class DesktopNavigation(Component):
|
class DesktopNavigation(Component):
|
||||||
@ -79,7 +79,7 @@ class DesktopNavigation(Component):
|
|||||||
|
|
||||||
return Card(
|
return Card(
|
||||||
Column(
|
Column(
|
||||||
Text(lan_info.name, align_x=0.5, margin_top=0.3, style=TextStyle(fill=self.session.theme.hud_color, font_size=2.5)),
|
Text(lan_info.name, align_x=0.5, margin_top=0.3, style=TextStyle(fill=self.session.theme.hud_color, font_size=1.9)),
|
||||||
Text(f"Edition {lan_info.iteration}", align_x=0.5, style=TextStyle(fill=self.session.theme.hud_color, font_size=1.2), margin_top=0.3, margin_bottom=2),
|
Text(f"Edition {lan_info.iteration}", align_x=0.5, style=TextStyle(fill=self.session.theme.hud_color, font_size=1.2), margin_top=0.3, margin_bottom=2),
|
||||||
user_info_and_login_box,
|
user_info_and_login_box,
|
||||||
*nav_to_use,
|
*nav_to_use,
|
||||||
@ -1,10 +1,10 @@
|
|||||||
from rio import Component, TextStyle, Color, TextInput, Button, Text, Rectangle, Column, Row, Spacer, \
|
from rio import Component, TextStyle, Color, TextInput, Button, Text, Rectangle, Column, Row, Spacer, \
|
||||||
EventHandler
|
EventHandler
|
||||||
|
|
||||||
from src.ez_lan_manager.services.LocalDataService import LocalDataService, LocalData
|
from src.ezgg_lan_manager.services.LocalDataService import LocalDataService, LocalData
|
||||||
from src.ez_lan_manager.services.UserService import UserService
|
from src.ezgg_lan_manager.services.UserService import UserService
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class LoginBox(Component):
|
class LoginBox(Component):
|
||||||
@ -4,8 +4,8 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import Component, Column, NumberInput, ThemeContextSwitcher, TextInput, Row, Button, EventHandler
|
from rio import Component, Column, NumberInput, ThemeContextSwitcher, TextInput, Row, Button, EventHandler
|
||||||
|
|
||||||
from src.ez_lan_manager.types.Transaction import Transaction
|
from src.ezgg_lan_manager.types.Transaction import Transaction
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class NewTransactionForm(Component):
|
class NewTransactionForm(Component):
|
||||||
@ -2,8 +2,8 @@ from typing import Callable
|
|||||||
|
|
||||||
from rio import Component, Rectangle, Grid, Column, Row, Text, TextStyle, Color, PointerEventListener, Spacer
|
from rio import Component, Rectangle, Grid, Column, Row, Text, TextStyle, Color, PointerEventListener, Spacer
|
||||||
|
|
||||||
from src.ez_lan_manager.components.SeatingPlanPixels import SeatPixel, WallPixel, InvisiblePixel, TextPixel
|
from src.ezgg_lan_manager.components.SeatingPlanPixels import SeatPixel, WallPixel, InvisiblePixel, TextPixel
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
|
|
||||||
MAX_GRID_WIDTH_PIXELS = 60
|
MAX_GRID_WIDTH_PIXELS = 60
|
||||||
MAX_GRID_HEIGHT_PIXELS = 60
|
MAX_GRID_HEIGHT_PIXELS = 60
|
||||||
@ -4,8 +4,8 @@ from typing import Optional, Callable
|
|||||||
|
|
||||||
from rio import Component, Column, Text, TextStyle, Button, Spacer, event
|
from rio import Component, Column, Text, TextStyle, Button, Spacer, event
|
||||||
|
|
||||||
from src.ez_lan_manager import TicketingService
|
from src.ezgg_lan_manager import TicketingService
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
|
|
||||||
class SeatingPlanInfoBox(Component):
|
class SeatingPlanInfoBox(Component):
|
||||||
@ -3,8 +3,8 @@ from functools import partial
|
|||||||
from rio import Component, Text, Icon, TextStyle, Rectangle, Spacer, Color, PointerEventListener, Column, Row
|
from rio import Component, Text, Icon, TextStyle, Rectangle, Spacer, Color, PointerEventListener, Column, Row
|
||||||
from typing import Optional, Callable
|
from typing import Optional, Callable
|
||||||
|
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
|
|
||||||
class SeatPixel(Component):
|
class SeatPixel(Component):
|
||||||
@ -4,12 +4,12 @@ from decimal import Decimal
|
|||||||
import rio
|
import rio
|
||||||
from rio import Component, Column, Text, TextStyle, Button, Row, ScrollContainer, Spacer, Popup, Table, event
|
from rio import Component, Column, Text, TextStyle, Button, Row, ScrollContainer, Spacer, Popup, Table, event
|
||||||
|
|
||||||
from src.ez_lan_manager.components.CateringCartItem import CateringCartItem
|
from src.ezgg_lan_manager.components.CateringCartItem import CateringCartItem
|
||||||
from src.ez_lan_manager.components.CateringOrderItem import CateringOrderItem
|
from src.ezgg_lan_manager.components.CateringOrderItem import CateringOrderItem
|
||||||
from src.ez_lan_manager.services.AccountingService import AccountingService
|
from src.ezgg_lan_manager.services.AccountingService import AccountingService
|
||||||
from src.ez_lan_manager.services.CateringService import CateringService, CateringError, CateringErrorType
|
from src.ezgg_lan_manager.services.CateringService import CateringService, CateringError, CateringErrorType
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringOrder, CateringMenuItemsWithAmount
|
from src.ezgg_lan_manager.types.CateringOrder import CateringOrder, CateringMenuItemsWithAmount
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
POPUP_CLOSE_TIMEOUT_SECONDS = 3
|
POPUP_CLOSE_TIMEOUT_SECONDS = 3
|
||||||
|
|
||||||
@ -5,9 +5,9 @@ from decimal import Decimal
|
|||||||
import rio
|
import rio
|
||||||
from rio import Component, Card, Column, Text, Row, Button, TextStyle, ProgressBar, event, Spacer
|
from rio import Component, Card, Column, Text, Row, Button, TextStyle, ProgressBar, event, Spacer
|
||||||
|
|
||||||
from src.ez_lan_manager import TicketingService
|
from src.ezgg_lan_manager import TicketingService
|
||||||
from src.ez_lan_manager.services.AccountingService import AccountingService
|
from src.ezgg_lan_manager.services.AccountingService import AccountingService
|
||||||
from src.ez_lan_manager.types.Ticket import Ticket
|
from src.ezgg_lan_manager.types.Ticket import Ticket
|
||||||
|
|
||||||
|
|
||||||
class TicketBuyCard(Component):
|
class TicketBuyCard(Component):
|
||||||
@ -7,10 +7,10 @@ from from_root import from_root
|
|||||||
from rio import Component, Column, Button, Color, TextStyle, Text, TextInput, Row, Image, event, Spacer, DateInput, \
|
from rio import Component, Column, Button, Color, TextStyle, Text, TextInput, Row, Image, event, Spacer, DateInput, \
|
||||||
TextInputChangeEvent, NoFileSelectedError
|
TextInputChangeEvent, NoFileSelectedError
|
||||||
|
|
||||||
from src.ez_lan_manager.services.UserService import UserService, NameNotAllowedError
|
from src.ezgg_lan_manager.services.UserService import UserService, NameNotAllowedError
|
||||||
from src.ez_lan_manager.services.ConfigurationService import ConfigurationService
|
from src.ezgg_lan_manager.services.ConfigurationService import ConfigurationService
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class UserEditForm(Component):
|
class UserEditForm(Component):
|
||||||
@ -122,7 +122,7 @@ class UserEditForm(Component):
|
|||||||
|
|
||||||
def build(self) -> Component:
|
def build(self) -> Component:
|
||||||
pfp_image_container = Image(
|
pfp_image_container = Image(
|
||||||
from_root("src/ez_lan_manager/assets/img/anon_pfp.png") if self.profile_picture is None else self.profile_picture,
|
from_root("src/ezgg_lan_manager/assets/img/anon_pfp.png") if self.profile_picture is None else self.profile_picture,
|
||||||
align_x=0.5,
|
align_x=0.5,
|
||||||
min_width=10,
|
min_width=10,
|
||||||
min_height=10,
|
min_height=10,
|
||||||
@ -1,9 +1,9 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from rio import Component
|
from rio import Component
|
||||||
from src.ez_lan_manager.components.LoginBox import LoginBox
|
from src.ezgg_lan_manager.components.LoginBox import LoginBox
|
||||||
from src.ez_lan_manager.components.UserInfoBox import UserInfoBox
|
from src.ezgg_lan_manager.components.UserInfoBox import UserInfoBox
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -4,16 +4,16 @@ from decimal import Decimal
|
|||||||
|
|
||||||
from rio import Component, TextStyle, Color, Button, Text, Rectangle, Column, Row, Spacer, Link, event, EventHandler
|
from rio import Component, TextStyle, Color, Button, Text, Rectangle, Column, Row, Spacer, Link, event, EventHandler
|
||||||
|
|
||||||
from src.ez_lan_manager.components.UserInfoBoxButton import UserInfoBoxButton
|
from src.ezgg_lan_manager.components.UserInfoBoxButton import UserInfoBoxButton
|
||||||
from src.ez_lan_manager.services.LocalDataService import LocalData, LocalDataService
|
from src.ezgg_lan_manager.services.LocalDataService import LocalData, LocalDataService
|
||||||
from src.ez_lan_manager.services.UserService import UserService
|
from src.ezgg_lan_manager.services.UserService import UserService
|
||||||
from src.ez_lan_manager.services.AccountingService import AccountingService
|
from src.ezgg_lan_manager.services.AccountingService import AccountingService
|
||||||
from src.ez_lan_manager.services.TicketingService import TicketingService
|
from src.ezgg_lan_manager.services.TicketingService import TicketingService
|
||||||
from src.ez_lan_manager.services.SeatingService import SeatingService
|
from src.ezgg_lan_manager.services.SeatingService import SeatingService
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
from src.ez_lan_manager.types.Ticket import Ticket
|
from src.ezgg_lan_manager.types.Ticket import Ticket
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
|
|
||||||
class StatusButton(Component):
|
class StatusButton(Component):
|
||||||
@ -2,8 +2,8 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import URL, GuardEvent
|
from rio import URL, GuardEvent
|
||||||
|
|
||||||
from src.ez_lan_manager.services.UserService import UserService
|
from src.ezgg_lan_manager.services.UserService import UserService
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
|
|
||||||
# Guards pages against access from users that are NOT logged in
|
# Guards pages against access from users that are NOT logged in
|
||||||
@ -5,9 +5,9 @@ from decimal import Decimal
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from src.ez_lan_manager import init_services
|
from src.ezgg_lan_manager import init_services
|
||||||
from src.ez_lan_manager.types.CateringMenuItem import CateringMenuItemCategory
|
from src.ezgg_lan_manager.types.CateringMenuItem import CateringMenuItemCategory
|
||||||
from src.ez_lan_manager.types.News import News
|
from src.ezgg_lan_manager.types.News import News
|
||||||
|
|
||||||
DEMO_USERS = [
|
DEMO_USERS = [
|
||||||
{"user_name": "manfred", "user_mail": "manfred@demomail.com", "password_clear_text": "manfred"}, # Gast
|
{"user_name": "manfred", "user_mail": "manfred@demomail.com", "password_clear_text": "manfred"}, # Gast
|
||||||
@ -185,9 +185,9 @@ async def run() -> None:
|
|||||||
|
|
||||||
await news_service.add_news(News(
|
await news_service.add_news(News(
|
||||||
news_id=None,
|
news_id=None,
|
||||||
title="Der EZ LAN Manager",
|
title="Der EZGG LAN Manager",
|
||||||
subtitle="Eine Software des EZ GG e.V.",
|
subtitle="Eine Software des EZ GG e.V.",
|
||||||
content="Dies ist eine WIP-Version des EZ LAN Managers. Diese Software soll uns helfen in Zukunft die LAN "
|
content="Dies ist eine WIP-Version des EZGG LAN Managers. Diese Software soll uns helfen in Zukunft die LAN "
|
||||||
"Parties des EZ GG e.V.'s zu organisieren. Wer Fehler findet darf sie behalten. (Oder er meldet "
|
"Parties des EZ GG e.V.'s zu organisieren. Wer Fehler findet darf sie behalten. (Oder er meldet "
|
||||||
"sie)",
|
"sie)",
|
||||||
author=user,
|
author=user,
|
||||||
@ -4,11 +4,11 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import Column, Component, event, Text, TextStyle, Button, Color, Revealer, Row, ProgressCircle, Link
|
from rio import Column, Component, event, Text, TextStyle, Button, Color, Revealer, Row, ProgressCircle, Link
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, AccountingService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, AccountingService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.Transaction import Transaction
|
from src.ezgg_lan_manager.types.Transaction import Transaction
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class AccountPage(Component):
|
class AccountPage(Component):
|
||||||
@ -4,8 +4,8 @@ from typing import * # type: ignore
|
|||||||
|
|
||||||
from rio import Component, event, Spacer, Card, Container, Column, Row, TextStyle, Color, Text, PageView, Button
|
from rio import Component, event, Spacer, Card, Container, Column, Row, TextStyle, Color, Text, PageView, Button
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, DatabaseService
|
from src.ezgg_lan_manager import ConfigurationService, DatabaseService
|
||||||
from src.ez_lan_manager.components.DesktopNavigation import DesktopNavigation
|
from src.ezgg_lan_manager.components.DesktopNavigation import DesktopNavigation
|
||||||
|
|
||||||
class BasePage(Component):
|
class BasePage(Component):
|
||||||
color = "secondary"
|
color = "secondary"
|
||||||
@ -58,7 +58,7 @@ class BasePage(Component):
|
|||||||
Row(
|
Row(
|
||||||
Spacer(grow_x=True, grow_y=False),
|
Spacer(grow_x=True, grow_y=False),
|
||||||
Card(
|
Card(
|
||||||
content=Text(f"EZ LAN Manager Version {self.session[ConfigurationService].APP_VERSION} © EZ GG e.V.", align_x=0.5, align_y=0.5, fill=self.session.theme.primary_color, style=TextStyle(font_size=0.5)),
|
content=Text(f"EZGG LAN Manager Version {self.session[ConfigurationService].APP_VERSION} © EZ GG e.V.", align_x=0.5, align_y=0.5, fill=self.session.theme.primary_color, style=TextStyle(font_size=0.5)),
|
||||||
color=self.session.theme.neutral_color,
|
color=self.session.theme.neutral_color,
|
||||||
corner_radius=(0, 0, 0.5, 0.5),
|
corner_radius=(0, 0, 0.5, 0.5),
|
||||||
grow_x=False,
|
grow_x=False,
|
||||||
@ -2,14 +2,14 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import Text, Column, TextStyle, Component, event, Button, Popup
|
from rio import Text, Column, TextStyle, Component, event, Button, Popup
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, TicketingService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, TicketingService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.components.TicketBuyCard import TicketBuyCard
|
from src.ezgg_lan_manager.components.TicketBuyCard import TicketBuyCard
|
||||||
from src.ez_lan_manager.services.AccountingService import InsufficientFundsError
|
from src.ezgg_lan_manager.services.AccountingService import InsufficientFundsError
|
||||||
from src.ez_lan_manager.services.TicketingService import TicketNotAvailableError, UserAlreadyHasTicketError
|
from src.ezgg_lan_manager.services.TicketingService import TicketNotAvailableError, UserAlreadyHasTicketError
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.Ticket import Ticket
|
from src.ezgg_lan_manager.types.Ticket import Ticket
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class BuyTicketPage(Component):
|
class BuyTicketPage(Component):
|
||||||
@ -2,12 +2,12 @@ from typing import Optional, Callable
|
|||||||
|
|
||||||
from rio import Column, Component, event, TextStyle, Text, Spacer, Revealer, SwitcherBar, SwitcherBarChangeEvent, ProgressCircle
|
from rio import Column, Component, event, TextStyle, Text, Spacer, Revealer, SwitcherBar, SwitcherBarChangeEvent, ProgressCircle
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, CateringService
|
from src.ezgg_lan_manager import ConfigurationService, CateringService
|
||||||
from src.ez_lan_manager.components.CateringSelectionItem import CateringSelectionItem
|
from src.ezgg_lan_manager.components.CateringSelectionItem import CateringSelectionItem
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.components.ShoppingCartAndOrders import ShoppingCartAndOrders
|
from src.ezgg_lan_manager.components.ShoppingCartAndOrders import ShoppingCartAndOrders
|
||||||
from src.ez_lan_manager.types.CateringMenuItem import CateringMenuItemCategory, CateringMenuItem
|
from src.ezgg_lan_manager.types.CateringMenuItem import CateringMenuItemCategory, CateringMenuItem
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
|
|
||||||
class CateringPage(Component):
|
class CateringPage(Component):
|
||||||
@ -3,10 +3,10 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import Text, Column, TextStyle, Component, event, TextInput, MultiLineTextInput, Row, Button
|
from rio import Text, Column, TextStyle, Component, event, TextInput, MultiLineTextInput, Row, Button
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, MailingService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, MailingService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class ContactPage(Component):
|
class ContactPage(Component):
|
||||||
@ -5,9 +5,9 @@ from typing import * # type: ignore
|
|||||||
|
|
||||||
from rio import Component, event, Spacer, Card, Container, Column, Row, TextStyle, Color, Text
|
from rio import Component, event, Spacer, Card, Container, Column, Row, TextStyle, Color, Text
|
||||||
|
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
|
|
||||||
class DbErrorPage(Component):
|
class DbErrorPage(Component):
|
||||||
@ -62,7 +62,7 @@ class DbErrorPage(Component):
|
|||||||
Row(
|
Row(
|
||||||
Spacer(grow_x=True, grow_y=False),
|
Spacer(grow_x=True, grow_y=False),
|
||||||
Card(
|
Card(
|
||||||
content=Text(f"EZ LAN Manager Version {self.session[ConfigurationService].APP_VERSION} © EZ GG e.V.", align_x=0.5, align_y=0.5, style=TextStyle(fill=self.session.theme.primary_color, font_size=0.5)),
|
content=Text(f"EZGG LAN Manager Version {self.session[ConfigurationService].APP_VERSION} © EZ GG e.V.", align_x=0.5, align_y=0.5, style=TextStyle(fill=self.session.theme.primary_color, font_size=0.5)),
|
||||||
color=self.session.theme.neutral_color,
|
color=self.session.theme.neutral_color,
|
||||||
corner_radius=(0, 0, 0.5, 0.5),
|
corner_radius=(0, 0, 0.5, 0.5),
|
||||||
grow_x=False,
|
grow_x=False,
|
||||||
@ -82,7 +82,7 @@ class DbErrorPage(Component):
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return Text(
|
return Text(
|
||||||
"Der EZ LAN Manager wird\nauf mobilen Endgeräten nur\nim Querformat unterstützt.\nBitte drehe dein Gerät.",
|
"Der EZGG LAN Manager wird\nauf mobilen Endgeräten nur\nim Querformat unterstützt.\nBitte drehe dein Gerät.",
|
||||||
align_x=0.5,
|
align_x=0.5,
|
||||||
align_y=0.5,
|
align_y=0.5,
|
||||||
style=TextStyle(fill=Color.from_hex("FFFFFF"), font_size=0.8)
|
style=TextStyle(fill=Color.from_hex("FFFFFF"), font_size=0.8)
|
||||||
@ -2,11 +2,11 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import Column, Component, event, Spacer
|
from rio import Column, Component, event, Spacer
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService
|
from src.ezgg_lan_manager import ConfigurationService, UserService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.components.UserEditForm import UserEditForm
|
from src.ezgg_lan_manager.components.UserEditForm import UserEditForm
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class EditProfilePage(Component):
|
class EditProfilePage(Component):
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from rio import Column, Component, event, TextStyle, Text, Revealer
|
from rio import Column, Component, event, TextStyle, Text, Revealer
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
FAQ: list[list[str]] = [
|
FAQ: list[list[str]] = [
|
||||||
["Wie melde ich mich für die LAN an?",
|
["Wie melde ich mich für die LAN an?",
|
||||||
@ -4,8 +4,8 @@ from random import choices
|
|||||||
from email_validator import validate_email, EmailNotValidError
|
from email_validator import validate_email, EmailNotValidError
|
||||||
from rio import Column, Component, event, Text, TextStyle, TextInput, TextInputChangeEvent, Button
|
from rio import Column, Component, event, Text, TextStyle, TextInput, TextInputChangeEvent, Button
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, MailingService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, MailingService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
|
|
||||||
class ForgotPasswordPage(Component):
|
class ForgotPasswordPage(Component):
|
||||||
@ -2,10 +2,10 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import Column, Component, event, TextStyle, Text, Button, Row, TextInput, Spacer, TextInputChangeEvent
|
from rio import Column, Component, event, TextStyle, Text, Button, Row, TextInput, Spacer, TextInputChangeEvent
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, TicketingService, SeatingService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, TicketingService, SeatingService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class GuestsPage(Component):
|
class GuestsPage(Component):
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from rio import Text, Column, TextStyle, Component, event, Link, Color
|
from rio import Text, Column, TextStyle, Component, event, Link, Color
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
|
|
||||||
class ImprintPage(Component):
|
class ImprintPage(Component):
|
||||||
@ -5,11 +5,11 @@ from typing import Optional, Callable
|
|||||||
|
|
||||||
from rio import Column, Component, event, TextStyle, Text, Spacer, PointerEvent, Button, Popup, Card, Row
|
from rio import Column, Component, event, TextStyle, Text, Spacer, PointerEvent, Button, Popup, Card, Row
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, CateringService, SeatingService, AccountingService
|
from src.ezgg_lan_manager import ConfigurationService, CateringService, SeatingService, AccountingService
|
||||||
from src.ez_lan_manager.components.CateringManagementOrderDisplay import CateringManagementOrderDisplay
|
from src.ezgg_lan_manager.components.CateringManagementOrderDisplay import CateringManagementOrderDisplay
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringOrder, CateringOrderStatus
|
from src.ezgg_lan_manager.types.CateringOrder import CateringOrder, CateringOrderStatus
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -5,11 +5,11 @@ from time import strptime
|
|||||||
|
|
||||||
from rio import Column, Component, event, TextStyle, Text
|
from rio import Column, Component, event, TextStyle, Text
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService
|
from src.ezgg_lan_manager import ConfigurationService, UserService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.components.NewsPost import EditableNewsPost
|
from src.ezgg_lan_manager.components.NewsPost import EditableNewsPost
|
||||||
from src.ez_lan_manager.services.NewsService import NewsService
|
from src.ezgg_lan_manager.services.NewsService import NewsService
|
||||||
from src.ez_lan_manager.types.News import News
|
from src.ezgg_lan_manager.types.News import News
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -2,8 +2,8 @@ import logging
|
|||||||
|
|
||||||
from rio import Column, Component, event, TextStyle, Text, Spacer
|
from rio import Column, Component, event, TextStyle, Text, Spacer
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -6,14 +6,14 @@ from rio import Column, Component, event, TextStyle, Text, TextInput, ThemeConte
|
|||||||
PointerEventListener, PointerEvent, Rectangle, CursorStyle, Color, TextInputChangeEvent, Spacer, Row, Switch, \
|
PointerEventListener, PointerEvent, Rectangle, CursorStyle, Color, TextInputChangeEvent, Spacer, Row, Switch, \
|
||||||
SwitchChangeEvent, EventHandler
|
SwitchChangeEvent, EventHandler
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, AccountingService, SeatingService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, AccountingService, SeatingService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.components.NewTransactionForm import NewTransactionForm
|
from src.ezgg_lan_manager.components.NewTransactionForm import NewTransactionForm
|
||||||
from src.ez_lan_manager.components.UserEditForm import UserEditForm
|
from src.ezgg_lan_manager.components.UserEditForm import UserEditForm
|
||||||
from src.ez_lan_manager.services.AccountingService import InsufficientFundsError
|
from src.ezgg_lan_manager.services.AccountingService import InsufficientFundsError
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.Transaction import Transaction
|
from src.ezgg_lan_manager.types.Transaction import Transaction
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
from rio import Column, Component, event
|
from rio import Column, Component, event
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, NewsService
|
from src.ezgg_lan_manager import ConfigurationService, NewsService
|
||||||
from src.ez_lan_manager.components.NewsPost import NewsPost
|
from src.ezgg_lan_manager.components.NewsPost import NewsPost
|
||||||
from src.ez_lan_manager.types.News import News
|
from src.ezgg_lan_manager.types.News import News
|
||||||
|
|
||||||
|
|
||||||
class NewsPage(Component):
|
class NewsPage(Component):
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from rio import Column, Component, event, Text, Spacer, Row, Link
|
from rio import Column, Component, event, Text, Spacer, Row, Link
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, TicketingService
|
from src.ezgg_lan_manager import ConfigurationService, TicketingService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
|
|
||||||
class OverviewPage(Component):
|
class OverviewPage(Component):
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from rio import Column, Component, event
|
from rio import Column, Component, event
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.NewsPost import NewsPost
|
from src.ezgg_lan_manager.components.NewsPost import NewsPost
|
||||||
|
|
||||||
|
|
||||||
class PlaceholderPage(Component):
|
class PlaceholderPage(Component):
|
||||||
@ -3,9 +3,9 @@ import logging
|
|||||||
from email_validator import validate_email, EmailNotValidError
|
from email_validator import validate_email, EmailNotValidError
|
||||||
from rio import Column, Component, event, Text, TextStyle, TextInput, TextInputChangeEvent, Button
|
from rio import Column, Component, event, Text, TextStyle, TextInput, TextInputChangeEvent, Button
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, UserService, MailingService
|
from src.ezgg_lan_manager import ConfigurationService, UserService, MailingService
|
||||||
from src.ez_lan_manager.components.AnimatedText import AnimatedText
|
from src.ezgg_lan_manager.components.AnimatedText import AnimatedText
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
MINIMUM_PASSWORD_LENGTH = 6
|
MINIMUM_PASSWORD_LENGTH = 6
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from rio import Column, Component, event, TextStyle, Text, Revealer
|
from rio import Column, Component, event, TextStyle, Text, Revealer
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
RULES: list[str] = [
|
RULES: list[str] = [
|
||||||
"Respektvolles Verhalten: Sei höflich und respektvoll gegenüber anderen Gästen und dem Team.",
|
"Respektvolles Verhalten: Sei höflich und respektvoll gegenüber anderen Gästen und dem Team.",
|
||||||
@ -5,15 +5,15 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import Text, Column, TextStyle, Component, event, PressEvent, ProgressCircle
|
from rio import Text, Column, TextStyle, Component, event, PressEvent, ProgressCircle
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService, SeatingService, TicketingService, UserService
|
from src.ezgg_lan_manager import ConfigurationService, SeatingService, TicketingService, UserService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ez_lan_manager.components.SeatingPlan import SeatingPlan, SeatingPlanLegend
|
from src.ezgg_lan_manager.components.SeatingPlan import SeatingPlan, SeatingPlanLegend
|
||||||
from src.ez_lan_manager.components.SeatingPlanInfoBox import SeatingPlanInfoBox
|
from src.ezgg_lan_manager.components.SeatingPlanInfoBox import SeatingPlanInfoBox
|
||||||
from src.ez_lan_manager.components.SeatingPurchaseBox import SeatingPurchaseBox
|
from src.ezgg_lan_manager.components.SeatingPurchaseBox import SeatingPurchaseBox
|
||||||
from src.ez_lan_manager.services.SeatingService import NoTicketError, SeatNotFoundError, WrongCategoryError, SeatAlreadyTakenError
|
from src.ezgg_lan_manager.services.SeatingService import NoTicketError, SeatNotFoundError, WrongCategoryError, SeatAlreadyTakenError
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from rio import Column, Component, event, TextStyle, Text
|
from rio import Column, Component, event, TextStyle, Text
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
|
|
||||||
class PAGENAME(Component):
|
class PAGENAME(Component):
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from rio import Column, Component, event, TextStyle, Text
|
from rio import Column, Component, event, TextStyle, Text
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ezgg_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
|
|
||||||
|
|
||||||
class TournamentsPage(Component):
|
class TournamentsPage(Component):
|
||||||
@ -4,8 +4,8 @@ from datetime import datetime
|
|||||||
from decimal import Decimal, ROUND_DOWN
|
from decimal import Decimal, ROUND_DOWN
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager.types.Transaction import Transaction
|
from src.ezgg_lan_manager.types.Transaction import Transaction
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -3,12 +3,12 @@ from decimal import Decimal
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.ez_lan_manager.services.AccountingService import AccountingService
|
from src.ezgg_lan_manager.services.AccountingService import AccountingService
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager.services.UserService import UserService
|
from src.ezgg_lan_manager.services.UserService import UserService
|
||||||
from src.ez_lan_manager.services.ReceiptPrintingService import ReceiptPrintingService
|
from src.ezgg_lan_manager.services.ReceiptPrintingService import ReceiptPrintingService
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringOrder, CateringOrderStatus, CateringMenuItemsWithAmount
|
from src.ezgg_lan_manager.types.CateringOrder import CateringOrder, CateringOrderStatus, CateringMenuItemsWithAmount
|
||||||
from src.ez_lan_manager.types.CateringMenuItem import CateringMenuItem, CateringMenuItemCategory
|
from src.ezgg_lan_manager.types.CateringMenuItem import CateringMenuItem, CateringMenuItemCategory
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ import tomllib
|
|||||||
|
|
||||||
from from_root import from_root
|
from from_root import from_root
|
||||||
|
|
||||||
from src.ez_lan_manager.types.ConfigurationTypes import DatabaseConfiguration, MailingServiceConfiguration, LanInfo, \
|
from src.ezgg_lan_manager.types.ConfigurationTypes import DatabaseConfiguration, MailingServiceConfiguration, LanInfo, \
|
||||||
SeatingConfiguration, TicketInfo, ReceiptPrintingConfiguration
|
SeatingConfiguration, TicketInfo, ReceiptPrintingConfiguration
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
@ -6,15 +6,15 @@ from decimal import Decimal
|
|||||||
|
|
||||||
import aiomysql
|
import aiomysql
|
||||||
|
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringOrder
|
from src.ezgg_lan_manager.types.CateringOrder import CateringOrder
|
||||||
from src.ez_lan_manager.types.CateringMenuItem import CateringMenuItem, CateringMenuItemCategory
|
from src.ezgg_lan_manager.types.CateringMenuItem import CateringMenuItem, CateringMenuItemCategory
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringMenuItemsWithAmount, CateringOrderStatus
|
from src.ezgg_lan_manager.types.CateringOrder import CateringMenuItemsWithAmount, CateringOrderStatus
|
||||||
from src.ez_lan_manager.types.ConfigurationTypes import DatabaseConfiguration
|
from src.ezgg_lan_manager.types.ConfigurationTypes import DatabaseConfiguration
|
||||||
from src.ez_lan_manager.types.News import News
|
from src.ezgg_lan_manager.types.News import News
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
from src.ez_lan_manager.types.Ticket import Ticket
|
from src.ezgg_lan_manager.types.Ticket import Ticket
|
||||||
from src.ez_lan_manager.types.Transaction import Transaction
|
from src.ezgg_lan_manager.types.Transaction import Transaction
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -3,7 +3,7 @@ from typing import Optional
|
|||||||
|
|
||||||
from rio import UserSettings
|
from rio import UserSettings
|
||||||
|
|
||||||
from src.ez_lan_manager.types.SessionStorage import SessionStorage
|
from src.ezgg_lan_manager.types.SessionStorage import SessionStorage
|
||||||
|
|
||||||
|
|
||||||
class LocalData(UserSettings):
|
class LocalData(UserSettings):
|
||||||
@ -4,7 +4,7 @@ from asyncio import sleep
|
|||||||
|
|
||||||
import aiosmtplib
|
import aiosmtplib
|
||||||
|
|
||||||
from src.ez_lan_manager.services.ConfigurationService import ConfigurationService
|
from src.ezgg_lan_manager.services.ConfigurationService import ConfigurationService
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -2,8 +2,8 @@ import logging
|
|||||||
from datetime import date
|
from datetime import date
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager.types.News import News
|
from src.ezgg_lan_manager.types.News import News
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -2,10 +2,10 @@ import logging
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from src.ez_lan_manager.services.SeatingService import SeatingService
|
from src.ezgg_lan_manager.services.SeatingService import SeatingService
|
||||||
from src.ez_lan_manager.types.CateringOrder import CateringOrder
|
from src.ezgg_lan_manager.types.CateringOrder import CateringOrder
|
||||||
from src.ez_lan_manager.types.ConfigurationTypes import ReceiptPrintingConfiguration
|
from src.ezgg_lan_manager.types.ConfigurationTypes import ReceiptPrintingConfiguration
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
logging.getLogger("urllib3").setLevel(logging.FATAL) # Disable logging for urllib3
|
logging.getLogger("urllib3").setLevel(logging.FATAL) # Disable logging for urllib3
|
||||||
@ -2,10 +2,10 @@ import logging
|
|||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager.services.TicketingService import TicketingService
|
from src.ezgg_lan_manager.services.TicketingService import TicketingService
|
||||||
from src.ez_lan_manager.types.ConfigurationTypes import LanInfo, SeatingConfiguration
|
from src.ezgg_lan_manager.types.ConfigurationTypes import LanInfo, SeatingConfiguration
|
||||||
from src.ez_lan_manager.types.Seat import Seat
|
from src.ezgg_lan_manager.types.Seat import Seat
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -1,10 +1,10 @@
|
|||||||
import logging
|
import logging
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.ez_lan_manager.services.AccountingService import AccountingService, InsufficientFundsError
|
from src.ezgg_lan_manager.services.AccountingService import AccountingService, InsufficientFundsError
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager.types.ConfigurationTypes import TicketInfo
|
from src.ezgg_lan_manager.types.ConfigurationTypes import TicketInfo
|
||||||
from src.ez_lan_manager.types.Ticket import Ticket
|
from src.ezgg_lan_manager.types.Ticket import Ticket
|
||||||
|
|
||||||
logger = logging.getLogger(__name__.split(".")[-1])
|
logger = logging.getLogger(__name__.split(".")[-1])
|
||||||
|
|
||||||
@ -2,8 +2,8 @@ from hashlib import sha256
|
|||||||
from typing import Union, Optional
|
from typing import Union, Optional
|
||||||
from string import ascii_letters, digits
|
from string import ascii_letters, digits
|
||||||
|
|
||||||
from src.ez_lan_manager.services.DatabaseService import DatabaseService
|
from src.ezgg_lan_manager.services.DatabaseService import DatabaseService
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
class NameNotAllowedError(Exception):
|
class NameNotAllowedError(Exception):
|
||||||
@ -4,8 +4,8 @@ from decimal import Decimal
|
|||||||
from enum import StrEnum
|
from enum import StrEnum
|
||||||
from typing import Optional, Iterable, Self
|
from typing import Optional, Iterable, Self
|
||||||
|
|
||||||
from src.ez_lan_manager.types.CateringMenuItem import CateringMenuItem, CateringMenuItemCategory
|
from src.ezgg_lan_manager.types.CateringMenuItem import CateringMenuItem, CateringMenuItemCategory
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
CateringMenuItemsWithAmount = dict[CateringMenuItem, int]
|
CateringMenuItemsWithAmount = dict[CateringMenuItem, int]
|
||||||
|
|
||||||
@ -2,7 +2,7 @@ from dataclasses import dataclass
|
|||||||
from datetime import date
|
from datetime import date
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
@ -1,7 +1,7 @@
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
@ -2,7 +2,7 @@ from dataclasses import dataclass
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.ez_lan_manager.types.User import User
|
from src.ezgg_lan_manager.types.User import User
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
@ -3,8 +3,8 @@ from datetime import datetime
|
|||||||
from unittest.mock import MagicMock, AsyncMock
|
from unittest.mock import MagicMock, AsyncMock
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from src.ez_lan_manager.services.AccountingService import AccountingService, InsufficientFundsError
|
from src.ezgg_lan_manager.services.AccountingService import AccountingService, InsufficientFundsError
|
||||||
from src.ez_lan_manager.types.Transaction import Transaction
|
from src.ezgg_lan_manager.types.Transaction import Transaction
|
||||||
|
|
||||||
|
|
||||||
class AccountingServiceTests(unittest.IsolatedAsyncioTestCase):
|
class AccountingServiceTests(unittest.IsolatedAsyncioTestCase):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user