Update Templates
This commit is contained in:
parent
23bc8fe76e
commit
649c48fd74
3 changed files with 114 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{{ user }} (@{{ screenName }})" />
|
||||
<meta name="twitter:image" content="{{ pic }}" />
|
||||
<meta name="twitter:image" content="{{ pic }}" />
|
||||
<meta name="twitter:creator" content="@{{ user }}" />
|
||||
|
||||
<meta property="og:description" content="{{ desc }}" />
|
||||
|
|
70
templates/latest.html
Normal file
70
templates/latest.html
Normal file
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Twitfix Latest</title>
|
||||
<link rel="stylesheet" href={{ url_for('static', filename='style.css') }}>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Paytone+One&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src={{ url_for('static', filename='main.js') }}></script>
|
||||
|
||||
<div class="previmgcont" onclick="document.querySelector('.previmgcont').style.display = 'none'; "
|
||||
style="display: none;">
|
||||
<img loading=lazy class="previmg" alt="Image Preview">
|
||||
</div>
|
||||
|
||||
<div class="base">
|
||||
<div id="block">
|
||||
<p class="warn">Warning!!</p>
|
||||
<p>Twitfix does not filter out any content.</p>
|
||||
<p>Following content is most certainly NSFW.</p>
|
||||
<p>Prepare yourself mentally and pick one of the options</p>
|
||||
<p>Do you want to see the latest twitfix requests?</p>
|
||||
<br>
|
||||
<div class="boptions">
|
||||
<div onclick="cookieTime()">Yes, don't ask again!</div>
|
||||
<div onclick="forNow()">Yes, for now.</div>
|
||||
<div onclick="window.location.replace('https://github.com/robinuniverse/TwitFix')">No, please take me
|
||||
out of here</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="https://github.com/robinuniverse/TwitFix" class="top" rel="noreferrer" target="_blank">TwitFix
|
||||
Latest</a>
|
||||
<div class="bottom">
|
||||
<div class="info side">
|
||||
<div>TwitFix</div>
|
||||
<div class="Iinner">
|
||||
Basic flask server that serves fixed twitter video embeds to desktop discord by using either the
|
||||
Twitter API or Youtube-DL to grab tweet video information. This also automatically embeds the first
|
||||
link in the text of non video tweets (API Only).
|
||||
</div>
|
||||
<br>
|
||||
<div>TwitFix Latest</div>
|
||||
<div class="Iinner">
|
||||
Shows the most recent TwitFix API requests in a list like manner.
|
||||
</div>
|
||||
<br>
|
||||
<div class="Iinner">
|
||||
TwitFix by <a href="https://hirob.in/" target="_blank" rel="noopener noreferrer">Robin
|
||||
✨Universe</a><br><br>
|
||||
Site Design by <a href="https://twitter.com/doruksega" target="_blank"
|
||||
rel="noopener noreferrer">Doruk</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tweetCont">
|
||||
</div>
|
||||
<div class="settings side">
|
||||
<div>Settings</div>
|
||||
<input type="checkbox" id="contwarn" name="contwarn">
|
||||
<label class="opt" for="contwarn">Skip Content Warning</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
43
templates/stats.html
Normal file
43
templates/stats.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>TwitFix Stats</title>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
||||
<script type="text/javascript">
|
||||
google.charts.load('current', {'packages':['bar']});
|
||||
google.charts.setOnLoadCallback(drawStuff);
|
||||
|
||||
function drawStuff() {
|
||||
var data = new google.visualization.arrayToDataTable([
|
||||
['Move', 'requests'],
|
||||
["Cached Links Loaded", {{ embeds }}],
|
||||
["New Unique Links Cached", {{ linksCached }}],
|
||||
["API Calls", {{ api }}],
|
||||
["Direct Videos Downloaded", {{ downloadss }}]
|
||||
]);
|
||||
|
||||
var options = {
|
||||
width: 800,
|
||||
legend: { position: 'none' },
|
||||
axes: {
|
||||
x: {
|
||||
0: { side: 'top', label: 'Data Gathered for {{ date }}'} // Top x-axis.
|
||||
}
|
||||
},
|
||||
bar: { groupWidth: "90%" }
|
||||
};
|
||||
|
||||
var chart = new google.charts.Bar(document.getElementById('top_x_div'));
|
||||
// Convert the Classic options to Material options.
|
||||
chart.draw(data, google.charts.Bar.convertOptions(options));
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="center">
|
||||
<div id="top_x_div" style="width: 800px; height: 600px; display: block; margin: 0 auto;"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue