Updated user profile
This commit is contained in:
1 parent
d0a969f145
commit
e9e6b4945e
13 files changed
+328
-26
No files matched your search
@@ -52,7 +52,7 @@
|
||||
});
|
||||
</script>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<label for="tos" class="ml-2 text-sm font-medium text-gray-900 dark:text-gray-300">Be adding a server you automatically to our <a href="/tos" target="_blank" class="text-blue-700 hover:text-blue-300">Terms of Service</a></label>\
|
||||
<label for="tos" class="ml-2 text-sm font-medium text-gray-900 dark:text-gray-300">Be adding a server you automatically to our <a href="/tos" target="_blank" class="text-blue-700 hover:text-blue-300">Terms of Service</a> and <a href="/privacy" target="_blank" class="text-blue-700 hover:text-blue-300">Privacy Policy</a></label>
|
||||
</div>
|
||||
<button type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Submit</button>
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
<%- include('../includes/header.ejs', {title: 'Analytics' + bot.name}) %>
|
||||
<br>
|
||||
<div class="p-10 ">
|
||||
<h2 style="margin-top: -10px;" class="text-white"><i class="fa fa-chart-bar"></i> Analytics</h2>
|
||||
<br>
|
||||
<div class="flex flex-wrap gap-10">
|
||||
<div class="mb-4 w-fit">
|
||||
<div class="bg-dark-200 border-left-primary shadow h-100 py-2">
|
||||
<div class="col-auto">
|
||||
<i class="fa fa-chevron-up fa-2x text-white"></i>
|
||||
</div>
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1 text-white">Votes</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-white"><%= bot.votes || 0 %></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-4 w-fit">
|
||||
<div class="bg-dark-200 border-left-success shadow h-100 py-2">
|
||||
<div class="col-auto">
|
||||
<i class="fa fa-plus fa-2x text-white"></i>
|
||||
</div>
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1 text-white">Invites
|
||||
</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-white"><%= bot.analytics_invites || 0 %></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" mb-4 w-fit">
|
||||
<div class="card bg-dark-200 border-left-info shadow h-100 py-2">
|
||||
<div class="col-auto">
|
||||
<i class="fa fa-eye fa-2x text-white"></i>
|
||||
</div>
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-info text-uppercase mb-1 text-white">Visitors
|
||||
<!-- small style="opacity: 75%" class="text-white">/week</small -->
|
||||
</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-white"><%= bot.analytics_visitors || 0%></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2 font-italic">
|
||||
<h3 style="color: #5f79da" class="text-uppercase">Referrers</h3>
|
||||
<p style="color: rgb(126, 126, 126)">The domain names of the sites that most redirect to your bot's page.</p>
|
||||
</div><br>
|
||||
<table id="analytics_referring" class="w-full text-sm text-left text-gray-500 dark:text-gray-400 table" style="width:100%; color: #fff">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Referring Url</th>
|
||||
<th>Total referrers</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% if(bot.analytics) { %>
|
||||
<% Object.keys(bot.analytics).sort((a,b) => bot.analytics[b] - bot.analytics[a]).forEach(b => { %>
|
||||
<tr>
|
||||
<td translate="no"><span style="display: flex; align-items: center;"><%= b.split(",").join(".") %></span></td>
|
||||
<td><span style="display: flex; align-items: center;"><%= bot.analytics[b] %></span></td>
|
||||
</tr>
|
||||
<% }) %>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="mt-2 font-italic">
|
||||
<h3 style="color: #5f79da" class="text-uppercase">Countries</h3>
|
||||
<p style="color: rgb(126, 126, 126)">These are the countries that enter your bot's page.</p>
|
||||
</div><br>
|
||||
<table id="analytics_country" class="w-full text-sm text-left text-gray-500 dark:text-gray-400 table" style="width:100%; color: #fff">
|
||||
<thead class="text-xs uppercase text-white ">
|
||||
<tr>
|
||||
<th>Country</th>
|
||||
<th>Total viewers</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<%
|
||||
if(bot.country) {
|
||||
Object.keys(bot.country).sort((a,b) => bot.country[b] - bot.country[a]).forEach(b => {
|
||||
%>
|
||||
<tr>
|
||||
<td translate="no"><span style="display: flex; align-items: center;"><img src="https://countryflagsapi.com/png/<%= b %>" width="32px"> <%= b %></span></td>
|
||||
<td><span style="display: flex; align-items: center;"><%= bot.country[b] %></span></td>
|
||||
</tr>
|
||||
<%
|
||||
})
|
||||
}
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -10,7 +10,7 @@
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<textarea type="text" name="server_description" id="server_name" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " required rows="5"><%= server.long_description %></textarea>
|
||||
<label for="server_name" class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Server
|
||||
description (MarkDown supported!)</label>
|
||||
description</label>
|
||||
</div>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<input type="text" name="server_short" id="floating_last_name" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " required value="<%= server.description %>" />
|
||||
|
||||
Reference in new issue
Block a user