From 5a60cfc1ce041ad5d1f87acc51516ede816ad893 Mon Sep 17 00:00:00 2001 From: Mark Walet Date: Fri, 27 Jan 2023 17:30:41 +0100 Subject: [PATCH] Add a way to show code preformatted --- dist/js/asset.js | 2 +- resources/js/components/ModalActionResponse.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/js/asset.js b/dist/js/asset.js index 7f25aaa..b9dc98f 100644 --- a/dist/js/asset.js +++ b/dist/js/asset.js @@ -1 +1 @@ -(()=>{"use strict";var e={744:(e,t)=>{t.Z=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o}}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,o),l.exports}(()=>{const e=Vue;var t=["innerHTML"],n=["textContent"],r={class:"flex items-center ml-auto"};const l={name:"ModalActionResponse",props:["data"],methods:{handleClose:function(){this.$emit("close")},handleConfirm:function(){this.$emit("confirm")}}};const a=(0,o(744).Z)(l,[["render",function(o,l,a,c,d,i){var s=(0,e.resolveComponent)("ModalHeader"),u=(0,e.resolveComponent)("ModalContent"),m=(0,e.resolveComponent)("CancelButton"),p=(0,e.resolveComponent)("ModalFooter"),C=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(C,{onModalClose:i.handleClose,tabindex:"-1",role:"dialog",size:"2xl"},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",{onSubmit:l[1]||(l[1]=(0,e.withModifiers)((function(){return i.handleConfirm&&i.handleConfirm.apply(i,arguments)}),["prevent"])),"slot-scope":"props",class:"bg-white rounded-lg shadow-lg overflow-hidden dark:bg-gray-800 space-y-6"},[(0,e.createVNode)(s,{textContent:(0,e.toDisplayString)(a.data.title)},null,8,["textContent"]),(0,e.createVNode)(u,null,{default:(0,e.withCtx)((function(){return[a.data.html?((0,e.openBlock)(),(0,e.createElementBlock)("code",{key:0,innerHTML:a.data.html},null,8,t)):(0,e.createCommentVNode)("",!0),a.data.body?((0,e.openBlock)(),(0,e.createElementBlock)("code",{key:1,textContent:(0,e.toDisplayString)(a.data.body)},null,8,n)):(0,e.createCommentVNode)("",!0)]})),_:1}),(0,e.createVNode)(p,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",r,[(0,e.createVNode)(m,{component:"button",type:"button",dusk:"cancel-action-button",class:"ml-auto mr-3",onClick:l[0]||(l[0]=function(e){return o.$emit("close")})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)(" Cancel ")]})),_:1})])]})),_:1})],32)]})),_:1},8,["onModalClose"])}]]);Nova.booting((function(e){e.component("modal-response",a)}))})()})(); \ No newline at end of file +(()=>{"use strict";var e={744:(e,t)=>{t.Z=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o}}},t={};function o(n){var l=t[n];if(void 0!==l)return l.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}(()=>{const e=Vue;var t=["innerHTML"],n=["textContent"],l=["textContent"],r={class:"flex items-center ml-auto"};const a={name:"ModalActionResponse",props:["data"],methods:{handleClose:function(){this.$emit("close")},handleConfirm:function(){this.$emit("confirm")}}};const c=(0,o(744).Z)(a,[["render",function(o,a,c,d,i,s){var u=(0,e.resolveComponent)("ModalHeader"),m=(0,e.resolveComponent)("ModalContent"),p=(0,e.resolveComponent)("CancelButton"),C=(0,e.resolveComponent)("ModalFooter"),f=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(f,{onModalClose:s.handleClose,tabindex:"-1",role:"dialog",size:"2xl"},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",{onSubmit:a[1]||(a[1]=(0,e.withModifiers)((function(){return s.handleConfirm&&s.handleConfirm.apply(s,arguments)}),["prevent"])),"slot-scope":"props",class:"bg-white rounded-lg shadow-lg overflow-hidden dark:bg-gray-800 space-y-6"},[(0,e.createVNode)(u,{textContent:(0,e.toDisplayString)(c.data.title)},null,8,["textContent"]),(0,e.createVNode)(m,null,{default:(0,e.withCtx)((function(){return[c.data.html?((0,e.openBlock)(),(0,e.createElementBlock)("p",{key:0,innerHTML:c.data.html},null,8,t)):(0,e.createCommentVNode)("",!0),c.data.body?((0,e.openBlock)(),(0,e.createElementBlock)("div",{key:1,textContent:(0,e.toDisplayString)(c.data.body)},null,8,n)):(0,e.createCommentVNode)("",!0),c.data.code?((0,e.openBlock)(),(0,e.createElementBlock)("pre",{key:2,textContent:(0,e.toDisplayString)(c.data.code)},null,8,l)):(0,e.createCommentVNode)("",!0)]})),_:1}),(0,e.createVNode)(C,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",r,[(0,e.createVNode)(p,{component:"button",type:"button",dusk:"cancel-action-button",class:"ml-auto mr-3",onClick:a[0]||(a[0]=function(e){return o.$emit("close")})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)(" Cancel ")]})),_:1})])]})),_:1})],32)]})),_:1},8,["onModalClose"])}]]);Nova.booting((function(e){e.component("modal-response",c)}))})()})(); \ No newline at end of file diff --git a/resources/js/components/ModalActionResponse.vue b/resources/js/components/ModalActionResponse.vue index 0f1f110..73f2eaf 100644 --- a/resources/js/components/ModalActionResponse.vue +++ b/resources/js/components/ModalActionResponse.vue @@ -10,8 +10,9 @@ > - - +

+

+