HEX
Server: Apache
System: Linux server1.ariadata.co 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User: nepi (1051)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,show_source,popen,proc_open
Upload Files
File: /home/nepi/www/public/admin/js/settings_interfaces-debugger.89b45a26.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["settings_interfaces-debugger"],{cab6:function(e,t,l){},d8b5:function(e,t,l){"use strict";var i=l("cab6"),n=l.n(i);n.a},dbc8:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"interface-debugger"},[l("v-header",{attrs:{breadcrumb:e.links,"icon-link":"/"+e.currentProjectKey+"/settings/interfaces",settings:""}}),l("label",{staticClass:"type-label"},[e._v("Dummy Label")]),l("div",{staticClass:"interface",style:{width:e.width+"px"}},[l("v-ext-input",{attrs:{id:e.id,name:e.id,type:e.type,length:e.length,readonly:e.readonly,required:e.required,loading:e.loading,options:e.options,"new-item":e.newItem,relation:e.relation,fields:e.fields,values:e.values},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1),l("form",{on:{submit:function(e){e.preventDefault()}}},[l("fieldset",[l("legend",{staticClass:"type-label"},[e._v("Output")]),l("label",{staticClass:"type-label",attrs:{for:"value"}},[e._v("Value")]),l("v-input",{staticClass:"value",attrs:{id:"value",type:"text"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),l("p",{staticClass:"type-note"},[e._v("The value saved into the database")]),l("label",{staticClass:"type-label"},[e._v("Display")]),l("div",{staticClass:"listing"},[l("v-ext-display",{attrs:{"interface-type":e.id,name:e.id,type:e.type,length:e.length,readonly:e.readonly,required:e.required,loading:e.loading,options:e.options,"new-item":e.newItem,relation:e.relation},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1),l("p",{staticClass:"type-note"},[e._v("Appearance on the Items Page (eg: Tabular)")])],1),l("fieldset",[l("legend",{staticClass:"type-label"},[e._v("Options")]),e._l(e.extension.options,(function(t,i){return l("div",{key:i,staticClass:"options"},[l("label",{staticClass:"type-label",attrs:{for:i}},[e._v(e._s(t.name))]),e.options.comment?l("p",{domProps:{innerHTML:e._s(e.$helpers.snarkdown(t.comment))}}):e._e(),l("v-ext-input",{attrs:{id:t.interface,name:i,type:t.type,length:t.length,readonly:t.readonly,required:t.required,loading:t.loading,options:t.options},model:{value:e.options[i],callback:function(t){e.$set(e.options,i,t)},expression:"options[optionID]"}})],1)}))],2),l("fieldset",[l("legend",{staticClass:"type-label"},[e._v("Settings")]),l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"type"}},[e._v("Type")]),l("v-simple-select",{staticClass:"small",attrs:{id:"type"},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.extension.types,(function(t){return l("option",{key:t,domProps:{value:t}},[e._v(" "+e._s(t)+" ")])})),0),l("p",{staticClass:"type-note"},[e._v("Allowed datatypes this interface supports")])],1),l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"length"}},[e._v("Length")]),l("v-input",{staticClass:"length",attrs:{id:"length",type:"number",min:0},model:{value:e.length,callback:function(t){e.length=t},expression:"length"}}),l("p",{staticClass:"type-note"},[e._v("Database length for the column")])],1),l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"collection"}},[e._v("Collection")]),l("v-input",{staticClass:"value",attrs:{id:"collection"},model:{value:e.collection,callback:function(t){e.collection=t},expression:"collection"}}),l("p",{staticClass:"type-note"},[e._v("The parent collection for this field")])],1),l("div",{staticClass:"settings"},[l("v-checkbox",{staticClass:"checkbox",attrs:{id:"readonly",value:"readonly",type:"checkbox"},model:{value:e.readonly,callback:function(t){e.readonly=t},expression:"readonly"}}),l("label",{staticClass:"inline type-label",attrs:{for:"readonly"}},[e._v("Read only")]),l("p",{staticClass:"type-note"},[e._v("Toggle the readonly/disabled state")])],1),l("div",{staticClass:"settings"},[l("v-checkbox",{staticClass:"checkbox",attrs:{id:"required",value:"required",type:"checkbox"},model:{value:e.required,callback:function(t){e.required=t},expression:"required"}}),l("label",{staticClass:"inline type-label",attrs:{for:"required"}},[e._v("Required")]),l("p",{staticClass:"type-note"},[e._v("Toggle the required state")])],1),l("div",{staticClass:"settings"},[l("v-checkbox",{staticClass:"checkbox",attrs:{id:"loading",value:"loading",type:"checkbox"},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}}),l("label",{staticClass:"inline type-label",attrs:{for:"loading"}},[e._v("Loading")]),l("p",{staticClass:"type-note"},[e._v("Toggle the loading state (Beta)")])],1)]),l("fieldset",[l("legend",{staticClass:"type-label"},[e._v("Relation")]),l("div",{staticClass:"relation"},[l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"collection_many"}},[e._v("Collection Many")]),l("v-input",{staticClass:"value",attrs:{id:"collection_many",type:"text"},model:{value:e.relation.collection_many,callback:function(t){e.$set(e.relation,"collection_many",t)},expression:"relation.collection_many"}})],1),l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"field_many"}},[e._v("Field Many")]),l("v-input",{staticClass:"value",attrs:{id:"field_many",type:"text"},model:{value:e.relation.field_many,callback:function(t){e.$set(e.relation,"field_many",t)},expression:"relation.field_many"}})],1),l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"collection_one"}},[e._v("Collection One")]),l("v-input",{staticClass:"value",attrs:{id:"collection_one",type:"text"},model:{value:e.relation.collection_one,callback:function(t){e.$set(e.relation,"collection_one",t)},expression:"relation.collection_one"}})],1),l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"field_one"}},[e._v("Field One")]),l("v-input",{staticClass:"value",attrs:{id:"field_one",type:"text"},model:{value:e.relation.field_one,callback:function(t){e.$set(e.relation,"field_one",t)},expression:"relation.field_one"}})],1),l("div",{staticClass:"settings"},[l("label",{staticClass:"type-label",attrs:{for:"junction_field"}},[e._v("Junction Field")]),l("v-input",{staticClass:"value",attrs:{id:"junction_field",type:"text"},model:{value:e.relation.junction_field,callback:function(t){e.$set(e.relation,"junction_field",t)},expression:"relation.junction_field"}})],1)])]),l("fieldset",[l("legend",{staticClass:"type-label"},[e._v("Misc.")]),l("div",{staticClass:"misc"},[l("v-checkbox",{staticClass:"checkbox",attrs:{id:"new",value:"newItem",type:"checkbox"},model:{value:e.newItem,callback:function(t){e.newItem=t},expression:"newItem"}}),l("label",{staticClass:"inline type-label",attrs:{for:"new"}},[e._v("New item")]),l("p",{staticClass:"type-note"},[e._v("Toggle viewing between New and Edit")])],1)])]),l("v-info-sidebar",{attrs:{wide:""}},[l("span",{staticClass:"type-note"},[e._v("No settings")])])],1)},n=[],a=(l("a4d3"),l("99af"),l("4de4"),l("4160"),l("b0c0"),l("e439"),l("dbb4"),l("b64b"),l("159b"),l("ade3")),s=l("cde4"),o=l("2f62"),r=l("2ef0");function c(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),l.push.apply(l,i)}return l}function d(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?c(Object(l),!0).forEach((function(t){Object(a["a"])(e,t,l[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):c(Object(l)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))}))}return e}var u={name:"InterfaceDebugger",metaInfo:function(){return{title:"Interface Debugger"}},props:{id:{type:String,required:!0}},data:function(){return{type:null,length:null,value:null,readonly:!1,required:!1,loading:!1,options:{},width:2e3,newItem:!1,collection:"members",relation:{field_many:"favorites",field_one:"members",collection_many:"members",collection_one:"movies",junction_field:""},customFields:{name:{collection:"movies",default_value:null,field:"name",group:null,hidden_detail:!1,hidden_browse:!1,id:154,interface:"text-input",length:"100",locked:!1,managed:!0,name:"Name",note:null,options:null,primary_key:!1,readonly:!1,relation:null,required:!1,signed:null,sort:"10",translation:null,type:"VARCHAR",validation:null,width:4},director:{collection:"movies",default_value:null,field:"director",group:null,hidden_detail:!1,hidden_browse:!1,id:161,interface:"text-input",length:"100",locked:!1,managed:!0,name:"Director",note:null,options:null,primary_key:!1,readonly:!1,relation:null,required:!1,signed:null,sort:"9",translation:null,type:"VARCHAR",validation:null,width:4}},customValues:{id:123,name:"Directus The Movie",director:"Ben Spielberg",preview:null}}},computed:d({},Object(o["e"])(["currentProjectKey"]),{links:function(){return[{name:this.$t("settings"),path:"/".concat(this.currentProjectKey,"/settings")},{name:this.$tc("interface",2),path:"/".concat(this.currentProjectKey,"/settings/interfaces")},{name:this.extension.name,path:"/".concat(this.currentProjectKey,"/settings/interfaces/").concat(this.id)}]},extension:function(){return this.$store.state.extensions.interfaces[this.id]},fields:function(){return d({},this.customFields,Object(a["a"])({},this.id,{type:this.type,length:this.length,value:this.value,readonly:this.readonly,required:this.required,loading:this.loading,options:this.options,width:this.width,newItem:this.newItem,relation:this.relation,collection:this.collection}))},values:function(){return d({},this.customValues,Object(a["a"])({},this.id,this.value))}}),watch:{id:function(){this.hydrate()},type:function(e){if(e){var t=this.$store.state.serverInfo.databaseVendor,l=s["b"][this.type][t].default,i=s["a"][t][l];i.length&&(this.length=i.defaultLength)}}},created:function(){this.hydrate()},methods:{hydrate:function(){this.type=this.extension.types[0];var e=Object(r["mapValues"])(this.extension.options,(function(e){return void 0===e.default?null:e.default}));this.options=e}}},p=u,v=(l("d8b5"),l("2877")),y=Object(v["a"])(p,i,n,!1,null,"3670d8eb",null);t["default"]=y.exports}}]);
//# sourceMappingURL=settings_interfaces-debugger.89b45a26.js.map