Skip to content

Commit

Permalink
Update Vite to change project root to simplify paths and reduce numbe…
Browse files Browse the repository at this point in the history
…r of watched files dramatically.
  • Loading branch information
BusterNeece committed Aug 12, 2024
1 parent 9c3f969 commit a799201
Show file tree
Hide file tree
Showing 13 changed files with 207 additions and 201 deletions.
82 changes: 41 additions & 41 deletions backend/templates/account/recover.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/passwordStrength.js') }}
{{ renderAssets('passwordStrength.js') }}

<script>
ready(() => {
Expand All @@ -13,52 +13,52 @@
{% endblock %}

{% block content %}
<div class="container page">
<div class="card mx-auto" style="max-width: 400px;">
<div class="card-body">
<form class="form-recover" action="" method="POST" id="forgot-recover">
<h2 class="text-center">
Reset Account Password
</h2>
<p class="card-text">
Enter a new password below to reset your account password and log in.
</p>
<div class="container page">
<div class="card mx-auto" style="max-width: 400px;">
<div class="card-body">
<form class="form-recover" action="" method="POST" id="forgot-recover">
<h2 class="text-center">
Reset Account Password
</h2>
<p class="card-text">
Enter a new password below to reset your account password and log in.
</p>

{% if error %}
<div class="alert alert-danger">
<b>Error:</b> {{ error }}
</div>
{% endif %}
{% if error %}
<div class="alert alert-danger">
<b>Error:</b> {{ error }}
</div>
{% endif %}

<div class="form-label-group mb-2">
<label>
Create New Password:
<input type="password" class="form-control form-control-secondary" id="passwordField"
name="new_password" autocomplete="new-password" required>
</label>
<div class="progress mt-2">
<div class="progress-bar" id="passwordStrengthBar" role="progressbar"
style="width: 0%" aria-valuenow="0" aria-valuemin="0"
aria-valuemax="100"></div>
<div class="form-label-group mb-2">
<label>
Create New Password:
<input type="password" class="form-control form-control-secondary" id="passwordField"
name="new_password" autocomplete="new-password" required>
</label>
<div class="progress mt-2">
<div class="progress-bar" id="passwordStrengthBar" role="progressbar"
style="width: 0%" aria-valuenow="0" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
<small id="passwordStrengthText" class="form-text text-muted"></small>
</div>
<small id="passwordStrengthText" class="form-text text-muted"></small>
</div>

<div class="form-label-group">
<label>
Verify New Password:
<input type="password" class="form-control form-control-secondary"
name="new_password_confirm" autocomplete="new-password" required>
</label>
</div>
<div class="form-label-group">
<label>
Verify New Password:
<input type="password" class="form-control form-control-secondary"
name="new_password_confirm" autocomplete="new-password" required>
</label>
</div>

<input type="hidden" name="token" value="{{ token|e('html_attr') }}">
<input type="hidden" name="token" value="{{ token|e('html_attr') }}">

<div class="mt-3 d-grid gap-2">
<button class="btn btn-lg btn-primary btn-block" type="submit">Reset Password</button>
</div>
</form>
<div class="mt-3 d-grid gap-2">
<button class="btn btn-lg btn-primary btn-block" type="submit">Reset Password</button>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
186 changes: 94 additions & 92 deletions backend/templates/account/register.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/passwordStrength.js') }}
{{ renderAssets('passwordStrength.js') }}

<script>
ready(() => {
passwordStrength();
Expand All @@ -13,115 +13,117 @@
{% endblock %}

{% block content %}
<video class="bg-video" loading="lazy" loop="loop" autoplay muted="muted" volume="0">
<source src="/static/video/register.mp4" type="video/mp4">
<source src="/static/video/register.webm" type="video/webm">
</video>
<video class="bg-video" loading="lazy" loop="loop" autoplay muted="muted" volume="0">
<source src="/static/video/register.mp4" type="video/mp4">
<source src="/static/video/register.webm" type="video/webm">
</video>

<div class="container page">
{% if data.ref is not empty %}
<div class="card mb-4 mx-auto" style="max-width: 700px;">
<h5 class="card-header">You have been referred by:</h5>
<div class="card-body">
<h1>{{ data.ref }}</h1>
<div class="container page">
{% if data.ref is not empty %}
<div class="card mb-4 mx-auto" style="max-width: 700px;">
<h5 class="card-header">You have been referred by:</h5>
<div class="card-body">
<h1>{{ data.ref }}</h1>
</div>
</div>
</div>
{% endif %}
{% endif %}

<div class="card mx-auto" style="max-width:700px;">
<div class="card-header">
<h2 class="card-title m-0">Register to WaterWolf</h2>
</div>
<div class="card-body">
{% if error %}
<div class="alert alert-danger">
<b>Error:</b> {{ error }}
</div>
{% endif %}
<div class="card mx-auto" style="max-width:700px;">
<div class="card-header">
<h2 class="card-title m-0">Register to WaterWolf</h2>
</div>
<div class="card-body">
{% if error %}
<div class="alert alert-danger">
<b>Error:</b> {{ error }}
</div>
{% endif %}

<form name="register" method="post">
<input type="hidden" name="ref" value="{{ data.ref|e('html_attr') }}">
<div class="row mb-2">
<div class="col-lg-6">
<div class="form-group">
<label for="reg_username" class="form-label">Username:</label>
<input type="text" class="form-control form-control-secondary"
id="reg_username" name="reg_username"
autocomplete="off" placeholder="Username" maxlength="24"
value="{{ data.reg_username|e('html_attr') }}" required>
<form name="register" method="post">
<input type="hidden" name="ref" value="{{ data.ref|e('html_attr') }}">
<div class="row mb-2">
<div class="col-lg-6">
<div class="form-group">
<label for="reg_username" class="form-label">Username:</label>
<input type="text" class="form-control form-control-secondary"
id="reg_username" name="reg_username"
autocomplete="off" placeholder="Username" maxlength="24"
value="{{ data.reg_username|e('html_attr') }}" required>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label for="reg_email" class="form-label">E-mail Address:</label>
<input type="email" class="form-control form-control-secondary"
id="reg_email" name="reg_email"
placeholder="email@place.com"
value="{{ data.reg_email|e('html_attr') }}" required>
<div class="col-lg-6">
<div class="form-group">
<label for="reg_email" class="form-label">E-mail Address:</label>
<input type="email" class="form-control form-control-secondary"
id="reg_email" name="reg_email"
placeholder="email@place.com"
value="{{ data.reg_email|e('html_attr') }}" required>
</div>
</div>
</div>
</div>

<div class="row mb-2">
<div class="col-lg-6">
<div class="form-group">
<label for="passwordField" class="form-label">Create Password:</label>
<input type="password" class="form-control form-control-secondary" id="passwordField"
name="reg_pass" placeholder="*****" required>
<div class="row mb-2">
<div class="col-lg-6">
<div class="form-group">
<label for="passwordField" class="form-label">Create Password:</label>
<input type="password" class="form-control form-control-secondary" id="passwordField"
name="reg_pass" placeholder="*****" required>

<div class="progress mt-2">
<div class="progress-bar" id="passwordStrengthBar" role="progressbar"
style="width: 0%" aria-valuenow="0" aria-valuemin="0"
aria-valuemax="100"></div>
<div class="progress mt-2">
<div class="progress-bar" id="passwordStrengthBar" role="progressbar"
style="width: 0%" aria-valuenow="0" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
<small id="passwordStrengthText" class="form-text text-muted"></small>
</div>
<small id="passwordStrengthText" class="form-text text-muted"></small>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="reg_pass_confirm" class="form-label">Verify Same Password:</label>
<input type="password" class="form-control form-control-secondary"
id="reg_pass_confirm" name="reg_pass_confirm" placeholder="*****" required>
<div class="col-lg-6">
<div class="form-group">
<label for="reg_pass_confirm" class="form-label">Verify Same Password:</label>
<input type="password" class="form-control form-control-secondary"
id="reg_pass_confirm" name="reg_pass_confirm" placeholder="*****" required>
</div>
</div>
</div>
</div>

<div class="form-group mb-2">
<label for="vrchat_uid" class="form-label">VRChat Profile URL:</label>
<input type="text" class="form-control form-control-secondary"
id="vrchat_uid" name="vrchat_uid"
maxlength="200"
placeholder="https://vrchat.com/home/user/usr_abcdefg1-1234-5678-9012-abcdefghijk1" required>
<div class="form-text">
Log in to <a href="https://vrchat.com/home/login" target="_blank">VRChat</a>, click your display
name in the sidebar, and paste the URL of your profile page.
<div class="form-group mb-2">
<label for="vrchat_uid" class="form-label">VRChat Profile URL:</label>
<input type="text" class="form-control form-control-secondary"
id="vrchat_uid" name="vrchat_uid"
maxlength="200"
placeholder="https://vrchat.com/home/user/usr_abcdefg1-1234-5678-9012-abcdefghijk1"
required>
<div class="form-text">
Log in to <a href="https://vrchat.com/home/login" target="_blank">VRChat</a>, click your
display
name in the sidebar, and paste the URL of your profile page.
</div>
</div>
</div>

<div class="form-group mb-2">
<label for="discord_username" class="form-label">Discord Username:</label>
<input type="text" class="form-control form-control-secondary"
id="discord_username" name="discord_username"
maxlength="24"
placeholder="ChuckNorris" required>
</div>
<div class="form-group mb-2">
<label for="discord_username" class="form-label">Discord Username:</label>
<input type="text" class="form-control form-control-secondary"
id="discord_username" name="discord_username"
maxlength="24"
placeholder="ChuckNorris" required>
</div>

<div class="form-group mb-2">
<label for="reg_country" class="form-label">Country Of Origin:</label>
<select name="reg_country" class="form-select" id="reg_country">
{% include "common/countries.twig" %}
</select>
</div>
<div class="form-group mb-2">
<label for="reg_country" class="form-label">Country Of Origin:</label>
<select name="reg_country" class="form-select" id="reg_country">
{% include "common/countries.twig" %}
</select>
</div>

<div class="buttons mt-3 d-grid gap-2">
<button type="submit" class="btn btn-lg btn-primary btn-block">
<i class="bi-plus-circle" aria-hidden="true"></i>
Create Account
</button>
</div>
</form>
<div class="buttons mt-3 d-grid gap-2">
<button type="submit" class="btn btn-lg btn-primary btn-block">
<i class="bi-plus-circle" aria-hidden="true"></i>
Create Account
</button>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion backend/templates/dashboard/admin/groups/list.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/dataTable.js') }}
{{ renderAssets('dataTable.js') }}

<script>
ready(() => {
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/dashboard/admin/poster_types/list.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/dataTable.js') }}
{{ renderAssets('dataTable.js') }}

<script>
ready(() => {
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/dashboard/admin/users.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/dataTable.js') }}
{{ renderAssets('dataTable.js') }}

<script>
ready(() => {
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/dashboard/admin/worlds/list.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/dataTable.js') }}
{{ renderAssets('dataTable.js') }}

<script>
ready(() => {
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/dashboard/password.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/passwordStrength.js') }}
{{ renderAssets('passwordStrength.js') }}

<script>
ready(() => {
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/dashboard/short_urls/list.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block head %}
{{ parent() }}

{{ renderAssets('frontend/dataTable.js') }}
{{ renderAssets('dataTable.js') }}

<script>
ready(() => {
Expand Down
Loading

0 comments on commit a799201

Please sign in to comment.