- Add
orbeon.warandorbeon-embedding.war. - Run
docker compose up.
The embedding demo JSP reads:
| const descendants = WF.currentItem().getChildren().flatMap(function getDesc(item) { | |
| return [item, ...item.getChildren().flatMap(getDesc)]; | |
| }); | |
| const completed = descendants.filter(item => item.isCompleted() && !item.isReadOnly()); | |
| if (completed.length === 0) { | |
| WF.showMessage("No completed items found.", false); | |
| } else { | |
| WF.editGroup(() => completed.forEach(item => WF.completeItem(item))); |
| const TARGET = "■"; | |
| const REPLACEMENT = "□"; | |
| function getAllDescendants(item) { | |
| const results = []; | |
| for (const child of item.getChildren()) { | |
| results.push(child); | |
| results.push(...getAllDescendants(child)); | |
| } | |
| return results; |
| const TARGET = "👉□"; | |
| const REPLACEMENT = "■"; | |
| function getAllDescendants(item) { | |
| const results = []; | |
| for (const child of item.getChildren()) { | |
| results.push(child); | |
| results.push(...getAllDescendants(child)); | |
| } | |
| return results; |
| curl \ | |
| -X POST \ | |
| -H "Content-Type: application/xml" \ | |
| -d '<?xml version="1.0" encoding="UTF-8"?> | |
| <search> | |
| <query path="details/title" summary-field="true"/> | |
| <query path="details/author" summary-field="true"/> | |
| </search>' \ | |
| 'http://localhost:8080/orbeon/fr/service/persistence/search/orbeon/bookshelf' |
| # Based on https://tedspence.com/a-sql-server-docker-container-with-full-text-search-a1b7c5fc308c | |
| FROM mcr.microsoft.com/mssql/server:2022-latest | |
| USER root | |
| RUN apt-get update && \ | |
| apt-get install -yq gnupg gnupg2 gnupg1 curl apt-transport-https && \ | |
| curl https://packages.microsoft.com/keys/microsoft.asc -o /var/opt/mssql/ms-key.cer && \ | |
| apt-key add /var/opt/mssql/ms-key.cer && \ | |
| curl https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list -o /etc/apt/sources.list.d/mssql-server-2022.list && \ | |
| apt-get update && \ |
| from mitmproxy import http | |
| class AddHeader: | |
| def __init__(self): | |
| self.counter = 0 | |
| def request(self, flow: http.HTTPFlow) -> None: | |
| self.counter += 1 | |
| flow.request.headers["My-Counter"] = str(self.counter) |
| <xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:ev="http://www.w3.org/2001/xml-events" | |
| xmlns:xi="http://www.w3.org/2001/XInclude" | |
| xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" | |
| xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
| xmlns:map="http://www.w3.org/2005/xpath-functions/map" | |
| xmlns:array="http://www.w3.org/2005/xpath-functions/array" | |
| xmlns:math="http://www.w3.org/2005/xpath-functions/math" |
| (function() { | |
| const originalFetch = window.fetch; | |
| window.fetch = function(...args) { | |
| debugger; | |
| return originalFetch.apply(this, args); | |
| }; | |
| })(); |
| WITH RECURSIVE random_chars AS ( | |
| SELECT | |
| 1 AS id, | |
| 1 AS group_id, | |
| substr( | |
| 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', | |
| floor(random() * 62)::int + 1, | |
| 1 | |
| ) AS char |