Add compose/repost UI for RSS feeds, Mastodon accounts, and LinkedIn pages
- botcompose.php: new API endpoint for rss_repost, mastodon_post, linkedin_post - _tab_botconfig.php: shared compose modal (textarea + post button) - app.js: repost button on RSS cards (clears last_id, bot reposts on next poll), compose button on Mastodon/LinkedIn cards (direct post via compose modal), audit feed labels/icons for new compose actions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
158a5b0775
commit
f86859695a
3 changed files with 248 additions and 0 deletions
|
|
@ -178,6 +178,30 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Shared compose modal -->
|
||||
<div class="modal fade" id="composeModal" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header py-2">
|
||||
<h6 class="modal-title" id="composeModalTitle">Post</h6>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" id="composeModalType">
|
||||
<input type="hidden" id="composeModalName">
|
||||
<textarea id="composeText" class="form-control form-control-sm font-monospace"
|
||||
rows="5" placeholder="What's on your mind?"></textarea>
|
||||
<div class="form-text small mt-1" id="composeHint"></div>
|
||||
</div>
|
||||
<div class="modal-footer py-2">
|
||||
<div class="text-danger small d-none flex-grow-1" id="composeModalError"></div>
|
||||
<button type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="modal">Cancel</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" id="composeModalPostBtn">Post</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- LinkedIn page modal -->
|
||||
<div class="modal fade" id="linkedinPageModal" tabindex="-1">
|
||||
<div class="modal-dialog modal-sm">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue