127 lines
3 KiB
Text
127 lines
3 KiB
Text
$xmpp $mol_book2
|
|
plugins /
|
|
<= Theme $mol_theme_auto
|
|
-
|
|
Login_page $mol_page
|
|
title @ \XMPP Client
|
|
tools /
|
|
<= Lights $mol_lights_toggle
|
|
body /
|
|
<= Login_form $mol_form
|
|
form_fields /
|
|
<= Server_field $mol_form_field
|
|
name @ \WebSocket URL
|
|
control <= Server_input $mol_string
|
|
hint \wss://jabber.example.com/ws
|
|
value? <=> server? \
|
|
<= Jid_field $mol_form_field
|
|
name @ \JID
|
|
control <= Jid_input $mol_string
|
|
hint \user@jabber.example.com
|
|
value? <=> jid? \
|
|
<= Pass_field $mol_form_field
|
|
name @ \Password
|
|
control <= Pass_input $mol_string
|
|
type \password
|
|
value? <=> password? \
|
|
<= Error_field $mol_form_field
|
|
name @ \Error
|
|
control <= Error_view $mol_view
|
|
sub /
|
|
<= error_text \
|
|
buttons /
|
|
<= Connect_button $mol_button_major
|
|
title <= connect_title @ \Connect
|
|
click? <=> do_connect? null
|
|
disabled <= connecting false
|
|
-
|
|
Roster_page $mol_page
|
|
title <= roster_title @ \Contacts
|
|
tools /
|
|
<= Lights $mol_lights_toggle
|
|
<= Disconnect_button $mol_button_minor
|
|
title <= disconnect_label @ \Disconnect
|
|
click? <=> do_disconnect? null
|
|
body /
|
|
<= Roster_list $mol_list
|
|
rows <= roster_rows /
|
|
<= Room_join_form $mol_form
|
|
form_fields /
|
|
<= Room_jid_field $mol_form_field
|
|
name @ \Room JID
|
|
control <= Room_jid_input $mol_string
|
|
hint \room@conference.example.com
|
|
value? <=> room_jid? \
|
|
<= Room_nick_field $mol_form_field
|
|
name @ \Nickname
|
|
control <= Room_nick_input $mol_string
|
|
hint @ \nickname
|
|
value? <=> room_nick? \
|
|
buttons /
|
|
<= Room_join_button $mol_button_major
|
|
title @ \Join Room
|
|
click? <=> do_join_room? null
|
|
-
|
|
Chat_page* $mol_page
|
|
title <= chat_with* \
|
|
tools /
|
|
<= Chat_leave* $mol_button_minor
|
|
title @ \Leave
|
|
click? <=> do_leave_room*? null
|
|
attr *
|
|
^
|
|
hidden <= chat_leave_hidden* \
|
|
<= Chat_close* $mol_link
|
|
arg *
|
|
chat null
|
|
sub /
|
|
<= Chat_close_icon* $mol_icon_close
|
|
body /
|
|
<= Messages_list* $mol_list
|
|
rows <= message_rows* /
|
|
foot /
|
|
<= Compose_input* $mol_string
|
|
hint @ \Type a message…
|
|
value? <=> compose*? \
|
|
<= Attach_button* $mol_button_minor
|
|
title @ \Attach
|
|
click? <=> do_attach*? null
|
|
<= Record_button* $mol_button_minor
|
|
title <= record_title* @ \Record
|
|
click? <=> do_record*? null
|
|
<= Send_button* $mol_button_major
|
|
title <= send_label @ \Send
|
|
click? <=> do_send*? null
|
|
-
|
|
Roster_contact* $mol_button_minor
|
|
title <= contact_display* \
|
|
click? <=> open_chat*? null
|
|
-
|
|
Msg* $mol_view
|
|
sub /
|
|
<= Msg_from* $mol_view
|
|
sub /
|
|
<= msg_from* \
|
|
<= Msg_body* $mol_view
|
|
sub /
|
|
<= msg_body* \
|
|
<= Msg_media* $mol_view
|
|
sub <= msg_media* /
|
|
-
|
|
Msg_image* $mol_view
|
|
dom_name \img
|
|
attr *
|
|
^
|
|
src <= msg_image_uri* \
|
|
-
|
|
Msg_audio* $mol_view
|
|
dom_name \audio
|
|
attr *
|
|
^
|
|
controls \
|
|
src <= msg_audio_src* \
|
|
-
|
|
Msg_link* $mol_link
|
|
uri <= msg_link_uri* \
|
|
sub /
|
|
<= msg_link_label* @ \Open file
|