Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clients/gallery/contract/SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ change, and regenerate the fixtures (`UPDATE_GOLDEN=1 pnpm test` in `../js`), re
| `order` | `[]` | Screen keys in the order they show. |
| `groups` | `{}` | `{"<group name>": {title?, size?, fit?}}`: a title over the manifest's; `size` (`"desktop"` or `"phone"`), the size of the group's shots whose names give no width, over the image's shape; `fit`, `"cover"` (the default: the image fills its card, cropped at the bottom) or `"contain"` (shown whole and centred, for a Mac app's windows). |
| `groupOrder` | `[]` | Group names in the order they show. |
| `credit` | `true` | The "Powered by VisualCI" line. |
| `credit` | `true` | The "Screenshots by VisualCI" line; false leaves it out. |
| `layout` | `"grid"` | `"grid"` or `"strip"`. |
| `themeSwitch` | `true` | Light and Dark buttons. Always false for the strip. |
| `seeAll` | `null` | `{href, text?}`: a link under the gallery; `text` defaults to "See all screenshots". |
Expand Down Expand Up @@ -167,9 +167,9 @@ the default text), `headingLevel`, `id`, `credit` as above.
[<h(0) class="vg-title">{title}</h(0)> when title isn't null]
… the grid's or the strip's lines …
[<p class="vg-see-all"><a href="{seeAll.href}">{seeAll.text}</a></p> when seeAll]
[<p class="vg-credit">Screenshot Gallery Powered by <a href="https://visualci.com">VisualCI.com</a></p> when credit]
[<p class="vg-credit">Screenshots by <a href="https://visualci.com">VisualCI</a></p> when credit]
<dialog class="vg-box" aria-labelledby="{id}-box-title">
<div class="vg-box-bar"><h(B) class="vg-box-title" id="{id}-box-title"></h(B)><div class="vg-controls">{THEMES if themeSwitch}{SIZES(desktop phone, " vg-box-sizes") if grid}{STEP(-1)}{STEP(1)}{CLOSE}</div></div>
<div class="vg-box-bar"><h(B) class="vg-box-title" id="{id}-box-title"></h(B)><div class="vg-controls">{THEMES if themeSwitch}{SIZES(desktop phone, " vg-box-sizes") if grid}{STEP(-1)}{STEP(1)}</div>{CLOSE}</div>
<div class="vg-box-view"></div>
</dialog>
</section>
Expand Down
4 changes: 2 additions & 2 deletions clients/gallery/contract/fixtures/duplicates/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<li class="vg-card" data-vg-screen="y" data-vg-sizes="desktop"><a class="vg-thumb" href="https://app.visualci.com/g/acme/web/y-light-1440.png" data-vg-open aria-label="Y: view full size"><img class="vg-img" data-vg-size="desktop" data-vg-theme="light" src="https://app.visualci.com/g/acme/web/y-light-1440.png" width="1440" height="900" alt="Y, desktop, light" loading="lazy" decoding="async"><img class="vg-img" data-vg-size="desktop" data-vg-theme="dark" src="https://app.visualci.com/g/acme/web/y-dark-1440.png" width="1440" height="900" alt="Y, desktop, dark" loading="lazy" decoding="async"></a><h3 class="vg-card-title">Y</h3><p class="vg-caption"></p></li>
</ul>
</div>
<p class="vg-credit">Screenshot Gallery Powered by <a href="https://visualci.com">VisualCI.com</a></p>
<p class="vg-credit">Screenshots by <a href="https://visualci.com">VisualCI</a></p>
<dialog class="vg-box" aria-labelledby="vg-box-title">
<div class="vg-box-bar"><h2 class="vg-box-title" id="vg-box-title"></h2><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h2 class="vg-box-title" id="vg-box-title"></h2><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
4 changes: 2 additions & 2 deletions clients/gallery/contract/fixtures/escaping/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h2 class="vg-title">Shots &lt;&amp; &quot;friends&quot;&gt;</h2>
<li class="vg-card" data-vg-screen="x" data-vg-sizes="phone"><a class="vg-thumb" href="https://app.visualci.com/g/acme/web/x-light-390.png" data-vg-open aria-label="X: view full size"><img class="vg-img" data-vg-size="phone" data-vg-theme="light" src="https://app.visualci.com/g/acme/web/x-light-390.png" width="390" height="844" alt="X, phone, light" loading="lazy" decoding="async"><img class="vg-img" data-vg-size="phone" data-vg-theme="dark" src="https://app.visualci.com/g/acme/web/x-dark-390.png" width="390" height="844" alt="X, phone, dark" loading="lazy" decoding="async"></a><h4 class="vg-card-title">X</h4></li>
</ul>
</div>
<p class="vg-credit">Screenshot Gallery Powered by <a href="https://visualci.com">VisualCI.com</a></p>
<p class="vg-credit">Screenshots by <a href="https://visualci.com">VisualCI</a></p>
<dialog class="vg-box" aria-labelledby="vg-box-title">
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
4 changes: 2 additions & 2 deletions clients/gallery/contract/fixtures/fleetlayer/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
<li class="vg-card" data-vg-screen="mac/proposal" data-vg-sizes="desktop" data-vg-fit="contain"><a class="vg-thumb" href="https://app.visualci.com/g/acme/web/mac/proposal-light.png" data-vg-open aria-label="Proposal: view full size"><img class="vg-img" data-vg-size="desktop" data-vg-theme="light" src="https://app.visualci.com/g/acme/web/mac/proposal-light.png" width="920" height="992" alt="Proposal, desktop, light" loading="lazy" decoding="async"><img class="vg-img" data-vg-size="desktop" data-vg-theme="dark" src="https://app.visualci.com/g/acme/web/mac/proposal-dark.png" width="920" height="992" alt="Proposal, desktop, dark" loading="lazy" decoding="async"></a><h3 class="vg-card-title">Proposal</h3></li>
</ul>
</div>
<p class="vg-credit">Screenshot Gallery Powered by <a href="https://visualci.com">VisualCI.com</a></p>
<p class="vg-credit">Screenshots by <a href="https://visualci.com">VisualCI</a></p>
<dialog class="vg-box" aria-labelledby="vg-box-title">
<div class="vg-box-bar"><h2 class="vg-box-title" id="vg-box-title"></h2><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h2 class="vg-box-title" id="vg-box-title"></h2><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
4 changes: 2 additions & 2 deletions clients/gallery/contract/fixtures/group-order/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h2 class="vg-title">Screenshots</h2>
<li class="vg-card" data-vg-screen="android/a" data-vg-sizes="phone"><a class="vg-thumb" href="https://app.visualci.com/g/acme/web/android/a-light.png" data-vg-open aria-label="A: view full size"><img class="vg-img" data-vg-size="phone" data-vg-theme="light" src="https://app.visualci.com/g/acme/web/android/a-light.png" width="1080" height="2400" alt="A, phone, light" loading="lazy" decoding="async"><img class="vg-img" data-vg-size="phone" data-vg-theme="dark" src="https://app.visualci.com/g/acme/web/android/a-dark.png" width="1080" height="2400" alt="A, phone, dark" loading="lazy" decoding="async"></a><h4 class="vg-card-title">A</h4></li>
</ul>
</div>
<p class="vg-credit">Screenshot Gallery Powered by <a href="https://visualci.com">VisualCI.com</a></p>
<p class="vg-credit">Screenshots by <a href="https://visualci.com">VisualCI</a></p>
<dialog class="vg-box" aria-labelledby="vg-box-title">
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
4 changes: 2 additions & 2 deletions clients/gallery/contract/fixtures/page-theme/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ <h2 class="vg-title">Screens</h2>
</ul>
</div>
<p class="vg-see-all"><a href="https://example.com/all">Every screen</a></p>
<p class="vg-credit">Screenshot Gallery Powered by <a href="https://visualci.com">VisualCI.com</a></p>
<p class="vg-credit">Screenshots by <a href="https://visualci.com">VisualCI</a></p>
<dialog class="vg-box" aria-labelledby="vg-box-title">
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1 class="vg-title">Product tour</h1>
</ul>
</div>
<dialog class="vg-box" aria-labelledby="tour-box-title">
<div class="vg-box-bar"><h2 class="vg-box-title" id="tour-box-title"></h2><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h2 class="vg-box-title" id="tour-box-title"></h2><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
2 changes: 1 addition & 1 deletion clients/gallery/contract/fixtures/strip/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
<p class="vg-see-all"><a href="/screenshots/">See all screenshots</a></p>
<dialog class="vg-box" aria-labelledby="vg-box-title">
<div class="vg-box-bar"><h2 class="vg-box-title" id="vg-box-title"></h2><div class="vg-controls"><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h2 class="vg-box-title" id="vg-box-title"></h2><div class="vg-controls"><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
4 changes: 2 additions & 2 deletions clients/gallery/contract/fixtures/visualci/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ <h2 class="vg-title">Screenshots</h2>
<li class="vg-card" data-vg-screen="screenshots/app/account" data-vg-sizes="phone"><a class="vg-thumb" href="https://app.visualci.com/g/acme/web/screenshots/app/account/390-light.png" data-vg-open aria-label="Account: view full size"><img class="vg-img" data-vg-size="phone" data-vg-theme="light" src="https://app.visualci.com/g/acme/web/screenshots/app/account/390-light.png" width="390" height="1200" alt="Account, phone, light" loading="lazy" decoding="async"><img class="vg-img" data-vg-size="phone" data-vg-theme="dark" src="https://app.visualci.com/g/acme/web/screenshots/app/account/390-dark.png" data-src-2x="https://app.visualci.com/g/acme/web/screenshots/app/account/390-dark-2x.png" width="390" height="1200" alt="Account, phone, dark" loading="lazy" decoding="async"></a><h4 class="vg-card-title">Account</h4></li>
</ul>
</div>
<p class="vg-credit">Screenshot Gallery Powered by <a href="https://visualci.com">VisualCI.com</a></p>
<p class="vg-credit">Screenshots by <a href="https://visualci.com">VisualCI</a></p>
<dialog class="vg-box" aria-labelledby="vg-box-title">
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div></div>
<div class="vg-box-bar"><h3 class="vg-box-title" id="vg-box-title"></h3><div class="vg-controls"><div class="vg-seg" role="group" aria-label="Theme"><button type="button" data-vg-set-theme="light" aria-pressed="false">Light</button><button type="button" data-vg-set-theme="dark" aria-pressed="false">Dark</button></div><div class="vg-seg vg-box-sizes" role="group" aria-label="Screen size"><button type="button" data-vg-set-size="desktop" aria-pressed="false">Desktop</button><button type="button" data-vg-set-size="phone" aria-pressed="false">Phone</button></div><button type="button" class="vg-icon" data-vg-step="-1" aria-label="Previous screen">‹</button><button type="button" class="vg-icon" data-vg-step="1" aria-label="Next screen">›</button></div><button type="button" class="vg-icon" data-vg-close aria-label="Close">×</button></div>
<div class="vg-box-view"></div>
</dialog>
</section>
Loading
Loading