• last updated 13 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Improvements for the HTML sandbox feature:

- name the formfield consistently with its ancestry

- provide two preview and visualization styles: inline, where the page is displayed alongside the code and in an own window, opened by clicking on a button

- allow to customize whether one prefers the inline style preview, the window preview or none via the preview_inline and preview_window parameters

- fix visualization when formfield is rendered as readonly and no monaco editor is available

- localize button text

    • -2
    • +2
    ./xowf-monaco-plugin/xowf-monaco-plugin.info
    • -0
    • +1
    ./xowf-monaco-plugin/catalog/xowf-monaco-plugin.de_DE.ISO-8859-1.xml
    • -0
    • +1
    ./xowf-monaco-plugin/catalog/xowf-monaco-plugin.en_US.ISO-8859-1.xml
    • -0
    • +1
    ./xowf-monaco-plugin/catalog/xowf-monaco-plugin.it_IT.ISO-8859-1.xml
    • -35
    • +94
    ./xowf-monaco-plugin/tcl/form-field-procs.tcl
file upgrade-5.10.0d32-5.10.0d33.sql was initially added on branch oacs-5-10.

As we now enforce emails to be lowercase, also sanitize existing data

New HTML sandbox formfield based on the Monaco editor formfield

This field implement an HTML sandbox. The user can edit HTML code and see the result rendered in real time as a standalone document using an iframe. This formfield is meant for quick prototyping of HTML pages which can then be shared among other wiki users, taking also advantage of other wiki features such as versioning, access control and so on.

    • -0
    • +84
    ./xowf-monaco-plugin/tcl/form-field-procs.tcl
Whitespace cleanup

    • -6
    • +6
    ./xowf-monaco-plugin/tcl/form-field-procs.tcl
Make so that also party::update enforces emails to be lowercase, add/extend automated tests to make sure emails are lowercase everywhere

    • -2
    • +3
    ./acs-tcl/tcl/community-core-procs.tcl
In order to make the "editor=" formfield spec option have any effect, one should catch the value from the spec early, before the formfield is reclassed and initialized

This also exposes that the editor=none value is not valid (detected by xowiki and xowf automated tests). For this to be valid one should define it as a richtext subclass.

Cloase bracket

Refine regex and extend tests

    • -0
    • +1
    ./acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Extend 'validate_url' test case

    • -9
    • +39
    ./acs-templating/tcl/test/data-procs.tcl
make child_components a proc (::xowiki::formfield::child_components) and add filter expression

    • -15
    • +25
    ./xowiki/tcl/form-field-procs.tcl
Extend 'acs_tcl__util_url_valid_p' test case

    • -1
    • +1
    ./acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Make the check for relative URLs less strict to cover some valid cases (see RFC 1808) and extend test cases.

    • -4
    • +33
    ./acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Unify URL checking, now that 'util_url_valid_p' accepts relative URLs. Extend 'validate_url' test case and bump package version for dependencies.

    • -9
    • +97
    ./acs-templating/tcl/test/data-procs.tcl
Add the 'relative' flag to 'util_url_valid_p', to check also relative URLs. Extend 'acs_tcl__util_url_valid_p' test case and bump package version.

    • -5
    • +44
    ./acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Added new method "child_components": Return for a list of form-field objs all child components

Refine URL validation regexp and extend 'acs_tcl__util_url_valid_p' test case.

    • -0
    • +63
    ./acs-tcl/tcl/test/acs-tcl-test-procs.tcl
Fix typo. Fixes 'files__tcl_file_common_errors' test case

factor out render_full_submission_form

Add 'get_url_directory' test case, covering 'template::util::get_url_directory'

    • -1
    • +27
    ./acs-templating/tcl/test/util-procs.tcl
Add 'nvl' test case, covering 'template::util::nvl'

    • -1
    • +29
    ./acs-templating/tcl/test/util-procs.tcl
Add 'number_list' test case, covering 'template::util::number_list'

    • -0
    • +42
    ./acs-templating/tcl/test/util-procs.tcl
file util-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./acs-templating/tcl/test/util-procs.tcl
Add 'validate_currency' test case, covering 'template::data::validate' and 'template::data::validate::currency'

    • -1
    • +45
    ./acs-templating/tcl/test/data-procs.tcl
Break overlong lines

    • -41
    • +111
    ./acs-templating/tcl/test/data-procs.tcl
Whitespace changes

    • -254
    • +254
    ./acs-templating/tcl/data-procs.tcl
Add 'validate_oneof' test case, covering 'template::data::validate' and 'template::data::validate::oneof'

    • -1
    • +27
    ./acs-templating/tcl/test/data-procs.tcl
Fix clock check. The clock command will not fail on incorrect dates (e.g. 2021-13-00) unless the format is specified.

Add 'validate_textdate' test case, covering 'template::data::validate' and 'template::data::validate::textdate'

    • -1
    • +38
    ./acs-templating/tcl/test/data-procs.tcl
Add 'validate_enumeration' test case, covering 'template::data::validate' and 'template::data::validate::checkbox_enumeration'

    • -1
    • +37
    ./acs-templating/tcl/test/data-procs.tcl