• last updated 3 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix quoting of single quotes in JSON

    • -2
    • +2
    ./packages/xotcl-core/tcl/chat-procs.tcl
Remove leftover alert

    • -2
    • +1
    ./packages/xowiki/www/ajax/streaming-chat.js
Avoid javascript eval idiom as CSP will refuse to execute when unsafe-eval is disabled

This requires moving to a more approprate JSON parser... which is also pickier regarding single quotes, so I had to rework JSON encoding to please it.

    • -4
    • +4
    ./packages/xotcl-core/tcl/chat-procs.tcl
    • -2
    • +3
    ./packages/xowiki/www/ajax/streaming-chat.js
Make ad_sanitize_html not hardly dependant on a connection being there (thanks to Markus moser for the report)

Also, update documentation and make idioms less awkward.

(this passes automated tests)

    • -33
    • +45
    ./packages/acs-tcl/tcl/text-html-procs.tcl
Add editor hints + Whitespace changes

    • -34
    • +40
    ./packages/chat/tcl/chat-ajax-procs.tcl
Make util_current_location robust such it does not raise an exception when not connected. In these cases, the configured ad_url is returned. This is not perfect either, since it would not work with host-node mapped subsites, and maybe, there are cases, where one wants just information based on the actual connection. so, maybe, one should provide either a higher level API and/or parameterize util_current_location in the future.

    • -3
    • +14
    ./packages/acs-tcl/tcl/utilities-procs.tcl
extend list of embedded content types

improve comments

    • -8
    • +8
    ./packages/acs-tcl/tcl/navigation-procs.tcl
    • -7
    • +7
    ./packages/acs-tcl/tcl/parameter-procs.tcl
    • -6
    • +6
    ./packages/acs-tcl/tcl/security-procs.tcl
    • -2
    • +2
    ./packages/acs-tcl/tcl/site-nodes-procs.tcl
    • -11
    • +11
    ./packages/acs-tcl/tcl/utilities-procs.tcl
    • -3
    • +3
    ./packages/acs-tcl/tcl/xml-0-sgml-procs.tcl
    • -3
    • +3
    ./packages/xowiki/tcl/form-field-procs.tcl
improve capitalization and wording in comments

    • -2
    • +2
    ./packages/acs-templating/tcl/date-procs.tcl
    • -11
    • +11
    ./packages/acs-templating/tcl/head-procs.tcl
    • -13
    • +16
    ./packages/acs-templating/tcl/list-procs.tcl
    • -3
    • +2
    ./packages/acs-templating/tcl/wizard-procs.tcl
Fix typo

    • -1
    • +1
    ./packages/forums/www/load-message-content.tcl
Whitespace changes

    • -10
    • +6
    ./packages/assessment/tcl/as-action-proc.tcl
    • -16
    • +14
    ./packages/assessment/www/admin/asm-action-new.tcl
    • -2
    • +1
    ./packages/forums/www/load-message-content.tcl
    • -2
    • +2
    ./packages/xotcl-core/tcl/generic-procs.tcl
    • -4
    • +4
    ./packages/xowiki/tcl/includelet-procs.tcl
Fix typos

    • -2
    • +2
    ./packages/xotcl-core/tcl/generic-procs.tcl
    • -2
    • +2
    ./packages/xowiki/tcl/includelet-procs.tcl
Whitespace changes

Fix typos

    • -2
    • +2
    ./packages/acs-tcl/tcl/site-nodes-procs.tcl
    • -2
    • +2
    ./packages/acs-tcl/tcl/widgets-procs.tcl
    • -3
    • +3
    ./packages/categories/tcl/categories-procs.tcl
dotlrn cache reform: move caching from util_memoize into three seperate caches to reduce stress on util_memoize.

These caches are:

- ::dotlrn::dotlrn_cache

Default general purpose cache for dotlrn-wide value (e.g. available applets, etc)

- ::dotlrn::dotlrn_user_cache

Partitioned cache for values specific to a user (e.g. personal_portal_id, theme_id, etc)

- ::dotlrn::dotlrn_community_cache

Partitioned cache for values specific to a community (e.g name, roles, portal_id, etc)

    • -2
    • +6
    ./packages/dotlrn/tcl/applets-procs.tcl
    • -63
    • +100
    ./packages/dotlrn/tcl/community-procs.tcl
    • -2
    • +9
    ./packages/dotlrn/tcl/community-procs.xql
    • -3
    • +32
    ./packages/dotlrn/tcl/dotlrn-init.tcl
    • -7
    • +22
    ./packages/dotlrn/tcl/dotlrn-procs.tcl
    • -0
    • +8
    ./packages/dotlrn/tcl/dotlrn-procs.xql
    • -2
    • +4
    ./packages/dotlrn/tcl/user-type-procs.tcl
    • -3
    • +1
    ./packages/dotlrn/www/member-add-3.tcl
    • -4
    • +1
    ./packages/dotlrn/www/spam-policy-toggle.tcl
Trailing space cleanup

    • -23
    • +23
    ./packages/acs-tcl/tcl/whos-online-procs.tcl
Whitespace changes

    • -206
    • +206
    ./packages/acs-tcl/tcl/widgets-procs.tcl
Fix typos in proc doc

    • -5
    • +5
    ./packages/acs-tcl/tcl/widgets-procs.tcl
    • -4
    • +4
    ./packages/acs-tcl/tcl/whos-online-procs.tcl
Better separate data from formatting

Provide tests for public procs: min and max

    • -0
    • +25
    ./packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Normalize indentation

    • -19
    • +19
    ./packages/chat/tcl/chat-ajax-procs.tcl
Decouple a bit formatting from data

    • -0
    • +48
    ./packages/chat/www/ajax/chat.adp
Give templating a chance

move all hardcoded styling to the adp template, which might be styled by the theme. Also, biring some order in the login proc, e.g. don't open and read a file to include a javascript all the time.

    • -64
    • +59
    ./packages/chat/tcl/chat-ajax-procs.tcl
    • -0
    • +17
    ./packages/chat/www/ajax-chat-script.adp
Provide tests for public procs: util_escape_quotes_for_csv

    • -0
    • +17
    ./packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Provide tests for public procs: util_commify_number

    • -1
    • +30
    ./packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Whitespace changes

Fix typos

Modernize XoTcl idioms

    • -5
    • +5
    ./packages/chat/tcl/chat-ajax-procs.tcl
Refactor test case for util_absolute_path_p

    • -6
    • +14
    ./packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Provide tests for public procs: util_complete_url_p

    • -0
    • +25
    ./packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl