Skip to content

Commit

Permalink
chore: Refactor code and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Feb 28, 2024
1 parent d6d38ed commit 6ab9d8e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
2 changes: 1 addition & 1 deletion apps/sspanel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
User,
UserSocialProfile,
)
from apps.utils import get_current_datetime, traffic_format
from apps.sub import UserSubManager
from apps.utils import get_current_datetime, traffic_format


class HelpView(View):
Expand Down
30 changes: 15 additions & 15 deletions templates/basehead.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@
type="image/x-icon" />
<!-- css -->
{% if user.theme and user.theme != "default" %}
<link href="https://cdn.staticfile.org/bulmaswatch/0.8.1/{{ user.theme }}/bulmaswatch.min.css"
rel="stylesheet" />
<link href="https://cdn.staticfile.org/bulmaswatch/0.8.1/{{ user.theme }}/bulmaswatch.min.css"
rel="stylesheet" />
{% else %}
<link href="https://cdn.staticfile.org/bulma/0.9.4/css/bulma.min.css"
rel="stylesheet" />
<link href="https://cdn.staticfile.org/bulma/0.9.4/css/bulma.min.css"
rel="stylesheet" />
{% endif %}
<link rel="stylesheet" href="{% static 'sspanel/css/sspanel.css' %}" />
{% if not simple_extra_static or user.is_authenticated %}
<link rel="stylesheet"
href="https://cdn.staticfile.org/flag-icon-css/3.5.0/css/flag-icon.min.css" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma-extensions@6.2.7/dist/css/bulma-extensions.min.css" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/fontawesome.min.css" />
<link rel="stylesheet"
href="https://cdn.staticfile.org/flag-icon-css/3.5.0/css/flag-icon.min.css" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma-extensions@6.2.7/dist/css/bulma-extensions.min.css" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/fontawesome.min.css" />
{% endif %}
<!-- js -->
<script src="https://cdn.staticfile.org/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/sweetalert/2.1.2/sweetalert.min.js"></script>
<script src="{% static 'sspanel/js/sspanel.js' %}"></script>
{% if not simple_extra_static or user.is_authenticated %}
<script src="https://cdn.staticfile.org/clipboard.js/1.7.1/clipboard.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
<script src="https://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bulma-extensions@6.2.7/dist/js/bulma-extensions.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/js/all.min.js"></script>
<script src="https://cdn.staticfile.org/clipboard.js/1.7.1/clipboard.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
<script src="https://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bulma-extensions@6.2.7/dist/js/bulma-extensions.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/js/all.min.js"></script>
{% endif %}
6 changes: 0 additions & 6 deletions templates/web/help.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{% extends 'base.html' %}
{% block extra_head %}
<script src=" https://cdn.jsdelivr.net/npm/bulma-steps@2.2.1/dist/js/bulma-steps.min.js "></script>
<link href=" https://cdn.jsdelivr.net/npm/bulma-steps@2.2.1/dist/css/bulma-steps.min.css "
rel="stylesheet">
{% endblock extra_head %}

{% block authed %}
<div class="section">
<div class="container">
Expand Down
4 changes: 1 addition & 3 deletions templates/web/user_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ <h2 class="subtitle">根据您的客户端一键选择</h2>
{% for node_type in active_node_types %}
<a class="dropdown-item"
data-display="{{ node_type }}"
data-query="protocol">
{{ node_type }}
</a>
data-query="protocol">{{ node_type }}</a>
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit 6ab9d8e

Please sign in to comment.