Compare commits
No commits in common. "dev" and "main" have entirely different histories.
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,7 +0,0 @@
|
|||||||
.idea
|
|
||||||
app/db.sqlite3
|
|
||||||
.env
|
|
||||||
logs
|
|
||||||
app/logs
|
|
||||||
app/checkpoint/migrations
|
|
||||||
app/users/migrations
|
|
||||||
@ -1,49 +0,0 @@
|
|||||||
repos:
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
rev: v4.2.0
|
|
||||||
hooks:
|
|
||||||
- id: trailing-whitespace # убирает лишние пробелы
|
|
||||||
- id: check-yaml # проверяет синтаксис .yaml файлов
|
|
||||||
- id: check-json # проверяет синтаксис .json файлов
|
|
||||||
exclude: launch.json
|
|
||||||
- id: check-case-conflict # проверяет файлы, которые могут конфликтовать в файловых системах без учета регистра.
|
|
||||||
- id: check-merge-conflict # проверяет файлы, содержащие конфликтные строки слияния.
|
|
||||||
- id: double-quote-string-fixer # заменяет " на '
|
|
||||||
- id: end-of-file-fixer # добавляет пустую строку в конце файла
|
|
||||||
|
|
||||||
# Отсортировывает импорты в проекте
|
|
||||||
- repo: https://github.com/pycqa/isort
|
|
||||||
rev: 5.12.0
|
|
||||||
hooks:
|
|
||||||
- id: isort
|
|
||||||
exclude: __init__.py
|
|
||||||
args: [ --profile, black, --filter-files ]
|
|
||||||
|
|
||||||
# Обновляет синтаксис Python кода в соответствии с последними версиями
|
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
|
||||||
rev: v2.31.1
|
|
||||||
hooks:
|
|
||||||
- id: pyupgrade
|
|
||||||
args: [ --py310-plus ]
|
|
||||||
|
|
||||||
# Форматирует код под PEP8
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-autopep8
|
|
||||||
rev: v2.0.1
|
|
||||||
hooks:
|
|
||||||
- id: autopep8
|
|
||||||
args: [ --max-line-length=120, --in-place ]
|
|
||||||
|
|
||||||
# Сканер стилистических ошибок, нарушающие договоренности PEP8
|
|
||||||
- repo: https://github.com/PyCQA/flake8
|
|
||||||
rev: 6.0.0
|
|
||||||
hooks:
|
|
||||||
- id: flake8
|
|
||||||
exclude: "app/project/settings.py"
|
|
||||||
args: [ "--ignore=E501,F821", "--max-line-length=120" ]
|
|
||||||
|
|
||||||
# Проверка статических типов с помощью mypy
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
||||||
rev: v0.991
|
|
||||||
hooks:
|
|
||||||
- id: mypy
|
|
||||||
exclude: 'migrations'
|
|
||||||
11
README.md
11
README.md
@ -1,11 +1,2 @@
|
|||||||
|
# diamond
|
||||||
|
|
||||||
### Описание
|
|
||||||
|
|
||||||
checkpoint - веб-приложение, часть системы автоматизированного КПП. Выполняет роль веб-интерфейса приложения
|
|
||||||
|
|
||||||
### Развертывание
|
|
||||||
|
|
||||||
1. `git clone http://git.hronos.su:8080/zakhy/checkpoint.git`
|
|
||||||
2. `mv example.env .env`
|
|
||||||
3. `nano .env`
|
|
||||||
4. `sudo docker compose up -d`
|
|
||||||
|
|||||||
@ -1,38 +0,0 @@
|
|||||||
###########
|
|
||||||
# BUILDER #
|
|
||||||
###########
|
|
||||||
|
|
||||||
FROM python:3.10 as builder
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends gcc
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
COPY ./requirements.txt .
|
|
||||||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -r requirements.txt
|
|
||||||
|
|
||||||
#########
|
|
||||||
# FINAL #
|
|
||||||
#########
|
|
||||||
|
|
||||||
FROM python:3.10
|
|
||||||
|
|
||||||
RUN mkdir -p /home/app
|
|
||||||
|
|
||||||
RUN addgroup --system app && adduser --system --group app
|
|
||||||
|
|
||||||
ENV HOME=/home/app
|
|
||||||
WORKDIR $HOME
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y libgl1-mesa-glx
|
|
||||||
COPY --from=builder /usr/src/app/wheels /wheels
|
|
||||||
COPY --from=builder /usr/src/app/requirements.txt .
|
|
||||||
RUN pip install --upgrade pip
|
|
||||||
RUN pip install --no-cache /wheels/*
|
|
||||||
|
|
||||||
COPY . $HOME
|
|
||||||
|
|
||||||
RUN chown -R app:app $HOME
|
|
||||||
|
|
||||||
USER app
|
|
||||||
Binary file not shown.
Binary file not shown.
69
api/main.py
69
api/main.py
@ -1,69 +0,0 @@
|
|||||||
from fastapi import FastAPI, WebSocket, WebSocketDisconnect
|
|
||||||
import asyncio
|
|
||||||
import time
|
|
||||||
import json
|
|
||||||
import requests
|
|
||||||
import os
|
|
||||||
|
|
||||||
app = FastAPI()
|
|
||||||
clients = set()
|
|
||||||
ml_service_active = False
|
|
||||||
web_addr = os.get
|
|
||||||
|
|
||||||
last_numbers = []
|
|
||||||
|
|
||||||
async def ai_data_processed(data):
|
|
||||||
global clients
|
|
||||||
global last_numbers
|
|
||||||
# Рассылка клиентам
|
|
||||||
data_loads = json.loads(data)
|
|
||||||
print(data_loads['numbers'])
|
|
||||||
for i in data_loads['numbers']:
|
|
||||||
last_numbers.append(i)
|
|
||||||
|
|
||||||
if len(last_numbers)>10:
|
|
||||||
requests.post()
|
|
||||||
|
|
||||||
|
|
||||||
for ws in list(clients):
|
|
||||||
try:
|
|
||||||
await ws.send_text(data)
|
|
||||||
except:
|
|
||||||
clients.remove(ws)
|
|
||||||
|
|
||||||
|
|
||||||
@app.websocket("/listen_channel")
|
|
||||||
async def listen_channel(websocket: WebSocket):
|
|
||||||
global clients
|
|
||||||
global last_numbers
|
|
||||||
await websocket.accept()
|
|
||||||
clients.add(websocket)
|
|
||||||
await websocket.send_text(json.dumps({'pts': '','content': [], 'numbers': last_numbers}))
|
|
||||||
try:
|
|
||||||
while True:
|
|
||||||
await asyncio.sleep(60)
|
|
||||||
except:
|
|
||||||
clients.remove(websocket)
|
|
||||||
|
|
||||||
|
|
||||||
@app.websocket("/ws_data")
|
|
||||||
async def ml_listen(websocket: WebSocket):
|
|
||||||
global ml_service_active
|
|
||||||
|
|
||||||
if ml_service_active:
|
|
||||||
await websocket.close()
|
|
||||||
return
|
|
||||||
|
|
||||||
await websocket.accept()
|
|
||||||
ws = websocket
|
|
||||||
ml_service_active = True
|
|
||||||
|
|
||||||
try:
|
|
||||||
while True:
|
|
||||||
data = await ws.receive_text()
|
|
||||||
await ws.send_text('ok')
|
|
||||||
await ai_data_processed(data)
|
|
||||||
except:
|
|
||||||
print("[ML WebSocket] Соединение прервано")
|
|
||||||
finally:
|
|
||||||
ml_service_active = False
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
fastapi
|
|
||||||
uvicorn[standard]
|
|
||||||
websockets
|
|
||||||
redis
|
|
||||||
tortoise-orm
|
|
||||||
asyncpg
|
|
||||||
requests
|
|
||||||
@ -1 +0,0 @@
|
|||||||
project/local_settings.py
|
|
||||||
@ -1,57 +0,0 @@
|
|||||||
###########
|
|
||||||
# BUILDER #
|
|
||||||
###########
|
|
||||||
|
|
||||||
# pull official base image
|
|
||||||
FROM python:3.10 as builder
|
|
||||||
|
|
||||||
# set work directory
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
# set environment variables
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
|
||||||
|
|
||||||
# install system dependencies
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends gcc
|
|
||||||
|
|
||||||
# install python dependencies
|
|
||||||
COPY ./requirements.txt .
|
|
||||||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -r requirements.txt
|
|
||||||
|
|
||||||
|
|
||||||
#########
|
|
||||||
# FINAL #
|
|
||||||
#########
|
|
||||||
|
|
||||||
# pull official base image
|
|
||||||
FROM python:3.10
|
|
||||||
|
|
||||||
# create directory for the app user
|
|
||||||
RUN mkdir -p /home/app
|
|
||||||
|
|
||||||
# create the app user
|
|
||||||
RUN addgroup --system app && adduser --system --group app
|
|
||||||
|
|
||||||
# create the appropriate directories
|
|
||||||
ENV HOME=/home/app
|
|
||||||
ENV APP_HOME=/home/app/web
|
|
||||||
RUN mkdir $APP_HOME
|
|
||||||
RUN mkdir $APP_HOME/static
|
|
||||||
WORKDIR $APP_HOME
|
|
||||||
|
|
||||||
# install dependencies
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends netcat-traditional
|
|
||||||
RUN apt-get update && apt-get install -y libgl1-mesa-glx
|
|
||||||
COPY --from=builder /usr/src/app/wheels /wheels
|
|
||||||
COPY --from=builder /usr/src/app/requirements.txt .
|
|
||||||
RUN pip install --upgrade pip
|
|
||||||
RUN pip install --no-cache /wheels/*
|
|
||||||
|
|
||||||
# copy project
|
|
||||||
COPY . $APP_HOME
|
|
||||||
|
|
||||||
RUN chown -R app:app $APP_HOME
|
|
||||||
|
|
||||||
USER app
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,16 +0,0 @@
|
|||||||
from checkpoint.models.checkpoint_pass import CheckpointPass
|
|
||||||
from checkpoint.models.entrance import Entrance
|
|
||||||
from django.contrib import admin
|
|
||||||
|
|
||||||
|
|
||||||
@admin.register(CheckpointPass)
|
|
||||||
class CheckpointPassAdmin(admin.ModelAdmin):
|
|
||||||
list_display = ('car', 'pass_start', 'pass_end')
|
|
||||||
|
|
||||||
def car(self, obj: CheckpointPass):
|
|
||||||
return f'{obj.car_registration_number} {obj.car_manufacturer} {obj.car_model}'
|
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Entrance)
|
|
||||||
class EntranceAdmin(admin.ModelAdmin):
|
|
||||||
list_display = ('date_in', 'car_registration_number')
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +0,0 @@
|
|||||||
from rest_framework import serializers
|
|
||||||
from checkpoint.models.ai_events import AiEvents
|
|
||||||
|
|
||||||
class AiEventSerializer(serializers.ModelSerializer):
|
|
||||||
class Meta:
|
|
||||||
model = AiEvents
|
|
||||||
fields = ['pts', 'plate_number', 'car', 'plate']
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
from checkpoint.api.views import get_passes, add_entrances
|
|
||||||
from django.urls import path
|
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
path('passes/', get_passes, name='get_passes'),
|
|
||||||
path('add_entrance/', add_entrances, name='add_entrance')
|
|
||||||
]
|
|
||||||
@ -1,66 +0,0 @@
|
|||||||
import json
|
|
||||||
from json import JSONDecodeError
|
|
||||||
|
|
||||||
from checkpoint.models.checkpoint_pass import CheckpointPass
|
|
||||||
from checkpoint.models.entrance import Entrance
|
|
||||||
from checkpoint.models.ai_events import AiEvents
|
|
||||||
from django.http import HttpResponse, JsonResponse
|
|
||||||
from django.utils import timezone
|
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
|
||||||
from project.generics.base_view import base_view
|
|
||||||
from project.generics.get_current_time import get_current_time
|
|
||||||
import os
|
|
||||||
import redis
|
|
||||||
from django.core.paginator import Paginator
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
|
|
||||||
@base_view
|
|
||||||
def get_passes(request):
|
|
||||||
passes = CheckpointPass.objects.values(
|
|
||||||
'id',
|
|
||||||
'car_manufacturer',
|
|
||||||
'car_model',
|
|
||||||
'car_registration_number',
|
|
||||||
'pass_start',
|
|
||||||
'pass_end'
|
|
||||||
)
|
|
||||||
res = []
|
|
||||||
for item in passes:
|
|
||||||
res.append({
|
|
||||||
'id': str(item['id']),
|
|
||||||
'car': f'{item["car_registration_number"]} {item["car_manufacturer"]} {item["car_model"]}',
|
|
||||||
'pass_start': item['pass_start'],
|
|
||||||
'pass_end': item['pass_end']
|
|
||||||
|
|
||||||
})
|
|
||||||
return JsonResponse(res, safe=False)
|
|
||||||
|
|
||||||
|
|
||||||
@base_view
|
|
||||||
@csrf_exempt
|
|
||||||
def add_entrances(request):
|
|
||||||
if request.method != 'POST':
|
|
||||||
return JsonResponse({'error': 'Только POST-запросы'}, status=405)
|
|
||||||
|
|
||||||
try:
|
|
||||||
data = json.loads(request.body)
|
|
||||||
if not isinstance(data, list):
|
|
||||||
return JsonResponse({'error': 'Ожидается список объектов'}, status=400)
|
|
||||||
|
|
||||||
for item in data:
|
|
||||||
car_number = item.get('car')
|
|
||||||
timestamp_str = item.get('date_in')
|
|
||||||
|
|
||||||
date_in = datetime.strptime(timestamp_str, '%Y-%m-%d %H:%M:%S')
|
|
||||||
Entrance.objects.create(
|
|
||||||
car_registration_number=car_number,
|
|
||||||
date_in=date_in
|
|
||||||
)
|
|
||||||
|
|
||||||
return JsonResponse({'status': 'ok'})
|
|
||||||
|
|
||||||
except json.JSONDecodeError:
|
|
||||||
return JsonResponse({'error': 'Неверный JSON'}, status=400)
|
|
||||||
except Exception as e:
|
|
||||||
return JsonResponse({'error': str(e)}, status=500)
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
from django.apps import AppConfig
|
|
||||||
|
|
||||||
|
|
||||||
class CheckpointConfig(AppConfig):
|
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
|
||||||
name = 'checkpoint'
|
|
||||||
|
|
||||||
def ready(self):
|
|
||||||
import checkpoint.signals.processed_data_from_ai
|
|
||||||
|
|
||||||
@ -1,38 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"model": "checkpoint.entrance",
|
|
||||||
"pk": 2,
|
|
||||||
"fields": {
|
|
||||||
"checkpoint_pass": 1,
|
|
||||||
"date_in": "2024-08-21T14:33:40.544",
|
|
||||||
"date_out": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.entrance",
|
|
||||||
"pk": 3,
|
|
||||||
"fields": {
|
|
||||||
"checkpoint_pass": 2,
|
|
||||||
"date_in": "2024-08-22T15:40:12.123",
|
|
||||||
"date_out": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.entrance",
|
|
||||||
"pk": 4,
|
|
||||||
"fields": {
|
|
||||||
"checkpoint_pass": 3,
|
|
||||||
"date_in": "2024-08-23T16:55:33.567",
|
|
||||||
"date_out": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.entrance",
|
|
||||||
"pk": 5,
|
|
||||||
"fields": {
|
|
||||||
"checkpoint_pass": 4,
|
|
||||||
"date_in": "2024-08-24T10:20:45.890",
|
|
||||||
"date_out": null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@ -1,123 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 1,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "BMW",
|
|
||||||
"car_model": "X5",
|
|
||||||
"car_registration_number": "А444АА42",
|
|
||||||
"pass_start": "2024-08-21",
|
|
||||||
"pass_end": "2025-02-01"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 2,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Audi",
|
|
||||||
"car_model": "Q7",
|
|
||||||
"car_registration_number": "В555ВВ43",
|
|
||||||
"pass_start": "2024-08-22",
|
|
||||||
"pass_end": "2025-02-02"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 3,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Mercedes-Benz",
|
|
||||||
"car_model": "GLE",
|
|
||||||
"car_registration_number": "С666СС44",
|
|
||||||
"pass_start": "2024-08-23",
|
|
||||||
"pass_end": "2025-02-03"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 4,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Toyota",
|
|
||||||
"car_model": "Land Cruiser",
|
|
||||||
"car_registration_number": "D777DD45",
|
|
||||||
"pass_start": "2024-08-24",
|
|
||||||
"pass_end": "2025-02-04"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 5,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Tesla",
|
|
||||||
"car_model": "Model X",
|
|
||||||
"car_registration_number": "E888EE46",
|
|
||||||
"pass_start": "2024-08-25",
|
|
||||||
"pass_end": "2025-02-05"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 6,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Lexus",
|
|
||||||
"car_model": "RX",
|
|
||||||
"car_registration_number": "F999FF47",
|
|
||||||
"pass_start": "2024-08-26",
|
|
||||||
"pass_end": "2025-02-06"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 7,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Volkswagen",
|
|
||||||
"car_model": "Touareg",
|
|
||||||
"car_registration_number": "G000GG48",
|
|
||||||
"pass_start": "2024-08-27",
|
|
||||||
"pass_end": "2025-02-07"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 8,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Range Rover",
|
|
||||||
"car_model": "Vogue",
|
|
||||||
"car_registration_number": "H111HH49",
|
|
||||||
"pass_start": "2024-08-28",
|
|
||||||
"pass_end": "2025-02-08"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 9,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Porsche",
|
|
||||||
"car_model": "Cayenne",
|
|
||||||
"car_registration_number": "I222II50",
|
|
||||||
"pass_start": "2024-08-29",
|
|
||||||
"pass_end": "2025-02-09"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 10,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Maserati",
|
|
||||||
"car_model": "Levante",
|
|
||||||
"car_registration_number": "J333JJ51",
|
|
||||||
"pass_start": "2024-08-30",
|
|
||||||
"pass_end": "2025-02-10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "checkpoint.checkpointpass",
|
|
||||||
"pk": 11,
|
|
||||||
"fields": {
|
|
||||||
"car_manufacturer": "Jaguar",
|
|
||||||
"car_model": "F-Pace",
|
|
||||||
"car_registration_number": "K444KK52",
|
|
||||||
"pass_start": "2024-08-31",
|
|
||||||
"pass_end": "2025-02-11"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,26 +0,0 @@
|
|||||||
from datetime import timedelta
|
|
||||||
|
|
||||||
from django.db import models
|
|
||||||
from django.utils import timezone
|
|
||||||
|
|
||||||
class AiEvents(models.Model):
|
|
||||||
"""
|
|
||||||
Модель событий системы для отрисовки данных от нейронки
|
|
||||||
pts - временная метка в секундах
|
|
||||||
plate_number - распознанный номер
|
|
||||||
car - json объект рамки автомобиля
|
|
||||||
plate - json щбъект рамки номера
|
|
||||||
"""
|
|
||||||
pts = models.FloatField(verbose_name='Временная метка (секунды)')
|
|
||||||
json = models.JSONField(verbose_name='Зафиксированные объекты')
|
|
||||||
plates = models.JSONField(verbose_name='Номерные знаки', blank=True, null=True)
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
verbose_name = 'Событие'
|
|
||||||
verbose_name_plural = 'События'
|
|
||||||
indexes = (
|
|
||||||
models.Index(fields=['pts']),
|
|
||||||
)
|
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return f'{self.pts}'
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
from datetime import timedelta
|
|
||||||
|
|
||||||
from django.db import models
|
|
||||||
from django.utils import timezone
|
|
||||||
|
|
||||||
|
|
||||||
def calculate_default_pass_end_value():
|
|
||||||
return timezone.now() + timedelta(hours=24)
|
|
||||||
|
|
||||||
|
|
||||||
class CheckpointPass(models.Model):
|
|
||||||
"""
|
|
||||||
Модель пропуска через КПП.
|
|
||||||
|
|
||||||
car_manufacturer - хранит марку автомобиля
|
|
||||||
car_model - хранит модель автомобиля
|
|
||||||
car_registration_number - хранит госномер автомобиля
|
|
||||||
pass_start - хранит начало действия пропуска (по умолчанию текущее время)
|
|
||||||
pass_end - хранит конец срока действия пропуска
|
|
||||||
(по умолчанию текущее время + 24 часа - на случай если пропуск разовый)
|
|
||||||
"""
|
|
||||||
car_manufacturer = models.CharField(max_length=128, blank=True)
|
|
||||||
car_model = models.CharField(max_length=128, blank=True)
|
|
||||||
car_registration_number = models.CharField(max_length=10)
|
|
||||||
pass_start = models.DateField(default=timezone.now)
|
|
||||||
pass_end = models.DateField(default=calculate_default_pass_end_value)
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
verbose_name = 'Пропуск'
|
|
||||||
verbose_name_plural = 'Пропуски'
|
|
||||||
indexes = (
|
|
||||||
models.Index(fields=['car_registration_number']),
|
|
||||||
models.Index(fields=['pass_start', 'pass_end'])
|
|
||||||
)
|
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return f'{self.car_registration_number}: {self.pass_start}:{self.pass_end}'
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
from checkpoint.models.checkpoint_pass import CheckpointPass
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
|
|
||||||
class Entrance(models.Model):
|
|
||||||
"""
|
|
||||||
Модель въезда через КПП. Отображает время въезда и выезда.
|
|
||||||
checkpoint_pass - хранит ссылку на id пропуска
|
|
||||||
date_in - хранит время въезда
|
|
||||||
date_out - хранит время выезда
|
|
||||||
"""
|
|
||||||
date_in = models.DateTimeField(blank=True, null=True)
|
|
||||||
car_registration_number = models.CharField(max_length=10)
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
verbose_name = 'Въезд'
|
|
||||||
verbose_name_plural = 'Въезды'
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,39 +0,0 @@
|
|||||||
from django.db.models.signals import post_save
|
|
||||||
from django.dispatch import receiver
|
|
||||||
from threading import Thread
|
|
||||||
from django.db import connection
|
|
||||||
from checkpoint.models.ai_events import AiEvents
|
|
||||||
|
|
||||||
def background_processing(log_id):
|
|
||||||
from checkpoint.models.ai_events import AiEvents
|
|
||||||
from checkpoint.models.checkpoint_pass import CheckpointPass
|
|
||||||
from checkpoint.models.entrance import Entrance
|
|
||||||
try:
|
|
||||||
event = AiEvents.objects.get(id=log_id)
|
|
||||||
# Здесь твоя логика обработки
|
|
||||||
# checkpoint_pass = CheckpointPass.objects.filter(
|
|
||||||
# car_registration_number=event.plate_number).first() # ищу объект пропуска, по номеру автомобиля
|
|
||||||
# if checkpoint_pass:
|
|
||||||
# # ищу объект въезда, на случай, если автомобиль выезжает
|
|
||||||
# entry = Entrance.objects.get_or_create(checkpoint_pass=checkpoint_pass, date_out=None)
|
|
||||||
# if entry[1]: # значит объект создан, значит автомобиль въехал
|
|
||||||
# entry[0].date_in = get_current_time()
|
|
||||||
# entry[0].save()
|
|
||||||
# message = 'car_in'
|
|
||||||
# # Место для кода, который будет поднимать шлагбаум
|
|
||||||
# else:
|
|
||||||
# entry[0].date_out = get_current_time()
|
|
||||||
# entry[0].save()
|
|
||||||
# message = 'car_out'
|
|
||||||
# # Место для кода, который будет поднимать шлагбаум
|
|
||||||
# return JsonResponse({'success': True, 'message': message})
|
|
||||||
# return JsonResponse({'success': True, 'message': "car with this sign haven't a pass"})
|
|
||||||
|
|
||||||
finally:
|
|
||||||
connection.close()
|
|
||||||
|
|
||||||
@receiver(post_save, sender=AiEvents)
|
|
||||||
def handle_new_log(sender, instance, created, **kwargs):
|
|
||||||
if created:
|
|
||||||
pass
|
|
||||||
# Thread(target=background_processing, args=(instance.id,)).start()
|
|
||||||
@ -1,105 +0,0 @@
|
|||||||
{% extends 'metronic_base.html' %}
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
|
|
||||||
{% block container %}
|
|
||||||
<div class="card card-flush mt-5">
|
|
||||||
<!-- <div class="card-header"></div> -->
|
|
||||||
<div class="card-body pt-0">
|
|
||||||
<div class="row g-5">
|
|
||||||
<!-- Камера -->
|
|
||||||
<div class="col-xl-6">
|
|
||||||
<div class="d-flex flex-column h-100">
|
|
||||||
<div class="d-flex mb-5">
|
|
||||||
<div class="btn-group">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-body p-0 position-relative overflow-hidden">
|
|
||||||
<video id="videoElement" autoplay muted playsinline class="w-100 h-100 object-fit-cover"></video>
|
|
||||||
<canvas id="overlayCanvas" class="position-absolute top-0 start-0 w-100 h-100" style="pointer-events:none;"></canvas>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Распознавание номеров -->
|
|
||||||
<div class="col-xl-6">
|
|
||||||
<div class="d-flex flex-column h-100">
|
|
||||||
<div id="alerts" class="mb-5"></div>
|
|
||||||
|
|
||||||
<div class="d-flex justify-content-between align-items-center mb-5">
|
|
||||||
<button type="button"
|
|
||||||
onclick="fetch('{{gate_open}}', {method: 'POST'})"
|
|
||||||
class="btn btn-success">
|
|
||||||
<i class="bi bi-bar-chart-line-fill me-2"></i>Поднять шлагбаум
|
|
||||||
</button>
|
|
||||||
<div class="menu-item px-5">
|
|
||||||
<a href="{% url 'checkpoint:reports' %}" class="btn btn-sm btn-flex btn-primary px-4">
|
|
||||||
Отчеты
|
|
||||||
</a>
|
|
||||||
<a href="{% url 'checkpoint:history' %}" class="btn btn-sm btn-flex btn-primary px-4">
|
|
||||||
История
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="card card-flush">
|
|
||||||
<div class="card-body p-0">
|
|
||||||
<table id="checkpointTable" class="table align-middle table-row-dashed fs-6 gy-5">
|
|
||||||
<thead>
|
|
||||||
<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
|
|
||||||
<th class="min-w-125px">Автомобиль</th>
|
|
||||||
<th class="min-w-125px">Дата въезда</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<!-- <tbody class="fw-semibold text-gray-600"></tbody> -->
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_script %}
|
|
||||||
<script src="{% static 'checkpoint/js/init_table.js' %}"></script>
|
|
||||||
<script src="{% static 'checkpoint/js/table_kit.js' %}"></script>
|
|
||||||
<script src="{% static 'checkpoint/js/ws_event_manager.js' %}"></script>
|
|
||||||
<!-- <script src="{% static 'checkpoint/js/overlay.js' %}"></script> -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
window.streamActive = false;
|
|
||||||
const ORIGINAL_WIDTH = {{ width }};
|
|
||||||
const ORIGINAL_HEIGHT = {{ height }};
|
|
||||||
const IFRAME_SRC = "{{ iframe_src }}";
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
|
||||||
setupCheckpointTable();
|
|
||||||
addToCheckpointTable(JSON.parse('{{ table_data|escapejs }}'));
|
|
||||||
connectWebSocket("{{ web_socket }}");
|
|
||||||
// initOverlay();
|
|
||||||
});
|
|
||||||
|
|
||||||
// function loadHLSStream() {
|
|
||||||
// if (window.hlsLoaded) return;
|
|
||||||
// window.hlsLoaded = true;
|
|
||||||
|
|
||||||
// const video = document.getElementById('videoElement');
|
|
||||||
// const hls = new Hls();
|
|
||||||
// hls.loadSource("{{ iframe_src }}");
|
|
||||||
// hls.attachMedia(video);
|
|
||||||
// }
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <script src="{% static 'checkpoint/datatables/metronic_checkpoint.js' %}"></script> -->
|
|
||||||
<!-- <script src="{% static 'checkpoint/datatables/overlay.js' %}"></script> -->
|
|
||||||
<!-- <script src="{% static 'checkpoint/datatables/video.js' %}"></script> -->
|
|
||||||
{% endblock %}
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
{% extends 'base.html' %}
|
|
||||||
{% load static %}
|
|
||||||
{% block container %}
|
|
||||||
<div class="row m-3">
|
|
||||||
<div class="d-flex justify-content-between">
|
|
||||||
<div class="d-flex align-items-center">
|
|
||||||
<h1>Список пропусков</h1>
|
|
||||||
</div>
|
|
||||||
<div class="d-flex align-items-center">
|
|
||||||
<button type="button" class="btn btn-success">Создать пропуск</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row m-3">
|
|
||||||
<div class="col-12">
|
|
||||||
<table id="operatorTable" class="table table-bordered table-striped dataTable dtr-inline"
|
|
||||||
aria-describedby="operatorTable_info" style="width:100%">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Номер пропуска</th>
|
|
||||||
<th>Автомобиль</th>
|
|
||||||
<th>Дата выдачи</th>
|
|
||||||
<th>Дата истечения</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_script %}
|
|
||||||
<script src="{% static 'checkpoint/datatables/operator.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
@ -1,83 +0,0 @@
|
|||||||
{% extends 'metronic_base.html' %}
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block container %}
|
|
||||||
<div class="bg-white py-4 px-4 mt-5 mb-2 shadow-sm rounded">
|
|
||||||
<nav aria-label="breadcrumb">
|
|
||||||
<ol class="breadcrumb fw-semibold fs-6 mb-0">
|
|
||||||
<li class="breadcrumb-item">
|
|
||||||
<a href="{% url 'checkpoint:checkpoint_view' %}" class="text-gray-400">Главная</a>
|
|
||||||
</li>
|
|
||||||
<li class="breadcrumb-item active text-primary" aria-current="page">
|
|
||||||
Отчеты
|
|
||||||
</li>
|
|
||||||
</ol>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="d-flex justify-content-between align-items-center mt-5 mb-4">
|
|
||||||
<h3>Отчеты</h3>
|
|
||||||
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#createReportModal">
|
|
||||||
Создать отчет
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row g-4">
|
|
||||||
{% for report in reports %}
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="card shadow-sm h-100">
|
|
||||||
<div class="card-body d-flex align-items-center">
|
|
||||||
<div class="me-3">
|
|
||||||
<i class="bi bi-file-earmark-text fs-2 text-primary"></i>
|
|
||||||
</div>
|
|
||||||
<div class="flex-grow-1">
|
|
||||||
<h5 class="mb-1">Отчет №{{ report.number }}</h5>
|
|
||||||
<p class="mb-0 text-muted">Период: {{ report.start_date }} — {{ report.end_date }}</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<a href="" class="btn btn-sm btn-outline-primary" download>
|
|
||||||
Скачать
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% empty %}
|
|
||||||
<p class="text-muted">Отчеты отсутствуют.</p>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Модальное окно создания отчета -->
|
|
||||||
<div class="modal fade" id="createReportModal" tabindex="-1" aria-labelledby="createReportModalLabel" aria-hidden="true">
|
|
||||||
<div class="modal-dialog modal-dialog-centered">
|
|
||||||
<form method="post" action="" class="modal-content">
|
|
||||||
{% csrf_token %}
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" id="createReportModalLabel">Создать новый отчет</h5>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="start_date" class="form-label">Дата начала</label>
|
|
||||||
<input type="date" class="form-control" id="start_date" name="start_date" required>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="end_date" class="form-label">Дата конца</label>
|
|
||||||
<input type="date" class="form-control" id="end_date" name="end_date" required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="submit" class="btn btn-primary">Создать</button>
|
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Отмена</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_script %}
|
|
||||||
<script>
|
|
||||||
// Здесь при необходимости можно добавить JS для формы или валидации
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
{% extends 'metronic_base.html' %}
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block container %}
|
|
||||||
|
|
||||||
<div class="bg-white py-4 px-4 mt-5 mb-2 shadow-sm rounded">
|
|
||||||
<nav aria-label="breadcrumb">
|
|
||||||
<ol class="breadcrumb fw-semibold fs-6 mb-0">
|
|
||||||
<li class="breadcrumb-item">
|
|
||||||
<a href="{% url 'checkpoint:checkpoint_view' %}" class="text-gray-400">Главная</a>
|
|
||||||
</li>
|
|
||||||
<li class="breadcrumb-item active text-primary" aria-current="page">
|
|
||||||
История проездов
|
|
||||||
</li>
|
|
||||||
</ol>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="card card-flush mt-5">
|
|
||||||
<div class="card-body pt-0">
|
|
||||||
<div class="d-flex flex-column h-100">
|
|
||||||
<div id="alerts" class="mb-5"></div>
|
|
||||||
<div class="card card-flush">
|
|
||||||
<div class="card-body p-0">
|
|
||||||
<table id="checkpointTable" class="table align-middle table-row-dashed fs-6 gy-5">
|
|
||||||
<thead>
|
|
||||||
<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
|
|
||||||
<th class="min-w-125px">Автомобиль</th>
|
|
||||||
<th class="min-w-125px">Дата въезда</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<!-- <tbody class="fw-semibold text-gray-600"></tbody> -->
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_script %}
|
|
||||||
<script src="{% static 'checkpoint/js/init_table.js' %}"></script>
|
|
||||||
<script src="{% static 'checkpoint/js/table_kit.js' %}"></script>
|
|
||||||
<script>
|
|
||||||
const isHistoryPage = true;
|
|
||||||
$(document).ready(function () {
|
|
||||||
setupCheckpointTable(isHistoryPage);
|
|
||||||
addToCheckpointTable(JSON.parse('{{ table_data|escapejs }}'));
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
{% extends 'base.html' %}
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block container %}
|
|
||||||
<div class="cam-container">
|
|
||||||
<iframe
|
|
||||||
src="http://192.168.31.56:8888/cam/?controls=0"
|
|
||||||
width="100%"
|
|
||||||
height="100%"
|
|
||||||
frameborder="0"
|
|
||||||
allow="autoplay"
|
|
||||||
></iframe>
|
|
||||||
<canvas id="overlayCanvas" class="position-absolute" style="top:0; left:0; width:100%; height:100%; pointer-events:none;"></canvas>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_script %}
|
|
||||||
<script src="{% static 'checkpoint/datatables/checkpoint.js' %}"></script>
|
|
||||||
<script src="{% static 'checkpoint/js/checkpoint_overlay.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
@ -1,120 +0,0 @@
|
|||||||
{% load static %}
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="viewport"
|
|
||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
||||||
<link type="image/x-icon" href="{% static 'checkpoint/img/logo.png' %}" rel="shortcut icon">
|
|
||||||
<link type="Image/x-icon" href="{% static 'checkpoint/img/logo.png' %}" rel="icon">
|
|
||||||
{% block style %}
|
|
||||||
<link href="{% static 'assets/plugins/global/plugins.bundle.css' %}" rel="stylesheet" type="text/css">
|
|
||||||
<link href="{% static 'assets/css/style.bundle.css' %}" rel="stylesheet" type="text/css">
|
|
||||||
<link href="{% static 'checkpoint/css/style.css' %}" rel="stylesheet" type="text/css">
|
|
||||||
<!-- <link rel="stylesheet" href="{% static 'libraries/bootstrap/css/bootstrap.min.css' %}">
|
|
||||||
<link rel="stylesheet" href="{% static 'checkpoint/css/style.css' %}"> -->
|
|
||||||
{% endblock %}
|
|
||||||
{% block datatables_css %}
|
|
||||||
<!-- <link rel="stylesheet"
|
|
||||||
href="{% static 'libraries/datatables/datatables-bs4/css/dataTables.bootstrap4.min.css' %}">
|
|
||||||
<link rel="stylesheet"
|
|
||||||
href="{% static 'libraries/datatables/datatables-buttons/css/buttons.bootstrap4.min.css' %}">
|
|
||||||
<link rel="stylesheet"
|
|
||||||
href="{% static 'libraries/datatables/datatables-responsive/css/responsive.bootstrap4.min.css' %}"> -->
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
{% block extra_style %}{% endblock %}
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
|
|
||||||
<title>{% block title %}Система контроля пропусков{% endblock %}</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body class="header-fixed">
|
|
||||||
{% block navbar %}
|
|
||||||
<!--begin::Header-->
|
|
||||||
<div id="kt_header" class="header align-items-stretch">
|
|
||||||
<!--begin::Container-->
|
|
||||||
<div class="container-fluid d-flex align-items-stretch justify-content-between">
|
|
||||||
<!--begin::Logo-->
|
|
||||||
<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0 me-lg-15">
|
|
||||||
<a href="#">
|
|
||||||
<img alt="Logo" src="{% static 'checkpoint/img/logo.png' %}" class="h-30px" />
|
|
||||||
<span class="text-gray-900 fs-4 fw-bold ms-3">Система контроля пропусков</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<!--end::Logo-->
|
|
||||||
|
|
||||||
<!--begin::Navbar-->
|
|
||||||
<div class="d-flex align-items-stretch justify-content-between flex-lg-grow-1">
|
|
||||||
<!--begin::Menu wrapper-->
|
|
||||||
<div class="d-flex align-items-stretch" id="kt_header_nav">
|
|
||||||
<!-- Здесь можно добавить меню -->
|
|
||||||
</div>
|
|
||||||
<!--end::Menu wrapper-->
|
|
||||||
|
|
||||||
<!--begin::Topbar-->
|
|
||||||
<div class="d-flex align-items-stretch flex-shrink-0">
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<!--begin::User-->
|
|
||||||
<div class="d-flex align-items-center ms-3">
|
|
||||||
<!--end::Menu item-->
|
|
||||||
|
|
||||||
<!--begin::Menu separator-->
|
|
||||||
<div class="separator my-2"></div>
|
|
||||||
<!--end::Menu separator-->
|
|
||||||
|
|
||||||
<!--begin::Menu item-->
|
|
||||||
<div class="menu-item px-5">
|
|
||||||
<a href="{% url 'users:logout' %}" class="btn btn-sm btn-flex btn-light-danger px-4">
|
|
||||||
Выход
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<!--end::Menu item-->
|
|
||||||
</div>
|
|
||||||
<!--end::Menu-->
|
|
||||||
<!--end::Menu wrapper-->
|
|
||||||
</div>
|
|
||||||
<!--end::User -->
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<!--end::Topbar-->
|
|
||||||
</div>
|
|
||||||
<!--end::Navbar-->
|
|
||||||
</div>
|
|
||||||
<!--end::Container-->
|
|
||||||
</div>
|
|
||||||
<!--end::Header-->
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="container-fluid pt-20">
|
|
||||||
{% block container %}{% endblock %}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block script %}
|
|
||||||
<script src="{% static 'libraries/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
|
|
||||||
|
|
||||||
<script src="{% static 'libraries/jquery/jquery/jquery.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/jquery/jquery-ui/jquery-ui.min.js' %}"></script>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
{% block datatables_js %}
|
|
||||||
<script src="{% static 'libraries/datatables/datatables/jquery.dataTables.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-bs4/js/dataTables.bootstrap4.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-responsive/js/dataTables.responsive.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-responsive/js/responsive.bootstrap4.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-buttons/js/dataTables.buttons.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-buttons/js/buttons.bootstrap4.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-buttons/js/buttons.html5.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-buttons/js/buttons.print.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/datatables-buttons/js/buttons.colVis.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/jszip/jszip.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/pdfmake/pdfmake.min.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/datatables/pdfmake/vfs_fonts.js' %}"></script>
|
|
||||||
<script src="{% static 'libraries/highlight/highlight.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
{% block extra_script %}{% endblock %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
# Create your tests here.
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
from checkpoint.views import operator_view, metronic_checkpoint_view, table_history, reports
|
|
||||||
from django.urls import include, path
|
|
||||||
|
|
||||||
app_name = 'checkpoint'
|
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
path('checkpoint/', metronic_checkpoint_view, name='checkpoint_view'),
|
|
||||||
path('table_history/', table_history, name='history'),
|
|
||||||
path('reports/', reports, name='reports'),
|
|
||||||
path('operator/', operator_view, name='operator_view'),
|
|
||||||
|
|
||||||
path('api/', include('checkpoint.api.urls'))
|
|
||||||
]
|
|
||||||
@ -1,105 +0,0 @@
|
|||||||
from django.contrib.auth.decorators import user_passes_test, login_required
|
|
||||||
|
|
||||||
from project.generics.group_checkers import is_guard, is_operator
|
|
||||||
from django.shortcuts import render
|
|
||||||
from django.http import StreamingHttpResponse
|
|
||||||
import os
|
|
||||||
import json
|
|
||||||
from .models.entrance import Entrance
|
|
||||||
from django.utils.timezone import now
|
|
||||||
|
|
||||||
|
|
||||||
@user_passes_test(is_guard)
|
|
||||||
def metronic_checkpoint_view(request):
|
|
||||||
today = now().date()
|
|
||||||
entrances = Entrance.objects.filter(
|
|
||||||
date_in__date=today).order_by('date_in').values(
|
|
||||||
'car_registration_number',
|
|
||||||
'date_in'
|
|
||||||
)
|
|
||||||
entrances_list = json.dumps([
|
|
||||||
{'car': entry['car_registration_number'], 'date_in': entry['date_in'].strftime('%Y-%m-%d %H:%M:%S')}
|
|
||||||
for entry in entrances
|
|
||||||
])
|
|
||||||
|
|
||||||
context = {'table_data': entrances_list,
|
|
||||||
'web_socket': os.getenv('WS_ADDR', 'http://localhost:8765/listen_channel'),
|
|
||||||
'iframe_src': os.getenv('STREAM_URL', 'http://192.168.0.169:8888/cam/index.m3u8'),
|
|
||||||
'width': os.getenv('STREAM_WIDTH', 1280),
|
|
||||||
'height': os.getenv('STREAM_HEIGHT', 720),
|
|
||||||
'gate_open': os.getenv('GATE_OPEN', ''),
|
|
||||||
}
|
|
||||||
return render(request, 'checkpoint/metronic_checkpoint.html', context=context)
|
|
||||||
|
|
||||||
|
|
||||||
@user_passes_test(is_operator)
|
|
||||||
def operator_view(request):
|
|
||||||
return render(request, 'checkpoint/operator.html')
|
|
||||||
|
|
||||||
|
|
||||||
@user_passes_test(is_guard)
|
|
||||||
def table_history(request):
|
|
||||||
entrances = Entrance.objects.order_by('date_in').values(
|
|
||||||
'car_registration_number',
|
|
||||||
'date_in'
|
|
||||||
)
|
|
||||||
entrances_list = json.dumps([
|
|
||||||
{'car': entry['car_registration_number'], 'date_in': entry['date_in'].strftime('%Y-%m-%d %H:%M:%S')}
|
|
||||||
for entry in entrances
|
|
||||||
])
|
|
||||||
|
|
||||||
context = {'table_data': entrances_list,
|
|
||||||
}
|
|
||||||
return render(request, 'checkpoint/table_history.html', context=context)
|
|
||||||
|
|
||||||
|
|
||||||
@user_passes_test(is_guard)
|
|
||||||
def reports(request):
|
|
||||||
REPORTS = REPORTS = [
|
|
||||||
{'number': 1, 'start_date': '2025-02-01', 'end_date': '2025-02-28', 'download_url': '/media/reports/report_1.pdf'},
|
|
||||||
{'number': 2, 'start_date': '2025-03-01', 'end_date': '2025-03-30', 'download_url': '/media/reports/report_2.pdf'},
|
|
||||||
{'number': 3, 'start_date': '2025-04-01', 'end_date': '2025-04-30', 'download_url': '/media/reports/report_3.pdf'},
|
|
||||||
{'number': 4, 'start_date': '2025-05-01', 'end_date': '2025-05-30', 'download_url': '/media/reports/report_4.pdf'},
|
|
||||||
{'number': 5, 'start_date': '2025-06-01', 'end_date': '2025-06-30', 'download_url': '/media/reports/report_5.pdf'},
|
|
||||||
{'number': 6, 'start_date': '2025-07-01', 'end_date': '2025-07-30', 'download_url': '/media/reports/report_6.pdf'},
|
|
||||||
{'number': 7, 'start_date': '2025-08-01', 'end_date': '2025-08-30', 'download_url': '/media/reports/report_7.pdf'},
|
|
||||||
{'number': 8, 'start_date': '2025-09-01', 'end_date': '2025-09-30', 'download_url': '/media/reports/report_8.pdf'},
|
|
||||||
{'number': 9, 'start_date': '2025-10-01', 'end_date': '2025-10-30', 'download_url': '/media/reports/report_9.pdf'},
|
|
||||||
{'number': 10, 'start_date': '2025-11-01', 'end_date': '2025-11-30', 'download_url': '/media/reports/report_10.pdf'},
|
|
||||||
{'number': 11, 'start_date': '2025-12-01', 'end_date': '2025-12-30', 'download_url': '/media/reports/report_11.pdf'},
|
|
||||||
{'number': 12, 'start_date': '2025-01-01', 'end_date': '2025-01-30', 'download_url': '/media/reports/report_12.pdf'},
|
|
||||||
{'number': 13, 'start_date': '2025-02-01', 'end_date': '2025-02-28', 'download_url': '/media/reports/report_13.pdf'},
|
|
||||||
{'number': 14, 'start_date': '2025-03-01', 'end_date': '2025-03-30', 'download_url': '/media/reports/report_14.pdf'},
|
|
||||||
{'number': 15, 'start_date': '2025-04-01', 'end_date': '2025-04-30', 'download_url': '/media/reports/report_15.pdf'},
|
|
||||||
{'number': 16, 'start_date': '2025-05-01', 'end_date': '2025-05-30', 'download_url': '/media/reports/report_16.pdf'},
|
|
||||||
{'number': 17, 'start_date': '2025-06-01', 'end_date': '2025-06-30', 'download_url': '/media/reports/report_17.pdf'},
|
|
||||||
{'number': 18, 'start_date': '2025-07-01', 'end_date': '2025-07-30', 'download_url': '/media/reports/report_18.pdf'},
|
|
||||||
{'number': 19, 'start_date': '2025-08-01', 'end_date': '2025-08-30', 'download_url': '/media/reports/report_19.pdf'},
|
|
||||||
{'number': 20, 'start_date': '2025-09-01', 'end_date': '2025-09-30', 'download_url': '/media/reports/report_20.pdf'},
|
|
||||||
{'number': 1, 'start_date': '2025-02-01', 'end_date': '2025-02-28', 'download_url': '/media/reports/report_1.pdf'},
|
|
||||||
{'number': 2, 'start_date': '2025-03-01', 'end_date': '2025-03-30', 'download_url': '/media/reports/report_2.pdf'},
|
|
||||||
{'number': 3, 'start_date': '2025-04-01', 'end_date': '2025-04-30', 'download_url': '/media/reports/report_3.pdf'},
|
|
||||||
{'number': 4, 'start_date': '2025-05-01', 'end_date': '2025-05-30', 'download_url': '/media/reports/report_4.pdf'},
|
|
||||||
{'number': 5, 'start_date': '2025-06-01', 'end_date': '2025-06-30', 'download_url': '/media/reports/report_5.pdf'},
|
|
||||||
{'number': 6, 'start_date': '2025-07-01', 'end_date': '2025-07-30', 'download_url': '/media/reports/report_6.pdf'},
|
|
||||||
{'number': 7, 'start_date': '2025-08-01', 'end_date': '2025-08-30', 'download_url': '/media/reports/report_7.pdf'},
|
|
||||||
{'number': 8, 'start_date': '2025-09-01', 'end_date': '2025-09-30', 'download_url': '/media/reports/report_8.pdf'},
|
|
||||||
{'number': 9, 'start_date': '2025-10-01', 'end_date': '2025-10-30', 'download_url': '/media/reports/report_9.pdf'},
|
|
||||||
{'number': 10, 'start_date': '2025-11-01', 'end_date': '2025-11-30', 'download_url': '/media/reports/report_10.pdf'},
|
|
||||||
{'number': 11, 'start_date': '2025-12-01', 'end_date': '2025-12-30', 'download_url': '/media/reports/report_11.pdf'},
|
|
||||||
{'number': 12, 'start_date': '2025-01-01', 'end_date': '2025-01-30', 'download_url': '/media/reports/report_12.pdf'},
|
|
||||||
{'number': 13, 'start_date': '2025-02-01', 'end_date': '2025-02-28', 'download_url': '/media/reports/report_13.pdf'},
|
|
||||||
{'number': 14, 'start_date': '2025-03-01', 'end_date': '2025-03-30', 'download_url': '/media/reports/report_14.pdf'},
|
|
||||||
{'number': 15, 'start_date': '2025-04-01', 'end_date': '2025-04-30', 'download_url': '/media/reports/report_15.pdf'},
|
|
||||||
{'number': 16, 'start_date': '2025-05-01', 'end_date': '2025-05-30', 'download_url': '/media/reports/report_16.pdf'},
|
|
||||||
{'number': 17, 'start_date': '2025-06-01', 'end_date': '2025-06-30', 'download_url': '/media/reports/report_17.pdf'},
|
|
||||||
{'number': 18, 'start_date': '2025-07-01', 'end_date': '2025-07-30', 'download_url': '/media/reports/report_18.pdf'},
|
|
||||||
{'number': 19, 'start_date': '2025-08-01', 'end_date': '2025-08-30', 'download_url': '/media/reports/report_19.pdf'},
|
|
||||||
{'number': 20, 'start_date': '2025-09-01', 'end_date': '2025-09-30', 'download_url': '/media/reports/report_20.pdf'},
|
|
||||||
][::-1]
|
|
||||||
|
|
||||||
|
|
||||||
context = {
|
|
||||||
'reports': REPORTS,
|
|
||||||
}
|
|
||||||
return render(request, 'checkpoint/report.html', context=context)
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
"""Django's command-line utility for administrative tasks."""
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
"""Run administrative tasks."""
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
|
|
||||||
try:
|
|
||||||
from django.core.management import execute_from_command_line
|
|
||||||
except ImportError as exc:
|
|
||||||
raise ImportError(
|
|
||||||
"Couldn't import Django. Are you sure it's installed and "
|
|
||||||
'available on your PYTHONPATH environment variable? Did you '
|
|
||||||
'forget to activate a virtual environment?'
|
|
||||||
) from exc
|
|
||||||
execute_from_command_line(sys.argv)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
484
app/poetry.lock
generated
484
app/poetry.lock
generated
@ -1,484 +0,0 @@
|
|||||||
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "asgiref"
|
|
||||||
version = "3.8.1"
|
|
||||||
description = "ASGI specs, helper code, and adapters"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "asgiref-3.8.1-py3-none-any.whl", hash = "sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47"},
|
|
||||||
{file = "asgiref-3.8.1.tar.gz", hash = "sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
tests = ["mypy (>=0.800)", "pytest", "pytest-asyncio"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "cfgv"
|
|
||||||
version = "3.4.0"
|
|
||||||
description = "Validate configuration and produce human readable error messages."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9"},
|
|
||||||
{file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "distlib"
|
|
||||||
version = "0.3.8"
|
|
||||||
description = "Distribution utilities"
|
|
||||||
optional = false
|
|
||||||
python-versions = "*"
|
|
||||||
files = [
|
|
||||||
{file = "distlib-0.3.8-py2.py3-none-any.whl", hash = "sha256:034db59a0b96f8ca18035f36290806a9a6e6bd9d1ff91e45a7f172eb17e51784"},
|
|
||||||
{file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "django"
|
|
||||||
version = "4.2.15"
|
|
||||||
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "Django-4.2.15-py3-none-any.whl", hash = "sha256:61ee4a130efb8c451ef3467c67ca99fdce400fedd768634efc86a68c18d80d30"},
|
|
||||||
{file = "Django-4.2.15.tar.gz", hash = "sha256:c77f926b81129493961e19c0e02188f8d07c112a1162df69bfab178ae447f94a"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
asgiref = ">=3.6.0,<4"
|
|
||||||
sqlparse = ">=0.3.1"
|
|
||||||
tzdata = {version = "*", markers = "sys_platform == \"win32\""}
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
argon2 = ["argon2-cffi (>=19.1.0)"]
|
|
||||||
bcrypt = ["bcrypt"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "filelock"
|
|
||||||
version = "3.15.4"
|
|
||||||
description = "A platform independent file lock."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "filelock-3.15.4-py3-none-any.whl", hash = "sha256:6ca1fffae96225dab4c6eaf1c4f4f28cd2568d3ec2a44e15a08520504de468e7"},
|
|
||||||
{file = "filelock-3.15.4.tar.gz", hash = "sha256:2207938cbc1844345cb01a5a95524dae30f0ce089eba5b00378295a17e3e90cb"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"]
|
|
||||||
testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8.0.1)", "pytest (>=7.4.3)", "pytest-asyncio (>=0.21)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)", "virtualenv (>=20.26.2)"]
|
|
||||||
typing = ["typing-extensions (>=4.8)"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "gunicorn"
|
|
||||||
version = "22.0.0"
|
|
||||||
description = "WSGI HTTP Server for UNIX"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.7"
|
|
||||||
files = [
|
|
||||||
{file = "gunicorn-22.0.0-py3-none-any.whl", hash = "sha256:350679f91b24062c86e386e198a15438d53a7a8207235a78ba1b53df4c4378d9"},
|
|
||||||
{file = "gunicorn-22.0.0.tar.gz", hash = "sha256:4a0b436239ff76fb33f11c07a16482c521a7e09c1ce3cc293c2330afe01bec63"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
packaging = "*"
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
eventlet = ["eventlet (>=0.24.1,!=0.36.0)"]
|
|
||||||
gevent = ["gevent (>=1.4.0)"]
|
|
||||||
setproctitle = ["setproctitle"]
|
|
||||||
testing = ["coverage", "eventlet", "gevent", "pytest", "pytest-cov"]
|
|
||||||
tornado = ["tornado (>=0.2)"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "identify"
|
|
||||||
version = "2.6.0"
|
|
||||||
description = "File identification library for Python"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "identify-2.6.0-py2.py3-none-any.whl", hash = "sha256:e79ae4406387a9d300332b5fd366d8994f1525e8414984e1a59e058b2eda2dd0"},
|
|
||||||
{file = "identify-2.6.0.tar.gz", hash = "sha256:cb171c685bdc31bcc4c1734698736a7d5b6c8bf2e0c15117f4d469c8640ae5cf"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
license = ["ukkonen"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "nodeenv"
|
|
||||||
version = "1.9.1"
|
|
||||||
description = "Node.js virtual environment builder"
|
|
||||||
optional = false
|
|
||||||
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
|
|
||||||
files = [
|
|
||||||
{file = "nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9"},
|
|
||||||
{file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "numpy"
|
|
||||||
version = "2.1.1"
|
|
||||||
description = "Fundamental package for array computing in Python"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.10"
|
|
||||||
files = [
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c8a0e34993b510fc19b9a2ce7f31cb8e94ecf6e924a40c0c9dd4f62d0aac47d9"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7dd86dfaf7c900c0bbdcb8b16e2f6ddf1eb1fe39c6c8cca6e94844ed3152a8fd"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:5889dd24f03ca5a5b1e8a90a33b5a0846d8977565e4ae003a63d22ecddf6782f"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:59ca673ad11d4b84ceb385290ed0ebe60266e356641428c845b39cd9df6713ab"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:13ce49a34c44b6de5241f0b38b07e44c1b2dcacd9e36c30f9c2fcb1bb5135db7"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:913cc1d311060b1d409e609947fa1b9753701dac96e6581b58afc36b7ee35af6"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:caf5d284ddea7462c32b8d4a6b8af030b6c9fd5332afb70e7414d7fdded4bfd0"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:57eb525e7c2a8fdee02d731f647146ff54ea8c973364f3b850069ffb42799647"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-win32.whl", hash = "sha256:9a8e06c7a980869ea67bbf551283bbed2856915f0a792dc32dd0f9dd2fb56728"},
|
|
||||||
{file = "numpy-2.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:d10c39947a2d351d6d466b4ae83dad4c37cd6c3cdd6d5d0fa797da56f710a6ae"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0d07841fd284718feffe7dd17a63a2e6c78679b2d386d3e82f44f0108c905550"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b5613cfeb1adfe791e8e681128f5f49f22f3fcaa942255a6124d58ca59d9528f"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:0b8cc2715a84b7c3b161f9ebbd942740aaed913584cae9cdc7f8ad5ad41943d0"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:b49742cdb85f1f81e4dc1b39dcf328244f4d8d1ded95dea725b316bd2cf18c95"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8d5f8a8e3bc87334f025194c6193e408903d21ebaeb10952264943a985066ca"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d51fc141ddbe3f919e91a096ec739f49d686df8af254b2053ba21a910ae518bf"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:98ce7fb5b8063cfdd86596b9c762bf2b5e35a2cdd7e967494ab78a1fa7f8b86e"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:24c2ad697bd8593887b019817ddd9974a7f429c14a5469d7fad413f28340a6d2"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-win32.whl", hash = "sha256:397bc5ce62d3fb73f304bec332171535c187e0643e176a6e9421a6e3eacef06d"},
|
|
||||||
{file = "numpy-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:ae8ce252404cdd4de56dcfce8b11eac3c594a9c16c231d081fb705cf23bd4d9e"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:7c803b7934a7f59563db459292e6aa078bb38b7ab1446ca38dd138646a38203e"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6435c48250c12f001920f0751fe50c0348f5f240852cfddc5e2f97e007544cbe"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:3269c9eb8745e8d975980b3a7411a98976824e1fdef11f0aacf76147f662b15f"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:fac6e277a41163d27dfab5f4ec1f7a83fac94e170665a4a50191b545721c6521"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fcd8f556cdc8cfe35e70efb92463082b7f43dd7e547eb071ffc36abc0ca4699b"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b9cd92c8f8e7b313b80e93cedc12c0112088541dcedd9197b5dee3738c1201"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:afd9c680df4de71cd58582b51e88a61feed4abcc7530bcd3d48483f20fc76f2a"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8661c94e3aad18e1ea17a11f60f843a4933ccaf1a25a7c6a9182af70610b2313"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-win32.whl", hash = "sha256:950802d17a33c07cba7fd7c3dcfa7d64705509206be1606f196d179e539111ed"},
|
|
||||||
{file = "numpy-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:3fc5eabfc720db95d68e6646e88f8b399bfedd235994016351b1d9e062c4b270"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:046356b19d7ad1890c751b99acad5e82dc4a02232013bd9a9a712fddf8eb60f5"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:6e5a9cb2be39350ae6c8f79410744e80154df658d5bea06e06e0ac5bb75480d5"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:d4c57b68c8ef5e1ebf47238e99bf27657511ec3f071c465f6b1bccbef12d4136"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:8ae0fd135e0b157365ac7cc31fff27f07a5572bdfc38f9c2d43b2aff416cc8b0"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:981707f6b31b59c0c24bcda52e5605f9701cb46da4b86c2e8023656ad3e833cb"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ca4b53e1e0b279142113b8c5eb7d7a877e967c306edc34f3b58e9be12fda8df"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:e097507396c0be4e547ff15b13dc3866f45f3680f789c1a1301b07dadd3fbc78"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7506387e191fe8cdb267f912469a3cccc538ab108471291636a96a54e599556"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-win32.whl", hash = "sha256:251105b7c42abe40e3a689881e1793370cc9724ad50d64b30b358bbb3a97553b"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:f212d4f46b67ff604d11fff7cc62d36b3e8714edf68e44e9760e19be38c03eb0"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:920b0911bb2e4414c50e55bd658baeb78281a47feeb064ab40c2b66ecba85553"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:bab7c09454460a487e631ffc0c42057e3d8f2a9ddccd1e60c7bb8ed774992480"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:cea427d1350f3fd0d2818ce7350095c1a2ee33e30961d2f0fef48576ddbbe90f"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:e30356d530528a42eeba51420ae8bf6c6c09559051887196599d96ee5f536468"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8dfa9e94fc127c40979c3eacbae1e61fda4fe71d84869cc129e2721973231ef"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:910b47a6d0635ec1bd53b88f86120a52bf56dcc27b51f18c7b4a2e2224c29f0f"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:13cc11c00000848702322af4de0147ced365c81d66053a67c2e962a485b3717c"},
|
|
||||||
{file = "numpy-2.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:53e27293b3a2b661c03f79aa51c3987492bd4641ef933e366e0f9f6c9bf257ec"},
|
|
||||||
{file = "numpy-2.1.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:7be6a07520b88214ea85d8ac8b7d6d8a1839b0b5cb87412ac9f49fa934eb15d5"},
|
|
||||||
{file = "numpy-2.1.1-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:52ac2e48f5ad847cd43c4755520a2317f3380213493b9d8a4c5e37f3b87df504"},
|
|
||||||
{file = "numpy-2.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50a95ca3560a6058d6ea91d4629a83a897ee27c00630aed9d933dff191f170cd"},
|
|
||||||
{file = "numpy-2.1.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:99f4a9ee60eed1385a86e82288971a51e71df052ed0b2900ed30bc840c0f2e39"},
|
|
||||||
{file = "numpy-2.1.1.tar.gz", hash = "sha256:d0cf7d55b1051387807405b3898efafa862997b4cba8aa5dbe657be794afeafd"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "opencv-python"
|
|
||||||
version = "4.10.0.84"
|
|
||||||
description = "Wrapper package for OpenCV python bindings."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.6"
|
|
||||||
files = [
|
|
||||||
{file = "opencv-python-4.10.0.84.tar.gz", hash = "sha256:72d234e4582e9658ffea8e9cae5b63d488ad06994ef12d81dc303b17472f3526"},
|
|
||||||
{file = "opencv_python-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:fc182f8f4cda51b45f01c64e4cbedfc2f00aff799debebc305d8d0210c43f251"},
|
|
||||||
{file = "opencv_python-4.10.0.84-cp37-abi3-macosx_12_0_x86_64.whl", hash = "sha256:71e575744f1d23f79741450254660442785f45a0797212852ee5199ef12eed98"},
|
|
||||||
{file = "opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09a332b50488e2dda866a6c5573ee192fe3583239fb26ff2f7f9ceb0bc119ea6"},
|
|
||||||
{file = "opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ace140fc6d647fbe1c692bcb2abce768973491222c067c131d80957c595b71f"},
|
|
||||||
{file = "opencv_python-4.10.0.84-cp37-abi3-win32.whl", hash = "sha256:2db02bb7e50b703f0a2d50c50ced72e95c574e1e5a0bb35a8a86d0b35c98c236"},
|
|
||||||
{file = "opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl", hash = "sha256:32dbbd94c26f611dc5cc6979e6b7aa1f55a64d6b463cc1dcd3c95505a63e48fe"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
numpy = [
|
|
||||||
{version = ">=1.26.0", markers = "python_version >= \"3.12\""},
|
|
||||||
{version = ">=1.23.5", markers = "python_version >= \"3.11\" and python_version < \"3.12\""},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "packaging"
|
|
||||||
version = "24.1"
|
|
||||||
description = "Core utilities for Python packages"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"},
|
|
||||||
{file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "platformdirs"
|
|
||||||
version = "4.2.2"
|
|
||||||
description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "platformdirs-4.2.2-py3-none-any.whl", hash = "sha256:2d7a1657e36a80ea911db832a8a6ece5ee53d8de21edd5cc5879af6530b1bfee"},
|
|
||||||
{file = "platformdirs-4.2.2.tar.gz", hash = "sha256:38b7b51f512eed9e84a22788b4bce1de17c0adb134d6becb09836e37d8654cd3"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"]
|
|
||||||
test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"]
|
|
||||||
type = ["mypy (>=1.8)"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pre-commit"
|
|
||||||
version = "3.8.0"
|
|
||||||
description = "A framework for managing and maintaining multi-language pre-commit hooks."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.9"
|
|
||||||
files = [
|
|
||||||
{file = "pre_commit-3.8.0-py2.py3-none-any.whl", hash = "sha256:9a90a53bf82fdd8778d58085faf8d83df56e40dfe18f45b19446e26bf1b3a63f"},
|
|
||||||
{file = "pre_commit-3.8.0.tar.gz", hash = "sha256:8bb6494d4a20423842e198980c9ecf9f96607a07ea29549e180eef9ae80fe7af"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
cfgv = ">=2.0.0"
|
|
||||||
identify = ">=1.0.0"
|
|
||||||
nodeenv = ">=0.11.1"
|
|
||||||
pyyaml = ">=5.1"
|
|
||||||
virtualenv = ">=20.10.0"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "psycopg2-binary"
|
|
||||||
version = "2.9.9"
|
|
||||||
description = "psycopg2 - Python-PostgreSQL Database Adapter"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.7"
|
|
||||||
files = [
|
|
||||||
{file = "psycopg2-binary-2.9.9.tar.gz", hash = "sha256:7f01846810177d829c7692f1f5ada8096762d9172af1b1a28d4ab5b77c923c1c"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c2470da5418b76232f02a2fcd2229537bb2d5a7096674ce61859c3229f2eb202"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c6af2a6d4b7ee9615cbb162b0738f6e1fd1f5c3eda7e5da17861eacf4c717ea7"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:75723c3c0fbbf34350b46a3199eb50638ab22a0228f93fb472ef4d9becc2382b"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:83791a65b51ad6ee6cf0845634859d69a038ea9b03d7b26e703f94c7e93dbcf9"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0ef4854e82c09e84cc63084a9e4ccd6d9b154f1dbdd283efb92ecd0b5e2b8c84"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed1184ab8f113e8d660ce49a56390ca181f2981066acc27cf637d5c1e10ce46e"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:d2997c458c690ec2bc6b0b7ecbafd02b029b7b4283078d3b32a852a7ce3ddd98"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:b58b4710c7f4161b5e9dcbe73bb7c62d65670a87df7bcce9e1faaad43e715245"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:0c009475ee389757e6e34611d75f6e4f05f0cf5ebb76c6037508318e1a1e0d7e"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:8dbf6d1bc73f1d04ec1734bae3b4fb0ee3cb2a493d35ede9badbeb901fb40f6f"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-win32.whl", hash = "sha256:3f78fd71c4f43a13d342be74ebbc0666fe1f555b8837eb113cb7416856c79682"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp310-cp310-win_amd64.whl", hash = "sha256:876801744b0dee379e4e3c38b76fc89f88834bb15bf92ee07d94acd06ec890a0"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ee825e70b1a209475622f7f7b776785bd68f34af6e7a46e2e42f27b659b5bc26"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1ea665f8ce695bcc37a90ee52de7a7980be5161375d42a0b6c6abedbf0d81f0f"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:143072318f793f53819048fdfe30c321890af0c3ec7cb1dfc9cc87aa88241de2"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c332c8d69fb64979ebf76613c66b985414927a40f8defa16cf1bc028b7b0a7b0"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f7fc5a5acafb7d6ccca13bfa8c90f8c51f13d8fb87d95656d3950f0158d3ce53"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:977646e05232579d2e7b9c59e21dbe5261f403a88417f6a6512e70d3f8a046be"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b6356793b84728d9d50ead16ab43c187673831e9d4019013f1402c41b1db9b27"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:bc7bb56d04601d443f24094e9e31ae6deec9ccb23581f75343feebaf30423359"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:77853062a2c45be16fd6b8d6de2a99278ee1d985a7bd8b103e97e41c034006d2"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:78151aa3ec21dccd5cdef6c74c3e73386dcdfaf19bced944169697d7ac7482fc"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-win32.whl", hash = "sha256:dc4926288b2a3e9fd7b50dc6a1909a13bbdadfc67d93f3374d984e56f885579d"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp311-cp311-win_amd64.whl", hash = "sha256:b76bedd166805480ab069612119ea636f5ab8f8771e640ae103e05a4aae3e417"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:8532fd6e6e2dc57bcb3bc90b079c60de896d2128c5d9d6f24a63875a95a088cf"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b0605eaed3eb239e87df0d5e3c6489daae3f7388d455d0c0b4df899519c6a38d"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f8544b092a29a6ddd72f3556a9fcf249ec412e10ad28be6a0c0d948924f2212"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2d423c8d8a3c82d08fe8af900ad5b613ce3632a1249fd6a223941d0735fce493"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2e5afae772c00980525f6d6ecf7cbca55676296b580c0e6abb407f15f3706996"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6e6f98446430fdf41bd36d4faa6cb409f5140c1c2cf58ce0bbdaf16af7d3f119"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:c77e3d1862452565875eb31bdb45ac62502feabbd53429fdc39a1cc341d681ba"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:cb16c65dcb648d0a43a2521f2f0a2300f40639f6f8c1ecbc662141e4e3e1ee07"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:911dda9c487075abd54e644ccdf5e5c16773470a6a5d3826fda76699410066fb"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:57fede879f08d23c85140a360c6a77709113efd1c993923c59fde17aa27599fe"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-win32.whl", hash = "sha256:64cf30263844fa208851ebb13b0732ce674d8ec6a0c86a4e160495d299ba3c93"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp312-cp312-win_amd64.whl", hash = "sha256:81ff62668af011f9a48787564ab7eded4e9fb17a4a6a74af5ffa6a457400d2ab"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:2293b001e319ab0d869d660a704942c9e2cce19745262a8aba2115ef41a0a42a"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:03ef7df18daf2c4c07e2695e8cfd5ee7f748a1d54d802330985a78d2a5a6dca9"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a602ea5aff39bb9fac6308e9c9d82b9a35c2bf288e184a816002c9fae930b77"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8359bf4791968c5a78c56103702000105501adb557f3cf772b2c207284273984"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:275ff571376626195ab95a746e6a04c7df8ea34638b99fc11160de91f2fef503"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:f9b5571d33660d5009a8b3c25dc1db560206e2d2f89d3df1cb32d72c0d117d52"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:420f9bbf47a02616e8554e825208cb947969451978dceb77f95ad09c37791dae"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:4154ad09dac630a0f13f37b583eae260c6aa885d67dfbccb5b02c33f31a6d420"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:a148c5d507bb9b4f2030a2025c545fccb0e1ef317393eaba42e7eabd28eb6041"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-win32.whl", hash = "sha256:68fc1f1ba168724771e38bee37d940d2865cb0f562380a1fb1ffb428b75cb692"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp37-cp37m-win_amd64.whl", hash = "sha256:281309265596e388ef483250db3640e5f414168c5a67e9c665cafce9492eda2f"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:60989127da422b74a04345096c10d416c2b41bd7bf2a380eb541059e4e999980"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:246b123cc54bb5361588acc54218c8c9fb73068bf227a4a531d8ed56fa3ca7d6"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:34eccd14566f8fe14b2b95bb13b11572f7c7d5c36da61caf414d23b91fcc5d94"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:18d0ef97766055fec15b5de2c06dd8e7654705ce3e5e5eed3b6651a1d2a9a152"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d3f82c171b4ccd83bbaf35aa05e44e690113bd4f3b7b6cc54d2219b132f3ae55"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ead20f7913a9c1e894aebe47cccf9dc834e1618b7aa96155d2091a626e59c972"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:ca49a8119c6cbd77375ae303b0cfd8c11f011abbbd64601167ecca18a87e7cdd"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:323ba25b92454adb36fa425dc5cf6f8f19f78948cbad2e7bc6cdf7b0d7982e59"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:1236ed0952fbd919c100bc839eaa4a39ebc397ed1c08a97fc45fee2a595aa1b3"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:729177eaf0aefca0994ce4cffe96ad3c75e377c7b6f4efa59ebf003b6d398716"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-win32.whl", hash = "sha256:804d99b24ad523a1fe18cc707bf741670332f7c7412e9d49cb5eab67e886b9b5"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp38-cp38-win_amd64.whl", hash = "sha256:a6cdcc3ede532f4a4b96000b6362099591ab4a3e913d70bcbac2b56c872446f7"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:72dffbd8b4194858d0941062a9766f8297e8868e1dd07a7b36212aaa90f49472"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:30dcc86377618a4c8f3b72418df92e77be4254d8f89f14b8e8f57d6d43603c0f"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:31a34c508c003a4347d389a9e6fcc2307cc2150eb516462a7a17512130de109e"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:15208be1c50b99203fe88d15695f22a5bed95ab3f84354c494bcb1d08557df67"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1873aade94b74715be2246321c8650cabf5a0d098a95bab81145ffffa4c13876"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a58c98a7e9c021f357348867f537017057c2ed7f77337fd914d0bedb35dace7"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4686818798f9194d03c9129a4d9a702d9e113a89cb03bffe08c6cf799e053291"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ebdc36bea43063116f0486869652cb2ed7032dbc59fbcb4445c4862b5c1ecf7f"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:ca08decd2697fdea0aea364b370b1249d47336aec935f87b8bbfd7da5b2ee9c1"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ac05fb791acf5e1a3e39402641827780fe44d27e72567a000412c648a85ba860"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-win32.whl", hash = "sha256:9dba73be7305b399924709b91682299794887cbbd88e38226ed9f6712eabee90"},
|
|
||||||
{file = "psycopg2_binary-2.9.9-cp39-cp39-win_amd64.whl", hash = "sha256:f7ae5d65ccfbebdfa761585228eb4d0df3a8b15cfb53bd953e713e09fbb12957"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "python-dotenv"
|
|
||||||
version = "1.0.1"
|
|
||||||
description = "Read key-value pairs from a .env file and set them as environment variables"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca"},
|
|
||||||
{file = "python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
cli = ["click (>=5.0)"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pytz"
|
|
||||||
version = "2024.1"
|
|
||||||
description = "World timezone definitions, modern and historical"
|
|
||||||
optional = false
|
|
||||||
python-versions = "*"
|
|
||||||
files = [
|
|
||||||
{file = "pytz-2024.1-py2.py3-none-any.whl", hash = "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"},
|
|
||||||
{file = "pytz-2024.1.tar.gz", hash = "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pyyaml"
|
|
||||||
version = "6.0.2"
|
|
||||||
description = "YAML parser and emitter for Python"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8824b5a04a04a047e72eea5cec3bc266db09e35de6bdfe34c9436ac5ee27d237"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c36280e6fb8385e520936c3cb3b8042851904eba0e58d277dca80a5cfed590b"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:936d68689298c36b53b29f23c6dbb74de12b4ac12ca6cfe0e047bedceea56180"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:23502f431948090f597378482b4812b0caae32c22213aecf3b55325e049a6c68"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-win32.whl", hash = "sha256:2e99c6826ffa974fe6e27cdb5ed0021786b03fc98e5ee3c5bfe1fd5015f42b99"},
|
|
||||||
{file = "PyYAML-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:a4d3091415f010369ae4ed1fc6b79def9416358877534caf6a0fdd2146c87a3e"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5"},
|
|
||||||
{file = "PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4"},
|
|
||||||
{file = "PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183"},
|
|
||||||
{file = "PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563"},
|
|
||||||
{file = "PyYAML-6.0.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:24471b829b3bf607e04e88d79542a9d48bb037c2267d7927a874e6c205ca7e9a"},
|
|
||||||
{file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7fded462629cfa4b685c5416b949ebad6cec74af5e2d42905d41e257e0869f5"},
|
|
||||||
{file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d84a1718ee396f54f3a086ea0a66d8e552b2ab2017ef8b420e92edbc841c352d"},
|
|
||||||
{file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9056c1ecd25795207ad294bcf39f2db3d845767be0ea6e6a34d856f006006083"},
|
|
||||||
{file = "PyYAML-6.0.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:82d09873e40955485746739bcb8b4586983670466c23382c19cffecbf1fd8706"},
|
|
||||||
{file = "PyYAML-6.0.2-cp38-cp38-win32.whl", hash = "sha256:43fa96a3ca0d6b1812e01ced1044a003533c47f6ee8aca31724f78e93ccc089a"},
|
|
||||||
{file = "PyYAML-6.0.2-cp38-cp38-win_amd64.whl", hash = "sha256:01179a4a8559ab5de078078f37e5c1a30d76bb88519906844fd7bdea1b7729ff"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:688ba32a1cffef67fd2e9398a2efebaea461578b0923624778664cc1c914db5d"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a8786accb172bd8afb8be14490a16625cbc387036876ab6ba70912730faf8e1f"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8e03406cac8513435335dbab54c0d385e4a49e4945d2909a581c83647ca0290"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f753120cb8181e736c57ef7636e83f31b9c0d1722c516f7e86cf15b7aa57ff12"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b1fdb9dc17f5a7677423d508ab4f243a726dea51fa5e70992e59a7411c89d19"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0b69e4ce7a131fe56b7e4d770c67429700908fc0752af059838b1cfb41960e4e"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a9f8c2e67970f13b16084e04f134610fd1d374bf477b17ec1599185cf611d725"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-win32.whl", hash = "sha256:6395c297d42274772abc367baaa79683958044e5d3835486c16da75d2a694631"},
|
|
||||||
{file = "PyYAML-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:39693e1f8320ae4f43943590b49779ffb98acb81f788220ea932a6b6c51004d8"},
|
|
||||||
{file = "pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "sqlparse"
|
|
||||||
version = "0.5.1"
|
|
||||||
description = "A non-validating SQL parser."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "sqlparse-0.5.1-py3-none-any.whl", hash = "sha256:773dcbf9a5ab44a090f3441e2180efe2560220203dc2f8c0b0fa141e18b505e4"},
|
|
||||||
{file = "sqlparse-0.5.1.tar.gz", hash = "sha256:bb6b4df465655ef332548e24f08e205afc81b9ab86cb1c45657a7ff173a3a00e"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
dev = ["build", "hatch"]
|
|
||||||
doc = ["sphinx"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "tzdata"
|
|
||||||
version = "2024.1"
|
|
||||||
description = "Provider of IANA time zone data"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=2"
|
|
||||||
files = [
|
|
||||||
{file = "tzdata-2024.1-py2.py3-none-any.whl", hash = "sha256:9068bc196136463f5245e51efda838afa15aaeca9903f49050dfa2679db4d252"},
|
|
||||||
{file = "tzdata-2024.1.tar.gz", hash = "sha256:2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5ceae07efd"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "tzlocal"
|
|
||||||
version = "5.2"
|
|
||||||
description = "tzinfo object for the local timezone"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "tzlocal-5.2-py3-none-any.whl", hash = "sha256:49816ef2fe65ea8ac19d19aa7a1ae0551c834303d5014c6d5a62e4cbda8047b8"},
|
|
||||||
{file = "tzlocal-5.2.tar.gz", hash = "sha256:8d399205578f1a9342816409cc1e46a93ebd5755e39ea2d85334bea911bf0e6e"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
tzdata = {version = "*", markers = "platform_system == \"Windows\""}
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
devenv = ["check-manifest", "pytest (>=4.3)", "pytest-cov", "pytest-mock (>=3.3)", "zest.releaser"]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "virtualenv"
|
|
||||||
version = "20.26.3"
|
|
||||||
description = "Virtual Python Environment builder"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.7"
|
|
||||||
files = [
|
|
||||||
{file = "virtualenv-20.26.3-py3-none-any.whl", hash = "sha256:8cc4a31139e796e9a7de2cd5cf2489de1217193116a8fd42328f1bd65f434589"},
|
|
||||||
{file = "virtualenv-20.26.3.tar.gz", hash = "sha256:4c43a2a236279d9ea36a0d76f98d84bd6ca94ac4e0f4a3b9d46d05e10fea542a"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
distlib = ">=0.3.7,<1"
|
|
||||||
filelock = ">=3.12.2,<4"
|
|
||||||
platformdirs = ">=3.9.1,<5"
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"]
|
|
||||||
test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"]
|
|
||||||
|
|
||||||
[metadata]
|
|
||||||
lock-version = "2.0"
|
|
||||||
python-versions = "^3.11"
|
|
||||||
content-hash = "42c6b3c4ee67394b41370a77cd95e2dd29fc1f0ac042121be41d4fdf02771891"
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,16 +0,0 @@
|
|||||||
"""
|
|
||||||
ASGI config for project project.
|
|
||||||
|
|
||||||
It exposes the ASGI callable as a module-level variable named ``application``.
|
|
||||||
|
|
||||||
For more information on this file, see
|
|
||||||
https://docs.djangoproject.com/en/5.1/howto/deployment/asgi/
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from django.core.asgi import get_asgi_application
|
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
|
|
||||||
|
|
||||||
application = get_asgi_application()
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,31 +0,0 @@
|
|||||||
import functools
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
from django.http import JsonResponse
|
|
||||||
|
|
||||||
|
|
||||||
def ret(json_object, status=200):
|
|
||||||
return JsonResponse(
|
|
||||||
json_object, status=status, safe=not isinstance(json_object, list)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def error_response(exception):
|
|
||||||
res = {
|
|
||||||
'errorMessage': str(exception),
|
|
||||||
'traceback': traceback.format_exc() if settings.DEBUG else 'error occured',
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret(res, status=400)
|
|
||||||
|
|
||||||
|
|
||||||
def base_view(fn):
|
|
||||||
@functools.wraps(fn)
|
|
||||||
def inner(request, *args, **kwargs):
|
|
||||||
try:
|
|
||||||
return fn(request, *args, **kwargs)
|
|
||||||
except Exception as e:
|
|
||||||
return error_response(e)
|
|
||||||
|
|
||||||
return inner
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
from datetime import timedelta
|
|
||||||
|
|
||||||
from django.utils import timezone
|
|
||||||
|
|
||||||
|
|
||||||
def get_current_time():
|
|
||||||
return timezone.now() + timedelta(hours=6)
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
from django.contrib.auth.models import Group, User
|
|
||||||
|
|
||||||
|
|
||||||
def is_guard(user: User):
|
|
||||||
guard_group = Group.objects.get_or_create(name='guard')[0]
|
|
||||||
if guard_group in user.groups.all():
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def is_operator(user: User):
|
|
||||||
guard_group = Group.objects.get_or_create(name='operator')[0]
|
|
||||||
if guard_group in user.groups.all():
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
@ -1,30 +0,0 @@
|
|||||||
import os
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
||||||
|
|
||||||
DB_ENGINE = 'sqlite3'
|
|
||||||
if DB_ENGINE == "postgres":
|
|
||||||
DATABASES = {
|
|
||||||
'default': {
|
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
|
||||||
'NAME': os.getenv('POSTGRES_DB', default='postgres'),
|
|
||||||
'USER': os.getenv('POSTGRES_USER', default='postgres'),
|
|
||||||
'PASSWORD': os.getenv('POSTGRES_PASSWORD', default='postgres'),
|
|
||||||
'HOST': os.getenv('POSTGRES_HOST', default='db'),
|
|
||||||
'PORT': os.getenv('POSTGRES_PORT', default=5432),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
elif DB_ENGINE == "sqlite3":
|
|
||||||
DATABASES = {
|
|
||||||
'default': {
|
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
|
||||||
'NAME': BASE_DIR / "db.sqlite3",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else:
|
|
||||||
raise ValueError("Неверное значение DB_ENGINE! Используйте 'postgres' или 'sqlite3'.")
|
|
||||||
|
|
||||||
|
|
||||||
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static/'),)
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
import os
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
||||||
|
|
||||||
DEBUG = True
|
|
||||||
|
|
||||||
DATABASES = {
|
|
||||||
'default': {
|
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
||||||
'HOST': os.getenv('POSTGRES_HOST'),
|
|
||||||
'PORT': os.getenv('POSTGRES_PORT'),
|
|
||||||
'NAME': os.getenv('POSTGRES_DB'),
|
|
||||||
'USER': os.getenv('POSTGRES_USER'),
|
|
||||||
'PASSWORD': os.getenv('POSTGRES_PASSWORD'),
|
|
||||||
'CONN_MAX_AGE': None,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
STATIC_ROOT = '/home/app/web/static/'
|
|
||||||
@ -1,136 +0,0 @@
|
|||||||
import os
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from dotenv import load_dotenv
|
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
||||||
|
|
||||||
dotenv_path = os.path.join(BASE_DIR, '../.env')
|
|
||||||
if os.path.exists(dotenv_path):
|
|
||||||
load_dotenv(dotenv_path)
|
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
||||||
|
|
||||||
SECRET_KEY = os.environ.get('SECRET_KEY', 'test')
|
|
||||||
|
|
||||||
DEBUG = True
|
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
|
||||||
'django.contrib.admin',
|
|
||||||
'django.contrib.auth',
|
|
||||||
'django.contrib.contenttypes',
|
|
||||||
'django.contrib.sessions',
|
|
||||||
'django.contrib.messages',
|
|
||||||
'django.contrib.staticfiles',
|
|
||||||
|
|
||||||
'users.apps.UsersConfig',
|
|
||||||
'checkpoint.apps.CheckpointConfig',
|
|
||||||
]
|
|
||||||
|
|
||||||
DATA_UPLOAD_MAX_NUMBER_FIELDS = 5000
|
|
||||||
|
|
||||||
LOG_DIR = Path('logs')
|
|
||||||
LOG_DIR.mkdir(parents=True, exist_ok=True) # Создает каталог, если он не существует
|
|
||||||
|
|
||||||
LOGGING = {
|
|
||||||
'version': 1,
|
|
||||||
'disable_existing_loggers': False,
|
|
||||||
'formatters': {
|
|
||||||
'verbose': {
|
|
||||||
'format': '{levelname} {asctime} {module} {message}',
|
|
||||||
'style': '{',
|
|
||||||
},
|
|
||||||
'simple': {
|
|
||||||
'format': '{levelname} {message}',
|
|
||||||
'style': '{',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'handlers': {
|
|
||||||
'file': {
|
|
||||||
'level': 'INFO',
|
|
||||||
'class': 'logging.FileHandler',
|
|
||||||
'filename': os.path.join(LOG_DIR, 'requests.log'),
|
|
||||||
'formatter': 'verbose',
|
|
||||||
},
|
|
||||||
'console': {
|
|
||||||
'level': 'INFO',
|
|
||||||
'class': 'logging.StreamHandler',
|
|
||||||
'formatter': 'simple',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'loggers': {
|
|
||||||
'django.request': {
|
|
||||||
'handlers': ['file', 'console'],
|
|
||||||
'level': 'INFO',
|
|
||||||
'propagate': True,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
MIDDLEWARE = [
|
|
||||||
'django.middleware.security.SecurityMiddleware',
|
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
||||||
'django.middleware.common.CommonMiddleware',
|
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|
||||||
]
|
|
||||||
|
|
||||||
ROOT_URLCONF = 'project.urls'
|
|
||||||
|
|
||||||
TEMPLATES = [
|
|
||||||
{
|
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
||||||
'DIRS': [],
|
|
||||||
'APP_DIRS': True,
|
|
||||||
'OPTIONS': {
|
|
||||||
'context_processors': [
|
|
||||||
'django.template.context_processors.debug',
|
|
||||||
'django.template.context_processors.request',
|
|
||||||
'django.contrib.auth.context_processors.auth',
|
|
||||||
'django.contrib.messages.context_processors.messages',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
WSGI_APPLICATION = 'project.wsgi.application'
|
|
||||||
|
|
||||||
AUTH_PASSWORD_VALIDATORS = [
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
LANGUAGE_CODE = 'ru'
|
|
||||||
|
|
||||||
TIME_ZONE = 'Asia/Krasnoyarsk'
|
|
||||||
|
|
||||||
USE_I18N = True
|
|
||||||
USE_TZ = False
|
|
||||||
|
|
||||||
STATIC_URL = 'static/'
|
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
||||||
|
|
||||||
# AUTH_USER_MODEL = 'users.User'2
|
|
||||||
LOGIN_URL = '/users/login'
|
|
||||||
|
|
||||||
try:
|
|
||||||
from project.local_settings import *
|
|
||||||
print('local')
|
|
||||||
except ModuleNotFoundError as ex:
|
|
||||||
from project.production_settings import *
|
|
||||||
print(ex)
|
|
||||||
print('prod')
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
from django.contrib import admin
|
|
||||||
from django.urls import include, path
|
|
||||||
from project.views import router
|
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
path('', router, name='router'),
|
|
||||||
path('admin/', admin.site.urls),
|
|
||||||
path('', include('checkpoint.urls')),
|
|
||||||
path('users/', include('users.urls')),
|
|
||||||
]
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
from django.contrib.auth.models import Group
|
|
||||||
from django.http import HttpRequest
|
|
||||||
from django.shortcuts import redirect
|
|
||||||
from django.contrib.auth import logout
|
|
||||||
|
|
||||||
|
|
||||||
def router(request: HttpRequest):
|
|
||||||
guard_group = Group.objects.get_or_create(name='guard')[0]
|
|
||||||
operator_group = Group.objects.get_or_create(name='operator')[0]
|
|
||||||
user = request.user
|
|
||||||
user_groups = user.groups.all()
|
|
||||||
|
|
||||||
if user.is_authenticated:
|
|
||||||
if guard_group in user_groups:
|
|
||||||
return redirect('checkpoint:checkpoint_view')
|
|
||||||
elif operator_group in user_groups:
|
|
||||||
return redirect('checkpoint:operator_view')
|
|
||||||
else:
|
|
||||||
logout(request)
|
|
||||||
return redirect('users:login')
|
|
||||||
else:
|
|
||||||
return redirect('users:login')
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
"""
|
|
||||||
WSGI config for project project.
|
|
||||||
|
|
||||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
|
||||||
|
|
||||||
For more information on this file, see
|
|
||||||
https://docs.djangoproject.com/en/5.1/howto/deployment/wsgi/
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
|
|
||||||
|
|
||||||
application = get_wsgi_application()
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
[tool.poetry]
|
|
||||||
name = "project"
|
|
||||||
version = "0.1.0"
|
|
||||||
description = ""
|
|
||||||
authors = ["Zakhy <lirchzakhar@gmail.com>"]
|
|
||||||
readme = "README.md"
|
|
||||||
package-mode = false
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
|
||||||
python = "^3.11"
|
|
||||||
django = "^4.2"
|
|
||||||
python-dotenv = "^1.0.1"
|
|
||||||
psycopg2-binary = "^2.9.9"
|
|
||||||
gunicorn = "^22.0.0"
|
|
||||||
pre-commit = "^3.8.0"
|
|
||||||
pytz = "^2024.1"
|
|
||||||
tzlocal = "^5.2"
|
|
||||||
opencv-python = "^4.10.0.84"
|
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
Binary file not shown.
@ -1,275 +0,0 @@
|
|||||||
select.admin-autocomplete {
|
|
||||||
width: 20em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container {
|
|
||||||
min-height: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--single,
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple {
|
|
||||||
min-height: 30px;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--focus .select2-selection,
|
|
||||||
.select2-container--admin-autocomplete.select2-container--open .select2-selection {
|
|
||||||
border-color: var(--body-quiet-color);
|
|
||||||
min-height: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--focus .select2-selection.select2-selection--single,
|
|
||||||
.select2-container--admin-autocomplete.select2-container--open .select2-selection.select2-selection--single {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--focus .select2-selection.select2-selection--multiple,
|
|
||||||
.select2-container--admin-autocomplete.select2-container--open .select2-selection.select2-selection--multiple {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--single {
|
|
||||||
background-color: var(--body-bg);
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--single .select2-selection__rendered {
|
|
||||||
color: var(--body-fg);
|
|
||||||
line-height: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--single .select2-selection__clear {
|
|
||||||
cursor: pointer;
|
|
||||||
float: right;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--single .select2-selection__placeholder {
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow {
|
|
||||||
height: 26px;
|
|
||||||
position: absolute;
|
|
||||||
top: 1px;
|
|
||||||
right: 1px;
|
|
||||||
width: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow b {
|
|
||||||
border-color: #888 transparent transparent transparent;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 5px 4px 0 4px;
|
|
||||||
height: 0;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -4px;
|
|
||||||
margin-top: -2px;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
|
||||||
left: 1px;
|
|
||||||
right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--single {
|
|
||||||
background-color: var(--darkened-bg);
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
|
||||||
border-color: transparent transparent #888 transparent;
|
|
||||||
border-width: 0 4px 5px 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple {
|
|
||||||
background-color: var(--body-bg);
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: text;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered {
|
|
||||||
box-sizing: border-box;
|
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0 10px 5px 5px;
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered li {
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__placeholder {
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
margin-top: 5px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__clear {
|
|
||||||
cursor: pointer;
|
|
||||||
float: right;
|
|
||||||
font-weight: bold;
|
|
||||||
margin: 5px;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice {
|
|
||||||
background-color: var(--darkened-bg);
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: default;
|
|
||||||
float: left;
|
|
||||||
margin-right: 5px;
|
|
||||||
margin-top: 5px;
|
|
||||||
padding: 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice__remove {
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
cursor: pointer;
|
|
||||||
display: inline-block;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-right: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice__remove:hover {
|
|
||||||
color: var(--body-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
|
||||||
margin-left: 5px;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
|
||||||
margin-left: 2px;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--focus .select2-selection--multiple {
|
|
||||||
border: solid var(--body-quiet-color) 1px;
|
|
||||||
outline: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--multiple {
|
|
||||||
background-color: var(--darkened-bg);
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--disabled .select2-selection__choice__remove {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--open.select2-container--above .select2-selection--single, .select2-container--admin-autocomplete.select2-container--open.select2-container--above .select2-selection--multiple {
|
|
||||||
border-top-left-radius: 0;
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete.select2-container--open.select2-container--below .select2-selection--single, .select2-container--admin-autocomplete.select2-container--open.select2-container--below .select2-selection--multiple {
|
|
||||||
border-bottom-left-radius: 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-search--dropdown {
|
|
||||||
background: var(--darkened-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-search--dropdown .select2-search__field {
|
|
||||||
background: var(--body-bg);
|
|
||||||
color: var(--body-fg);
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-search--inline .select2-search__field {
|
|
||||||
background: transparent;
|
|
||||||
color: var(--body-fg);
|
|
||||||
border: none;
|
|
||||||
outline: 0;
|
|
||||||
box-shadow: none;
|
|
||||||
-webkit-appearance: textfield;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results > .select2-results__options {
|
|
||||||
max-height: 200px;
|
|
||||||
overflow-y: auto;
|
|
||||||
color: var(--body-fg);
|
|
||||||
background: var(--body-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option[role=group] {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option[aria-disabled=true] {
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option[aria-selected=true] {
|
|
||||||
background-color: var(--selected-bg);
|
|
||||||
color: var(--body-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option .select2-results__option {
|
|
||||||
padding-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__group {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option {
|
|
||||||
margin-left: -1em;
|
|
||||||
padding-left: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
|
||||||
margin-left: -2em;
|
|
||||||
padding-left: 3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
|
||||||
margin-left: -3em;
|
|
||||||
padding-left: 4em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
|
||||||
margin-left: -4em;
|
|
||||||
padding-left: 5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
|
||||||
margin-left: -5em;
|
|
||||||
padding-left: 6em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
|
|
||||||
background-color: var(--primary);
|
|
||||||
color: var(--primary-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2-container--admin-autocomplete .select2-results__group {
|
|
||||||
cursor: default;
|
|
||||||
display: block;
|
|
||||||
padding: 6px;
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,328 +0,0 @@
|
|||||||
/* CHANGELISTS */
|
|
||||||
|
|
||||||
#changelist {
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-start;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .changelist-form-container {
|
|
||||||
flex: 1 1 auto;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist table {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.change-list .hiddenfields { display:none; }
|
|
||||||
|
|
||||||
.change-list .filtered table {
|
|
||||||
border-right: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.change-list .filtered {
|
|
||||||
min-height: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.change-list .filtered .results, .change-list .filtered .paginator,
|
|
||||||
.filtered #toolbar, .filtered div.xfull {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.change-list .filtered table tbody th {
|
|
||||||
padding-right: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-form .results {
|
|
||||||
overflow-x: auto;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .toplinks {
|
|
||||||
border-bottom: 1px solid var(--hairline-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .paginator {
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
border-bottom: 1px solid var(--hairline-color);
|
|
||||||
background: var(--body-bg);
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* CHANGELIST TABLES */
|
|
||||||
|
|
||||||
#changelist table thead th {
|
|
||||||
padding: 0;
|
|
||||||
white-space: nowrap;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist table thead th.action-checkbox-column {
|
|
||||||
width: 1.5em;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist table tbody td.action-checkbox {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist table tfoot {
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TOOLBAR */
|
|
||||||
|
|
||||||
#toolbar {
|
|
||||||
padding: 8px 10px;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
border-top: 1px solid var(--hairline-color);
|
|
||||||
border-bottom: 1px solid var(--hairline-color);
|
|
||||||
background: var(--darkened-bg);
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#toolbar form input {
|
|
||||||
border-radius: 4px;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
padding: 5px;
|
|
||||||
color: var(--body-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
#toolbar #searchbar {
|
|
||||||
height: 1.1875rem;
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
padding: 2px 5px;
|
|
||||||
margin: 0;
|
|
||||||
vertical-align: top;
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#toolbar #searchbar:focus {
|
|
||||||
border-color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#toolbar form input[type="submit"] {
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
padding: 4px 8px;
|
|
||||||
margin: 0;
|
|
||||||
vertical-align: middle;
|
|
||||||
background: var(--body-bg);
|
|
||||||
box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
|
|
||||||
cursor: pointer;
|
|
||||||
color: var(--body-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
#toolbar form input[type="submit"]:focus,
|
|
||||||
#toolbar form input[type="submit"]:hover {
|
|
||||||
border-color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-search img {
|
|
||||||
vertical-align: middle;
|
|
||||||
margin-right: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-search .help {
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* FILTER COLUMN */
|
|
||||||
|
|
||||||
#changelist-filter {
|
|
||||||
flex: 0 0 240px;
|
|
||||||
order: 1;
|
|
||||||
background: var(--darkened-bg);
|
|
||||||
border-left: none;
|
|
||||||
margin: 0 0 0 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter h2 {
|
|
||||||
font-size: 0.875rem;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.5px;
|
|
||||||
padding: 5px 15px;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter h3,
|
|
||||||
#changelist-filter details summary {
|
|
||||||
font-weight: 400;
|
|
||||||
padding: 0 15px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter details summary > * {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter details > summary {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter details > summary::-webkit-details-marker {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter details > summary::before {
|
|
||||||
content: '→';
|
|
||||||
font-weight: bold;
|
|
||||||
color: var(--link-hover-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter details[open] > summary::before {
|
|
||||||
content: '↓';
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter ul {
|
|
||||||
margin: 5px 0;
|
|
||||||
padding: 0 15px 15px;
|
|
||||||
border-bottom: 1px solid var(--hairline-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter ul:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter li {
|
|
||||||
list-style-type: none;
|
|
||||||
margin-left: 0;
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter a {
|
|
||||||
display: block;
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter li.selected {
|
|
||||||
border-left: 5px solid var(--hairline-color);
|
|
||||||
padding-left: 10px;
|
|
||||||
margin-left: -15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter li.selected a {
|
|
||||||
color: var(--link-selected-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter a:focus, #changelist-filter a:hover,
|
|
||||||
#changelist-filter li.selected a:focus,
|
|
||||||
#changelist-filter li.selected a:hover {
|
|
||||||
color: var(--link-hover-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist-filter #changelist-filter-clear a {
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-bottom: 1px solid var(--hairline-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* DATE DRILLDOWN */
|
|
||||||
|
|
||||||
.change-list .toplinks {
|
|
||||||
display: flex;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 3px 17px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.change-list .toplinks a {
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.change-list .toplinks .date-back {
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.change-list .toplinks .date-back:focus,
|
|
||||||
.change-list .toplinks .date-back:hover {
|
|
||||||
color: var(--link-hover-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ACTIONS */
|
|
||||||
|
|
||||||
.filtered .actions {
|
|
||||||
border-right: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist table input {
|
|
||||||
margin: 0;
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Once the :has() pseudo-class is supported by all browsers, the tr.selected
|
|
||||||
selector and the JS adding the class can be removed. */
|
|
||||||
#changelist tbody tr.selected {
|
|
||||||
background-color: var(--selected-row);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist tbody tr:has(.action-select:checked) {
|
|
||||||
background-color: var(--selected-row);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions {
|
|
||||||
padding: 10px;
|
|
||||||
background: var(--body-bg);
|
|
||||||
border-top: none;
|
|
||||||
border-bottom: none;
|
|
||||||
line-height: 1.5rem;
|
|
||||||
color: var(--body-quiet-color);
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions span.all,
|
|
||||||
#changelist .actions span.action-counter,
|
|
||||||
#changelist .actions span.clear,
|
|
||||||
#changelist .actions span.question {
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
margin: 0 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions select {
|
|
||||||
vertical-align: top;
|
|
||||||
height: 1.5rem;
|
|
||||||
color: var(--body-fg);
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
padding: 0 0 0 4px;
|
|
||||||
margin: 0;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions select:focus {
|
|
||||||
border-color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions label {
|
|
||||||
display: inline-block;
|
|
||||||
vertical-align: middle;
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions .button {
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
border: 1px solid var(--border-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
background: var(--body-bg);
|
|
||||||
box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
|
|
||||||
cursor: pointer;
|
|
||||||
height: 1.5rem;
|
|
||||||
line-height: 1;
|
|
||||||
padding: 4px 8px;
|
|
||||||
margin: 0;
|
|
||||||
color: var(--body-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
#changelist .actions .button:focus, #changelist .actions .button:hover {
|
|
||||||
border-color: var(--body-quiet-color);
|
|
||||||
}
|
|
||||||
@ -1,137 +0,0 @@
|
|||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--primary: #264b5d;
|
|
||||||
--primary-fg: #f7f7f7;
|
|
||||||
|
|
||||||
--body-fg: #eeeeee;
|
|
||||||
--body-bg: #121212;
|
|
||||||
--body-quiet-color: #e0e0e0;
|
|
||||||
--body-loud-color: #ffffff;
|
|
||||||
|
|
||||||
--breadcrumbs-link-fg: #e0e0e0;
|
|
||||||
--breadcrumbs-bg: var(--primary);
|
|
||||||
|
|
||||||
--link-fg: #81d4fa;
|
|
||||||
--link-hover-color: #4ac1f7;
|
|
||||||
--link-selected-fg: #6f94c6;
|
|
||||||
|
|
||||||
--hairline-color: #272727;
|
|
||||||
--border-color: #353535;
|
|
||||||
|
|
||||||
--error-fg: #e35f5f;
|
|
||||||
--message-success-bg: #006b1b;
|
|
||||||
--message-warning-bg: #583305;
|
|
||||||
--message-error-bg: #570808;
|
|
||||||
|
|
||||||
--darkened-bg: #212121;
|
|
||||||
--selected-bg: #1b1b1b;
|
|
||||||
--selected-row: #00363a;
|
|
||||||
|
|
||||||
--close-button-bg: #333333;
|
|
||||||
--close-button-hover-bg: #666666;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
html[data-theme="dark"] {
|
|
||||||
--primary: #264b5d;
|
|
||||||
--primary-fg: #f7f7f7;
|
|
||||||
|
|
||||||
--body-fg: #eeeeee;
|
|
||||||
--body-bg: #121212;
|
|
||||||
--body-quiet-color: #e0e0e0;
|
|
||||||
--body-loud-color: #ffffff;
|
|
||||||
|
|
||||||
--breadcrumbs-link-fg: #e0e0e0;
|
|
||||||
--breadcrumbs-bg: var(--primary);
|
|
||||||
|
|
||||||
--link-fg: #81d4fa;
|
|
||||||
--link-hover-color: #4ac1f7;
|
|
||||||
--link-selected-fg: #6f94c6;
|
|
||||||
|
|
||||||
--hairline-color: #272727;
|
|
||||||
--border-color: #353535;
|
|
||||||
|
|
||||||
--error-fg: #e35f5f;
|
|
||||||
--message-success-bg: #006b1b;
|
|
||||||
--message-warning-bg: #583305;
|
|
||||||
--message-error-bg: #570808;
|
|
||||||
|
|
||||||
--darkened-bg: #212121;
|
|
||||||
--selected-bg: #1b1b1b;
|
|
||||||
--selected-row: #00363a;
|
|
||||||
|
|
||||||
--close-button-bg: #333333;
|
|
||||||
--close-button-hover-bg: #666666;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* THEME SWITCH */
|
|
||||||
.theme-toggle {
|
|
||||||
cursor: pointer;
|
|
||||||
border: none;
|
|
||||||
padding: 0;
|
|
||||||
background: transparent;
|
|
||||||
vertical-align: middle;
|
|
||||||
margin-inline-start: 5px;
|
|
||||||
margin-top: -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.theme-toggle svg {
|
|
||||||
vertical-align: middle;
|
|
||||||
height: 1rem;
|
|
||||||
width: 1rem;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Fully hide screen reader text so we only show the one matching the current
|
|
||||||
theme.
|
|
||||||
*/
|
|
||||||
.theme-toggle .visually-hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
html[data-theme="auto"] .theme-toggle .theme-label-when-auto {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
html[data-theme="dark"] .theme-toggle .theme-label-when-dark {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
html[data-theme="light"] .theme-toggle .theme-label-when-light {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ICONS */
|
|
||||||
.theme-toggle svg.theme-icon-when-auto,
|
|
||||||
.theme-toggle svg.theme-icon-when-dark,
|
|
||||||
.theme-toggle svg.theme-icon-when-light {
|
|
||||||
fill: var(--header-link-color);
|
|
||||||
color: var(--header-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
html[data-theme="auto"] .theme-toggle svg.theme-icon-when-auto {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
html[data-theme="dark"] .theme-toggle svg.theme-icon-when-dark {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
html[data-theme="light"] .theme-toggle svg.theme-icon-when-light {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.visually-hidden {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px;
|
|
||||||
height: 1px;
|
|
||||||
padding: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0,0,0,0);
|
|
||||||
white-space: nowrap;
|
|
||||||
border: 0;
|
|
||||||
color: var(--body-fg);
|
|
||||||
background-color: var(--body-bg);
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user