workspaces 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/DESIGN.md +33 -9
- data/README.md +41 -0
- data/lib/workspaces/cli.rb +66 -10
- data/lib/workspaces/config.rb +27 -0
- data/lib/workspaces/coordinator.rb +32 -25
- data/lib/workspaces/dashboard/app.js +60 -8
- data/lib/workspaces/dashboard/arb-palette.css +82 -0
- data/lib/workspaces/dashboard/arb-previews-favicon.svg +11 -0
- data/lib/workspaces/dashboard/card.html.erb +2 -1
- data/lib/workspaces/dashboard/environment.js +2 -2
- data/lib/workspaces/dashboard/styles.css +237 -132
- data/lib/workspaces/dashboard/template.html.erb +2 -2
- data/lib/workspaces/dashboard_view.rb +24 -13
- data/lib/workspaces/front_door.rb +12 -2
- data/lib/workspaces/registry.rb +13 -11
- data/lib/workspaces/version.rb +1 -1
- data/lib/workspaces/workspace_lock.rb +137 -0
- data/lib/workspaces.rb +1 -0
- metadata +5 -2
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<section class="card" aria-labelledby="status">
|
|
3
3
|
<header class="card__header">
|
|
4
4
|
<p class="card__name"><span class="eyebrow">Workspace</span><span class="card__id"><%= @id %></span></p>
|
|
5
|
-
<a class="icon-link" href="<%= escape(
|
|
5
|
+
<span class="card__links"><a class="icon-link" href="<%= escape(index_href) %>" aria-label="All workspaces" title="All workspaces"><svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/></svg></a>
|
|
6
|
+
<a class="icon-link" href="<%= escape(settings_href) %>" aria-label="Settings and details" title="Settings and details"><svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" d="M10.52 5.57L10.69 2.69L13.31 2.69L13.48 5.57A6.6 6.6 0 0 1 15.50 6.40L17.66 4.49L19.51 6.34L17.60 8.50A6.6 6.6 0 0 1 18.43 10.52L21.31 10.69L21.31 13.31L18.43 13.48A6.6 6.6 0 0 1 17.60 15.50L19.51 17.66L17.66 19.51L15.50 17.60A6.6 6.6 0 0 1 13.48 18.43L13.31 21.31L10.69 21.31L10.52 18.43A6.6 6.6 0 0 1 8.50 17.60L6.34 19.51L4.49 17.66L6.40 15.50A6.6 6.6 0 0 1 5.57 13.48L2.69 13.31L2.69 10.69L5.57 10.52A6.6 6.6 0 0 1 6.40 8.50L4.49 6.34L6.34 4.49L8.50 6.40A6.6 6.6 0 0 1 10.52 5.57ZM9.20 12.00a2.8 2.8 0 1 0 5.6 0a2.8 2.8 0 1 0 -5.6 0Z"/></svg></a></span>
|
|
6
7
|
</header>
|
|
7
8
|
<div class="card__text">
|
|
8
9
|
<h1 id="status" role="status"><%= escape(@presentation['headline']) %></h1>
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
presetButtons.forEach((button) => {
|
|
87
87
|
const isSelected = !!selectedPreset && button.dataset.environmentPreset === selectedPreset;
|
|
88
88
|
button.setAttribute('aria-pressed', isSelected ? 'true' : 'false');
|
|
89
|
-
if (isSelected) button.classList.add('button--
|
|
90
|
-
else button.classList.remove('button--
|
|
89
|
+
if (isSelected) button.classList.add('button--selected');
|
|
90
|
+
else button.classList.remove('button--selected');
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
|