diff --git a/index.html b/index.html index 2f13abd..32e1031 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -vue-json-pretty
\ No newline at end of file + } \ No newline at end of file diff --git a/static/css/app.19a381ac6dbf41051354.css b/static/css/app.16b5302e07982d99d346.css similarity index 55% rename from static/css/app.19a381ac6dbf41051354.css rename to static/css/app.16b5302e07982d99d346.css index db20130..47c941b 100644 --- a/static/css/app.19a381ac6dbf41051354.css +++ b/static/css/app.16b5302e07982d99d346.css @@ -1 +1 @@ -.vjs-tree-brackets{cursor:pointer}.vjs-tree-brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller-inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-checkbox:after{transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-radio:after{transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller-inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller-inner:after{box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:4px;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transform-origin:center}.vjs-check-controller .vjs-check-controller-inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller-inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller-original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-carets{position:absolute;right:0;cursor:pointer}.vjs-carets svg{transition:transform .3s}.vjs-carets:hover{color:#1890ff}.vjs-carets-close{transform:rotate(-90deg)}.vjs-tree-node{display:flex;position:relative;line-height:20px}.vjs-tree-node.has-carets{padding-left:15px}.vjs-tree-node.has-carets.has-selector,.vjs-tree-node.has-selector{padding-left:30px}.vjs-tree-node.is-highlight,.vjs-tree-node:hover{background-color:#e6f7ff}.vjs-tree-node .vjs-indent{display:flex;position:relative}.vjs-tree-node .vjs-indent-unit{width:1em}.vjs-tree-node .vjs-indent-unit.has-line{border-left:1px dashed #bfcbd9}.vjs-node-index{position:absolute;right:100%;margin-right:4px}.vjs-colon{white-space:pre}.vjs-comment{color:#bfcbd9}.vjs-value{word-break:break-word}.vjs-value-null,.vjs-value-undefined{color:#d55fde}.vjs-value-boolean,.vjs-value-number{color:#1d8ce0}.vjs-value-string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px;text-align:left}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree-node{white-space:nowrap}a[data-v-fdf61b18]{color:#00f}*{box-sizing:border-box}body,html{margin:0}body{font-size:14px;background-color:#f9f9f9}.tabs-header{display:flex;margin-bottom:20px;border-bottom:1px solid #ccc}.tabs-header-item{position:relative;margin-right:20px;padding:8px 0;cursor:pointer;transition:color .3s}.tabs-header-item.is-active,.tabs-header-item:hover{color:#1890ff}.tabs-header-item.is-active:after,.tabs-header-item:hover:after{border-bottom:2px solid #1890ff;content:"";width:100%;position:absolute;left:0;bottom:-1px}.example{padding:0 20px}.example>h1{text-align:center}.example>p{margin:20px 20px 20px 0;color:#8c8c8c}.example-box{display:flex}.example-box .title{text-align:center}.example-box .block{width:50%}.example-box .block:first-child{padding-right:30px}.example-box input,.example-box select,.example-box textarea{padding:3px 8px;border-radius:5px;border:1px solid #bbb;font-family:inherit}.example-box input:focus,.example-box select:focus,.example-box textarea:focus{outline:none;border-color:#1890ff;box-shadow:0 0 3px #1890ff}.example-box textarea{width:100%;height:150px;resize:vertical}.example-box pre{margin:0;font-family:Consolas;overflow:hidden;text-overflow:ellipsis} \ No newline at end of file +.vjs-tree-brackets{cursor:pointer}.vjs-tree-brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller-inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-checkbox:after{transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-radio:after{transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller-inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller-inner:after{box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:4px;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transform-origin:center}.vjs-check-controller .vjs-check-controller-inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller-inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller-original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-carets{position:absolute;right:0;cursor:pointer}.vjs-carets svg{transition:transform .3s}.vjs-carets:hover{color:#1890ff}.vjs-carets-close{transform:rotate(-90deg)}.vjs-tree-node{display:flex;position:relative;line-height:20px}.vjs-tree-node.has-carets{padding-left:15px}.vjs-tree-node.has-carets.has-selector,.vjs-tree-node.has-selector{padding-left:30px}.vjs-tree-node.is-highlight,.vjs-tree-node:hover{background-color:#e6f7ff}.vjs-tree-node .vjs-indent{display:flex;position:relative}.vjs-tree-node .vjs-indent-unit{width:1em}.vjs-tree-node .vjs-indent-unit.has-line{border-left:1px dashed #bfcbd9}.vjs-node-index{position:absolute;right:100%;margin-right:4px;user-select:none}.vjs-colon{white-space:pre}.vjs-comment{color:#bfcbd9}.vjs-value{word-break:break-word}.vjs-value-null,.vjs-value-undefined{color:#d55fde}.vjs-value-boolean,.vjs-value-number{color:#1d8ce0}.vjs-value-string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px;text-align:left}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree-node{white-space:nowrap}a[data-v-fdf61b18]{color:#00f}*{box-sizing:border-box}body,html{margin:0}body{font-size:14px;background-color:#f9f9f9}.tabs-header{display:flex;margin-bottom:20px;border-bottom:1px solid #ccc}.tabs-header-item{position:relative;margin-right:20px;padding:8px 0;cursor:pointer;transition:color .3s}.tabs-header-item.is-active,.tabs-header-item:hover{color:#1890ff}.tabs-header-item.is-active:after,.tabs-header-item:hover:after{border-bottom:2px solid #1890ff;content:"";width:100%;position:absolute;left:0;bottom:-1px}.example{padding:0 20px}.example>h1{text-align:center}.example>p{margin:20px 20px 20px 0;color:#8c8c8c}.example-box{display:flex}.example-box .title{text-align:center}.example-box .block{width:50%}.example-box .block:first-child{padding-right:30px}.example-box input,.example-box select,.example-box textarea{padding:3px 8px;border-radius:5px;border:1px solid #bbb;font-family:inherit}.example-box input:focus,.example-box select:focus,.example-box textarea:focus{outline:none;border-color:#1890ff;box-shadow:0 0 3px #1890ff}.example-box textarea{width:100%;height:150px;resize:vertical}.example-box pre{margin:0;font-family:Consolas;overflow:hidden;text-overflow:ellipsis} \ No newline at end of file diff --git a/static/js/app.54c8b154ec16cd9b6af7.js b/static/js/app.54c8b154ec16cd9b6af7.js new file mode 100644 index 0000000..3aaae5d --- /dev/null +++ b/static/js/app.54c8b154ec16cd9b6af7.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t={479:function(e,t,n){var l=n(117),o=n(252),a=n(854),i=n(612),r=function(e){return(0,o.dD)("data-v-fdf61b18"),e=e(),(0,o.Cn)(),e},u={class:"example-box"},s={class:"block"},c=r((function(){return(0,o._)("h3",null,"JSON:",-1)})),d=r((function(){return(0,o._)("h3",null,"Options:",-1)})),p={class:"options"},h=r((function(){return(0,o._)("label",null,"showIcon",-1)})),f=r((function(){return(0,o._)("label",null,"showLength",-1)})),v=r((function(){return(0,o._)("label",null,"showLine",-1)})),y=r((function(){return(0,o._)("label",null,"showLineNumber",-1)})),b=r((function(){return(0,o._)("label",null,"showDoubleQuotes",-1)})),w=r((function(){return(0,o._)("label",null,"showKeyValueSpace",-1)})),m=r((function(){return(0,o._)("label",null,"collapsedOnClickBrackets",-1)})),g=r((function(){return(0,o._)("label",null,"deep",-1)})),k=[r((function(){return(0,o._)("option",{value:2},"2",-1)})),r((function(){return(0,o._)("option",{value:3},"3",-1)})),r((function(){return(0,o._)("option",{value:4},"4",-1)}))],_=r((function(){return(0,o._)("label",null,"setPathCollapsible",-1)})),C=r((function(){return(0,o._)("h3",null,"Slots:",-1)})),N={class:"options"},O=r((function(){return(0,o._)("label",null,"renderNodeKey",-1)})),S=r((function(){return(0,o._)("label",null,"renderNodeValue",-1)})),V={class:"block"},j=r((function(){return(0,o._)("h3",null,"vue-json-pretty:",-1)})),L={key:0},x=["href"],P=n(885),B=n(982),T=n(942),U=(0,o.aZ)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,o.Wm)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),W=(0,o.aZ)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,o.Fl)((function(){return e.isMultiple?"checkbox":"radio"})),model:(0,o.Fl)({get:function(){return e.checked},set:function(e){return n("update:modelValue",e)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,o.Wm)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(e){return e.stopPropagation()}},[(0,o.Wm)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,o.Wm)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),D=(0,o.aZ)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n="objectStart"===e||"arrayStart"===e;return n||"objectCollapsed"===e||"arrayCollapsed"===e?(0,o.Wm)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,o.Wm)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,o.Wm)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}}),F=n(2);function K(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3?arguments[3]:void 0,o=l||{},a=o.key,i=o.index,r=o.type,u=void 0===r?"content":r,s=o.showComma,c=void 0!==s&&s,d=o.length,p=void 0===d?1:d,h=K(e);if("array"===h){var f=A(e.map((function(e,l,o){return I(e,"".concat(t,"[").concat(l,"]"),n+1,{index:l,showComma:l!==o.length-1,length:p,type:u})})));return[I("[",t,n,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(f,I("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if("object"===h){var v=Object.keys(e),y=A(v.map((function(l,o,a){return I(e[l],/^[a-zA-Z_]\w*$/.test(l)?"".concat(t,".").concat(l):"".concat(t,'["').concat(l,'"]'),n+1,{key:l,showComma:o!==a.length-1,length:p,type:u})})));return[I("{",t,n,{showComma:!1,key:a,index:i,length:v.length,type:"objectStart"})[0]].concat(y,I("}",t,n,{showComma:c,length:v.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:a,index:i,path:t,showComma:c,length:p,type:u}]}function A(e){if("function"==typeof Array.prototype.flat)return e.flat();for(var t=(0,B.Z)(e),n=[];t.length;){var l=t.shift();Array.isArray(l)?t.unshift.apply(t,(0,B.Z)(l)):n.push(l)}return n}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null==e)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if("object"!==(0,F.Z)(e))return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map((function(e){return Z(e,t)}));return t.set(e,n),n}var l={};for(var o in e)l[o]=Z(e[o],t);return t.set(e,l),l}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}function H(e){for(var t=1;t=t||o.length>=n,r=null===(a=e.pathCollapsible)||void 0===a?void 0:a.call(e,o);return"objectStart"!==o.type&&"arrayStart"!==o.type||!i&&!r?l:q(q({},l),{},(0,T.Z)({},o.path,1))}),{})},s=(0,a.qj)({translateY:0,visibleData:null,hiddenPaths:u(e.deep,e.collapsedNodeLength)}),c=(0,o.Fl)((function(){for(var e=null,t=[],n=r.value.length,l=0;lt.length?t.length-l:a;r<0&&(r=0);var u=r+l;s.translateY=r*e.itemHeight,s.visibleData=t.filter((function(e,t){return t>=r&&t=a)&&Object.keys(l.O).every((function(e){return l.O[e](n[u])}))?n.splice(u--,1):(r=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[n,o,a]},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={143:0};l.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,a,i=n[0],r=n[1],u=n[2],s=0;if(i.some((function(t){return 0!==e[t]}))){for(o in r)l.o(r,o)&&(l.m[o]=r[o]);if(u)var c=u(l)}for(t&&t(n);s1&&void 0!==arguments[1]?arguments[1]:"root",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3?arguments[3]:void 0,o=l||{},a=o.key,i=o.index,r=o.type,u=void 0===r?"content":r,s=o.showComma,c=void 0!==s&&s,d=o.length,p=void 0===d?1:d,h=K(e);if("array"===h){var f=A(e.map((function(e,l,o){return I(e,"".concat(t,"[").concat(l,"]"),n+1,{index:l,showComma:l!==o.length-1,length:p,type:u})})));return[I("[",t,n,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(f,I("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if("object"===h){var v=Object.keys(e),y=A(v.map((function(l,o,a){return I(e[l],/^[a-zA-Z_]\w*$/.test(l)?"".concat(t,".").concat(l):"".concat(t,'["').concat(l,'"]'),n+1,{key:l,showComma:o!==a.length-1,length:p,type:u})})));return[I("{",t,n,{showComma:!1,key:a,index:i,length:v.length,type:"objectStart"})[0]].concat(y,I("}",t,n,{showComma:c,length:v.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:a,index:i,path:t,showComma:c,length:p,type:u}]}function A(e){if("function"==typeof Array.prototype.flat)return e.flat();for(var t=(0,B.Z)(e),n=[];t.length;){var l=t.shift();Array.isArray(l)?t.unshift.apply(t,(0,B.Z)(l)):n.push(l)}return n}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null==e)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if("object"!==(0,F.Z)(e))return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map((function(e){return Z(e,t)}));return t.set(e,n),n}var l={};for(var o in e)l[o]=Z(e[o],t);return t.set(e,l),l}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}function H(e){for(var t=1;t=t,i=null===(o=e.pathCollapsible)||void 0===o?void 0:o.call(e,l);return"objectStart"!==l.type&&"arrayStart"!==l.type||!a&&!i?n:q(q({},n),{},(0,T.Z)({},l.path,1))}),{})},s=(0,a.qj)({translateY:0,visibleData:null,hiddenPaths:u(e.deep)}),c=(0,o.Fl)((function(){for(var e=null,t=[],n=r.value.length,l=0;lt.length?t.length-l:a;r<0&&(r=0);var u=r+l;s.translateY=r*e.itemHeight,s.visibleData=t.filter((function(e,t){return t>=r&&t=a)&&Object.keys(l.O).every((function(e){return l.O[e](n[u])}))?n.splice(u--,1):(r=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[n,o,a]},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={143:0};l.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,a,i=n[0],r=n[1],u=n[2],s=0;if(i.some((function(t){return 0!==e[t]}))){for(o in r)l.o(r,o)&&(l.m[o]=r[o]);if(u)var c=u(l)}for(t&&t(n);s