cornfield 0.29.0 → 0.31.0
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.
- package/core/mentions.js +1 -1
- package/core/strings.js +4 -5
- package/explorer/account-menu.js +89 -0
- package/explorer/capped.js +33 -0
- package/explorer/explorer.css +195 -106
- package/explorer/flows.js +5 -7
- package/explorer/forge-panel.js +8 -5
- package/explorer/house.css +3 -7
- package/explorer/house.js +1 -1
- package/explorer/index.html +76 -91
- package/explorer/keyboard.js +21 -1
- package/explorer/layers.js +9 -0
- package/explorer/main.js +12 -9
- package/explorer/mockups-model.js +1 -1
- package/explorer/panels.js +146 -87
- package/explorer/plugins.js +45 -15
- package/explorer/proposal.js +15 -10
- package/explorer/render.js +0 -5
- package/explorer/review-tokens.js +2 -1
- package/explorer/state.js +1 -1
- package/explorer/theme-model.js +0 -9
- package/explorer/theme.js +6 -14
- package/explorer/tokens.css +1 -0
- package/explorer/view.js +5 -5
- package/explorer/whatif.js +1 -1
- package/package.json +1 -1
- package/server/server.js +2 -0
package/explorer/view.js
CHANGED
|
@@ -157,13 +157,13 @@ export function setView(view) {
|
|
|
157
157
|
|
|
158
158
|
export function syncViewUi() {
|
|
159
159
|
const preset = state.view === 'dataflow';
|
|
160
|
+
// The View switch: the Map button is on for the map itself; Flow and House say theirs (house.js) in aria-pressed too
|
|
161
|
+
const map = $('preset-map-btn');
|
|
162
|
+
if (map) map.setAttribute('aria-pressed', String(state.view !== 'dataflow' && state.view !== 'house'));
|
|
160
163
|
const btn = $('preset-dataflow-btn');
|
|
161
|
-
if (btn)
|
|
162
|
-
btn.classList.toggle('hx-btn--active', preset);
|
|
163
|
-
btn.setAttribute('aria-pressed', String(preset));
|
|
164
|
-
}
|
|
164
|
+
if (btn) btn.setAttribute('aria-pressed', String(preset));
|
|
165
165
|
const layersBtn = $('legend-toggle-btn');
|
|
166
|
-
if (layersBtn) layersBtn.classList.toggle('hx-
|
|
166
|
+
if (layersBtn) layersBtn.classList.toggle('hx-layers-chip--dim', preset);
|
|
167
167
|
const note = $('layers-preset-note');
|
|
168
168
|
if (note) note.hidden = !preset;
|
|
169
169
|
const badge = $('instruction-badge-text');
|
package/explorer/whatif.js
CHANGED
|
@@ -535,7 +535,7 @@ function mountDrawerBox() {
|
|
|
535
535
|
drawerBox.id = 'whatif-drawer';
|
|
536
536
|
drawerBox.className = 'hx-block hx-whatif-drawer';
|
|
537
537
|
drawerBox.hidden = true;
|
|
538
|
-
block.
|
|
538
|
+
block.after(drawerBox); // under the facts, the mockups and the threads: the node comes first, the tools to edit it after
|
|
539
539
|
drawerBox.addEventListener('click', onClick);
|
|
540
540
|
return drawerBox;
|
|
541
541
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cornfield",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "A self-hostable dev dashboard with the topology map at its centre: proposals on the map, scenarios, outages and what-if edits, for any repo.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "popcorn245 (https://github.com/popcorn245)",
|
package/server/server.js
CHANGED
|
@@ -259,6 +259,8 @@ export function clientConfig(config, signIn = false) {
|
|
|
259
259
|
return {
|
|
260
260
|
name: 'cornfield',
|
|
261
261
|
version: PKG.version,
|
|
262
|
+
// Where cornfield's own docs are: the account menu's Docs link
|
|
263
|
+
docs: PKG.homepage,
|
|
262
264
|
title: config.title,
|
|
263
265
|
links: config.links || [],
|
|
264
266
|
// The theme's names and default, never a file's path (docs/config.md#theme)
|