backoffice.xsl 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. _ _ ____ _
  4. _| || |_/ ___| ___ _ __ _ __ ___ | |
  5. |_ .. _\___ \ / _ \ '_ \| '_ \ / _ \| |
  6. |_ _|___) | __/ |_) | |_) | (_) |_|
  7. |_||_| |____/ \___| .__/| .__/ \___/(_)
  8. |_| |_|
  9. Personal Social Web.
  10. Copyright (C) The #Seppo contributors. All rights reserved.
  11. This program is free software: you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation, either version 3 of the License, or
  14. (at your option) any later version.
  15. This program is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU General Public License for more details.
  19. You should have received a copy of the GNU General Public License
  20. along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. https://www.w3.org/TR/1999/REC-xslt-19991116
  22. https://www.w3.org/TR/1999/REC-xpath-19991116
  23. -->
  24. <xsl:stylesheet
  25. xmlns="http://www.w3.org/1999/xhtml"
  26. xmlns:b="http://seppo.social/2023/backoffice#"
  27. xmlns:date="http://exslt.org/dates-and-times"
  28. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  29. xmlns:schema="http://www.w3.org/2001/XMLSchema#"
  30. xmlns:seppo="http://seppo.social/2023/ns#"
  31. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  32. exclude-result-prefixes="date h rdf schema seppo"
  33. version="1.0">
  34. <xsl:output
  35. method="html"
  36. doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
  37. doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
  38. <xsl:variable name="xml_base">../../</xsl:variable>
  39. <xsl:variable name="xml_base_pub" select="concat($xml_base,'/o')"/>
  40. <xsl:variable name="skin_base" select="concat($xml_base,'/themes/current')"/>
  41. <xsl:variable name="cgi_base" select="concat($xml_base,'seppo.cgi')"/>
  42. <xsl:template match="/rdf:RDF/rdf:Description[@rdf:about='']">
  43. <html xmlns="http://www.w3.org/1999/xhtml" class="logged-in">
  44. <head>
  45. <meta name="generator" content="HTML Tidy for HTML5 for FreeBSD version 5.8.0" />
  46. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  47. <meta name="viewport" content="width=device-width,initial-scale=1.0" />
  48. <link href="{$skin_base}/style.css" rel="stylesheet" type="text/css" />
  49. <title>⚙️ Backoffice</title>
  50. </head>
  51. <body>
  52. <noscript><p>JavaScript deactivated, fully functional, but <em>nicer</em> if on.</p></noscript>
  53. <div aria-label="Header" id="header">
  54. <a class="btn" href="{$xml_base}" rel="first">🏡 <span class="hidden-xs">Home</span></a>
  55. </div>
  56. <div class="container">
  57. <h1>⚙️ Backoffice</h1>
  58. <h2 id="queues">Queues</h2>
  59. <ul>
  60. <li><tt>app/var/run/queue.pid</tt>:
  61. <span id="q_lock"><xsl:value-of select="b:q_lock"/></span> ~ age <span id="q_lock_age">~</span>s</li>
  62. </ul>
  63. <h3 id="job">Job</h3>
  64. <ul>
  65. <li><tt>app/var/spool/job/cur</tt>: <xsl:value-of select="b:spool_job_cur"/></li>
  66. <li><tt>app/var/spool/job/err</tt>: <xsl:value-of select="b:spool_job_err"/></li>
  67. <li><tt>app/var/spool/job/new</tt>: <xsl:value-of select="b:spool_job_new"/></li>
  68. <li><tt>app/var/spool/job/run</tt>: <xsl:value-of select="b:spool_job_run"/></li>
  69. <li><tt>app/var/spool/job/tmp</tt>: <xsl:value-of select="b:spool_job_tmp"/></li>
  70. <li><tt>app/var/spool/job/wait</tt>: <xsl:value-of select="b:spool_job_wait"/></li>
  71. </ul>
  72. <h3 id="inbox">Inbox</h3>
  73. <ul>
  74. <li><tt>app/var/cache/inbox/cur</tt>: <xsl:value-of select="b:cache_inbox_cur"/></li>
  75. <li><tt>app/var/cache/inbox/new</tt>: <xsl:value-of select="b:cache_inbox_new"/></li>
  76. </ul>
  77. <h2 id="federation">Environment &amp; Federation</h2>
  78. <ul>
  79. <li><a href="{b:x509_pem_url}">id_rsa.pub.pem</a></li>
  80. <ul>
  81. <li>id: <xsl:value-of select="b:x509_id"/></li>
  82. <li>fingerprint: <xsl:value-of select="b:x509_fingerprint"/></li>
  83. </ul>
  84. </ul>
  85. <h2 id="tools">Tools</h2>
  86. <form id="http" method="get" action="../http">
  87. <input type="url" name="get" placeholder="signed http GET"/>
  88. </form>
  89. <h2 id="standards">Standards</h2>
  90. <dl>
  91. <dt>"The Internet is for End Users" (<a href="https://www.rfc-editor.org/rfc/rfc8890.html">RFC8890</a>)</dt>
  92. <dd></dd>
  93. <dt>security.txt (<a href="https://www.rfc-editor.org/rfc/rfc9116">RFC9116</a>)</dt>
  94. <dd><a href="/.well-known/security.txt">/.well-known/security.txt</a></dd>
  95. <dt>WebFinger (<a href="https://www.rfc-editor.org/rfc/rfc7033.html">RFC7033</a>, <a href="https://www.rfc-editor.org/rfc/rfc7565.html">RFC7565</a>)</dt>
  96. <dd><a rel="webfinger" href="https://seppo.social/.well-known/webfinger?resource=acct:demo@seppo.social">https://seppo.social/.well-known/webfinger?resource=acct:demo@seppo.social</a></dd>
  97. <dt><a href="https://w3.org/TR/activitystreams-core">ActivityStreams 2.0 (json
  98. flavour)</a></dt>
  99. <dt><a href="https://w3.org/TR/activitypub/">ActivityPub</a></dt>
  100. <dd><a href="https://www.w3.org/TR/activitypub/#actor-objects">Actor</a>
  101. <xsl:text> </xsl:text>
  102. <a href="https://www.w3.org/TR/activitystreams-vocabulary/#dfn-person">Person</a>,
  103. <a href="https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create">Create</a>/<a href="https://www.w3.org/TR/activitystreams-vocabulary/#dfn-delete">Delete</a>
  104. <xsl:text> </xsl:text>
  105. <a href="https://www.w3.org/TR/activitystreams-vocabulary/#dfn-note">Note</a>,
  106. <a href="https://www.w3.org/TR/activitystreams-vocabulary/#dfn-follow">Follow</a>,
  107. <a href="https://www.w3.org/TR/activitystreams-vocabulary/#dfn-undo">Undo</a>
  108. </dd>
  109. <dt>Signing HTTP Messages (<a href=
  110. "https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-12">draft-cavage-http-signatures-12</a>)</dt>
  111. <dd>all requests are signed with an initially generated RSA key. Rotating may break followers etc.
  112. See <a href="../../activitypub/actor.jsa#publicKey">the public key PEM</a> embedded in the
  113. profile..</dd>
  114. <dt>The Common Gateway Interface (CGI) (<a href="https://www.rfc-editor.org/rfc/rfc3875.html">RFC3875</a>)</dt>
  115. <dd>generate static files for reading, listen to publishers (subscribed to), notify subscribers</dd>
  116. <dt>Atom Feed (<a href="https://www.rfc-editor.org/rfc/rfc4287">RFC4287</a>, <a href=
  117. "https://www.rfc-editor.org/rfc/rfc4685">RFC4685</a> &amp; <a href=
  118. "https://www.rfc-editor.org/rfc/rfc5005">RFC5005</a>)</dt>
  119. <dd><a href="../../o/p/index.xml">o/p/index.xml</a></dd>
  120. <dt><a href="https://www.w3.org/TR/xslt-10/">XSLT 1.0</a></dt>
  121. <dd>turn the atom feeds into xhtml (client-side, without javascript)</dd>
  122. <dt><a href="http://www.w3.org/TR/xhtml1/">XHTML 1.1 strict</a></dt>
  123. <dd>robust page rendering</dd>
  124. <dt><a href="https://www.w3.org/TR/CSS/">CSS</a></dt>
  125. <dd>layout and (<a href="https://oklch.com/#79.27,0.171,70.67,100">OKLCH</a>) colors, dark mode</dd>
  126. <dt><a href="https://projects.verou.me/awesomplete/">awesomeplete</a></dt>
  127. <dt><a href="http://cr.yp.to/cdb/cdb.txt">cdb</a></dt>
  128. <dd>constant database for lookups</dd>
  129. <dt><a href="https://en.wikipedia.org/wiki/Canonical_S-expressions">canonical
  130. s-expressions</a></dt>
  131. <dd>config &amp; data (except the cdbs). <a href="https://cr.yp.to/qmail/guarantee.html">"Don't parse" (djb)</a>.
  132. Csexp are much like <a href="https://cr.yp.to/proto/netstrings.txt">netstrings</a></dd>
  133. <dt>Web Host Metadata (<a href=
  134. "https://www.rfc-editor.org/rfc/rfc6415.html">RFC6415</a>)</dt>
  135. <dd>not implemented, webfinger endpoint is fixed. Misskeyism.</dd>
  136. <dt><a href="https://nodeinfo.diaspora.software/">NodeInfo</a></dt>
  137. <dd>not implemented, no functional benefits, just server statistics, Diasporism.</dd>
  138. </dl>
  139. <h2 id="software">Software</h2>
  140. <dl>
  141. <dt><a href="https://Seppo.Social">Seppo.Social</a></dt>
  142. <dt><a href="https://seppo.social/support/">Seppo.Social/support</a></dt>
  143. <dt><a href="https://seppo.social/downloads/">Seppo.Social/downloads</a></dt>
  144. <dt><a href="https://seppo.social/development/">Seppo.Social/development</a></dt>
  145. </dl>
  146. </div>
  147. <script src="{$skin_base}/backoffice.js"></script>
  148. </body>
  149. </html>
  150. </xsl:template>
  151. </xsl:stylesheet>