• last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix typos

  1. … 4 more files in changeset.
Fix even more typos

  1. … 29 more files in changeset.
Reduce verbosity at runtime

Extend API to allow registration for URNs.

URNs provide an abstraction and a single place for e.g updating

references to external resources when switching between a CDN and a

local resource, or when a resource should be updated. Instead of

adding e.g. a CDN url via tempate::head::add_script, one can add an

URN and control its content from a single place.

Example:

template::register_urn \

-urn urn:ad:js:jquery \

-resource /resources/xowiki/jquery/jquery.min.js

  1. … 1 more file in changeset.
Provide developer with the option to declare compound resources (CSS

or JavaScript) to optimize performance or to provide customized

themes. New public function:

template::head::includes -container .. -parts ...

if an included resource is encountered during rendering of the page,

it is ignored. The compound resource management is aligned resource

flushing (when a compound resource is flushed, it stop shadowing

potentially other resources. An additional option could be to

add an "-parts" flag to add_link/add_script.

added simple regression test for basic functionality

  1. … 1 more file in changeset.
New functions for improved theming

template::head::flush_link -href ... -rel ...

template::head::flush_script -src

These functions are the inverse functions of template::head::add_link

and template::head::add_script. These functions are required in

situations where e.g. different subsites with different themes have

different requirements for a style file provide by some application

package.

Bug fix: avoid confusion between command argument and option, when argument starts with "-"

  1. … 81 more files in changeset.
merged changes from the oacs-5-9 branch and resolved conflicts

  1. … 7834 more files in changeset.
Fix spelling errors

  1. … 44 more files in changeset.
Allow to identify and set handlers also on form fields by form id and field name (confirm and generic ones).

This could be desirable in pages with multiple ad_forms having fields with the same name (and thus no unique id), or other hand made forms not having id field at all.

- improve documentation

- improve comments

- be silent, when specified element does not exist

- new conveniance function "template::add_event_listener"

- improve documentation on "template::add_confirm_handler"

- remove onclick and onkeypress inline scripts in list-procs

- bump version number to 5.9.1d7

  1. … 3 more files in changeset.
- renamve template::add_acs_confirm_handler into template::add_confirm_handler

  1. … 9 more files in changeset.
- generalize template::add_acs_confirm_handler to allow as well other event types, such as e.g. "submit"

  1. … 1 more file in changeset.
-Quoted sqared parenthesis in javascript giving problems to subst.

-Removed unnecessary call again to template::add_body_script

- added new function template::add_acs_confirm_handler for standardized confirm interactions ("are you sure") in order to get rid of onclick handlers

- bump version numbers to reflect dependencies

  1. … 1 more file in changeset.
- add fallback for non CSP 2 compliant browsers for "head::add_script -script ..."

- template::head::add_style: don't add identical entries multiple times

- avoid event bubbling for click listener

- make unsafe-inline optional in CSP for legacy browsers: add automatically "script-src 'unsafe-inline'" when scripted body_scripts are used

- add CSP nonce to script tags if nonce value is available

- turn function definition of acs_Focus() into a conditionally defined

body-script

- turn "body_event_handlers" into "window.addEventListener"

  1. … 4 more files in changeset.
- add support for W3C Subresource Integrity (SRI)

* For details about SRI, see https://www.w3.org/TR/SRI/

* Added arguments -crossorigin and -integrity

to the following functions

template::add_body_script

template::add_script

template::head::add_javascript

template::head::add_link

template::head::add_script

* Updated blank-master.adp

- some more cleanup:

* remove commented out code

* add missing argument documentation

(template::head::add_javascript)

* document arguments alphabetically

  1. … 3 more files in changeset.
- add editor hints to keep spaces/tabs in the furture more consistent

  1. … 754 more files in changeset.
- Improve robustness of blank-master: malformed lists in subsite

parameters could render a subsite useless and hard to correct.

Now the validity of lists is checked, errors are written to the

error.log, invalid parameters are ignored.

- added flat list syntax for ThemeCSS specs (easier to read)

- added parameter ThemeJS similar to ThemeCSS (ability to add head and

body scripts)

- added generalized function template::add_script with non-pos

parameter "-section" which might be "head" or "body" to make both

kind of scripts available to ThemeJS

  1. … 11 more files in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2547 more files in changeset.
- fix formulation in api-browser docu for recently added "async" option

- add support for the script async attribute (http://www.w3schools.com/tags/att_script_async.asp)

  1. … 2 more files in changeset.
- siumplify setting of head-variables