[
https://issues.apache.org/jira/browse/KNOX-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18124395#comment-18124395
]
ASF subversion and git services commented on KNOX-3234:
-------------------------------------------------------
Commit 234b966c9d76b63a3b3114712137ffbc18700dac in knox's branch
refs/heads/master from Sandor Molnar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=234b966c9 ]
KNOX-3508: Bundle UI icons locally so they render in air-gapped networks (#1444)
* KNOX-3508: Bundle UI icons locally so they render in air-gapped networks
The Angular 21 UI upgrade (KNOX-3234) and the mat-icon-based UIs
reintroduced external font <link> tags to fonts.googleapis.com /
fonts.gstatic.com for Material Icons (and Roboto in admin-ui),
regressing KNOX-1731. In air-gapped environments the browser cannot
fetch the icon font, so icons render as literal ligature text (e.g.
"settings", "push_pin"). The production build also fetched the fonts at
build time via Beasties critical-CSS inlining, so the build itself
required internet access.
Vendor every icon used by the UIs as local inline SVGs (Google Material
Symbols Outlined, Apache-2.0), remove all external font <link> tags, and
drop the Roboto web font in favor of the system font stack. No font/CSS
is fetched at build or runtime.
- gateway-admin-ui: new <app-icon> component + icon.data.ts render the
SVGs; host keeps the material-icons class so existing theming applies.
- home, token-generation, token-management: register inline SVGs with
MatIconRegistry.addSvgIconLiteral and switch to <mat-icon svgIcon>.
- Remove Google font links from all four index.html files; add a
system-font fallback for the dropped Roboto web font.
- Clean up two dead icon references found during analysis (an
<i class="icon-warning"> with no backing font, and a Bootstrap-3
glyphicon-info-sign that Bootstrap 5 no longer renders).
- Delete orphaned fontawesome/fontopensans binaries (no references).
- Add Material Symbols attribution to NOTICE.
Verified: mvn package builds all four UI modules; the built index.html
and hashed CSS/JS contain no googleapis/gstatic references.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
> Upgrade Admin UI libraries/frameworks
> -------------------------------------
>
> Key: KNOX-3234
> URL: https://issues.apache.org/jira/browse/KNOX-3234
> Project: Apache Knox
> Issue Type: Improvement
> Components: AdminUI, Site
> Affects Versions: 2.1.0
> Reporter: Tamás Hanicz
> Assignee: Tamás Hanicz
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Angular, Node, Bootstrap etc. libraries are out of date.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)