This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
forked from yaakiyu/rt-frontend
-
Notifications
You must be signed in to change notification settings - Fork 3
/
layout.html
180 lines (177 loc) · 7.67 KB
/
layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/css/main.css">
^^
self.menuItem = lambda url, ja, en: f'<a href="{url}" class="m language ja" hidden>{ja}</a>' \
f'<a href="{url}" class="m language en" hidden>{en}</a>'
head
^^
<meta name="theme-color" content="#6E3DD9">
<link rel="icon" href="/img/favicon.ico">
<script type="module">
// アカウントのログイン処理をする。
import { replaceLanguage } from "/js/language.js";
replaceLanguage();
fetch(new Request("/api/account"))
.then(response => { return response.json(); })
.then(data => {
if (data.status == 200 && data.data.login) {
data = data.data;
document.getElementById("login").remove();
document.getElementById("userName").innerText = data.user_name;
document.getElementById("account").setAttribute("style", "display: inline !important;");
};
});
</script>
</head>
<body>
<header>
<a href="/" class="logo">RT Discord Bot</a>
<div class="margin"></div>
<label class="menu">
<input type="checkbox">
<div class="menu-btn">
<div></div>
<div></div>
<div></div>
</div>
<div class="menu-list">
^^ self.menuItem("/news.html", "ニュース", "News") ^^
^^ self.menuItem("/help.html", "ヘルプ", en="Help") ^^
^^ self.menuItem("/rocations", "サーバー掲示板", en="Server BBS") ^^
^^ self.menuItem("https://discord.gg/VHwJ3CBuWw", "サポートサーバー", "Support Server") ^^
^^ self.menuItem(
"https://discord.com/api/oauth2/authorize?client_id=961521106227974174&permissions=8&scope=bot%20applications.commands",
"導入する", "Invite"
) ^^
^^ self.menuItem(
"/api/account/login", "ログイン", "Login"
).replace("m", "m login").replace("hidden", 'id="login" hidden') ^^
<span class="m account" id="account">
<a class="name" id="userName"></a>
<div class="dropdown">
<a href="/dashboard">Dashboard</a>
<a href="/api/account/logout">Log out</a>
</div>
</span>
</div>
</label>
</header>
<h1>重要なお知らせ</h1>
RTの無料提供は終了しました。<br>
今年の夏頃(できれば)に有料版を提供する予定となっており、現状RTの導入はできません。<br>
Free RTはすぐに本稼働を開始し、機能を引き継ぐ予定です。<br>
詳しくはサポートサーバーのお知らせの上の方をご覧ください。
^^content^^
<footer>
<div class="menu">
<a href="/">
<img src="/img/icon.png">
</a>
<div class="menu-list">
<div class="item">
<div class="m-title">Main</div>
<div>
<a href="/news.html" class="language ja" hidden>ニュース</a>
<a href="/news.html" class="language en" hidden>News</a>
</div>
<div>
<a href="/help.html" class="language ja" hidden>ヘルプ</a>
<a href="/help.html" class="language en" hidden>Help</a>
</div>
<div>
<a href="/credit.html" class="language ja" hidden>クレジット</a>
<a href="/credit.html" class="language en" hidden>Credit</a>
</div>
<div>
<a href="/terms.html" class="language ja" hidden>利用規約</a>
<a href="/terms.html" class="language en" hidden>Terms of Uses</a>
</div>
<div>
<a href="/privacy.html" class="language ja" hidden>プライバシーポリシー</a>
<a href="/privacy.html" class="language en" hidden>Privacy Policy</a>
</div>
<div>
<a href="/status.html">Status</a>
</div>
</div>
<div class="item">
<div class="m-title">Help</div>
<div>
<a href="/help.html?g=bot">Bot General</a>
</div>
<div>
<a href="/help.html?g=server-tool" class="language ja" hidden>サーバー(ツール)</a>
<a href="/help.html?g=server-tool" class="language en" hidden>Server Tool</a>
</div>
<div>
<a href="/help.html?g=server-panel" class="language ja" hidden>サーバー(パネル)</a>
<a href="/help.html?g=server-panel" class="language en" hidden>Server Panel</a>
</div>
<div>
<a href="/help.html?g=server-safety" class="language ja" hidden>サーバー(安全)</a>
<a href="/help.html?g=server-safety" class="language en" hidden>Server Safety</a>
</div>
<div>
<a href="/help.html?g=server-useful" class="language ja" hidden>サーバー(便利)</a>
<a href="/help.html?g=server-useful" class="language en" hidden>Server Useful</a>
</div>
<div>
<a href="/help.html?g=individual" class="language ja" hidden>個人</a>
<a href="/help.html?g=individual" class="language en" hidden>Individual</a>
</div>
<div>
<a href="/help.html?g=entertainment" class="language ja" hidden>娯楽</a>
<a href="/help.html?g=entertainment" class="language en" hidden>Entertainment</a>
</div>
<div>
<a href="/help.html?g=chplugin" class="language ja" hidden>チャンネルプラグイン</a>
<a href="/help.html?g=chplugin" class="language en" hidden>Channel Plugin</a>
</div>
<div>
<a href="/help.html?g=music" class="language ja" hidden>音楽再生</a>
<a href="/help.html?g=music" class="language en" hidden>Music</a>
</div>
<div>
<a href="/help.html?g=other">Other</a>
</div>
</div>
<div class="item">
<div class="m-title">Links</div>
<div>
<a href="https://discord.gg/VHwJ3CBuWw" target="_blank" class="language ja" hidden>サポートサーバー</a>
<a href="https://discord.gg/VHwJ3CBuWw" target="_blank" class="language en" hidden>Support Server</a>
</div>
<div>
<a href="https://discord.com/api/oauth2/authorize?client_id=961521106227974174&permissions=8&scope=bot%20applications.commands"
target="_blank">Invite URL</a>
</div>
<div>
<a href="https://twitter.com/Free_RT_discord" target="_blank">Twitter</a>
</div>
<div>
<a href="https://github.com/Free-RT" target="_blank">GitHub</a>
</div>
</div>
<div class="item">
<div class="m-title">Dashboard</div>
<div>
<a href="/dashboard">Home</a>
</div>
<div>
<a href="/api/account/login">Login</a>
</div>
<div>
<a href="/api/account/logout">Logout</a>
</div>
</div>
</div>
</div>
<div class="copyright">Copyright © 2020-2022 RT-Team and Free-RT. All Rights Reserved.</div>
</footer>
</body>
</html>