|
1 |
| -{{ collection_name }} |
2 |
| -<ul> |
3 |
| -{{#groups}} |
4 |
| -<li>{{ name }} |
5 |
| - <ol> |
6 |
| - {{#tests}} |
7 |
| - <li>{{ . }}</li> |
8 |
| - {{/tests}} |
9 |
| - </ol> |
10 |
| -</li> |
11 |
| -{{/groups}} |
12 |
| -</ul> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en" class="h-full bg-white"> |
| 3 | + |
| 4 | +<head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 7 | + <title>{{project_name}} -- Caliper Dashboard</title> |
| 8 | + <link rel="stylesheet" href="../main.css"> |
| 9 | + <script src="../chart.min.js"></script> |
| 10 | + <script src="../alpine.min.js" defer></script> |
| 11 | + <script src="../moment.min.js"></script> |
| 12 | + <script src="../chartjs-adapter-moment.min.js"></script> |
| 13 | + <script src="../plot.js" defer></script> |
| 14 | +</head> |
| 15 | + |
| 16 | +<body class="h-full"> |
| 17 | + <div class="bg-white"> |
| 18 | + <div x-data="{ open: false }" @keydown.window.escape="open = false"> |
| 19 | + |
| 20 | + <div x-show="open" class="relative z-50 lg:hidden" |
| 21 | + x-description="Off-canvas menu for mobile, show/hide based on off-canvas menu state." x-ref="dialog" |
| 22 | + aria-modal="true" style="display: none;"> |
| 23 | + |
| 24 | + <div x-show="open" x-transition:enter="transition-opacity ease-linear duration-300" |
| 25 | + x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" |
| 26 | + x-transition:leave="transition-opacity ease-linear duration-300" x-transition:leave-start="opacity-100" |
| 27 | + x-transition:leave-end="opacity-0" class="fixed inset-0 bg-gray-900/80" |
| 28 | + x-description="Off-canvas menu backdrop, show/hide based on off-canvas menu state." style="display: none;"> |
| 29 | + </div> |
| 30 | + |
| 31 | + <div class="fixed inset-0 flex"> |
| 32 | + |
| 33 | + <div x-show="open" x-transition:enter="transition ease-in-out duration-300 transform" |
| 34 | + x-transition:enter-start="-translate-x-full" x-transition:enter-end="translate-x-0" |
| 35 | + x-transition:leave="transition ease-in-out duration-300 transform" x-transition:leave-start="translate-x-0" |
| 36 | + x-transition:leave-end="-translate-x-full" |
| 37 | + x-description="Off-canvas menu, show/hide based on off-canvas menu state." |
| 38 | + class="relative mr-16 flex w-full max-w-xs flex-1" @click.away="open = false" style="display: none;"> |
| 39 | + |
| 40 | + <div x-show="open" x-transition:enter="ease-in-out duration-300" x-transition:enter-start="opacity-0" |
| 41 | + x-transition:enter-end="opacity-100" x-transition:leave="ease-in-out duration-300" |
| 42 | + x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" |
| 43 | + x-description="Close button, show/hide based on off-canvas menu state." |
| 44 | + class="absolute left-full top-0 flex w-16 justify-center pt-5" style="display: none;"> |
| 45 | + <button type="button" class="-m-2.5 p-2.5" @click="open = false"> |
| 46 | + <span class="sr-only">Close sidebar</span> |
| 47 | + <svg class="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" |
| 48 | + aria-hidden="true"> |
| 49 | + <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path> |
| 50 | + </svg> |
| 51 | + </button> |
| 52 | + </div> |
| 53 | + |
| 54 | + <div class="flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-2"> |
| 55 | + <div class="flex h-16 shrink-0 items-center"> |
| 56 | + <a href="../index.html"> |
| 57 | + <img class="h-8 w-auto" src="../logo-with-name.svg" alt="Caliper"> |
| 58 | + </a> |
| 59 | + </div> |
| 60 | + <nav class="flex flex-1 flex-col"> |
| 61 | + <ul role="list" class="-mx-2 space-y-1"> |
| 62 | + {{#projects}} |
| 63 | + <li> |
| 64 | + <a href="{{.}}.html" |
| 65 | + class="text-gray-700 hover:text-orange-600 hover:bg-gray-50 group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold" |
| 66 | + x-state:on="Current" x-state:off="Default" |
| 67 | + x-state-description="Current: "bg-gray-50 text-orange-600", Default: "text-gray-700 hover:text-orange-600 hover:bg-gray-50""> |
| 68 | + <span |
| 69 | + class="flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white text-gray-400 border-gray-200 group-hover:border-orange-600 group-hover:text-orange-600">H</span> |
| 70 | + <span class="truncate">{{.}}</span> |
| 71 | + </a> |
| 72 | + </li> |
| 73 | + {{/projects}} |
| 74 | + </ul> |
| 75 | + </nav> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + |
| 82 | + <div class="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"> |
| 83 | + <div class="flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 bg-white px-6"> |
| 84 | + <div class="flex h-16 shrink-0 items-center"> |
| 85 | + <a href="../index.html"> |
| 86 | + <img class="h-8 w-auto" src="../logo-with-name.svg" alt="Caliper"> |
| 87 | + </a> |
| 88 | + </div> |
| 89 | + <nav class="flex flex-1 flex-col"> |
| 90 | + <ul role="list" class="-mx-2 space-y-1"> |
| 91 | + {{#projects}} |
| 92 | + <li> |
| 93 | + <a href="{{.}}.html" |
| 94 | + class="text-gray-700 hover:text-orange-600 hover:bg-gray-50 group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold" |
| 95 | + x-state-description="undefined: "bg-gray-50 text-orange-600", undefined: "text-gray-700 hover:text-orange-600 hover:bg-gray-50""> |
| 96 | + <span |
| 97 | + class="flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white text-gray-400 border-gray-200 group-hover:border-orange-600 group-hover:text-orange-600">W</span> |
| 98 | + <span class="truncate">{{.}}</span> |
| 99 | + </a> |
| 100 | + </li> |
| 101 | + {{/projects}} |
| 102 | + </ul> |
| 103 | + </nav> |
| 104 | + </div> |
| 105 | + </div> |
| 106 | + |
| 107 | + <div class="sticky top-0 z-40 flex items-center gap-x-6 bg-white px-4 py-4 shadow-sm sm:px-6 lg:hidden"> |
| 108 | + <button type="button" class="-m-2.5 p-2.5 text-gray-700 lg:hidden" @click="open = true"> |
| 109 | + <span class="sr-only">Open sidebar</span> |
| 110 | + <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" |
| 111 | + aria-hidden="true"> |
| 112 | + <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"> |
| 113 | + </path> |
| 114 | + </svg> |
| 115 | + </button> |
| 116 | + <div class="flex-1 text-sm font-semibold leading-6 text-gray-900">Caliber</div> |
| 117 | + </div> |
| 118 | + |
| 119 | + <main class="py-10 lg:pl-72"> |
| 120 | + <div class="px-4 sm:px-6 lg:px-8"> |
| 121 | + <div class="mx-auto max-w-auto text-center"> |
| 122 | + <h2 class="mt-2 text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl">{{project_name}} – {{collection_name}}</h2> |
| 123 | + <div class="max-w-auto mx-auto"> |
| 124 | + <div class="caliper-collection" data-source="{{project_name}}--{{collection_name}}"/> |
| 125 | + |
| 126 | + {{#groups}} |
| 127 | + <div> |
| 128 | + <h3 class="mt-2 text-xl font-bold tracking-tight text-gray-900 sm:text-4xl">{{name}}</h3> |
| 129 | + <div> |
| 130 | + {{#tests}} |
| 131 | + <div> |
| 132 | + <!-- <h4 class="mt-2 text font-bold tracking-tight text-gray-900 sm:text-2xl">{{.}}</h4> --> |
| 133 | + <div class="calipert-chart-container" style="height: 300px; width:80vw"> |
| 134 | + <canvas class="caliper-plot" data-source="{{project_name}}--{{collection_name}}" data-test-name="{{.}}" data-group-name="{{name}}" /> |
| 135 | + </div> |
| 136 | + </div> |
| 137 | + {{/tests}} |
| 138 | + </div> |
| 139 | + </div> |
| 140 | + {{/groups}} |
| 141 | + </div> |
| 142 | + </div> |
| 143 | + </div> |
| 144 | + </div> |
| 145 | + </main> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | +</body> |
| 149 | + |
| 150 | +</html> |
0 commit comments