- Add comprehensive documentation in botbook/ with 12 chapters - Add botapp/ Tauri desktop application - Add botdevice/ IoT device support - Add botlib/ shared library crate - Add botmodels/ Python ML models service - Add botplugin/ browser extension - Add botserver/ reorganized server code - Add bottemplates/ bot templates - Add bottest/ integration tests - Add botui/ web UI server - Add CI/CD workflows in .forgejo/workflows/ - Add AGENTS.md and PROD.md documentation - Add dependency management scripts (DEPENDENCIES.sh/ps1) - Remove legacy src/ structure and migrations - Clean up temporary and backup files
12 lines
No EOL
360 B
JavaScript
12 lines
No EOL
360 B
JavaScript
htmx.defineExtension('json-enc', {
|
|
onEvent: function (name, evt) {
|
|
if (name === "htmx:configRequest") {
|
|
evt.detail.headers['Content-Type'] = "application/json";
|
|
}
|
|
},
|
|
|
|
encodeParameters : function(xhr, parameters, elt) {
|
|
xhr.overrideMimeType('text/json');
|
|
return (JSON.stringify(parameters));
|
|
}
|
|
}); |