From 1623d5290cb8cc45ba9023d88afa123eca45c172 Mon Sep 17 00:00:00 2001 From: vwh Date: Thu, 11 Jul 2024 01:52:37 +0300 Subject: [PATCH] Updates --- assets/index-Bj9HezKS.css | 1 - assets/{index-B7yFDDqw.js => index-CwVh9Bv5.js} | 2 +- assets/index-DI-ToNvZ.css | 1 + index.html | 4 ++-- sw.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 assets/index-Bj9HezKS.css rename assets/{index-B7yFDDqw.js => index-CwVh9Bv5.js} (98%) create mode 100644 assets/index-DI-ToNvZ.css diff --git a/assets/index-Bj9HezKS.css b/assets/index-Bj9HezKS.css deleted file mode 100644 index ffab785..0000000 --- a/assets/index-Bj9HezKS.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 87%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 80%;--input: 240 5.9% 80%;--link: 198, 100%, 16%;--ring: 240 5.9% 10%;--radius: .5rem}.dark{--background: 0 0% 5.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--link: 198, 56%, 40%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-2{bottom:.5rem}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.z-50{z-index:50}.z-\[100\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-\[200px\]{max-width:200px}.max-w-\[250px\]{max-width:250px}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-20{padding:5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[6px\]{padding:6px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-link{color:hsl(var(--link))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}body{font-family:Fira Mono,monospace}#logo{filter:brightness(0) saturate(100%) invert(15%) sepia(80%) saturate(1534%) hue-rotate(172deg) brightness(95%) contrast(104%)}[class=dark] #logo{filter:brightness(0) saturate(100%) invert(46%) sepia(10%) saturate(3150%) hue-rotate(154deg) brightness(87%) contrast(82%)}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.dark\:scale-100:is(.dark *){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:block{display:block}.sm\:hidden{display:none}}@media (min-width: 768px){.md\:w-\[300px\]{width:300px}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-B7yFDDqw.js b/assets/index-CwVh9Bv5.js similarity index 98% rename from assets/index-B7yFDDqw.js rename to assets/index-CwVh9Bv5.js index 19233c5..76d0243 100644 --- a/assets/index-B7yFDDqw.js +++ b/assets/index-CwVh9Bv5.js @@ -184,4 +184,4 @@ Error generating stack: `+i.message+` In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zb(e){if(Array.isArray(e))return Xu(e)}function Lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fp(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,zp(n)];if(e.sizen)return[!1,zp(n)]}return[!0,null]}function dr(e){return e!=null}function a_(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(f){var u=vy(f,n),p=Pi(u,1),h=p[0],w=gy(f,r,o),b=Pi(w,1),E=b[0],x=a?a(f):null;return h&&E&&!x})}function ys(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function bl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Hp(e){e.preventDefault()}function u_(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function c_(e){return e.indexOf("Edge/")!==-1}function f_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return u_(e)||c_(e)}function nn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R_(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var df=y.forwardRef(function(e,t){var n=e.children,r=ws(e,g_),o=Ey(r),i=o.open,s=ws(o,y_);return y.useImperativeHandle(t,function(){return{open:i}},[i]),Kt.createElement(y.Fragment,null,n(Me(Me({},s),{},{open:i})))});df.displayName="Dropzone";var Sy={disabled:!1,getFilesFromEvent:$b,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};df.defaultProps=Sy;df.propTypes={children:be.func,accept:be.objectOf(be.arrayOf(be.string)),multiple:be.bool,preventDropOnDocument:be.bool,noClick:be.bool,noKeyboard:be.bool,noDrag:be.bool,noDragEventsBubbling:be.bool,minSize:be.number,maxSize:be.number,maxFiles:be.number,disabled:be.bool,getFilesFromEvent:be.func,onFileDialogCancel:be.func,onFileDialogOpen:be.func,useFsAccessApi:be.bool,autoFocus:be.bool,onDragEnter:be.func,onDragLeave:be.func,onDragOver:be.func,onDrop:be.func,onDropAccepted:be.func,onDropRejected:be.func,onError:be.func,validator:be.func};var ec={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ey(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Me(Me({},Sy),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,f=t.maxFiles,u=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,w=t.onDrop,b=t.onDropAccepted,E=t.onDropRejected,x=t.onFileDialogCancel,P=t.onFileDialogOpen,v=t.useFsAccessApi,m=t.autoFocus,S=t.preventDropOnDocument,k=t.noClick,R=t.noKeyboard,A=t.noDrag,T=t.noDragEventsBubbling,j=t.onError,G=t.validator,F=y.useMemo(function(){return m_(n)},[n]),V=y.useMemo(function(){return p_(n)},[n]),U=y.useMemo(function(){return typeof P=="function"?P:Wp},[P]),H=y.useMemo(function(){return typeof x=="function"?x:Wp},[x]),B=y.useRef(null),Q=y.useRef(null),se=y.useReducer(N_,ec),J=Ha(se,2),I=J[0],z=J[1],ee=I.isFocused,oe=I.isFileDialogActive,ie=y.useRef(typeof window<"u"&&window.isSecureContext&&v&&d_()),Ve=function(){!ie.current&&oe&&setTimeout(function(){if(Q.current){var te=Q.current.files;te.length||(z({type:"closeDialog"}),H())}},300)};y.useEffect(function(){return window.addEventListener("focus",Ve,!1),function(){window.removeEventListener("focus",Ve,!1)}},[Q,oe,H,ie]);var he=y.useRef([]),ot=function(te){B.current&&B.current.contains(te.target)||(te.preventDefault(),he.current=[])};y.useEffect(function(){return S&&(document.addEventListener("dragover",Hp,!1),document.addEventListener("drop",ot,!1)),function(){S&&(document.removeEventListener("dragover",Hp),document.removeEventListener("drop",ot))}},[B,S]),y.useEffect(function(){return!r&&m&&B.current&&B.current.focus(),function(){}},[B,m,r]);var Ee=y.useCallback(function(W){j?j(W):console.error(W)},[j]),Y=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W),he.current=[].concat(S_(he.current),[W.target]),bl(W)&&Promise.resolve(o(W)).then(function(te){if(!(ys(W)&&!T)){var Ae=te.length,Fe=Ae>0&&a_({files:te,accept:F,minSize:s,maxSize:i,multiple:a,maxFiles:f,validator:G}),et=Ae>0&&!Fe;z({isDragAccept:Fe,isDragReject:et,isDragActive:!0,type:"setDraggedFiles"}),u&&u(W)}}).catch(function(te){return Ee(te)})},[o,u,Ee,T,F,s,i,a,f,G]),we=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W);var te=bl(W);if(te&&W.dataTransfer)try{W.dataTransfer.dropEffect="copy"}catch{}return te&&h&&h(W),!1},[h,T]),Le=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W);var te=he.current.filter(function(Fe){return B.current&&B.current.contains(Fe)}),Ae=te.indexOf(W.target);Ae!==-1&&te.splice(Ae,1),he.current=te,!(te.length>0)&&(z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bl(W)&&p&&p(W))},[B,p,T]),ve=y.useCallback(function(W,te){var Ae=[],Fe=[];W.forEach(function(et){var Mt=vy(et,F),St=Ha(Mt,2),Nr=St[0],Tr=St[1],Or=gy(et,s,i),Ar=Ha(Or,2),Ro=Ar[0],No=Ar[1],Mr=G?G(et):null;if(Nr&&Ro&&!Mr)Ae.push(et);else{var le=[Tr,No];Mr&&(le=le.concat(Mr)),Fe.push({file:et,errors:le.filter(function(zi){return zi})})}}),(!a&&Ae.length>1||a&&f>=1&&Ae.length>f)&&(Ae.forEach(function(et){Fe.push({file:et,errors:[s_]})}),Ae.splice(0)),z({acceptedFiles:Ae,fileRejections:Fe,type:"setFiles"}),w&&w(Ae,Fe,te),Fe.length>0&&E&&E(Fe,te),Ae.length>0&&b&&b(Ae,te)},[z,a,F,s,i,f,w,b,E,G]),me=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W),he.current=[],bl(W)&&Promise.resolve(o(W)).then(function(te){ys(W)&&!T||ve(te,W)}).catch(function(te){return Ee(te)}),z({type:"reset"})},[o,ve,Ee,T]),de=y.useCallback(function(){if(ie.current){z({type:"openDialog"}),U();var W={multiple:a,types:V};window.showOpenFilePicker(W).then(function(te){return o(te)}).then(function(te){ve(te,null),z({type:"closeDialog"})}).catch(function(te){h_(te)?(H(te),z({type:"closeDialog"})):v_(te)?(ie.current=!1,Q.current?(Q.current.value=null,Q.current.click()):Ee(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):Ee(te)});return}Q.current&&(z({type:"openDialog"}),U(),Q.current.value=null,Q.current.click())},[z,U,H,v,ve,Ee,V,a]),K=y.useCallback(function(W){!B.current||!B.current.isEqualNode(W.target)||(W.key===" "||W.key==="Enter"||W.keyCode===32||W.keyCode===13)&&(W.preventDefault(),de())},[B,de]),ce=y.useCallback(function(){z({type:"focus"})},[]),At=y.useCallback(function(){z({type:"blur"})},[]),Qe=y.useCallback(function(){k||(f_()?setTimeout(de,0):de())},[k,de]),Ye=function(te){return r?null:te},Nn=function(te){return R?null:Ye(te)},xe=function(te){return A?null:Ye(te)},Tn=function(te){T&&te.stopPropagation()},Fi=y.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,Ae=te===void 0?"ref":te,Fe=W.role,et=W.onKeyDown,Mt=W.onFocus,St=W.onBlur,Nr=W.onClick,Tr=W.onDragEnter,Or=W.onDragOver,Ar=W.onDragLeave,Ro=W.onDrop,No=ws(W,w_);return Me(Me(Ju({onKeyDown:Nn(nn(et,K)),onFocus:Nn(nn(Mt,ce)),onBlur:Nn(nn(St,At)),onClick:Ye(nn(Nr,Qe)),onDragEnter:xe(nn(Tr,Y)),onDragOver:xe(nn(Or,we)),onDragLeave:xe(nn(Ar,Le)),onDrop:xe(nn(Ro,me)),role:typeof Fe=="string"&&Fe!==""?Fe:"presentation"},Ae,B),!r&&!R?{tabIndex:0}:{}),No)}},[B,K,ce,At,Qe,Y,we,Le,me,R,A,r]),Bt=y.useCallback(function(W){W.stopPropagation()},[]),Vs=y.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,Ae=te===void 0?"ref":te,Fe=W.onChange,et=W.onClick,Mt=ws(W,x_),St=Ju({accept:F,multiple:a,type:"file",style:{display:"none"},onChange:Ye(nn(Fe,me)),onClick:Ye(nn(et,Bt)),tabIndex:-1},Ae,Q);return Me(Me({},St),Mt)}},[Q,n,a,me,r]);return Me(Me({},I),{},{isFocused:ee&&!r,getRootProps:Fi,getInputProps:Vs,rootRef:B,inputRef:Q,open:Ye(de)})}function N_(e,t){switch(t.type){case"focus":return Me(Me({},e),{},{isFocused:!0});case"blur":return Me(Me({},e),{},{isFocused:!1});case"openDialog":return Me(Me({},ec),{},{isFileDialogActive:!0});case"closeDialog":return Me(Me({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Me(Me({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Me(Me({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Me({},ec);default:return e}}function Wp(){}const T_=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];function O_(e){if(e===0)return"0 Byte";const t=Math.floor(Math.log(e)/Math.log(1024)),n=T_[t];return`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`}function A_({file:e}){return C.jsx(C.Fragment,{children:C.jsxs("li",{className:"flex w-full items-center justify-center gap-2 font-mono text-sm",title:e.name,children:[C.jsx("p",{className:"max-w-[250px] truncate",children:e.name}),C.jsx("span",{className:"text-xs font-semibold",children:O_(e.size)})]})})}function M_({errors:e}){return e?C.jsx(C.Fragment,{children:e.map(t=>{if(t.code!=="file-too-large")return C.jsxs("li",{className:"flex w-full items-center justify-center text-sm text-red-600",children:[C.jsx(mS,{className:"mr-2"}),t.message]},t.code)})}):C.jsxs("li",{className:"flex w-full items-center justify-center text-sm text-green-600",children:[C.jsx(pS,{className:"mr-2"}),"Uploaded successfully"]})}function j_(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=ji(),[o,i]=y.useState(null),[s,a]=y.useState([]),f=y.useCallback(async(h,w)=>{if(a([]),t([]),n("0"),h.length>0){const b=h[0];i(b),await e(b)}if(w.length>0){const b=w.flatMap(E=>E.errors);a(b)}},[e,t,n]),{getRootProps:u,getInputProps:p}=Ey({onDrop:f,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}});return C.jsxs("section",{children:[r?C.jsxs("div",{...u(),className:"border p-6 rounded cursor-pointer text-center",children:[C.jsx("input",{...p()}),C.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),C.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"})]}):C.jsxs("div",{...u(),className:"border p-6 py-24 rounded cursor-pointer text-center",children:[C.jsx("input",{...p()}),C.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),C.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"}),C.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),C.jsxs("div",{className:"my-2",children:[o&&C.jsx(A_,{file:o}),C.jsx(M_,{errors:s})]})]})}function D_(){const{isLoading:e}=ji();return C.jsx(C.Fragment,{children:e&&C.jsxs("div",{className:"flex items-center justify-center mb-2 font-semibold p-4 border rounded",children:[C.jsx(yS,{className:"w-5 h-5 animate-spin"}),C.jsx("span",{className:"ml-2",children:"Reading SQLite file"})]})})}function I_(){const{db:e,tables:t,isLoading:n}=ji();return C.jsxs("div",{className:"flex flex-col gap-2",children:[!e&&C.jsx("section",{className:"flex justify-center border rounded py-2",children:C.jsxs("div",{className:"flex flex-col items-center gap-2",children:[C.jsx("img",{id:"logo",title:"SQLite Logo",src:"./logo.webp",alt:"SQLite Logo",width:"160",height:"80",className:"h-20"}),C.jsx("p",{className:"text-sm",children:"View SQLite file online"})]})}),C.jsx(j_,{}),C.jsx(D_,{}),!n&&e&&(t.length>0?C.jsx(Ob,{}):C.jsx("p",{className:"text-center font-semibold md:text-3xl p-20 border rounded mb-2",children:"Your database is empty, no tables found"}))]})}function L_(){const[e,t]=y.useState(!1);y.useEffect(()=>{const r=localStorage.getItem("darkMode")==="true";t(r),document.body.classList.toggle("dark",r)},[]);const n=()=>{const r=!e;t(r),localStorage.setItem("darkMode",r.toString()),document.body.classList.toggle("dark",r)};return C.jsx("button",{onClick:n,className:"relative",children:e?C.jsx("img",{src:"./Sun.webp",className:"transition-transform transform scale-75 dark:scale-100 duration-500 ease-in-out bg-white display-inline-block rounded-full h-6 w-6 p-1 shadow-sm",alt:"Sun Icon",width:24,height:24}):C.jsx("img",{src:"./Moon.webp",className:"transition-transform transform scale-75 dark:scale-100 duration-500 ease-in-out",alt:"Moon Icon",width:24,height:24})})}function F_(){return C.jsxs("footer",{className:"z-[100] flex items-center justify-between",children:[C.jsxs("div",{children:[C.jsx("p",{className:"hidden sm:block text-xs mt-2",children:"No file will be uploaded to server. using JavaScript, sql.js"}),C.jsx("p",{className:"block sm:hidden text-xs mt-2",children:"No file will be uploaded to server."}),C.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",className:"text-sm text-link hover:underline flex gap-1 items-center",title:"Star on GitHub",children:[C.jsx(hS,{className:"h-4 w-4 mt-1"}),C.jsx("span",{children:"Star this project on GitHub"})]})]}),C.jsx(L_,{})]})}Ba.createRoot(document.getElementById("root")).render(C.jsx(Kt.StrictMode,{children:C.jsxs("main",{className:"container mx-auto p-4",children:[C.jsx(I_,{}),C.jsx(F_,{})]})})); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xy(e,t){if(e){if(typeof e=="string")return Zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zu(e,t)}}function Zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R_(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var df=y.forwardRef(function(e,t){var n=e.children,r=ws(e,g_),o=Ey(r),i=o.open,s=ws(o,y_);return y.useImperativeHandle(t,function(){return{open:i}},[i]),Kt.createElement(y.Fragment,null,n(Me(Me({},s),{},{open:i})))});df.displayName="Dropzone";var Sy={disabled:!1,getFilesFromEvent:$b,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};df.defaultProps=Sy;df.propTypes={children:be.func,accept:be.objectOf(be.arrayOf(be.string)),multiple:be.bool,preventDropOnDocument:be.bool,noClick:be.bool,noKeyboard:be.bool,noDrag:be.bool,noDragEventsBubbling:be.bool,minSize:be.number,maxSize:be.number,maxFiles:be.number,disabled:be.bool,getFilesFromEvent:be.func,onFileDialogCancel:be.func,onFileDialogOpen:be.func,useFsAccessApi:be.bool,autoFocus:be.bool,onDragEnter:be.func,onDragLeave:be.func,onDragOver:be.func,onDrop:be.func,onDropAccepted:be.func,onDropRejected:be.func,onError:be.func,validator:be.func};var ec={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ey(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Me(Me({},Sy),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,f=t.maxFiles,u=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,w=t.onDrop,b=t.onDropAccepted,E=t.onDropRejected,x=t.onFileDialogCancel,P=t.onFileDialogOpen,v=t.useFsAccessApi,m=t.autoFocus,S=t.preventDropOnDocument,k=t.noClick,R=t.noKeyboard,A=t.noDrag,T=t.noDragEventsBubbling,j=t.onError,G=t.validator,F=y.useMemo(function(){return m_(n)},[n]),V=y.useMemo(function(){return p_(n)},[n]),U=y.useMemo(function(){return typeof P=="function"?P:Wp},[P]),H=y.useMemo(function(){return typeof x=="function"?x:Wp},[x]),B=y.useRef(null),Q=y.useRef(null),se=y.useReducer(N_,ec),J=Ha(se,2),I=J[0],z=J[1],ee=I.isFocused,oe=I.isFileDialogActive,ie=y.useRef(typeof window<"u"&&window.isSecureContext&&v&&d_()),Ve=function(){!ie.current&&oe&&setTimeout(function(){if(Q.current){var te=Q.current.files;te.length||(z({type:"closeDialog"}),H())}},300)};y.useEffect(function(){return window.addEventListener("focus",Ve,!1),function(){window.removeEventListener("focus",Ve,!1)}},[Q,oe,H,ie]);var he=y.useRef([]),ot=function(te){B.current&&B.current.contains(te.target)||(te.preventDefault(),he.current=[])};y.useEffect(function(){return S&&(document.addEventListener("dragover",Hp,!1),document.addEventListener("drop",ot,!1)),function(){S&&(document.removeEventListener("dragover",Hp),document.removeEventListener("drop",ot))}},[B,S]),y.useEffect(function(){return!r&&m&&B.current&&B.current.focus(),function(){}},[B,m,r]);var Ee=y.useCallback(function(W){j?j(W):console.error(W)},[j]),Y=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W),he.current=[].concat(S_(he.current),[W.target]),bl(W)&&Promise.resolve(o(W)).then(function(te){if(!(ys(W)&&!T)){var Ae=te.length,Fe=Ae>0&&a_({files:te,accept:F,minSize:s,maxSize:i,multiple:a,maxFiles:f,validator:G}),et=Ae>0&&!Fe;z({isDragAccept:Fe,isDragReject:et,isDragActive:!0,type:"setDraggedFiles"}),u&&u(W)}}).catch(function(te){return Ee(te)})},[o,u,Ee,T,F,s,i,a,f,G]),we=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W);var te=bl(W);if(te&&W.dataTransfer)try{W.dataTransfer.dropEffect="copy"}catch{}return te&&h&&h(W),!1},[h,T]),Le=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W);var te=he.current.filter(function(Fe){return B.current&&B.current.contains(Fe)}),Ae=te.indexOf(W.target);Ae!==-1&&te.splice(Ae,1),he.current=te,!(te.length>0)&&(z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bl(W)&&p&&p(W))},[B,p,T]),ve=y.useCallback(function(W,te){var Ae=[],Fe=[];W.forEach(function(et){var Mt=vy(et,F),St=Ha(Mt,2),Nr=St[0],Tr=St[1],Or=gy(et,s,i),Ar=Ha(Or,2),Ro=Ar[0],No=Ar[1],Mr=G?G(et):null;if(Nr&&Ro&&!Mr)Ae.push(et);else{var le=[Tr,No];Mr&&(le=le.concat(Mr)),Fe.push({file:et,errors:le.filter(function(zi){return zi})})}}),(!a&&Ae.length>1||a&&f>=1&&Ae.length>f)&&(Ae.forEach(function(et){Fe.push({file:et,errors:[s_]})}),Ae.splice(0)),z({acceptedFiles:Ae,fileRejections:Fe,type:"setFiles"}),w&&w(Ae,Fe,te),Fe.length>0&&E&&E(Fe,te),Ae.length>0&&b&&b(Ae,te)},[z,a,F,s,i,f,w,b,E,G]),me=y.useCallback(function(W){W.preventDefault(),W.persist(),Tn(W),he.current=[],bl(W)&&Promise.resolve(o(W)).then(function(te){ys(W)&&!T||ve(te,W)}).catch(function(te){return Ee(te)}),z({type:"reset"})},[o,ve,Ee,T]),de=y.useCallback(function(){if(ie.current){z({type:"openDialog"}),U();var W={multiple:a,types:V};window.showOpenFilePicker(W).then(function(te){return o(te)}).then(function(te){ve(te,null),z({type:"closeDialog"})}).catch(function(te){h_(te)?(H(te),z({type:"closeDialog"})):v_(te)?(ie.current=!1,Q.current?(Q.current.value=null,Q.current.click()):Ee(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):Ee(te)});return}Q.current&&(z({type:"openDialog"}),U(),Q.current.value=null,Q.current.click())},[z,U,H,v,ve,Ee,V,a]),K=y.useCallback(function(W){!B.current||!B.current.isEqualNode(W.target)||(W.key===" "||W.key==="Enter"||W.keyCode===32||W.keyCode===13)&&(W.preventDefault(),de())},[B,de]),ce=y.useCallback(function(){z({type:"focus"})},[]),At=y.useCallback(function(){z({type:"blur"})},[]),Qe=y.useCallback(function(){k||(f_()?setTimeout(de,0):de())},[k,de]),Ye=function(te){return r?null:te},Nn=function(te){return R?null:Ye(te)},xe=function(te){return A?null:Ye(te)},Tn=function(te){T&&te.stopPropagation()},Fi=y.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,Ae=te===void 0?"ref":te,Fe=W.role,et=W.onKeyDown,Mt=W.onFocus,St=W.onBlur,Nr=W.onClick,Tr=W.onDragEnter,Or=W.onDragOver,Ar=W.onDragLeave,Ro=W.onDrop,No=ws(W,w_);return Me(Me(Ju({onKeyDown:Nn(nn(et,K)),onFocus:Nn(nn(Mt,ce)),onBlur:Nn(nn(St,At)),onClick:Ye(nn(Nr,Qe)),onDragEnter:xe(nn(Tr,Y)),onDragOver:xe(nn(Or,we)),onDragLeave:xe(nn(Ar,Le)),onDrop:xe(nn(Ro,me)),role:typeof Fe=="string"&&Fe!==""?Fe:"presentation"},Ae,B),!r&&!R?{tabIndex:0}:{}),No)}},[B,K,ce,At,Qe,Y,we,Le,me,R,A,r]),Bt=y.useCallback(function(W){W.stopPropagation()},[]),Vs=y.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,Ae=te===void 0?"ref":te,Fe=W.onChange,et=W.onClick,Mt=ws(W,x_),St=Ju({accept:F,multiple:a,type:"file",style:{display:"none"},onChange:Ye(nn(Fe,me)),onClick:Ye(nn(et,Bt)),tabIndex:-1},Ae,Q);return Me(Me({},St),Mt)}},[Q,n,a,me,r]);return Me(Me({},I),{},{isFocused:ee&&!r,getRootProps:Fi,getInputProps:Vs,rootRef:B,inputRef:Q,open:Ye(de)})}function N_(e,t){switch(t.type){case"focus":return Me(Me({},e),{},{isFocused:!0});case"blur":return Me(Me({},e),{},{isFocused:!1});case"openDialog":return Me(Me({},ec),{},{isFileDialogActive:!0});case"closeDialog":return Me(Me({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Me(Me({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Me(Me({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Me({},ec);default:return e}}function Wp(){}const T_=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];function O_(e){if(e===0)return"0 Byte";const t=Math.floor(Math.log(e)/Math.log(1024)),n=T_[t];return`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`}function A_({file:e}){return C.jsx(C.Fragment,{children:C.jsxs("li",{className:"flex w-full items-center justify-center gap-2 font-mono text-sm",title:e.name,children:[C.jsx("p",{className:"max-w-[250px] truncate",children:e.name}),C.jsx("span",{className:"text-xs font-semibold",children:O_(e.size)})]})})}function M_({errors:e}){return e?C.jsx(C.Fragment,{children:e.map(t=>C.jsxs("div",{className:"flex items-center justify-center text-sm text-red-600 gap-2 rounded border border-red-600 p-4",children:[C.jsx(mS,{}),t.message]},t.code))}):C.jsxs("li",{className:"flex w-full items-center justify-center text-sm text-green-600",children:[C.jsx(pS,{className:"mr-2"}),"Uploaded successfully"]})}function j_(){const{loadDatabase:e,setTables:t,setSelectedTable:n,db:r}=ji(),[o,i]=y.useState(null),[s,a]=y.useState([]),f=y.useCallback(async(h,w)=>{if(a([]),t([]),n("0"),h.length>0){const b=h[0];i(b),await e(b)}if(w.length>0){const b=w.flatMap(E=>E.errors);a(b)}},[e,t,n]),{getRootProps:u,getInputProps:p}=Ey({onDrop:f,multiple:!1,accept:{"application/vnd.sqlite3":[".sqlite",".sqlite3"],"application/x-sqlite3":[".sqlite",".sqlite3"],"application/octet-stream":[".db"],"application/sql":[".sql"]}});return C.jsxs("section",{children:[r?C.jsxs("div",{...u(),className:"border p-6 rounded cursor-pointer text-center",children:[C.jsx("input",{...p()}),C.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),C.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"})]}):C.jsxs("div",{...u(),className:"border p-6 py-24 rounded cursor-pointer text-center",children:[C.jsx("input",{...p()}),C.jsx("p",{className:"hidden sm:block",children:"Drag drop a SQLite file here, or click to select one"}),C.jsx("p",{className:"block sm:hidden",children:"Click to select a SQLite file"}),C.jsx("a",{href:"https://github.com/vwh/sqlite-viewer/raw/main/examples/chinook.db",className:"text-sm text-link hover:underline",title:"Download sample file",children:"Or download & try this sample file"})]}),C.jsxs("div",{className:"my-2",children:[o&&C.jsx(A_,{file:o}),C.jsx(M_,{errors:s})]})]})}function D_(){const{isLoading:e}=ji();return C.jsx(C.Fragment,{children:e&&C.jsxs("div",{className:"flex items-center justify-center mb-2 font-semibold p-4 border rounded",children:[C.jsx(yS,{className:"w-5 h-5 animate-spin"}),C.jsx("span",{className:"ml-2",children:"Reading SQLite file"})]})})}function I_(){const{db:e,tables:t,isLoading:n}=ji();return C.jsxs("div",{className:"flex flex-col gap-2",children:[!e&&C.jsx("section",{className:"flex justify-center border rounded py-2",children:C.jsxs("div",{className:"flex flex-col items-center gap-2",children:[C.jsx("img",{id:"logo",title:"SQLite Logo",src:"./logo.webp",alt:"SQLite Logo",width:"160",height:"80",draggable:"false",className:"h-20"}),C.jsx("p",{className:"text-sm",children:"View SQLite file online"})]})}),C.jsx(j_,{}),C.jsx(D_,{}),!n&&e&&(t.length>0?C.jsx(Ob,{}):C.jsx("p",{className:"text-center font-semibold md:text-3xl p-20 border rounded mb-2",children:"Your database is empty, no tables found"}))]})}function L_(){const[e,t]=y.useState(!1);y.useEffect(()=>{const r=localStorage.getItem("darkMode")==="true";t(r),document.body.classList.toggle("dark",r)},[]);const n=()=>{const r=!e;t(r),localStorage.setItem("darkMode",r.toString()),document.body.classList.toggle("dark",r)};return C.jsx("button",{onClick:n,className:"relative",children:e?C.jsx("img",{src:"./Sun.webp",draggable:"false",className:"transition-transform transform scale-75 dark:scale-100 duration-500 ease-in-out bg-white display-inline-block rounded-full h-6 w-6 p-1 shadow-sm",alt:"Sun Icon",width:24,height:24}):C.jsx("img",{src:"./Moon.webp",draggable:"false",className:"transition-transform transform scale-75 dark:scale-100 duration-500 ease-in-out",alt:"Moon Icon",width:24,height:24})})}function F_(){return C.jsxs("footer",{className:"z-[100] flex items-center justify-between",children:[C.jsxs("div",{children:[C.jsx("p",{className:"hidden sm:block text-xs mt-2",children:"No file will be uploaded to server. using JavaScript, sql.js"}),C.jsx("p",{className:"block sm:hidden text-xs mt-2",children:"No file will be uploaded to server."}),C.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",className:"text-sm text-link hover:underline flex gap-1 items-center",title:"Star on GitHub",children:[C.jsx(hS,{className:"h-4 w-4 mt-1"}),C.jsx("span",{children:"Star this project on GitHub"})]})]}),C.jsx(L_,{})]})}Ba.createRoot(document.getElementById("root")).render(C.jsx(Kt.StrictMode,{children:C.jsxs("main",{className:"container mx-auto p-4",children:[C.jsx(I_,{}),C.jsx(F_,{})]})})); diff --git a/assets/index-DI-ToNvZ.css b/assets/index-DI-ToNvZ.css new file mode 100644 index 0000000..33e9980 --- /dev/null +++ b/assets/index-DI-ToNvZ.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 87%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 80%;--input: 240 5.9% 80%;--link: 198, 100%, 16%;--ring: 240 5.9% 10%;--radius: .5rem}.dark{--background: 0 0% 5.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--link: 198, 56%, 40%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-2{bottom:.5rem}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.z-50{z-index:50}.z-\[100\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-\[200px\]{max-width:200px}.max-w-\[250px\]{max-width:250px}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-20{padding:5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[6px\]{padding:6px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-link{color:hsl(var(--link))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}body{font-family:Fira Mono,monospace}#logo{filter:brightness(0) saturate(100%) invert(15%) sepia(80%) saturate(1534%) hue-rotate(172deg) brightness(95%) contrast(104%)}[class=dark] #logo{filter:brightness(0) saturate(100%) invert(46%) sepia(10%) saturate(3150%) hue-rotate(154deg) brightness(87%) contrast(82%)}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.dark\:scale-100:is(.dark *){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:block{display:block}.sm\:hidden{display:none}}@media (min-width: 768px){.md\:w-\[300px\]{width:300px}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/index.html b/index.html index 5475ce0..ee093cd 100644 --- a/index.html +++ b/index.html @@ -58,8 +58,8 @@ href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" /> - - + +
diff --git a/sw.js b/sw.js index 9f69268..2aeaa3f 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const n=(n,s)=>(n=new URL(n+".js",s).href,i[n]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()})).then((()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(s,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(i[o])return;let t={};const l=e=>n(e,o),c={module:{uri:o},exports:t,require:l};i[o]=Promise.all(s.map((e=>c[e]||l(e)))).then((e=>(r(...e),t)))}}define(["./workbox-3e911b1d"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-B7yFDDqw.js",revision:null},{url:"assets/index-Bj9HezKS.css",revision:null},{url:"index.html",revision:"bf14316f91617b4773dc34be640a19b5"},{url:"registerSW.js",revision:"8699135f2a62c6f7ce78f94540a14187"},{url:"icon512_maskable.png",revision:"3d290f6a5aaab33e10193a7ae6363fdc"},{url:"icon512_rounded.png",revision:"b106306874aab167a6e6fca03440dcfb"},{url:"manifest.webmanifest",revision:"83841d3496ce43885f1032b29835f60e"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,i={};const n=(n,s)=>(n=new URL(n+".js",s).href,i[n]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()})).then((()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(s,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(i[o])return;let t={};const c=e=>n(e,o),l={module:{uri:o},exports:t,require:c};i[o]=Promise.all(s.map((e=>l[e]||c(e)))).then((e=>(r(...e),t)))}}define(["./workbox-3e911b1d"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-CwVh9Bv5.js",revision:null},{url:"assets/index-DI-ToNvZ.css",revision:null},{url:"index.html",revision:"817882f44d5edbcc55a0f13ca076d37c"},{url:"registerSW.js",revision:"8699135f2a62c6f7ce78f94540a14187"},{url:"icon512_maskable.png",revision:"3d290f6a5aaab33e10193a7ae6363fdc"},{url:"icon512_rounded.png",revision:"b106306874aab167a6e6fca03440dcfb"},{url:"manifest.webmanifest",revision:"83841d3496ce43885f1032b29835f60e"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));