Home
last modified time | relevance | path

Searched refs:JSON (Results 176 – 200 of 436) sorted by relevance

12345678910>>...18

/plugin/amcharts/assets/amcharts/plugins/dataloader/
H A Ddataloader.js575 if ( undefined !== JSON )
576 return JSON.parse( response );
H A Dreadme.md8 By default all amCharts libraries accept data in JSON format. It needs to be
12 from external data data sources in CSV and JSON formats.
84 If the "format" is omitted, the plugin will assume JSON.
/plugin/judge/
H A Daction.php236 $json = new JSON();
/plugin/stackedit/
H A Dstackedit.min.js1 …name,contentText:i.text,contentProperties:!i.yamlProperties&&i.properties?JSON.stringify(i.propert…
/plugin/yuriigantt/
H A DREADME.md68 Info about gantt database is stored in page within special pattern in JSON format.
/plugin/txt2tags/
H A Dtoolbar.php229 $json = new JSON();
/plugin/tablelayout/script/
H A Dtablelayout_functions.js119 layout = JSON.parse(json);
/plugin/combo/action/
H A Dstaticresource.php135 $event->data['mime'] = Mime::JSON;
/plugin/diagramsnet/lib/js/diagramly/
H A DMenus.js1062 var obj = JSON.parse(input.value);
1065 Graph.compress(JSON.stringify(obj));
1083 (value != null) ? JSON.stringify(JSON.parse(value), null, 2) : '', function(newValue)
1091 var obj = JSON.parse(newValue);
1093 localStorage.setItem(Editor.configurationKey, JSON.stringify(obj));
1247 JSON.stringify(editorUi.customLayoutConfig, null, 2),
1254 var layoutList = JSON.parse(newValue);
1797 dlg.textarea.value = JSON.stringify(editorUi.diffPages(
1815 var patch = JSON.parse(newValue);
1838 dlg.textarea.value = JSON.stringify(editorUi.diffPages(
[all …]
/plugin/jirainfo/
H A Dscript.js287 function (data) { self.fillPopBody(JSON.parse(data)); }
/plugin/authgooglesheets/vendor/guzzlehttp/guzzle/
H A DREADME.md12 uploads, streaming large downloads, using HTTP cookies, uploading JSON data,
H A DCHANGELOG.md561 * Added a `json` request option to easily serialize JSON payloads.
562 * Added a `GuzzleHttp\json_decode()` wrapper to safely parse JSON.
648 * JSON response parsing now properly walks additionalProperties
956 JSON is an array
957 * Added support for nested renaming of JSON models (rename sentAs to name)
1003 * Bug: Adding required content-type when JSON request visitor adds JSON to a command
1072 * Now based on JSON schema
1074 * Support for JSON and XML input and output models
1107 * Bug: Fixed config file aliases for JSON includes
1131 '_default' with a default JSON configuration file.
[all …]
/plugin/batchedit/
H A Dinterface.js80 // a JSON-encoded array string. This avoids problems for huge replacement sets
84 jQuery('input[name=apply]').val(JSON.stringify(jQuery('.be-match input:checked').map(function() {
/plugin/findologicxmlexport/vendor/jms/serializer/
H A DCHANGELOG.md65 - BC Break on deserialize with non existing properties in JSON payload? [\#1011](https://github.com…
139 - Revert fix for \#43 \(JSON representation of empty objects\) [\#942](https://github.com/schmittjo…
166 - JSON/YAML encoding changes [\#617](https://github.com/schmittjoh/serializer/issues/617)
234 - Mapping request payload works for JSON but not for XML [\#820](https://github.com/schmittjoh/seri…
454 - Array serialized as JSON object [\#706](https://github.com/schmittjoh/serializer/issues/706)
504 - JSON recursion when first object in root list is empty [\#61](https://github.com/schmittjoh/seria…
556 - How to set JSON serialization options? [\#535](https://github.com/schmittjoh/serializer/issues/53…
646 - Support JSON PATCH for updating object graph [\#231](https://github.com/schmittjoh/serializer/iss…
739 - Using serializer for JSON serialising [\#223](https://github.com/schmittjoh/serializer/issues/223)
846 - Failing to deserealize JSON string [\#402](https://github.com/schmittjoh/serializer/issues/402)
[all …]
/plugin/dtable/
H A Dhelper.php21 $json = new JSON();
/plugin/syntaxhighlighter3/sxh3/build/
H A Dtasks.coffee61 variables.version = JSON.parse(readFile path.resolve baseDir, '../package.json').version
/plugin/metaeditor/
H A Djstree.js1355 …n' : 'core', 'id' : 'core_04', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : …
1365 t = ($.isArray(s) || $.isPlainObject(s)) ? JSON.parse(JSON.stringify(s)) : s;
1372 …n' : 'core', 'id' : 'core_05', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : …
1385 …n' : 'core', 'id' : 'core_06', 'reason' : 'Could not load node', 'data' : JSON.stringify({ 'id' : …
1478 data = JSON.parse(data);
6549 …rch', 'id' : 'search_01', 'reason' : 'Could not load search parents', 'data' : JSON.stringify(a) };
6905 $.vakata.storage.set(this.settings.state.key, JSON.stringify(st));
6914 if(!!k) { try { k = JSON.parse(k); } catch(ex) { return false; } }
7378 if(this.getAttribute(i) && JSON.parse(this.getAttribute(i))) {
7379 c[i] = JSON.parse(this.getAttribute(i));
[all …]
/plugin/amcharts/assets/amcharts/plugins/export/
H A Dexport.min.js1JSON.parse(d.state);d.target.set(e),d.target instanceof fabric.Group&&c.drawing.handler.change({co…
H A Dexport.js119 var state = JSON.parse( item.state );
148 var state = JSON.parse( item.state );
250 state = JSON.parse( current.recentState ).cfg;
309 state = JSON.stringify( _this.deepMerge( current.saveState().originalState, {
459 JSON: { class in AmCharts._this.defaults.formats
1271 state = JSON.stringify( state );
1293 var recentState = JSON.parse( item.recentState );
1298 state = JSON.stringify( state );
1313 var state = JSON.stringify( item.saveState().originalState );
1982 var data = JSON.stringify( cfg.data, undefined, "\t" );
/plugin/ckgdoku/ckeditor/
H A Dconfig.js1 ….doku_url+"lib/exe/ajax.php",e,function(l,k){if(k=="success"){d.wrap_lang=JSON.parse(l)}else{alert…
/plugin/aceeditor/
H A DNEWS43 * PHP-JSON extension not required
/plugin/spatialhelper/
H A Daction.php67 ['format' => 'JSON']
196 * 'format'=> HTML | JSON
197 * @throws JsonException if anything goes wrong with JSON encoding
220 case 'JSON':
235 * @throws JsonException if anything goes wrong with JSON encoding
/plugin/shell/
H A DP0wnyShell.js382 const responseJson = JSON.parse(xhr.responseText);
/plugin/combo/resources/library/combo/
H A Dcombo.min.js4 </span>`):`<a href="${t}" title="${this.getDescription()}" data-bs-toggle="tooltip" style="text-decoration:none" target="_blank">${this.getLabel()}</a>`}setType(t){return this.type=t,this}setLabel(t){return this.label=t,this}setUrl(t){return this.url=t,this}addValue(t,e){return this.values.push(t),this.defaultValues.push(e),this}getType(){return this.type}getLabel(){return this.label===void 0?this.getName().split(/[_\-]/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):this.label}getUrl(){return this.url}getName(){return this.name}getDescription(){return this.description}getTab(){return this.tab}static createFromJson(t,e=null){t.hasOwnProperty("name")||E.getLogger().error("To create a form meta field, the name property is mandatory.");let s=t.name,l=w.createFromName(s);e!=null&&l.setParent(e);let r,n;for(let o in t){if(!t.hasOwnProperty(o))continue;let a=t[o];switch(o){case"name":continue;case"label":l.setLabel(a);continue;case"tab":l.setTab(a);continue;case"type":l.setType(a);continue;case"mutable":l.setMutable(a);continue;case"description":l.setDescription(a);continue;case"url":l.setUrl(a);continue;case"value":r=a;continue;case"default":n=a;continue;case"domain-values":l.setDomainValues(a);continue;case"multiple":l.setMultiple(a);continue;case"width":l.setControlWidth(a);continue;case"children":let p=a;for(let b in p){if(!p.hasOwnProperty(b))continue;let d=w.createFromJson(p[b],l);l.addChild(d)}continue;default:E.getLogger().error(`The property (${o}) of the form (${s}) is unknown`)}}return Array.isArray(r)?r.forEach((o,a)=>{let p=n[a];p!==void 0?l.addValue(o,p):l.addValue(o,"")}):l.addValue(r,n),l}setMultiple(t){return this.multiple=t,this}setParent(t){return this.parent=t,this}static createFromName(t){return new w(t)}isMutable(){return this.mutable}setTab(t){return this.tab=t,this}setMutable(t){return this.mutable=H.toBoolean(t),this}setDescription(t){return this.description=t,this}getDefaultValue(){return this.defaultValues[0]}getValue(){return this.values[0]}getDomainValues(){return this.domainValues}setDomainValues(t){if(!Array.isArray(t)){console.error(`The domains values should be an array. (${t}) is not an array`);return}return this.domainValues=t,this}setControlWidth(t){return this.width=t,this}getControlWidth(){return this.width===void 0&&this.parent!==void 0?12/this.parent.getChildren().length:this.width}getValues(){return this.values}getDefaultValues(){return this.defaultValues}getChildren(){return Object.values(this.children)}addChild(t){return this.children[t.getName()]=t,this}toHtmlLabel(t,e){let s=this.getLabelAnchor(),l;return this.getType()===w.BOOLEAN?l="form-check-label":l="col-form-label",typeof e<"u"&&(l=`${e} ${l}`),`<label for="${t}" class="${l}">${s}</label>`}toHtmlControl(t,e=null,s=null){let l=this.getType(),r=this.isMutable(),n=this.getDomainValues(),o,a;if(n!==void 0){a="select";let p="";s!==void 0&&(p=` (${s})`);let b="";this.getMultiple()&&(b="multiple"),a=`<select class="form-select" aria-label="${this.getLabel()}" name="${this.getName()}" id="${t}" ${b}>`;let d="";e===null&&(d="selected"),a+=`<option value="" ${d}>Default${p}</option>`;for(let h of n)h===e?d="selected":d="",a+=`<option value="${h}" ${d}>${h}</option>`;return a+="</select>",a}else{let p="No value";r&&(p=`Enter a ${this.getLabel()}`),s!=null&&(Q.isString(s)?p=$.toEntities(s):p=s);let b=`placeholder="${p}"`,d="",h,P=this.getName();r!==void 0&&!r?o="disabled":o="";let C="input",v="form-control",m="",A=3;switch(l){case w.DATE_TIME:h="datetime-local",e!==null?(e=e.slice(0,19),d=`value="${e}"`):!r&&s!==null&&(s=s.slice(0,19),d=`value="${s}"`),b="";break;case w.PARAGRAPH:C="textarea",e!==null&&(e=$.toEntities(e),d=`${e}`);break;case w.JSON:C="textarea",e!==null&&(typeof e=="object"&&(e=JSON.stringify(e,null,2)),e=$.toEntities(e),d=`${e}`),A=15;break;case w.BOOLEAN:h="checkbox",v="form-check-input",s!==null?(d=`value="${s}"`,e===s&&(m="checked")):e==="on"&&(m="checked"),b="";break;default:h="text",e!=null&&(d=`value="${e}"`)}switch(C){case"textarea":a=`<textarea id="${t}" name="${P}" class="${v}" rows="${A}" ${b} ${o}>${d}</textarea>`;break;default:case"input":a=`<input type="${h}" name="${P}" class="${v}" id="${t}" ${b} ${d} ${m} ${o}/>`;break}return a}}toJavascriptObject(){return{name:this.getName(),label:this.getLabel(),type:this.getType(),description:this.getDescription(),tab:this.getTab(),mutable:this.isMutable(),value:this.getValue(),default:this.getDefaultValue(),url:this.getUrl()}}getMultiple(){return this.multiple}};let T=w;i(T,"TABULAR_TYPE","tabular"),i(T,"DATE_TIME","datetime"),i(T,"PARAGRAPH","paragraph"),i(T,"BOOLEAN","boolean"),i(T,"JSON","json");class I{constructor(t){i(this,"name");i(this,"width");i(this,"label");i(this,"widthField");i(this,"widthLabel");this.name=t}getName(){return this.name}setWidth(t){return this.width=t,this}getWidth(){return this.width}static createFromJson(t){t.hasOwnProperty("name")||E.getLogger().error("A name property is mandatory to create a tab and was not found in the json provided");let e=t.name,s=new I(e);for(let l in t){if(!t.hasOwnProperty(l))continue;let r=t[l];switch(l){case"name":continue;case"label":s.setLabel(r);continue;case"width-field":s.setWidthField(r);continue;case"width-label":s.setWidthLabel(r);continue;default:E.getLogger().error(`The property (${l}) of the tab (${e}) is unknown`)}}return s}setLabel(t){return this.label=t,this}getLabel(){return this.label===void 0?this.name:this.label}setWidthField(t){return this.widthField=t,this}setWidthLabel(t){return this.widthLabel=t,this}getLabelWidth(){return this.widthLabel===void 0?3:this.widthLabel}getFieldWidth(){return this.widthField===void 0?12-this.getLabelWidth():this.widthField}static createFromName(t){return new I(t)}}class B{constructor(t){i(this,"formFields",{});i(this,"tabs",{});i(this,"width",8);i(this,"name");i(this,"label");i(this,"url");i(this,"getTabPaneId");i(this,"getTabNavId");i(this,"getControlId");if(t==null)throw new Error("The if of the form should not be null");this.name=t,this.getControlId=function(e){let s=$.toHtmlId(e);return`${t}-control-${s}`},this.getTabNavId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-nav-${s}`},this.getTabPaneId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-pane-${s}`}}getLabel(){return this.label}getUrl(){return this.url}getId(){return this.name}getControlWidth(){return this.width}getLabelWidth(){return 12-this.getControlWidth()}static createFromJson(t,e){let s=B.createFromId(t);for(let l in e){if(!e.hasOwnProperty(l))continue;let r=e[l];switch(l){case"fields":let n=r;for(let a in n)n.hasOwnProperty(a)&&s.addFormField(T.createFromJson(n[a]));continue;case"tabs":let o=r;for(let a in o)o.hasOwnProperty(a)&&s.addTab(I.createFromJson(o[a]));break;case"width":s.setControlWidth(r);break;case"label":s.setLabel(r);break;case"url":s.setUrl(r);break;default:E.getLogger().error(`The form property (${l}) is unknown`)}}return s}static createFromId(t){return new B(t)}addFormField(t){return this.formFields[t.getName()]=t,this.tabs.hasOwnProperty(t.getTab())||(this.tabs[t.getTab()]=I.createFromName(t.getTab())),this}getFields(){return Object.values(this.formFields)}getTabs(){return Object.values(this.tabs)}addTab(t){this.tabs[t.getName()]=t}valueOf(){return this.getId()}getFieldsForTab(t){return this.getFields().filter(e=>e.getTab()===t)}toHtmlElement(){let t=this.getId(),e='<ul class="nav nav-tabs mb-3">',s,l,r=this.getTabs(),n=r[0];for(let h of r){Object.is(h,n)?(s="active",l="true"):(s="",l="false");let P=h.getLabel(),C=this.getTabPaneId(h),v=this.getTabNavId(h);e+=`
30 `;let l=this.getDataNamespace();return this.popoverRootHtmlElement.setAttribute(`data${l}-toggle`,"popover"),this.popoverRootHtmlElement.setAttribute(`data${l}-trigger`,this.trigger),this.popoverRootHtmlElement.setAttribute(`data${l}-placement`,String(this.placement)),this.popoverRootHtmlElement.setAttribute(`data${l}-html`,String(this.isHtml)),this.popoverRootHtmlElement.setAttribute(`data${l}-container`,"body"),this.popoverRootHtmlElement.setAttribute(`data${l}-content`,this.content),this.bootStrapPopOver=new c.Popover(this.popoverRootHtmlElement,e),this.bootStrapPopOver}getDataNamespace(){let t="-bs",e=5;if("bootstrap"in window){let s=window.bootstrap;if(typeof s.Popover.VERSION<"u")return e=parseInt(s.Popover.VERSION.substring(0,1),10),e<5?"":t}if("jQuery"in window){let l=window.jQuery.fn.tooltip.constructor.VERSION;if(typeof l<"u")return e=parseInt(l.substring(0,1),10),e<5?"":t}return t}setTextContent(t){return this.content=t,this.isHtml=!1,this}setHtmlContent(t){return this.content=t,this.isHtml=!0,this}setEnableDismissOnNextClick(){return this.dismissOnNextClick=!0,this}setDisableDismissOnNextClick(){return this.dismissOnNextClick=!1,this}setTitle(t){return this.title=t,this}}class X{static hasWindowGuard(t){if(!this.hasWindow(t))throw Error("The element has no window")}static hasWindow(t){return!(!t||!t.ownerDocument||!t.ownerDocument.defaultView)}static getWindow(t){return this.hasWindowGuard(t),t.ownerDocument.defaultView}static formDataToObject(t){let e={};for(let s of t){let l=s[0],r=s[1];if(e.hasOwnProperty(l)){let n=e[l];Array.isArray(n)?e[l].push(r):e[l]=[n,r]}else e[l]=r}return e}}class z{constructor(t){i(this,"method","GET");i(this,"url");this.url=t}async getJson(){let t=await this.getResponse();return t.status!==200?{}:t.json()}async getText(){let t=await this.getResponse();return t.status!==200?"":t.text()}setMethod(t){return this.method=t.toUpperCase(),this}sendFormDataAsJson(t){return fetch(this.url.toString(),{method:this.method,body:JSON.stringify(X.formDataToObject(t)),headers:{"Content-Type":"application/json"}})}async getResponse(){let t=await fetch(this.url.toString(),{method:this.method});if(t.status!==200){let e=R.createTemporary();e.addBody(`Bad request: the call ${this.url} to the backend sends back the following exit code`+t.status),e.show()}return t}}const f=class{constructor(t){i(this,"url");let e=window.DOKU_BASE,s=window.JSINFO;switch(t){case f.AJAX:this.url=new URL(e+"lib/exe/ajax.php",window.location.href),this.url.searchParams.set("id",s.id);break;case f.RUNNER:this.url=new URL(e+"lib/exe/taskrunner.php",window.location.href),this.url.searchParams.set("id",s.id);break;case f.FETCH:this.url=new URL(e+"lib/exe/fetch.php",window.location.href);break;case f.EDIT:this.url=new URL(e+"doku.php",window.location.href),this.url.searchParams.set("do","edit"),this.url.searchParams.set("id",s.id);break;case f.SHOW:this.url=new URL(e+"doku.php",window.location.href),this.url.searchParams.set("id",s.id);break;default:throw new Error(`The type ${t} is unknown`)}}setProperty(t,e){return this.url.searchParams.set(t,e),this}toString(){return this.url.toString()}getCall(){return this.url.searchParams.get(f.CALL)}toRequest(){return new z(this.url)}static createAjax(t){return new f(this.AJAX).setProperty(f.CALL,t)}static createRunner(){return new f(this.RUNNER)}static createFetch(t,e){let s=new f(this.FETCH);if(typeof t>"u")throw new Error("The media id is mandatory");return s.setProperty("media",t),typeof e<"u"&&s.setProperty("drive",e),s}static createEdit(t){let e=new f(this.EDIT);return typeof t<"u"&&e.setProperty("id",t),e}};let y=f;i(y,"AJAX","AJAX"),i(y,"RUNNER","RUNNER"),i(y,"CALL","call"),i(y,"EDIT","edit"),i(y,"SHOW","show"),i(y,"FETCH","fetch");class V{constructor(t){i(this,"date");this.date=t}static createFromIso(t){let e=new Date(t);return new V(e)}toSqlTimestampString(){return`${this.date.getFullYear()}-${(this.date.getMonth()+1).toString().padStart(2,"0")}-${this.date.getDate().toString().padStart(2,"0")} ${this.date.getHours().toString().padStart(2,"0")}:${this.date.getMinutes().toString().padStart(2,"0")}:${this.date.getSeconds().toString().padStart(2,"0")}`}}u.Date=V,u.DokuUrl=y,u.Form=B,u.Html=$,u.Modal=R,u.Popover=x,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
/plugin/findologicxmlexport/vendor/hoa/compiler/
H A DREADME.md80 As an example, we will take the *simplified* grammar of the [JSON
163 and we will parse a JSON string. If the parsing succeed, it will produce an AST

12345678910>>...18