lib

Prolog files

attvar.plShow source
authenticate.pl  -- Authentication access for SWISHShow source
avatar.pl  -- Avatar managementShow source
bootstrap.pl  -- Bootstrap form generatorShow source
bt_button/6Source
bt_form/4Emit a Bootstrap form from Contents.Source
name_label/2Determine a label from a name by upcasing the first character and replacing all underscores by spaces.Source
chat.pl  -- The SWISH collaboration backboneShow source
broadcast_bell/3Adds a bell to indicate central chat messages.Source
chat_about/2Distribute a chat message about DocID.Source
chat_broadcast/1Send Message to all known SWISH clients.Source
chat_broadcast/2Send Message to all known SWISH clients.Source
chat_to_profile/2Send a HTML notification to users logged in using ProfileID.Source
notifications/3The chat element is added to the navbar and managed by web/js/chat.js.Source
chatstore.pl  -- Store chat messagesShow source
chat_messages/3Get messages associated with DocID.Source
chat_store/1Add a chat message to the chat store.Source
chat_count_about/2True when Count is the number of messages about DocID.Source
config.pl  -- Make HTTP locations known to JSON codeShow source
config/2Define a name/value pair that will end up in the SWISH config object (see web/js/config.js).Source
login/2If a login item with 'data-server'(+Server) is clicked, the HTTP handler with id login is called.Source
login_item/2This hook is called to find all possible login options.Source
source_alias/2Multifile hook that defines properties of file_search_path/2 aliases wrt.Source
swish_config/2Define a name/value pair that will end up in the SWISH config object (see web/js/config.js).Source
swish_config_hash/2True if Hash is the SHA1 of the SWISH config.Source
swish_reply_config/2Emit a configuration object to the client if the client requests for '.../swish_config.json', regardless of the path prefix.Source
user_info/3Each login facility must provide this hook.Source
content_filter.pl  -- Ban list content filterShow source
cron.pl  -- Schedule HTTP server maintenance tasksShow source
dashboard.pl  -- Provide non-programmer query executionShow source
data_source.pl  -- Cached data accessShow source
download.pl  -- Provide a button for downloading dataShow source
examples.pl  -- Serve example filesShow source
provides/1Make examples available through swish_provides/1.Source
flags.plShow source
form.pl  -- Form handling utilitiesShow source
gitty.pl  -- Single-file GIT like version systemShow source
gitty_driver_bdb.pl  -- Gitty BDB driverShow source
gitty_driver_files.pl  -- Gitty plain files driverShow source
attach_pack/2Load the index of Pack into memory.Source
delete_head/2Delete Head from Store.Source
delete_object/2Delete an existing object.Source
fsck_pack/1Validate the integrity of the pack file File.Source
gitty_close/1Close resources associated with a store.Source
gitty_file/4True when File entry in the gitty store and Head is the HEAD revision.Source
gitty_fsck/1Validate all packs associated with Store.Source
gitty_hash/2True when Hash is an object in the store.Source
gitty_open/2Driver specific initialization.Source
gitty_rescan/1Update our view of the shared storage for all stores matching Store.Source
gitty_update_head/5Update the head of a gitty store for Name.Source
load_object/5Load the given object.Source
load_object_from_pack/4True when Hash is in a pack and can be loaded.Source
load_plain_commit/3Load the commit data as a dict.Source
pack_objects/6Pack the given objects and pack files into a new pack.Source
repack_objects/2Repack objects of Store for reduced disk usage and enhanced performance.Source
set_head/3Set the head of the given File to Hash.Source
store_object/4Store the actual object.Source
unpack_pack/2Turn a pack back into a plain object files.Source
unpack_packs/1Unpack all packs.Source
help.pl  -- SWISH help systemShow source
highlight.pl  -- Highlight token serverShow source
xref_open_source/2Open a source.Source
config/2Provides the object config.swish.style, a JSON object that maps style properties of user-defined extensions of library(prolog_colour).Source
css/3Multifile hook to define additional style to apply in a specific context.Source
current_highlight_state/2Return info on the current highlighter.Source
server_tokens/1These predicates help debugging the server side.Source
show_mirror/1These predicates help debugging the server side.Source
style/3Declare that we map StyleIn as generated by library(prolog_colour) into a token of type SWISHType, providing additional context information based on Attributes.Source
token_info/3Generate HTML, providing details about Token.Source
html_output.pl  -- SWISH HTML OutputShow source
http_version.pl  -- Serve version details over HTTPShow source
include.pl  -- Support :- include(File) from SWISHShow source
jquery.pl  -- Call jQuery on the SWISH interfaceShow source
logging.pl  -- Add SWISH query execution to the HTTP log fileShow source
markdown.pl  -- SWISH Notebook markdown supportShow source
md_eval.pl  -- Provide evaluable markdownShow source
messages.plShow source
noble_avatar.pl  -- Noble Avatar generatorShow source
oauth2.pl  -- Oauth2 based loginShow source
page.pl  -- Provide the SWISH application as Prolog HTML componentShow source
patch.pl  -- Run patch programShow source
paths.pl  -- Setup SWISH search pathsShow source
pep.pl  -- SWISH PEP (Policy Enforcement Point)Show source
not_sandboxed/2Called by Pengines to see whether User may call non-sandboxed operations in Application.Source
approve/3This hook is called by approve/2 and deny/2 before the default rules.
approve/2Source
authorized/2Verify that Action is authorized.Source
deny/2Source
ws_authorized/2True when WSUser is allowed to perform action.Source
procps.pl  -- Get process statistics from Linux /procShow source
profiles.plShow source
projection.pl  -- Define the projectionShow source
r_swish.plShow source
render.pl  -- SWISH term-rendering supportShow source
search.pl  -- SWISH search from the navigation barShow source
session.pl  -- Setup SWISH sessionsShow source
storage.pl  -- Store files on behalve of web clientsShow source
typeahead/4Find files using typeahead from the SWISH search box.Source
storage_commit/2Load the commit data for Hash.Source
storage_file/1True if File is known in the store.Source
storage_file/3True if File is known in the store.Source
storage_file_extension/2True if File is known in the store.Source
storage_file_extension_head/3True if File is known in the store.Source
storage_fsck/0Enumerate and check the consistency of the entire store.Source
storage_load_term/2Add/retrieve terms from the gitty store.Source
storage_meta_data/2True if File is known in the store.Source
storage_meta_property/2True when Meta has Property.Source
storage_repack/0Repack the storage directory.Source
storage_repack/1Repack the storage directory.Source
storage_store_term/2Add/retrieve terms from the gitty store.Source
storage_unpack/0Unpack all packed objects of the store.Source
use_gitty_file/1Load a file from the Gitty store.Source
use_gitty_file/2Load a file from the Gitty store.Source
swish_chr.pl  -- Make CHR available in SWISHShow source
swish_csv.pl  -- Support CSV output from a Pengines serverShow source
swish_debug.pl  -- Print debug messages and test assertionsShow source
swish_diagnostics.plShow source
pengine_stale_module/1True if M seems to be a pengine module with no associated pengine.Source
pengine_stale_module/2True if M seems to be a pengine module with no associated pengine.Source
redis_consumer_status/2True when Status is a dict describing the current status for Consumer.Source
stale_pengine/1True if Pengine is a Pengine who's thread died.Source
start_swish_stat_collector/0Start collecting statistical performance information for the running SWISH server.Source
swish_cluster_member/2Source
swish_died_thread/2True if Id is a thread that died with Status and has not (yet) been joined.Source
swish_save_stats/1Save statistcs to File or the default file.Source
swish_statistics/1True if State is a statistics about SWISH.Source
swish_stats/2Get the collected statistics for the given Period.Source
swish_redis.pl  -- Redis stream connectionShow source
redis_consumer/1True when Consumer is the name of this redis node.Source
reinit_redis/0Stop and start the redis thread.Source
swish_cluster/1True when Pairs is a list Consumer-URL of peer SWISH servers in this cluster.Source
template_hint.pl  -- Generate template hints for CondeMirrorShow source
trace.pl  -- Show source
version.pl  -- Manage software versionsShow source
web.pl  -- Serve /pluginShow source