Closed Mister-Hope closed 2 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/client/src/router/resolveRoute.ts | 0 | 1 | 0.0% | ||
packages/client/src/router/resolveRoutePath.ts | 0 | 2 | 0.0% | ||
packages/client/src/components/RouteLink.ts | 0 | 9 | 0.0% | ||
packages/client/src/components/AutoLink.ts | 0 | 27 | 0.0% | ||
<!-- | Total: | 15 | 54 | 27.78% | --> |
Totals | |
---|---|
Change from base Build 8685728582: | -0.7% |
Covered Lines: | 689 |
Relevant Lines: | 1715 |
@meteorlxy Could you review this? The downstream needs this.
This adds:
isLinkHttp
, now link starts with//
is considered as http linkisLinkExternal
, now link with protocols will all be treated as externalnormalizeRoutePath
resolveRoutePath
andresolveRoute
<AutoLink>
which can be used to render links in plugins and themes