enigma-bbs/misc/menu_templates/activitypub.in.hjson

289 lines
6.5 KiB
Plaintext
Raw Normal View History

2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
menus: {
activityPubMenu: {
desc: ActivityPub Menu
2023-02-20 23:39:51 +00:00
art: activitypub_menu
prompt: activityPubMenuCommand
2023-02-20 23:39:51 +00:00
submit: [
{
value: { command: "G" }
action: @menu:fullLogoffSequence
}
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
value: {command: "S"}
action: [
{
acs: "AE1"
action: @menu:activityPubActorSearch
}
{
action: @menu:activityPubNotEnabled
}
]
2023-02-20 23:39:51 +00:00
}
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
value: {command: "C"}
action: @menu:activityPubUserConfig
}
2023-02-20 22:21:42 +00:00
{
value: {command: "M"}
action: [
{
acs: "AE1"
action: @menu:activityPubSocialManager
}
{
action: @menu:activityPubNotEnabled
}
]
2023-02-20 23:39:51 +00:00
}
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
value: {command: "Q"}
action: @menu:mainMenu
}
{
value: { command: "E" }
action: @menu:privateMailMenu
}
{
value: { command: "P" }
action: @menu:activityPubPublicMessages
}
2023-02-20 22:21:42 +00:00
]
2023-02-20 23:39:51 +00:00
}
2023-02-20 23:39:51 +00:00
activityPubActorSearch: {
desc: ActivityPub Search
2023-02-20 23:39:51 +00:00
module: activitypub/actor_search
config: {
cls: true
art: {
main: activitypub_actor_search_main
view: activitypub_actor_view
2023-02-20 22:21:42 +00:00
}
2023-02-20 23:39:51 +00:00
}
form: {
0: {
mci: {
ET1: {
focus: true
maxLength: 70
argName: searchQuery
submit: true
2023-02-20 22:21:42 +00:00
}
2023-02-20 23:39:51 +00:00
}
submit: {
*: [
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
value: {searchQuery: null}
action: @method:search
2023-02-20 22:21:42 +00:00
}
]
2023-02-20 23:39:51 +00:00
}
actionKeys: [
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
keys: ["escape"]
action: @systemMethod:prevMenu
2023-02-20 22:21:42 +00:00
}
]
2023-02-20 23:39:51 +00:00
}
1: {
mci: {}
actionKeys: [
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
keys: ["escape", "q", "shift + q"]
action: @method:backKeyPressed
}
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
keys: ["space"]
action: @method:toggleFollowKeyPressed
2023-02-20 22:21:42 +00:00
}
]
}
}
2023-02-20 23:39:51 +00:00
}
2023-02-20 23:39:51 +00:00
activityPubUserConfig: {
desc: ActivityPub Config
module: ./activitypub/user_config
config: {
art: {
main: activitypub_user_config_main
images: activitypub_user_config_images
2023-02-20 22:21:42 +00:00
}
2023-02-20 23:39:51 +00:00
}
form: {
0: {
mci: {
TM1: {
focus: true
items: ["no", "yes"]
2023-02-20 23:39:51 +00:00
argName: enabled
}
TM2: {
items: ["no", "yes"]
2023-02-20 23:39:51 +00:00
argName: manuallyApproveFollowers
}
TM3: {
items: ["no", "yes"]
2023-02-20 23:39:51 +00:00
argName: hideSocialGraph
2023-02-20 22:21:42 +00:00
}
2023-02-20 23:39:51 +00:00
TM4: {
items: ["no", "yes"]
2023-02-20 23:39:51 +00:00
argName: showRealName
}
TL5: {argName: "image"}
TL6: {argName: "icon"}
BT7: {
text: manage images
argName: manageImages
submit: true
justify: center
}
TM8: {
items: ["save", "cancel"]
submit: true
argName: saveOrCancel
}
}
submit: {
*: [
2023-02-20 22:21:42 +00:00
{
// :TODO: we need a way to just want the argName *for the submitting item* and drop others
2023-02-20 23:39:51 +00:00
value: {manageImages: null}
action: @method:mainSubmit
2023-02-20 22:21:42 +00:00
}
]
2023-02-20 23:39:51 +00:00
}
actionKeys: @reference:common.escToPrev
}
1: {
mci: {
ML1: {
argName: imageUrl
mode: edit
scrollMode: start
focus: true
tabSwitchesView: true
}
ML2: {
argName: iconUrl
mode: edit
scrollMode: start
tabSwitchesView: true
}
TM3: {
items: ["save", "cancel"]
submit: true
argName: imagesSaveOrCancel
2023-02-20 22:21:42 +00:00
}
2023-02-20 23:39:51 +00:00
}
submit: {
*: [
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
value: {imagesSaveOrCancel: null}
action: @method:imagesSubmit
2023-02-20 22:21:42 +00:00
}
]
2023-02-20 23:39:51 +00:00
}
actionKeys: [
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
keys: ["escape"]
action: @method:backToMain
2023-02-20 22:21:42 +00:00
}
]
}
}
2023-02-20 23:39:51 +00:00
}
2023-02-20 23:39:51 +00:00
activityPubSocialManager: {
desc: ActivityPub Social Manager
2023-02-20 23:39:51 +00:00
module: ./activitypub/social_manager
config: {
art: {main: "activitypub_social_manager"}
}
form: {
0: {
mci: {
VM1: {}
MT2: {mode: "preview", acceptsFocus: false, acceptsInput: false}
TM3: {
focus: true
items: ["following", "followers"]
2023-02-20 22:21:42 +00:00
}
2023-02-20 23:39:51 +00:00
}
actionKeys: [
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
keys: ["space"]
action: @method:spaceKeyPressed
}
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
keys: ["down arrow", "up arrow"]
action: @method:listKeyPressed
}
2023-02-20 22:21:42 +00:00
{
2023-02-20 23:39:51 +00:00
keys: ["escape"]
action: @systemMethod:prevMenu
2023-02-20 22:21:42 +00:00
}
]
}
}
}
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
config: {
cls: true
pause: true
}
}
2023-02-20 22:21:42 +00:00
}
prompts: {
activityPubMenuCommand: {
art: activitypub_menu_prompt
mci: {
ET2: {
argName: command
width: 20
maxLength: 20
submit: true
textStyle: upper
focus: true
}
}
}
}
2023-02-20 23:39:51 +00:00
}