Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85713048
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue
index 8450f7c143..d831123426 100644
--- a/src/components/nav_panel/nav_panel.vue
+++ b/src/components/nav_panel/nav_panel.vue
@@ -1,75 +1,78 @@
<template>
<div class="nav-panel">
<div class="panel panel-default base01-background">
<ul class="base03-border">
<li v-if='currentUser'>
<router-link class="base00-background" to='/main/friends'>
{{ $t("nav.timeline") }}
</router-link>
</li>
<li v-if='currentUser'>
<router-link class="base00-background" :to="{ name: 'mentions', params: { username: currentUser.screen_name } }">
{{ $t("nav.mentions") }}
</router-link>
</li>
<li>
<router-link class="base00-background" to='/main/public'>
{{ $t("nav.public_tl") }}
</router-link>
</li>
<li>
<router-link class="base00-background" to='/main/all'>
{{ $t("nav.twkn") }}
</router-link>
</li>
<li>
<a href="/static/about.html">About</a>
</li>
+ <li>
+ <a href="/static/instances.html">Other instances</a>
+ </li>
</ul>
</div>
</div>
</template>
<script src="./nav_panel.js" ></script>
<style lang="scss">
.nav-panel ul {
list-style: none;
margin: 0;
padding: 0;
}
.nav-panel li {
border-bottom: 1px solid;
border-color: inherit;
padding: 0;
&:first-child a {
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
&:last-child a {
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
}
}
.nav-panel li:last-child {
border: none;
}
.nav-panel a {
display: block;
padding: 0.8em 0.85em;
&:hover {
background-color: transparent;
}
&.router-link-active {
font-weight: bolder;
background-color: transparent;
&:hover {
text-decoration: underline;
}
}
}
</style>
diff --git a/static/instances.html b/static/instances.html
new file mode 100644
index 0000000000..f55aa92a13
--- /dev/null
+++ b/static/instances.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Other instances</title>
+<link rel="stylesheet" type="text/css" href="dark.css">
+<p><a href="/" style="font-size: large">< Pleroma</a> <a href="http://distsn.org/pleroma-instances.html" target="_blank">About this list</a></p>
+<h1>Other instances</h1>
+<div id="placeholder"></div>
+<script type="text/javascript" src="instances.js"></script>
+
diff --git a/static/instances.js b/static/instances.js
new file mode 100644
index 0000000000..6b88f20b2f
--- /dev/null
+++ b/static/instances.js
@@ -0,0 +1,35 @@
+window.addEventListener ('load', function () {
+ var request = new XMLHttpRequest;
+ request.open ('GET', 'http://distsn.org/cgi-bin/distsn-pleroma-instances-api.cgi');
+ request.onload = function () {
+ if (request.readyState === request.DONE) {
+ if (request.status === 200) {
+ var response_text = request.responseText;
+ var instances = JSON.parse (response_text);
+ show_instances (instances);
+ }
+ }
+ }
+ request.send ();
+}, false); /* window.addEventListener ('load', function () { */
+
+
+function show_instances (instances) {
+var placeholder = document.getElementById ('placeholder');
+var html = '';
+var cn;
+for (cn = 0; cn < instances.length; cn ++) {
+ var instance;
+ instance = instances [cn];
+ var instance_html =
+ '<p>' +
+ '<a href="' +
+ 'https://' + encodeURIComponent (instance.domain) + '" target="_blank">' +
+ encodeURIComponent (instance.domain) +
+ '</a>' +
+ '</p>';
+ html += instance_html;
+}
+placeholder.innerHTML = html;
+} /* function show_users (users) { */
+
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Sep 19, 3:18 PM (17 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1769590
Default Alt Text
(3 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment