mirror of
https://github.com/neocities/neocities.git
synced 2025-06-29 15:43:20 +02:00
bluesky did/handle integration
This commit is contained in:
parent
243eda9321
commit
6a045685d0
3 changed files with 55 additions and 2 deletions
|
@ -26,15 +26,19 @@
|
|||
<li class="active"><a href="#profile" data-toggle="tab">Profile</a></li>
|
||||
<!-- <li><a href="#domain" data-toggle="tab">Domain Name</a></li> -->
|
||||
<li><a href="#custom_domain" data-toggle="tab">Custom Domain</a></li>
|
||||
<li><a href="#username" data-toggle="tab">Change Site Name</a></li>
|
||||
<li><a href="#username" data-toggle="tab">Rename</a></li>
|
||||
<li><a href="#tipping" data-toggle="tab">Tipping</a></li>
|
||||
|
||||
<li><a href="#api_key" data-toggle="tab">API Key</a></li>
|
||||
<li><a href="#api_key" data-toggle="tab">API</a></li>
|
||||
|
||||
<% if @site.admin_nsfw != true %>
|
||||
<li><a href="#nsfw" data-toggle="tab">18+</a></li>
|
||||
<% end %>
|
||||
|
||||
<% if @site.domain.empty? %>
|
||||
<li><a href="#bluesky" data-toggle="tab">Bluesky</a></li>
|
||||
<% end %>
|
||||
|
||||
<li><a href="#delete" data-toggle="tab">Delete</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
|
@ -64,6 +68,10 @@
|
|||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="tab-pane" id="bluesky">
|
||||
<%== erb :'settings/site/bluesky' %>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="delete">
|
||||
<%== erb :'settings/site/delete' %>
|
||||
</div>
|
||||
|
|
24
views/settings/site/bluesky.erb
Normal file
24
views/settings/site/bluesky.erb
Normal file
|
@ -0,0 +1,24 @@
|
|||
<h2>Bluesky Integration (beta)</h2>
|
||||
|
||||
<p>
|
||||
You can now verify control of your site on Neocities to create a handle on <a href="https://bsky.app/">Bluesky</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Bluesky App <i class="fa fa-arrow-right"></i> "Settings" <i class="fa fa-arrow-right"></i> "Change my handle" <i class="fa fa-arrow-right"></i> "I have my own domain"</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Domain: <span style="color: gray">@</span><strong><%= @site.username %>.neocities.org</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
TXT value:
|
||||
</p>
|
||||
|
||||
<form method="POST" action="/settings/<%= @site.username %>/bluesky_set_did">
|
||||
<%== csrf_token_input_html %>
|
||||
<input name="did" type="text" style="width: 50%" placeholder="did=did:plc:somethingexamplesomething" value="<%= @bluesky_did %>">
|
||||
<br>
|
||||
<input class="btn-Action" type="submit" value="Update">
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue