From 413bad9b3b07c33dabc158b949268207d29ccf5b Mon Sep 17 00:00:00 2001 From: Anh-Thy04 Date: Tue, 22 Apr 2025 00:29:47 +0200 Subject: [PATCH] deleted files on frontend --- AT_frontend/forms.py | 33 -------------------- AT_frontend/instance/logs.db | Bin 8192 -> 0 bytes AT_frontend/instance/site.db | Bin 16384 -> 0 bytes AT_frontend/templates/base.html | 50 ------------------------------- AT_frontend/templates/inlog.html | 44 --------------------------- 5 files changed, 127 deletions(-) delete mode 100644 AT_frontend/forms.py delete mode 100644 AT_frontend/instance/logs.db delete mode 100644 AT_frontend/instance/site.db delete mode 100644 AT_frontend/templates/base.html delete mode 100644 AT_frontend/templates/inlog.html diff --git a/AT_frontend/forms.py b/AT_frontend/forms.py deleted file mode 100644 index 1e45ef9..0000000 --- a/AT_frontend/forms.py +++ /dev/null @@ -1,33 +0,0 @@ -from flask import Flask, render_template, redirect, url_for -from flask_wtf import FlaskForm -from wtforms import StringField, SubmitField, BooleanField -from wtforms.validators import DataRequired - -app = Flask(__name__) -app.config['SECRET_KEY'] = 'mijngeheimesleutel' - -class GateControlForm(FlaskForm): - open_gate = SubmitField('Open Gate') - close_gate = SubmitField('Close Gate') - debug_mode = BooleanField('Enable Debug Mode') - check_camera = SubmitField('Check Camera') # New button to check camera status - -class InputForm(FlaskForm): - name = StringField('Name', validators=[DataRequired()]) - submit = SubmitField('Submit') - -@app.route('/', methods=['GET', 'POST']) -def dashboard(): - gate_status = "Closed" - debug_mode = False - form = GateControlForm() - if form.validate_on_submit(): - if form.open_gate.data: - gate_status = "Open" - elif form.close_gate.data: - debug_mode = form.debug_mode.data - return render_template('dashboard.html', form=form, gate_status=gate_status, debug_mode=debug_mode) - return render_template('dashboard.html', form=form, gate_status=gate_status, debug_mode=debug_mode) - -if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file diff --git a/AT_frontend/instance/logs.db b/AT_frontend/instance/logs.db deleted file mode 100644 index 8efe1ea6e23537ae333964fbba28d0a0f1c70910..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8192 zcmeI1O>Y}T7{}MaH1_(f5K1W&I_Nx`_F-s;5LU=iC@;)2Sp zTzf`B>Sy4<2jBuHBqaJJkhpSbZ>Z0@ja5*IXAhh@k9K9R*T4Obe>?klEr0sS`e2fh z>*Kv)Z$d`@a&LPw7>~$jtv!s(*H6~| zto=~CReQe{SAVbGtzN6HRQ{^`RQa~DQ8^L+5&sx}6Q7SO<$LA3<()E={x1Dm`mS`X zw6gdB4;LyJ2nK?IU?3O>2L4|IaJCq!)|LHqkM#P(!6>_P*h%|jFaieZ9FymO6UGw` z31ier#|4OYijjE=Grl?b7sL{!DS$Cf!P|a8OeI2NkTph#x4eQdMI=&FX*E)C#wQ3F zo+zMNa)CjoeS;9<)PNC2!JFPeQc;J5Rf6~jNl7_3MgyGk58~8;vet+>uY4jGR7DM?4!4Q8Kg-Fh@To;wkDy_2c(#*y9Mml<$zb6^%gtBfa zUmRo~&oRc7f)_pGri^t8%e{~{P711(V4A^E@3@SS1{v4L8wZ?9Zkgs#_l}z~LTT=5 z`QoOnM>_2UgQ{oTV}>K+D!JmMNw}Z_8xVH7*e~vY5!kz3Id>djV+Dp6YH1etU%g~H zGqX5kxIsoO`ZRIjFk;~V diff --git a/AT_frontend/instance/site.db b/AT_frontend/instance/site.db deleted file mode 100644 index 416bb253cac9facdd386415fcb24f93937207b28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeI(&rZ}p90%~}E>PG6>V?$Am<%VkiICj|S-}`wma=YK7AeKZX*0G1HuTTZKO)}5 zo4$Y#;3LS*)1uvV zn|8N4o%^&j#+=lPLi(a%HJ>)Day>_M9J^c6-f~wa=~gTEp6=&&+LF_FO~Ot*%>UyVaF-<D7cK#uJU?*hvN>b{AGo+aOOk^qcF!M}zq0x`@(1_+ z-3qt5?Tsyy=BtyTjgoP%Frq)2REQV4{B5%Di+B4T%hD*n@5wp#s`4z~?MLO$ZCqqU z`%c7x1OW&@00Izz00bZa0SG_<0uX?}zb&9E!$iNUGdJ+U{8X*Y=4DB&OVNH1aUeke z0uX=z1Rwwb2tWV=5P$##An<<)j288={QY14|35PEnP^|MkD8_3p7}7rGL_yydUELc)&lgo<$ex?r$zm@(q|R&Z>>aQ;^upb1A{I^~t}w9+fhC+eF&DGH ZIpU(Cl4>3?-^D?_&`Uk$d++|B?@xyG4haAN diff --git a/AT_frontend/templates/base.html b/AT_frontend/templates/base.html deleted file mode 100644 index 8e26039..0000000 --- a/AT_frontend/templates/base.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - Admin Dashboard - - - -
-
- - -
-
-

Admin Dashboard

-
-
- - -
- Logout -
-
- - {%block content%} - - {% endblock %} - \ No newline at end of file diff --git a/AT_frontend/templates/inlog.html b/AT_frontend/templates/inlog.html deleted file mode 100644 index 739c54f..0000000 --- a/AT_frontend/templates/inlog.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - Inlog - - - -
-
-

Admin Login

-
- {{ form.csrf_token }} -
- - -
-
- - -
- Must be 8-20 characters long. -
-
-
- - -
- {% if error %} -
- {{ error }} -
- {% endif %} -
- -
-
-
-
- - \ No newline at end of file