From 5314fb4ad9cd9d7497027bf9394a82a6ed7d95c3 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 13 Mar 2023 13:33:54 -0600 Subject: [PATCH] Browse public messages from AP menu; Fix ACS --- .../luciano_blocktronics/activitypub_menu.ans | Bin 3976 -> 3992 bytes art/themes/luciano_blocktronics/theme.hjson | 16 ++++++++ core/config_default.js | 2 +- misc/menu_templates/activitypub.in.hjson | 38 ++++++++++++++++++ 4 files changed, 55 insertions(+), 1 deletion(-) diff --git a/art/themes/luciano_blocktronics/activitypub_menu.ans b/art/themes/luciano_blocktronics/activitypub_menu.ans index 969cfbfda9eef7683d79ce60c0224f3b3dfd3612..ae151f7d9909bdac181f9d492821f187ea815b6a 100644 GIT binary patch delta 49 zcmeB>pCP}YpGR0a+Az03K|0#N+Sn|&pfo8bGkG#Uui|6{4(ZM3cqTHj7#kYvPEO`m F1ps#W4o?68 delta 29 lcmbOs-yy%DpJ#F|m-^%cPT9?md3u;wjEqcWCl~Xp0sxlY2^atX diff --git a/art/themes/luciano_blocktronics/theme.hjson b/art/themes/luciano_blocktronics/theme.hjson index b04255a6..1f5448bd 100644 --- a/art/themes/luciano_blocktronics/theme.hjson +++ b/art/themes/luciano_blocktronics/theme.hjson @@ -1395,6 +1395,22 @@ } } + activityPubPublicMessages: { + config: { + dateTimeFormat: ddd MMM Do + allViewsInfoFormat10: "|00|15{msgNumSelected:>4.4} |08/ |15{msgNumTotal:<4.4}" + } + mci: { + VM1: { + height: 14 + width: 70 + itemFormat: "|00|15{msgNum:>4} |03{subject:<28.27} |11{fromUserName:<20.20} |03{ts:<15.16} |15{newIndicator}" + focusItemFormat: "|00|19|15{msgNum:>4} {subject:<28.27} {fromUserName:<20.20} {ts:<15.16} {newIndicator}" + } + } + } + + // MRC mrc: { config: { messageFormat: "|00|10<|02{fromUserName}|10>|00 |03{message}|00" diff --git a/core/config_default.js b/core/config_default.js index 522a3f7d..1a254743 100644 --- a/core/config_default.js +++ b/core/config_default.js @@ -913,7 +913,7 @@ module.exports = () => { desc: 'Public ActivityPub messages', acs: { - read: 'GM[users]SE[activitypub]', + read: 'GM[users]SE[activitypub]AE1', }, areas: { diff --git a/misc/menu_templates/activitypub.in.hjson b/misc/menu_templates/activitypub.in.hjson index 97c44e5c..23385341 100644 --- a/misc/menu_templates/activitypub.in.hjson +++ b/misc/menu_templates/activitypub.in.hjson @@ -5,6 +5,10 @@ art: activitypub_menu prompt: activityPubMenuCommand submit: [ + { + value: { command: "G" } + action: @menu:fullLogoffSequence + } { value: {command: "S"} action: [ @@ -41,6 +45,10 @@ value: { command: "E" } action: @menu:privateMailMenu } + { + value: { command: "P" } + action: @menu:activityPubPublicMessages + } ] } @@ -222,6 +230,36 @@ } } + activityPubPublicMessages: { + desc: ActivityPub Public + module: msg_list + art: MSGLIST + config: { + messageAreaTag: activitypub_shared + menuViewPost: messageAreaViewPost + } + form: { + 0: { + mci: { + VM1: { + focus: true + submit: true + argName: messageIndex + } + } + submit: { + *: [ + { + value: { messageIndex: null } + action: @method:selectMessage + } + ] + } + actionKeys: @reference:common.quitToPrev + } + } + } + activityPubNotEnabled: { desc: ActivityPub Not Enabled art: activitypub_not_enabled