This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (76 loc) · 3.06 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
<!DOCTYPE html>
<html>
<head>
<title>Peertube Ninja</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="semantic.min.css">
<link rel="stylesheet" href="notyf.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="https://github.com/nsaovh/Peertube-Ninja"><img style="position: absolute; top: 0; right: 0; border: 0;" src="forkme.png" alt="Fork me on GitHub" data-canonical-src="forkme2.png"></a>
<div class="vue ui center aligned container">
<form @submit="fetchinst">
<div class="ui labeled action fluid input">
<div class="ui label">
https://
</div>
<input type="text" name="instance" v-model="instance" placeholder="Instance domain (ex : peertube.nsa.ovh)">
<button class="ui primary button" type="submit">Submit</button>
</div>
</form>
<div class="ui segment" v-if="instancedata">
<h2 class="ui header">
<img class="ui image" :src="'https://' + instancedata.host + '/client/assets/images/favicon.png'">
<div class="content">
{{ instancedata.config.instance.name }}
<div class="sub header">{{ instancedata.config.instance.shortDescription }}</div>
</div>
</h2>
<h3 class="ui header">
<i class="users icon"></i>
<div class="content">{{ instancedata.accounts }} accounts are listed on this instance (from this instance and following instances).</div>
</h3>
<h3 class="ui header">
<i class="video icon"></i>
<div class="content">{{ instancedata.videos }} videos are listed on this instance (from this instance and following instances).</div>
</h3>
</div>
<table v-if="instancedata">
<tr>
<th>
<h2>Following {{ instancedata.following }} instances</h2>
<b>videos from these instances will be available in {{ instancedata.host }}</b>
</th>
<th>
<h2>Followed by {{ instancedata.followed }} instances</h2>
<b>videos of {{ instancedata.host }} will be available in these instances</b>
</th>
</tr>
<tr>
<td><a v-for="host in instancedata.followingTable" :href="host" >{{ host }}<br/></a></td>
<td class="disblock"><a v-for="host in instancedata.followedTable" :href="host" >{{ host }}<br/></a></td>
</tr>
</table>
<div class="ui segment">
<h2 class="ui header">
<div class="content">Welcome to Peertube Ninja.</div>
<div class="sub header">Peertube Ninja is a free, simple tool to retrieve metrics from any Peertube instance. Just type in the URL of instance upthere.</div>
</h2>
</div>
<br/>
<br/>
<div class="credits">Powered by Tuto-Craft Corporation, nekmi corp software development and NSA.OVH team</div>
</div>
<div class="ui page dimmer">
<img src="ninja.gif" class="ui medium image">
<em>Please wait... Ninja is searching for data !</em>
</div>
<script src="jquery.min.js"></script>
<script src="semantic.min.js"></script>
<script src="notyf.min.js"></script>
<script src="vue.min.js"></script>
<script src="runtime.js"></script>
</body>
</html>