- UI Revamp
- Some i18n added/fixed - WIP on a new testing mechanism
This commit is contained in:
1 parent
f5014e1cee
commit
58c61a8f01
76 files changed
+1428
-313
No files matched your search
@@ -0,0 +1,2 @@
|
||||
import {ConsoleTest} from "./console-test.mjs";
|
||||
window.customElements.get('console-test') || window.customElements.define("console-test", ConsoleTest);
|
||||
@@ -0,0 +1,33 @@
|
||||
import { Webcomponent } from "./webcomponent.js";
|
||||
|
||||
export class ConsoleTest extends Webcomponent {
|
||||
constructor() {
|
||||
super({
|
||||
template: {
|
||||
fetch : false
|
||||
}
|
||||
});
|
||||
|
||||
this.init();
|
||||
}
|
||||
|
||||
init() {
|
||||
this.buttonRunFullClass().addEventListener("click", this.runAllTests.bind(this));
|
||||
}
|
||||
|
||||
runAllTests() {
|
||||
this.listTests().forEach((e) => this.runTest(e));
|
||||
}
|
||||
|
||||
runTest(elem) {
|
||||
console.log(elem);
|
||||
}
|
||||
|
||||
buttonRunFullClass() {
|
||||
return this.querySelector("button.run-full");
|
||||
}
|
||||
|
||||
listTests() {
|
||||
return this.querySelectorAll(".single-test");
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="34" height="34" viewBox="0 0 34 34"><metadata><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><rdf:Description><dc:creator>RealFaviconGenerator</dc:creator><dc:source>https://realfavicongenerator.net</dc:source></rdf:Description></rdf:RDF></metadata><image width="34" height="34" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kb9Lw0AcxV9TRdFWBzuIOGSoThZERRy1CkWoEGqFVh1MLv0FTRqSFBdHwbXg4I/FqoOLs64OroIg+APEP0CcFF2kxO8lhRYxHhz34d29x907QKiXmWZ1jAOabpupRFzMZFfFrlf0IoQwBPTJzDLmJCkJ3/F1jwBf72I8y//cnyOs5iwGBETiWWaYNvEG8fSmbXDeJ46woqwSnxOPmXRB4keuKx6/cS64LPDMiJlOzRNHiMVCGyttzIqmRjxFHFU1nfKFjMcq5y3OWrnKmvfkLwzl9JVlrtMcRgKLWIIEEQqqKKEMGzFadVIspGg/7uMfcv0SuRRylcDIsYAKNMiuH/wPfndr5ScnvKRQHOh8cZyPEaBrF2jUHOf72HEaJ0DwGbjSW/5KHZj5JL3W0qJHQP82cHHd0pQ94HIHGHwyZFN2pSBNIZ8H3s/om7LAwC3Qs+b11tzH6QOQpq6SN8DBITBaoOx1n3d3t/f275lmfz/7dnJ3c8n9YwAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+oLDA0CMS097QYAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAACWUlEQVRYw2OUkpJiQAaMjIwM2AAucWrpYWIYJICFVA1ynE7/pTgtGIRZtRh4WWQY2Jn5GRgYGBh+/v3I8PnPE4a3v68xPP9xkuHR932MpJjLSEzUsDHxMOjyJ/1X4w5m4GAWJMrgH3/fM9z6upbh6ucFjL//fyUYNQQdosYT+N9YoIBoB2Bz0LmPExnufNvISLZDLISq/mvyRlAlDdz4spLh1IcORpITq71IB9UcwcDAwKDBE85gK9T2H5c8VodYCFX9V+L2onrOUOTyZDATqPhPlEPUeAKpGhLYQkaFy/8/XoewMfEwGAsU0LzMMOLPZ2Bl5MbtEF3+pP/k5g5SAAezIIM2b8J/nA5R5wmhW0mqyhWEPUTkuZw/0yM0kENFlsPxP4ZDpDgteIivGFgY3FcIMTQfEWQItibfMZIc5pghIsKmTfeKTphVC9MhvCwydHcID7M0pkNgtSg9AbKdg6Y9AnfIz78f6W45sp1wh3z+84TuDvny9ymmQ978ukp3h7z9fQ2zqfjs+4kvmrwRPCSZxMjIoN8hxKCHJPR182eG3q7fDH+J0P78x0nMEHn4bS/vj7/vSfYVIxMDAxMaJrbl9vjHfkasjeebX9Yw6POnEjblzx+GnRHvGHZSEC23v63DXfte/jiPkZxQIacde/XzAkacDvn17wvD2Q8TaO6Qcx8nMqC37DFi9NaX9YzXP6+gmSNufFmJ0aLHWbKeeNfGeO/rNqo74v637SgteaJa8QffVFA1ZG58Wclw+F0VI9k9vUHRwRpUXU50cVI64aQMSzCOjo+gAQAvDdjAWfkBlAAAAABJRU5ErkJggg=="></image></svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "MyWebSite",
|
||||
"short_name": "MySite",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/web-app-manifest-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/web-app-manifest-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 112 KiB |
@@ -1,7 +1,8 @@
|
||||
/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}td:not([align]),th:not([align]){text-align:left}
|
||||
.grid{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:-webkit-box;display:flex;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;-webkit-box-flex:0;flex:0 1 auto;-webkit-flex-direction:row;-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -8px 0 -8px}.grid.grid-nogutter{margin:0}.grid.grid-nogutter>.col{padding:0}.col{box-sizing:border-box;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-flex-grow:1;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;-ms-flex-preferred-size:0;-webkit-flex-basis:0;flex-basis:0;max-width:100%;min-width:0;padding:0 8px 0 8px}.col-align-top{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.col-align-bottom{align-self:flex-end}.col-align-middle{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.col-top{justify-content:flex-start !important;flex-direction:column;display:flex}.col-bottom{justify-content:flex-end !important;flex-direction:column;display:flex}.col-middle{justify-content:center;flex-direction:column;display:flex}.grid-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.grid-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.grid-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.grid-around{justify-content:space-around}.grid-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.col-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.col-last{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.grid-reverse{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.col-fixed{flex:initial}.col-grow-2{flex-grow:2}.col-grow-3{flex-grow:3}.col-grow-4{flex-grow:4}.col-grow-5{flex-grow:5}.col-grow-6{flex-grow:6}.col-grow-7{flex-grow:7}.col-grow-8{flex-grow:8}.col-grow-9{flex-grow:9}.col-grow-10{flex-grow:10}.col-grow-11{flex-grow:11}.col-1{-ms-flex-preferred-size:8.33333%;-webkit-flex-basis:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.col-2{-ms-flex-preferred-size:16.66667%;-webkit-flex-basis:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.col-3{-ms-flex-preferred-size:25%;-webkit-flex-basis:25%;flex-basis:25%;max-width:25%}.col-4{-ms-flex-preferred-size:33.33333%;-webkit-flex-basis:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.col-5{-ms-flex-preferred-size:41.66667%;-webkit-flex-basis:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.col-6{-ms-flex-preferred-size:50%;-webkit-flex-basis:50%;flex-basis:50%;max-width:50%}.col-7{-ms-flex-preferred-size:58.33333%;-webkit-flex-basis:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.col-8{-ms-flex-preferred-size:66.66667%;-webkit-flex-basis:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.col-9{-ms-flex-preferred-size:75%;-webkit-flex-basis:75%;flex-basis:75%;max-width:75%}.col-10{-ms-flex-preferred-size:83.33333%;-webkit-flex-basis:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.col-11{-ms-flex-preferred-size:91.66667%;-webkit-flex-basis:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.col-12{-ms-flex-preferred-size:100%;-webkit-flex-basis:100%;flex-basis:100%;max-width:100%}@media only screen and (max-width: 480px){.col-sm{flex:100%;max-width:100%}}@media only screen and (max-width: 624px){.col-md{flex:100%;max-width:100%}}@media only screen and (max-width: 744px){.col-lg{flex:100%;max-width:100%}}
|
||||
/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
|
||||
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}td:not([align]),th:not([align]){text-align:left}
|
||||
.grid{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:-webkit-box;display:flex;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;-webkit-box-flex:0;flex:0 1 auto;-webkit-flex-direction:row;-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -8px 0 -8px}.grid.grid-nogutter{margin:0}.grid.grid-nogutter>.col{padding:0}.col{box-sizing:border-box;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-flex-grow:1;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;-ms-flex-preferred-size:0;-webkit-flex-basis:0;flex-basis:0;max-width:100%;min-width:0;padding:0 8px 0 8px}.col-align-top{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.col-align-bottom{align-self:flex-end}.col-align-middle{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.col-top{justify-content:flex-start !important;flex-direction:column;display:flex}.col-bottom{justify-content:flex-end !important;flex-direction:column;display:flex}.col-middle{justify-content:center;flex-direction:column;display:flex}.grid-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.grid-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.grid-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.grid-around{justify-content:space-around}.grid-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.col-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.col-last{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.grid-reverse{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.col-fixed{flex:initial}.col-grow-2{flex-grow:2}.col-grow-3{flex-grow:3}.col-grow-4{flex-grow:4}.col-grow-5{flex-grow:5}.col-grow-6{flex-grow:6}.col-grow-7{flex-grow:7}.col-grow-8{flex-grow:8}.col-grow-9{flex-grow:9}.col-grow-10{flex-grow:10}.col-grow-11{flex-grow:11}.col-1{-ms-flex-preferred-size:8.33333%;-webkit-flex-basis:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.col-2{-ms-flex-preferred-size:16.66667%;-webkit-flex-basis:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.col-3{-ms-flex-preferred-size:25%;-webkit-flex-basis:25%;flex-basis:25%;max-width:25%}.col-4{-ms-flex-preferred-size:33.33333%;-webkit-flex-basis:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.col-5{-ms-flex-preferred-size:41.66667%;-webkit-flex-basis:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.col-6{-ms-flex-preferred-size:50%;-webkit-flex-basis:50%;flex-basis:50%;max-width:50%}.col-7{-ms-flex-preferred-size:58.33333%;-webkit-flex-basis:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.col-8{-ms-flex-preferred-size:66.66667%;-webkit-flex-basis:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.col-9{-ms-flex-preferred-size:75%;-webkit-flex-basis:75%;flex-basis:75%;max-width:75%}.col-10{-ms-flex-preferred-size:83.33333%;-webkit-flex-basis:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.col-11{-ms-flex-preferred-size:91.66667%;-webkit-flex-basis:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.col-12{-ms-flex-preferred-size:100%;-webkit-flex-basis:100%;flex-basis:100%;max-width:100%}@media only screen and (max-width: 480px){.col-sm{flex:100%;max-width:100%}}@media only screen and (max-width: 624px){.col-md{flex:100%;max-width:100%}}@media only screen and (max-width: 744px){.col-lg{flex:100%;max-width:100%}}@media only screen and (max-width: 864px){.col-xl{flex:100%;max-width:100%}}@media only screen and (max-width: 984px){.col-xxl{flex:100%;max-width:100%}}
|
||||
.align-items-center{align-items:center}.align-items-top{align-items:start}
|
||||
.justify-content-around{justify-content: space-around;}.justify-content-end{justify-content: end}
|
||||
.justify-content-around{justify-content: space-around;}.justify-content-end{justify-content: end}.justify-content-between{justify-content: space-between}
|
||||
.flex {display:flex}
|
||||
|
||||
:root {--color-red: #d47474}
|
||||
@@ -9,52 +10,92 @@
|
||||
.m-0 {margin:0!important}.mx-0 {margin-left:0!important;margin-right:0!important}.my-0 {margin-top:0!important;margin-bottom:0!important}
|
||||
.p-0 {padding:0!important}.px-0 {padding-left:0!important;padding-right:0!important}.py-0 {padding-top:0!important;padding-bottom:0!important}
|
||||
|
||||
[class^="btn-"], [class~=" btn-"] { display: inline-block; font-weight: 400; font-size:16px; text-align: center; white-space: nowrap; vertical-align: middle; user-select: none; border: 1px solid transparent; padding: .375rem .75rem; line-height: 1.5; border-radius: .25rem; cursor:pointer; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; background:rgba(0,0,0,0.3); color:rgba(255,255,255,0.8); text-decoration:none; }
|
||||
[class^="btn-"]:hover, [class~=" btn-"]:hover {border-color: rgba(0, 0, 0, 0.5);text-decoration: underline;}
|
||||
.btn-red {background: rgba(155,0,0,0.5);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-green {background: rgba(0,155,0,0.5);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-blue {background: rgba(0,0,155,0.5);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-yellow {background: rgba(249, 200, 11, 0.69);color: rgba(255, 255, 255, 0.9);}
|
||||
[class^="btn-"]:not(.btn-wrapper), [class~=" btn-"]:not(.btn-wrapper) { display: inline-block; font-weight: 400; font-size:14px; text-align: center; white-space: nowrap; vertical-align: middle; user-select: none; border: 1px solid transparent; padding: .375rem .75rem; line-height: 1.5; border-radius: .45rem; cursor:pointer; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; background:rgba(0,0,0,0.3); color:rgba(255,255,255,0.8); text-decoration:none; }
|
||||
[class^="btn-"]:not(.btn-wrapper):hover, [class~=" btn-"]:not(.btn-wrapper):hover {border-color: rgba(104, 102, 102, 0.5);filter: contrast(150%);}
|
||||
[class^="btn-"]:not(.btn-wrapper):active, [class~=" btn-"]:not(.btn-wrapper):active {filter:grayscale(20%)}
|
||||
.btn-gray:not(.btn-wrapper) {background: linear-gradient(135deg, rgb(159 159 159) 0%, rgb(108, 107, 107) 100%);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-red:not(.btn-wrapper):not([disabled]) {background: linear-gradient(135deg, rgb(240, 108, 108) 0%, rgb(209, 75, 75) 100%);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-purple:not(.btn-wrapper):not([disabled]) {background: linear-gradient(135deg, rgb(134 77 181) 0%, rgb(109 48 174) 100%);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-green:not(.btn-wrapper):not([disabled]) {background:linear-gradient(135deg, rgb(77, 181, 137) 0%, rgb(48, 174, 85) 100%);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-blue:not(.btn-wrapper):not([disabled]){background: linear-gradient(135deg, #4b66d1 0%, #3e6ca8 100%);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-yellow:not(.btn-wrapper):not([disabled]) {background:linear-gradient(135deg, #dbb20d 0%, #b58920 100%);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-pink:not(.btn-wrapper):not([disabled]) {background:linear-gradient(135deg, #e878ec 0%, #c146b1 100%);color: rgba(255, 255, 255, 0.9);}
|
||||
.btn-sm:not(.btn-wrapper) {font-size:0.85rem;padding: .25rem .55rem;border-radius: 5px;}
|
||||
.bg-yellow {background:#c09f1f!important}
|
||||
|
||||
[class*="http-method-"]:not(:last-child):after {content: ",";color: #5e5e5e}
|
||||
.http-method-get {color:#0f6ab4}
|
||||
.http-method-post {color:#10a44a}
|
||||
.http-method-patch {color: #ed7419}
|
||||
.http-method-delete {color:#d73c41}
|
||||
.http-method-put {color:#bda20e}
|
||||
.http-method-head {color:#ca6aa5}
|
||||
.http-method-option {color:#a4a4a4}
|
||||
|
||||
body{background:#f3f3f9}
|
||||
code {white-space:pre-line;font-family:monospace;color: #e6e6e6;background: #343537;display: block;padding: 1rem;line-height: 1.5em;border: 1px solid #2e2e30;}
|
||||
code {white-space:pre-line; font-family:monospace; display: block;flex: 2; background: #f8f9fb; border: 1px solid #e4e7ec; border-radius: 10px; padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #4b5563; line-height: 1.6;}
|
||||
|
||||
code:before {position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #777 0%, transparent 100%);content:" "}
|
||||
code .empty {display: flex; align-items: center; justify-content: center; padding: 22px 0; color: #52525b; font-size: 14px; font-style: italic;}
|
||||
code .empty svg {margin: 0 auto 8px; opacity: 0.5;}
|
||||
body {font-family:Helvetica Neue, Helvetica, Arial, sans-serif;}
|
||||
summary {cursor:pointer;}
|
||||
|
||||
|
||||
#body-main {min-height:calc(100vh - 30px);display:flex}
|
||||
|
||||
/* Header */
|
||||
#body-header {background: #fff; color:#fff; min-height:60px;line-height:60px;padding:0 1rem;position:sticky;top:0;border-bottom:1px solid #ebedee;}
|
||||
#body-header {background: #fff; color:#fff; min-height:60px;line-height:60px;padding:0 1rem;position:sticky;top:0;border-bottom:1px solid #ebedee;z-index:10}
|
||||
#body-header > div {min-height: 60px;}
|
||||
#right-panel {max-width:calc(100% - 240px);width:100%;margin-left:auto}
|
||||
#subheader {background:#fff; padding: 1rem 1.4rem;display:flex;justify-content: space-between;box-shadow:0 1px 2px rgba(55,65,75,0.15)}
|
||||
#subheader h1 {font-size:1.1rem;font-size:inherit; font-weight:bold}
|
||||
#subheader .breadcrumb {font-size:0.9rem;display:flex;align-items:end}
|
||||
#subheader {background:#fff; padding: 1rem 1.4rem;display:flex;justify-content: space-between;box-shadow:0 1px 2px rgba(55,65,75,0.15);}
|
||||
#subheader h1 {color:#b0b0b0;font-size:1.1rem;font-size:inherit; font-weight:bold}
|
||||
#subheader .breadcrumb {font-size:0.9rem;display:flex;align-items:end;font-variant: small-caps;letter-spacing: 1.25px;}
|
||||
#subheader .breadcrumb-item + .breadcrumb-item:before {content:"›";padding:0 6px;}
|
||||
#subheader .breadcrumb-item:nth-child(1) {color:#71717a}
|
||||
#subheader .breadcrumb-item:nth-child(2) {color: #9797a1}
|
||||
#subheader .breadcrumb-item:nth-child(3) {color:#a1a1aa}
|
||||
#subheader .breadcrumb-item:last-child {color: #5132ca}
|
||||
|
||||
/* Footer */
|
||||
#body-footer {background: #fff;color: #333;height: 30px;line-height: 30px;font-size: 0.8rem;padding: 0 0.5rem;text-align: right;border-top:1px solid #ebedee;}
|
||||
|
||||
/* Sidebar */
|
||||
#main-nav {background:#373737;width:240px;color:#fff;font-family:consolas, courier new, monospace;font-size:0.9rem;position:fixed;top:0;bottom:0;overflow-y:auto;padding-bottom:2rem;border-right: 2px solid #333;}
|
||||
#main-nav .app-title {font-size:1.3rem; text-align:center;padding:1.8rem 0}
|
||||
#main-nav .app-title:before {content:"🔳"; margin-right:10px}
|
||||
#main-nav {background:linear-gradient(90deg, #131313 0%, #373737 100%);width:240px;color:#fff;font-family:consolas, courier new, monospace;font-size:0.9rem;position:fixed;top:0;bottom:0;overflow-y:auto;padding-bottom:2rem;border-right: 2px solid #333;display:flex; flex-direction: column;justify-content: space-between;}
|
||||
#main-nav .app-title {font-size:1.3rem; text-align:center;padding:1.5rem 0 0.85rem 0;display:flex;align-items: center; font-family: 'Segoe UI', system-ui, sans-serif; gap:10px; justify-content: center;}
|
||||
#main-nav .app-title svg {max-width:40px; max-height:40px; margin-right:15px;fill: #2a003e;}
|
||||
#main-nav .button {margin:0 auto; }
|
||||
#main-nav .button a {font-size:90%}
|
||||
#main-nav label {color: #a4a4a4;text-transform:uppercase ; display:block;padding:0.8rem 1rem;font-size:1.15em;}
|
||||
#main-nav label:before {content:"⊙"; margin-right:10px}
|
||||
#main-nav a {color: #efecec;text-decoration:none;display:block;padding:0 1rem 0 2rem;transition:all 0.3s ease;line-height:2.5em;font-size:0.9em}
|
||||
#main-nav a:before {content:"›"; margin-right:10px;}
|
||||
#main-nav a:hover {background:rgba(255,255,255,0.1)}
|
||||
#main-nav .active {background: #5f2b7787;}
|
||||
#main-nav nav a {color: #efecec;text-decoration:none;display:block;padding:0 1rem 0 2rem;transition:all 0.3s ease;line-height:2.5em;font-size:0.9em}
|
||||
#main-nav nav a:before {content:"›"; margin-right:10px;}
|
||||
#main-nav nav a:hover {background:rgba(255,255,255,0.1)}
|
||||
|
||||
/* Main content */
|
||||
#main-content {padding:4vh 2vw;width:100%;margin-left:auto;}
|
||||
#main-content section {border-radius:0.3rem;box-shadow: 0 1px 2px rgba(56,65,74,.15);display: flex;flex-direction: column;}
|
||||
#main-content section article {border-radius:0.3rem;font-family: Courier New , Courier, monospace;font-size: 0.8em;background:#fff;padding:1.5rem;border: 1px solid #00000029;}
|
||||
#main-content section h3 {font-size:120%; margin:10px 0;}
|
||||
#main-content section {border-radius:0.2rem;box-shadow: 0 1px 2px rgba(56,65,74,.15);display: flex;flex-direction: column;}
|
||||
#main-content section article {border-radius:0.2rem;font-family: Courier New , Courier, monospace;font-size: 0.8em;background:#fff;padding:1rem;border: 1px solid #00000029;}
|
||||
#main-content section article.has-table {padding:0}
|
||||
#main-content section header + article {border-top:0;border-top-left-radius: unset;border-top-right-radius: unset}
|
||||
#main-content section header:has(+ article) {border: 1px solid #00000029;border-bottom:0}
|
||||
#main-content section header {border-top-left-radius:0.3rem;border-top-right-radius:0.3rem;background:#373737;padding:1rem 1rem;font-size:1.2em;color: #fff;border-bottom:1px solid #7b7b7b;display:flex;align-items:center}
|
||||
#main-content section header {border-top-left-radius:0.3rem;border-top-right-radius:0.3rem;padding:0.75rem 1rem;font-size:1.2em;display:flex;align-items:center;background: #fff;color: black;border: 1px solid #DFDFDF;box-shadow: 0px -5px 4px #ececec inset;border-bottom:1px solid #d7d7d7;line-height:2.1rem}
|
||||
#main-content section [class*="icon-"] {margin-right:15px;width:40px;height:40px;border-radius:10px;display:flex; align-items: center; justify-content: center;}
|
||||
#main-content section .icon-sm {width:30px!important;height:30px!important;}
|
||||
#main-content section article:has(+ footer) {border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-bottom:0}
|
||||
#main-content section footer {border-bottom-left-radius:0.3rem;border-bottom-right-radius:0.3rem;background:#f9f9f9;padding:1.5vh 1vw;line-height:1.5vh}
|
||||
#main-content section footer {border-bottom-left-radius:0.3rem;border-bottom-right-radius:0.3rem;background:#f9f9f9;padding:1.5vh 1vw;line-height:1.5vh;box-shadow:0px -3px 2px #ececec inset}
|
||||
#main-content section article + footer {border: 1px solid #00000029;border-top:0}
|
||||
#main-content section article [class*="col-"] {overflow-x:auto}
|
||||
#main-content section article [class*="col-"] {overflow-x:auto}
|
||||
#main-content section .icon-gray {background: linear-gradient(135deg, #e6e6e6 0%, #b8b8b8 100%);color: #707070;}
|
||||
#main-content section .icon-yellow {background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);color: #d97706;}
|
||||
#main-content section .icon-red {background: linear-gradient(135deg, #fec7c7 0%, #fd8a8a 100%);color: #d90606;}
|
||||
#main-content section .icon-green {background: linear-gradient(135deg, #cbfec7 0%, #63cc69 100%);color: #259b4d;}
|
||||
#main-content section .icon-purple {background: linear-gradient(135deg, #dbafff 0%, #a38afd 100%);color: #771aa4;}
|
||||
#main-content section .icon-pink {background: linear-gradient(135deg, #ffafe6 0%, #f98afd 100%);color: #a41a92;}
|
||||
#main-content section + section {margin-top:20px}
|
||||
#main-content .sticky {position:sticky;top:60px;z-index:15}
|
||||
|
||||
#main-content .message {border: 1px solid #d29d9d;padding: 15px;border-radius: 4px;margin-bottom: 20px;line-height: 1.5rem;}
|
||||
#main-content .message-content {white-space: pre-line;}
|
||||
#main-content .message.type-danger {background: #fff5f5;color: #530000;}
|
||||
@@ -0,0 +1,79 @@
|
||||
|
||||
class Webcomponent extends HTMLElement {
|
||||
#config = {
|
||||
template: {
|
||||
fetch : true
|
||||
}
|
||||
};
|
||||
|
||||
constructor(config) {
|
||||
super();
|
||||
|
||||
if (config) {
|
||||
this.#config = {...this.#config, ...( config ? config : {} ) };
|
||||
}
|
||||
|
||||
if (this.config.template.fetch) {
|
||||
this.fetchTemplate();
|
||||
}
|
||||
}
|
||||
|
||||
fetchTemplate() {
|
||||
this.attachShadow({mode: 'open'}).appendChild(
|
||||
document.querySelector("template#" + this.tagName.toLowerCase()).content.cloneNode(true)
|
||||
);
|
||||
}
|
||||
|
||||
getName() {
|
||||
return Object.getPrototypeOf(this).constructor.name;
|
||||
}
|
||||
|
||||
getSlot(name) {
|
||||
return this.querySelector('[slot="' + name + '"]');
|
||||
}
|
||||
|
||||
emptyElement(element) {
|
||||
while (element.lastChild) {
|
||||
element.removeChild(element.lastChild);
|
||||
}
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
buildUrl(url, data) {
|
||||
return url + ( Object.entries(data).length ? "?" + Object.keys(data).map(function(key) {
|
||||
return [key, data[key]].map(encodeURIComponent).join("=");
|
||||
}).join("&") : "" );
|
||||
}
|
||||
|
||||
on(type, listener, options) {
|
||||
this.addEventListener(type, listener, options);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
off(type, listener, options) {
|
||||
this.removeEventListener(type, listener, options);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
emit(name, detail, bubbles, cancelable, composed) {
|
||||
this.dispatchEvent(new CustomEvent(name, {
|
||||
detail: detail ? detail : null,
|
||||
bubbles: !! bubbles,
|
||||
cancelable: !! cancelable,
|
||||
composed: !! composed,
|
||||
}));
|
||||
}
|
||||
|
||||
get config() {
|
||||
return this.#config;
|
||||
}
|
||||
|
||||
set config(value) {
|
||||
return this.#config = value;
|
||||
}
|
||||
}
|
||||
|
||||
export { Webcomponent };
|
||||
Reference in new issue
Block a user