@brunosouzas/stackledger 0.10.0 → 0.10.1
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/README.md
CHANGED
|
@@ -34,7 +34,7 @@ stackledger is a small, local-first tool for people and small companies who want
|
|
|
34
34
|
|
|
35
35
|
## Status
|
|
36
36
|
|
|
37
|
-
Early development; the latest release on npm is `@brunosouzas/stackledger` 0.10.
|
|
37
|
+
Early development; the latest release on npm is `@brunosouzas/stackledger` 0.10.1. The catalogue format, the `validate`, `map`, `build` and `report` commands, the `mcp` server, Mac discovery (`stackledger discover` and `stackledger drift`), the agent skills check and map (`stackledger skills validate` and `stackledger skills map`) and the Skills section of the site (`stackledger build --skills`) work from npm or from source (see [Usage](#usage)). The order of the rest is in the [roadmap](docs/roadmap.md). <!-- x-release-please-version -->
|
|
38
38
|
|
|
39
39
|
For a separate catalogue repository, copy the [pipeline template](examples/catalogue-repository/). Set up [protected hosting](docs/hosting.md) before the first deploy. The fictitious Northwind catalogue and its skill set run as a [demo](docs/demo.md) of the corporate mode, Software and Skills, at <https://stackledger-demo.pages.dev/>; it is protected by Cloudflare Access and only the owner can sign in, so for you it shows the sign-in page, which is the point. The [release guide](docs/release.md) covers npm publication, provenance and the SBOM.
|
|
40
40
|
|
|
@@ -91,8 +91,8 @@ Use npm with Node.js 22.12 or later. The package is `@brunosouzas/stackledger` f
|
|
|
91
91
|
|
|
92
92
|
<!-- x-release-please-start-version -->
|
|
93
93
|
```sh
|
|
94
|
-
npx @brunosouzas/stackledger@0.10.
|
|
95
|
-
npx @brunosouzas/stackledger@0.10.
|
|
94
|
+
npx @brunosouzas/stackledger@0.10.1 --help
|
|
95
|
+
npx @brunosouzas/stackledger@0.10.1 validate /path/to/catalogue
|
|
96
96
|
```
|
|
97
97
|
<!-- x-release-please-end -->
|
|
98
98
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/stackledger",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@brunosouzas/stackledger",
|
|
9
|
-
"version": "0.10.
|
|
9
|
+
"version": "0.10.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@brunosouzas/design-system": "0.11.0",
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
// An anchor to another site (catalogue-site, External links in a new tab): it opens in a new tab,
|
|
3
|
+
// with rel="noopener noreferrer" so the other page gets no window.opener and no referrer, and its
|
|
4
|
+
// accessible name ends with NEW_TAB so a screen reader announces the new tab (WCAG technique G201).
|
|
5
|
+
// With `label` (an icon link, whose anchor holds no text) the name is the aria-label; without it,
|
|
6
|
+
// the anchor's own text is the name and the suffix is visually hidden text, so nothing changes on
|
|
7
|
+
// screen. No `title` attribute: it would be read again as the description (Home link icons).
|
|
8
|
+
// Use it only for an absolute URL to another site: a relative href here would open the site's own
|
|
9
|
+
// page in a new tab, which the integration test "Only external anchors open a new tab" catches.
|
|
10
|
+
interface Props {
|
|
11
|
+
href: string;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
const NEW_TAB = ' (opens in a new tab)';
|
|
15
|
+
const { href, label } = Astro.props;
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
{
|
|
19
|
+
label === undefined ? (
|
|
20
|
+
<a href={href} target="_blank" rel="noopener noreferrer"><slot /><span class="visually-hidden">{NEW_TAB}</span></a>
|
|
21
|
+
) : (
|
|
22
|
+
<a href={href} target="_blank" rel="noopener noreferrer" aria-label={`${label}${NEW_TAB}`}><slot /></a>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
// Home page (catalogue-site, Home page, Home page chrome and Home links): a banner with the site title
|
|
3
3
|
// and text, a card per division with the view's counts and links, then the configured links.
|
|
4
4
|
// The links are the only URLs to other sites (site-security, No external requests): validated http(s)
|
|
5
|
-
// URLs from spec.site.home.links, opened in
|
|
5
|
+
// URLs from spec.site.home.links, each opened in a new tab and announced as such (NewTabLink,
|
|
6
|
+
// catalogue-site External links in a new tab).
|
|
6
7
|
import Base from '../layouts/Base.astro';
|
|
8
|
+
import NewTabLink from '../components/NewTabLink.astro';
|
|
7
9
|
import { href, rootFor, site } from '../lib/site';
|
|
8
10
|
|
|
9
11
|
const root = rootFor(Astro.url.pathname);
|
|
@@ -66,7 +68,7 @@ const textLinks = links.filter(link => !link.icon);
|
|
|
66
68
|
<ul class="home-icon-links" role="list">
|
|
67
69
|
{iconLinks.map(link => (
|
|
68
70
|
<li>
|
|
69
|
-
<
|
|
71
|
+
<NewTabLink href={link.url} label={link.title}><img class="themed-light" src={href(root, `link-icons/${link.icon}-light.svg`)} alt="" width="32" height="32" /><img class="themed-dark" src={href(root, `link-icons/${link.icon}-dark.svg`)} alt="" width="32" height="32" /></NewTabLink>
|
|
70
72
|
</li>
|
|
71
73
|
))}
|
|
72
74
|
</ul>
|
|
@@ -75,7 +77,7 @@ const textLinks = links.filter(link => !link.icon);
|
|
|
75
77
|
<ul class="home-external">
|
|
76
78
|
{textLinks.map(link => (
|
|
77
79
|
<li>
|
|
78
|
-
<
|
|
80
|
+
<NewTabLink href={link.url}>{link.title}</NewTabLink>
|
|
79
81
|
{link.description && <span class="muted"> · {link.description}</span>}
|
|
80
82
|
</li>
|
|
81
83
|
))}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
// pan, line highlight and zone filter. The map SVG has no title band or legend: the line chips are
|
|
4
4
|
// the legend (buttons that highlight a line) and the symbols are listed under them. Without
|
|
5
5
|
// JavaScript the whole map and both legends are shown; only the zoom and zone tools stay hidden.
|
|
6
|
-
// Over a city backdrop the OpenStreetMap credit sits right under the frame (catalogue-site, Map backdrop)
|
|
6
|
+
// Over a city backdrop the OpenStreetMap credit sits right under the frame (catalogue-site, Map backdrop),
|
|
7
|
+
// its link opened in a new tab and announced as such (NewTabLink, External links in a new tab).
|
|
7
8
|
import Base from '../../layouts/Base.astro';
|
|
9
|
+
import NewTabLink from '../../components/NewTabLink.astro';
|
|
8
10
|
import Themed from '../../components/Themed.astro';
|
|
9
11
|
import { site } from '../../lib/site';
|
|
10
12
|
|
|
@@ -45,7 +47,7 @@ const { lines, zones, symbols } = site.map;
|
|
|
45
47
|
{
|
|
46
48
|
site.map.credit && (
|
|
47
49
|
<p class="map-credit">
|
|
48
|
-
Map data © <
|
|
50
|
+
Map data © <NewTabLink href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</NewTabLink>
|
|
49
51
|
</p>
|
|
50
52
|
)
|
|
51
53
|
}
|