-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
117 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,12 @@ | |
<small>{{ new Date(announcement.time).toLocaleString() }}</small> | ||
<a href="/announcements/">查看所有公告</a> | ||
</div> | ||
<div v-if="user.suspicious" class="msg-error"> | ||
经裁判组检查,你的账号有以下疑似违规行为:{{ user.suspicious_reason }}。 | ||
你的账号将会在 {{ new Date(user.suspicious_ddl).toLocaleString() }} 之后被封禁。 | ||
如果你有异议,请尽快联系 <a href="mailto:[email protected]">[email protected]</a>, | ||
提供你的 Token 以及申诉理由。在封禁之前,你仍可正常参加比赛。 | ||
</div> | ||
<div v-if="user" class="msg-info"> | ||
<label for="token">Token:</label> | ||
<button @click="token_show=!token_show">{{ token_show?'隐藏':'显示' }}</button> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
server/user/migrations/0013_user_suspicious_user_suspicious_reason_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Generated by Django 4.2.4 on 2023-09-07 18:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("user", "0012_add_groups"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="user", | ||
name="suspicious", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name="user", | ||
name="suspicious_reason", | ||
field=models.TextField(null=True), | ||
), | ||
migrations.AddField( | ||
model_name="userlog", | ||
name="suspicious", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name="userlog", | ||
name="suspicious_reason", | ||
field=models.TextField(null=True), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
server/user/migrations/0014_user_suspicious_ddl_userlog_suspicious_ddl.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 4.2.4 on 2023-09-08 08:20 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("user", "0013_user_suspicious_user_suspicious_reason_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="user", | ||
name="suspicious_ddl", | ||
field=models.DateTimeField(null=True), | ||
), | ||
migrations.AddField( | ||
model_name="userlog", | ||
name="suspicious_ddl", | ||
field=models.DateTimeField(null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters