diff --git a/app/api/BOM/NewBomItem.json b/app/api/BOM/NewBomItem.json index c996a3e..4e0edd5 100644 --- a/app/api/BOM/NewBomItem.json +++ b/app/api/BOM/NewBomItem.json @@ -43,7 +43,7 @@ "module": "api", "action": "send", "options": { - "url": "http://localhost:8080/api/v1.0/boms/wapplerinsert", + "url": "http://vapor.prelub.com/api/v1.0/boms/wapplerinsert", "method": "POST", "schema": [ { @@ -122,7 +122,7 @@ "id": null, "old": "{{$_POST.newbomold}}", "createdate": "2023-11-14T12:51:06Z", - "designspecid": "26259{{$_POST.bomdspecid}}", + "designspecid": "{{$_POST.bomdspecid}}", "createuserid": "-1", "new": "{{$_POST.newbomnew}}", "updateuserid": "-1", diff --git a/public/dmxAppConnect/dmxBootstrap5Toasts/dmxBootstrap5Toasts.js b/public/dmxAppConnect/dmxBootstrap5Toasts/dmxBootstrap5Toasts.js new file mode 100644 index 0000000..7849c16 --- /dev/null +++ b/public/dmxAppConnect/dmxBootstrap5Toasts/dmxBootstrap5Toasts.js @@ -0,0 +1,8 @@ +/*! + DMXzone Bootstrap 5 Toasts + Version: 1.0.1 + (c) 2021 DMXzone.com + @build 2021-06-07 16:21:31 + */ +dmx.bs5toast={defaults:{iconType:"image",position:"top",align:"right","offset-x":15,"offset-y":15,"z-index":1e4,"min-width":240,"max-width":350,animation:!0,autohide:!0,closable:!0,delay:5e3},container:null,setup:function(t){t=Object.assign(dmx.bs5toast.defaults,t),dmx.bs5toast.container||(dmx.bs5toast.container=document.createElement("div"),document.body.appendChild(dmx.bs5toast.container));var e=dmx.bs5toast.container;e.style.removeProperty("top"),e.style.removeProperty("left"),e.style.removeProperty("right"),e.style.removeProperty("bottom"),e.style.removeProperty("max-width"),e.style.setProperty("position","fixed"),e.style.setProperty("z-index",t["z-index"]),e.style.setProperty(t.align,t["offset-x"]+"px"),e.style.setProperty(t.position,t["offset-y"]+"px"),t["max-width"]&&e.style.setProperty("max-width",t["max-width"]+"px")},clear:function(){dmx.bs5toast.container&&(dmx.bs5toast.container.textContent="")},show:function(t){t=Object.assign({},dmx.bs5toast.defaults,t),dmx.bs5toast.container||dmx.bs5toast.setup();var e=dmx.bs5toast.create(t);dmx.bs5toast.container.appendChild(e);var s=new bootstrap.Toast(e,t);e.addEventListener("hidden.bs.toast",function(){dmx.bs5toast.container.removeChild(e)}),s.show()},create:function(t){var e='";var s=document.createElement("div");return s.innerHTML=e,s.firstChild}},dmx.Actions({"toast.setup":function(t){dmx.bs5toast.setup(this.parse(t))},"toast.show":function(t){dmx.bs5toast.show(this.parse(t))},"toast.clear":function(){dmx.bs5toast.clear()}}),dmx.Component("bs5-toasts",{attributes:{position:{type:String,default:"top"},align:{type:String,default:"right"},"offset-x":{type:Number,default:15},"offset-y":{type:Number,default:15},"min-width":{type:Number,default:240},"max-width":{type:Number,default:350},"z-index":{type:Number,default:1e4},delay:{type:Number,default:5e3}},methods:{clear:function(){this.clear()},show:function(t){this.show(t)}},render:function(t){this.update({})},update:function(t){dmx.equal(t,this.props)||dmx.bs5toast.setup(this.props)},clear:function(){dmx.bs5toast.clear()},show:function(t){dmx.bs5toast.show(t)}}); +//# sourceMappingURL=../maps/dmxBootstrap5Toasts.js.map diff --git a/public/dmxAppConnect/dmxSockets/dmxSockets.js b/public/dmxAppConnect/dmxSockets/dmxSockets.js new file mode 100644 index 0000000..9c508e8 --- /dev/null +++ b/public/dmxAppConnect/dmxSockets/dmxSockets.js @@ -0,0 +1,8 @@ +/*! + DMXzone Sockets + Version: 1.0.2 + (c) 2022 Wappler.io + @build 2022-03-29 15:16:24 + */ +dmx.__sockets={},dmx.Socket=function(t,e,n,o){t=t||"/",e=dmx.extend(!0,{transports:["websocket"]},e);var s=dmx.__sockets[t];if(!s){var c="",i=document.querySelector('[src$="socket.io/socket.io.js"]');if(i)c=i.getAttribute("src").replace(/\/?socket\.io\/socket\.io\.js$/,"");s=io(c+t,e),"websocket"==e.transports[0]&&s.on("reconnect_attempt",(function(){s.io.opts.transports=["polling","websocket"]})),dmx.__sockets[t]=s}return n&&Object.keys(n).forEach((function(t){s.on(t,(function(e,s){dmx.Flow.run(n[t],new dmx.DataScope({$param:e},o)).then((function(t){"function"==typeof s&&s(t)}))}))})),s},dmx.Actions({"sockets.emit":function(t){t=this.parse(t),dmx.Socket(t.namespace||"/").emit(t.eventName,t.params)},"sockets.request":function(t){return t=this.parse(t),new Promise((function(e){dmx.Socket(t.namespace||"/").emit(t.eventName,t.params,e)}))}}),dmx.Component("socket",{initialData:{id:null,connected:!1,disconnected:!0},attributes:{namespace:{type:String,default:"/"},options:{type:Object,default:{}}},methods:{emit:function(t,e){this.socket.emit(t,e)},connect:function(){this.socket.connect()},request:function(t,e){var n=this.socket;return new Promise((function(o){n.emit(t,e,o)}))}},events:{connect:Event,disconnect:Event,connect_error:Event,message:Event},message:function(t,e){this.dispatchEvent("message",{},e,t)},trigger:function(t){this.set("id",this.socket.id),this.set("connected",this.socket.connected),this.set("disconnected",this.socket.disconnected),this.dispatchEvent(t)},render:function(t){if(t.textContent)try{this.cfg=(window.Hjson?Hjson:JSON).parse(t.textContent)}catch(e){console.error(e),dmx.debug&&console.debug(t.textContent)}this.onConnect=this.trigger.bind(this,"connect"),this.onDisconnect=this.trigger.bind(this,"disconnect"),this.onConnectError=this.trigger.bind(this,"connect_error"),this.onMessage=this.message.bind(this),this.socket=dmx.Socket(this.props.namespace,this.props.options,this.cfg,this),this.socket.on("connect",this.onConnect),this.socket.on("disconnect",this.onDisconnect),this.socket.on("connect_error",this.onConnectError),this.socket.onAny(this.onMessage)},destroyed:function(){this.socket.off("connect",this.onConnect),this.socket.off("disconnect",this.onDisconnect),this.socket.off("connect_error",this.onConnectError),this.socket.offAny(this.onMessage)}}); +//# sourceMappingURL=../maps/dmxSockets.js.map diff --git a/views/dspec.ejs b/views/dspec.ejs index b6d4593..f390f59 100644 --- a/views/dspec.ejs +++ b/views/dspec.ejs @@ -1,4 +1,4 @@ - + @@ -41,7 +41,7 @@ @@ -71,24 +71,24 @@
- -
- + +
+
- -
- + +
+
- -
+ +
@@ -175,7 +175,7 @@ - + diff --git a/views/index.ejs b/views/index.ejs index 9102cbb..16d76db 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,5 +1,6 @@ - - + + + diff --git a/views/layouts/main.ejs b/views/layouts/main.ejs index 15f1808..97d4516 100644 --- a/views/layouts/main.ejs +++ b/views/layouts/main.ejs @@ -27,6 +27,9 @@ + + +