Deleting files
This commit is contained in:
parent
0b82272706
commit
13f59835f2
5787 changed files with 0 additions and 644992 deletions
|
@ -1 +0,0 @@
|
|||
SECRET_KEY = YOUR_SECRET_KEY_HERE
|
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1,2 +0,0 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
29
.github/workflows/python-app.yml
vendored
29
.github/workflows/python-app.yml
vendored
|
@ -1,29 +0,0 @@
|
|||
name: Python application
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SECRET_KEY: SECRET_KEY123
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:10.8
|
||||
ports:
|
||||
- 5432:5432
|
||||
# needed because the postgres container does not provide a healthcheck
|
||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: psycopg2 prerequisites
|
||||
run: sudo apt-get install python-dev libpq-dev
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install pytest-django
|
||||
- name: Run tests
|
||||
run: python manage.py test
|
151
.gitignore
vendored
151
.gitignore
vendored
|
@ -1,151 +0,0 @@
|
|||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
### VisualStudioCode ###
|
||||
.vscode/*
|
||||
*.code-workspace
|
||||
.idea/*
|
||||
.venv/*
|
||||
|
||||
### VisualStudioCode Patch ###
|
||||
# Ignore all local history of files
|
||||
.history
|
||||
.ionide
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
share/python-wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.nox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*.cover
|
||||
*.py,cover
|
||||
.hypothesis/
|
||||
.pytest_cache/
|
||||
cover/
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
db.sqlite3-journal
|
||||
|
||||
# Flask stuff:
|
||||
instance/
|
||||
.webassets-cache
|
||||
|
||||
# Scrapy stuff:
|
||||
.scrapy
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
.pybuilder/
|
||||
target/
|
||||
|
||||
# Jupyter Notebook
|
||||
.ipynb_checkpoints
|
||||
|
||||
# IPython
|
||||
profile_default/
|
||||
ipython_config.py
|
||||
|
||||
# pyenv
|
||||
# For a library or package, you might want to ignore these files since the code is
|
||||
# intended to run in multiple environments; otherwise, check them in:
|
||||
# .python-version
|
||||
|
||||
# pipenv
|
||||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
||||
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
||||
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
||||
# install all needed dependencies.
|
||||
#Pipfile.lock
|
||||
|
||||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
||||
__pypackages__/
|
||||
|
||||
# Celery stuff
|
||||
celerybeat-schedule
|
||||
celerybeat.pid
|
||||
|
||||
# SageMath parsed files
|
||||
*.sage.py
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.venv/*
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
.spyproject
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
# mkdocs documentation
|
||||
/site
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
.dmypy.json
|
||||
dmypy.json
|
||||
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
|
||||
# pytype static type analyzer
|
||||
.pytype/
|
||||
|
||||
# Cython debug symbols
|
||||
cython_debug/
|
||||
|
||||
node_modules/
|
33
README.md
33
README.md
|
@ -1,33 +0,0 @@
|
|||
# Wulkanowy-web
|
||||
🌋 Unofficial browser VULCAN UONET+ register client for both students and their parents
|
||||
|
||||
![GitHub Workflow Status](https://github.com/wulkanowy/wulkanowy-web/workflows/Python%20application/badge.svg)
|
||||
[![Discord](https://img.shields.io/discord/390889354199040011.svg?color=#33CD56)](https://discord.gg/vccAQBr)
|
||||
|
||||
# Development
|
||||
## 1. Install webpack and dependencies.
|
||||
```shell
|
||||
npm install webpack
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
## 2. Create .env and make migrations
|
||||
In the .env file put the code:
|
||||
```shell
|
||||
SECRET_KEY = writeanythinghere
|
||||
```
|
||||
After saving the files, we migrate with these commands:
|
||||
```shell
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
```
|
||||
and modify the .envsample file as you would the .env file
|
||||
THE SECRET KEY MUST BE THE SAME
|
||||
## 3. Start the server!
|
||||
```shell
|
||||
npm run dev
|
||||
python manage.py runserver
|
||||
```
|
||||
or if you run Windows you can run:
|
||||
```shell
|
||||
runserver.bat
|
||||
```
|
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,33 +0,0 @@
|
|||
import requests
|
||||
import json
|
||||
|
||||
def get_attendance(register_id, register_r, oun, s, date):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
attendance_lessons = requests.post(oun+'/FrekwencjaStatystykiPrzedmioty.mvc/Get', headers=headers, cookies=cookies)
|
||||
attendance_json_id = attendance_lessons.json()['data'][0]['Id']
|
||||
attendance = requests.post(oun+'/Frekwencja.mvc/Get', headers=headers, cookies=cookies, json={'idTypWpisuFrekwencji': attendance_json_id, 'data': date})
|
||||
|
||||
return [attendance.json(), attendance_lessons.json()]
|
|
@ -1,52 +0,0 @@
|
|||
import json
|
||||
import requests
|
||||
import re
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
def get_dashboard(register_id, register_r, s, diary_url, symbol):
|
||||
cookies = s
|
||||
if diary_url != 'http://cufs.fakelog.cf/':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
diary_url = 'http://uonetplus.vulcan.net.pl/'
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
diary_url = 'http://uonetplus.fakelog.cf/'
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
index = requests.get(f'{diary_url}{symbol}/Start.mvc/Index', headers=headers, cookies=cookies)
|
||||
permissions_value = re.search("permissions: '(.)*'", index.text)
|
||||
permissions_value = permissions_value.group()
|
||||
permissions_value = permissions_value.replace('permissions: ', '').replace("'", "")
|
||||
|
||||
json = {
|
||||
"permissions": permissions_value
|
||||
}
|
||||
|
||||
last_notes = requests.post(f'{diary_url}{symbol}/Start.mvc/GetLastNotes', headers=headers, cookies=cookies, json=json)
|
||||
free_days = requests.post(f'{diary_url}{symbol}/Start.mvc/GetFreeDays', headers=headers, cookies=cookies, json=json)
|
||||
lucky_number = requests.post(f'{diary_url}{symbol}/Start.mvc/GetKidsLuckyNumbers', headers=headers, cookies=cookies, json=json)
|
||||
|
||||
return_data = {
|
||||
"last_notes": last_notes.json(),
|
||||
"free_days": free_days.json(),
|
||||
"lucky_number": lucky_number.json()
|
||||
}
|
||||
|
||||
return return_data
|
|
@ -1,31 +0,0 @@
|
|||
import json
|
||||
import requests
|
||||
|
||||
def get_exams(register_id, register_r, oun, s, date, school_year):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
exams = requests.post(oun+'/Sprawdziany.mvc/Get', headers=headers, cookies=cookies, json={'data': date, 'rokSzkolny': school_year})
|
||||
|
||||
return exams.json()
|
|
@ -1,31 +0,0 @@
|
|||
import json
|
||||
import requests
|
||||
|
||||
def get_grades(register_id, register_r, oun, s):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
grades = requests.post(oun+'/Oceny.mvc/Get', headers=headers, cookies=cookies, json={'okres': register_id})
|
||||
|
||||
return grades.json()
|
|
@ -1,31 +0,0 @@
|
|||
import requests
|
||||
import json
|
||||
|
||||
def get_homeworks(register_id, register_r, oun, s, date, school_year):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headres = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
'User-Agent': 'Wulkanowy-web :)'
|
||||
}
|
||||
|
||||
homeworks = requests.post(oun+'/Homework.mvc/Get', headers=headres, cookies=cookies, json={'schoolYear': school_year, 'date': date, 'statusFilter': '-1'})
|
||||
|
||||
return homeworks.json()
|
|
@ -1,199 +0,0 @@
|
|||
import requests
|
||||
import json
|
||||
import calendar
|
||||
import time
|
||||
import re
|
||||
|
||||
def get_received_messages(register_id, register_r, oun, s, date, school_year, symbol):
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
now = calendar.timegm(time.gmtime())
|
||||
|
||||
if oun == 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
received_messages = requests.get(f'http://uonetplus-uzytkownik.fakelog.cf/{symbol}/Wiadomosc.mvc/GetInboxMessages?_dc={now}&dataOd=&dataDo=&page=1&start=0&limit=25', headers=headers, cookies=s)
|
||||
else:
|
||||
received_messages = requests.get(f'https://uonetplus-uzytkownik.vulcan.net.pl/{symbol}/Wiadomosc.mvc/GetInboxMessages?_dc={now}&dataOd=&dataDo=&page=1&start=0&limit=25', headers=headers, cookies=s)
|
||||
|
||||
return received_messages.json()
|
||||
|
||||
def get_sent_messages(register_id, register_r, oun, s, date, school_year, symbol):
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
now = calendar.timegm(time.gmtime())
|
||||
|
||||
if oun == 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
sent_messages = requests.get(f'http://uonetplus-uzytkownik.fakelog.cf/{symbol}/Wiadomosc.mvc/GetInboxMessages?_dc={now}&dataOd=&dataDo=&page=1&start=0&limit=25', headers=headers, cookies=s)
|
||||
else:
|
||||
sent_messages = requests.get(f'https://uonetplus-uzytkownik.vulcan.net.pl/{symbol}/Wiadomosc.mvc/GetInboxMessages?_dc={now}&dataOd=&dataDo=&page=1&start=0&limit=25', headers=headers, cookies=s)
|
||||
|
||||
return sent_messages.json()
|
||||
|
||||
def get_deleted_messages(register_id, register_r, oun, s, date, school_year, symbol):
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate, br7',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
now = calendar.timegm(time.gmtime())
|
||||
|
||||
if oun == 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
deleted_messages = requests.get(f'http://uonetplus-uzytkownik.fakelog.cf/{symbol}/Wiadomosc.mvc/GetOutboxMessages?_dc={now}&dataOd=&dataDo=&page=1&start=0&limit=25', headers=headers, cookies=s)
|
||||
else:
|
||||
deleted_messages = requests.get(f'https://uonetplus-uzytkownik.vulcan.net.pl/{symbol}/Wiadomosc.mvc/GetOutboxMessages?_dc={now}&dataOd=&dataDo=&page=1&start=0&limit=25', headers=headers, cookies=s)
|
||||
|
||||
return deleted_messages.json()
|
||||
|
||||
def get_recipients(register_id, register_r, oun, s, date, school_year, symbol):
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
if oun == 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
link = f'http://uonetplus-uzytkownik.fakelog.cf/{symbol}'
|
||||
else:
|
||||
link = f'https://uonetplus-uzytkownik.vulcan.net.pl/{symbol}'
|
||||
|
||||
get_jednostki = requests.get(f'{link}/NowaWiadomosc.mvc/GetJednostkiUzytkownika', headers=headers, cookies=s)
|
||||
id_jednostka = get_jednostki.json()['data'][0]['IdJednostkaSprawozdawcza']
|
||||
data = {
|
||||
"paramsVo":{"IdJednostkaSprawozdawcza":id_jednostka, 'Rola': 2}
|
||||
}
|
||||
get_addressee = requests.post(f'{link}/Adresaci.mvc/GetAddressee', headers=headers, cookies=s, json=data)
|
||||
|
||||
return {'addressee': get_addressee.json(), 'unitId': id_jednostka}
|
||||
|
||||
def send_message(register_id, register_r, oun, s, date, school_year, symbol, send_data):
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accet': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)",
|
||||
'Content-Type': 'application/json',
|
||||
'TE': "Trailers"
|
||||
}
|
||||
|
||||
if oun == 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
link = f'http://uonetplus-uzytkownik.fakelog.cf/{symbol}'
|
||||
else:
|
||||
link = f'https://uonetplus-uzytkownik.vulcan.net.pl/{symbol}'
|
||||
|
||||
student_data = register_r['data'][0]['UczenNazwisko']+' '+register_r['data'][0]['UczenImie']
|
||||
|
||||
sess = requests.Session()
|
||||
|
||||
sess.cookies.update(s)
|
||||
sess.headers.update(headers)
|
||||
|
||||
index = sess.get(link)
|
||||
|
||||
antiForgeryToken = re.search("antiForgeryToken: '(.)*'", index.text)
|
||||
antiForgeryToken = antiForgeryToken.group()
|
||||
antiForgeryToken = antiForgeryToken.replace('antiForgeryToken: ', '').replace("'", "")
|
||||
|
||||
appGuid = re.search("appGuid: '(.)*'", index.text)
|
||||
appGuid = appGuid.group()
|
||||
appGuid = appGuid.replace('appGuid: ', '').replace("'", "")
|
||||
|
||||
sess.headers.update({
|
||||
'X-V-RequestVerificationToken': antiForgeryToken,
|
||||
'X-V-AppGuid': appGuid
|
||||
})
|
||||
|
||||
payload = {
|
||||
"incomming": {
|
||||
"Id": 0,
|
||||
"Nieprzeczytane": 0,
|
||||
"Przeczytane": 0,
|
||||
"Nieprzeczytana": False,
|
||||
"FolderWiadomosci": 0,
|
||||
"WiadomoscPowitalna": False,
|
||||
"Data": None,
|
||||
"Tresc": send_data['content'],
|
||||
"Temat": send_data['subject'],
|
||||
"IdWiadomosci": 0,
|
||||
"HasZalaczniki": False,
|
||||
"Zalaczniki": "",
|
||||
"Adresaci": [
|
||||
{
|
||||
"Id": send_data['data']['Id'],
|
||||
"IdReceiver": "",
|
||||
"Name": send_data['data']['Name'],
|
||||
"Role": send_data['data']['Role'],
|
||||
"UnitId": send_data['data']['UnitId'],
|
||||
"IdLogin": send_data['data']['IdLogin'],
|
||||
"PushWiadomosc": False,
|
||||
"Hash": send_data['data']['Hash'],
|
||||
"Date": None,
|
||||
"IsMarked": False
|
||||
}
|
||||
],
|
||||
"WyslijJako": student_data,
|
||||
"WiadomoscAdresatLogin": "",
|
||||
"IdWiadomoscAdresatLogin": None,
|
||||
"RolaNadawcy": 0,
|
||||
"NieprzeczytanePrzeczytane": "0/0",
|
||||
"NadawcaNazwa": "Brak nadawcy",
|
||||
"IdNadawca": 0,
|
||||
"AdresaciNazwa": "Brak adresata"
|
||||
}
|
||||
}
|
||||
|
||||
send = sess.post(f'{link}/NowaWiadomosc.mvc/InsertWiadomosc', data=json.dumps(payload))
|
||||
|
||||
return send.json()
|
||||
|
||||
def get_message_content(register_id, register_r, oun, s, date, school_year, symbol, message_id):
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
if oun == 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
link = f'http://uonetplus-uzytkownik.fakelog.cf/{symbol}'
|
||||
else:
|
||||
link = f'https://uonetplus-uzytkownik.vulcan.net.pl/{symbol}'
|
||||
|
||||
sess = requests.Session()
|
||||
|
||||
sess.cookies.update(s)
|
||||
sess.headers.update(headers)
|
||||
|
||||
index = sess.get(link)
|
||||
|
||||
antiForgeryToken = re.search("antiForgeryToken: '(.)*'", index.text)
|
||||
antiForgeryToken = antiForgeryToken.group()
|
||||
antiForgeryToken = antiForgeryToken.replace('antiForgeryToken: ', '').replace("'", "")
|
||||
|
||||
appGuid = re.search("appGuid: '(.)*'", index.text)
|
||||
appGuid = appGuid.group()
|
||||
appGuid = appGuid.replace('appGuid: ', '').replace("'", "")
|
||||
|
||||
sess.headers.update({
|
||||
'X-V-RequestVerificationToken': antiForgeryToken,
|
||||
'X-V-AppGuid': appGuid
|
||||
})
|
||||
|
||||
payload = {
|
||||
'messageId': message_id
|
||||
}
|
||||
|
||||
content = sess.post(f'{link}/Wiadomosc.mvc/GetInboxMessageDetails', data=json.dumps(payload))
|
||||
|
||||
return content.json()
|
|
@ -1,60 +0,0 @@
|
|||
import json
|
||||
import requests
|
||||
|
||||
def get_registered_devices(register_id, register_r, oun, s):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
registered = requests.post(oun+'/ZarejestrowaneUrzadzenia.mvc/Get', headers=headers, cookies=cookies)
|
||||
|
||||
return registered.json()
|
||||
|
||||
def register_device(register_id, register_r, oun, s):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
register_data = requests.post(oun+'/RejestracjaUrzadzeniaToken.mvc/Get', headers=headers, cookies=cookies)
|
||||
|
||||
return register_data.json()
|
|
@ -1,31 +0,0 @@
|
|||
import json
|
||||
import requests
|
||||
|
||||
def get_notes(register_id, register_r, oun, s):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
notes = requests.post(oun+'/UwagiIOsiagniecia.mvc/Get', headers=headers, cookies=cookies)
|
||||
|
||||
return notes.json()
|
|
@ -1,31 +0,0 @@
|
|||
import json
|
||||
import requests
|
||||
|
||||
def get_school_data(register_id, register_r, oun, s):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
school_data = requests.post(oun+'/SzkolaINauczyciele.mvc/Get', headers=headers, cookies=cookies)
|
||||
|
||||
return school_data.json()
|
|
@ -1,32 +0,0 @@
|
|||
import json
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
def get_timetable(register_id, register_r, oun, s, date):
|
||||
cookies = s
|
||||
if oun != 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458':
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyDziennikWychowankowie": f"{register_r['data'][0]['IdWychowankowieDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
else:
|
||||
cookies.update({
|
||||
"biezacyRokSzkolny": f"{register_r['data'][0]['DziennikRokSzkolny']}",
|
||||
"idBiezacyDziennik": f"{register_r['data'][0]['IdDziennik']}",
|
||||
"idBiezacyDziennikPrzedszkole": f"{register_r['data'][0]['IdPrzedszkoleDziennik']}",
|
||||
"idBiezacyUczen": f"{register_r['data'][0]['IdUczen']}"
|
||||
})
|
||||
|
||||
headers = {
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
"User-Agent": "Wulkanowy-web :)"
|
||||
}
|
||||
|
||||
timetable = requests.post(oun+'/PlanZajec.mvc/Get', headers=headers, cookies=cookies, json={'data': date})
|
||||
|
||||
return timetable.json()
|
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,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -1,5 +0,0 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class WulkanowyConfig(AppConfig):
|
||||
name = 'Wulkanowy'
|
|
@ -1,9 +0,0 @@
|
|||
import json
|
||||
from cryptography.fernet import Fernet
|
||||
|
||||
def decrypt_cookies(s, key):
|
||||
s = bytes(s, 'utf-8')
|
||||
key = Fernet(key)
|
||||
s = key.decrypt(s)
|
||||
s = json.loads(s.decode('utf-8'))
|
||||
return s
|
|
@ -1,2 +0,0 @@
|
|||
from django import forms
|
||||
|
83
app/login.py
83
app/login.py
|
@ -1,83 +0,0 @@
|
|||
import os
|
||||
import sys
|
||||
import requests
|
||||
from django.contrib.sessions.models import Session
|
||||
from django.http import JsonResponse
|
||||
from django import template
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.shortcuts import render
|
||||
import json
|
||||
import requests
|
||||
from django.shortcuts import redirect
|
||||
from bs4 import BeautifulSoup
|
||||
import datetime
|
||||
|
||||
def sender(url, loginName, Password, params_names, fail_phrase, symbol, diary_url, s):
|
||||
data = [params_names[0], loginName, params_names[1], Password]
|
||||
|
||||
sender_return = send(url, data, fail_phrase, diary_url, symbol, s)
|
||||
if sender_return == {'success': False}:
|
||||
return {'success': False}
|
||||
else:
|
||||
return sender_return
|
||||
|
||||
def send(url, data, fail, diary_url, symbol, s):
|
||||
ready_data = {data[0]: data[1], data[2]: data[3]}
|
||||
page = s.post(url=url, data=ready_data)
|
||||
if fail in page.text:
|
||||
return {'success': False}
|
||||
else:
|
||||
if diary_url == 'http://cufs.fakelog.cf/':
|
||||
page = s.get('http://cufs.fakelog.cf/powiatwulkanowy/FS/LS?wa=wsignin1.0&wtrealm=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx&wctx=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx')
|
||||
bs = BeautifulSoup(page.text, 'html.parser')
|
||||
wa = bs.find('input', {'name': 'wa'})['value']
|
||||
cert = bs.find('input', {'name': 'wresult'})['value']
|
||||
wctx = bs.find('input', {'name': 'wctx'})['value']
|
||||
|
||||
crtr = s.post(url=wctx, headers={"User-Agent": "Wulkanowy-web :)"}, data={"wa": wa, "wresult": cert, "wctx": wctx})
|
||||
|
||||
bs = BeautifulSoup(crtr.content, 'html.parser')
|
||||
for a in bs.find_all('a', title='Uczeń'):
|
||||
oun = a['href']
|
||||
break
|
||||
|
||||
if diary_url == 'http://cufs.fakelog.cf/':
|
||||
oun = 'http://uonetplus-uczen.fakelog.cf/powiatwulkanowy/123458'
|
||||
|
||||
cookies = get_cookies(symbol, oun, s, diary_url)
|
||||
|
||||
return cookies
|
||||
|
||||
def get_cookies(symbol, oun, s, diary_url):
|
||||
register_r = s.post(oun+'/UczenDziennik.mvc/Get')
|
||||
register_id = register_r.json()['data'][0]['Okresy'][0]['Id']
|
||||
|
||||
now = datetime.datetime.now()
|
||||
weekday = now.weekday()
|
||||
|
||||
for x in range(7):
|
||||
if weekday == x:
|
||||
now = now - datetime.timedelta(days=x)
|
||||
|
||||
day = now.day
|
||||
month = now.month
|
||||
year = now.year
|
||||
|
||||
date = datetime.date(year, month, day).isoformat()
|
||||
|
||||
date = f'{date}T00:00:00'
|
||||
|
||||
school_year = register_r.json()['data'][0]['DziennikRokSzkolny']
|
||||
|
||||
data = {
|
||||
'register_id': register_id,
|
||||
'register_r': register_r.json(),
|
||||
'oun': oun,
|
||||
'date': str(date),
|
||||
'school_year': school_year,
|
||||
'symbol': symbol,
|
||||
's': s.cookies.get_dict(),
|
||||
'diary_url': diary_url
|
||||
}
|
||||
|
||||
return data
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
from django.db import models
|
|
@ -1,3 +0,0 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
306
app/views.py
306
app/views.py
|
@ -1,306 +0,0 @@
|
|||
from requests import get
|
||||
from cryptography.fernet import Fernet
|
||||
from django.contrib.sessions.backends.db import SessionStore
|
||||
from django.http import HttpResponse, JsonResponse
|
||||
from django.shortcuts import render
|
||||
import json
|
||||
import requests
|
||||
from django.core import serializers
|
||||
from django.shortcuts import redirect
|
||||
from django.contrib.sessions.models import Session
|
||||
from .login import sender
|
||||
from .API.grades import get_grades
|
||||
from .API.exams import get_exams
|
||||
from .API.timetable import get_timetable
|
||||
from .API.notes import get_notes
|
||||
from .API.attendance import get_attendance
|
||||
from .API.messages import get_received_messages, get_sent_messages, get_deleted_messages, get_recipients, send_message, get_message_content
|
||||
from .API.homeworks import get_homeworks
|
||||
from .API.mobile_access import get_registered_devices, register_device
|
||||
from .API.school_data import get_school_data
|
||||
from .API.dashboard import get_dashboard
|
||||
from .decrypt import decrypt_cookies
|
||||
|
||||
#API
|
||||
def login(request, *args, **kwargs):
|
||||
data = json.loads(request.body)
|
||||
loginName = data['loginName']
|
||||
Password = data['Password']
|
||||
symbol = data['Symbol']
|
||||
diary_url = data['diaryUrl']
|
||||
if diary_url != 'http://cufs.fakelog.cf/':
|
||||
link = f'{diary_url}{symbol}/Account/LogOn?ReturnUrl=%2F{symbol}%2FFS%2FLS%3Fwa%3Dwsignin1.0%26wtrealm%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252f{symbol}%252fLoginEndpoint.aspx%26wctx%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252f{symbol}%252fLoginEndpoint.aspx'
|
||||
else:
|
||||
link = 'http://cufs.fakelog.cf/powiatwulkanowy/FS/LS?wa=wsignin1.0&wtrealm=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx&wctx=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx'
|
||||
s = requests.Session()
|
||||
sender_return = sender(link, loginName, Password, ('loginName', 'Password'), 'Zła nazwa użytkownika lub hasło', symbol, diary_url, s)
|
||||
if sender_return == {'success': False}:
|
||||
data_response = {
|
||||
'success': False
|
||||
}
|
||||
else:
|
||||
key = Fernet.generate_key()
|
||||
rkey = Fernet(key)
|
||||
|
||||
request.session[request.session.session_key] = key.decode('utf-8')
|
||||
sender_return['s'] = json.dumps(sender_return['s'])
|
||||
sender_return['s'] = sender_return['s'].encode()
|
||||
sender_return['s'] = rkey.encrypt(sender_return['s'])
|
||||
sender_return['s'] = sender_return['s'].decode('utf-8')
|
||||
|
||||
request.session['is_logged'] = True
|
||||
data_response = {'success': True, 'data': sender_return}
|
||||
return JsonResponse(data_response)
|
||||
|
||||
def grades(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
grades = get_grades(register_id, register_r, oun, s)
|
||||
return JsonResponse(grades)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def timetable(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
timetable = get_timetable(register_id, register_r, oun, s, date)
|
||||
return JsonResponse(timetable)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def exams(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
school_year = data['data']['school_year']
|
||||
exams = get_exams(register_id, register_r, oun, s, date, school_year)
|
||||
return JsonResponse(exams)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def homeworks(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
school_year = data['data']['school_year']
|
||||
homeworks = get_homeworks(register_id, register_r, oun, s, date, school_year)
|
||||
return JsonResponse(homeworks)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def attendance(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
attendance = get_attendance(register_id, register_r, oun, s, date)
|
||||
return JsonResponse(attendance, safe=False)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def notes(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
notes = get_notes(register_id, register_r, oun, s)
|
||||
return JsonResponse(notes)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def registered_devices(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
registered = get_registered_devices(register_id, register_r, oun, s)
|
||||
return JsonResponse(registered)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def register_device_(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
register_data = register_device(register_id, register_r, oun, s)
|
||||
return JsonResponse(register_data)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def received_messages(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
school_year = data['data']['school_year']
|
||||
symbol = data['data']['symbol']
|
||||
received_messages = get_received_messages(register_id, register_r, oun, s, date, school_year, symbol)
|
||||
return JsonResponse(received_messages)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def sent_messages(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
school_year = data['data']['school_year']
|
||||
symbol = data['data']['symbol']
|
||||
sent_messages = get_sent_messages(register_id, register_r, oun, s, date, school_year, symbol)
|
||||
return JsonResponse(sent_messages)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def deleted_messages(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
school_year = data['data']['school_year']
|
||||
symbol = data['data']['symbol']
|
||||
deleted_messages = get_deleted_messages(register_id, register_r, oun, s, date, school_year, symbol)
|
||||
return JsonResponse(deleted_messages)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def recipients(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = data['data']['date']
|
||||
school_year = data['data']['school_year']
|
||||
symbol = data['data']['symbol']
|
||||
recipients = get_recipients(register_id, register_r, oun, s, date, school_year, symbol)
|
||||
return JsonResponse(recipients)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def school_data(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
oun = data['data']['oun']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
school_data = get_school_data(register_id, register_r, oun, s)
|
||||
return JsonResponse(school_data)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def dashboard(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
register_id = data['data']['register_id']
|
||||
register_r = data['data']['register_r']
|
||||
s = data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
diary_url = data['data']['diary_url']
|
||||
symbol = data['data']['symbol']
|
||||
dashboard = get_dashboard(register_id, register_r, s, diary_url, symbol)
|
||||
return JsonResponse(dashboard)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def send(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
cookies_data = json.loads(data['cookies_data'])
|
||||
register_id = cookies_data['data']['register_id']
|
||||
register_r = cookies_data['data']['register_r']
|
||||
oun = cookies_data['data']['oun']
|
||||
s = cookies_data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = cookies_data['data']['date']
|
||||
school_year = cookies_data['data']['school_year']
|
||||
symbol = cookies_data['data']['symbol']
|
||||
send_data = {'data': data['data'], 'subject': data['subject'], 'content': data['content']}
|
||||
send = send_message(register_id, register_r, oun, s, date, school_year, symbol, send_data)
|
||||
return JsonResponse(send, safe=False)
|
||||
else:
|
||||
return redirect('../')
|
||||
|
||||
def message_content(request, *args, **kwargs):
|
||||
if request.session.has_key('is_logged'):
|
||||
data = json.loads(request.body)
|
||||
cookies_data = json.loads(data['cookies_data'])
|
||||
register_id = cookies_data['data']['register_id']
|
||||
register_r = cookies_data['data']['register_r']
|
||||
oun = cookies_data['data']['oun']
|
||||
s = cookies_data['data']['s']
|
||||
key = bytes(request.session[request.session.session_key], 'utf-8')
|
||||
s = decrypt_cookies(s, key)
|
||||
date = cookies_data['data']['date']
|
||||
school_year = cookies_data['data']['school_year']
|
||||
symbol = cookies_data['data']['symbol']
|
||||
message_id = data['message_id']
|
||||
content = get_message_content(register_id, register_r, oun, s, date, school_year, symbol, message_id)
|
||||
return JsonResponse(content, safe=False)
|
||||
else:
|
||||
return redirect('../')
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -1,5 +0,0 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class FrontendConfig(AppConfig):
|
||||
name = 'frontend'
|
30
frontend/files/js/dist/out-attedance.js
vendored
30
frontend/files/js/dist/out-attedance.js
vendored
|
@ -1,30 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!******************************************!*\
|
||||
!*** ./static/frontend/js/attendance.js ***!
|
||||
\******************************************/
|
||||
var attendance_ = document.querySelector('#attendance_');
|
||||
myStorage = window.sessionStorage;
|
||||
|
||||
var getAttendance = function getAttendance() {
|
||||
document.querySelector('#content').innerHTML = 'Here is attendance (in my imagination)';
|
||||
cookies_data = sessionStorage.getItem('cookies_data');
|
||||
csrfcookie_ = sessionStorage.getItem('csrfcookie');
|
||||
fetch(url = '../api/attendance', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie_
|
||||
},
|
||||
body: cookies_data
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
console.log(data);
|
||||
});
|
||||
};
|
||||
|
||||
attendance_.addEventListener('click', getAttendance);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-attedance.js.map
|
1
frontend/files/js/dist/out-attedance.js.map
vendored
1
frontend/files/js/dist/out-attedance.js.map
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["webpack://wulkanowy-web/./static/frontend/js/attendance.js"],"names":["attendance_","document","querySelector","myStorage","window","sessionStorage","getAttendance","innerHTML","cookies_data","getItem","csrfcookie_","fetch","url","method","mode","headers","body","then","response","json","data","console","log","addEventListener"],"mappings":";;;;AAAA,IAAMA,WAAW,GAAGC,QAAQ,CAACC,aAAT,CAAuB,cAAvB,CAApB;AAEAC,SAAS,GAAGC,MAAM,CAACC,cAAnB;;AAEA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AACxBL,UAAQ,CAACC,aAAT,CAAuB,UAAvB,EAAmCK,SAAnC,GAA+C,wCAA/C;AACAC,cAAY,GAAGH,cAAc,CAACI,OAAf,CAAuB,cAAvB,CAAf;AACAC,aAAW,GAAGL,cAAc,CAACI,OAAf,CAAuB,YAAvB,CAAd;AACAE,OAAK,CAACC,GAAG,GAAG,mBAAP,EAA4B;AAC7BC,UAAM,EAAE,MADqB;AAE7BC,QAAI,EAAE,MAFuB;AAG7BC,WAAO,EAAE;AACL,sBAAgB,kBADX;AAEL,qBAAeL;AAFV,KAHoB;AAO7BM,QAAI,EAAER;AAPuB,GAA5B,CAAL,CAQGS,IARH,CAQQ,UAAAC,QAAQ;AAAA,WAAIA,QAAQ,CAACC,IAAT,EAAJ;AAAA,GARhB,EAQqCF,IARrC,CAQ0C,UAAAG,IAAI,EAAI;AAC9CC,WAAO,CAACC,GAAR,CAAYF,IAAZ;AACH,GAVD;AAWH,CAfD;;AAiBApB,WAAW,CAACuB,gBAAZ,CAA6B,OAA7B,EAAsCjB,aAAtC,E","file":"out-attedance.js","sourcesContent":["const attendance_ = document.querySelector('#attendance_');\n\nmyStorage = window.sessionStorage;\n\nconst getAttendance = () => {\n document.querySelector('#content').innerHTML = 'Here is attendance (in my imagination)';\n cookies_data = sessionStorage.getItem('cookies_data');\n csrfcookie_ = sessionStorage.getItem('csrfcookie');\n fetch(url = '../api/attendance', {\n method: 'POST',\n mode: 'cors',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRFToken': csrfcookie_\n },\n body: cookies_data\n }).then(response => response.json()).then(data => {\n console.log(data);\n })\n}\n\nattendance_.addEventListener('click', getAttendance);"],"sourceRoot":""}
|
30
frontend/files/js/dist/out-exams.js
vendored
30
frontend/files/js/dist/out-exams.js
vendored
|
@ -1,30 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!*************************************!*\
|
||||
!*** ./static/frontend/js/exams.js ***!
|
||||
\*************************************/
|
||||
var exams_ = document.querySelector('#exams_');
|
||||
myStorage = window.sessionStorage;
|
||||
|
||||
var getExams = function getExams() {
|
||||
document.querySelector('#content').innerHTML = 'Here is exams (in my imagination)';
|
||||
cookies_data = sessionStorage.getItem('cookies_data');
|
||||
csrfcookie_ = sessionStorage.getItem('csrfcookie');
|
||||
fetch(url = '../api/exams', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie_
|
||||
},
|
||||
body: cookies_data
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
console.log(data);
|
||||
});
|
||||
};
|
||||
|
||||
exams_.addEventListener('click', getExams);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-exams.js.map
|
1
frontend/files/js/dist/out-exams.js.map
vendored
1
frontend/files/js/dist/out-exams.js.map
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["webpack://wulkanowy-web/./static/frontend/js/exams.js"],"names":["exams_","document","querySelector","myStorage","window","sessionStorage","getExams","innerHTML","cookies_data","getItem","csrfcookie_","fetch","url","method","mode","headers","body","then","response","json","data","console","log","addEventListener"],"mappings":";;;;AAAA,IAAMA,MAAM,GAAGC,QAAQ,CAACC,aAAT,CAAuB,SAAvB,CAAf;AAEAC,SAAS,GAAGC,MAAM,CAACC,cAAnB;;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,GAAM;AACnBL,UAAQ,CAACC,aAAT,CAAuB,UAAvB,EAAmCK,SAAnC,GAA+C,mCAA/C;AACAC,cAAY,GAAGH,cAAc,CAACI,OAAf,CAAuB,cAAvB,CAAf;AACAC,aAAW,GAAGL,cAAc,CAACI,OAAf,CAAuB,YAAvB,CAAd;AACAE,OAAK,CAACC,GAAG,GAAG,cAAP,EAAuB;AACxBC,UAAM,EAAE,MADgB;AAExBC,QAAI,EAAE,MAFkB;AAGxBC,WAAO,EAAE;AACL,sBAAgB,kBADX;AAEL,qBAAeL;AAFV,KAHe;AAOxBM,QAAI,EAAER;AAPkB,GAAvB,CAAL,CAQGS,IARH,CAQQ,UAAAC,QAAQ;AAAA,WAAIA,QAAQ,CAACC,IAAT,EAAJ;AAAA,GARhB,EAQqCF,IARrC,CAQ0C,UAAAG,IAAI,EAAI;AAC9CC,WAAO,CAACC,GAAR,CAAYF,IAAZ;AACH,GAVD;AAWH,CAfD;;AAiBApB,MAAM,CAACuB,gBAAP,CAAwB,OAAxB,EAAiCjB,QAAjC,E","file":"out-exams.js","sourcesContent":["const exams_ = document.querySelector('#exams_');\n\nmyStorage = window.sessionStorage;\n\nconst getExams = () => {\n document.querySelector('#content').innerHTML = 'Here is exams (in my imagination)';\n cookies_data = sessionStorage.getItem('cookies_data');\n csrfcookie_ = sessionStorage.getItem('csrfcookie');\n fetch(url = '../api/exams', {\n method: 'POST',\n mode: 'cors',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRFToken': csrfcookie_\n },\n body: cookies_data\n }).then(response => response.json()).then(data => {\n console.log(data)\n })\n}\n\nexams_.addEventListener('click', getExams);"],"sourceRoot":""}
|
134
frontend/files/js/dist/out-grades.js
vendored
134
frontend/files/js/dist/out-grades.js
vendored
File diff suppressed because one or more lines are too long
1
frontend/files/js/dist/out-grades.js.map
vendored
1
frontend/files/js/dist/out-grades.js.map
vendored
File diff suppressed because one or more lines are too long
30
frontend/files/js/dist/out-homeworks.js
vendored
30
frontend/files/js/dist/out-homeworks.js
vendored
|
@ -1,30 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!*****************************************!*\
|
||||
!*** ./static/frontend/js/homeworks.js ***!
|
||||
\*****************************************/
|
||||
var homeworks_ = document.querySelector('#homeworks_');
|
||||
myStorage = window.sessionStorage;
|
||||
|
||||
var getHomeworks = function getHomeworks() {
|
||||
document.querySelector('#content').innerHTML = 'Here is homeworks (in my imagination)';
|
||||
cookies_data = sessionStorage.getItem('cookies_data');
|
||||
csrfcookie_ = sessionStorage.getItem('csrfcookie');
|
||||
fetch(url = '../api/homeworks', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie_
|
||||
},
|
||||
body: cookies_data
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
console.log(data);
|
||||
});
|
||||
};
|
||||
|
||||
homeworks_.addEventListener('click', getHomeworks);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-homeworks.js.map
|
1
frontend/files/js/dist/out-homeworks.js.map
vendored
1
frontend/files/js/dist/out-homeworks.js.map
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["webpack://wulkanowy-web/./static/frontend/js/homeworks.js"],"names":["homeworks_","document","querySelector","myStorage","window","sessionStorage","getHomeworks","innerHTML","cookies_data","getItem","csrfcookie_","fetch","url","method","mode","headers","body","then","response","json","data","console","log","addEventListener"],"mappings":";;;;AAAA,IAAMA,UAAU,GAAGC,QAAQ,CAACC,aAAT,CAAuB,aAAvB,CAAnB;AAEAC,SAAS,GAAGC,MAAM,CAACC,cAAnB;;AAEA,IAAMC,YAAY,GAAG,SAAfA,YAAe,GAAM;AACvBL,UAAQ,CAACC,aAAT,CAAuB,UAAvB,EAAmCK,SAAnC,GAA+C,uCAA/C;AACAC,cAAY,GAAGH,cAAc,CAACI,OAAf,CAAuB,cAAvB,CAAf;AACAC,aAAW,GAAGL,cAAc,CAACI,OAAf,CAAuB,YAAvB,CAAd;AACAE,OAAK,CAACC,GAAG,GAAG,kBAAP,EAA2B;AAC5BC,UAAM,EAAE,MADoB;AAE5BC,QAAI,EAAE,MAFsB;AAG5BC,WAAO,EAAE;AACL,sBAAgB,kBADX;AAEL,qBAAeL;AAFV,KAHmB;AAO5BM,QAAI,EAAER;AAPsB,GAA3B,CAAL,CAQGS,IARH,CAQQ,UAAAC,QAAQ;AAAA,WAAIA,QAAQ,CAACC,IAAT,EAAJ;AAAA,GARhB,EAQqCF,IARrC,CAQ0C,UAAAG,IAAI,EAAI;AAC9CC,WAAO,CAACC,GAAR,CAAYF,IAAZ;AACH,GAVD;AAWH,CAfD;;AAiBApB,UAAU,CAACuB,gBAAX,CAA4B,OAA5B,EAAqCjB,YAArC,E","file":"out-homeworks.js","sourcesContent":["const homeworks_ = document.querySelector('#homeworks_');\n\nmyStorage = window.sessionStorage;\n\nconst getHomeworks = () => {\n document.querySelector('#content').innerHTML = 'Here is homeworks (in my imagination)';\n cookies_data = sessionStorage.getItem('cookies_data');\n csrfcookie_ = sessionStorage.getItem('csrfcookie');\n fetch(url = '../api/homeworks', {\n method: 'POST',\n mode: 'cors',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRFToken': csrfcookie_\n },\n body: cookies_data\n }).then(response => response.json()).then(data => {\n console.log(data);\n })\n}\n\nhomeworks_.addEventListener('click', getHomeworks);"],"sourceRoot":""}
|
80
frontend/files/js/dist/out-login.js
vendored
80
frontend/files/js/dist/out-login.js
vendored
|
@ -1,80 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!*************************************!*\
|
||||
!*** ./static/frontend/js/login.js ***!
|
||||
\*************************************/
|
||||
var button = document.querySelector('#button');
|
||||
|
||||
var login = function login() {
|
||||
var loginName = document.querySelector('#id_loginName').value;
|
||||
var Password = document.querySelector('#id_Password').value;
|
||||
var symbol = document.querySelector('#id_Symbol').value;
|
||||
var diary = document.querySelector('#id_diary').value;
|
||||
|
||||
if (loginName != '' && Password != '' && symbol != '') {
|
||||
switch (diary) {
|
||||
case 'Fakelog':
|
||||
var diaryUrl = 'http://cufs.fakelog.cf/';
|
||||
sessionStorage.setItem('diary_url', 'http://cufs.fakelog.cf/');
|
||||
break;
|
||||
|
||||
case 'Vulcan UONET+':
|
||||
var diaryUrl = 'https://cufs.vulcan.net.pl/';
|
||||
sessionStorage.setItem('diary_url', 'https://cufs.vulcan.net.pl/');
|
||||
break;
|
||||
}
|
||||
|
||||
data = {
|
||||
'loginName': loginName,
|
||||
'Password': Password,
|
||||
'Symbol': symbol,
|
||||
'diaryUrl': diaryUrl
|
||||
};
|
||||
fetch(url = 'api/login', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie()
|
||||
},
|
||||
body: JSON.stringify(data)
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
if (data['success']) {
|
||||
myStorage = window.sessionStorage;
|
||||
sessionStorage.setItem('cookies_data', JSON.stringify(data));
|
||||
sessionStorage.setItem('csrfcookie', csrfcookie());
|
||||
sessionStorage.setItem('email', document.querySelector('#id_loginName').value);
|
||||
sessionStorage.setItem('symbol', document.querySelector('#id_Symbol').value);
|
||||
window.location.href = "/content/";
|
||||
} else {
|
||||
document.querySelector('#error').innerHTML = 'Nieprawidłowy login, hasło lub symbol';
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var csrfcookie = function csrfcookie() {
|
||||
var cookieValue = null,
|
||||
name = 'csrftoken';
|
||||
|
||||
if (document.cookie && document.cookie !== '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = cookies[i].trim();
|
||||
|
||||
if (cookie.substring(0, name.length + 1) == name + '=') {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return cookieValue;
|
||||
};
|
||||
|
||||
button.addEventListener('click', login);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-login.js.map
|
1
frontend/files/js/dist/out-login.js.map
vendored
1
frontend/files/js/dist/out-login.js.map
vendored
File diff suppressed because one or more lines are too long
248
frontend/files/js/dist/out-messages.js
vendored
248
frontend/files/js/dist/out-messages.js
vendored
File diff suppressed because one or more lines are too long
1
frontend/files/js/dist/out-messages.js.map
vendored
1
frontend/files/js/dist/out-messages.js.map
vendored
File diff suppressed because one or more lines are too long
51
frontend/files/js/dist/out-mobile_access.js
vendored
51
frontend/files/js/dist/out-mobile_access.js
vendored
|
@ -1,51 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!*********************************************!*\
|
||||
!*** ./static/frontend/js/mobile_access.js ***!
|
||||
\*********************************************/
|
||||
var registered_ = document.querySelector('#mobile_access_');
|
||||
myStorage = window.sessionStorage;
|
||||
|
||||
var getRegisteredDevices = function getRegisteredDevices() {
|
||||
document.querySelector('#content').innerHTML = '<button id="register_device_">ZAJERESTRUJ URZĄDZENIE</button><div id="register_device_data"></div><br />Here is registered mobile devices (in my imagination)';
|
||||
cookies_data = sessionStorage.getItem('cookies_data');
|
||||
csrfcookie_ = sessionStorage.getItem('csrfcookie');
|
||||
fetch(url = '../api/mobile/registered', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie_
|
||||
},
|
||||
body: cookies_data
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
console.log(data);
|
||||
var register_device_ = document.querySelector('#register_device_');
|
||||
register_device_.addEventListener('click', registerDevice);
|
||||
});
|
||||
};
|
||||
|
||||
var registerDevice = function registerDevice() {
|
||||
cookies_data = sessionStorage.getItem('cookies_data');
|
||||
csrfcookie_ = sessionStorage.getItem('csrfcookie');
|
||||
fetch(url = '../api/mobile/register', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie_
|
||||
},
|
||||
body: cookies_data
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
console.log(data);
|
||||
document.querySelector('#register_device_data').innerHTML = data.data.QrCodeImage + '<br /> TOKEN:' + data.data.TokenKey + '<br /> PIN:' + data.data.PIN + '<br /> SYMBOL:' + data.data.CustomerGroup;
|
||||
});
|
||||
};
|
||||
|
||||
registered_.addEventListener('click', getRegisteredDevices);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-mobile_access.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["webpack://wulkanowy-web/./static/frontend/js/mobile_access.js"],"names":["registered_","document","querySelector","myStorage","window","sessionStorage","getRegisteredDevices","innerHTML","cookies_data","getItem","csrfcookie_","fetch","url","method","mode","headers","body","then","response","json","data","console","log","register_device_","addEventListener","registerDevice","QrCodeImage","TokenKey","PIN","CustomerGroup"],"mappings":";;;;AAAA,IAAMA,WAAW,GAAGC,QAAQ,CAACC,aAAT,CAAuB,iBAAvB,CAApB;AAEAC,SAAS,GAAGC,MAAM,CAACC,cAAnB;;AAEA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAuB,GAAM;AAC/BL,UAAQ,CAACC,aAAT,CAAuB,UAAvB,EAAmCK,SAAnC,GAA+C,+JAA/C;AACAC,cAAY,GAAGH,cAAc,CAACI,OAAf,CAAuB,cAAvB,CAAf;AACAC,aAAW,GAAGL,cAAc,CAACI,OAAf,CAAuB,YAAvB,CAAd;AACAE,OAAK,CAACC,GAAG,GAAG,0BAAP,EAAmC;AACpCC,UAAM,EAAE,MAD4B;AAEpCC,QAAI,EAAE,MAF8B;AAGpCC,WAAO,EAAE;AACL,sBAAgB,kBADX;AAEL,qBAAeL;AAFV,KAH2B;AAOpCM,QAAI,EAAER;AAP8B,GAAnC,CAAL,CAQGS,IARH,CAQQ,UAAAC,QAAQ;AAAA,WAAIA,QAAQ,CAACC,IAAT,EAAJ;AAAA,GARhB,EAQqCF,IARrC,CAQ0C,UAAAG,IAAI,EAAI;AAC9CC,WAAO,CAACC,GAAR,CAAYF,IAAZ;AACA,QAAMG,gBAAgB,GAAGtB,QAAQ,CAACC,aAAT,CAAuB,mBAAvB,CAAzB;AACAqB,oBAAgB,CAACC,gBAAjB,CAAkC,OAAlC,EAA2CC,cAA3C;AACH,GAZD;AAaH,CAjBD;;AAmBA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,GAAM;AACzBjB,cAAY,GAAGH,cAAc,CAACI,OAAf,CAAuB,cAAvB,CAAf;AACAC,aAAW,GAAGL,cAAc,CAACI,OAAf,CAAuB,YAAvB,CAAd;AACAE,OAAK,CAACC,GAAG,GAAG,wBAAP,EAAiC;AAClCC,UAAM,EAAE,MAD0B;AAElCC,QAAI,EAAE,MAF4B;AAGlCC,WAAO,EAAE;AACL,sBAAgB,kBADX;AAEL,qBAAeL;AAFV,KAHyB;AAOlCM,QAAI,EAAER;AAP4B,GAAjC,CAAL,CAQGS,IARH,CAQQ,UAAAC,QAAQ;AAAA,WAAIA,QAAQ,CAACC,IAAT,EAAJ;AAAA,GARhB,EAQqCF,IARrC,CAQ0C,UAAAG,IAAI,EAAI;AAC9CC,WAAO,CAACC,GAAR,CAAYF,IAAZ;AACAnB,YAAQ,CAACC,aAAT,CAAuB,uBAAvB,EAAgDK,SAAhD,GAA4Da,IAAI,CAACA,IAAL,CAAUM,WAAV,GAAsB,eAAtB,GAAsCN,IAAI,CAACA,IAAL,CAAUO,QAAhD,GAAyD,aAAzD,GAAuEP,IAAI,CAACA,IAAL,CAAUQ,GAAjF,GAAqF,gBAArF,GAAsGR,IAAI,CAACA,IAAL,CAAUS,aAA5K;AACH,GAXD;AAYH,CAfD;;AAiBA7B,WAAW,CAACwB,gBAAZ,CAA6B,OAA7B,EAAsClB,oBAAtC,E","file":"out-mobile_access.js","sourcesContent":["const registered_ = document.querySelector('#mobile_access_');\n\nmyStorage = window.sessionStorage;\n\nconst getRegisteredDevices = () => {\n document.querySelector('#content').innerHTML = '<button id=\"register_device_\">ZAJERESTRUJ URZĄDZENIE</button><div id=\"register_device_data\"></div><br />Here is registered mobile devices (in my imagination)';\n cookies_data = sessionStorage.getItem('cookies_data');\n csrfcookie_ = sessionStorage.getItem('csrfcookie');\n fetch(url = '../api/mobile/registered', {\n method: 'POST',\n mode: 'cors',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRFToken': csrfcookie_\n },\n body: cookies_data\n }).then(response => response.json()).then(data => {\n console.log(data);\n const register_device_ = document.querySelector('#register_device_');\n register_device_.addEventListener('click', registerDevice);\n })\n}\n\nconst registerDevice = () => {\n cookies_data = sessionStorage.getItem('cookies_data');\n csrfcookie_ = sessionStorage.getItem('csrfcookie');\n fetch(url = '../api/mobile/register', {\n method: 'POST',\n mode: 'cors',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRFToken': csrfcookie_\n },\n body: cookies_data\n }).then(response => response.json()).then(data => {\n console.log(data);\n document.querySelector('#register_device_data').innerHTML = data.data.QrCodeImage+'<br /> TOKEN:'+data.data.TokenKey+'<br /> PIN:'+data.data.PIN+'<br /> SYMBOL:'+data.data.CustomerGroup;\n })\n}\n\nregistered_.addEventListener('click', getRegisteredDevices);"],"sourceRoot":""}
|
46
frontend/files/js/dist/out-notes.js
vendored
46
frontend/files/js/dist/out-notes.js
vendored
|
@ -1,46 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!*************************************!*\
|
||||
!*** ./static/frontend/js/notes.js ***!
|
||||
\*************************************/
|
||||
var notes_ = document.querySelector('#notes_');
|
||||
content = document.getElementById("content");
|
||||
myStorage = window.sessionStorage;
|
||||
|
||||
var getNotes = function getNotes() {
|
||||
content.innerHTML = "";
|
||||
cookies_data = sessionStorage.getItem('cookies_data');
|
||||
csrfcookie_ = sessionStorage.getItem('csrfcookie');
|
||||
fetch(url = '../api/notes', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie_
|
||||
},
|
||||
body: cookies_data
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
var uwagi = data.data.Uwagi;
|
||||
var osiagniecia = data.data.Osiagniecia;
|
||||
console.log(data);
|
||||
var uwagiList = document.createElement("ul");
|
||||
uwagiList.id = "notesList";
|
||||
content.append(uwagiList);
|
||||
uwagi.forEach(function (uwaga) {
|
||||
uwagaElement = document.createElement("li");
|
||||
uwagaElement.innerHTML = "<div class=\"noteElement\"><h6 style=\"display:block; margin-top: -5px;\">".concat(uwaga.Kategoria, "</h6><span style=\"display:block; float: right; margin-top: -25px; font-size: 13px;\">").concat(uwaga.Nauczyciel, "</span><span style=\"display:block; width: 50%; font-size: 12px;\">").concat(uwaga.TrescUwagi, "</span><span style=\"float:right; font-size: 20px; margin-top: -20px; font-weight: 700;\">").concat(uwaga.Punkty, "</span></div>");
|
||||
uwagiList.append(uwagaElement);
|
||||
});
|
||||
osiagniecia.forEach(function (osiagniecie) {
|
||||
osiagniecieElement = document.createElement("li");
|
||||
osiagniecieElement.innerHTML = "<div class=\"achievementElement\"><span>".concat(osiagniecie, "</span></div>");
|
||||
uwagiList.append(osiagniecieElement);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
notes_.addEventListener('click', getNotes);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-notes.js.map
|
1
frontend/files/js/dist/out-notes.js.map
vendored
1
frontend/files/js/dist/out-notes.js.map
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["webpack://wulkanowy-web/./static/frontend/js/notes.js"],"names":["notes_","document","querySelector","content","getElementById","myStorage","window","sessionStorage","getNotes","innerHTML","cookies_data","getItem","csrfcookie_","fetch","url","method","mode","headers","body","then","response","json","data","uwagi","Uwagi","osiagniecia","Osiagniecia","console","log","uwagiList","createElement","id","append","forEach","uwaga","uwagaElement","Kategoria","Nauczyciel","TrescUwagi","Punkty","osiagniecie","osiagniecieElement","addEventListener"],"mappings":";;;;AAAA,IAAMA,MAAM,GAAGC,QAAQ,CAACC,aAAT,CAAuB,SAAvB,CAAf;AACAC,OAAO,GAAGF,QAAQ,CAACG,cAAT,CAAwB,SAAxB,CAAV;AAEAC,SAAS,GAAGC,MAAM,CAACC,cAAnB;;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,GAAM;AACnBL,SAAO,CAACM,SAAR,GAAoB,EAApB;AACAC,cAAY,GAAGH,cAAc,CAACI,OAAf,CAAuB,cAAvB,CAAf;AACAC,aAAW,GAAGL,cAAc,CAACI,OAAf,CAAuB,YAAvB,CAAd;AACAE,OAAK,CAACC,GAAG,GAAG,cAAP,EAAuB;AACxBC,UAAM,EAAE,MADgB;AAExBC,QAAI,EAAE,MAFkB;AAGxBC,WAAO,EAAE;AACL,sBAAgB,kBADX;AAEL,qBAAeL;AAFV,KAHe;AAOxBM,QAAI,EAAER;AAPkB,GAAvB,CAAL,CAQGS,IARH,CAQQ,UAAAC,QAAQ;AAAA,WAAIA,QAAQ,CAACC,IAAT,EAAJ;AAAA,GARhB,EAQqCF,IARrC,CAQ0C,UAAAG,IAAI,EAAI;AAC9C,QAAMC,KAAK,GAAGD,IAAI,CAACA,IAAL,CAAUE,KAAxB;AACA,QAAMC,WAAW,GAAGH,IAAI,CAACA,IAAL,CAAUI,WAA9B;AACAC,WAAO,CAACC,GAAR,CAAYN,IAAZ;AAEA,QAAMO,SAAS,GAAG5B,QAAQ,CAAC6B,aAAT,CAAuB,IAAvB,CAAlB;AACAD,aAAS,CAACE,EAAV,GAAe,WAAf;AACA5B,WAAO,CAAC6B,MAAR,CAAeH,SAAf;AAEAN,SAAK,CAACU,OAAN,CAAc,UAACC,KAAD,EAAW;AACrBC,kBAAY,GAAGlC,QAAQ,CAAC6B,aAAT,CAAuB,IAAvB,CAAf;AACAK,kBAAY,CAAC1B,SAAb,uFAAkGyB,KAAK,CAACE,SAAxG,mGAAwMF,KAAK,CAACG,UAA9M,gFAA4RH,KAAK,CAACI,UAAlS,uGAAuYJ,KAAK,CAACK,MAA7Y;AACAV,eAAS,CAACG,MAAV,CAAiBG,YAAjB;AACH,KAJD;AAMAV,eAAW,CAACQ,OAAZ,CAAoB,UAACO,WAAD,EAAiB;AACjCC,wBAAkB,GAAGxC,QAAQ,CAAC6B,aAAT,CAAuB,IAAvB,CAArB;AACAW,wBAAkB,CAAChC,SAAnB,qDAAwE+B,WAAxE;AACAX,eAAS,CAACG,MAAV,CAAiBS,kBAAjB;AACH,KAJD;AAKH,GA5BD;AA6BH,CAjCD;;AAmCAzC,MAAM,CAAC0C,gBAAP,CAAwB,OAAxB,EAAiClC,QAAjC,E","file":"out-notes.js","sourcesContent":["const notes_ = document.querySelector('#notes_');\ncontent = document.getElementById(\"content\")\n\nmyStorage = window.sessionStorage;\n\nconst getNotes = () => {\n content.innerHTML = \"\"\n cookies_data = sessionStorage.getItem('cookies_data');\n csrfcookie_ = sessionStorage.getItem('csrfcookie');\n fetch(url = '../api/notes', {\n method: 'POST',\n mode: 'cors',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRFToken': csrfcookie_\n },\n body: cookies_data\n }).then(response => response.json()).then(data => {\n const uwagi = data.data.Uwagi\n const osiagniecia = data.data.Osiagniecia\n console.log(data);\n\n const uwagiList = document.createElement(\"ul\")\n uwagiList.id = \"notesList\"\n content.append(uwagiList)\n\n uwagi.forEach((uwaga) => {\n uwagaElement = document.createElement(\"li\")\n uwagaElement.innerHTML = `<div class=\"noteElement\"><h6 style=\"display:block; margin-top: -5px;\">${uwaga.Kategoria}</h6><span style=\"display:block; float: right; margin-top: -25px; font-size: 13px;\">${uwaga.Nauczyciel}</span><span style=\"display:block; width: 50%; font-size: 12px;\">${uwaga.TrescUwagi}</span><span style=\"float:right; font-size: 20px; margin-top: -20px; font-weight: 700;\">${uwaga.Punkty}</span></div>`\n uwagiList.append(uwagaElement)\n })\n\n osiagniecia.forEach((osiagniecie) => {\n osiagniecieElement = document.createElement(\"li\")\n osiagniecieElement.innerHTML = `<div class=\"achievementElement\"><span>${osiagniecie}</span></div>`\n uwagiList.append(osiagniecieElement)\n })\n })\n}\n\nnotes_.addEventListener('click', getNotes);"],"sourceRoot":""}
|
22
frontend/files/js/dist/out-start.js
vendored
22
frontend/files/js/dist/out-start.js
vendored
|
@ -1,22 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!*************************************!*\
|
||||
!*** ./static/frontend/js/start.js ***!
|
||||
\*************************************/
|
||||
var name_ = document.querySelector('#name');
|
||||
var email_ = document.querySelector('#email');
|
||||
myStorage = window.sessionStorage;
|
||||
|
||||
var studentName = function studentName() {
|
||||
var cookies_data = JSON.parse(sessionStorage.getItem('cookies_data'));
|
||||
name_.innerHTML = cookies_data['data']['register_r']['data'][0]['UczenImie'] + ' ' + cookies_data['data']['register_r']['data'][0]['UczenImie2'] + ' ' + cookies_data['data']['register_r']['data'][0]['UczenNazwisko'];
|
||||
};
|
||||
|
||||
var studentEmail = function studentEmail() {
|
||||
email_.innerHTML = sessionStorage.getItem('email');
|
||||
};
|
||||
|
||||
window.addEventListener('load', studentName);
|
||||
window.addEventListener('load', studentEmail);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-start.js.map
|
1
frontend/files/js/dist/out-start.js.map
vendored
1
frontend/files/js/dist/out-start.js.map
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["webpack://wulkanowy-web/./static/frontend/js/start.js"],"names":["name_","document","querySelector","email_","myStorage","window","sessionStorage","studentName","cookies_data","JSON","parse","getItem","innerHTML","studentEmail","addEventListener"],"mappings":";;;;AAAA,IAAMA,KAAK,GAAGC,QAAQ,CAACC,aAAT,CAAuB,OAAvB,CAAd;AACA,IAAMC,MAAM,GAAGF,QAAQ,CAACC,aAAT,CAAuB,QAAvB,CAAf;AAEAE,SAAS,GAAGC,MAAM,CAACC,cAAnB;;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAc,GAAM;AACtB,MAAMC,YAAY,GAAGC,IAAI,CAACC,KAAL,CAAWJ,cAAc,CAACK,OAAf,CAAuB,cAAvB,CAAX,CAArB;AACAX,OAAK,CAACY,SAAN,GAAkBJ,YAAY,CAAC,MAAD,CAAZ,CAAqB,YAArB,EAAmC,MAAnC,EAA2C,CAA3C,EAA8C,WAA9C,IAA2D,GAA3D,GAA+DA,YAAY,CAAC,MAAD,CAAZ,CAAqB,YAArB,EAAmC,MAAnC,EAA2C,CAA3C,EAA8C,YAA9C,CAA/D,GAA2H,GAA3H,GAA+HA,YAAY,CAAC,MAAD,CAAZ,CAAqB,YAArB,EAAmC,MAAnC,EAA2C,CAA3C,EAA8C,eAA9C,CAAjJ;AACH,CAHD;;AAKA,IAAMK,YAAY,GAAG,SAAfA,YAAe,GAAM;AACvBV,QAAM,CAACS,SAAP,GAAmBN,cAAc,CAACK,OAAf,CAAuB,OAAvB,CAAnB;AACH,CAFD;;AAIAN,MAAM,CAACS,gBAAP,CAAwB,MAAxB,EAAgCP,WAAhC;AACAF,MAAM,CAACS,gBAAP,CAAwB,MAAxB,EAAgCD,YAAhC,E","file":"out-start.js","sourcesContent":["const name_ = document.querySelector('#name');\nconst email_ = document.querySelector('#email');\n\nmyStorage = window.sessionStorage;\n\nconst studentName = () => {\n const cookies_data = JSON.parse(sessionStorage.getItem('cookies_data'))\n name_.innerHTML = cookies_data['data']['register_r']['data'][0]['UczenImie']+' '+cookies_data['data']['register_r']['data'][0]['UczenImie2']+' '+cookies_data['data']['register_r']['data'][0]['UczenNazwisko']\n};\n\nconst studentEmail = () => {\n email_.innerHTML = sessionStorage.getItem('email') \n};\n\nwindow.addEventListener('load', studentName);\nwindow.addEventListener('load', studentEmail);"],"sourceRoot":""}
|
30
frontend/files/js/dist/out-timetable.js
vendored
30
frontend/files/js/dist/out-timetable.js
vendored
|
@ -1,30 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/*!*****************************************!*\
|
||||
!*** ./static/frontend/js/timetable.js ***!
|
||||
\*****************************************/
|
||||
var timetable_ = document.querySelector('#timetable_');
|
||||
myStorage = window.sessionStorage;
|
||||
|
||||
var getTimetable = function getTimetable() {
|
||||
document.querySelector('#content').innerHTML = 'Here is timetable (in my imagination)';
|
||||
cookies_data = sessionStorage.getItem('cookies_data');
|
||||
csrfcookie_ = sessionStorage.getItem('csrfcookie');
|
||||
fetch(url = '../api/timetable', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRFToken': csrfcookie_
|
||||
},
|
||||
body: cookies_data
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (data) {
|
||||
console.log(data);
|
||||
});
|
||||
};
|
||||
|
||||
timetable_.addEventListener('click', getTimetable);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=out-timetable.js.map
|
1
frontend/files/js/dist/out-timetable.js.map
vendored
1
frontend/files/js/dist/out-timetable.js.map
vendored
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["webpack://wulkanowy-web/./static/frontend/js/timetable.js"],"names":["timetable_","document","querySelector","myStorage","window","sessionStorage","getTimetable","innerHTML","cookies_data","getItem","csrfcookie_","fetch","url","method","mode","headers","body","then","response","json","data","console","log","addEventListener"],"mappings":";;;;AAAA,IAAMA,UAAU,GAAGC,QAAQ,CAACC,aAAT,CAAuB,aAAvB,CAAnB;AAEAC,SAAS,GAAGC,MAAM,CAACC,cAAnB;;AAEA,IAAMC,YAAY,GAAG,SAAfA,YAAe,GAAM;AACvBL,UAAQ,CAACC,aAAT,CAAuB,UAAvB,EAAmCK,SAAnC,GAA+C,uCAA/C;AACAC,cAAY,GAAGH,cAAc,CAACI,OAAf,CAAuB,cAAvB,CAAf;AACAC,aAAW,GAAGL,cAAc,CAACI,OAAf,CAAuB,YAAvB,CAAd;AACAE,OAAK,CAACC,GAAG,GAAG,kBAAP,EAA2B;AAC5BC,UAAM,EAAE,MADoB;AAE5BC,QAAI,EAAE,MAFsB;AAG5BC,WAAO,EAAE;AACL,sBAAgB,kBADX;AAEL,qBAAeL;AAFV,KAHmB;AAO5BM,QAAI,EAAER;AAPsB,GAA3B,CAAL,CAQGS,IARH,CAQQ,UAAAC,QAAQ;AAAA,WAAIA,QAAQ,CAACC,IAAT,EAAJ;AAAA,GARhB,EAQqCF,IARrC,CAQ0C,UAAAG,IAAI,EAAI;AAC9CC,WAAO,CAACC,GAAR,CAAYF,IAAZ;AACH,GAVD;AAWH,CAfD;;AAiBApB,UAAU,CAACuB,gBAAX,CAA4B,OAA5B,EAAqCjB,YAArC,E","file":"out-timetable.js","sourcesContent":["const timetable_ = document.querySelector('#timetable_');\n\nmyStorage = window.sessionStorage;\n\nconst getTimetable = () => {\n document.querySelector('#content').innerHTML = 'Here is timetable (in my imagination)';\n cookies_data = sessionStorage.getItem('cookies_data');\n csrfcookie_ = sessionStorage.getItem('csrfcookie');\n fetch(url = '../api/timetable', {\n method: 'POST',\n mode: 'cors',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRFToken': csrfcookie_\n },\n body: cookies_data\n }).then(response => response.json()).then(data => {\n console.log(data)\n })\n}\n\ntimetable_.addEventListener('click', getTimetable);"],"sourceRoot":""}
|
Binary file not shown.
|
@ -1,3 +0,0 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
1
frontend/node_modules/.bin/acorn
generated
vendored
1
frontend/node_modules/.bin/acorn
generated
vendored
|
@ -1 +0,0 @@
|
|||
../acorn/bin/acorn
|
1
frontend/node_modules/.bin/browserslist
generated
vendored
1
frontend/node_modules/.bin/browserslist
generated
vendored
|
@ -1 +0,0 @@
|
|||
../browserslist/cli.js
|
1
frontend/node_modules/.bin/envinfo
generated
vendored
1
frontend/node_modules/.bin/envinfo
generated
vendored
|
@ -1 +0,0 @@
|
|||
../envinfo/dist/cli.js
|
1
frontend/node_modules/.bin/import-local-fixture
generated
vendored
1
frontend/node_modules/.bin/import-local-fixture
generated
vendored
|
@ -1 +0,0 @@
|
|||
../import-local/fixtures/cli.js
|
1
frontend/node_modules/.bin/jsesc
generated
vendored
1
frontend/node_modules/.bin/jsesc
generated
vendored
|
@ -1 +0,0 @@
|
|||
../jsesc/bin/jsesc
|
1
frontend/node_modules/.bin/json5
generated
vendored
1
frontend/node_modules/.bin/json5
generated
vendored
|
@ -1 +0,0 @@
|
|||
../json5/lib/cli.js
|
1
frontend/node_modules/.bin/node-which
generated
vendored
1
frontend/node_modules/.bin/node-which
generated
vendored
|
@ -1 +0,0 @@
|
|||
../which/bin/node-which
|
1
frontend/node_modules/.bin/parser
generated
vendored
1
frontend/node_modules/.bin/parser
generated
vendored
|
@ -1 +0,0 @@
|
|||
../@babel/parser/bin/babel-parser.js
|
1
frontend/node_modules/.bin/regjsparser
generated
vendored
1
frontend/node_modules/.bin/regjsparser
generated
vendored
|
@ -1 +0,0 @@
|
|||
../regjsparser/bin/parser
|
1
frontend/node_modules/.bin/semver
generated
vendored
1
frontend/node_modules/.bin/semver
generated
vendored
|
@ -1 +0,0 @@
|
|||
../semver/bin/semver
|
1
frontend/node_modules/.bin/terser
generated
vendored
1
frontend/node_modules/.bin/terser
generated
vendored
|
@ -1 +0,0 @@
|
|||
../terser/bin/terser
|
1
frontend/node_modules/.bin/webpack
generated
vendored
1
frontend/node_modules/.bin/webpack
generated
vendored
|
@ -1 +0,0 @@
|
|||
../webpack/bin/webpack.js
|
1
frontend/node_modules/.bin/webpack-cli
generated
vendored
1
frontend/node_modules/.bin/webpack-cli
generated
vendored
|
@ -1 +0,0 @@
|
|||
../webpack-cli/bin/cli.js
|
22
frontend/node_modules/@babel/code-frame/LICENSE
generated
vendored
22
frontend/node_modules/@babel/code-frame/LICENSE
generated
vendored
|
@ -1,22 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
frontend/node_modules/@babel/code-frame/README.md
generated
vendored
19
frontend/node_modules/@babel/code-frame/README.md
generated
vendored
|
@ -1,19 +0,0 @@
|
|||
# @babel/code-frame
|
||||
|
||||
> Generate errors that contain a code frame that point to source locations.
|
||||
|
||||
See our website [@babel/code-frame](https://babeljs.io/docs/en/babel-code-frame) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/code-frame
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/code-frame --dev
|
||||
```
|
167
frontend/node_modules/@babel/code-frame/lib/index.js
generated
vendored
167
frontend/node_modules/@babel/code-frame/lib/index.js
generated
vendored
|
@ -1,167 +0,0 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.codeFrameColumns = codeFrameColumns;
|
||||
exports.default = _default;
|
||||
|
||||
var _highlight = _interopRequireWildcard(require("@babel/highlight"));
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
let deprecationWarningShown = false;
|
||||
|
||||
function getDefs(chalk) {
|
||||
return {
|
||||
gutter: chalk.grey,
|
||||
marker: chalk.red.bold,
|
||||
message: chalk.red.bold
|
||||
};
|
||||
}
|
||||
|
||||
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
||||
|
||||
function getMarkerLines(loc, source, opts) {
|
||||
const startLoc = Object.assign({
|
||||
column: 0,
|
||||
line: -1
|
||||
}, loc.start);
|
||||
const endLoc = Object.assign({}, startLoc, loc.end);
|
||||
const {
|
||||
linesAbove = 2,
|
||||
linesBelow = 3
|
||||
} = opts || {};
|
||||
const startLine = startLoc.line;
|
||||
const startColumn = startLoc.column;
|
||||
const endLine = endLoc.line;
|
||||
const endColumn = endLoc.column;
|
||||
let start = Math.max(startLine - (linesAbove + 1), 0);
|
||||
let end = Math.min(source.length, endLine + linesBelow);
|
||||
|
||||
if (startLine === -1) {
|
||||
start = 0;
|
||||
}
|
||||
|
||||
if (endLine === -1) {
|
||||
end = source.length;
|
||||
}
|
||||
|
||||
const lineDiff = endLine - startLine;
|
||||
const markerLines = {};
|
||||
|
||||
if (lineDiff) {
|
||||
for (let i = 0; i <= lineDiff; i++) {
|
||||
const lineNumber = i + startLine;
|
||||
|
||||
if (!startColumn) {
|
||||
markerLines[lineNumber] = true;
|
||||
} else if (i === 0) {
|
||||
const sourceLength = source[lineNumber - 1].length;
|
||||
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
||||
} else if (i === lineDiff) {
|
||||
markerLines[lineNumber] = [0, endColumn];
|
||||
} else {
|
||||
const sourceLength = source[lineNumber - i].length;
|
||||
markerLines[lineNumber] = [0, sourceLength];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (startColumn === endColumn) {
|
||||
if (startColumn) {
|
||||
markerLines[startLine] = [startColumn, 0];
|
||||
} else {
|
||||
markerLines[startLine] = true;
|
||||
}
|
||||
} else {
|
||||
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
start,
|
||||
end,
|
||||
markerLines
|
||||
};
|
||||
}
|
||||
|
||||
function codeFrameColumns(rawLines, loc, opts = {}) {
|
||||
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
||||
const chalk = (0, _highlight.getChalk)(opts);
|
||||
const defs = getDefs(chalk);
|
||||
|
||||
const maybeHighlight = (chalkFn, string) => {
|
||||
return highlighted ? chalkFn(string) : string;
|
||||
};
|
||||
|
||||
const lines = rawLines.split(NEWLINE);
|
||||
const {
|
||||
start,
|
||||
end,
|
||||
markerLines
|
||||
} = getMarkerLines(loc, lines, opts);
|
||||
const hasColumns = loc.start && typeof loc.start.column === "number";
|
||||
const numberMaxWidth = String(end).length;
|
||||
const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines;
|
||||
let frame = highlightedLines.split(NEWLINE).slice(start, end).map((line, index) => {
|
||||
const number = start + 1 + index;
|
||||
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
|
||||
const gutter = ` ${paddedNumber} | `;
|
||||
const hasMarker = markerLines[number];
|
||||
const lastMarkerLine = !markerLines[number + 1];
|
||||
|
||||
if (hasMarker) {
|
||||
let markerLine = "";
|
||||
|
||||
if (Array.isArray(hasMarker)) {
|
||||
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
||||
const numberOfMarkers = hasMarker[1] || 1;
|
||||
markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join("");
|
||||
|
||||
if (lastMarkerLine && opts.message) {
|
||||
markerLine += " " + maybeHighlight(defs.message, opts.message);
|
||||
}
|
||||
}
|
||||
|
||||
return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line, markerLine].join("");
|
||||
} else {
|
||||
return ` ${maybeHighlight(defs.gutter, gutter)}${line}`;
|
||||
}
|
||||
}).join("\n");
|
||||
|
||||
if (opts.message && !hasColumns) {
|
||||
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
||||
}
|
||||
|
||||
if (highlighted) {
|
||||
return chalk.reset(frame);
|
||||
} else {
|
||||
return frame;
|
||||
}
|
||||
}
|
||||
|
||||
function _default(rawLines, lineNumber, colNumber, opts = {}) {
|
||||
if (!deprecationWarningShown) {
|
||||
deprecationWarningShown = true;
|
||||
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
||||
|
||||
if (process.emitWarning) {
|
||||
process.emitWarning(message, "DeprecationWarning");
|
||||
} else {
|
||||
const deprecationError = new Error(message);
|
||||
deprecationError.name = "DeprecationWarning";
|
||||
console.warn(new Error(message));
|
||||
}
|
||||
}
|
||||
|
||||
colNumber = Math.max(colNumber, 0);
|
||||
const location = {
|
||||
start: {
|
||||
column: colNumber,
|
||||
line: lineNumber
|
||||
}
|
||||
};
|
||||
return codeFrameColumns(rawLines, location, opts);
|
||||
}
|
59
frontend/node_modules/@babel/code-frame/package.json
generated
vendored
59
frontend/node_modules/@babel/code-frame/package.json
generated
vendored
|
@ -1,59 +0,0 @@
|
|||
{
|
||||
"_from": "@babel/code-frame@^7.10.4",
|
||||
"_id": "@babel/code-frame@7.12.11",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==",
|
||||
"_location": "/@babel/code-frame",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@babel/code-frame@^7.10.4",
|
||||
"name": "@babel/code-frame",
|
||||
"escapedName": "@babel%2fcode-frame",
|
||||
"scope": "@babel",
|
||||
"rawSpec": "^7.10.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^7.10.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/core",
|
||||
"/@babel/template",
|
||||
"/@babel/traverse"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz",
|
||||
"_shasum": "f4ad435aa263db935b8f10f2c552d23fb716a63f",
|
||||
"_spec": "@babel/code-frame@^7.10.4",
|
||||
"_where": "/home/pengwius/Pulpit/git/wulkanowy-web/frontend/node_modules/@babel/core",
|
||||
"author": {
|
||||
"name": "Sebastian McKenzie",
|
||||
"email": "sebmck@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@babel/highlight": "^7.10.4"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Generate errors that contain a code frame that point to source locations.",
|
||||
"devDependencies": {
|
||||
"@types/chalk": "^2.0.0",
|
||||
"chalk": "^2.0.0",
|
||||
"strip-ansi": "^4.0.0"
|
||||
},
|
||||
"homepage": "https://babeljs.io/",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"name": "@babel/code-frame",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-code-frame"
|
||||
},
|
||||
"version": "7.12.11"
|
||||
}
|
22
frontend/node_modules/@babel/compat-data/LICENSE
generated
vendored
22
frontend/node_modules/@babel/compat-data/LICENSE
generated
vendored
|
@ -1,22 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
4
frontend/node_modules/@babel/compat-data/corejs2-built-ins.js
generated
vendored
4
frontend/node_modules/@babel/compat-data/corejs2-built-ins.js
generated
vendored
|
@ -1,4 +0,0 @@
|
|||
// Node < 13.3 doesn't support export maps in package.json.
|
||||
// Use this proxy file as a fallback.
|
||||
|
||||
module.exports = require("./data/corejs2-built-ins.json");
|
4
frontend/node_modules/@babel/compat-data/corejs3-shipped-proposals.js
generated
vendored
4
frontend/node_modules/@babel/compat-data/corejs3-shipped-proposals.js
generated
vendored
|
@ -1,4 +0,0 @@
|
|||
// Node < 13.3 doesn't support export maps in package.json.
|
||||
// Use this proxy file as a fallback.
|
||||
|
||||
module.exports = require("./data/corejs3-shipped-proposals.json");
|
1690
frontend/node_modules/@babel/compat-data/data/corejs2-built-ins.json
generated
vendored
1690
frontend/node_modules/@babel/compat-data/data/corejs2-built-ins.json
generated
vendored
File diff suppressed because it is too large
Load diff
5
frontend/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json
generated
vendored
5
frontend/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
[
|
||||
"esnext.global-this",
|
||||
"esnext.promise.all-settled",
|
||||
"esnext.string.match-all"
|
||||
]
|
17
frontend/node_modules/@babel/compat-data/data/native-modules.json
generated
vendored
17
frontend/node_modules/@babel/compat-data/data/native-modules.json
generated
vendored
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"es6.module": {
|
||||
"chrome": "61",
|
||||
"and_chr": "61",
|
||||
"edge": "16",
|
||||
"firefox": "60",
|
||||
"and_ff": "60",
|
||||
"node": "13.2.0",
|
||||
"opera": "48",
|
||||
"op_mob": "48",
|
||||
"safari": "10.1",
|
||||
"ios_saf": "10.3",
|
||||
"samsung": "8.2",
|
||||
"android": "61",
|
||||
"electron": "2.0"
|
||||
}
|
||||
}
|
18
frontend/node_modules/@babel/compat-data/data/overlapping-plugins.json
generated
vendored
18
frontend/node_modules/@babel/compat-data/data/overlapping-plugins.json
generated
vendored
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"transform-async-to-generator": [
|
||||
"bugfix/transform-async-arrows-in-class"
|
||||
],
|
||||
"transform-parameters": [
|
||||
"bugfix/transform-edge-default-parameters"
|
||||
],
|
||||
"transform-function-name": [
|
||||
"bugfix/transform-edge-function-name"
|
||||
],
|
||||
"transform-block-scoping": [
|
||||
"bugfix/transform-safari-block-shadowing",
|
||||
"bugfix/transform-safari-for-shadowing"
|
||||
],
|
||||
"transform-template-literals": [
|
||||
"bugfix/transform-tagged-template-caching"
|
||||
]
|
||||
}
|
125
frontend/node_modules/@babel/compat-data/data/plugin-bugfixes.json
generated
vendored
125
frontend/node_modules/@babel/compat-data/data/plugin-bugfixes.json
generated
vendored
|
@ -1,125 +0,0 @@
|
|||
{
|
||||
"transform-async-to-generator": {
|
||||
"chrome": "55",
|
||||
"opera": "42",
|
||||
"edge": "15",
|
||||
"firefox": "52",
|
||||
"safari": "10.1",
|
||||
"node": "7.6",
|
||||
"ios": "10.3",
|
||||
"samsung": "6",
|
||||
"electron": "1.6"
|
||||
},
|
||||
"bugfix/transform-async-arrows-in-class": {
|
||||
"chrome": "55",
|
||||
"opera": "42",
|
||||
"edge": "15",
|
||||
"firefox": "52",
|
||||
"safari": "11",
|
||||
"node": "7.6",
|
||||
"ios": "11",
|
||||
"samsung": "6",
|
||||
"electron": "1.6"
|
||||
},
|
||||
"transform-parameters": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "15",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"bugfix/transform-edge-default-parameters": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "18",
|
||||
"firefox": "52",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-function-name": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "14",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"bugfix/transform-edge-function-name": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "79",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-block-scoping": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "14",
|
||||
"firefox": "51",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"bugfix/transform-safari-block-shadowing": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "12",
|
||||
"firefox": "44",
|
||||
"safari": "11",
|
||||
"node": "6",
|
||||
"ie": "11",
|
||||
"ios": "11",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"bugfix/transform-safari-for-shadowing": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "12",
|
||||
"firefox": "4",
|
||||
"safari": "11",
|
||||
"node": "6",
|
||||
"ie": "11",
|
||||
"ios": "11",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-template-literals": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "13",
|
||||
"firefox": "34",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"ios": "9",
|
||||
"samsung": "3.4",
|
||||
"electron": "0.21"
|
||||
},
|
||||
"bugfix/transform-tagged-template-caching": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
"safari": "13",
|
||||
"node": "4",
|
||||
"ios": "13",
|
||||
"samsung": "3.4",
|
||||
"electron": "0.21"
|
||||
}
|
||||
}
|
442
frontend/node_modules/@babel/compat-data/data/plugins.json
generated
vendored
442
frontend/node_modules/@babel/compat-data/data/plugins.json
generated
vendored
|
@ -1,442 +0,0 @@
|
|||
{
|
||||
"proposal-class-properties": {
|
||||
"chrome": "74",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"node": "12",
|
||||
"samsung": "11",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"proposal-private-methods": {
|
||||
"chrome": "84",
|
||||
"opera": "70",
|
||||
"edge": "84",
|
||||
"node": "14.6",
|
||||
"electron": "10.0"
|
||||
},
|
||||
"proposal-numeric-separator": {
|
||||
"chrome": "75",
|
||||
"opera": "62",
|
||||
"edge": "79",
|
||||
"firefox": "70",
|
||||
"safari": "13",
|
||||
"node": "12.5",
|
||||
"ios": "13",
|
||||
"samsung": "11",
|
||||
"electron": "6.0"
|
||||
},
|
||||
"proposal-logical-assignment-operators": {
|
||||
"chrome": "85",
|
||||
"firefox": "79",
|
||||
"safari": "14",
|
||||
"node": "15",
|
||||
"electron": "10.0"
|
||||
},
|
||||
"proposal-nullish-coalescing-operator": {
|
||||
"chrome": "80",
|
||||
"opera": "67",
|
||||
"edge": "80",
|
||||
"firefox": "72",
|
||||
"safari": "13.1",
|
||||
"node": "14",
|
||||
"ios": "13.4",
|
||||
"samsung": "13",
|
||||
"electron": "8.0"
|
||||
},
|
||||
"proposal-optional-chaining": {
|
||||
"chrome": "80",
|
||||
"opera": "67",
|
||||
"edge": "80",
|
||||
"firefox": "74",
|
||||
"safari": "13.1",
|
||||
"node": "14",
|
||||
"ios": "13.4",
|
||||
"samsung": "13",
|
||||
"electron": "8.0"
|
||||
},
|
||||
"proposal-json-strings": {
|
||||
"chrome": "66",
|
||||
"opera": "53",
|
||||
"edge": "79",
|
||||
"firefox": "62",
|
||||
"safari": "12",
|
||||
"node": "10",
|
||||
"ios": "12",
|
||||
"samsung": "9",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"proposal-optional-catch-binding": {
|
||||
"chrome": "66",
|
||||
"opera": "53",
|
||||
"edge": "79",
|
||||
"firefox": "58",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-parameters": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "18",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"proposal-async-generator-functions": {
|
||||
"chrome": "63",
|
||||
"opera": "50",
|
||||
"edge": "79",
|
||||
"firefox": "57",
|
||||
"safari": "12",
|
||||
"node": "10",
|
||||
"ios": "12",
|
||||
"samsung": "8",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"proposal-object-rest-spread": {
|
||||
"chrome": "60",
|
||||
"opera": "47",
|
||||
"edge": "79",
|
||||
"firefox": "55",
|
||||
"safari": "11.1",
|
||||
"node": "8.3",
|
||||
"ios": "11.3",
|
||||
"samsung": "8",
|
||||
"electron": "2.0"
|
||||
},
|
||||
"transform-dotall-regex": {
|
||||
"chrome": "62",
|
||||
"opera": "49",
|
||||
"edge": "79",
|
||||
"firefox": "78",
|
||||
"safari": "11.1",
|
||||
"node": "8.10",
|
||||
"ios": "11.3",
|
||||
"samsung": "8",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"proposal-unicode-property-regex": {
|
||||
"chrome": "64",
|
||||
"opera": "51",
|
||||
"edge": "79",
|
||||
"firefox": "78",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-named-capturing-groups-regex": {
|
||||
"chrome": "64",
|
||||
"opera": "51",
|
||||
"edge": "79",
|
||||
"firefox": "78",
|
||||
"safari": "11.1",
|
||||
"node": "10",
|
||||
"ios": "11.3",
|
||||
"samsung": "9",
|
||||
"electron": "3.0"
|
||||
},
|
||||
"transform-async-to-generator": {
|
||||
"chrome": "55",
|
||||
"opera": "42",
|
||||
"edge": "15",
|
||||
"firefox": "52",
|
||||
"safari": "11",
|
||||
"node": "7.6",
|
||||
"ios": "11",
|
||||
"samsung": "6",
|
||||
"electron": "1.6"
|
||||
},
|
||||
"transform-exponentiation-operator": {
|
||||
"chrome": "52",
|
||||
"opera": "39",
|
||||
"edge": "14",
|
||||
"firefox": "52",
|
||||
"safari": "10.1",
|
||||
"node": "7",
|
||||
"ios": "10.3",
|
||||
"samsung": "6",
|
||||
"electron": "1.3"
|
||||
},
|
||||
"transform-template-literals": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "13",
|
||||
"firefox": "34",
|
||||
"safari": "13",
|
||||
"node": "4",
|
||||
"ios": "13",
|
||||
"samsung": "3.4",
|
||||
"electron": "0.21"
|
||||
},
|
||||
"transform-literals": {
|
||||
"chrome": "44",
|
||||
"opera": "31",
|
||||
"edge": "12",
|
||||
"firefox": "53",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"ios": "9",
|
||||
"samsung": "4",
|
||||
"electron": "0.30"
|
||||
},
|
||||
"transform-function-name": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "79",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-arrow-functions": {
|
||||
"chrome": "47",
|
||||
"opera": "34",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-block-scoped-functions": {
|
||||
"chrome": "41",
|
||||
"opera": "28",
|
||||
"edge": "12",
|
||||
"firefox": "46",
|
||||
"safari": "10",
|
||||
"node": "4",
|
||||
"ie": "11",
|
||||
"ios": "10",
|
||||
"samsung": "3.4",
|
||||
"electron": "0.21"
|
||||
},
|
||||
"transform-classes": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-object-super": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "13",
|
||||
"firefox": "45",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-shorthand-properties": {
|
||||
"chrome": "43",
|
||||
"opera": "30",
|
||||
"edge": "12",
|
||||
"firefox": "33",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"ios": "9",
|
||||
"samsung": "4",
|
||||
"electron": "0.27"
|
||||
},
|
||||
"transform-duplicate-keys": {
|
||||
"chrome": "42",
|
||||
"opera": "29",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"ios": "9",
|
||||
"samsung": "3.4",
|
||||
"electron": "0.25"
|
||||
},
|
||||
"transform-computed-properties": {
|
||||
"chrome": "44",
|
||||
"opera": "31",
|
||||
"edge": "12",
|
||||
"firefox": "34",
|
||||
"safari": "7.1",
|
||||
"node": "4",
|
||||
"ios": "8",
|
||||
"samsung": "4",
|
||||
"electron": "0.30"
|
||||
},
|
||||
"transform-for-of": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "15",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-sticky-regex": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "13",
|
||||
"firefox": "3",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-unicode-escapes": {
|
||||
"chrome": "44",
|
||||
"opera": "31",
|
||||
"edge": "12",
|
||||
"firefox": "53",
|
||||
"safari": "9",
|
||||
"node": "4",
|
||||
"ios": "9",
|
||||
"samsung": "4",
|
||||
"electron": "0.30"
|
||||
},
|
||||
"transform-unicode-regex": {
|
||||
"chrome": "50",
|
||||
"opera": "37",
|
||||
"edge": "13",
|
||||
"firefox": "46",
|
||||
"safari": "12",
|
||||
"node": "6",
|
||||
"ios": "12",
|
||||
"samsung": "5",
|
||||
"electron": "1.1"
|
||||
},
|
||||
"transform-spread": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "13",
|
||||
"firefox": "36",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-destructuring": {
|
||||
"chrome": "51",
|
||||
"opera": "38",
|
||||
"edge": "15",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6.5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "1.2"
|
||||
},
|
||||
"transform-block-scoping": {
|
||||
"chrome": "49",
|
||||
"opera": "36",
|
||||
"edge": "14",
|
||||
"firefox": "51",
|
||||
"safari": "11",
|
||||
"node": "6",
|
||||
"ios": "11",
|
||||
"samsung": "5",
|
||||
"electron": "0.37"
|
||||
},
|
||||
"transform-typeof-symbol": {
|
||||
"chrome": "38",
|
||||
"opera": "25",
|
||||
"edge": "12",
|
||||
"firefox": "36",
|
||||
"safari": "9",
|
||||
"node": "0.12",
|
||||
"ios": "9",
|
||||
"samsung": "3",
|
||||
"electron": "0.20"
|
||||
},
|
||||
"transform-new-target": {
|
||||
"chrome": "46",
|
||||
"opera": "33",
|
||||
"edge": "14",
|
||||
"firefox": "41",
|
||||
"safari": "10",
|
||||
"node": "5",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "0.36"
|
||||
},
|
||||
"transform-regenerator": {
|
||||
"chrome": "50",
|
||||
"opera": "37",
|
||||
"edge": "13",
|
||||
"firefox": "53",
|
||||
"safari": "10",
|
||||
"node": "6",
|
||||
"ios": "10",
|
||||
"samsung": "5",
|
||||
"electron": "1.1"
|
||||
},
|
||||
"transform-member-expression-literals": {
|
||||
"chrome": "7",
|
||||
"opera": "12",
|
||||
"edge": "12",
|
||||
"firefox": "2",
|
||||
"safari": "5.1",
|
||||
"node": "0.10",
|
||||
"ie": "9",
|
||||
"android": "4",
|
||||
"ios": "6",
|
||||
"phantom": "2",
|
||||
"samsung": "1",
|
||||
"electron": "0.20"
|
||||
},
|
||||
"transform-property-literals": {
|
||||
"chrome": "7",
|
||||
"opera": "12",
|
||||
"edge": "12",
|
||||
"firefox": "2",
|
||||
"safari": "5.1",
|
||||
"node": "0.10",
|
||||
"ie": "9",
|
||||
"android": "4",
|
||||
"ios": "6",
|
||||
"phantom": "2",
|
||||
"samsung": "1",
|
||||
"electron": "0.20"
|
||||
},
|
||||
"transform-reserved-words": {
|
||||
"chrome": "13",
|
||||
"opera": "10.50",
|
||||
"edge": "12",
|
||||
"firefox": "2",
|
||||
"safari": "3.1",
|
||||
"node": "0.10",
|
||||
"ie": "9",
|
||||
"android": "4.4",
|
||||
"ios": "6",
|
||||
"phantom": "2",
|
||||
"samsung": "1",
|
||||
"electron": "0.20"
|
||||
},
|
||||
"proposal-export-namespace-from": {
|
||||
"chrome": "72",
|
||||
"and_chr": "72",
|
||||
"edge": "79",
|
||||
"firefox": "80",
|
||||
"node": "13.2",
|
||||
"opera": "60",
|
||||
"op_mob": "51",
|
||||
"samsung": "11.0",
|
||||
"android": "72",
|
||||
"electron": "5.0"
|
||||
}
|
||||
}
|
4
frontend/node_modules/@babel/compat-data/native-modules.js
generated
vendored
4
frontend/node_modules/@babel/compat-data/native-modules.js
generated
vendored
|
@ -1,4 +0,0 @@
|
|||
// Node < 13.3 doesn't support export maps in package.json.
|
||||
// Use this proxy file as a fallback.
|
||||
|
||||
module.exports = require("./data/native-modules.json");
|
4
frontend/node_modules/@babel/compat-data/overlapping-plugins.js
generated
vendored
4
frontend/node_modules/@babel/compat-data/overlapping-plugins.js
generated
vendored
|
@ -1,4 +0,0 @@
|
|||
// Node < 13.3 doesn't support export maps in package.json.
|
||||
// Use this proxy file as a fallback.
|
||||
|
||||
module.exports = require("./data/overlapping-plugins.json");
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue