• last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
message-relay-procs: factor out subscription handling from bgdelivery

and chat-procs and provide compatibility for streaming chat modes

with HTTPS.

The message-relay-procs provide two different implementation for

delivering messages to subscribers:

a) via bgdelivery (traditional method): this is, what was used so far,

having the disadvantage that it only works on plain HTTP connections

b) via ns_connchan (new method): ns_connchan is a relatively new feature

of NaviServer which allows transparent reading/writing from connections.

Chat has a new instance variable named "message_relay", which consists

of preferences for the chat connections. So far, the traditional "bgdelivery"

is still the default mode.

bumped version numbers

- xotcl-core 5.10.0d14

- xowiki: 5.10.0d23

  1. … 5 more files in changeset.
New utility function "Page.update_publish_status" which does

essentially, what admin/set-publish-status did before (update of

publish status and related handling of syndication)

New externally callable method "toggle-publish-status". This replaces

the call of admin/set-publish-status in the includelet child-resources

to make it easier usable from the xowiki security policies.

New flag "-nocleanup" for ::xowiki::datasource, to make it callable

inside arbitrary pages without loosing calling context.

  1. … 4 more files in changeset.
Chat Redesign:

  1. … 3 more files in changeset.
Remove redundant cleanup which might fail in case object does not exist (we clean up anyway in the finally branch)

Put event handler inline so is attached at element creation, fix URLencoding of image deletion

Bring event handler inline to force it being attached after the upload button is added to the page

Add missing parameter in calc_wiki_image_links_to_image_tags

See bug tracker #3372

Chat Redesign: add float clear after user block in user list (also in 'classic' skin)

    • -0
    • +8
    ./resources/chat-skins/chat-classic.css
Chat Redesign: add float clear after user block in user list

    • -0
    • +8
    ./resources/chat-skins/chat-bubbles.css
Chat Redesign:

+ Add specific container for the chat includelet (xowiki-chat-includelet).

+ Set a sensible default for the 'xowiki-chat-includelet' size.

+ Move the 'my-user-id' hidden element in the chat adp to the chat procs.

+ Rename 'my-user-id' element to 'xowiki-my-user-id'.

+ Get the ChatSkin parameter inside the login proc.

+ Include the skin parameter in the chat includelet.

    • -0
    • +7
    ./resources/chat-skins/chat-bubbles.css
    • -0
    • +7
    ./resources/chat-skins/chat-classic.css
  1. … 5 more files in changeset.
file chat-common.js was added on branch oacs-5-10 on 2019-02-25 15:35:44 +0000

Chat Redesign:

+ Skin support.

+ New 'ChatSkin' instance parameter, with currently two possible values: 'classic' and 'bubbles'.

+ Skins are located in the new packages/xowiki/www/resources/chat-skins/ directory.

+ New 'bubbles' skin, default for the chat package.

+ Old skin renamed to 'classic', default for the xowiki includelet.

+ New skins can be created by just adding the css and js files in the skins directory, and naming them accordingly. For example, being '$skin' the name of the new skin, the files should be named chat-$skin-common.js and chat-$skin.css.

+ New '-skin' parameter to the Chat login proc, containing the name of the skin (i.e. 'classic' or 'bubbles').

+ Bump version number.

    • -0
    • +270
    ./resources/chat-skins/chat-bubbles-common.js
    • -0
    • +371
    ./resources/chat-skins/chat-bubbles.css
    • -0
    • +211
    ./resources/chat-skins/chat-classic-common.js
    • -0
    • +251
    ./resources/chat-skins/chat-classic.css
  1. … 4 more files in changeset.
Chat Redesign: scroll down list of messages when clicking the 'Full screen' trigger

Chat Redesign: better adjust height to avoid issues on 'Full screen' mode on certain tablets

Prefer classic block comments in css to avoid potential side-effects

Chat Redesign: set min-width to the send form and the 'Full screen' trigger so they do not overlap in very small widths

Chat Redesign: set min-width to the send button, so it does not collapse in very small widths

Chat Redesign: use hyphens and overflow-wrap to manage line overflow, instead of just blindly breaking all words

Chat Redesign: hide background scroll bar in 'Full screen' mode

Chat Redesign: avoid timestamp float overlapping by clearing floats after the message block

Don't use the "javascript:" presudo-URL idiom to avoid CSP complaints from the browser

Chat Redesign: be more explicit in the send icon padding and border, to avoid unintended theme inheritance

Use again more standard idiom to fix user picture border this time

Use more standard-friendly idioms when rendering user information (fixes colors in IE)

Use a more standard-friendly idiom to attach an event handler (fixes IE)

Chat Redesign: avoid breakage produced by veeeeeeery long words by breaking them using the 'word-break' css property

Chat Redesign: revert setting automatically the focus on the input field after 'Full screen' switch, as it produces the not so nice effect on mobile devices of triggering the on-screen keyboard

Chat Redesign: add a fixed height to the 'xowiki-chat-messages-and-form' element on small widths, to make room for the user list and the input field.

Switch to a non-nsv approach to determine the right chat class

  1. … 1 more file in changeset.
Chat Redesign: restore focus on input field after 'Full screen' switch