Remove the CDN font links, and restyle the quickstart
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- documentation, frontend
Hướng nghiên cứu
Start with the four CDN references listed in the table: the quickstart HomePage.html, WicketApplication.init() for the CSP entries, WicketExamplePage.html, and the 14 wicket-core-tests pages plus PageWithScriptTemplate_expected.html. Removing the Font Awesome links and CSP entries is the simplest slice; the font replacement needs a decision first. Done means no third-party font or stylesheet requests remain in the quickstart or core tests, and the core test suite still passes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Targets master, wicket-11.x and wicket-10.x. The affected files are the same on all three lines; on wicket-10.x only the archetype's pom.xml and Start.java differ.
The quickstart archetype and the examples load fonts and stylesheets from third-party CDNs, and the quickstart still has the look and content it got around Wicket 1.5. Every project generated from the quickstart calls Google on its first page, and its CSP is opened to two Google hosts to allow it. This follows up on #1846: nothing is distributed, so there is no release problem, but the links are worth reconsidering on their own. The fonts of the examples themselves stay with #1846.
CDN links
| What | Where | Loaded from |
|---|---|---|
| Yanone Kaffeesatz | quickstart HomePage.html; WicketApplication.init() adds https://fonts.googleapis.com/css to style-src and https://fonts.gstatic.com to font-src |
Google Fonts |
| Font Awesome 4.3.0 | WicketExamplePage.html and customresourceloading/CustomLoadedTemplate.html; WicketExampleApplication and authentication3/MyAuthenticatedWebApplication add it to the CSP |
maxcdn.bootstrapcdn.com |
| Yanone Kaffeesatz | 14 test pages in wicket-core-tests, over http://, one of them PageWithScriptTemplate_expected.html |
Google Fonts |
| jQuery 1.4.2 | ResouceBundleTest and BundlesPage_ext_result.html in wicket-core-tests |
ajax.googleapis.com |
- Google Fonts sends every visitor's IP address to Google. The Landgericht München I held that embedding them that way violates the GDPR (20 January 2022, 3 O 17493/20). A starter project should not make that choice for its users, and whoever copies the quickstart's CSP learns to allow-list Google.
- Font Awesome is not used anywhere in wicket-examples: no
faclasses, noFontAwesomefont-family. The links and the two CSP entries can go without a replacement. Font Awesome 4 has been end-of-life for years. - The core tests fetch nothing: WicketTester never loads the stylesheet, so the links are inert text. They can go, together with the matching line in
PageWithScriptTemplate_expected.html. The jQuery URL inResouceBundleTestis what that test is about, an external resource in a bundle, and stays.
The quickstart's look and content
The page is a fixed 650px box positioned absolutely between a navy header and a blue footer, with Yanone Kaffeesatz headings, Georgia text at 13pt and a 50px logo.png. It has no layout for phones. Its content is out of date:
- It sends people to IRC on freenode. The community page lists the mailing lists and the #wicket channel on the ASF Slack.
wicket-users.markmail.orgno longer resolves.- Bugs go "to a JIRA issue" as "a patch". Since 2026 the project uses GitHub Issues and pull requests, and the JIRA link now asks for a login.
help/email.htmlonly works through a redirect to/community/#lists.- The placeholder version in the markup is
1.5-SNAPSHOT. Theversionlabel replaces it at runtime, but it is what people read in the source.
Options for the styling
The site and the reference guide share a design now. The quickstart could follow it without any third-party request:
- System fonts only. Use the fallback stacks of the site (apache/wicket-site#27): an old-style serif (Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia) and a humanist sans (Seravek, Gill Sans Nova, Ubuntu, Calibri). This needs no dependency and no font files. The page looks close to the site, but not the same.
- The site's fonts from webjars. The generated
pom.xmldepends onorg.webjars.npm:fontsource__alegreya,-alegreya-sans,-alegreya-scand-jetbrains-mono(5.3.0), andstyle.cssloads them fromwebjars/fontsource__alegreya/5.3.0/files/…. The servlet container servesMETA-INF/resourcesfrom the jars inWEB-INF/lib, and WicketFilter passes those requests on, as it does forstyle.csstoday. The archetype holds no font files, so this raises no Category B question. The cost is four extra dependencies in every generated project, which is also the starting point for bug reproducers, and a font version in the CSS paths.
Either way the CSP in WicketApplication.init() keeps only 'self' for style-src, and logo.png could become the SVG mark the site uses.
To decide
- System fonts or the site's fonts from webjars for the quickstart.
- Whether the quickstart takes the site's whole design (colours, ribbon, dark mode) or only its typography.
- Whether the quickstart's content keeps the "reporting a bug" steps, now pointing at GitHub Issues and the community page.
- Ngôn ngữ chính
- Java
- Star
- 800
- Fork
- 437
- Merge trung bình
- 21 giờ 36 phút
- Pull request đã merge (30 ngày)
- 167
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/wicket
-
PropertyResolver fails on JDK classes with a non-public field named like the propertyCó thể đã có người làm @vaibhavgupta443 đã nhận hôm nay. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/wicket#1991 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stop the autocomplete from accumulating request parameters while typingCó thể đã có người làm @aryankalantri đã nhận hôm nay. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
apache/wicket#1947 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Validate the report-uri value given to CSPHeaderConfiguration#reportBackCó thể đã có người làm @AzizOuertani đã nhận 3 ngày trước. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/wicket#1946 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/wicket
Issue tương tự
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
account assessment course feature lecture
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] 连接达梦时报错,agent 进程启动即退Đang mởbug db/dameng user-priority/P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
t8y2/dbx#15534 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app:learninggoalhub enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100