mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-08-09 20:14:01 +00:00
Move Code into repo
This commit is contained in:
73
app/templates/main/about.html.j2
Normal file
73
app/templates/main/about.html.j2
Normal file
@@ -0,0 +1,73 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}About{% endblock %}
|
||||
|
||||
{% block content_before %}
|
||||
About {{ config.APP_NAME }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class='card mx-auto mt-5 shadow-sm bg-dark border-primary'>
|
||||
<div class="card-body">
|
||||
<h4 class="text-center">Contributors</h4>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Developer:
|
||||
</div>
|
||||
<div class="col">
|
||||
Aronwk (Aaron Kimbrell)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Developer:
|
||||
</div>
|
||||
<div class="col">
|
||||
Wincent
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Logo Designer:
|
||||
</div>
|
||||
<div class="col">
|
||||
BlasterBuilder
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
LDD/LXFML Rendering:
|
||||
</div>
|
||||
<div class="col">
|
||||
m2m/sttng
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
TODO: add more Contributors
|
||||
</div>
|
||||
<div class="col">
|
||||
Add more
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Source
|
||||
</div>
|
||||
<div class="col">
|
||||
<a href="https://github.com/DarkflameUniverse/AccountManager">
|
||||
Github
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
82
app/templates/main/account_creation.html.j2
Normal file
82
app/templates/main/account_creation.html.j2
Normal file
@@ -0,0 +1,82 @@
|
||||
{% extends "base.html.j2" %}
|
||||
{% block title %}Account Creation{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container" style="margin-top: 50px">
|
||||
|
||||
{# Display DLU.png #}
|
||||
<div style="margin-bottom: 50px">
|
||||
<img
|
||||
src="{{ url_for('static', filename=logo/logo.png) }}"
|
||||
class="center-block img-responsive mx-auto d-block"
|
||||
alt="DLU Logo"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
|
||||
{# If the error value is set, display the error in red text #}
|
||||
{% if error %}
|
||||
<div class="alert alert-danger">
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# If the message value is set, display the message in green text #}
|
||||
{% if message %}
|
||||
<div class="alert alert-success">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# Form which takes in Play Key, Account Name, and Account Password #}
|
||||
<form action="{{ url_for('account_creation') }}" method="post">
|
||||
{# Play Key input #}
|
||||
<div class="form-group">
|
||||
<label for="play_key">Play Key</label>
|
||||
<input type="text" class="form-control" name="play_key" aria-describedby="emailHelp" placeholder="AAAA-BBBB-CCCC-DDDD" value="{{ key }}">
|
||||
<small class="form-text text-muted">In the format: AAAA-BBBB-CCCC-DDDD</small>
|
||||
</div>
|
||||
|
||||
{# Account Name input #}
|
||||
<div class="form-group">
|
||||
<label for="account_name">Username</label>
|
||||
<input type="text" class="form-control" name="account_name" placeholder="Enter username...">
|
||||
<small class="form-text text-muted">Limited to a-z, A-Z, and 0-9. No spaces or special characters. Max 32 characters.</small>
|
||||
</div>
|
||||
|
||||
{# Account Password input #}
|
||||
<div class="form-group">
|
||||
<label for="account_password">Password</label>
|
||||
<input type="password" class="form-control" name="account_password" placeholder="Enter password...">
|
||||
<small class="form-text text-muted"></small>
|
||||
</div>
|
||||
|
||||
{# Account Repeat Password input #}
|
||||
<div class="form-group">
|
||||
<label for="account_repeat_password">Repeat Password</label>
|
||||
<input type="password" class="form-control" name="account_repeat_password" placeholder="Repeat password...">
|
||||
<small class="form-text text-muted"></small>
|
||||
</div>
|
||||
|
||||
{# Agree to the Privacy Policy and Terms of Service #}
|
||||
<div class="form-group">
|
||||
<label class="checkbox-inline">
|
||||
<input type="checkbox" name="agree">
|
||||
I agree to the <a href="{{ url_for('static', filename=resources.PRIVACY_POLICY) }}" target="_blank">Privacy Policy</a> and <a href="{{ url_for('static', filename=resources.TERMS_OF_USE) }}" target="_blank">Terms of Service</a>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{# Submit button #}
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">Create Account</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
53
app/templates/main/data_download.html.j2
Normal file
53
app/templates/main/data_download.html.j2
Normal file
@@ -0,0 +1,53 @@
|
||||
{% extends "bootstrap/base.html" %}
|
||||
{% block title %}Data Download{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container" style="margin-top: 50px">
|
||||
|
||||
{# Display logo #}
|
||||
<div style="margin-bottom: 50px">
|
||||
<img
|
||||
src="{{ url_for('static', filename=resources.LOGO) }}"
|
||||
class="center-block img-responsive mx-auto d-block"
|
||||
alt="DLU Logo"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
|
||||
{# If the error value is set, display the error in red text #}
|
||||
{% if error %}
|
||||
<div class="alert alert-danger">
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# If the message value is set, display the message in green text #}
|
||||
{% if message %}
|
||||
<div class="alert alert-success">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# Form which takes in Character Name #}
|
||||
<form action="{{ url_for('data_download') }}" method="post">
|
||||
{# Account Name input #}
|
||||
<div class="form-group">
|
||||
<label for="character_name">Character Name</label>
|
||||
<input type="text" class="form-control" name="character_name" placeholder="Enter username...">
|
||||
<small class="form-text text-muted">Full character name.</small>
|
||||
</div>
|
||||
|
||||
{# Submit button #}
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">Download</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
49
app/templates/main/index.html.j2
Normal file
49
app/templates/main/index.html.j2
Normal file
@@ -0,0 +1,49 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}Home{% endblock %}
|
||||
|
||||
{% block content_before %}
|
||||
{% if current_user.is_authenticated %}
|
||||
Welcome back {{ current_user.username }}!
|
||||
{% else %}
|
||||
Welcome Explorer!
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if current_user.is_authenticated %}
|
||||
{% include 'partials/_account.html.j2' %}
|
||||
{% else %}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<a role="button" class="btn btn-primary btn-lg btn-block"
|
||||
href='{{ url_for('user.login') }}'>
|
||||
Login
|
||||
</a>
|
||||
</div>
|
||||
{% if config.USER_ENABLE_REGISTER %}
|
||||
<div class="col">
|
||||
<a role="button" class="btn btn-primary btn-lg btn-block"
|
||||
href='{{ url_for('user.register') }}'>
|
||||
Register
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
||||
{% block content_after %}
|
||||
{% if current_user.is_authenticated %}
|
||||
<br/>
|
||||
<br/>
|
||||
<h3 class="text-center">Characters</h3>
|
||||
<hr class="bg-primary"/>
|
||||
<div class="card-columns">
|
||||
{% for character in account_data.charinfo %}
|
||||
{% include 'partials/_character.html.j2' %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock content_after %}
|
||||
|
Reference in New Issue
Block a user