lib

Prolog files

attvar.plShow source
authenticate.pl  -- Authentication access for SWISHShow source
authentication_hook/3Is called from the /pengine/create request to establish the logged in user.Source
authenticate/2Establish the identity behind the HTTP Request.Source
user_property/2True when Identity has Property.Source
avatar.pl  -- Avatar managementShow source
random_avatar/1Generate a random avatar image url.Source
release_avatar/1Release the avatar to the pool of free avatars.Source
valid_gravatar/1True if URL is a real gravatar.Source
bootstrap.pl  -- Bootstrap form generatorShow source
chat.pl  -- The SWISH collaboration backboneShow source
chatstore.pl  -- Store chat messagesShow 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
eval_content/3Evaluate the content of Text.Source
dashboard.pl  -- Provide non-programmer query executionShow source
examples.pl  -- Serve example filesShow source
flags.plShow source
form.pl  -- Form handling utilitiesShow source
validate_field/4True when Value is a valid value for Field from Dict according to Options.Source
validate_form/2Run validate_field/4 on all specified fields, combining the error message.Source
gitty.pl  -- Single-file GIT like version systemShow source
data_diff/3Diff two data strings line-by-line.Source
delete_head/2Delete Head from the administration.Source
delete_object/2Delete an existing object.Source
fsck_object/2Test the integrity of object Hash in Store.Source
gitty_close/1Close access to the Store.Source
gitty_commit/3True if Meta holds the commit data of NameOrHash.Source
gitty_create/5Create a new object Name from Data and meta information.Source
gitty_data/4Get the data in object Name and its meta-data.Source
gitty_diff/4True if Dict representeds the changes in Hash1 to FileOrHash2.Source
gitty_driver/2Get the current gitty driver.Source
gitty_file/3True when Hash is an entry in the gitty Store and Head is the HEAD revision.Source
gitty_file/4True when Hash is an entry in the gitty Store and Head is the HEAD revision.Source
gitty_fsck/1Check the integrity of store.Source
gitty_hash/2True when Hash is an object in the store.Source
gitty_history/4History is a dict holding a key history with a list of dicts representating the history of Name in Store.Source
gitty_load/4Low level objects store.Source
gitty_open/2Open a gitty store according to Options.Source
gitty_reserved_meta/1True when Key is a gitty reserved key for the commit meta-data.Source
gitty_save/4Low level objects store.Source
gitty_update/5Update document Name using Data and the given meta information.Source
is_gitty_hash/1True if Term is a possible gitty (SHA1) hash.Source
set_head/3Register Head as the Head hash for File, removing possible old head.Source
udiff_string/2True when String is the string representation of UDiff.Source
gitty_driver_bdb.pl  -- Gitty BDB driverShow source
delete_head/2Delete the named head.Source
delete_object/2Delete an existing object.Source
gitty_close/1Close the BDB environment associated with a gitty store.Source
gitty_file/3True when File entry in the gitty store and Head is the HEAD revision.Source
gitty_hash/2True when Hash is an object in the store.Source
gitty_update_head/4Update the head of a gitty store for Name.Source
load_object/5Load an object given its Hash.Source
load_plain_commit/3Load the commit data as a dict.Source
set_head/3Set the head of the given File to Hash.Source
store_object/4Store the actual object.Source
gitty_driver_files.pl  -- Gitty plain files driverShow 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
html/1Insert HTML into the output.Source
html/3Sandbox respecting version of html_write:html//1.Source
safe_raw_html/1Helper for variables in html(\List).Source
include.pl  -- Support :- include(File) from SWISHShow source
xref_source_file/3Deal with the above expansion for :- include(program) to support the cross-referencer.Source
xref_source_identifier/2Map swish://file to a file from the gitty store.Source
include/2Include file at a specific version.Source
jquery.pl  -- Call jQuery on the SWISH interfaceShow source
markdown.pl  -- SWISH Notebook markdown supportShow source
file/4Hook that deals with linking other notebooks using the following markdown syntax:.Source
md_eval.pl  -- Provide evaluable markdownShow source
messages.plShow source
noble_avatar.pl  -- Noble Avatar generatorShow source
create_avatar/2(Re-)create avatar with basename PNG.Source
existing_noble_avatar/2True when Image is the image file of a previously generated avatar of Gender.Source
noble_avatar/2True when File is the image file name for a generated avatar of Gender.Source
noble_avatar/3True when File is the image file name for a generated avatar of Gender.Source
oauth2.pl  -- Oauth2 based loginShow source
login/3Multifile hook to realise the actual login.Source
oauth2_claim/2True when Claim is the claim made in TokenInfo.Source
oauth2_login/2HTTP handler to login using oauth2.Source
oauth2_reply/2HTTP handler for the redirect we get back from the oauth2 server.Source
oauth2_user_info/3Given the token details obtained in oauth2_reply/2, get extended information about the user from the identity provider.Source
oauth2_validate_access_token/3Validates the AccessToken with Unity (implicit or hybrid flow).Source
server_attribute/3Multifile hook that defines available oauth2 servers.Source
page.pl  -- Provide the SWISH application as Prolog HTML componentShow source
logo/3Hook to include the top-left logos.
pengine_logo/3Emit an <a> element that provides a link to Pengines and SWISH on this server.Source
swish_content/3Generate the SWISH editor, Prolog output area and query editor.Source
swish_logo/3Emit an <a> element that provides a link to Pengines and SWISH on this server.Source
swish_navbar/3Generate the swish navigation bar.Source
swish_page/3Generate the entire SWISH default page.Source
swish_reply/2HTTP handler to reply the default SWISH page.Source
swish_reply_resource/1Serve /swish/Resource files.Source
swish_resources/2Include SWISH CSS and JavaScript.Source
patch.pl  -- Run patch programShow source
patch/4Patch the string Orig using Diff.Source
paths.pl  -- Setup SWISH search pathsShow source
pep.pl  -- SWISH PEP (Policy Enforcement Point)Show source
procps.plShow source
profiles.plShow source
projection.pl  -- Define the projectionShow source
render.pl  -- SWISH term-rendering supportShow source
search.pl  -- SWISH search from the navigation barShow source
match/3True if Line matches Query, respecting Options.Source
search_box/3Render a Bootstrap search box.Source
typeahead/4Find typeahead suggestions for a specific search category (Type).Source
session.pl  -- Setup SWISH sessionsShow source
storage.pl  -- Store files on behalve of web clientsShow source
swish_chr.pl  -- Make CHR available in SWISHShow source
swish_csv.pl  -- Support CSV output from a Pengines serverShow source
swish_debug.plShow 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