-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
548d5b4
commit 8f623d3
Showing
6 changed files
with
127 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<h1 id="relay-isle-moe">relay.isle.moe</h1> | ||
|
||
<h2 id="订阅">订阅</h2> | ||
|
||
<p>欢迎~</p> | ||
|
||
<ul> | ||
<li>对于 Mastodon 和 Misskey 等兼容中继协议的软件可以使用这个链接订阅: <span class="sel" title="点击复制">https://relay.isle.moe/inbox</span></li> | ||
<li>对于 Pleroma,请根据<a href="https://docs-develop.pleroma.social/backend/administration/CLI_tasks/relay/" target="_blank">官方文档</a>使用命令行订阅该地址: <span class="sel" title="点击复制">https://relay.isle.moe/actor</span></li> | ||
<li>对于其他软件,请参考相应软件的文档订阅中继</li> | ||
</ul> | ||
|
||
<p>如果订阅异常可以试试移除中继再重新订阅!</p> | ||
|
||
<p>所使用的后端为 <a href="https://github.com/yukimochi/Activity-Relay" target="_blank">yukimochi/Activity-Relay</a></p> | ||
|
||
<p>页面生成器:<a href="https://github.com/creamlike1024/isle-activity-relay-frontend" target="_blank">isle-activity-relay-frontend</a></p> | ||
|
||
<p>有问题可以联系 <a href="https://m.isle.moe/@claire" target="_blank">@Claire</a></p> | ||
|
||
<h2 id="订阅的实例列表">订阅的实例列表</h2> | ||
|
||
<p><em>每 5 分钟更新一次</em></p> | ||
|
||
<!-- sel 点击复制 --> | ||
<script> | ||
let sel = document.getElementsByClassName('sel') | ||
for (let i = 0; i < sel.length; i++) { | ||
sel[i].onclick = () => { | ||
navigator.clipboard.writeText(sel[i].innerText).then(() => { | ||
alert('复制成功!') | ||
}) | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<h2 id="收信日志">收信日志</h2> | ||
<pre id="server-logs" style="overflow-y: scroll; font-family: monospace; height: 20em"></pre> | ||
<script> | ||
let ws1 = new WebSocket('wss://relay.isle.moe/log-ws/server.log?tail=1') | ||
ws1.onmessage = (event) => { | ||
if (event.data === 'ping') { | ||
ws1.send('pong') | ||
return | ||
} | ||
document.getElementById('server-logs').innerHTML += event.data | ||
document.getElementById('server-logs').scrollTop = document.getElementById('server-logs').scrollHeight | ||
} | ||
</script> | ||
<button onclick="document.getElementById('server-logs').innerHTML = ''">清除收信日志</button> | ||
<button onclick="copyLogs('server-logs')">复制日志</button> | ||
|
||
<h2 id="送信日志">送信日志</h2> | ||
<pre id="worker-logs" style="overflow-y: scroll; font-family: monospace; height: 30em"></pre> | ||
<script> | ||
let ws2 = new WebSocket('wss://relay.isle.moe/log-ws/worker.log?tail=1') | ||
ws2.onmessage = (event) => { | ||
if (event.data === 'ping') { | ||
ws2.send('pong') | ||
return | ||
} | ||
document.getElementById('worker-logs').innerHTML += event.data | ||
document.getElementById('worker-logs').scrollTop = document.getElementById('worker-logs').scrollHeight | ||
} | ||
</script> | ||
<button onclick="document.getElementById('worker-logs').innerHTML = ''">清除送信日志</button> | ||
<button onclick="copyLogs('worker-logs')">复制日志</button> | ||
|
||
<!-- 复制按钮 --> | ||
<script> | ||
function copyLogs(elementId) { | ||
let logs = document.getElementById(elementId).innerText | ||
navigator.clipboard.writeText(logs).then(() => { | ||
alert('复制成功!') | ||
}) | ||
} | ||
</script> |