xowiki::jqueryui::resource_info (private)
xowiki::jqueryui::resource_info [ -version version ]
Defined in packages/xowiki/tcl/resource-info-procs.tcl
Get information about available version(s) of jqueryui either from the local filesystem, or from CDN.
- Switches:
- -version (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set parameter_info { package_key xowiki parameter_name JqueryuiVersion default_value 1.14.0 } if {$version eq ""} { dict with parameter_info { set version [::parameter::get_global_value -package_key $package_key -parameter $parameter_name -default $default_value] } } # # Setup variables for access via CDN vs. local resources. # set resourceDir [acs_package_root_dir xowiki/www/resources/jqueryui] set cdn //cdnjs.cloudflare.com/ajax/libs/jqueryui set path $resourceDir/$version/jquery-ui.min.js ns_log notice "jquery-ui: check $path ->" [file exists $path] if {[file exists $path]} { set prefix /resources/xowiki/jqueryui/$version set cdnHost "" set cspMap "" } else { set prefix $cdn/$version set cdnHost cdnjs.cloudflare.com dict set cspMap urn:ad:css:jqueryui style-src $cdnHost dict set cspMap urn:ad:js:jqueryui script-src $cdnHost } # # Return the dict with at least the required fields # lappend result resourceName "jquery-ui" resourceDir $resourceDir cdn $cdn cdnHost $cdnHost prefix $prefix cssFiles {themes/base/jquery-ui.min.css} jsFiles {jquery-ui.min.js} extraFiles {} cspMap $cspMap urnMap { urn:ad:css:jquery-ui themes/base/jquery-ui.min.css urn:ad:js:jquery-ui jquery-ui.min.js } versionCheckAPI {cdn cdnjs library jqueryui count 5} vulnerabilityCheck {service snyk library jquery-ui} parameterInfo $parameter_info configuredVersion $version return $resultXQL Not present: Generic, PostgreSQL, Oracle