From f4d7251dff77a0e084aab2609c4e1eb98eeaf51f Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Wed, 27 Aug 2025 03:40:42 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`inline`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @dotpipe. * https://github.com/dotpipe/dotPipe/pull/3#issuecomment-3226630774 The following files were modified: * `API/dotpipe.js` * `activeMenu/dotpipe.js` * `addons/dotpipe.js` * `bridge/dotpipe.js` * `carousel/dotpipe.js` * `cart/dotpipe.js` * `columns/dotpipe.js` * `csv-test/dotpipe.js` * `doted/dotpipe.js` * `dotpipe.js` * `guitar/dotpipe.js` * `inline/dotpipe.js` * `landing/dotpipe.js` * `login/dotpipe.js` * `tree-view/dotpipe.js` --- API/dotpipe.js | 135 +++++++++++++++++++++++++++++++++++++++--- activeMenu/dotpipe.js | 118 +++++++++++++++++++++++++++++++++--- addons/dotpipe.js | 126 ++++++++++++++++++++++++++++++++++++--- bridge/dotpipe.js | 108 ++++++++++++++++++++++++++++++--- carousel/dotpipe.js | 107 ++++++++++++++++++++++++++++++--- cart/dotpipe.js | 107 ++++++++++++++++++++++++++++++--- columns/dotpipe.js | 96 +++++++++++++++++++++++++++--- csv-test/dotpipe.js | 110 +++++++++++++++++++++++++++++++--- doted/dotpipe.js | 104 +++++++++++++++++++++++++++++--- dotpipe.js | 111 +++++++++++++++++++++++++++++++--- guitar/dotpipe.js | 104 +++++++++++++++++++++++++++++--- inline/dotpipe.js | 106 ++++++++++++++++++++++++++++++--- landing/dotpipe.js | 123 +++++++++++++++++++++++++++++++++++--- login/dotpipe.js | 128 ++++++++++++++++++++++++++++++++++++--- tree-view/dotpipe.js | 127 ++++++++++++++++++++++++++++++++++++--- 15 files changed, 1605 insertions(+), 105 deletions(-) diff --git a/API/dotpipe.js b/API/dotpipe.js index 9bdd707..76aa969 100644 --- a/API/dotpipe.js +++ b/API/dotpipe.js @@ -5356,12 +5356,38 @@ function escapeHtml(html) { } /** - * - * @param {JSON Object} value - * @param {string} tempTag - * @param {} root - * @param {*} id - * @returns HTML Object + * Render a JSON-defined UI fragment into a DOM container. + * + * Given a JSON "template" object, creates DOM nodes described by the object's keys + * and appends them into the provided container (tempTag). Supports nested objects, + * common presentation keys and helper directives used by the framework: + * - tagname / tagName: element tag to create (defaults to "div") + * - header: object rendered via modalaHead (also injects a CSP meta tag) + * - buttons: array of button definitions (text/value/attributes) + * - sources: semicolon-separated sources for cards/carousels (img/audio/video/html/php) + * - css / js: external asset URLs to inject as /