diff --git a/asset/lean-console/app.js b/asset/lean-console/app.js new file mode 100644 index 0000000..e7e35f4 --- /dev/null +++ b/asset/lean-console/app.js @@ -0,0 +1,2 @@ +import {ConsoleTest} from "./console-test.mjs"; +window.customElements.get('console-test') || window.customElements.define("console-test", ConsoleTest); diff --git a/asset/lean-console/console-test.mjs b/asset/lean-console/console-test.mjs new file mode 100644 index 0000000..e1f6d96 --- /dev/null +++ b/asset/lean-console/console-test.mjs @@ -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"); + } +} \ No newline at end of file diff --git a/asset/lean-console/favicon/apple-touch-icon.png b/asset/lean-console/favicon/apple-touch-icon.png new file mode 100644 index 0000000..630de48 Binary files /dev/null and b/asset/lean-console/favicon/apple-touch-icon.png differ diff --git a/asset/lean-console/favicon/favicon-96x96.png b/asset/lean-console/favicon/favicon-96x96.png new file mode 100644 index 0000000..91fd43b Binary files /dev/null and b/asset/lean-console/favicon/favicon-96x96.png differ diff --git a/asset/lean-console/favicon/favicon.ico b/asset/lean-console/favicon/favicon.ico new file mode 100644 index 0000000..45069d0 Binary files /dev/null and b/asset/lean-console/favicon/favicon.ico differ diff --git a/asset/lean-console/favicon/favicon.svg b/asset/lean-console/favicon/favicon.svg new file mode 100644 index 0000000..1112281 --- /dev/null +++ b/asset/lean-console/favicon/favicon.svg @@ -0,0 +1 @@ +RealFaviconGeneratorhttps://realfavicongenerator.net \ No newline at end of file diff --git a/asset/lean-console/favicon/site.webmanifest b/asset/lean-console/favicon/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/asset/lean-console/favicon/site.webmanifest @@ -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" +} \ No newline at end of file diff --git a/asset/lean-console/favicon/web-app-manifest-192x192.png b/asset/lean-console/favicon/web-app-manifest-192x192.png new file mode 100644 index 0000000..f2b5302 Binary files /dev/null and b/asset/lean-console/favicon/web-app-manifest-192x192.png differ diff --git a/asset/lean-console/favicon/web-app-manifest-512x512.png b/asset/lean-console/favicon/web-app-manifest-512x512.png new file mode 100644 index 0000000..16bc06e Binary files /dev/null and b/asset/lean-console/favicon/web-app-manifest-512x512.png differ diff --git a/asset/lean-console/lean-console-bw.css b/asset/lean-console/lean-console-bw.css index 62b4a4e..5b4899b 100644 --- a/asset/lean-console/lean-console-bw.css +++ b/asset/lean-console/lean-console-bw.css @@ -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} \ No newline at end of file +#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;} \ No newline at end of file diff --git a/asset/lean-console/webcomponent.js b/asset/lean-console/webcomponent.js new file mode 100644 index 0000000..ba3a850 --- /dev/null +++ b/asset/lean-console/webcomponent.js @@ -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 }; \ No newline at end of file diff --git a/composer.json b/composer.json index 9f0fdfd..703c55b 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,8 @@ } ], "require": { - "mcnd/lean": "^1.4.2" + "mcnd/lean": "^1.4.2", + "mcnd/ulmus-api": "^1.3.1" }, "autoload": { "psr-4": { diff --git a/meta/definitions/software.php b/meta/definitions/software.php index bf39fe6..e124a90 100644 --- a/meta/definitions/software.php +++ b/meta/definitions/software.php @@ -1,5 +1,7 @@ [ [ - 'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]), + 'path' => Lean\Lean::path($path, 'view'), 'order' => 99, ], ], 'asset' => [ [ - 'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]), + 'path' => Lean\Lean::path($path, 'asset'), 'order' => 10 ], ], @@ -26,29 +28,37 @@ return [ 'ulmus' => [ 'entities' => [ - Lean\Console\Entity\Firewall::class => implode(DIRECTORY_SEPARATOR, [ $path , "src", "Entity", "Firewall" ]), + # Lean\Console\Entity::class => Lean\Lean::path($path, 'src', 'Entity'), ], ], 'tell' => [ 'json' => [ [ - 'path' => implode(DIRECTORY_SEPARATOR, [ $path, "meta", "i18n", "" ]), + 'path' => Lean\Lean::path($path, 'meta', 'i18n'), 'order' => 99, ], ] ], 'cli' => [ - 'Lean\\Console\\Cli' => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Cli", "" ]), + 'Lean\\Console\\Cli' => Lean\Lean::path($path, 'src', 'Cli'), ], - 'routes' => ! getenv('DEBUG') ? [] : [ - Lean\Console\Controller::class => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Controller", "" ]), + 'tests' => [ + Lean\Console\Controller::class => Lean\Lean::path($path, 'src', 'Controller'), + ], + + 'routes' => [ + Lean\Console\Controller::class => Lean\Lean::path($path, 'src', 'Controller'), ], ], - DatabaseMigrations::class => function($c) { + DatabaseMigrations::class => function(ContainerInterface $c) { return new DatabaseMigrations( $c->get(Lean\Lean::class)->getEntities() ); }, + + TestFetcher::class => function(ContainerInterface $c) { + return new TestFetcher($c->get(Lean\Lean::class)->getTests(), null, $c->get('routes.caching')); + }, ]; \ No newline at end of file diff --git a/meta/i18n/en/lean.caching.json b/meta/i18n/en/lean.caching.json index 4a5dcd9..0dfbc46 100644 --- a/meta/i18n/en/lean.caching.json +++ b/meta/i18n/en/lean.caching.json @@ -2,5 +2,11 @@ "title": "Caching -- LEAN", "page-title": "LEAN - Caching", "clear": "Clear", - "breadcrumb": "Caching" + "breadcrumb": "Caching", + "header": "", + "table": { + "name": "Compiled file", + "namespace": "Namespace", + "view": "View path" + } } \ No newline at end of file diff --git a/meta/i18n/en/lean.nav.json b/meta/i18n/en/lean.nav.json index b13f98c..2d56588 100644 --- a/meta/i18n/en/lean.nav.json +++ b/meta/i18n/en/lean.nav.json @@ -1,6 +1,6 @@ { - "lean": { - "label": "Lean", + "core": { + "label": "Core", "dashboard": "Dashboard", "update": "Update(s)" }, @@ -27,8 +27,11 @@ "phpinfo": "PhpInfo" }, + "testing": { + "label": "Testing" + }, - "request": { + "request": { "label": "Request", "routes": "Routes" }, diff --git a/meta/i18n/en/lean.storage.json b/meta/i18n/en/lean.storage.json index 11770ce..655da96 100644 --- a/meta/i18n/en/lean.storage.json +++ b/meta/i18n/en/lean.storage.json @@ -31,7 +31,6 @@ "add": "Create", "breadcrumb": "Insert", "readonly": "This field is read-only", - "table": { "column": "Column", "type": "Data type", @@ -39,5 +38,14 @@ "attributes": "Attributs", "value": "Value" } + }, + + "session": { + "header": "Sessions list", + "breadcrumb": "Sessions", + "count": "{$count} session(s)", + "table": { + "view": "View" + } } } \ No newline at end of file diff --git a/meta/i18n/en/lean.templating.json b/meta/i18n/en/lean.templating.json index 3f256e1..3969871 100644 --- a/meta/i18n/en/lean.templating.json +++ b/meta/i18n/en/lean.templating.json @@ -2,5 +2,9 @@ "title": "Templating -- LEAN", "page-title": "LEAN - Templating", "breadcrumb": "Templating", - "header": "Views" + "header": "Views", + "filename": "Chemin du fichier", + "table": { + "empty": "Empty folder" + } } \ No newline at end of file diff --git a/meta/i18n/en/lean.testing.json b/meta/i18n/en/lean.testing.json new file mode 100644 index 0000000..059cb83 --- /dev/null +++ b/meta/i18n/en/lean.testing.json @@ -0,0 +1,6 @@ +{ + "title": "Testing -- LEAN", + "page-title": "LEAN - Testing", + "breadcrumb": "Testing", + "header": "Tests" +} \ No newline at end of file diff --git a/meta/i18n/en/lean.update.json b/meta/i18n/en/lean.update.json index 274bacb..7117524 100644 --- a/meta/i18n/en/lean.update.json +++ b/meta/i18n/en/lean.update.json @@ -3,6 +3,8 @@ "page-title": "LEAN - Update", "git": { "breadcrumb": "Update", - "header": "Git Status" + "header": "Source code versioning", + "status:nothing": "Empty", + "diff:nothing": "Empty" } } \ No newline at end of file diff --git a/meta/i18n/fr/lean.caching.json b/meta/i18n/fr/lean.caching.json new file mode 100644 index 0000000..72ce2fd --- /dev/null +++ b/meta/i18n/fr/lean.caching.json @@ -0,0 +1,12 @@ +{ + "title": "Caching -- LEAN", + "page-title": "LEAN - Caching", + "clear": "Clear", + "breadcrumb": "Caching", + "header": "Caching des vues Picea", + "table": { + "name": "Fichier compilé", + "namespace": "Namespace", + "view": "Chemin de la vue" + } +} \ No newline at end of file diff --git a/meta/i18n/fr/lean.nav.json b/meta/i18n/fr/lean.nav.json index 02df5ad..ee14a2a 100644 --- a/meta/i18n/fr/lean.nav.json +++ b/meta/i18n/fr/lean.nav.json @@ -1,7 +1,8 @@ { - "lean": { - "label": "Lean", - "dashboard": "Dashboard" + "core": { + "label": "Noyau", + "dashboard": "Dashboard", + "update": "Mise(s) à jour" }, "storage": { @@ -26,6 +27,11 @@ "phpinfo": "PhpInfo" }, + "testing": { + "label": "Testing", + "tests": "Tests automatisés" + }, + "request": { "label": "Request", "routes": "Routes" diff --git a/meta/i18n/fr/lean.storage.json b/meta/i18n/fr/lean.storage.json index 3d67def..7500f5e 100644 --- a/meta/i18n/fr/lean.storage.json +++ b/meta/i18n/fr/lean.storage.json @@ -3,28 +3,34 @@ "page-title": "LEAN - Storage", "database": { - "header": "List of databases", + "header": "Liste des bases de données", + "breadcrumb": "Bases de données", "name": "Database", "adapter": "Adapter", "host": "Hostname:port", "username": "Username", - "connection": "Connection", - + "connection": "Connection {$name}", "table": { "header": "Tables details", - "fields": "{$count} fields", + "fields": "{$count} field(s)", + "entries": "{$count} entrie(s)", "name": "Table Name", "actions": "Actions", "table-fields" : "Fields in table", "create": "Create table", "createAll": "Create all tables", - "query": "SQL Query" + "query": "SQL Query", + "uptodate": "Cette table est à jour" } }, + "session": { "header": "Liste des sessions", "breadcrumb": "Sessions", - "count": "{$count} session(s)" + "count": "{$count} session(s)", + "table": { + "view": "Voir" + } } } \ No newline at end of file diff --git a/meta/i18n/fr/lean.update.json b/meta/i18n/fr/lean.update.json index 0758a4d..7e0544e 100644 --- a/meta/i18n/fr/lean.update.json +++ b/meta/i18n/fr/lean.update.json @@ -1,7 +1,10 @@ { - "title" : "Console -- LEAN", - "page-title": "Console", - "breadcrumb" : { - "index" : "Negundo" + "title": "Mise(s)-à-jour -- LEAN", + "page-title": "LEAN - Mise(s)-à-jour", + "git": { + "breadcrumb": "Mise(s)-à-jour", + "header": "Versionnage du code", + "status:nothing": "Vide", + "diff:nothing": "Vide" } -} +} \ No newline at end of file diff --git a/src/Attribute/Test.php b/src/Attribute/Test.php new file mode 100644 index 0000000..9588197 --- /dev/null +++ b/src/Attribute/Test.php @@ -0,0 +1,16 @@ +picea) ) { - new FormHandler($request, new Form\Caching\Picea($this->picea, $list), $this->pushContext(new Lib\FormContext($request, "caching.picea"))); + $context =$this->pushContext(new Lib\FormContext($request, "caching.picea")); + + new FormHandler($request, new Form\Caching\Picea($this->picea, $list), $context); + + if ($context->getExecutionStatus()) { + return $this->redirect($this->route('lean.console:caching')); + } } return $this->renderView("lean-console/page/caching/picea", get_defined_vars()); } + } \ No newline at end of file diff --git a/src/Controller/Console.php b/src/Controller/Console.php index d7996d2..e3cfdd3 100644 --- a/src/Controller/Console.php +++ b/src/Controller/Console.php @@ -11,24 +11,4 @@ use \Lean\Console\{ Lib, Form }; class Console { use Lib\ConsoleControllerTrait; - - #[Route(route: "/", name: "lean.console:home")] - public function home(ServerRequestInterface $request, array $arguments) : ResponseInterface - { - return $this->renderView("lean-console/page/dashboard/index", [ - - ]); - } - - #[Route(route: "/update", name: "lean.console:update")] - public function update(ServerRequestInterface $request, array $arguments) : ResponseInterface - { - new FormHandler($request, $git = new Form\Update\Git(getenv('PROJECT_PATH'))); - - $status = iterator_to_array($git->run("/usr/bin/git status -s")); - $diff = iterator_to_array($git->run("/usr/bin/git diff")); - $lastUpdate = iterator_to_array($git->run("/usr/bin/git show --no-patch --format=%ci"))[0] ?? null; - - return $this->renderView("lean-console/page/update/index", get_defined_vars()); - } } \ No newline at end of file diff --git a/src/Controller/Core.php b/src/Controller/Core.php new file mode 100644 index 0000000..bc69eb2 --- /dev/null +++ b/src/Controller/Core.php @@ -0,0 +1,31 @@ +renderView("lean-console/page/dashboard/index", get_defined_vars()); + } + + #[Route(route: "/update", name: "lean.console:update")] + public function update(ServerRequestInterface $request, array $arguments) : ResponseInterface + { + new FormHandler($request, $git = new Form\Update\Git(getenv('PROJECT_PATH'))); + + $status = iterator_to_array($git->run("/usr/bin/git status -s")); + $diff = iterator_to_array($git->run("/usr/bin/git diff")); + $lastUpdate = iterator_to_array($git->run("/usr/bin/git show --no-patch --format=%ci"))[0] ?? null; + + return $this->renderView("lean-console/page/update/index", get_defined_vars()); + } +} \ No newline at end of file diff --git a/src/Controller/Debugging.php b/src/Controller/Debugging.php index 5e38fa9..62e2225 100644 --- a/src/Controller/Debugging.php +++ b/src/Controller/Debugging.php @@ -39,6 +39,12 @@ class Debugging extends Console { $phpinfo = ob_get_contents() ; ob_end_clean() ; + $phpinfo = str_replace([ + 'body {background-color: #fff;' + ], [ + 'body {' + ], $phpinfo); + return $this->renderView("lean-console/page/debugging/phpinfo", get_defined_vars()); } } \ No newline at end of file diff --git a/src/Controller/Storage.php b/src/Controller/Storage.php index cccb4ea..ab9a89a 100644 --- a/src/Controller/Storage.php +++ b/src/Controller/Storage.php @@ -2,20 +2,15 @@ namespace Lean\Console\Controller; -use League\Route\Router; - use Picea\Ui\Method\FormHandler; use Psr\Http\Message\{ ResponseInterface, ServerRequestInterface }; -use Notes\Tell\Attribute\Language, Notes\Route\Attribute\Method\Route; +use Notes\Route\Attribute\Method\Route; -use \Lean\Console\Lib, - \Lean\Console\Form; +use Lean\Console\Lib, + Lean\Console\Form; -use Picea\Extension\UrlExtension; - -use Ulmus\Annotation\Classes\Table, - Ulmus\Container\AdapterProxy; +use Ulmus\Container\AdapterProxy; class Storage extends Console { use Lib\ConsoleControllerTrait; @@ -69,15 +64,7 @@ class Storage extends Console { #[Route(route: "/storage/session/content/{hash}", name: "lean.console:storage.session_content")] # migrated from: "/storage/session/content/{hash}", "name" => "lean.console:storage.session_content" public function sessionContent(ServerRequestInterface $request, array $arguments) : ResponseInterface { - $sess = session_encode(); - - session_decode(file_get_contents($this->sessionPath() . $arguments['hash'])); - - $data = array_combine(array_keys($_SESSION), array_values($_SESSION)); - - session_decode($sess); - - return $this->renderJson($data); + return $this->renderText(file_get_contents($this->sessionPath() . $arguments['hash']) ?: "-"); } protected function sessionPath() : string diff --git a/src/Controller/Testing.php b/src/Controller/Testing.php new file mode 100644 index 0000000..68684fe --- /dev/null +++ b/src/Controller/Testing.php @@ -0,0 +1,31 @@ +form(new Form\Testing\Test($this->container, $this->testFetcher), $context); + + if ($context->formExecuted) { + return $context->formExecutionStatus; + } + + return $this->renderView("lean-console/page/testing/tests", get_defined_vars()); + } +} \ No newline at end of file diff --git a/src/Entity/Sqlite/Column.php b/src/Entity/Sqlite/Column.php index 2e2634a..90805af 100644 --- a/src/Entity/Sqlite/Column.php +++ b/src/Entity/Sqlite/Column.php @@ -1,6 +1,6 @@ valid(); } - public function execute(FormContextInterface $context) : void + public function execute(FormContextInterface $context) : mixed { $deleted = $failed = 0; @@ -57,6 +57,7 @@ class Picea implements FormInterface } if ($deleted) { + return true; # $context->pushMessage(); } diff --git a/src/Form/Storage/Database/GenerateEntity.php b/src/Form/Storage/Database/GenerateEntity.php index cde99a4..a07bf5e 100644 --- a/src/Form/Storage/Database/GenerateEntity.php +++ b/src/Form/Storage/Database/GenerateEntity.php @@ -23,8 +23,6 @@ class GenerateEntity implements FormInterface public function validate(FormContextInterface $context) : bool { - - return $context->valid(); } diff --git a/src/Form/Storage/Database/Migrate.php b/src/Form/Storage/Database/Migrate.php index a7b5b02..5235531 100644 --- a/src/Form/Storage/Database/Migrate.php +++ b/src/Form/Storage/Database/Migrate.php @@ -131,22 +131,27 @@ class Migrate implements FormInterface $alter = $context->alterAll ? explode(',', $context->alterAll) : [ $context->alter ]; - foreach(array_filter($alter) as $entity) { - if ($this->definition[$entity]['table']->modifier->type === Lib\Database\ModifierTypeEnum::Alter) { - $adapter = $entity::resolveEntity()->sqlAdapter()->adapter(); + try { + foreach (array_filter($alter) as $entity) { + if ($this->definition[$entity]['table']->modifier->type === Lib\Database\ModifierTypeEnum::Alter) { + $adapter = $entity::resolveEntity()->sqlAdapter()->adapter(); - $def = $this->definition[$entity]['columns']->filterAlter(); + $def = $this->definition[$entity]['columns']->filterAlter(); - if ( $adapter->splitAlterQuery() ) { - $def->walk(fn(Lib\Database\Definition $definition) => - $entity::repository()->alterTable([ $definition->toArray() ]) - ); - } - else { - $entity::repository()->alterTable($def->map( fn(Lib\Database\Definition $e) => $e->toArray() )); + if ($adapter->splitAlterQuery()) { + $def->walk(fn(Lib\Database\Definition $definition) => $entity::repository()->alterTable([$definition->toArray()]) + ); + } else { + $entity::repository()->alterTable($def->map(fn(Lib\Database\Definition $e) => $e->toArray())); + } } } } + catch(\Throwable $t) { + $context->pushMessage( + Lib\Message::generateError($t->getMessage()) + ); + } $this->initialize($context); } diff --git a/src/Form/Testing/Test.php b/src/Form/Testing/Test.php new file mode 100644 index 0000000..26caa8a --- /dev/null +++ b/src/Form/Testing/Test.php @@ -0,0 +1,70 @@ +class ?? false) { + $this->definition = $this->testFetcher->compile()[$context->class]; + } + } + + public function validate(FormContextInterface $context) : bool + { + if (isset($this->definition->attribute) && $this->definition->attribute->waitFor) { + $this->waitFor = new $this->definition->attribute->waitFor(); + } + + return $context->valid(); + } + + public function execute(FormContextInterface $context) : mixed + { + if (isset($this->waitFor)) { + $this->waitFor->run(); + } + + $controller = $this->container->get($context->class); + + $test = $this->definition->methods->filtersOne(fn($e) => $e->attribute->name === $context->name); + + $request = $context->getRequest() + ->withMethod($context->method) + ->withAttribute('arguments', $test->attribute->arguments) + ->withQueryParams($test->attribute->withQueryParams) + ->withParsedBody($test->attribute->withParsedBody); + + $arguments = []; # @todo + + $result = $controller->{$test->name}($request, $arguments); + + return $result; + } + + public function attributeCollection(array $collection) : EntityCollection + { + $collection = new EntityCollection(...$collection); + $collection->entityClass = static::class; + + return $collection; + } +} diff --git a/src/Form/Testing/TestContext.php b/src/Form/Testing/TestContext.php new file mode 100644 index 0000000..837b2bb --- /dev/null +++ b/src/Form/Testing/TestContext.php @@ -0,0 +1,14 @@ + [ + 'class' => 'success', + 'header' => 'Succès !', + 'message' => '' + ], + + 'error' => [ + 'class' => 'danger', + 'header' => 'Error !', + 'message' => '' + ], + + 'warning' => [ + 'class' => 'warning', + 'header' => 'Attention !', + 'message' => '' + ], + ]; + + public string $type; + + public string $message; + + public string $class; + + public ? string $header = null; + + public function __construct(string $message, string $type = "error", ? string $header = null, ? string $class = null) + { + $this->message = $message; + + $this->type = $type; + + if ( $header !== null ) { + $this->header = $header; + } + else { + $this->header = static::MESSAGE_TYPE[$type]['header']; + } + + if ( $class !== null ) { + $this->class = $class; + } + else { + $this->class = static::MESSAGE_TYPE[$type]['class']; + } + } + + public function render() : string + { + return << +
+ {$this->header} + {$this->message} +
+ + HTML; + } + + public function renderJson() : array + { + return [ + 'name' => 'show-notification', + 'type' => [ + 'error' => 'danger', + 'success' => 'success', + 'warning' => 'warning', + ][$this->type], + 'shake' => '.wrapper', + 'message' => $this->message, + ]; + } + + public function isError() : bool + { + return $this->type === "error"; + } + + public static function generateSuccess(string $message, ? string $header = null, ? string $class = null) : self + { + return new static($message, 'success', $header, $class); + } + + public static function generateError(string $message, ? string $header = null, ? string $class = null) : self + { + return new static($message, 'error', $header, $class); + } + + public static function generateWarning(string $message, ? string $header = null, ? string $class = null) : self + { + return new static($message, 'warning', $header, $class); + } +} diff --git a/src/Lib/Testing/TestFetcher.php b/src/Lib/Testing/TestFetcher.php new file mode 100644 index 0000000..7f58186 --- /dev/null +++ b/src/Lib/Testing/TestFetcher.php @@ -0,0 +1,125 @@ +cache = $cache; + + if ($folderList !== null) { + $this->folderList = $folderList; + } + + if ($annotations !== null) { + $this->annotations = $annotations; + } + else { + $this->annotations = [ + 'object' => [ Attribute\TestParameter::class ], + 'method' => [ Attribute\Test::class ], + ]; + } + } + + public function addFolder($folder) : void + { + $this->folderList[] = $folder; + } + + public function setFolderList(array $list) : void + { + $this->folderList = $list; + } + + public function getNodeList() : array + { + $list = []; + + return $list; + } + + public function compile() : array + { + return $this->handleCaching(substr(md5(serialize($this->annotations)), 0, 7), function() : array { + foreach($this->scan() as $namespace => $file) { + if ($file->getExtension() !== "php") { + continue; + } + + $class = $this->generateClassname($file->getBasename(".php"), $namespace); + $objectResolver = new ObjectResolver($class, $this->cache); + + $testParam = $objectResolver->reflectedClass->getClassAttributeListFromClassname($this->annotations['object'], true, false)[0] ?? false; + + if ($testParam) { + $entity = new TestFetcherItem(); + + $entity->attribute = $testParam; + $entity->methods = ArrayCollection::instance(); + +/* $list[$class] = [ + 'attribute' => $testParam, + 'methods' => [], + ]; +*/ + foreach ($objectResolver->reflectedClass->getMethodAttributeListFromClassname($this->annotations['method'], false, false) as $method => $controllers) { + foreach ($controllers as $test) { + /*$list[$class]['methods'][] = [ + 'name' => $method, + 'attribute' => $test + ] ;*/ + $entity->methods->push(new TestFetcherMethod( + name: $method, + attribute: $test + )); + } + } + + $list[$class] = $entity; + } + } + + return $list ?? []; + }); + } + + private function scan(? array $folders = null) : Generator + { + foreach($folders ?: $this->folderList as $namespace => $folder) { + if ( ! file_exists($folder) ) { + throw new RuntimeException(sprintf("Folder `%s` can not be found or scanned", $folder)); + } + + foreach (new DirectoryIterator($folder) as $fileinfo) { + if ( ! $fileinfo->isDot() ) { + if ( $fileinfo->isDir() ) { + foreach($this->scan([ "{$namespace}\\" . $fileinfo->getBasename() => $fileinfo->getPathname() ]) as $ns2 => $fi2) { + yield $ns2 => $fi2; + } + } + else { + yield $namespace => $fileinfo; + } + } + } + } + } + + protected function generateClassname($file, $namespace) + { + return "\\$namespace\\$file"; + } +} diff --git a/src/Lib/Testing/TestFetcherItem.php b/src/Lib/Testing/TestFetcherItem.php new file mode 100644 index 0000000..e6e1e25 --- /dev/null +++ b/src/Lib/Testing/TestFetcherItem.php @@ -0,0 +1,16 @@ +*/ $children = [], + ) {} +} \ No newline at end of file diff --git a/src/Lib/Testing/TestPreprocessorInterface.php b/src/Lib/Testing/TestPreprocessorInterface.php new file mode 100644 index 0000000..2221508 --- /dev/null +++ b/src/Lib/Testing/TestPreprocessorInterface.php @@ -0,0 +1,8 @@ + -
LEAN {{ $this->version() }}
+{% use Psr\Http\Message\ServerRequestInterface %} - - +{% function.inline navItem(ServerRequestInterface $request, string $route, string $lang) %} +
  • + {% lang $lang %} +
  • +{% endfunction %} - - + diff --git a/view/lean-console/base/layout.phtml b/view/lean-console/base/layout.phtml index 93fd6a0..75e9fa4 100644 --- a/view/lean-console/base/layout.phtml +++ b/view/lean-console/base/layout.phtml @@ -8,9 +8,13 @@ - - + + + + + + {{ title() }} @@ -25,24 +29,24 @@
    - {% section "header" %} - - {% endsection %} + {% section "header" %}{% endsection %}
    -

    {% section "subheader" %}{% _ "page-title" %}{% endsection %}

    {% section "breadcrumb" %} {% endsection %} +

    {% section "subheader" %}{% _ "page-title" %}{% endsection %}

    + {% section "message" %} + {% view "lean/widget/message" %} + {% endsection %} + {% section "content" %}{% endsection %}
    diff --git a/view/lean-console/page/caching/picea.phtml b/view/lean-console/page/caching/picea.phtml index e91a820..c4ffcd2 100644 --- a/view/lean-console/page/caching/picea.phtml +++ b/view/lean-console/page/caching/picea.phtml @@ -9,42 +9,64 @@ {% endsection %} {% section "content" %} - {% foreach $list as $path => $folder %} -
    -
    -

    {{ $path }}

    +
    +
    +
    +
    + {% include "lean-console/svg/icon-picea.svg" %} +
    - {% ui:form.post "caching.picea" %} - - {% ui:endform %} -
    +

    {% _ "header" %}

    + + + {% ui:form.post "caching.picea" %} + + {% ui:endform %} +
    + +
    + +
    {% _ "table.name" %}
    + +
    + {% _ "table.namespace" %} +
    + +
    + {% _ "table.view" %} +
    +
    + + {% foreach $list as $path => $folder %} +
    {{ $path }}
    -
    {% foreach $folder as $file %} {% php $import = include($file) %} -
    - {{ substr((string) $file, strlen($path)) }} +
    +
    {{ substr((string) $file, strlen($path)) }}
    -
    +
    {{ $import['namespace'] }}
    -
    +
    {{ $import['view'] }}
    {% endforeach %} -
    -
    - {% endforeach %} + {% endforeach %} + + {% endsection %} \ No newline at end of file diff --git a/view/lean-console/page/debugging/logs.phtml b/view/lean-console/page/debugging/logs.phtml index 274128b..ca2eb7a 100644 --- a/view/lean-console/page/debugging/logs.phtml +++ b/view/lean-console/page/debugging/logs.phtml @@ -7,7 +7,12 @@ {% section "content" %}
    -

    {{ $path }}

    +
    +
    + {% include "lean-console/svg/icon-logs.svg" %} +
    +

    {{ $path }}

    +
    {% ui:form.get current_url() %} {% _ 'logs.line' %} {% ui:text 'line', get('line') ?? 100, [ 'onchange' => "this.closest('form').submit()" ] %} diff --git a/view/lean-console/page/request/route.phtml b/view/lean-console/page/request/route.phtml index eac7fa6..9ff6f01 100644 --- a/view/lean-console/page/request/route.phtml +++ b/view/lean-console/page/request/route.phtml @@ -9,28 +9,36 @@ {% endsection %} {% function routeHtml($route) %} -
    - {{ $route->name }} +
    + {{ $route->name }}
    {{ $route->getRoute() }}
    -
    {{ implode(', ', (array) ( $route->method ?? $route->methods )) }}
    +
    + {% foreach (array) $route->method as $method %} + {{ $method }} + {% endforeach %} +
    - {{ $route->class }}::{{ $route->classMethod }} + {{ ltrim($route->class, '\\') }}::{{ $route->classMethod }}
    {% endfunction %} {% section "content" %} -
    +
    +
    + {% include "lean-console/svg/icon-route.svg" %} +
    +

    {% _ 'route.header' %}

    -
    +
    {% if $routes %} - -
    {% _ 'route.name' %}
    + +
    {% _ 'route.name' %}
    {% _ 'route.uri' %}
    -
    {% _ 'route.methods' %}
    +
    {% _ 'route.methods' %}
    {% _ 'route.target' %}
    @@ -52,9 +60,13 @@
    {% endsection %} \ No newline at end of file diff --git a/view/lean-console/page/storage/database.phtml b/view/lean-console/page/storage/database.phtml index 6c6d95c..068222d 100644 --- a/view/lean-console/page/storage/database.phtml +++ b/view/lean-console/page/storage/database.phtml @@ -13,110 +13,82 @@ {% section "content" %} {% if $connections %} {% foreach $connections as $connection %} -
    - {% php $conf = $connection->getConfiguration(); %} -
    - -
    {% _ 'database.connection' %}
    -
    {% _ 'database.adapter' %}
    -
    {% _ 'database.host' %}
    -
    {% _ 'database.name' %}
    -
    {% _ 'database.username' %}
    -
    + {% php $conf = $connection->getConfiguration(); %} -
    -
    {{ $connection->name }}
    -
    {{ $connection->adapter()::class }}
    -
    {{ $connection->adapter()->hostname ?? '-' }}:{{ $connection->adapter()->port ?? '-' }}
    -
    {{ $connection->adapter()->database ?? $connection->adapter()->path ?? '-' }}
    -
    {{ $connection->adapter()->username ?? '-' }}
    +
    +
    +
    + {% include "lean-console/svg/icon-database.svg" %}
    -
    - -
    {% _ 'database.table.name' %}
    -
    {% _ 'database.table.table-fields' %}
    -
    {% _ 'database.table.query' %}
    -
    {% _ 'database.table.count' %}
    -
    {% _ 'database.table.actions' %}
    -
    +

    {% _.raw 'database.connection', [ 'name' => $connection->name ] %}

    +
    - {% ui:form.post "database.migrate", current_url() %} - {% foreach array_filter($migrations->entities, fn($e) => $e->databaseAdapter() === $connection) as $entity => $item %} -
    -
    📄 {{ $item->tableName() }}
    -
    {% _ "database.table.fields", [ 'count' => count( $item->fieldList() ) ] %}
    -
    - {% if $context->definition[$entity]['table']->modifier->query ?? false %} - {{= implode('

    ',(array) $context->definition[$entity]['table']->modifier->query) }}
    - {% else %} -
    ✓ {% _ 'database.table.uptodate' %}
    - {% endif %} +
    + {% ui:form.post "database.migrate", current_url() %} + {% foreach array_filter($migrations->entities, fn($e) => $e->databaseAdapter() === $connection) as $entity => $item %} +
    +
    +
    + {% include "lean-console/svg/icon-table.svg" %}
    -
    - {% if $context->definition[$entity]['table']->modifier->type !== ModifierTypeEnum::Create %} - {{ $entity::repository()->count() }} - {% endif %} -
    +
    +
    {{ $item->tableName() }}
    +
    {{ $entity }}
    +
    + {% _ "database.table.fields", [ 'count' => count( $item->fieldList() ) ] %} -
    - {% switch $context->definition[$entity]['table']->modifier->type ?? false %} - {% case ModifierTypeEnum::Create %} - {% php $createAll[] = $entity %} - -
    - -
    - {% break %} - - {% case ModifierTypeEnum::Alter %} - {% php $alterAll[] = $entity %} - -
    - -
    - {% break %} - {% endswitch %} - -
    - {% _ 'database.table.add-column' %} + {% if $context->definition[$entity]['table']->modifier->type !== ModifierTypeEnum::Create %} + {% _.raw 'database.table.entries', [ 'count' => $entity::repository()->count() ] %} + {% endif %}
    - {% endforeach %} - - {% if ($createAll ?? 0) > 1 %} -
    - +
    + {% if $context->definition[$entity]['table']->modifier->query ?? false %} + {{= implode('

    ',(array) $context->definition[$entity]['table']->modifier->query) }}
    + {% else %} + ✓ {% _ 'database.table.uptodate' %} + {% endif %}
    - {% endif %} - {% if ($alterAll ?? 0) > 1 %} -
    - +
    +
    + {% switch $context->definition[$entity]['table']->modifier->type ?? false %} + {% case ModifierTypeEnum::Create %} + {% php $createAll[] = $entity %} + +
    + {% break %} + + {% case ModifierTypeEnum::Alter %} + {% php $alterAll[] = $entity %} + + {% break %} + {% endswitch %} + {% _ 'database.table.add-column' %} +
    - {% endif %} - {% ui:endform %} -
    +
    + {% endforeach %} + {% ui:endform %}
    {% endforeach %} {% endif %} {% endsection %} \ No newline at end of file diff --git a/view/lean-console/page/storage/database.phtml.old b/view/lean-console/page/storage/database.phtml.old new file mode 100644 index 0000000..14fd0d9 --- /dev/null +++ b/view/lean-console/page/storage/database.phtml.old @@ -0,0 +1,123 @@ +{% use Lean\Console\Lib\Database\ModifierTypeEnum %} + +{% extends "lean-console/base/layout" %} + +{% language.set "lean.storage" %} + +{% title _("title") %} + +{% section "breadcrumb-items" %} + +{% endsection %} + +{% section "content" %} + {% if $connections %} + {% foreach $connections as $connection %} +
    + {% php $conf = $connection->getConfiguration(); %} + +
    + +
    {% _ 'database.connection' %}
    +
    {% _ 'database.adapter' %}
    +
    {% _ 'database.host' %}
    +
    {% _ 'database.name' %}
    +
    {% _ 'database.username' %}
    +
    + +
    +
    {{ $connection->name }}
    +
    {{ $connection->adapter()::class }}
    +
    {{ $connection->adapter()->hostname ?? '-' }}:{{ $connection->adapter()->port ?? '-' }}
    +
    {{ $connection->adapter()->database ?? $connection->adapter()->path ?? '-' }}
    +
    {{ $connection->adapter()->username ?? '-' }}
    +
    + +
    + +
    {% _ 'database.table.name' %}
    +
    {% _ 'database.table.table-fields' %}
    +
    {% _ 'database.table.query' %}
    +
    {% _ 'database.table.count' %}
    +
    {% _ 'database.table.actions' %}
    +
    + + {% ui:form.post "database.migrate", current_url() %} + {% foreach array_filter($migrations->entities, fn($e) => $e->databaseAdapter() === $connection) as $entity => $item %} +
    +
    📄 {{ $item->tableName() }}
    +
    {% _ "database.table.fields", [ 'count' => count( $item->fieldList() ) ] %}
    +
    + {% if $context->definition[$entity]['table']->modifier->query ?? false %} + {{= implode('

    ',(array) $context->definition[$entity]['table']->modifier->query) }}
    + {% else %} +
    ✓ {% _ 'database.table.uptodate' %}
    + {% endif %} +
    + +
    + {% if $context->definition[$entity]['table']->modifier->type !== ModifierTypeEnum::Create %} + {{ $entity::repository()->count() }} + {% endif %} +
    + +
    + {% switch $context->definition[$entity]['table']->modifier->type ?? false %} + {% case ModifierTypeEnum::Create %} + {% php $createAll[] = $entity %} + +
    + +
    + {% break %} + + {% case ModifierTypeEnum::Alter %} + {% php $alterAll[] = $entity %} + +
    + +
    + {% break %} + {% endswitch %} + + +
    +
    + {% endforeach %} + + {% if ($createAll ?? 0) > 1 %} +
    + +
    + {% endif %} + + {% if ($alterAll ?? 0) > 1 %} +
    + +
    + {% endif %} + {% ui:endform %} +
    +
    +
    + {% endforeach %} + {% endif %} + + +{% endsection %} \ No newline at end of file diff --git a/view/lean-console/page/storage/session.phtml b/view/lean-console/page/storage/session.phtml index 27797bc..6b7dea1 100644 --- a/view/lean-console/page/storage/session.phtml +++ b/view/lean-console/page/storage/session.phtml @@ -1,31 +1,36 @@ {% extends "lean-console/base/layout" %} -{% language.set "lean.storage" %} +{% language.set "lean.storage.session" %} {% title _("title") %} {% section "breadcrumb-items" %} - + {% endsection %} {% section "content" %} -
    +
    -

    {% _ 'session.header' %}

    +
    + {% include "lean-console/svg/icon-user.svg" %} +
    + +

    {% _ 'header' %}

    -
    - -
    {% _ 'session.count', [ 'count' => count($sessions) ] %}
    +
    + +
    {% _ 'count', [ 'count' => count($sessions) ] %}
    {% foreach $sessions as $session %} -
    - {{ $session }} +
    +
    {{ $session }}
    +
    {{ filesize(realpath($path . DIRECTORY_SEPARATOR . $session)) }} byte(s)
    {{ date('Y-m-d H:i:s', filemtime(realpath($path . DIRECTORY_SEPARATOR . $session))) }}
    @@ -34,9 +39,10 @@
    {% endsection %} \ No newline at end of file diff --git a/view/lean-console/page/templating/picea.phtml b/view/lean-console/page/templating/picea.phtml index af7b2d5..4b971b4 100644 --- a/view/lean-console/page/templating/picea.phtml +++ b/view/lean-console/page/templating/picea.phtml @@ -9,33 +9,49 @@ {% endsection %} {% section "content" %} - {% foreach $list as $path => $folder %} -
    -
    -

    {{ $path }}

    -
    +
    +
    +
    + {% include "lean-console/svg/icon-picea.svg" %} +
    + +

    {% _ "header" %}

    +
    + +
    - {% endforeach %} + {% endforeach %} +
    +
    {% endsection %} \ No newline at end of file diff --git a/view/lean-console/page/testing/tests.phtml b/view/lean-console/page/testing/tests.phtml new file mode 100644 index 0000000..781e4d2 --- /dev/null +++ b/view/lean-console/page/testing/tests.phtml @@ -0,0 +1,92 @@ +{% extends "lean-console/base/layout" %} + +{% language.set "lean.testing" %} + +{% title _("title") %} + +{% section "breadcrumb-items" %} + +{% endsection %} + +{% section "content" %} +
    +
    +
    +
    + {% include "lean-console/svg/icon-test.svg" %} +
    +

    {% _ "header" %}

    +
    + +
    +
    + +
    + {% foreach $this->testFetcher->compile() as $class => $definition %} + +
    +
    + {% include "lean-console/svg/icon-php.svg" %} +
    + +
    +

    {{ ltrim($class, '\\') }}

    + +
    +
    + + {% foreach $definition->methods as $method %} +
    +
    +
    {% include "lean-console/svg/icon-awaiting.svg" %}
    +
    {% include "lean-console/svg/icon-pending.svg" %}
    +
    {% include "lean-console/svg/icon-failure.svg" %}
    +
    {% include "lean-console/svg/icon-success.svg" %}
    + + {{ $method->name }}(){{ $method->attribute->name }} +
    + +
    + {{ $method->attribute->method }} +
    + +
    + {% ui:form.post "tests.run" %} + {% ui:hidden "class", $class %} + {% ui:hidden "name", $method->attribute->name %} + {% ui:hidden "method", $method->attribute->method %} + + + {% ui:endform %} +
    +
    + {% endforeach %} +
    + {% endforeach %} +
    +
    + + +{% endsection %} \ No newline at end of file diff --git a/view/lean-console/page/update/index.phtml b/view/lean-console/page/update/index.phtml index c6bc6e2..704abf1 100644 --- a/view/lean-console/page/update/index.phtml +++ b/view/lean-console/page/update/index.phtml @@ -29,14 +29,15 @@ {% endfunction %} {% section "content" %} -
    +
    +
    {% include "lean-console/svg/icon-update.svg" %}

    {% _ 'git.header' %}

    -
    +
    - 'git status' output +
    'git status' output
    {% foreach $status as $line %} @@ -45,12 +46,19 @@ {{ $line }} {% endif %}
    + {% or %} +
    +
    + {% include "lean-console/svg/icon-empty.svg" %} +
    {% _ "git.status:nothing" %}
    +
    +
    {% endforeach %}
    - 'git diff' output +
    'git diff' output
    {% foreach $diff as $line %} @@ -59,18 +67,45 @@ {{ $line }} {% endif %}
    + {% or %} +
    +
    + {% include "lean-console/svg/icon-empty.svg" %} +
    {% _ "git.status:nothing" %}
    +
    +
    {% endforeach %}
    +
    {% endsection %} \ No newline at end of file diff --git a/view/lean-console/svg/icon-awaiting.svg b/view/lean-console/svg/icon-awaiting.svg new file mode 100644 index 0000000..faecd5a --- /dev/null +++ b/view/lean-console/svg/icon-awaiting.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-check.svg b/view/lean-console/svg/icon-check.svg new file mode 100644 index 0000000..2cdb4c1 --- /dev/null +++ b/view/lean-console/svg/icon-check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-clock.svg b/view/lean-console/svg/icon-clock.svg new file mode 100644 index 0000000..ba4cf3c --- /dev/null +++ b/view/lean-console/svg/icon-clock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-code.svg b/view/lean-console/svg/icon-code.svg new file mode 100644 index 0000000..ccec3b0 --- /dev/null +++ b/view/lean-console/svg/icon-code.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-dashboard.svg b/view/lean-console/svg/icon-dashboard.svg new file mode 100644 index 0000000..7ced2ad --- /dev/null +++ b/view/lean-console/svg/icon-dashboard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-database.svg b/view/lean-console/svg/icon-database.svg new file mode 100644 index 0000000..ba9a189 --- /dev/null +++ b/view/lean-console/svg/icon-database.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-empty.svg b/view/lean-console/svg/icon-empty.svg new file mode 100644 index 0000000..3c133ef --- /dev/null +++ b/view/lean-console/svg/icon-empty.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-failure.svg b/view/lean-console/svg/icon-failure.svg new file mode 100644 index 0000000..b7bf54b --- /dev/null +++ b/view/lean-console/svg/icon-failure.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-file.svg b/view/lean-console/svg/icon-file.svg new file mode 100644 index 0000000..ea58bfb --- /dev/null +++ b/view/lean-console/svg/icon-file.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-lightning.svg b/view/lean-console/svg/icon-lightning.svg new file mode 100644 index 0000000..845a415 --- /dev/null +++ b/view/lean-console/svg/icon-lightning.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-logo.svg b/view/lean-console/svg/icon-logo.svg new file mode 100644 index 0000000..4e0727e --- /dev/null +++ b/view/lean-console/svg/icon-logo.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-logs.svg b/view/lean-console/svg/icon-logs.svg new file mode 100644 index 0000000..4765e21 --- /dev/null +++ b/view/lean-console/svg/icon-logs.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-pending.svg b/view/lean-console/svg/icon-pending.svg new file mode 100644 index 0000000..f01b53a --- /dev/null +++ b/view/lean-console/svg/icon-pending.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-php.svg b/view/lean-console/svg/icon-php.svg new file mode 100644 index 0000000..9ae9b61 --- /dev/null +++ b/view/lean-console/svg/icon-php.svg @@ -0,0 +1,6 @@ + + + + + php + \ No newline at end of file diff --git a/view/lean-console/svg/icon-picea.svg b/view/lean-console/svg/icon-picea.svg new file mode 100644 index 0000000..6196739 --- /dev/null +++ b/view/lean-console/svg/icon-picea.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-route.svg b/view/lean-console/svg/icon-route.svg new file mode 100644 index 0000000..708f34a --- /dev/null +++ b/view/lean-console/svg/icon-route.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-success.svg b/view/lean-console/svg/icon-success.svg new file mode 100644 index 0000000..5f4a9f9 --- /dev/null +++ b/view/lean-console/svg/icon-success.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-sun.svg b/view/lean-console/svg/icon-sun.svg new file mode 100644 index 0000000..3063987 --- /dev/null +++ b/view/lean-console/svg/icon-sun.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-table.svg b/view/lean-console/svg/icon-table.svg new file mode 100644 index 0000000..8787457 --- /dev/null +++ b/view/lean-console/svg/icon-table.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/view/lean-console/svg/icon-test.svg b/view/lean-console/svg/icon-test.svg new file mode 100644 index 0000000..12d4403 --- /dev/null +++ b/view/lean-console/svg/icon-test.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-update.svg b/view/lean-console/svg/icon-update.svg new file mode 100644 index 0000000..85c53b1 --- /dev/null +++ b/view/lean-console/svg/icon-update.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/view/lean-console/svg/icon-user.svg b/view/lean-console/svg/icon-user.svg new file mode 100644 index 0000000..1362601 --- /dev/null +++ b/view/lean-console/svg/icon-user.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file