Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit bd785f1

Browse files
authored
Merge pull request #243 from Ehco1996/dev
remove ssr support
2 parents f0018f2 + 500e384 commit bd785f1

File tree

91 files changed

+3057
-3737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3057
-3737
lines changed

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,9 @@ apps/Alipay_pub.pem
105105
*.dat
106106

107107
#PyCharm
108-
.idea/
108+
.idea/
109+
110+
static/admin/
111+
static/jet/
112+
static/range_filter/
113+
*.log

apps/api/urls.py

+17-13
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,31 @@
33

44
app_name = "api"
55
urlpatterns = [
6-
path("user/data/", views.userData, name="userdata"),
7-
path("node/data/", views.nodeData, name="nodedata"),
8-
path("donate/data/", views.donateData, name="donatedata"),
9-
path("random/port/", views.change_ss_port, name="changessport"),
6+
path("system_status/", views.SystemStatusView.as_view(), name="system_status"),
7+
path("user/settings/", views.UserSettingsView.as_view(), name="user_settings"),
8+
path("subscribe/", views.SubscribeView.as_view(), name="subscribe"),
9+
path("reset_ss_port/", views.ReSetSSPortView.as_view(), name="reset_ss_port"),
1010
path("gen/invitecode/", views.gen_invite_code, name="geninvitecode"),
1111
path("shop/", views.purchase, name="purchase"),
12-
path("traffic/query/", views.traffic_query, name="traffic_query"),
1312
path("change/theme/", views.change_theme, name="change_theme"),
1413
path("change/sub_type/", views.change_sub_type, name="change_sub_type"),
15-
path("checkin/", views.checkin, name="checkin"),
16-
# 邀请码接口
17-
path("get/invitecode/", views.get_invitecode, name="get_invitecode"),
14+
path("checkin/", views.UserCheckInView.as_view(), name="checkin"),
1815
# web api 接口
19-
path("nodes/<int:node_id>", views.node_api, name="get_node_info"),
20-
path("nodes/online", views.node_online_api, name="post_onlineip"),
2116
path(
22-
"users/nodes/<int:node_id>", views.node_user_configs, name="node_user_configs"
17+
"user_ss_config/<int:node_id>/",
18+
views.UserSSConfigView.as_view(),
19+
name="user_ss_config",
2320
),
24-
path("traffic/upload", views.traffic_api, name="post_traffic"),
25-
path("nodes/aliveip", views.alive_ip_api, name="post_aliveip"),
2621
# 支付
2722
path("orders", views.OrderView.as_view(), name="order"),
2823
path("callback/alipay", views.ailpay_callback, name="alipay_callback"),
24+
# user stats
25+
path(
26+
"user/stats/ref_chart", views.UserRefChartView.as_view(), name="user_ref_chart"
27+
),
28+
path(
29+
"user/stats/traffic_chart",
30+
views.UserTrafficChartView.as_view(),
31+
name="user_traffic_chart",
32+
),
2933
]

0 commit comments

Comments
 (0)