Skip to content

Commit

Permalink
Old data migration version
Browse files Browse the repository at this point in the history
  • Loading branch information
wumingzhilian committed May 15, 2024
1 parent 7a85ce0 commit 2812a00
Show file tree
Hide file tree
Showing 7 changed files with 16,299 additions and 5 deletions.
3 changes: 3 additions & 0 deletions dojo_plugin/pages/dojos.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def listing():
"Advanced": [],
"Topics": [],
"Courses": [],
"Archive":[],
"More Material": [],
}
for dojo in Dojos.viewable(user=user):
Expand All @@ -49,6 +50,8 @@ def listing():
typed_dojos["Advanced"].append(dojo)
elif dojo.type == "topic":
typed_dojos["Topics"].append(dojo)
elif dojo.type == "archive":
typed_dojos["Archive"].append(dojo)
elif dojo.type == "course":
typed_dojos["Courses"].append(dojo)
elif dojo.type == "hidden":
Expand Down
8,443 changes: 8,443 additions & 0 deletions dojo_theme/static/img/dojo/Coal_Badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7,846 changes: 7,846 additions & 0 deletions dojo_theme/static/img/dojo/Forest_Badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dojo_theme/templates/dojo.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ <h2 class="row">道馆排名</h2>
{% endblock %}

{% block scripts %}
<script defer onload="loadScoreboard(30, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
<script defer onload="loadScoreboard(0, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
<script defer src="{{ url_for('views.themes', path='js/dojo/copy.js') }}"></script>
{% endblock %}
2 changes: 1 addition & 1 deletion dojo_theme/templates/dojo_error.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ <h4 class="card-title">{{ module.name or module.id }}</h4>
{% endblock %}

{% block scripts %}
<script defer onload="loadScoreboard(30, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
<script defer onload="loadScoreboard(0, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
<script defer src="{{ url_for('views.themes', path='js/dojo/copy.js') }}"></script>
{% endblock %}
6 changes: 4 additions & 2 deletions dojo_theme/templates/dojos.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ <h2>中级篇</h2>
{% elif type == "Advanced" %}
<h2>高级篇</h2>
<p> 神奇宝贝联盟大会 </p>
<!-- <h2>课程</h2>
<p>在此平台,我们开展了众多课程。这些课程大多采纳上文提及的教材,然而部分课程将引入崭新的观点与挑战。</p> -->
{% elif type == "Archive" %}
<h2>归档</h2>
<p>历史课程</p>
{% endif %}
<ul class="card-list">
{% for dojo in dojos %}
Expand All @@ -50,6 +51,7 @@ <h2>高级篇</h2>
</ul>
<br>
{% endfor %}

{% endblock %}

{% block scripts %}
Expand Down
2 changes: 1 addition & 1 deletion dojo_theme/templates/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,5 @@ <h2>模块排名</h2>
{% block scripts %}

<script defer src="{{ url_for('views.themes', path='js/dojo/challenges.js') }}"></script>
<script defer onload="loadScoreboard(30, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
<script defer onload="loadScoreboard(0, 1);" src="{{ url_for('views.themes', path='js/dojo/scoreboard.js') }}"></script>
{% endblock %}

0 comments on commit 2812a00

Please sign in to comment.