Skip to content

Commit

Permalink
Clean up unfinished code
Browse files Browse the repository at this point in the history
  • Loading branch information
bubner committed Jul 26, 2023
1 parent 76ad3a5 commit 8abf2e2
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 43 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ The register can be used to compile data for planning, reporting, and/or inclusi

During a specified event, the application utilises a QR code check-in process with online sign-up and prerequisite beforehand. As teams prerequisitely register, their team number will be fetched with the [FIRSTTeamAPI](https://github.com/hololb/FIRSTTeamAPI), simplifying the registering process in a simple, modern, and accessible web UI. Once the event is over, the data can be exported or viewed at the event owner's discretion.

###### Copyright (c) Lucas Bubner 2023 under the [MIT License](https://raw.githubusercontent.com/hololb/RoboRegistry/prod/LICENSE).
###### Copyright (c) 2023 Lucas Bubner under the [BSD 3-Clause Clear License](https://raw.githubusercontent.com/hololb/RoboRegistry/prod/LICENSE).
8 changes: 8 additions & 0 deletions src/static/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"short_name": "RoboRegistry",
"name": "RoboRegistry",
"start_url": "/",
"display": "standalone",
"theme_color": "#fff200",
"background_color": "#212529"
}
2 changes: 1 addition & 1 deletion src/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ footer {
position: fixed;
left: 0;
bottom: 0;
height: 35px;
height: 25px;
width: 100%;
z-index: 100;
}
Expand Down
6 changes: 2 additions & 4 deletions src/templates/dash/view.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ Your Events
Options
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="/events/manage/{{ uid }}">Manage and
view</a>
<a class="dropdown-item" href="/events/gen/{{ uid }}">Generate QR
Codes</a>
<a class="dropdown-item" href="/events/manage/{{ uid }}">Manage event</a>
<a class="dropdown-item" href="/events/gen/{{ uid }}">Generate QR Codes</a>
<a class="dropdown-item text-danger" href="/events/delete/{{ uid }}">Delete</a>
</div>
</div>
Expand Down
19 changes: 12 additions & 7 deletions src/templates/event/manage.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Manage '{{ event.name }}'
<br />
<h1 class="maxtext text-center">{{ event.name|upper }}</h1>
<hr />
<div class="row">
This page is a work-in-progress! <br />
{# <div class="row">
<div class="col-md-4">
<div class="card mb-4 shadow-sm">
<div class="card-body">
Expand Down Expand Up @@ -60,7 +61,7 @@ Manage '{{ event.name }}'
<div class="col-md-12">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-title">box 1</h4>
<h4 class="card-title">Metrics</h4>
<p class="card-text">box 1 info</p>
</div>
</div>
Expand All @@ -71,21 +72,25 @@ Manage '{{ event.name }}'
<div class="col-md-6">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-title">box 2</h4>
<p class="card-text">box 2 info</p>
<h4 class="card-title">Status</h4>
<p class="card-text"></p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card shadow-sm">
<div class="card-body">
<h4 class="card-title">box 3</h4>
<p class="card-text">box 3 info</p>
<h4 class="card-title">Quick Actions</h4>
<div class="d-grid gap-2">
<button class="btn btn-outline-secondary" type="button">Button 1</button>
<button class="btn btn-outline-secondary" type="button">Button 2</button>
<button class="btn btn-outline-secondary" type="button">Button 3</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div> #}
<div class="modal fade" id="fullPageModal" tabindex="-1" aria-labelledby="fullPageModalLabel" aria-hidden="true">
<div class="modal-dialog modal-fullscreen">
<div class="modal-content">
Expand Down
11 changes: 6 additions & 5 deletions src/templates/layout.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="manifest" href="{{ url_for('static', filename='manifest.json') }}" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}" />
Expand All @@ -17,7 +18,7 @@
integrity="sha384-yBhgDqxM50qJV5JPdayci8wCfooqvhFYbIKhv0hTtLvfeeyJMJCscRfFNKIxt43M"
crossorigin="anonymous"></script>
<meta name="author" content="Lucas Bubner, 2023" />
<meta name="description" content="Registry for Recording and Tracking RoboLeague Event Attendance" />
<meta name="description" content="Registry for Recording and Tracking FLL/FTC/FRC Event Attendance" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block title %}{% endblock %} | RoboRegistry</title>
</head>
Expand Down Expand Up @@ -95,11 +96,11 @@
</noscript>
<main>{% block body %}{% endblock %}</main>
<footer
style="background-color: {{ '#1c1c1c' if request.cookies.get('darkmode') == 'on' else 'rgb(228, 228, 228)' }};">
<p style="color: {{ 'white' if request.cookies.get('darkmode') == 'on' else 'rgb(110, 110, 110)' }};">
style="background-color: {{ '#1f1f1f' if request.cookies.get('darkmode') == 'on' else 'rgb(228, 228, 228)' }};">
<p style="color: {{ '#6c757d' if request.cookies.get('darkmode') == 'on' else 'rgb(110, 110, 110)' }};">
© 2023
<a href="https://github.com/hololb/" target="_blank" style="color: rgb(91, 116, 230);">Lucas Bubner</a>,
FTC 15215.
<a href="https://github.com/hololb/" target="_blank" style="color: rgb(91, 116, 230);">Lucas Bubner</a>.
All rights reserved.
<noscript>Running without JavaScript.</noscript>
</p>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions src/templates/misc/about.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ About
onClick='window.open("https://getbootstrap.com/", "_blank")' />
</div>
<br />
<h6>Copyright (c) Lucas Bubner 2023 under the <a target="_blank"
href="https://raw.githubusercontent.com/hololb/RoboRegistry/prod/LICENSE">MIT
License.</a></h6>
<h6>Copyright (c) 2023 Lucas Bubner under the <a target="_blank"
href="https://raw.githubusercontent.com/hololb/RoboRegistry/prod/LICENSE">BSD 3-Clause Clear License.
</a></h6>
<br />
<a href="/dashboard" class="btn btn-secondary">Go to dashboard</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/misc/settings.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Settings
</div>
<div class="mb-3 d-flex flex-column flex-md-row justify-content-evenly">
<a href="/changepassword" class="btn btn-outline-primary mb-2 mb-md-0">Change Password</a>
<a href="/exportall" class="btn btn-outline-secondary mb-2 mb-md-0">Export All Data</a>
{# <a href="/exportall" class="btn btn-outline-secondary mb-2 mb-md-0">Export All Data</a> #}
<a href="/deleteaccount" class="btn btn-outline-danger mb-2 mb-md-0">Delete Account</a>
</div>
</div>
Expand Down

0 comments on commit 8abf2e2

Please sign in to comment.