Commit c0a59c6e authored by DanVJ's avatar DanVJ 🐧
Browse files

web app init

parent 5673938d
from flask import Flask, redirect, url_for, render_template
app = Flask(__name__)
@app.route('/')
def index():
with open("webapp/dropdowns/keys", "r") as keysFile:
keys = keysFile.read().splitlines()
return render_template("index.html", keys=keys)
@app.route('/home/')
def home():
return redirect(url_for("index"))
if __name__ == '__main__':
app.run(debug=True)
///////////////////////////////////////////////////////////////
// _ ___ _ _____ _ ____ //
// | |/ _ \| | |_ _| ( ) / ___| //
// _ | | | | | | | | |/ \___ \ //
// | |_| | |_| | |___| | ___) | //
// \___/ \___/|_____|_| |____/ //
// _ __ //
// __ _ _ _| |_ ___ _____ _____ ___ ___ / _| __ _ //
// / _` | | | | __/ _ \ / _ \ \/ / _ \/ __| / __| |_ / _` | //
// | (_| | |_| | || (_) | __/> < __/ (__ | (__| _| (_| | //
// \__,_|\__,_|\__\___/ \___/_/\_\___|\___(_)___|_| \__, | //
// |___/ //
///////////////////////////////////////////////////////////////
\ No newline at end of file
// DanVJ - geral@danvj.pt // you can customize. //
///////////////////////////////////////////////////////////////
\ No newline at end of file
// --- 0. UNBIND ALL KEYS --- //
unbindall // deletes all previous binds
\ No newline at end of file
// ---- 1. KEYBINDS --- //
\ No newline at end of file
// - 1.1 SELECTORS - //
\ No newline at end of file
0
1
2
3
4
5
6
7
8
9
`
!
"
£
$
%
^
&
*
(
)
_
+
=
¬
|
\
,
.
/
<
>
?
@
'
{
}
[
]
#
~
;
:
Q
W
E
R
T
Y
U
I
O
P
A
S
D
F
G
H
J
K
L
Z
X
C
V
B
N
M
SPACE
CTRL
RCTRL
SHIFT
CAPSLOCK
TAB
PAUSE
ESCAPE
ALT
UPARROW
DOWNARROW
RIGHTARROW
LEFTARROW
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
KP_INS
KP_DEL
KP_MINUS
KP_END
KP_LEFTARROW
KP_HOME
KP_DOWNARROW
KP_5
KP_UPARROW
KP_PGDN
KP_RIGHTARROW
KP_PGUP
KP_PLUS
MOUSE1
MOUSE2
MOUSE3
MOUSE4
MOUSE5
MOUSE6
MWHEELUP
MWHEELDOWN
\ No newline at end of file
{% extends "template.html" %}
{% block content %}
<h2>autoexec.cfg Generator</h2>
<form>
<div class="accordion" id="configSettings">
<div class="accordion-item">
<h2 class="accordion-header" id="kaybinds">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne"
aria-expanded="true" aria-controls="collapseOne">
Keybindings
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<h4>Selectors</h4>
<select class="form-select" aria-label="Default select example" id="primary">
{% for i in keys%}
<option value="{{i}}">{{i}}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Accordion Item #2
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the second item's accordion body.</strong> It is hidden by default, until the
collapse
plugin adds the appropriate classes that we use to style each element. These classes control the
overall
appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with
custom CSS or overriding our default variables. It's also worth noting that just about any HTML can
go
within the <code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Accordion Item #3
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" aria-labelledby="headingThree"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the third item's accordion body.</strong> It is hidden by default, until the
collapse
plugin adds the appropriate classes that we use to style each element. These classes control the
overall
appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with
custom CSS or overriding our default variables. It's also worth noting that just about any HTML can
go
within the <code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
</div>
</form>
{% endblock %}
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<title>CSGO Jolt's Configs</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css"
integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
</head>
<body>
<!-- Content start-->
<div class="container">
<h1>CSGO Jolt's Configs</h1>
{% block content %}{% endblock %}
</div>
<!-- Content end-->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"
integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js"
integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj"
crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.1.1/js/all.js"
integrity="sha384-BtvRZcyfv4r0x/phJt9Y9HhnN5ur1Z+kZbKVgzVBAlQZX4jvAuImlIz+bG7TS00a"
crossorigin="anonymous"></script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment