-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
221 lines (180 loc) · 6.17 KB
/
index.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Begin Jekyll SEO tag v2.7.1 -->
<title>BrawlBio-API</title>
<meta name="generator" content="Jekyll v3.9.0" />
<meta property="og:title" content="BrawlBio-API" />
<meta property="og:locale" content="en_US" />
<link rel="canonical" href="https://bs.is-a.dev/docs" />
<meta property="og:url" content="https://bs.is-a.dev/docs" />
<meta property="og:site_name" content="BrawlBio-API" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="BrawlBio-API" />
<link rel="stylesheet" href="https://bs.is-a.dev/docs.css">
<style>
.nav {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
width: 100%;
min-height: 75px;
background-color: #2C2F33;
color: white;
box-shadow: 0 1rem 1rem -1rem rgba(55, 56, 58, 0.2);
z-index: 10;
}
nav > ul {
display: flex;
flex-direction: row;
justify-content: space-around;
color: white;
}
nav li {
padding: 0px 0.8rem;
color: #2C2F33;
}
nav .code {
color: #2C2F33;
transition: color 0.3s ease-out;
}
nav a:hover .code {
color: #F2797B;
}
::-moz-selection {
color: #fff;
background: #02A1A3;
}
::selection {
color:#011640;
background: #02A1A3;
}
</style>
<script type="application/ld+json">
{"@type":"WebSite","headline":"BrawlBio-API","url":"https://bs.is-a.dev/docs/","name":"BrawlBio-API","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->
<nav id="navbar" class="nav">
<ul>
<li>
<a style="color:white; text-decoration:none" href="/">
<span class="code"><</span>
Home
<span class="code">/></span>
</a>
</li>
<li>
<a style="color:white; text-decoration:none" id="auth" href="/dashboard">
</a>
</li>
<li>
<a style="color:white; text-decoration:none" href="/api">
<span class="code"><</span>
API
<span class="code">/></span>
</a>
</li>
<li>
<a style="color:white; text-decoration:none" target="_blank" rel="noreferrer" href="https://discord.gg/Ca4yEvTsXB">
<span class="code"><</span>
Help
<span class="code">/></span>
</a>
</li>
</ul>
</nav>
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">
<h1><a href="#">BrawlBio-API</a></h1>
<h1><a href="#">BrawlBio-API</a></h1>
<p>Welcome To <a href="https://bs.is-a.dev/">BrawlBio</a> API Docs.</p>
<h3 id="directories">Directories</h3>
<table>
<tr>
<td align="center" style="padding=5;width=50%;">
<a href="#API-Endpoints">API Endpoints</a>
</td>
<td align="center" style="padding=5;width=50%;">
<a href="#Rate-Limits">Rate Limits</a>
</td>
<td align="center" style="padding=5;width=50%;">
<a href="#Authorization">Authorization</a>
</td>
<td align="center" style="padding=5;width=50%;">
<a href="#Response Data">Response Data</a>
</td>
<td align="center" style="padding=5;width=50%;">
<a href="#libraries">Libraries</a>
</td>
</tr>
</table>
<h3 id="api-endpoints">API Endpoints</h3>
<ul>
<li><a href="https://bs.is-a.dev/api/[Query]"><code class="language-plaintext highlighter-rouge">/api</code></a> - Find Users By Slug</li>
<li><a href="https://bs.is-a.dev/api/tag/[Query]"><code class="language-plaintext highlighter-rouge">/api/tag</code></a> - Find Users By Tag</li>
</ul>
<h3 id="rate-limits">Rate Limits</h3>
<table>
<tr>
<td align="center" style="padding=5;width=50%;">
Request / Seconds : 20
</td>
</tr>
</table>
<h3 id="authorization">Authorization</h3>
<table>
<tr>
<td align="center" style="padding=5;width=50%;">
API-Key </td>
<td align="center" style="padding=5;width=50%;">
<a href="https://bs.is-a.dev/api/?api-key=">bs.is-a.dev/api/?api-key=****</a>
</td>
</tr>
</table>
<h3 id="response-data">Response Data</h3>
<p><code class="language-plaintext highlighter-rouge">{"_id":"603a4a435505ca115d1615e3","tag":"82PGQVJ2L","slug":"joe","userid":"Joe Lee | イサム(469091175517782018)"}</code></p>
<ul>
<li><a href="#">id</a> - Object ID</li>
<li><a href="#">tag</a> - Saved Tag</li>
<li><a href="#">slug</a> - Saved Slug</li>
<li><a href="#">userid</a> - UserInfo</li>
</ul>
<h3 id="libraries">Libraries</h3>
<ul>
<li><a href="https://npmjs.com/brawlbio.js"><code class="language-plaintext highlighter-rouge">brawlbio.js</code></a> - Interact With BrawlBio Easily</li>
</ul>
<h3 id="community--support">Community / Support</h3>
<ul>
<li>Join Our <a href="https://discord.com/invite/Ca4yEvTsXB">Discord Server</a> To Get Help</li>
</ul>
</div>
<script src="https://bs.is-a.dev/axios.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
<script>anchors.add();</script>
<script>
var name = localStorage.getItem("auth");
if (name == null || name == undefined) {
document.getElementById("auth").innerHTML = `<span class="code"><</span>Login<span class="code">/></span>`
}else {
const token = localStorage.getItem("token")
if(token == undefined || token == null){
document.getElementById("auth").innerHTML = `<span class="code"><</span>Login<span class="code">/></span>`
}else {
axios.get('/api/login/verify/'+token).then(response => {
if(response.data.auth == "no"){
document.getElementById("auth").innerHTML = `<span class="code"><</span>Login<span class="code">/></span>` }else if(response.data.auth == "yes"){
document.getElementById("auth").innerHTML = ` <span class="code"><</span>
${name}<span class="code">/></span>`
}else {
document.getElementById("auth").innerHTML = `<span class="code"><</span>Login<span class="code">/></span>` }
})
}
}
</script>
</body>
</html>