mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-08-24 19:34:23 -05:00
Add a bit of text to various spots explaining that raw IDs are accepted when the feature is enabled.
This commit is contained in:
@@ -353,6 +353,9 @@ def navigation() -> Dict[str, Any]:
|
||||
for f in os.listdir(os.path.join(static_location, "components"))
|
||||
if re.search(r"\.react\.js$", f)
|
||||
]
|
||||
custom_config = {}
|
||||
if g.config.server.allow_raw_ids:
|
||||
custom_config['allow_raw_ids'] = True
|
||||
|
||||
# Look up the logged in user ID.
|
||||
try:
|
||||
@@ -366,6 +369,7 @@ def navigation() -> Dict[str, Any]:
|
||||
"assets": f"themes/{config.theme}/",
|
||||
"theme_url": jinja2_theme,
|
||||
"cache_bust": f"v={FRONTEND_CACHE_BUST}",
|
||||
"custom_config": custom_config,
|
||||
}
|
||||
except AttributeError:
|
||||
# If we are trying to render a 500 error and we couldn't even run the
|
||||
@@ -377,6 +381,7 @@ def navigation() -> Dict[str, Any]:
|
||||
"assets": f"themes/{config.theme}/",
|
||||
"theme_url": jinja2_theme,
|
||||
"cache_bust": f"v={FRONTEND_CACHE_BUST}",
|
||||
"custom_config": custom_config,
|
||||
}
|
||||
|
||||
pages: List[Dict[str, Any]] = []
|
||||
@@ -985,4 +990,5 @@ def navigation() -> Dict[str, Any]:
|
||||
"assets": f"themes/{config.theme}/",
|
||||
"theme_url": jinja2_theme,
|
||||
"cache_bust": f"v={FRONTEND_CACHE_BUST}",
|
||||
"custom_config": custom_config,
|
||||
}
|
||||
|
||||
@@ -85,6 +85,18 @@ var card_management = createReactClass({
|
||||
</div>
|
||||
<div className="section">
|
||||
<h3>Add Card</h3>
|
||||
{
|
||||
window.config['allow_raw_ids'] ?
|
||||
<p>
|
||||
Enter the 16 digit code found on the back of an e-AMUSEMENT card or displayed
|
||||
in-game when you scan an Amusement IC card. For convenience, you can also enter
|
||||
the raw 16 digit card ID usually starting with <code>E004</code>.
|
||||
</p> :
|
||||
<p>
|
||||
Enter the 16 digit code found on the back of an e-AMUSEMENT card or displayed
|
||||
in-game when you scan an Amusement IC card.
|
||||
</p>
|
||||
}
|
||||
<form onSubmit={this.addNewCard}>
|
||||
<input
|
||||
type="text"
|
||||
|
||||
@@ -11,6 +11,16 @@
|
||||
Enter the card number and PIN of a card that you've previously linked
|
||||
to your account. Any linked card will work as long as you also enter
|
||||
the correct PIN and the username of the account the card is linked to.
|
||||
{% if custom_config.get("allow_raw_ids", False) %}
|
||||
The card number is the 16 digit code found on the back of an
|
||||
e-AMUSEMENT card or displayed in-game when you scan an Amusement
|
||||
IC card. For convenience, you can also enter the raw 16 digit card
|
||||
ID usually starting with <code>E004</code>.
|
||||
{% else %}
|
||||
The card number is the 16 digit code found on the back of an
|
||||
e-AMUSEMENT card or displayed in-game when you scan an Amusement
|
||||
IC card.
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<dl>
|
||||
|
||||
@@ -9,6 +9,16 @@
|
||||
one credit on a game linked to this network. If you have not done so you cannot
|
||||
register an account. Enter the card number and PIN of the card you have used to
|
||||
play on this network.
|
||||
{% if custom_config.get("allow_raw_ids", False) %}
|
||||
The card number is the 16 digit code found on the back of an
|
||||
e-AMUSEMENT card or displayed in-game when you scan an Amusement
|
||||
IC card. For convenience, you can also enter the raw 16 digit card
|
||||
ID usually starting with <code>E004</code>.
|
||||
{% else %}
|
||||
The card number is the 16 digit code found on the back of an
|
||||
e-AMUSEMENT card or displayed in-game when you scan an Amusement
|
||||
IC card.
|
||||
{% endif %}
|
||||
</p>
|
||||
<dl>
|
||||
<dt>Card Number (found on back of e-AMUSEMENT card)</dt>
|
||||
|
||||
@@ -152,6 +152,7 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
window.assets = {{ assets|tojson|safe }};
|
||||
window.config = {{ custom_config|tojson|safe }};
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
|
||||
Reference in New Issue
Block a user